update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2011-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (complex_vars_of_mule_charset): Use "jisx0208"
4         instead of "jisx0208\\.1990" as the X-registry of `=jis-x0208'.
5
6 2011-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * text-coding.c (char_encode_as_entity_reference): Don't use
9         `DECODE_CHAR' to detect isolated characters.
10
11         * mule-charset.c (charset_code_point): Change the third argument
12         `defined_only' to `accepted_mode'; `accepted_mode' can be
13         CHAR_ISOLATED_ONLY, CHAR_ALL or CHAR_DEFINED_ONLY.
14
15         * char-ucs.h (CHAR_ISOLATED_ONLY): New macro.
16         (CHAR_ALL): New macro.
17         (CHAR_DEFINED_ONLY): New macro.
18
19 2011-03-14  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
20
21         * chartab.c (Fchar_feature_base_name_eq): New function when
22         UTF2000 is enabled.
23         (Fput_char_attribute): Use `Fchar_feature_base_name_eq'.
24         (syms_of_chartab): Add new builtin function
25         `char-feature-base-name=' when UTF2000 is enabled.
26
27 2011-02-17  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
28
29         * text-coding.c (Vdecomposition_feature_list): New variable when
30         UTF2000 is defined.
31         (char_encode_utf8): Refer variable `decomposition-feature-list'
32         instead of `=decomposition' feature.
33         (vars_of_file_coding): Add new variable
34         `decomposition-feature-list' when UTF2000 is defined.
35
36 2011-02-16  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
37
38         * chartab.c (Fput_char_attribute): Support `=decomposition@FOO' as
39         `=decomposition' feature.
40
41 2011-02-12  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
42
43         * mule-charset.c (Fmake_charset): Fix problem for 94^n or 96^n
44         coded-charsets with builtin characters.
45
46 2011-02-09  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
47
48         * text-coding.c (Qrep_decomposition): New extern.
49         (char_encode_utf8): Try to encode as combing sequence (or IVS).
50
51 2011-01-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
52
53         * concord.c (Fconcord_genre_ds): Add "#ifdef HAVE_LIBCHISE" ...
54         "#endif" for code to refer Vchise_system_db_directory.
55
56 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
57
58         * concord.c (Fconcord_object_put): Use `member' instead of `memq'.
59         (Fconcord_object_adjoin): New function.
60         (Fconcord_object_adjoinX): New function.
61         (syms_of_concord): Defsubred `Fconcord_object_adjoin' and
62         `Fconcord_object_adjoinX'.
63
64 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
65
66         * concord.c:
67         - Include "elconcord.h".
68         - Move EXFUNs for `Fconcord_decode_object', `Fconcord_object_put'
69           and `Fconcord_object_get' to elconcord.h.
70         (Lisp_CONCORD_DS): Moved to elconcord.h.
71         (struct Lisp_CONCORD_DS): Ditto.
72         (XCONCORD_DS): Ditto.
73         (XSET_CONCORD_DS): Ditto.
74         (CONCORD_DS_P): Ditto.
75         (CHECK_CONCORD_DS): Ditto.
76         (CONCHECK_CONCORD_DS): Ditto.
77         (Lisp_CONCORD_Object): Ditto.
78         (struct Lisp_CONCORD_Object): Ditto.
79         (XCONCORD_OBJECT): Ditto.
80         (XSET_CONCORD_OBJECT): Ditto.
81         (CONCORD_OBJECT_P): Ditto.
82         (CHECK_CONCORD_OBJECT): Ditto.
83         (CONCHECK_CONCORD_OBJECT): Ditto.
84         (CONCORD_OBJECT_GENRE): Ditto.
85         (CONCORD_OBJECT_ID): Ditto.
86         (XCONCORD_OBJECT_ID): Ditto.
87         (XCONCORD_OBJECT_GENRE): Ditto.
88         (concord_object_equal): New function.
89         (LRECORD_IMPLEMENTATION of "concord_object"): Use
90         `concord_object_equal'.
91
92         * elconcord.h: New file.
93
94 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
95
96         * concord.c (print_concord_object): Use readable form even if
97         `print-readably' is nil.
98
99 2010-11-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
100
101         * concord.c (print_concord_object): Don't display location of
102         data-source when `print-readably' is nil.
103
104 2010-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
105
106         * concord.c (Fconcord_genre_ds): Use Vchise_system_db_directory as
107         the default location of data-source.
108         (complex_vars_of_concord): Use Vchise_system_db_directory to
109         assign genre `character' and `feature'.
110
111         * chartab.h (Vchise_system_db_directory): New extern when
112         HAVE_CONCORD is defined.
113
114 2010-09-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
115
116         * concord.c: Include <chise.h> if HAVE_LIBCHISE is defined.
117         (Qcharacter): New variable when HAVE_LIBCHISE is defined.
118         (Qfeature): Ditto.
119         (Fconcord_object_genre): New function.
120         (syms_of_concord):
121         - Add new builtin symbols `character' and `feature' when
122           HAVE_LIBCHISE is defined.
123         - Add Add new builtin function `concord-object-genre'.  
124         (complex_vars_of_concord): New function; assign genres `character'
125         and `feature' when HAVE_LIBCHISE is defined.
126
127 2010-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
128
129         * emacs.c (main_1): Call `complex_vars_of_concord' when
130         HAVE_CONCORD is defined.
131
132         * symsinit.h (complex_vars_of_concord): New prototype.
133
134 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
135
136         * chartab.c (allocate_character): Add `static'.
137
138 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
139
140         * chartab.c (allocate_character): New function.
141         (Fdefine_char): Use allocate_character().
142
143 2010-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
144
145         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.25
146         (Ōkawara).
147
148 2010-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
149
150         * chartab.c (save_uint8_byte_table): Fixed problem when a property
151         is unloaded.
152         (save_uint16_byte_table): Likewise.
153
154 2010-02-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
155
156         * chartab.c (Fchar_feature_property): New function when LIBCHISE
157         is enabled.
158         (Fput_char_feature_property): Likewise.
159         (syms_of_chartab): Add new builtin functions
160         `char-feature-property' and `put-char-feature-property' when
161         LIBCHISE is enabled.
162
163 2009-04-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
164
165         * mule-charset.c (Fmake_charset): Add DOC-string of 'iso-ir and
166         '=>iso-ir.
167         (Fcharset_property): Regard '=>iso-ir as same as `iso_ir.
168
169 2009-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
170
171         * mule-charset.c (Qto_iso_ir): New variable for XEmacs CHISE.
172         (make_charset): Add new argument `iso_ir'.
173         (Fmake_charset): Add new property `=>iso-ir' in XEmacs CHISE.
174         (Fmake_reverse_direction_charset): Copy CHARSET_ISO_IR(cs) in
175         XEmacs CHISE.
176         (Fcharset_property): Support `iso-ir' in XEmacs CHISE.
177         (syms_of_mule_charset): Add new builtin symbol `=>iso-ir' in
178         XEmacs CHISE.
179         (complex_vars_of_mule_charset): Specify argument `iso_ir' of
180         function `make_charset'.
181
182         * char-ucs.h (LEADING_BYTE_*): Enclose negative value with ( ).
183         (struct Lisp_Charset): Add new member `iso_ir'.
184         (CHARSET_ISO_IR): New macro.
185
186 2009-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
187
188         * mule-charset.c (Fdecode_char): Fix problem when decoding GR
189         code-point by GL charset.
190
191 2008-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
192
193         * concord.c (concord_id_validate): New function.
194         (structure_type_create_concord): Use `concord_id_validate' instead
195         of `concord_name_validate' to accept integer and character as =id.
196
197 2008-09-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
198
199         * concord.c (func_for_each_object): Fix bug about GC-protection.
200
201 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
202
203         * concord.c (Fconcord_object_put): Check argument FEATURE is a
204         symbol.
205
206 2008-09-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
207
208         * text-coding.c (struct decoding_stream): Add new member
209         `bom_flag' in XEmacs CHISE.
210         (reset_decoding_stream): Ignore U+FEFF in the beginning of stream
211         in XEmacs CHISE.
212
213 2008-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
214
215         * mule-charset.c: Move definition of `=jis-x0208@1978' to
216         lisp/mule/mule-conf.el.
217
218 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
219
220         * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
221         (make_charset): Add new argument `partial'.
222         (Fmake_charset): Add new property 'partial in XEmacs CHISE.
223         (Fmake_reverse_direction_charset): Modify for `make_charset'.
224         (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
225         CHISE.
226         (complex_vars_of_mule_charset): Modify for `make_charset'; specify
227         `=jis-x0208' as a partial coded-charset.
228
229 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
230
231         * text-coding.c (decode_add_er_char): Fix problem when a character
232         represented by an entity-reference is not defined.
233
234 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
235
236         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
237         Qrep_*.
238
239 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
240
241         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
242         (Kasagi).
243
244 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
245
246         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
247         is a relation feature.
248
249 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
250
251         * chartab.c (syms_of_chartab): Define
252         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
253
254         * chartab.h (Q_denotational): New extern when UTF2000 or
255         HAVE_CONCORD is defined.
256         (Q_denotational_from): Likewise.
257         (Q_subsumptive): Likewise.
258         (Q_subsumptive_from): Likewise.
259
260 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
261
262         * concord.c (concord_object_put): New function.
263         (Fconcord_object_put): Use `concord_object_put'.
264
265 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
266
267         * concord.c (Fconcord_define_object): New function.
268         (syms_of_concord): Add new builtin function
269         `concord-define-object'.
270
271 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
272
273         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
274         (Kamo).
275
276 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
277
278         * concord.c: Add EXFUN for Fconcord_object_get.
279         (Vconcord_genre_object_hash_table): New variable.
280         (concord_genre_cache_get_object): New function.
281         (concord_genre_cache_put_object): New function.
282         (Fconcord_make_object): Use object cache; put object-ID into `=id'
283         feature.
284         (Fconcord_object_put): Call `concord_index_sync' after
285         `concord_index_strid_put_obj'.
286         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
287
288 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
289
290         * concord.c (Fconcord_decode_object): Do GCPRO for
291         Fconcord_make_object.
292         (func_for_each_object): Likewise; do GCPRO for
293         for_each_object_closure->function.
294         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
295         for_each_object_closure->function, for_each_object_closure->genre,
296         for_each_object_closure->ds and for_each_object_closure->ret.
297         (concord_object_validate): Do GCPRO for Fconcord_make_object.
298
299 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
300
301         * concord.c: Add EXFUNs for Fconcord_decode_object and
302         Fconcord_object_put.
303         (Fconcord_make_object): Change order of arguments.
304         (Fconcord_decode_object): Modify for Fconcord_make_object.
305         (func_for_each_object): Likewise.
306         (concord_object_validate): Likewise.
307         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
308
309 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
310
311         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
312
313 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
314
315         * concord.c (Fconcord_decode_object): Try to use readable print
316         form as a key of Concord-index.
317         (Fconcord_object_get): Try to use readable print form as an ID of
318         Concord-object.
319         (Fconcord_object_put): Try to use readable print form as an ID of
320         Concord-object and a feature value.
321         (Fconcord_object_spec): Try to use readable print form as an ID of
322         Concord-object.
323
324 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
325
326         * concord.c (print_concord_object): Support readable form.
327
328 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
329
330         * emacs.c (main_1): Call `structure_type_create_concord' when
331         HAVE_CONCORD is defined.
332
333         * symsinit.h (structure_type_create_concord): New prototype.
334
335         * concord.c (Qconcord_object): New variable.
336         (Qgenre): Likewise.
337         (Q_id): Likewise.
338         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
339         for directory.
340         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
341         char*> for genre-name.
342         (Fconcord_feature_list): Likewise.
343         (Fconcord_make_object): Likewise.
344         (Fconcord_decode_object): Likewise; use <char*> instead of
345         <unsigned char*> for feature_name and strid.
346         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
347         c_obj and feature_name.
348         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
349         char*> for c_value.
350         (struct closure_for_object_spec): Use <char*> instead of <unsigned
351         char*> for member `object_id'.
352         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
353         char*> for feature-name.
354         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
355         for c_obj.
356         (func_for_each_object): Cast to avoid warnings.
357         (Fconcord_foreach_object_in_feature): Use <char*> instead of
358         <unsigned char*> for genre_name and feature_name.
359         (concord_name_validate): New function.
360         (concord_object_validate): Likewise.
361         (concord_object_instantiate): Likewise.
362         (syms_of_concord): Add new builtin symbols `concord-object',
363         `genre' and `=id'.
364         (structure_type_create_concord): New function.
365
366 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
367
368         * concord.c (Vconcord_ds_hash_table): New variable.
369         (Vconcord_genre_hash_table): New variable.
370         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
371         (Fconcord_ds_directory): New function.
372         (Fconcord_assign_genre): New function.
373         (Fconcord_genre_directory): New function.
374         (Fconcord_genre_ds): New function.
375         (Fconcord_feature_list): Allow to omit `ds'.
376         (Fconcord_make_object): Likewise.
377         (Fconcord_decode_object): Likewise.
378         (Fconcord_foreach_object_in_feature): Likewise.
379         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
380         Fconcord_assign_genre, Fconcord_genre_directory and
381         Fconcord_genre_ds.
382         (vars_of_concord): Setup Vconcord_ds_hash_table and
383         Vconcord_genre_hash_table.
384
385 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
386
387         * concord.c (struct closure_for_each_object): Add new member
388         `ret'.
389         (func_for_each_object): Setup the return value to
390         `for_each_object_closure->ret'.
391         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
392         returns the value instead of Qt.
393
394 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
395
396         * concord.c: New file.
397
398 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
399
400         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
401         `lrecord_type_concord_object'.
402
403 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * symsinit.h (syms_of_concord): New prototype.
406         (vars_of_concord): New prototype.
407
408         * emacs.c (main_1): Setup symbols and variable about concord if
409         HAVE_CONCORD is defined.
410
411         * config.h.in (HAVE_CONCORD): New macro.
412
413 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
414
415         * chartab.c (Fput_char_attribute): For each character relation
416         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
417
418 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
419
420         * chartab.c (Fput_char_attribute): Use
421         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
422         calling `put_char_composition'.
423
424 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
425
426         * chartab.c (Q_halfwidth_of): New variable.
427         (put_char_composition): Return `<-halfwidth' instead of
428         `=decomposition' for compatibility mapping to single character
429         tagged `narrow'.
430         (Fput_char_attribute): Convert char-specs in value of
431         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
432         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
433         for `<-halfwidth'.
434         (syms_of_chartab): Add new symbol `<-halfwidth'.
435
436 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
437
438         * chartab.c (put_char_composition): Return
439         `<-formed@{isolated|initial|medial|final}' for compatibility
440         mapping to single character tagged
441         `{isolated|initial|medial|final}'.
442
443 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
444
445         * chartab.c (Q_compat_of): Deleted.
446         (put_char_composition): Return `<-FOO' for compatibility mapping
447         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
448         of `symbol_name (XSYMBOL(...))'.
449         (Fput_char_attribute): Convert char-specs in value of
450         `{<-|->}font[^*]*' to characters and put reverse links.
451         (Fsave_char_attribute_table): Don't refer Q_compat_of.
452         (syms_of_chartab): Delete builtin symbol `<-compat'.
453
454 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
455
456         * chartab.c (Q_circled_of): New variable.
457         (put_char_composition): Return `<-circled' instead of
458         `=decomposition' for compatibility mapping to single character
459         tagged `circle'.
460         (Fput_char_attribute): Convert char-specs in value of
461         `{<-|->}circled[^*]*' to characters and put reverse links.
462         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
463         for `<-circled'.
464         (syms_of_chartab): Add new symbol `<-circled'.
465
466 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
467
468         * chartab.c (Qto_decomposition_at_circled): New variable.
469         (put_char_composition): Return `=>decomposition@circled' instead
470         of `=decomposition' for compatibility decomposition mapping tagged
471         `circle'.
472         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
473
474 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
475
476         * chartab.c (Q_subscript_of): New variable.
477         (put_char_composition): Return `<-subscript' instead of
478         `=decomposition' for compatibility mapping to single character
479         tagged `sub'.
480         (Fput_char_attribute): Convert char-specs in value of
481         `{<-|->}subscript[^*]*' to characters and put reverse links.
482         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
483         for `<-subscript'.
484         (syms_of_chartab): Add new symbol `<-subscript'.
485
486 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
487
488         * chartab.c (Q_superscript_of): New variable.
489         (put_char_composition): Return `<-superscript' instead of
490         `=decomposition' for compatibility mapping to single character
491         tagged `super'.
492         (Fput_char_attribute): Convert char-specs in value of
493         `{<-|->}superscript[^*]*' to characters and put reverse links.
494         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
495         for `<-superscript'.
496         (syms_of_chartab): Add new symbol `<-superscript'.
497
498 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
499
500         * chartab.c (Qto_decomposition_at_compat): Deleted.
501         (Qto_decomposition_at_superscript): New variable.
502         (put_char_composition): Use `=>decomposition@superscript' instead
503         of `=decomposition' for compatibility decomposition mapping tagged
504         `super'.
505         (Fput_char_attribute): Fix condition about `put_char_composition'.
506         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
507         add news symbol `=>decomposition@superscript'.
508
509 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
510
511         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
512         for compatibility decomposition mapping tagged FOO.
513         (Fput_char_attribute): Modify for `put_char_composition'.
514
515 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
516
517         * chartab.c (Qto_decomposition_at_compat): New variable.
518         (Q_compat_of): Renamed from `Q_compatibility_of'.
519         (put_char_composition): Rename `Q_compatibility_of' to
520         `Q_compat_of'; return `=>decomposition@compat' for compatibility
521         decomposition mapping.
522         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
523         `Q_compat_of'.
524         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
525         `<-compatibility' to `<-compat'.
526
527 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
528
529         * chartab.c (Q_compatibility_of): New variable.
530         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
531         object is proved to be a cons cell; return `<-compatibility' if
532         the first element of argument `value' is `compat'.
533         (Fput_char_attribute): Eliminate the first value if
534         `put_char_composition' returns `<-compatibility'.
535         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
536         for `<-compatibility'.
537         (syms_of_chartab): Add new symbol `<-compatibility'.
538
539 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
540
541         * chartab.c (Q_canonical): New variable.
542         (put_char_composition): Return a feature name: return
543         `->canonical' if argument `value' specifies single character.
544         (Fput_char_attribute): Use `put_char_composition' to determine
545         feature name for `=decomposition' or `->denotational'.
546         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
547         for `->canonical'.
548         (syms_of_chartab): Add new symbol `->canonical'.
549
550 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
551
552         * chartab.c (Qmap_decomposition): New variable.
553         (Fput_char_attribute): Convert `->decomposition' to
554         `=decomposition'.
555         (syms_of_chartab): Add new symbol `=decomposition'.
556
557 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
558
559         * chartab.c (Fget_range_char_table): Fix serious problem when
560         `range' is nil.
561
562 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
563
564         * chartab.c (char_table_get_db): Use `read_from_c_string'.
565
566 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
567
568         * lread.c (read_from_c_string): New function.
569
570         * lisp.h (read_from_c_string): New prototype.
571
572 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
573
574         * chartab.c (Fput_char_attribute): Convert char-specs in value of
575         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
576         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
577         for `{<-|->}Oracle-Bones[^*]*'.
578
579 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
580
581         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
582         (Kizu).
583
584 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
585
586         * text-coding.c (Qccs_priority_list): New variable in XEmacs
587         CHISE.
588         (Fmake_coding_system): Support new property `ccs-priority-list' in
589         XEmacs CHISE.
590         (Fcoding_system_property): Likewise.
591         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
592         Vdefault_coded_charset_priority_list in XEmacs CHISE.
593         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
594         XEmacs CHISE.
595         (complex_vars_of_file_coding): Define new coding-system-property
596         `ccs-priority-list' in XEmacs CHISE.
597
598         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
599
600 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
601
602         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
603         changed to normal function.
604         (encode_char_2): Likewise.
605
606         * mule-charset.c (decoding_table_put_char): Copied from
607         char-ucs.h; changed to normal function.
608         (encode_char_2): Likewise.
609
610 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
611
612         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
613         New extern.
614         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
615         (encode_char_2_search_children): New inline function.
616         (encode_char_2): Refer
617         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
618         and use `encode_char_2_search_children'.
619
620 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
621
622         * mule-charset.c
623         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
624         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
625         (vars_of_mule_charset): Add new variable
626         `display-coded-charset-priority-use-inheritance' and
627         `display-coded-charset-priority-use-hierarchy-order'.
628
629 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
630
631         * char-ucs.h (Q_subsumptive): New extern.
632         (Q_denotational): Likewise.
633         (encode_char_2): Search children specified by `->subsumptive' and
634         `->denotational'.
635
636 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
637
638         * mule-charset.c (complex_vars_of_mule_charset): Modify the
639         X-registry of `ucs-bmp'.
640
641 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
642
643         * chartab.c (char-variants): Refer `->subsumptive',
644         `->denotational' and `->identical' as same as `->ucs-unified'.
645
646 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
647
648         * chartab.c (Fput_char_attribute): Convert char-specs in value of
649         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
650         links.
651
652 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
653
654         * text-coding.c: Add EXFUN for `Fregexp_quote'.
655         (decode_add_er_char): Fix problem about infinite loop when a CCS
656         specified in `coded-charset-entity-reference-alist' is not
657         existed.
658
659 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
660
661         * mule-charset.c (syms_of_mule_charset): Rename
662         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
663
664 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
665
666         * fns.c (simplify_char_spec): Don't allocate new character-object
667         if specified char_spec does not have any CCS-features.
668
669         * chartab.h: Add EXFUN for Fdefine_char.
670
671         * chartab.c: Delete EXFUN for Fdefine_char.
672
673 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
674
675         * fns.c (simplify_char_spec): Use Fdefine_char instead of
676         Ffind_char for char-spec.
677
678 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
679
680         * lisp-disunion.h (XCHARVAL): Fix condition about
681         SIZEOF_EMACS_INT.
682
683 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
684
685         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
686         <int> for `code'.
687         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
688         point; use <Emchar> instead of <int> for character-id.
689
690 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
691
692         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
693         (make_char): Likewise.
694         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
695         environment.
696         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
697         instead of <int> as the type of return value; use <Lisp_Object>
698         instead of <Emchar> as the type of argument.
699         (XCHARVAL[macro version]): Cast the result into <Emchar>.
700
701         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
702         syntaxcode> instead of <int>.
703
704 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
705
706         * chartab.c (put_char_composition): Use DECODE_CHAR to get
707         character corresponding with UCS code point.
708         (Fput_char_attribute): Likewise.
709
710         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
711         character in the UCS decoding-table if the char-id is not equal to
712         the UCS code point.
713
714 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
715
716         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
717         for aliases; write `description'; write
718         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
719         not 0.
720
721 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
722
723         * chartab.c (Fsave_char_attribute_table): Don't use
724         `save_charset_properties'.
725
726         * mule-charset.c (Fsave_charset_properties): Renamed from
727         `save_charset_properties' and changed to Lisp function again;
728         write property `type' as `CCS'; write properties `final-byte' and
729         `mother' if they exists.
730         (syms_of_mule_charset): Revive builtin function
731         `save-charset-properties' when HAVE_LIBCHISE is defined.
732
733 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
734
735         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
736         instead of Vexec_directory.
737         (char_attribute_system_db_file): Likewise.
738
739 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
740
741         * chartab.c (Fsave_char_attribute_table): Use
742         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
743         defined.
744
745         * mule-charset.c (save_charset_properties): Renamed from
746         `Fsave_charset_properties'; changed to non-Lisp function.
747         (syms_of_mule_charset): Abolish builtin function
748         `save-charset-properties'.
749
750 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
751
752         * mule-charset.c (Fsave_charset_properties): New function when
753         HAVE_LIBCHISE is defined.
754         (syms_of_mule_charset): Add new builtin function
755         `save-charset-properties' when HAVE_LIBCHISE is defined.
756
757 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
758
759         * chartab.c (Fput_char_attribute): Convert char-specs in value of
760         `{<-|->}ancient[^*]*' to characters and put reverse links.
761         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
762         for `{<-|->}ancient[^*]*'.
763
764 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
765
766         * chartab.c (Fput_char_attribute): Convert char-specs in value of
767         `{<-|->}original[^*]*' to characters and put reverse links.
768         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
769         for `{<-|->}original[^*]*'.
770
771 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
772
773         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
774
775 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
776
777         * mule-charset.c (Qsystem_char_id): New variable.
778
779         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
780         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
781
782 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
783
784         * chartab.c (Fput_char_attribute): When processing a reference of
785         a character, put into the end of the reversed reference of each
786         target character.
787
788 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
789
790         * chartab.c (Q_same): Deleted.
791         (Q_same_of): Deleted.
792         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
793         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
794         for `{<-|->}same'.
795         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
796
797 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
798
799         * chartab.c (Q_vulgar): Deleted.
800         (Q_vulgar_of): Deleted.
801         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
802         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
803         for `{<-|->}vulgar'.
804         (syms_of_chartab): Don't define `{<-|->}vulgar'.
805
806 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
807
808         * chartab.c (Fput_char_attribute): Convert char-specs in value of
809         `{<-|->}wrong[^*]*' to characters and put reverse links.
810         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
811         for `{<-|->}wrong[^*]*'.
812
813 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
814
815         * chartab.c (Q_vulgar): New variable.
816         (Q_vulgar_of): New variable.
817         (Fput_char_attribute): Convert char-specs in value of
818         `{->|<-}vulgar' to characters and put reverse links.
819         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
820         for `{->|<-}vulgar'.
821         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
822
823 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
824
825         * text-coding.c (decode_add_er_char): Must to quote prefix string
826         as regexp.
827
828 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
829
830         * mule-charset.c (put_char_ccs_code_point): Store characters of
831         =ucs whose code_points >= 0xF0000.
832
833 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
834
835         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
836         CHISE.
837         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
838         CHISE.
839         (complex_vars_of_mule_charset): Add new coded-charset
840         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
841         builtin characters over 0xEFFFF.
842
843         * chartab.c (syms_of_chartab): Don't define symbol
844         `system-char-id' in every case.
845
846         * char-ucs.h (Qsystem_char_id): New extern variable.
847         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
848
849 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
850
851         * text-coding.c (char_encode_utf8): Try to use entity-references
852         for U-000F0000 ...  U-0010FFFF.
853
854 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
855
856         * text-coding.c (ER_BUF_SIZE): New macro.
857         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
858         `er_buf'.
859         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
860         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
861
862 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
863
864         * chartab.c (find_char_feature_in_family): New function.
865         (Fchar_feature): Use `find_char_feature_in_family' with
866         `->identical', `<-subsumptive' and `<-denotational'.
867
868 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
869
870         * text-coding.c (char_encode_as_entity_reference): Allow prefix
871         within 8 characters; fix infinite loop.
872
873 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
874
875         * chartab.c (Q_same): New variable.
876         (Q_same_of): New variable.
877         (Fput_char_attribute): Convert char-specs in value of
878         `{->|<-}same' to characters and put reverse links.
879         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
880         for `{->|<-}same'.
881         (syms_of_chartab): Add new symbols `{->|<-}same'.
882
883 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
884
885         * chartab.c (Q_component): New variable.
886         (Q_component_of): Likewise.
887         (Fput_char_attribute): Convert char-specs in value of
888         `{->|<-}ideographic-component-forms' to characters and put reverse
889         links.
890         (syms_of_chartab): Add new symbols
891         `{->|<-}ideographic-component-forms'.
892
893 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
894
895         * chartab.c (Q_identical): New variable.
896         (Q_identical_from): New variable.
897         (Fchar_feature): Regard `->identical' as a feature to find
898         ancestors.
899         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
900         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
901         for `{->|<-}identical'.
902         (syms_of_chartab): Add new symbols `{->|<-}identical'.
903
904 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
905
906         * char-ucs.h (encode_char_2): New inline function.
907         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
908
909 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
910
911         * chartab.c (Fput_char_attribute): Convert char-specs to
912         characters in value of `ideographic-structure'.
913         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
914         for `{<-|->}simplified(@...)'.
915         (Fdefine_char): Try to use predefined character's id.
916
917 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
918
919         * fns.c (simplify_char_spec): Try to convert builtin chars to
920         defined chars.
921
922 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
923
924         * chartab.c (Fput_char_attribute): Convert char-specs in value of
925         `<-simplified[^*]*' to characters and put reverse links.
926
927 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
928
929         * chartab.c (Q_subsumptive): Renamed from Q_unified.
930         (Q_subsumptive_from): Renamed from Q_unified_from.
931         (Fchar_feature): Use `Q_subsumptive_from' instead of
932         `Q_unified_from'.
933         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
934         `Q_unified'.
935         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
936         `<-unified' to `<-subsumptive'.
937
938 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
939
940         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
941         inheritance itself; fix typo; stop recursive search if cyclic
942         inheritance is found.
943
944 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
945
946         * chartab.c (Q_denotational): New variable.
947         (Q_denotational_from): New variable.
948         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
949         (put_char_attribute): New function.
950         (Fput_char_attribute): Use `put_char_attribute'; regard
951         `->denotational' and `<-denotational' as same as `->unified' and
952         `<-unified'.
953         (syms_of_chartab): Add new symbols `->denotational' and
954         `<-denotational'.
955
956 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
957
958         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
959         `Fget_char_attribute'.
960         (Fchar_variants): Likewise.
961         (get_char_table): Likewise.
962         (Fchar_feature): New function.
963         (put_char_composition): Use `Fchar_feature' instead of
964         `Fget_char_attribute'.
965         (Fput_char_attribute): Likewise; don't put the target character
966         into its `->unified' value.
967         (syms_of_chartab): Add new builtin function `char-feature'.
968
969 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
970
971         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
972         `Fget_char_attribute'.
973         (char_encode_utf8): Likewise.
974
975         * chartab.h: Add an EXFUN for `Fchar_feature'.
976
977 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
978
979         * chartab.c (Vnext_defined_char_id): New variable.
980         (Fput_char_attribute): Accept characters in `->unified'.
981         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
982         new characters which are not related with builtin char-id ranges.
983         (vars_of_chartab): Add new variable `next-defined-char-id'.
984
985 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
986
987         * chartab.c (Q_unified): New variable.
988         (Q_unified_from): New variable.
989         (Fput_char_attribute): Add code for `->unified'.
990         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
991         XEmacs CHISE.
992
993 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
994
995         * mule-charset.c (decode_ccs_conversion): New function.
996         (decode_defined_char): Use `decode_ccs_conversion'.
997         (decode_builtin_char): Likewise.
998
999 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1000
1001         * char-ucs.h: Change some charset-ids of private coded-charsets.
1002
1003 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1004
1005         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
1006         (char_encode_as_entity_reference): Likewise.
1007         (decode_coding_big5): Modify for `decode_defined_char' and
1008         `DECODE_CHAR'.
1009         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
1010         avoid compiler warning.
1011         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
1012
1013         * mule-charset.c (decode_defined_char): Add new argument
1014         `without_inheritance'.
1015         (Fdecode_char): Add new optional argument `without_inheritance'.
1016         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1017
1018         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
1019         (simplify_char_spec): Likewise.
1020
1021         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
1022         setting.
1023
1024         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
1025         (map_char_table): Likewise.
1026         (Fdefine_char): Use `Fdecode_char' without inheritance.
1027         (Ffind_char): Modify for `Fdecode_char'.
1028
1029         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
1030
1031         * char-ucs.h (decode_defined_char): Add new argument
1032         `without_inheritance'.
1033         (DECODE_CHAR): Likewise.
1034         (MAKE_CHAR): Modify for `DECODE_CHAR'.
1035
1036 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1037
1038         * chartab.c (Vchise_system_db_directory): New variable.
1039         (vars_of_chartab): Add new variable `chise-system-db-directory'.
1040
1041 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1042
1043         * chartab.c: EXFUN `Fmount_char_attribute_table'.
1044         (print_chartab_range): Don't define when `UTF2000' is defined.
1045         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
1046         `CHISE_DS_open'.
1047
1048 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1049
1050         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
1051         and optional argument `rehash' is specified, call
1052         `open_chise_data_source_maybe' before
1053         `chise_ds_foreach_char_feature_name' is called.
1054
1055 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1056
1057         * chartab.c (char_attribute_list_reset_map_func): New function
1058         when HAVE_LIBCHISE is defined.
1059         (Fchar_attribute_list): Add new optional argument `rehash' when
1060         HAVE_LIBCHISE is defined.
1061         (open_chise_data_source_maybe): Use "chise-db" instead of
1062         "char-db".
1063         (char_attribute_system_db_file): Likewise.
1064         (Fload_char_attribute_table): Use
1065         `chise_feature_foreach_char_with_value' instead of
1066         `chise_char_feature_value_iterate'.
1067
1068 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1069
1070         * chartab.c (Vchise_db_directory): New variable.
1071         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
1072
1073 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1074
1075         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
1076         instead of HAVE_CHISE to specify using with libchise.
1077
1078         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
1079
1080         * chartab.h: Don't use HAVE_CHISE_CLIENT.
1081
1082         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
1083         defined or HAVE_LIBCHISE_LIBCHISE is defined.
1084         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
1085         is defined.
1086         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
1087         HAVE_CHISE to specify using with libchise.
1088         (syms_of_chartab): Don't define symbol `system-char-id' when
1089         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
1090
1091 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1092
1093         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1094         specify CHISE DB support.
1095         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
1096         of `char_attribute_system_db_file' to check feature DB file.
1097
1098         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
1099         HAVE_CHISE_CLIENT to specify CHISE DB support.
1100
1101         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1102         specify CHISE DB support.
1103         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
1104         not defined.
1105         (Freset_char_attribute_table): Use `chise_feature_setup_db'
1106         instead of `char_attribute_system_db_file' to check feature DB
1107         file.
1108
1109 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1110
1111         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
1112         `HAVE_CHISE_CLIENT'.
1113
1114 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1115
1116         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
1117         (Fsave_charset_mapping_table): Don't use
1118         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1119
1120         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
1121         (HAVE_LIBCHISE): New macro.
1122
1123         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
1124
1125         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
1126         (Fsave_char_attribute_table): Don't use
1127         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1128
1129 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1130
1131         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
1132         defined.
1133         (save_uint16_byte_table): Likewise.
1134         (save_byte_table): Likewise.
1135         (char_table_get_db): Use `chise_ds_load_char_feature_value'
1136         instead of `chise_char_load_feature_value'.
1137         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
1138
1139 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1140
1141         * chartab.h (struct Lisp_Char_Table): Delete member
1142         `feature_table' if CHISE is defined.
1143
1144         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
1145         (Fcopy_char_table): Likewise.
1146         (char_table_open_db_maybe): Likewise.
1147         (char_table_close_db_maybe): Likewise.
1148         (char_table_get_db): Likewise.
1149         (Fmount_char_attribute_table): Likewise.
1150         (Fload_char_attribute_table): Likewise.
1151
1152 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1153
1154         * mule-charset.c (load_char_decoding_entry_maybe): Use
1155         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
1156         `chise_ccs_decode'.
1157
1158 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1159
1160         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
1161         instead of `chise_open_data_source'.
1162         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
1163         `chise_ds_close'.
1164
1165 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1166
1167         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
1168         instead of `chise_ds_open_feature_table'.
1169         (char_table_close_db_maybe): Don't use `chise_ft_close'.
1170
1171 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1172
1173         * mule-charset.c (Fsave_charset_mapping_table): Use
1174         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
1175         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
1176         `chise_ccs_sync' instead of `chise_ccst_close'.
1177         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
1178
1179         * chartab.c (open_chise_data_source_maybe): Modify for
1180         `chise_open_data_source'.
1181         (char_table_open_db_maybe): Modify for
1182         `chise_ds_open_feature_table'.
1183
1184 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1185
1186         * mule-charset.c (load_char_decoding_entry_maybe): Use
1187         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
1188         `chise_ccst_close'.
1189
1190 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1191
1192         * mule-charset.c (Fsave_charset_mapping_table): Use
1193         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
1194         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
1195         `chise_dt_put_char' and `chise_dt_close'.
1196         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
1197         `chise_ccs_decode' and `chise_ccst_close' instead of
1198         `chise_ds_open_decoding_table', `chise_dt_get_char' and
1199         `chise_dt_close'.
1200
1201         * chartab.c (char_table_get_db): Use
1202         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
1203         (load_char_attribute_table_map_func): Modify for
1204         `chise_char_feature_value_iterate'.
1205         (Fload_char_attribute_table): Use
1206         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
1207
1208 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1209
1210         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
1211
1212 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1213
1214         * chartab.c (put_char_table): Modify for inherited coded-charsets
1215         in XEmacs CHISE.
1216
1217 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1218
1219         * chartab.c (Fput_char_table_map_function): Fixed.
1220         (word_boundary_p): Don't check charset in XEmacs CHISE.
1221
1222 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1223
1224         * mule-charset.c (Fsave_charset_mapping_table): Use
1225         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1226         instead of `chise_open_decoding_table'; refer
1227         `default_chise_data_source'; use `chise_dt_close' instead of
1228         `chise_close_decoding_table'.
1229         (load_char_decoding_entry_maybe): Likewise.
1230
1231         * chartab.c (default_chise_data_source): New variable when `CHISE'
1232         is defined.
1233         (Fcopy_char_table): `ct->ds' is deleted.
1234         (open_chise_data_source_maybe): New function.
1235         (Fclose_char_data_source): New function.
1236         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1237         use `chise_ds_open_feature_table' instead of
1238         `chise_open_feature_table'.
1239         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1240         `chise_close_feature_table'; `cit->ds' is deleted.
1241         (syms_of_chartab): Add new builtin function
1242         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1243
1244         * chartab.h (default_chise_data_source): New extern variable.
1245         (open_chise_data_source_maybe): New prototype.
1246         (struct Lisp_Char_Table): Delete `ds'.
1247
1248 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1249
1250         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1251         `CHISE' is defined.
1252
1253 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1254
1255         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1256         not defined; add code for non-libchise setting.
1257         (char_table_close_db_maybe): Likewise.
1258         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1259         defined.
1260         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1261         even if `CHISE' is not defined.
1262         (Freset_char_attribute_table): Likewise.
1263         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1264         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1265         `char_table_get_db'.
1266         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1267         `char_table_close_db_maybe' even if `CHISE' is not defined.
1268
1269 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1270
1271         * chartab.c (char_table_open_db_maybe): New function.
1272         (char_table_close_db_maybe): New function.
1273         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1274         (Freset_char_attribute_table): Likewise.
1275         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1276         `char_table_close_db_maybe'.
1277         (Fload_char_attribute_table): Likewise.
1278
1279 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1280
1281         * chartab.c: Don't include <chise.h> because it is included in
1282         chartab.h.
1283         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1284         defined.
1285         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1286         `CHISE' is defined.
1287         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1288         `CHISE' is defined.
1289         (Fclose_char_attribute_table): Close `ct->feature_table' and
1290         `ct->ds' when `CHISE' is defined.
1291         (Freset_char_attribute_table): Likewise.
1292         (load_char_attribute_maybe): Use `cit->ds' and
1293         `cit->feature_table' when `CHISE' is defined.
1294         (Fload_char_attribute_table): Likewise.
1295
1296         * chartab.h: Include <chise.h> when `CHISE' is defined.
1297         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1298         when `CHISE' is defined.
1299
1300 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1301
1302         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1303         is defined.
1304         (char_table_description): Likewise.
1305         (Fmake_char_table): Likewise.
1306         (Fcopy_char_table): Likewise.
1307         (Fmount_char_attribute_table): Likewise.
1308         (Fclose_char_attribute_table): Likewise.
1309         (Freset_char_attribute_table): Likewise.
1310         (load_char_attribute_maybe): Likewise.
1311         (Fload_char_attribute_table): Likewise.
1312
1313         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1314         defined.
1315
1316 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1317
1318         * chartab.c (load_char_attribute_table_map_func): New function
1319         when CHISE is defined.
1320         (Qload_char_attribute_table_map_function): Don't define when CHISE
1321         is defined.
1322         (Fload_char_attribute_table_map_function): Likewise.
1323         (Fload_char_attribute_table): Use libchise when `CHISE' is
1324         defined.
1325         (syms_of_chartab): Don't define
1326         `load-char-attribute-table-map-function' when CHISE is defined.
1327
1328 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1329
1330         * chartab.c: Include <chise.h> when `CHISE' is defined.
1331         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1332
1333 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1334
1335         * mule-charset.c (charset_code_point): Fix problem when searching
1336         in mother CCS fails with `defined_only' mode.
1337
1338 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1339
1340         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1341         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1342         (put_char_composition): Likewise.
1343         (Fput_char_attribute): Likewise.
1344         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1345
1346 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1347
1348         * chartab.c (Q_ucs): Deleted.
1349         (Fput_char_attribute): Don't refer `->ucs'.
1350         (Fdefine_char): Likewise.
1351         (Ffind_char): Likewise.
1352         (syms_of_chartab): Delete `->ucs'.
1353
1354 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1355
1356         * mule-charset.c (Qmap_cns11643_2): Renamed from
1357         `Qchinese_cns11643_2'.
1358         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1359         `chinese-cns11643-2'.
1360         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1361         `=cns11643-2'.
1362
1363 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1364
1365         * mule-charset.c (Qmap_cns11643_1): Renamed from
1366         `Qchinese_cns11643_1'.
1367         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1368         `chinese-cns11643-1'.
1369         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1370         `=cns11643-1'.
1371
1372 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1373
1374         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1375         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1376         `chinese-gb12345'.
1377         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1378         `=gb12345'.
1379
1380 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1381
1382         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1383         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1384         `chinese-gb2312'.
1385         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1386         `=gb2312'.
1387
1388 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1389
1390         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1391         (syms_of_mule_charset): Add new symbol `=big5' instead of
1392         `chinese-big5'.
1393         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1394
1395 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1396
1397         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1398         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1399         `korean-ksc5601'.
1400         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1401         `=ks-x1001'.
1402
1403 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1404
1405         * mule-charset.c (Qmap_jis_x0212): Renamed from
1406         `Qjapanese_jisx0212'.
1407         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1408         `japanese-jisx0212'.
1409         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1410         `=jis-x0212'.
1411
1412 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1413
1414         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1415         `Qjapanese_jisx0208'.
1416         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1417         of `japanese-jisx0208'.
1418         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1419         `=jis-x0208-1983'.
1420
1421 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1422
1423         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1424         `Qjapanese_jisx0208_1978'.
1425         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1426         of `japanese-jisx0208-1978'.
1427         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1428         `=jis-x0208-1978'.
1429
1430 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1431
1432         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1433         only for XEmacs CHISE.
1434
1435 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1436
1437         * char-ucs.h: Compact non-ISO-IR charset-ids.
1438         (LEADING_BYTE_UCS): Changed to -177.
1439         (LEADING_BYTE_CONTROL_1): Changed to -77.
1440         (LEADING_BYTE_UCS_BMP): Changed to -176.
1441         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1442
1443 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1444
1445         * mule-charset.c (Qiso_ir): New variable.
1446         (Fmake_charset): Recognise new property `iso-ir'.
1447         (syms_of_mule_charset): Add new symbol `iso-ir'.
1448
1449 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1450
1451         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1452         n to -n; charset-id of non ISO-IR sets are changed to positive
1453         numbers.
1454
1455 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1456
1457         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1458         for &MCS-XXXXXXXX; values.
1459
1460 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1461
1462         * mule.c (Vxemacs_chise_version): Renamed from
1463         `Vutf_2000_version'.
1464         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1465         `utf-2000-version' as an alias for `xemacs-chise-version'.
1466
1467 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1468
1469         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1470         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1471         defined.
1472
1473         * config.h.in (CHISE): New macro.
1474
1475 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1476
1477         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1478         of `ucs'.
1479         (Qmap_ucs): New variable.
1480         (syms_of_mule_charset): Add new symbol `=ucs'.
1481         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1482
1483         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1484         (simplify_char_spec): Likewise.
1485
1486         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1487
1488         * char-ucs.h (Qmap_ucs): New extern variable.
1489
1490 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1491
1492         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1493         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1494         don't define it when UTF2000 is not defined.
1495         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1496         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1497         when UTF2000 is not defined.
1498         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1499         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1500
1501 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1502
1503         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1504
1505         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1506         (Qucs_gb): Deleted.
1507         (syms_of_mule_charset): Delete `ucs-gb'.
1508         (complex_vars_of_mule_charset): Likewise.
1509
1510 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1511
1512         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1513
1514         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1515         (Qucs_cns): Deleted.
1516         (syms_of_mule_charset): Delete `ucs-cns'.
1517         (complex_vars_of_mule_charset): Likewise.
1518
1519 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1520
1521         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1522
1523         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1524         (Qucs_jis): Deleted.
1525         (syms_of_mule_charset): Delete `ucs-jis'.
1526         (complex_vars_of_mule_charset): Likewise.
1527
1528 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1529
1530         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1531
1532         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1533         (Qucs_ks): Deleted.
1534         (syms_of_mule_charset): Delete `ucs-ks'.
1535         (complex_vars_of_mule_charset): Likewise.
1536
1537 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1538
1539         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1540         (Qideograph_daikanwa_2): Deleted.
1541         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1542         (complex_vars_of_mule_charset): Likewise.
1543
1544         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1545         (LEADING_BYTE_DAIKANWA_1): Deleted.
1546         (LEADING_BYTE_DAIKANWA_2): Deleted.
1547         (MIN_CHAR_DAIKANWA): Deleted.
1548         (MAX_CHAR_DAIKANWA): Deleted.
1549
1550 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1551
1552         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1553         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1554         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1555
1556         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1557         (Vcharset_ideograph_daikanwa): Deleted.
1558         (Qideograph_hanziku_{1..12}): Deleted.
1559         (Qideograph_daikanwa): Deleted.
1560         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1561         Vcharset_ideograph_daikanwa.
1562         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1563         `ideograph-hanziku-{1..12}'.
1564         (complex_vars_of_mule_charset): Likewise.
1565
1566 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1567
1568         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1569
1570         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1571         (Qideograph_gt_pj_{1..11}): Deleted.
1572         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1573         (complex_vars_of_mule_charset): Likewise.
1574
1575 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1576
1577         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1578         (Vcharset_ideograph_gt): Deleted.
1579         (Qucs_big5): Deleted.
1580         (Qideograph_gt): Deleted.
1581         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1582         `ideograph-gt'.
1583         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1584         and `ideograph-gt'.
1585
1586         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1587         (LEADING_BYTE_GT): Deleted.
1588         (MIN_CHAR_GT): Deleted.
1589         (MAX_CHAR_GT): Deleted.
1590
1591 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1592
1593         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1594
1595 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1596
1597         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1598         (save_uint16_byte_table): Likewise.
1599         (save_byte_table): Likewise; convert values by it.
1600         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1601         for `ideographic-structure'.
1602         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1603         as the filter for `ideographic-structure'.
1604
1605 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1606
1607         * chartab.c (put_char_composition): New function.
1608         (Fput_char_attribute): Use `put_char_composition'; use
1609         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1610
1611         * fns.c (simplify_char_spec): New function.
1612         (char_ref_simplify_spec): New function.
1613         (Fchar_refs_simplify_char_specs): New function.
1614         (syms_of_fns): Add new builtin function
1615         `char-refs-simplify-char-specs'.
1616
1617 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1618
1619         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1620         (Qideograph_cbeta): Deleted.
1621         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1622         (complex_vars_of_mule_charset): Likewise.
1623
1624         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1625         (MIN_CHAR_CBETA): Comment out.
1626         (MAX_CHAR_CBETA): Likewise.
1627
1628 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1629
1630         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1631         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1632         CHISE client feature.
1633
1634 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1635
1636         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1637
1638 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1639
1640         * mule-charset.c (charset_lookup_description_1): Use
1641         `NUM_LEADING_BYTES' in UTF-2000.
1642
1643 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1644
1645         * char-ucs.h (GC_CHARSETP): Deleted.
1646
1647 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1648
1649         * char-ucs.h (MAX_CHAR_GT): Updated.
1650
1651 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1652
1653         * text-coding.c: Sync with XEmacs 21.4.10.
1654
1655 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1656
1657         * mule-charset.c (Vcharset_china3_jef): Deleted.
1658         (Qchina3_jef): Deleted.
1659         (syms_of_mule_charset): Don't define `china3-jef'.
1660         (complex_vars_of_mule_charset): Likewise.
1661
1662         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1663         (MIN_CHAR_CHINA3_JEF): Comment out.
1664         (MAX_CHAR_CHINA3_JEF): Comment out.
1665
1666 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1667
1668         * mule-charset.c (Vcharset_ucs_gb): New variable.
1669         (Qucs_gb): New variable.
1670         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1671         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1672
1673         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1674
1675 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1676
1677         * mule-charset.c (charset_code_point): if a coded-charset has a
1678         final-byte, don't inherit the builtin range of the mother CCS.
1679
1680 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1681
1682         * mule-charset.c (charset_code_point): Fix problem about
1683         inheritance.
1684
1685 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1686
1687         * mule-charset.c (decode_builtin_char): Reorganized.
1688
1689 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1690
1691         * text-coding.c (char_encode_as_entity_reference): Modify for
1692         `charset_code_point'.
1693         (char_encode_shift_jis): Likewise.
1694         (char_encode_big5): Likewise.
1695         (char_encode_utf8): Likewise.
1696         (char_encode_iso2022): Likewise.
1697
1698         * mule-charset.c (charset_code_point): Add new argument
1699         `defined_only'.
1700         (Fencode_char): Add new optional argument `defined_only'.
1701
1702         * chartab.c (put_char_table): Modify for `charset_code_point'.
1703
1704         * char-ucs.h (charset_code_point): Add new argument
1705         `defined_only'.
1706         (encode_char_1): Modify for `charset_code_point'.
1707
1708 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1709
1710         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1711         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1712
1713 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1714
1715         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1716         (Qjis_x0208): Likewise.
1717         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1718         XCHARSET_FINAL(charset).
1719         (charset_code_point): Modify condition for final-byte based
1720         builtin-chars.
1721         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1722         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1723         in UTF-2000; specify `=jis-x0208' as the mother of
1724         `japanese-jisx0208-1978', `japanese-jisx0208' and
1725         `japanese-jisx0208-1990' in UTF-2000.
1726
1727 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1728
1729         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1730
1731 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1732
1733         * text-coding.c (decode_coding_utf16): Support UTF-16.
1734         (char_encode_utf16): Fixed.
1735
1736 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1737
1738         * text-coding.c (Qutf16): New variable in MULE.
1739         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1740         (Fcoding_system_type): Add `utf-16' in MULE.
1741         (struct detection_state): Add a structure for utf16 in MULE.
1742         (detect_coding_type): Setup st->utf16.mask in MULE.
1743         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1744         MULE.
1745         (reset_encoding_stream): Use `char_encode_utf16' and
1746         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1747         (detect_coding_utf16): New function [incomplete].
1748         (decode_coding_utf16): New function [support only UCS-2].
1749         (char_encode_utf16): New function.
1750         (char_finish_utf16): New function.
1751         (syms_of_file_coding): Add new symbol `utf-16'; setup
1752         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1753
1754         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1755         UTF-2000.
1756         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1757         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1758
1759 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1760
1761         * chartab.c (put_char_table): When a charset is specified as a
1762         range in UTF-2000, don't support builtin characters.
1763
1764 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1765
1766         * mule-charset.c (decode_defined_char): Don't refer external
1767         database if Qunbound or Qnil are found.
1768         (Fsave_charset_mapping_table): Don't define it if
1769         HAVE_CHISE_CLIENT is not defined.
1770         (Freset_charset_mapping_table): New function.
1771         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1772         found in external database.
1773         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1774         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1775         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1776
1777 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1778
1779         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1780         not.
1781
1782 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1783
1784         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1785         Q_lowercase, Q_uppercase in UTF-2000.
1786
1787         * chartab.c (get_char_table): Add special code for the standard
1788         case table to use character attribute `->downcase' and
1789         `->uppercase' for case operations in UTF-2000.
1790
1791         * casetab.c (Qflippedcase): New variable in UTF-2000.
1792         (Q_lowercase): Likewise.
1793         (Q_uppercase): Likewise.
1794         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1795         and `->uppercase' in UTF-2000.
1796         (complex_vars_of_casetab): Assign attribute name `downcase' to
1797         downcase and CANON table of Vstandard_case_table in UTF-2000;
1798         assign attribute name `flippedcase' to upcase and EQV table of
1799         Vstandard_case_table in UTF-2000.
1800
1801 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1802
1803         * text-coding.c (decode_add_er_char): Support isolated-chars.
1804         (char_encode_as_entity_reference): Likewise.
1805
1806 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1807
1808         * emacs.c (Vutf_2000_lisp_directory): New variable.
1809         (Vconfigure_utf_2000_lisp_directory): Likewise.
1810         (complex_vars_of_emacs): Add new variable
1811         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1812
1813 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1814
1815         * char-ucs.h (DECODE_CHAR): Delete special code for
1816         `chinese-big5-1' and `chinese-big5-2'.
1817
1818         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1819         (Qbig5_2): Likewise.
1820         (decode_defined_char): Support CONVERSION_BIG5_1 and
1821         CONVERSION_BIG5_2.
1822         (decode_builtin_char): Likewise.
1823         (charset_code_point): Likewise.
1824         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1825         'conversion in UTF-2000.
1826         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1827         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1828         `chinese-big5-2' as children of `chinese-big5'.
1829
1830         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1831         (CONVERSION_BIG5_2): New macro.
1832
1833 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1834
1835         * text-coding.c (char_encode_big5): Support entity-reference.
1836
1837 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1838
1839         * text-coding.c (char_encode_as_entity_reference): New function.
1840         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1841
1842 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1843
1844         * text-coding.c (decode_coding_big5): Support entity-reference
1845         decoding feature.
1846
1847 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1848
1849         * text-coding.c (allocate_coding_system): Initialize initial
1850         charsets for CODESYS_UTF8.
1851         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1852         charset-g2 for CODESYS_UTF8.
1853         (decode_coding_utf8): Use charset-g0.
1854         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1855         to force variants to map to UCS.
1856
1857 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1858
1859         * text-coding.c (Qutf_8_mcs): New variable.
1860         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1861         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1862         instead of `utf-8' in UTF-2000.
1863
1864 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1865
1866         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1867         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1868         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1869         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1870         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1871         CONVERSION_96x96x96x96 are introduced.
1872         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1873         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1874         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1875
1876         * char-ucs.h (CONVERSION_94): New macro.
1877         (CONVERSION_96): New macro.
1878         (CONVERSION_94x94): New macro.
1879         (CONVERSION_96x96): New macro.
1880         (CONVERSION_94x94x94): New macro.
1881         (CONVERSION_96x96x96): New macro.
1882         (CONVERSION_94x94x94x60): New macro.
1883         (CONVERSION_94x94x94x94): New macro.
1884         (CONVERSION_96x96x96x96): New macro.
1885
1886 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1887
1888         * chartab.c (Vcharacter_variant_table): Deleted.
1889         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1890         of `Vcharacter_variant_table'.
1891         (Fput_char_attribute): Likewise.
1892         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1893         (complex_vars_of_chartab): Likewise.
1894
1895 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1896
1897         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1898
1899         * fns.c (Qideographic_structure): New variable.
1900         (Qkeyword_char): New variable.
1901         (ids_format_unit): New function.
1902         (Fideographic_structure_to_ids): New function.
1903         (syms_of_fns): Add new symbols `ideographic-structure' and
1904         `:char'; add new builtin function `ideographic-structure-to-ids'.
1905
1906         * data.c (Fchar_ref_p): New function.
1907         (syms_of_data): Add new builtin function `char-ref-p'.
1908
1909         * chartab.h: Add an EXFUN for `Ffind_char'.
1910
1911 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1912
1913         * text-coding.c (Vcharacter_composition_table): Deleted.
1914         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1915         in every UTF-2000.
1916
1917         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1918         UTF-2000.
1919         (Vcharacter_composition_table): Deleted.
1920         (Fget_composite_char): Use the implementation for external-DB
1921         support in every UTF-2000.
1922         (Fput_char_attribute): Likewise.
1923         (char_attribute_system_db_file): Don't define if external-DB
1924         feature is not available.
1925         (Fsave_char_attribute_table): Likewise.
1926         (Fmount_char_attribute_table): Likewise.
1927         (Fclose_char_attribute_table): Likewise.
1928         (Freset_char_attribute_table): Likewise.
1929         (Fload_char_attribute_table): Likewise.
1930         (syms_of_chartab): Don't define `save-char-attribute-table',
1931         `mount-char-attribute-table', `reset-char-attribute-table',
1932         `close-char-attribute-table' and `load-char-attribute-table' if
1933         external-DB feature is not available.
1934         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1935
1936 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1937
1938         * text-coding.c (Qcomposition): Add extern if external-DB feature
1939         is supported.
1940         (Vcharacter_composition_table): Don't add extern if external-DB
1941         feature is supported.
1942         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1943         character composition rule if external-DB feature is supported.
1944
1945         * chartab.c (Vcharacter_composition_table): Don't define if
1946         external-DB feature is supported.
1947         (Qcomposition): New variable.
1948         (Fget_composite_char): New implementation for external-DB support.
1949         (Fput_char_attribute): Use `composition' property of each
1950         character instead of `Vcharacter_composition_table' to store
1951         character-composition rules if external-DB feature is supported.
1952         (syms_of_chartab): Add new symbol `composition'.
1953         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1954         external-DB feature is supported.
1955
1956 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1957
1958         * chartab.c (Vchar_db_stingy_mode): New variable.
1959         (load_char_attribute_maybe): Close database if
1960         Vchar_db_stingy_mode is not NIL.
1961         (Fload_char_attribute_table_map_function): Use
1962         `get_char_id_table_0' instead of `get_char_id_table'.
1963         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1964
1965         * chartab.h (get_char_id_table_0): New inline function.
1966         (get_char_id_table): Use `get_char_id_table_0'.
1967
1968 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1969
1970         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1971         and `COMPOSE_ADD_CHAR'.
1972         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1973
1974 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1975
1976         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1977         instead of `DECODE_ADD_UCS_CHAR'.
1978         (COMPOSE_ADD_CHAR): Likewise.
1979
1980 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1981
1982         * text-coding.c (decode_flush_er_chars): New inline function.
1983         (decode_add_er_char): New function.
1984         (decode_coding_utf8): Use `decode_flush_er_chars' and
1985         `decode_add_er_char'.
1986
1987 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1988
1989         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1990         done before `decode_output_utf8_partial_char'.
1991
1992         * mule-charset.c (complex_vars_of_mule_charset): Specify
1993         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1994         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1995
1996 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1997
1998         * mule-charset.c (decode_defined_char): New function; search
1999         mother.
2000         (decode_builtin_char): Don't search mother if
2001         XCHARSET_MAX_CODE(charset) == 0.
2002         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
2003         == 0 even if code >= XCHARSET_MAX_CODE(charset).
2004         (Fdecode_char): Use `decode_defined_char' instead of
2005         `DECODE_DEFINED_CHAR'.
2006         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
2007         mother of `Vcharset_ucs_jis'.
2008
2009         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
2010         instead of `DECODE_DEFINED_CHAR'.
2011
2012         * char-ucs.h (decode_defined_char): Renamed from
2013         `DECODE_DEFINED_CHAR'; changed to normal function.
2014         (DECODE_CHAR): Use `decode_defined_char' instead of
2015         `DECODE_DEFINED_CHAR'.
2016
2017         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
2018
2019 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2020
2021         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
2022
2023         * text-coding.c (Vcoded_charset_entity_reference_alist): New
2024         variable.
2025         (Quse_entity_reference): New variable.
2026         (Qd): New variable.
2027         (Qx): New variable.
2028         (QX): New variable.
2029         (coding_system_description): Add description for
2030         `ccs_priority_list'.
2031         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
2032         (allocate_coding_system): Initialize `ccs_priority_list' in
2033         UTF-2000.
2034         (Fmake_coding_system): Add description about
2035         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
2036         (codesys).
2037         (Fcoding_system_property): Accept `disable-composition' and
2038         `use-entity-reference' in UTF-2000.
2039         (struct decoding_stream): Add new member `er_counter' and `er_buf'
2040         in UTF-2000.
2041         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
2042         (decode_coding_utf8): Decode entity-reference if
2043         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
2044         (char_encode_utf8): Encode non-Unicode characters as
2045         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
2046         (str->codesys).
2047         (syms_of_file_coding): Add new symbols `use-entity-reference',
2048         `d', `x', `X'.
2049         (vars_of_file_coding): Add new variable
2050         `coded-charset-entity-reference-alist'.
2051         (complex_vars_of_file_coding): Declare `disable-composition' and
2052         `use-entity-reference' to be coding-system-properties in UTF-2000.
2053
2054         * file-coding.h (struct Lisp_Coding_System): Add new member
2055         `use_entity_reference' and `ccs_priority_list'.
2056         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2057         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
2058         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2059
2060 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2061
2062         * chartab.c (save_uint8_byte_table): Don't clear the table.
2063         (save_uint16_byte_table): Likewise.
2064         (save_byte_table): Likewise.
2065         (Fmount_char_attribute_table): New function.
2066         (syms_of_chartab): Add new builtin function
2067         `mount-char-attribute-table'.
2068
2069 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2070
2071         * mule-charset.c (Fsave_charset_mapping_table): Open database as
2072         "w+" mode.
2073         (load_char_decoding_entry_maybe): Open database as read-only mode.
2074
2075         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
2076         open database as "w+" mode.
2077         (load_char_attribute_maybe): Open database as read-only mode.
2078         (Fload_char_attribute_table): Likewise.
2079
2080 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2081
2082         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
2083         (char_table_description): Delete member `db_file'.
2084         (Fmake_char_table): Don't refer `ct->db_file'.
2085         (Fcopy_char_table): Likewise.
2086         (Fsave_char_attribute_table): Likewise.
2087         (Fclose_char_attribute_table): Likewise.
2088         (Freset_char_attribute_table): Likewise.
2089         (load_char_attribute_maybe): Likewise.
2090         (Fload_char_attribute_table): Likewise.
2091
2092         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
2093
2094 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2095
2096         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
2097         (Fsave_char_attribute_table): Don't check `ct->db_file' if
2098         `ct->db' is living.
2099         (load_char_attribute_maybe): Likewise.
2100         (Fload_char_attribute_table): Likewise.
2101
2102 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2103
2104         * chartab.c (Fclose_char_attribute_table): Set Qnil on
2105         `ct->db_file' unconditionally.
2106
2107 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2108
2109         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
2110         UTF-2000.
2111         (char_table_description): Add description for `db_file' and `db'
2112         in UTF-2000.
2113         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
2114         UTF-2000.
2115         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
2116         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
2117         (Fclose_char_attribute_table): New function.
2118         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
2119         (load_char_attribute_maybe): Change interface; use `cit->db_file'
2120         and `cit->db'.
2121         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
2122         (syms_of_chartab): Add new builtin function
2123         `Fclose_char_attribute_table'.
2124
2125 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2126
2127         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
2128         `db' in UTF-2000.
2129         (load_char_attribute_maybe): Change interface.
2130         (get_char_id_table): Modify for `load_char_attribute_maybe'.
2131
2132 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2133
2134         * database.h: Add an EXFUN for `Fdatabase_live_p'.
2135
2136 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2137
2138         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
2139         instead of `DECODE_CHAR' for mother; don't use special code for
2140         chinese-big5 to use code space of chinese-big5-1 and
2141         chinese-big5-2.
2142         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
2143         `MAX_CHAR_BIG5_CDP' for chinese-big5.
2144
2145         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
2146         (MAX_CHAR_BIG5_CDP): Revival.
2147
2148 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2149
2150         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
2151         the XLFD registry-encoding name of `chinese-big5'.
2152
2153 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2154
2155         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
2156         (Qchinese_big5_cdp): Deleted.
2157         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
2158         (complex_vars_of_mule_charset): Delete coded-charset
2159         `chinese-big5-cdp'.
2160
2161         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
2162         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
2163         `CHARSET_ID_OFFSET - n' for private CCS.
2164         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
2165         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
2166         of `MIN_LEADING_BYTE'.
2167         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
2168         `(CHARSET_ID_OFFSET - 97)'.
2169         (MIN_CHAR_BIG5_CDP): Deleted.
2170         (MAX_CHAR_BIG5_CDP): Deleted.
2171
2172 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2173
2174         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
2175
2176 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2177
2178         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
2179         (vars_of_mule): Add new variable `utf-2000-version' [moved from
2180         chartab.c].
2181
2182         * chartab.c (Vutf_2000_version): Moved to mule.c.
2183         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
2184
2185 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2186
2187         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
2188         when HAVE_CHISE_CLIENT is not defined.
2189
2190         * mule.c (vars_of_mule): Provide feature `chise' when
2191         HAVE_CHISE_CLIENT is defined.
2192
2193 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2194
2195         * config.h.in (UTF2000): Add comment.
2196         (HAVE_CHISE_CLIENT): New macro.
2197
2198 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2199
2200         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
2201         CONSP.
2202         (Fput_char_attribute): Likewise.
2203         (char_attribute_system_db_file): Encode file-name of attribute.
2204         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
2205         the initial value.
2206
2207 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2208
2209         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
2210         (Fsave_charset_mapping_table): Use
2211         `char_attribute_system_db_file'.
2212         (load_char_decoding_entry_maybe): Likewise.
2213
2214         * chartab.h (Qsystem_char_id): New external variable.
2215         (char_attribute_system_db_file): New prototype.
2216
2217         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2218         (char_attribute_system_db_file): New function.
2219         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2220         (Freset_char_attribute_table): Likewise.
2221         (load_char_attribute_maybe): Likewise.
2222         (Fload_char_attribute_table): Likewise.
2223         (syms_of_chartab): Add new symbol `system-char-id'.
2224
2225 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2226
2227         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2228         `XCHARSET_GRAPHIC(ccs)'.
2229
2230 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2231
2232         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2233
2234 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2235
2236         * chartab.c (Q_ucs_variants): New variable.
2237         (syms_of_chartab): Add new symbol `->ucs-variants'.
2238         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2239         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2240         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2241
2242         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2243
2244         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2245         `HAVE_DATABASE' is defined.
2246         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2247         `HAVE_DATABASE' is defined.
2248
2249 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2250
2251         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2252         attribute-table.
2253         (Freset_char_attribute_table): New function.
2254         (syms_of_chartab): Add new builtin function
2255         `reset-char-attribute-table'.
2256
2257 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2258
2259         * chartab.c (load_char_attribute_maybe): Don't make directories.
2260
2261 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2262
2263         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2264
2265         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2266         for decoding-table.
2267
2268 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2269
2270         * mule-charset.c (Fsave_charset_mapping_table): Use
2271         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2272
2273         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2274         instead of `XCHARSET_CHARS'.
2275
2276 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2277
2278         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2279         (XCHARSET_BYTE_SIZE): Likewise.
2280
2281         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2282         mule-charset.c].
2283         (XCHARSET_BYTE_SIZE): Likewise.
2284
2285 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2286
2287         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2288         data-directory to store database.
2289         (Fsave_char_attribute_table): Likewise.
2290         (load_char_attribute_maybe): Likewise.
2291         (Fload_char_attribute_table): Likewise.
2292
2293 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2294
2295         * mule-charset.c (Fsave_charset_mapping_table): New function.
2296         (syms_of_mule_charset): Add new builtin function
2297         `save-charset-mapping-table'.
2298
2299 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2300
2301         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2302         (get_ccs_octet_table): New inline function.
2303         (put_ccs_octet_table): Likewise.
2304         (decoding_table_put_char): Use `get_ccs_octet_table' and
2305         `put_ccs_octet_table'.
2306         (decoding_table_remove_char): Use `decoding_table_put_char'.
2307         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2308
2309         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2310         into encoding_table.
2311         (make_charset): Use Qunbound instead Qnil as initial value of
2312         decoding_table.
2313
2314 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2315
2316         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2317         element is Qunloaded.
2318         (map_over_uint16_byte_table): Likewise.
2319         (map_over_byte_table): Likewise.
2320         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2321         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2322         database support, load encoding-table of the specified
2323         coded-charset if it is not loaded yet.
2324         (save_uint8_byte_table): New function of UTF-2000 with external
2325         database support.
2326         (save_uint16_byte_table): Likewise.
2327         (save_byte_table): Likewise.
2328         (Fput_char_attribute): Don't store value into external database
2329         even if the external database feature is supported in UTF-2000;
2330         set `attribute' as name of char-table if the external database
2331         feature is supported.
2332         (Fsave_char_attribute_table): New function in UTF-2000.
2333         (syms_of_chartab): Add new builtin function
2334         `save-char-attribute-table' in UTF-2000.
2335
2336 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2337
2338         * chartab.c (char_attribute_table_to_put): New variable in
2339         UTF-2000.
2340         (Qput_char_table_map_function): Likewise.
2341         (value_to_put): Likewise.
2342         (Fput_char_table_map_function): New function in UTF-2000.
2343         (put_char_table): Use `Fmap_char_attribute' for
2344         CHARTAB_RANGE_CHARSET in UTF-2000.
2345         (Fput_char_attribute): Store symbol instead of string in
2346         `XCHAR_TABLE_NAME (table)'.
2347         (load_char_attribute_maybe): Likewise.
2348         (syms_of_chartab): Add new symbol/function
2349         `put-char-table-map-function'.
2350
2351 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2352
2353         * database.h: Add new EXFUN for `Fmap_database'.
2354
2355         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2356         (syms_of_database): Likewise.
2357
2358         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2359         UTF-2000.
2360         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2361         (XCHAR_TABLE_UNLOADED): Likewise.
2362
2363         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2364         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2365         HAVE_DATABASE is defined.
2366         (char_attribute_table_to_load): New variable of UTF-2000 with
2367         external database support.
2368         (Qload_char_attribute_table_map_function): Likewise.
2369         (Fload_char_attribute_table_map_function): New function of
2370         UTF-2000 with external database support.
2371         (Fload_char_attribute_table): New function of UTF-2000.
2372         (Fmap_char_attribute): Call Fload_char_attribute_table if
2373         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2374         (syms_of_chartab): Add new symbol and function
2375         `load-char-attribute-table-map-function' in UTF-2000 with external
2376         database support; add new function `load-char-attribute-table' in
2377         UTF-2000.
2378
2379 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2380
2381         * chartab.h (load_char_attribute_maybe): New prototype for
2382         UTF-2000 with DATABASE support.
2383         (get_char_id_table): Use `load_char_attribute_maybe' if
2384         HAVE_DATABASE is defined.
2385
2386         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2387         with DATABASE support.
2388
2389 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2390
2391         * chartab.c (Fput_char_attribute): Use S-expression as key of
2392         external database.
2393
2394         * chartab.h (get_char_id_table): Use S-expression as key of
2395         external database.
2396
2397 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2398
2399         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2400         if an element is not loaded, load the corresponding attributes
2401         from an external database.
2402         (map_over_uint16_byte_table): Likewise.
2403         (map_over_byte_table): Likewise.
2404         (map_char_table): Modify for `map_over_uint8_byte_table',
2405         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2406         element is not loaded, load the corresponding attributes from an
2407         external database.
2408         (Fput_char_attribute): Change initial values to Qunloaded.
2409
2410         * chartab.h (get_char_id_table): If a character attribute is not
2411         loaded and the attribute value is not found in an external
2412         database, store Qunbound as the attribute value.
2413
2414 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2415
2416         * chartab.c (BT_UINT8_unloaded): New macro.
2417         (UINT8_VALUE_P): Accept Qunloaded.
2418         (UINT8_ENCODE): Likewise.
2419         (UINT8_DECODE): Likewise.
2420         (BT_UINT16_unloaded): New macro.
2421         (UINT16_VALUE_P): Accept Qunloaded.
2422         (UINT16_ENCODE): Likewise.
2423         (UINT16_DECODE): Likewise.
2424         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2425         BT_UINT16_unloaded.
2426         (mark_char_table): Mark `ct->name' in UTF-2000.
2427         (char_table_description): Add `name' in UTF-2000.
2428         (Fmake_char_table): Initialize `ct->name'.
2429         (Fcopy_char_table): Copy `ct->name'.
2430         (Fput_char_attribute): Store value into an external database if
2431         HAVE_DATABASE is defined.
2432
2433         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2434         UTF-2000.
2435         (CHAR_TABLE_NAME): New macro in UTF-2000.
2436         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2437         (get_char_id_table): Try to read an external database if Qunloaded
2438         is stored in a table.
2439
2440         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2441         Qunloaded.
2442
2443 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2444
2445         * database.h: Add EXFUN definitions for Fopen_database,
2446         Fput_database, Fget_database and Fclose_database.
2447
2448         * data.c (Qunloaded): New variable in UTF-2000.
2449
2450         * lisp.h (Qunloaded): New variable in UTF-2000.
2451
2452 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2453
2454         * mule-charset.c (put_char_ccs_code_point): Modify for
2455         `decoding_table_remove_char' and `decoding_table_put_char'.
2456         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2457
2458         * char-ucs.h (decoding_table_remove_char): Change arguments to
2459         hide decoding_table vector.
2460         (decoding_table_put_char): Likewise.
2461
2462 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2463
2464         * mule-charset.c (decoding_table_remove_char): Moved to
2465         char-ucs.h.
2466         (decoding_table_put_char): Likewise.
2467
2468         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2469         from mule-charset.c].
2470         (decoding_table_remove_char): New inline function [moved from
2471         mule-charset.c].
2472         (decoding_table_put_char): Likewise.
2473
2474 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2475
2476         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2477         extension.
2478
2479 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2480
2481         * mule-charset.c (decode_builtin_char): Support mother charsets.
2482
2483 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2484
2485         * mule-charset.c (Q94x94x60): New variable.
2486         (charset_code_point): Support conversion `94x94x60'.
2487         (Fmake_charset): Likewise.
2488         (syms_of_mule_charset): Add new symbol `94x94x60'.
2489
2490         * char-ucs.h (CONVERSION_94x94x60): New macro.
2491
2492 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2493
2494         * mule-charset.c (charset_code_point): Unify code about
2495         `code-offset'.
2496
2497 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2498
2499         * mule-charset.c (charset_code_point): Merge code about builtin
2500         characters into code about mother charsets; don't use
2501         `range_charset_code_point'.
2502         (range_charset_code_point): Deleted.
2503
2504 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2505
2506         * mule-charset.c (Qcode_offset): New variable.
2507         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2508         `max-code'; accept new property `code-offset'.
2509         (syms_of_mule_charset): Add new symbol `code-offset'.
2510
2511 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2512
2513         * mule-charset.c (range_charset_code_point): Fixed.
2514
2515 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2516
2517         * mule-charset.c (decode_builtin_char): Change semantics of
2518         code-offset of coded-charset.
2519         (charset_code_point): Likewise.
2520         (range_charset_code_point): Likewise.
2521         (complex_vars_of_mule_charset): Modify for the change.
2522
2523 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2524
2525         * mule-charset.c (Fencode_char): Reverse arguments.
2526
2527         * mule-charset.c (charset_code_point): Fixed.
2528
2529 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2530
2531         * mule-charset.c (Vcharset_mojikyo): Deleted.
2532         (Vcharset_mojikyo_2022_1): Deleted.
2533         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2534         (Qmin_code): New variable in UTF-2000.
2535         (Qmax_code): Likewise.
2536         (Qmother): Likewise.
2537         (Qconversion): Likewise.
2538         (Q94x60): Likewise.
2539         (Qmojikyo): Deleted.
2540         (Qmojikyo_2022_1): Deleted.
2541         (Qmojikyo_pj_{1..22}): Deleted.
2542         (mark_charset): Mark `cs->mother'.
2543         (charset_description): Add description for `mother'.
2544         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2545         new arguments `mother' and `conversion'; use
2546         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2547         (charset_code_point): Moved from char-ucs.h; support `mother'
2548         charset feature.
2549         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2550         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2551         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2552         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2553         allow 2 as the value of `graphic' in UTF-2000; add new properties
2554         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2555         require `final' in UTF-2000; modify for `make_charset'.
2556         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2557         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2558         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2559         (Fencode_char): New function.
2560         (syms_of_mule_charset): Add new builtin function `encode-char' in
2561         UTF-2000; add new symbols `min-code', `max-code', `mother',
2562         `conversion' and `94x60'; delete symbols `mojikyo',
2563         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2564         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2565         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2566         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2567
2568         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2569         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2570
2571         * char-ucs.h (Vcharset_mojikyo): Deleted.
2572         (Vcharset_mojikyo_2022_1): Deleted.
2573         (LEADING_BYTE_MOJIKYO): Deleted.
2574         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2575         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2576         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2577         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2578         add new member `mother'; add new member `conversion'.
2579         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2580         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2581         (CHARSET_MOTHER): New macro.
2582         (CHARSET_CONVERSION): New macro.
2583         (CONVERSION_IDENTICAL): New macro.
2584         (CONVERSION_94x60): New macro.
2585         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2586         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2587         (XCHARSET_MOTHER): New macro.
2588         (XCHARSET_CONVERSION): New macro.
2589         (MIN_CHAR_MOJIKYO): Deleted.
2590         (MAX_CHAR_MOJIKYO): Deleted.
2591         (DECODE_MOJIKYO_2022): Deleted.
2592         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2593         (charset_code_point): Changed to non-inline function.
2594         (encode_char_1): Use `charset_code_point'.
2595         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2596
2597 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2598
2599         * lread.c (read_compiled_function): Fix prototype.
2600         (read_vector): Likewise.
2601
2602 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2603
2604         * lrecord.h (struct lrecord_header): Delete `older'.
2605         (set_lheader_implementation): Delete code for `older'.
2606         (set_lheader_older_implementation): Deleted.
2607         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2608         (OLDER_RECORD_P): Deleted.
2609         (OLDER_RECORD_HEADER_P): Deleted.
2610         (alloc_older_lcrecord): Deleted.
2611         (alloc_older_lcrecord_type): Deleted.
2612
2613         * alloc.c (all_older_lcrecords): Deleted.
2614         (alloc_older_lcrecord): Deleted.
2615         (disksave_object_finalization_1): Delete code for older objects.
2616         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2617         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2618
2619 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2620
2621         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2622         instead of `make_older_vector'.
2623         (put_char_ccs_code_point): Likewise.
2624         (mark_charset): Mark `cs->decoding_table'.
2625         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2626
2627         * lisp.h (make_older_vector): Deleted.
2628         (make_vector_newer): Deleted.
2629
2630         * config.h.in (HAVE_GGC): Deleted.
2631
2632         * alloc.c (make_older_vector): Deleted.
2633         (make_vector_newer_1): Deleted.
2634         (make_vector_newer): Deleted.
2635
2636 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2637
2638         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2639         (Qideograph_daikanwa_2): New variable.
2640         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2641         (complex_vars_of_mule_charset): Add new coded-charset
2642         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2643         `LEADING_BYTE_DAIKANWA'.
2644
2645         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2646         (LEADING_BYTE_DAIKANWA_1): New macro.
2647         (LEADING_BYTE_DAIKANWA_2): New macro.
2648         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2649
2650 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2651
2652         * mule-charset.c (complex_vars_of_mule_charset): Change
2653         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2654         the second revised version.
2655
2656 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2657
2658         * mule-charset.c (Vcharset_ucs_smp): New variable.
2659         (Vcharset_ucs_sip): New variable.
2660         (Qucs_smp): New variable.
2661         (Qucs_sip): New variable.
2662         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2663         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2664         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2665         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2666         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2667         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2668
2669         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2670         (LEADING_BYTE_UCS_SIP): New macro.
2671         (MIN_CHAR_SMP): New macro.
2672         (MAX_CHAR_SMP): New macro.
2673         (MIN_CHAR_SIP): New macro.
2674         (MAX_CHAR_SIP): New macro.
2675
2676 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2677
2678         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2679         utf-2000.
2680
2681 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2682
2683         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2684         value; don't store value into `encoding_table' of `Lisp_Charset'.
2685         (mark_charset): `encoding_table' was deleted.
2686         (charset_description): Likewise.
2687         (make_charset): Likewise.
2688         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2689         `put_char_ccs_code_point'.
2690
2691         * chartab.h (Fput_char_attribute): New EXFUN.
2692
2693         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2694         is unified with normal symbol space.
2695         (Fget_char_attribute): Likewise.
2696         (Fput_char_attribute): Likewise; behavior of
2697         `put_char_ccs_code_point' is changed.
2698
2699         * char-ucs.h: Include "elhash.h".
2700         (Vchar_attribute_hash_table): New external variable.
2701         (struct Lisp_Charset): Delete `encoding_table'.
2702         (CHARSET_ENCODING_TABLE): New implementation; refer
2703         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2704         `Lisp_Charset'.
2705
2706 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2707
2708         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2709         (cs) == 0.
2710
2711 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2712
2713         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2714         `chinese-big5'.
2715
2716 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2717
2718         * chartab.c (uint8_byte_table_description): New constant.
2719         (uint8-byte-table): Use `uint8_byte_table_description'.
2720         (uint16_byte_table_description): New constant.
2721         (uint16-byte-table): Use `uint16_byte_table_description'.
2722
2723 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2724
2725         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2726         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2727
2728 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2729
2730         * mule-charset.c (Vcharset_ucs_ks): New variable.
2731         (Qucs_ks): New variable.
2732         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2733         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2734
2735         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2736
2737 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2738
2739         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2740         (Fdecode_char): Likewise.
2741
2742         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2743         chartab.h.
2744         (Fdefine_char): Modify for Fdecode_char.
2745         (Ffind_char): Likewise.
2746
2747         * mule-charset.c (Fdecode_char): Add new optional argument
2748         `defined-only'.
2749         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2750
2751 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2752
2753         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2754         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2755         (allocate_coding_system): Initialize initial-charsets of
2756         CODESYS_BIG5 in XEmacs UTF-2000.
2757         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2758         CODESYS_BIG5 in XEmacs UTF-2000.
2759         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2760         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2761
2762         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2763         variables.
2764         (Qideograph_hanziku_{1 .. 12}): Likewise.
2765         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2766         .. 12}'.
2767         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2768         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2769         `ideograph-hanziku-{1 .. 12}'.
2770
2771         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2772         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2773         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2774         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2775         (DECODE_DEFINED_CHAR): New inline function.
2776         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2777
2778 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2779
2780         * mule-charset.c (Vcharset_china3_jef): Renamed from
2781         `Vcharset_japanese_jef_china3'.
2782         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2783         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2784         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2785         (syms_of_mule_charset): Rename `china3-jef' from
2786         `japanese-jef-china3'.
2787         (complex_vars_of_mule_charset): Likewise; rename
2788         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2789
2790         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2791         `LEADING_BYTE_JEF_CHINA3'.
2792         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2793         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2794
2795 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2796
2797         * mule-charset.c (encode_builtin_char_1): Comment out special code
2798         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2799
2800         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2801         (MAX_CHAR_MOJIKYO_0): Comment out.
2802         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2803         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2804         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2805         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2806
2807 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2808
2809         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2810         (Qideograph_cbeta): New variable.
2811         (encode_builtin_char_1): Comment out special code for
2812         coded-charset `mojikyo' and `japanese-jef-china3'.
2813         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2814         (complex_vars_of_mule_charset): Add new coded-charset
2815         `ideograph-cbeta'.
2816
2817         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2818         (MIN_CHAR_CBETA): New macro.
2819         (MAX_CHAR_CBETA): New macro.
2820
2821 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2822
2823         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2824         (LEADING_BYTE_JEF_CHINA3): New macro.
2825         (MIN_CHAR_JEF_CHINA3): New macro.
2826         (MAX_CHAR_JEF_CHINA3): Likewise.
2827         (DECODE_CHAR): Fixed.
2828
2829 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2830
2831         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2832         (Qjapanese_jef_china3): New variable.
2833         (encode_builtin_char_1): Support `japanese-jef-china3'.
2834         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2835         (complex_vars_of_mule_charset): Add new coded-charset
2836         `japanese-jef-china3'.
2837
2838 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2839
2840         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2841         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2842         94^4, 96^3, 96^4, 128^n and 256^n set.
2843         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2844         (map_char_table): Likewise.
2845
2846 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2847
2848         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2849         UTF-2000.
2850
2851 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2852
2853         * chartab.h (get_char_id_table): New inline function.
2854
2855         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2856         function.
2857
2858 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2859
2860         * chartab.h (decode_char_table_range): New prototype in XEmacs
2861         UTF-2000.
2862         (put_char_id_table): New inline function in XEmacs UTF-2000.
2863
2864         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2865         function.
2866         (decode_char_table_range): Delete static declaration in XEmacs
2867         UTF-2000.
2868
2869 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2870
2871         * chartab.c (put_char_id_table): Use `put_char_table'.
2872
2873 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2874
2875         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2876         (map_over_uint16_byte_table): Likewise.
2877         (map_over_byte_table): Likewise.
2878         (map_char_table): Modify for `map_over_uint8_byte_table',
2879         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2880         UTF-2000.
2881
2882 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2883
2884         * chartab.c (struct map_char_table_for_charset_arg): New
2885         structure.
2886         (map_char_table_for_charset_fun): New function.
2887         (map_char_table): Use `map_char_table' for encoding_table of
2888         `range->charset'.
2889
2890 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2891
2892         * chartab.c (map_char_table): Check a character is found in
2893         range->charset instead of non default value is defined in
2894         char-table when range is CHARTAB_RANGE_ROW.
2895
2896 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2897
2898         * chartab.c (map_char_id_table): Deleted.
2899         (Fmap_char_attribute): Use `map_char_table' instead of
2900         `map_char_id_table'.
2901
2902 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2903
2904         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2905         UTF-2000.
2906         (update_syntax_table): Deleted in XEmacs UTF-2000.
2907
2908         * syntax.c (find_defun_start): Use `syntax_table' instead of
2909         `mirror_syntax_table' in XEmacs UTF-2000.
2910         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2911         UTF-2000.
2912         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2913         XEmacs UTF-2000.
2914         (Fmatching_paren): Likewise.
2915         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2916         in XEmacs UTF-2000.
2917         (find_start_of_comment): Likewise.
2918         (find_end_of_comment): Likewise.
2919         (Fforward_comment): Likewise.
2920         (scan_lists): Likewise.
2921         (char_quoted): Likewise.
2922         (Fbackward_prefix_chars): Likewise.
2923         (scan_sexps_forward): Likewise.
2924         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2925         (update_syntax_table): Likewise.
2926
2927         * search.c (skip_chars): Use `syntax_table' instead of
2928         `mirror_syntax_table' in XEmacs UTF-2000.
2929         (wordify): Likewise.
2930         (Freplace_match): Likewise.
2931
2932         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2933         `mirror_syntax_table' in XEmacs UTF-2000.
2934         (WORDCHAR_P_UNSAFE): Likewise.
2935         (re_match_2_internal): Likewise.
2936
2937         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2938         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2939
2940         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2941         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2942
2943         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2944         XEmacs UTF-2000.
2945
2946         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2947         UTF-2000.
2948         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2949         (char_table_description): Delete `mirror_table' in XEmacs
2950         UTF-2000.
2951         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2952         UTF-2000.
2953         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2954         (Fcopy_char_table): Likewise.
2955         (put_char_table): Don't call `update_syntax_table' in XEmacs
2956         UTF-2000.
2957
2958         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2959         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2960         (casify_region_internal): Likewise.
2961
2962         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2963
2964         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2965         `mirror_syntax_table' in XEmacs UTF-2000.
2966
2967         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2968         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2969         (Fexpand_abbrev): Likewise.
2970
2971 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2972
2973         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2974
2975 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2976
2977         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2978         (map_over_uint16_byte_table): Likewise.
2979         (map_over_byte_table): Likewise.
2980         (get_char_id_table): Refer `cit->default_value'.
2981         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2982         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2983         of character-id ranges.
2984         (mark_char_table): Mark `ct->default_value'.
2985         (char_table_description): Add `default_value'.
2986         (fill_char_table): Use `default_value'.
2987         (decode_char_table_range): Decode `nil' as
2988         `CHARTAB_RANGE_DEFAULT'.
2989         (get_char_id_table): Refer `cit->default_value'.
2990         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2991         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2992         temporary hack; check value of char-table is bound or not.
2993         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2994
2995         * chartab.h (struct Lisp_Char_Table): Add new member
2996         `default_value' in XEmacs UTF-2000.
2997         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2998         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2999         UTF-2000.
3000
3001 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3002
3003         * chartab.h (Lisp_Char_ID_Table): Deleted.
3004
3005         * chartab.c (char_table_description): Fix typo.
3006         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
3007         `Lisp_Char_ID_Table'.
3008
3009 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3010
3011         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
3012         `CHAR_ID_TABLE_P'.
3013
3014         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
3015         `CHAR_ID_TABLE_P'.
3016
3017         * chartab.h (XCHAR_ID_TABLE): Deleted.
3018         (XSETCHAR_ID_TABLE): Deleted.
3019         (CHAR_ID_TABLE_P): Deleted.
3020
3021         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
3022         `CHAR_ID_TABLE_P'.
3023         (Fget_composite_char): Likewise.
3024         (put_char_table): Likewise.
3025         (add_char_attribute_alist_mapper): Fixed.
3026         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
3027         `CHAR_ID_TABLE_P'.
3028         (Fget_char_attribute): Likewise.
3029         (Fget_char_attribute): Likewise.
3030         (Fmap_char_attribute): Likewise.
3031
3032         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
3033         `CHAR_ID_TABLE_P'.
3034         (encode_char_1): Likewise.
3035
3036 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3037
3038         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
3039         `XCHAR_ID_TABLE'.
3040
3041         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
3042         instead of `XCHAR_ID_TABLE'.
3043         (remove_char_ccs): Likewise.
3044
3045         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
3046         `XCHAR_ID_TABLE'.
3047         (Fget_composite_char): Likewise.
3048         (Fchar_variants): Likewise.
3049         (put_char_table): Likewise.
3050         (add_char_attribute_alist_mapper): Likewise.
3051         (Fchar_attribute_alist): Likewise.
3052         (Fget_char_attribute): Likewise.
3053         (Fput_char_attribute): Likewise.
3054         (Fmap_char_attribute): Likewise.
3055         (Fmap_char_attribute): Likewise.
3056
3057         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
3058         `XCHAR_ID_TABLE'.
3059         (encode_char_1): Likewise.
3060
3061 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3062
3063         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
3064         `Lisp_Char_ID_Table'.
3065         (mark_char_id_table): Deleted.
3066         (print_char_id_table): Likewise.
3067         (char_id_table_equal): Likewise.
3068         (char_id_table_hash): Likewise.
3069         (char_id_table_description): Likewise.
3070         (char_id_table): Likewise.
3071         (make_char_id_table): Use `Fmake_char_table' and
3072         `fill_char_table'.
3073         (get_char_id_table): Use `Lisp_Char_Table' instead of
3074         `Lisp_Char_ID_Table'.
3075         (put_char_id_table): Likewise.
3076         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
3077         `XCHAR_ID_TABLE'.
3078         (Fremove_char_attribute): Likewise.
3079         (syms_of_chartab): Don't define type `char-id-table'.
3080
3081         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
3082         (char_id_table): Likewise.
3083         (GC_CHAR_ID_TABLE_P): Likewise.
3084         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
3085         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
3086         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
3087         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
3088         (get_char_id_table): Use `Lisp_Char_Table' instead of
3089         `Lisp_Char_ID_Table'.
3090         (put_char_id_table_0): Likewise.
3091         (put_char_id_table): Likewise.
3092
3093 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3094
3095         * chartab.h: Lisp_Byte_Table related codes are moved from
3096         chartab.h.
3097
3098         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
3099
3100 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3101
3102         * chartab.h: Don't include "chartab.h".
3103         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
3104         (Lisp_Char_ID_Table): Likewise.
3105         (char_id_table): Likewise.
3106         (XCHAR_ID_TABLE): Likewise.
3107         (XSETCHAR_ID_TABLE): Likewise.
3108         (CHAR_ID_TABLE_P): Likewise.
3109         (GC_CHAR_ID_TABLE_P): Likewise.
3110         (get_char_id_table): Likewise.
3111
3112         * char-ucs.h: Include "chartab.h".
3113         (struct Lisp_Char_ID_Table): Moved to chartab.h.
3114         (Lisp_Char_ID_Table): Likewise.
3115         (char_id_table): Likewise.
3116         (XCHAR_ID_TABLE): Likewise.
3117         (XSETCHAR_ID_TABLE): Likewise.
3118         (CHAR_ID_TABLE_P): Likewise.
3119         (GC_CHAR_ID_TABLE_P): Likewise.
3120         (get_char_id_table): Likewise.
3121
3122 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3123
3124         * chartab.c (copy_uint8_byte_table): New function.
3125         (copy_uint16_byte_table): New function.
3126         (copy_byte_table): New function.
3127         (map_over_uint8_byte_table): Modify to avoid huge numbers of
3128         characters to call.
3129         (map_over_uint16_byte_table): Likewise.
3130         (map_over_byte_table): Likewise.
3131         (get_byte_table): Move prototype to chartab.h.
3132         (put_byte_table): Likewise.
3133         (put_char_id_table_0): Moved to chartab.h.
3134         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
3135         (char_table_entry_equal): Likewise.
3136         (char_table_entry_hash): Likewise.
3137         (char_table_entry_description): Likewise.
3138         (char_table_entry): Likewise.
3139         (make_char_table_entry): Likewise.
3140         (copy_char_table_entry): Likewise.
3141         (get_non_ascii_char_table_value): Likewise.
3142         (map_over_charset_ascii): Likewise.
3143         (map_over_charset_control_1): Likewise.
3144         (map_over_charset_row): Likewise.
3145         (map_over_other_charset): Likewise.
3146         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
3147         (print_char_table): Likewise.
3148         (char_table_equal): Likewise.
3149         (char_table_hash): Likewise.
3150         (char_table_description): Likewise.
3151         (fill_char_table): Likewise.
3152         (Fcopy_char_table): Likewise.
3153         (get_char_table): Likewise.
3154         (Fget_range_char_table): Likewise.
3155         (put_char_table): Likewise.
3156         (map_char_table): Likewise.
3157         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
3158         UTF-2000.
3159
3160 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3161
3162         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
3163         `Vauto_fill_chars' in XEmacs UTF-2000.
3164
3165         * chartab.h (get_byte_table): New prototype [moved from
3166         chartab.c].
3167         (put_byte_table): Likewise [moved from chartab.c].
3168         (put_char_id_table_0): New inline function [moved from chartab.c].
3169         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
3170         (Lisp_Char_Table_Entry): Likewise.
3171         (char_table_entry): Likewise.
3172         (XCHAR_TABLE_ENTRY): Likewise.
3173         (XSETCHAR_TABLE_ENTRY): Likewise.
3174         (CHAR_TABLE_ENTRYP): Likewise.
3175         (CHECK_CHAR_TABLE_ENTRY): Likewise.
3176         (NUM_ASCII_CHARS): Likewise.
3177         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
3178         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
3179
3180 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3181
3182         * chartab.c (get_char_id_table): Change interface.
3183         (put_char_id_table_0): New function.
3184         (put_char_id_table): Change interface; new implementation.
3185         (Fget_composite_char): Modify for interface change of
3186         `get_char_id_table'.
3187         (Fchar_variants): Likewise.
3188         (add_char_attribute_alist_mapper): Likewise.
3189         (Fchar_attribute_alist): Likewise.
3190         (Fget_char_attribute): Likewise.
3191         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
3192         as same as character as the first argument like `put-char-table';
3193         modify for interface change of `put_char_id_table'.
3194         (Fremove_char_attribute): Modify for interface change of
3195         `put_char_id_table'.
3196
3197 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3198
3199         * text-coding.c: Sync up with XEmacs 21.2.41.
3200         (COMPOSE_ADD_CHAR): Modify for interface change of
3201         `get_char_id_table'.
3202
3203         * mule-charset.c (put_char_ccs_code_point): Modify for interface
3204         change of `put_char_id_table'.
3205         (remove_char_ccs): Likewise.
3206
3207         * chartab.h (put_char_id_table): Change interface.
3208
3209         * char-ucs.h (get_char_id_table): Change interface.
3210         (charset_code_point): Modify for interface change of
3211         `get_char_id_table'.
3212         (encode_char_1): Likewise.
3213
3214 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3215
3216         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3217         argument `ccs'.
3218         (map_over_uint16_byte_table): Likewise.
3219         (map_over_byte_table): Likewise.
3220         (map_char_id_table): Add new argument `range' like
3221         `map_char_table'.
3222         (Fmap_char_attribute): Add new argument `range' like
3223         `Fmap_char_table'.
3224
3225 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3226
3227         * chartab.c (map_over_uint8_byte_table): Change interface of
3228         mapping function to use struct chartab_range instead of Emchar.
3229         (map_over_uint16_byte_table): Likewise.
3230         (map_over_byte_table): Likewise.
3231         (map_char_id_table): Likewise.
3232         (struct slow_map_char_id_table_arg): Deleted.
3233         (slow_map_char_id_table_fun): Deleted.
3234         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3235         function `slow_map_char_table_fun' instead of struct
3236         `slow_map_char_id_table_arg' and function
3237         `slow_map_char_id_table_fun'.
3238
3239 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3240
3241         * mule-charset.c: Move char-it-table related codes to chartab.c.
3242         (Vutf_2000_version): Moved to chartab.c.
3243         (Fdefine_char): Likewise.
3244         (Ffind_char): Likewise.
3245         (syms_of_mule_charset): Move types `uint8-byte-table',
3246         `uint16-byte-table', `byte-table' and `char-id-table' to
3247         chartab.c; move functions `char_attribute_list,
3248         `find_char_attribute_table, `char_attribute_alist,
3249         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3250         `map_char_attribute, `define_char, `find_char, `char_variants and
3251         `get_composite_char to chartab.c; move symbols `=>ucs',
3252         `->decomposition', `compat', `isolated', `initial', `medial',
3253         `final', `vertical', `noBreak', `fraction', `super', `sub',
3254         `circle', `square', `wide', `narrow', `small' and `font' to
3255         chartab.c.
3256         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3257         setting codes for `Vcharacter_composition_table' and
3258         `Vcharacter_variant_table' to chartab.c.
3259         (complex_vars_of_mule_charset): Move setting code for
3260         `Vchar_attribute_hash_table' to chartab.c.
3261
3262         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3263         (make_char_id_table): New prototype.
3264         (put_char_id_table): Likewise.
3265         (Fget_char_attribute): Likewise.
3266
3267         * chartab.c: Move char-id-table related code from mule-charset.c.
3268         (Vutf_2000_version): Moved from mule-charset.c.
3269
3270         * char-ucs.h (Qucs): New external variable.
3271         (put_char_ccs_code_point): New prototype.
3272         (remove_char_ccs): Likewise.
3273
3274 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3275
3276         * mule-charset.c (Vcharset_ucs_jis): New variable.
3277         (Qucs_jis): Likewise.
3278         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3279         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3280
3281         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3282
3283 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3284
3285         * mule-charset.c (map_over_uint8_byte_table): New function.
3286         (map_over_uint16_byte_table): Likewise.
3287         (map_over_byte_table): Likewise.
3288         (map_char_id_table): Likewise.
3289         (slow_map_char_id_table_fun): Likewise.
3290         (Fmap_char_attribute): Likewise.
3291         (syms_of_mule_charset): Add new function `map-char-attribute'.
3292
3293 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3294
3295         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3296         (syms_of_mule_charset): Add new function `find-char'.
3297
3298 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3299
3300         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3301         XEmacs UTF-2000.
3302         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3303         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3304         XEmacs UTF-2000.
3305         (complex_vars_of_mule_charset): Add new coded-charset
3306         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3307         `ideograph-gt-pj-*'.
3308
3309         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3310
3311 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3312
3313         * mule-charset.c (encode_builtin_char_1): Purge codes about
3314         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3315         {MIN|MAX}_CHAR_HEBREW.
3316         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3317         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3318
3319         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3320         (MAX_CHAR_GREEK): Purged.
3321         (MIN_CHAR_CYRILLIC): Purged.
3322         (MAX_CHAR_CYRILLIC): Purged.
3323         (MIN_CHAR_HEBREW): Commented out.
3324         (MAX_CHAR_HEBREW): Likewise.
3325
3326 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3327
3328         * mule-charset.c (Qto_ucs): New variable.
3329         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3330         (Fdefine_char): Likewise.
3331         (syms_of_mule_charset): Add new symbol `=>ucs'.
3332
3333 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3334
3335         * mule-charset.c (Fdecode_char): Fixed.
3336
3337 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3338
3339         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3340         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3341         "tcvn5712-1".
3342
3343 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3344
3345         * mule-charset.c (Vcharset_ucs_big5): New variable.
3346         (Qucs_big5): Likewise.
3347         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3348         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3349
3350         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3351
3352 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3353
3354         * mule-charset.c (decode_builtin_char): Check Big5 code range
3355         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3356
3357 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3358
3359         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3360         (Qchinese_gb12345): Likewise.
3361         (Fdecode_builtin_char): Fixed.
3362         (syms_of_mule_charset): Add `chinese-gb12345'.
3363         (complex_vars_of_mule_charset): Add coded-charset
3364         `chinese-gb12345'.
3365
3366         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3367         (LEADING_BYTE_CHINESE_GB12345): New macro.
3368
3369 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3370
3371         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3372         and `latin-viscii-upper' for `latin-viscii'.
3373
3374 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3375
3376         * mule-charset.c (Fdecode_builtin_char): Comment out
3377         regularization code for ISO-IR GR representation.
3378
3379 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3380
3381         * mule-charset.c (decode_builtin_char): New function; renamed from
3382         `make_builtin_char'; return -1 instead of signal.
3383         (Fdecode_builtin_char): Use `decode_builtin_char'.
3384
3385         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3386         `make_builtin_char'.
3387         (DECODE_CHAR): Use `decode_builtin_char' instead of
3388         `make_builtin_char'; use mapping table of `chinese-big5' for
3389         `chinese-big5-{1,2}'.
3390
3391 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3392
3393         * text-coding.c (char_encode_big5): New function.
3394         (char_finish_big5): Likewise.
3395         (reset_encoding_stream): Use `char_encode_big5' and
3396         `char_finish_big5' for CODESYS_BIG5.
3397         (mule_encode): Don't use `encode_coding_big5'.
3398         (encode_coding_big5): Deleted.
3399
3400 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3401
3402         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3403         0x81- in XEmacs UTF-2000.
3404         (detect_coding_big5): Likewise.
3405
3406 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3407
3408         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3409         generate character-id if the CCS property does not have
3410         corresponding predefined character.
3411         (make_builtin_char): Return -1 if corresponding predefined
3412         character is not found.
3413         (Fdecode_char): Return nil if corresponding character is not
3414         found.
3415         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3416         don't map to builtin ucs space.
3417
3418 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3419
3420         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3421         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3422
3423 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3424
3425         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3426         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3427         (Qideograph_gt): Likewise.
3428         (Qideograph_gt_pj_{1..11}): Likewise.
3429         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3430         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3431         `ideograph-gt-pj-11'.
3432         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3433         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3434         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3435
3436         * char-ucs.h (LEADING_BYTE_GT): New macro.
3437         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3438         (MIN_CHAR_GT): Likewise.
3439         (MAX_CHAR_GT): Likewise.
3440
3441 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3442
3443         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3444         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3445
3446         * doprnt.c (unsigned_int_converters): Add `c'.
3447         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3448
3449         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3450         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3451         `MIN_CHAR_MOJIKYO'.
3452         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3453         (MAX_CHAR_MOJIKYO_0): New macro.
3454         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3455
3456 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3457
3458         * mule-charset.c (Fdefine_char): Delete cemented out code.
3459         (encode_builtin_char_1): Modify for new allocation of builtin
3460         Mojikyo characters.
3461
3462         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3463
3464 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3465
3466         * mule-charset.c (Vcharset_ucs_cns): New variable.
3467         (Qucs_cns): New variable.
3468         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3469         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3470
3471 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3472
3473         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3474
3475 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3476
3477         * search.c (search_buffer): Make `charset_base_code' as
3478         character-id >> 6 to eliminate the corresponding last byte in
3479         UTF-8 representation [I'm not sure it is right thing].
3480         (boyer_moore): Likewise.
3481
3482 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3483
3484         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3485         representation in MULE.
3486
3487 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3488
3489         * text-coding.c (Fmake_coding_system): Use
3490         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3491         `EXTERNAL_PROPERTY_LIST_LOOP'.
3492
3493 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3494
3495         * text-coding.c (decode_output_utf8_partial_char): New function.
3496         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3497
3498 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3499
3500         * text-coding.c (decode_coding_utf8): Output original byte
3501         sequence if it is broken; change order of conditions.
3502
3503         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3504         of conditions.
3505
3506         * mb-multibyte.h (BYTE_ASCII_P):
3507         Use bit ops for char-signedness safety.
3508         (BYTE_C0_P): Use bit ops for char-signedness safety.
3509         (BYTE_C1_P): Use bit ops for char-signedness safety.
3510
3511         * character.h: (XCHAR_OR_CHAR_INT):
3512         Always use inline function.
3513         Remove redundant type checking assert() - XINT will abort quite
3514         nicely.
3515
3516 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3517
3518         * text-coding.c: (Fencode_shift_jis_char):
3519         (Fencode_big5_char):
3520         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3521         Replace 0 with '\0' when working with bytes.
3522         Replace initial "(" with "\(" in docstrings.
3523
3524         (Fmake_coding_system):
3525         When type is ccl and value is vector, register it with a proper
3526         symbol.  And checks whether the given ccl program is valid.
3527         (mule_decode): When calling ccl_driver, if src indicates
3528         NULL pointer, set an empty string instead.
3529         (mule_encode): Likewise.
3530
3531         (detect_eol_type):
3532         (detect_coding_sjis):
3533         (decode_coding_sjis):
3534         (detect_coding_big5):
3535         (decode_coding_big5):
3536         (detect_coding_ucs4):
3537         (decode_coding_ucs4):
3538         (detect_coding_utf8):
3539         (decode_coding_utf8):
3540         (detect_coding_iso2022):
3541         (decode_coding_iso2022):
3542         (decode_coding_no_conversion):
3543         (mule_decode):
3544         Make all detecting and decoding functions take an Extbyte * arg.
3545         (text_encode_generic):
3546         (encode_coding_big5):
3547         (encode_coding_no_conversion):
3548         (mule_encode):
3549         Make all encoding functions take a Bufbyte * arg.
3550         Use size_t instead of unsigned int for memory sizes.
3551         Only cast to unsigned char whenever dereferencing Extbyte *.
3552
3553         (struct lrecord_description fcd_description_1): Use countof.
3554         (complex_vars_of_file_coding):
3555         Use countof instead of sizeof.
3556         Use CHECK_NATNUM instead of CHECK_INT.
3557
3558 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3559
3560         * mule-charset.c (Fget_char_attribute): Add new optional argument
3561         `default-value'.
3562         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3563         (remove_char_ccs): Likewise.
3564
3565 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3566
3567         * text-coding.c (char_encode_shift_jis): New implementation in
3568         UTF-2000.
3569         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3570         ...)'.
3571
3572         * mule-charset.c (Vcharset_chinese_big5): New variable in
3573         UTF-2000.
3574         (Qchinese_big5): New variable in UTF-2000.
3575         (BIG5_SAME_ROW): New macro in UTF-2000.
3576         (make_builtin_char): Use builtin characters of
3577         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3578         characters of `Vcharset_chinese_big5'.
3579         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3580         (complex_vars_of_mule_charset): Add new coded-charset
3581         `chinese-big5' in UTF-2000.
3582
3583         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3584         (Vcharset_chinese_big5): New external variable declaration.
3585         (Vcharset_japanese_jisx0208_1990): Likewise.
3586
3587 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3588
3589         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3590         function.
3591         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3592
3593 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3594
3595         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3596         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3597         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3598         `mojikyo-pj-*'.
3599
3600 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3601
3602         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3603
3604 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3605
3606         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3607         to 0.17.
3608
3609 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3610
3611         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3612         for `CHARSET_BY_ATTRIBUTES'.
3613         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3614         `CHARSET_BY_ATTRIBUTES'.
3615
3616         * text-coding.c (struct decoding_stream): Rename member `CH' to
3617         `CPOS'.
3618         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3619         (decode_coding_sjis): Likewise.
3620         (decode_coding_big5): Likewise.
3621         (decode_coding_ucs4): Likewise.
3622         (decode_coding_utf8): Likewise.
3623         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3624         `CHARSET_BY_ATTRIBUTES'.
3625         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3626         `str->counter'; decode 3, 4 bytes sets.
3627         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3628         sets.
3629         (decode_coding_no_conversion): Use `str->cpos' instead of
3630         `str->ch'.
3631
3632         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3633         (Qmojikyo_2022_1): New variable.
3634         (make_charset): Don't use `CHARSET_TYPE_*'.
3635         (range_charset_code_point): Support coded-charset
3636         `mojikyo-2022-1'.
3637         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3638         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3639         `CHARSET_BY_ATTRIBUTES'.
3640         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3641         `CHARSET_BY_ATTRIBUTES'.
3642         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3643         (complex_vars_of_mule_charset): Add new coded-charset
3644         `mojikyo-2022-1'.
3645
3646         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3647         interface; changed to inline function.
3648
3649         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3650         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3651         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3652         (CHARSET_TYPE_94): Deleted.
3653         (CHARSET_TYPE_94X94): Deleted.
3654         (CHARSET_TYPE_96): Deleted.
3655         (CHARSET_TYPE_96X96): Deleted.
3656         (CHARSET_TYPE_128): Deleted.
3657         (CHARSET_TYPE_128X128): Deleted.
3658         (CHARSET_TYPE_256): Deleted.
3659         (CHARSET_TYPE_256X256): Deleted.
3660         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3661         to inline function.
3662         (DECODE_MOJIKYO_2022): New inline function.
3663         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3664         `Vcharset_mojikyo_2022_1'.
3665
3666 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3667
3668         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3669         instead of `EQ'.
3670         (put_byte_table): Likewise.
3671         (char_id_table_equal): Use `get_byte_table' [new implementation].
3672
3673 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3674
3675         * mule-charset.c: Include <limits.h> in UTF-2000.
3676         (BT_UINT8_MIN): New macro in UTF-2000.
3677         (BT_UINT8_MAX): New macro in UTF-2000.
3678         (BT_UINT8_t): New macro in UTF-2000.
3679         (BT_UINT8_nil): New macro in UTF-2000.
3680         (BT_UINT8_unbound): New macro in UTF-2000.
3681         (INT_UINT8_P): New inline function in UTF-2000.
3682         (UINT8_VALUE_P): New inline function in UTF-2000.
3683         (UINT8_ENCODE): New inline function in UTF-2000.
3684         (UINT8_DECODE): New inline function in UTF-2000.
3685         (mark_uint8_byte_table): New function in UTF-2000.
3686         (print_uint8_byte_table): New function in UTF-2000.
3687         (uint8_byte_table_equal): New function in UTF-2000.
3688         (uint8_byte_table_hash): New function in UTF-2000.
3689         (make_uint8_byte_table): New function in UTF-2000.
3690         (uint8_byte_table_same_value_p): New function in UTF-2000.
3691         (BT_UINT16_MIN): New macro in UTF-2000.
3692         (BT_UINT16_MAX): New macro in UTF-2000.
3693         (BT_UINT16_t): New macro in UTF-2000.
3694         (BT_UINT16_nil): New macro in UTF-2000.
3695         (BT_UINT16_unbound): New macro in UTF-2000.
3696         (INT_UINT16_P): New inline function in UTF-2000.
3697         (UINT16_VALUE_P): New inline function in UTF-2000.
3698         (UINT16_ENCODE): New inline function in UTF-2000.
3699         (UINT16_DECODE): New inline function in UTF-2000.
3700         (UINT8_TO_UINT16): New inline function in UTF-2000.
3701         (mark_uint16_byte_table): New function in UTF-2000.
3702         (print_uint16_byte_table): New function in UTF-2000.
3703         (uint16_byte_table_equal): New function in UTF-2000.
3704         (uint16_byte_table_hash): New function in UTF-2000.
3705         (make_uint16_byte_table): New function in UTF-2000.
3706         (uint16_byte_table_same_value_p): New function in UTF-2000.
3707         (print_byte_table): New function in UTF-2000.
3708         (byte-table): Use `print_byte_table' as printer.
3709         (make_byte_table): Delete second argument `older'.
3710         (byte_table_same_value_p): New function in UTF-2000.
3711         (copy_byte_table): Deleted.
3712         (get_byte_table): New function in UTF-2000.
3713         (put_byte_table): New function in UTF-2000.
3714         (print_char_id_table): New function in UTF-2000.
3715         (char-id-table): Use `print_char_id_table' as printer.
3716         (make_char_id_table): Delete second argument `older'.
3717         (get_char_id_table): Use `get_byte_table [new implementation].
3718         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3719         implementation].
3720         (Ffind_char_attribute_table): New function in UTF-2000.
3721         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3722         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3723         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3724         (syms_of_mule_charset): Add new function
3725         `find-char-attribute-table' in UTF-2000.
3726
3727         * lrecord.h (enum lrecord_type): Add
3728         `lrecord_type_uint16_byte_table' and
3729         `lrecord_type_uint8_byte_table'.
3730
3731         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3732         (Lisp_Uint8_Byte_Table): New type.
3733         (XUINT8_BYTE_TABLE): New macro.
3734         (XSETUINT8_BYTE_TABLE): New macro.
3735         (UINT8_BYTE_TABLE_P): New macro.
3736         (GC_UINT8_BYTE_TABLE_P): New macro.
3737         (struct Lisp_Uint16_Byte_Table): New structure.
3738         (Lisp_Uint16_Byte_Table): New type.
3739         (XUINT16_BYTE_TABLE): New macro.
3740         (XSETUINT16_BYTE_TABLE): New macro.
3741         (UINT16_BYTE_TABLE_P): New macro.
3742         (GC_UINT16_BYTE_TABLE_P): New macro.
3743
3744 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3745
3746         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3747         (Vcharacter_ideographic_strokes_table): Deleted.
3748         (Vcharacter_total_strokes_table): Deleted.
3749         (Vcharacter_morohashi_daikanwa_table): Deleted.
3750         (Vcharacter_decomposition_table): Deleted.
3751         (Qname): Deleted because it is duplicated.
3752         (Qideographic_radical): Deleted.
3753         (Qideographic_strokes): Deleted.
3754         (Qtotal_strokes): Deleted.
3755         (Qmorohashi_daikanwa): Deleted.
3756         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3757         `ideographic-radical', `ideographic-strokes', `total-strokes',
3758         `morohashi-daikanwa' and `->decomposition'.
3759         (Fget_char_attribute): Likewise.
3760         (Fput_char_attribute): Likewise; use `make-vector' instead of
3761         `make_older_vector' for `->decomposition' value.
3762         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3763         `ideograph-daikanwa'.
3764         (syms_of_mule_charset): Delete builtin symbols `name',
3765         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3766         `morohashi-daikanwa'.
3767         (vars_of_mule_charset): Don't setup
3768         `Vcharacter_ideographic_radical_table',
3769         `Vcharacter_ideographic_strokes_table',
3770         `Vcharacter_total_strokes_table',
3771         `Vcharacter_morohashi_daikanwa_table' and
3772         `Vcharacter_decomposition_table'.
3773
3774 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3775
3776         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3777         `make_older_vector', `make_vector_newer_1' and
3778         `make_vector_newer'.
3779
3780         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3781         `make_older_vector' and `make_vector_newer'.
3782
3783         * config.h.in (HAVE_GGC): New macro.
3784
3785 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3786
3787         * mule-charset.c (struct char_attribute_list_closure): New
3788         structure in UTF-2000.
3789         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3790         (Fchar_attribute_list): Likewise.
3791         (Fset_charset_mapping_table): Use `make_vector_newer'.
3792         (Fdecode_builtin_char): New function in UTF-2000.
3793         (syms_of_mule_charset): Add new function `char-attribute-list' and
3794         `decode-builtin-char' in UTF-2000.
3795
3796         * lisp.h (make_vector_newer): New prototype.
3797
3798         * alloc.c (make_vector_newer_1): New function.
3799         (make_vector_newer): New function.
3800
3801 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3802
3803         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3804         50100)'.
3805
3806 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3807
3808         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3809         (Vcharacter_attribute_table): Deleted.
3810         (Vcharacter_name_table): Deleted.
3811         (put_char_attribute): Deleted.
3812         (remove_char_attribute): Deleted.
3813         (struct char_attribute_alist_closure): New structure.
3814         (add_char_attribute_alist_mapper): New function.
3815         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3816         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3817         (Fget_char_attribute): Likewise.
3818         (Fput_char_attribute): Likewise.
3819         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3820         of `remove_char_attribute'.
3821         (Fdefine_char): Return character.
3822         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3823         and `Vcharacter_name_table'.
3824         (complex_vars_of_mule_charset): Likewise
3825         `Vchar_attribute_hash_table'.
3826
3827 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3828
3829         * character.h (CHARC_CHARSET): New macro.
3830         (CHARC_CHARSET_ID): New macro.
3831         (CHARC_CODE_POINT): New macro.
3832         (CHARC_COLUMNS): New macro.
3833         (CHARC_TO_CHAR): New inline function.
3834         (CHARC_EQ): New inline function.
3835         (CHARC_ASCII_EQ): New inline function.
3836         (CHARC_IS_SPACE): New inline function.
3837         (ASCII_TO_CHARC): New inline function.
3838
3839         * char-ucs.h (encode_char_2): Deleted.
3840         (ENCODE_CHAR): Use `encode_char_1' again.
3841         (breakup_char_1): Likewise.
3842         (CHAR_TO_CHARC): New inline function.
3843
3844         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3845
3846 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3847
3848         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3849         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3850         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3851         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3852         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3853         `CHARC_IS_SPACE'.
3854         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3855
3856         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3857         `CHARC_CODE_POINT'.
3858         (x_output_display_block): Use `CHARC_CHARSET' and
3859         `CHARC_ASCII_EQ'.
3860
3861         * redisplay-tty.c (tty_output_display_block): Use
3862         `CHARC_ASCII_EQ'.
3863         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3864
3865         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3866
3867         * insdel.c (find_charsets_in_charc_string): Use
3868         `CHARC_CHARSET_ID'.
3869         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3870         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3871         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3872         (convert_charc_string_into_malloced_string): Likewise.
3873
3874 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3875
3876         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3877         instead of <Emchar_dynarr *> for buf; use
3878         `convert_bufbyte_string_into_charc_dynarr' instead of
3879         `convert_bufbyte_string_into_emchar_dynarr'; use
3880         `find_charsets_in_charc_string' instead of
3881         `find_charsets_in_emchar_string'.
3882
3883         * redisplay.h:
3884         - Include "character.h".
3885         (struct rune): New member `cglyph'; delete member `chr'.
3886
3887         * redisplay.c (redisplay_text_width_charc_string): New function;
3888         delete `redisplay_text_width_emchar_string'.
3889         (rtw_charc_dynarr): New variable; renamed from
3890         `rtw_emchar_dynarr'.
3891         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3892         `rtw_emchar_dynarr'; use
3893         `convert_bufbyte_string_into_charc_dynarr' instead of
3894         `convert_bufbyte_string_into_emchar_dynarr'; use
3895         `redisplay_text_width_charc_string' instead of
3896         `redisplay_text_width_emchar_string'.
3897         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3898         instead of `rtw_emchar_dynarr'; use
3899         `convert_bufbyte_string_into_charc_dynarr' instead of
3900         `convert_bufbyte_string_into_emchar_dynarr'.
3901         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3902         `redisplay_text_width_charc_string' instead of
3903         `redisplay_text_width_emchar_string'.
3904         (create_text_block): Modify for <struct rune> change.
3905         (generate_formatted_string_db): Likewise.
3906         (create_string_text_block): Likewise.
3907         (pixel_to_glyph_translation): Likewise.
3908
3909         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3910         instead of <const Emchar *>.
3911         (x_text_width): Likewise.
3912         (x_output_display_block): Use <Charc_dynarr *> instead
3913         <Emchar_dynarr *>; modify for <structure rune> change.
3914         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3915         *>.
3916
3917         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3918         <const Emchar *>; use `charc_string_displayed_columns' instead of
3919         `emchar_string_displayed_columns'.
3920         (tty_output_display_block): Use <Charc_dynarr *> instead of
3921         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3922         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3923         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3924         `tty_output_emchar_dynarr_dynarr'.
3925         (tty_output_charc_dynarr): New function; delete
3926         `tty_output_charc_dynarr'.
3927
3928         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3929         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3930         <Emchar_dynarr *> for buf; use
3931         `convert_bufbyte_string_into_charc_dynarr' instead of
3932         `convert_bufbyte_string_into_emchar_dynarr'.
3933
3934         * frame.c (title_string_charc_dynarr): New variable; renamed from
3935         `title_string_emchar_dynarr'.
3936         (generate_title_string): Use `title_string_charc_dynarr' instead
3937         of `title_string_emchar_dynarr'; use
3938         `convert_charc_string_into_malloced_string' instead of
3939         `convert_emchar_string_into_malloced_string'.
3940         (init_frame): Use `title_string_charc_dynarr' instead of
3941         `title_string_emchar_dynarr'.
3942
3943         * console.h:
3944         - Include "character.h".
3945         (struct console_methods): Use <const Charc *> instead of <const
3946         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3947         <Emchar_dynarr *> in output_string_method.
3948
3949         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3950         <Emchar_dynarr *>.
3951
3952         * console-stream.c (stream_text_width): Use <const Charc *>
3953         instead of <const Emchar *>.
3954
3955         * character.h (Charc_dynarr): New type.
3956
3957         * char-ucs.h (structure Charc): New structure; define new type
3958         `Charc'.
3959
3960         * char-lb.h (DECODE_CHAR): New inline function.
3961         (encode_char_1): New inline function.
3962         (ENCODE_CHAR): New macro.
3963         (structure Charc): New structure; define new type `Charc'.
3964
3965         * char-1byte.h (Vcharset_control_1): New macro.
3966         (Vcharset_latin_iso8859_1): New macro.
3967         (DECODE_CHAR): New inline function.
3968         (encode_char_1): New inline function.
3969         (ENCODE_CHAR): New macro.
3970         (structure Charc): New structure; define new type `Charc'.
3971
3972         * insdel.c (find_charsets_in_charc_string): New function; delete
3973         `find_charsets_in_emchar_string'.
3974         (charc_string_displayed_columns): New function; delete
3975         `emchar_string_displayed_columns'.
3976         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3977         `convert_bufbyte_string_into_emchar_dynarr'.
3978         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3979         `convert_charc_string_into_bufbyte_dynarr'.
3980         (convert_charc_string_into_malloced_string): New function; delete
3981         `convert_charc_string_into_malloced_string'.
3982
3983         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3984         `find_charsets_in_emchar_string'.
3985         (charc_string_displayed_columns): New prototype; delete
3986         `emchar_string_displayed_columns'.
3987         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3988         `convert_charc_string_into_bufbyte_dynarr'.
3989         (convert_charc_string_into_malloced_string): New prototype; delete
3990         `convert_charc_string_into_malloced_string'.
3991
3992 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3993
3994         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3995
3996 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3997
3998         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3999
4000         * char-ucs.h: Use <short> for <Charset_ID>.
4001
4002         * mule-charset.h, char-1byte.h: Use <unsigned char> for
4003         <Charset_ID>.
4004
4005 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4006
4007         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4008         to 0.16.
4009
4010 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4011
4012         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
4013         variable.
4014         (Qmorohashi_daikanwa): New variable.
4015         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
4016         for `morohashi-daikanwa' attribute.
4017         (Fget_char_attribute): Likewise.
4018         (Fput_char_attribute): Likewise.
4019         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
4020         has the same value of `ideograph-daikanwa'.
4021         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
4022         (vars_of_mule_charset): Setup
4023         `Vcharacter_morohashi_daikanwa_table'.
4024
4025 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4026
4027         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
4028         attributes.
4029         (add_charset_to_list_mapper): Add `key' instead of
4030         `XCHARSET_NAME (value)' to return aliases.
4031
4032 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4033
4034         * mule-charset.c (Vcharacter_ideographic_radical_table): New
4035         variable.
4036         (Vcharacter_ideographic_strokes_table): New variable.
4037         (Qideographic_radical): New variable.
4038         (Qideographic_strokes): New variable.
4039         (Fchar_attribute_alist): Use
4040         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
4041         attribute; use `Vcharacter_ideographic_strokes_table' for
4042         `ideographic-strokes' attribute.
4043         (Fget_char_attribute): Likewise.
4044         (Fput_char_attribute): Likewise.
4045         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
4046         `ideographic-strokes'.
4047         (vars_of_mule_charset): Setup
4048         `Vcharacter_ideographic_radical_table' and
4049         `Vcharacter_ideographic_strokes_table'.
4050
4051 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4052
4053         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
4054         (Qtotal_strokes): New variable.
4055         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
4056         `total-strokes' attribute.
4057         (Fget_char_attribute): Likewise.
4058         (Fput_char_attribute): Likewise.
4059         (syms_of_mule_charset): Add new symbol `total-strokes'.
4060         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
4061
4062 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4063
4064         * mule-charset.c (Vcharacter_decomposition_table): New variable.
4065         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
4066         are found.
4067         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
4068         `->decomposition' attribute.
4069         (Fput_char_attribute): Likewise.
4070         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
4071
4072 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4073
4074         * mule-charset.c (decoding_table_check_elements): New function.
4075         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
4076
4077 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4078
4079         * mule-charset.c (Fset_charset_mapping_table): Use
4080         `put_char_ccs_code_point'.
4081
4082 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4083
4084         * mule-charset.c (decoding_table_put_char): New inline function.
4085         (put_char_ccs_code_point): Use `decoding_table_put_char'.
4086
4087 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4088
4089         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
4090         (XCHARSET_BYTE_SIZE): New macro.
4091         (decoding_table_remove_char): New inline function.
4092         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
4093         `decoding_table_remove_char'.
4094         (remove_char_ccs): Use `decoding_table_remove_char'.
4095         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
4096
4097 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4098
4099         * mule-charset.c (Vcharacter_name_table): New variable.
4100         (Qname): New variable.
4101         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
4102         attribute.
4103         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
4104         `Vcharacter_name_table' for `name' attribute.
4105         (Fremove_char_attribute): Use function `remove_char_ccs'.
4106         (put_char_ccs_code_point): New function.
4107         (remove_char_ccs): New function.
4108         (syms_of_mule_charset): Add new symbol `name'.
4109         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
4110
4111 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4112
4113         * mule-charset.c (make_byte_table): Add new argument `older'.
4114         (make_char_id_table): Likewise.
4115         (copy_char_id_table): Comment out because it is not used.
4116         (put_char_id_table): Modify for `make_byte_table'.
4117         (Fput_char_attribute): Make encoding_table as older object;
4118         inherit older bit of `Vcharacter_composition_table'.
4119         (mark_charset): Don't mark `cs->encoding_table'.
4120         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
4121         normal object; make `Vcharacter_composition_table' as an older
4122         object; delete staticpro for `Vcharacter_composition_table'; make
4123         `Vcharacter_variant_table' as a normal object.
4124
4125         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
4126         (mark_object): Don't check older object in UTF-2000.
4127
4128         * lrecord.h (struct lrecord_header): Add new member `older' in
4129         UTF-2000.
4130         (set_lheader_implementation): Setup `SLI_header->older' in
4131         UTF-2000.
4132         (set_lheader_older_implementation): New macro in UTF-2000.
4133         (OLDER_RECORD_P): New macro in UTF-2000.
4134         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
4135         (alloc_older_lcrecord): New prototype in UTF-2000.
4136         (alloc_older_lcrecord_type): New macro in UTF-2000.
4137
4138 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4139
4140         * mule-charset.c (byte_table_description): Use
4141         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
4142         (char_id_table_description): Delete bogus `, 1'.
4143         (Fget_char_attribute): Refer encoding_table of each coded-charset
4144         to get value of coded-charset attribute of a character.
4145         (Fput_char_attribute): Use `make_older_vector' instead of
4146         `make_vector'; use encoding_table of each coded-charset to store
4147         value of coded-charset attribute of a character.
4148         (Fremove_char_attribute): Use encoding_table of each coded-charset
4149         to store value of coded-charset attribute of a character.
4150         (mark_charset): Mark `cs->encoding_table'; don't mark
4151         `cs->decoding_table'.
4152         (charset_description): Add description of new member
4153         `encoding_table'.
4154         (make_charset): Initialize `encoding_table'.
4155
4156         * char-ucs.h (struct Lisp_Charset): Add new member
4157         `encoding_table'.
4158         (CHARSET_ENCODING_TABLE): New macro.
4159         (XCHARSET_ENCODING_TABLE): New macro.
4160         (charset_code_point): New implementation.
4161         (encode_char_1): Likewise.
4162
4163         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
4164         (disksave_object_finalization_1): Call finalizers of
4165         `all_older_lcrecords' in UTF-2000.
4166         (make_older_vector): New function in UTF-2000.
4167         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
4168         UTF-2000.
4169
4170         * lisp.h (make_older_vector): New prototype in UTF-2000.
4171
4172 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4173
4174         * lrecord.h (enum lrecord_type): Rename
4175         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
4176
4177         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
4178         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
4179         `get_char_code_table'.
4180
4181         * mule-charset.c (mark_char_id_table): Renamed from
4182         `mark_char_code_table'.
4183         (char_id_table_equal): Renamed from `char_code_table_equal'.
4184         (char_id_table_hash): Renamed from `char_code_table_hash'.
4185         (make_char_id_table): Renamed from `make_char_code_table'.
4186         (copy_char_id_table): Renamed from `copy_char_code_table'.
4187         (get_char_id_table): Renamed from `get_char_code_table'.
4188         (put_char_id_table): Renamed from `put_char_code_table'.
4189         (to_char_id): Renamed from `to_char_code'.
4190
4191         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
4192         `Lisp_Char_Code_Table'.
4193         (char_id_table): Renamed from `char_code_table'.
4194         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
4195         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
4196         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
4197         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
4198         (get_char_id_table): Renamed from `get_char_code_table'.
4199
4200 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4201
4202         * lrecord.h (enum lrecord_type): Rename
4203         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
4204
4205         * mule-charset.c (mark_byte_table): Renamed from
4206         `mark_char_byte_table'.
4207         (byte_table_equal): Renamed from `char_byte_table_equal'.
4208         (byte_table_hash): Renamed from `byte_table_hash'.
4209         (make_byte_table): Renamed from `make_byte_table'.
4210         (copy_byte_table): Renamed from `copy_char_byte_table'.
4211
4212         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4213         `Lisp_Char_Byte_Table'.
4214         (byte_table): Renamed from `char_byte_table'.
4215         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4216         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4217         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4218         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4219
4220 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4221
4222         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4223         (dfc_convert_to_internal_format): Likewise.
4224         
4225         * text-coding.c (Fcoding_system_canonical_name_p): New function.
4226         * text-coding.c (Fcoding_system_alias_p): New function.
4227         * text-coding.c (Fcoding_system_aliasee): New function.
4228         * text-coding.c (append_suffix_to_symbol): New function.
4229         * text-coding.c (dangling_coding_system_alias_p): New function.
4230         * text-coding.c (Ffind_coding_system):
4231         * text-coding.c (Fcopy_coding_system):
4232         * text-coding.c (encode_coding_no_conversion):
4233         * text-coding.c (syms_of_file_coding):
4234         * text-coding.c (vars_of_file_coding):
4235         Rewrite coding system alias code.
4236         Allow nested aliases, like symbolic links.
4237         Allow redefinition of coding system aliases.
4238         Prevent existence of dangling coding system aliases.
4239         Eliminate convert_to_external_format.
4240         Eliminate convert_to_internal_format.
4241         
4242         * text-coding.c: Change enum eol_type to eol_type_t.
4243
4244 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4245
4246         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4247         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4248
4249         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4250         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4251
4252 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4253
4254         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4255         `ideograph-daikanwa'.
4256
4257         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4258         (Vcharset_ucs_bmp): Likewise.
4259         (Vcharset_mojikyo): Add new extern variable definition.
4260         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4261         (Vcharset_latin_iso8859_3): Likewise.
4262         (Vcharset_latin_iso8859_4): Likewise.
4263         (Vcharset_latin_iso8859_9): Likewise.
4264         (Vcharset_latin_viscii_lower): Likewise.
4265         (Vcharset_latin_viscii_upper): Likewise.
4266         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4267         `mojikyo' code-point is used to decode.
4268         (encode_char_2): New function [to convert `mojikyo' code-point to
4269         Mojikyo font encoding].
4270         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4271         (breakup_char_1): Likewise.
4272         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4273
4274 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4275
4276         * text-coding.c (Fmake_coding_system): Add document about
4277         `disable-composition' property.
4278
4279 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4280
4281         * text-coding.c (Qdisable_composition): New variable; delete
4282         `Qcomposite'.
4283         (Fmake_coding_system): Add new property `disable-composite';
4284         delete property `composite'.
4285         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4286         instead of `!CODING_SYSTEM_COMPOSITE'.
4287         (syms_of_file_coding): Add new symbol `disable-composition';
4288         delete symbol `composite'.
4289
4290         * file-coding.h (struct Lisp_Coding_System): Add
4291         `disable_composition'; delete `enable_composition'.
4292         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4293         `CODING_SYSTEM_COMPOSITE'.
4294         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4295         `XCODING_SYSTEM_COMPOSITE'.
4296
4297 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4298
4299         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4300         to 0.15.
4301
4302 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4303
4304         * text-coding.c (Qcomposite): New variable.
4305         (Fmake_coding_system): Add new property `composite'.
4306         (struct decoding_stream): Add `combined_char_count',
4307         `combined_chars' and `combining_table' in UTF-2000.
4308         (COMPOSE_FLUSH_CHARS): New macro.
4309         (COMPOSE_ADD_CHAR): New macro.
4310         (reset_decoding_stream): Reset `str->combined_char_count' and
4311         `str->combining_table' in UTF-2000.
4312         (decode_coding_iso2022): Modify for character-decomposition.
4313         (syms_of_file_coding): Add new symbol `composite'.
4314
4315 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4316
4317         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4318         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4319         of `Vcharacter_composition_table' if `->decomposition' property
4320         has only 1 element.
4321         (Qlatin_tcvn5712): New variable.
4322         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4323         (complex_vars_of_mule_charset): Add new coded-charset
4324         `latin-tcvn5712'.
4325
4326         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4327
4328 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4329
4330         * file-coding.h (struct Lisp_Coding_System): Add
4331         `enable_composition'.
4332         (CODING_SYSTEM_COMPOSITE): New macro.
4333         (XCODING_SYSTEM_COMPOSITE): New macro.
4334
4335 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4336
4337         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4338
4339 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4340
4341         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4342         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4343
4344 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4345
4346         * mule-charset.c (Vcharset_mojikyo): New variable.
4347         (Fdefine_char): Don't use coded-charset which does not have
4348         non-builtin character range to allocate character-id.
4349         (Qmojikyo): New variable.
4350         (syms_of_mule_charset): Add new symbol `mojikyo'.
4351         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4352
4353         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4354         (LEADING_BYTE_MOJIKYO): New macro.
4355         (MIN_CHAR_MOJIKYO): New macro.
4356         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4357         (MAX_CHAR_MOJIKYO): New macro.
4358
4359 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4360
4361         * mule-charset.c (remove_char_attribute): Fixed.
4362
4363 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4364
4365         * mule-charset.c (remove_char_attribute): New function.
4366         (Fremove_char_attribute): New function.
4367         (encode_builtin_char_1): Comment out builtin-support for
4368         greek-iso8859-7 and cyrillic-iso8859-5.
4369         (Fdecode_char): Check `code' is an integer.
4370         (syms_of_mule_charset): Add `remove-char-attribute'.
4371         (MIN_CHAR_GREEK): Deleted.
4372         (MAX_CHAR_GREEK): Likewise.
4373         (MIN_CHAR_CYRILLIC): Likewise.
4374         (MAX_CHAR_CYRILLIC): Likewise.
4375         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4376         MAX_CHAR_GREEK for `greek-iso8859-7'.
4377
4378         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4379         (MAX_CHAR_GREEK): Likewise.
4380         (MIN_CHAR_CYRILLIC): Likewise.
4381         (MAX_CHAR_CYRILLIC): Likewise.
4382
4383 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4384
4385         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4386         format is used without `ucs' property.
4387         (Fdecode_char): Fix problem with GR representation.
4388         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4389         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4390
4391 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4392
4393         * mule-charset.c (make_builtin_char): New function.
4394         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4395         (Fset_charset_mapping_table): Modify for new representation of
4396         code-point.
4397         (Fdecode_char): New function.
4398         (syms_of_mule_charset): Add new builtin function `decode-char' in
4399         UTF-2000.
4400
4401         * char-ucs.h (make_builtin_char): New prototype.
4402         (DECODE_CHAR): New inline function.
4403         (MAKE_CHAR): Use `DECODE_CHAR'.
4404
4405 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4406
4407         * text-coding.c (parse_charset_conversion_specs): Use
4408         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4409         `XCHARSET_TYPE'.
4410         (iso2022_designate): Likewise.
4411
4412         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4413         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4414
4415         * mule-charset.c (Vcharset_ucs): New variable.
4416         (print_charset): Change design; use `CHARSET_CHARS' and
4417         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4418         (make_charset): Change signature to specify `chars' and
4419         `dimension' instead of `type'.
4420         (range_charset_code_point): Modify for 256^n-set.
4421         (encode_builtin_char_1): Encode as `ucs' in default.
4422         (Fmake_charset): Modify for `make_charset'.
4423         (Fmake_reverse_direction_charset): Likewise.
4424         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4425         UTF-2000.
4426         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4427         for `make_charset'.
4428
4429         * char-ucs.h (Vcharset_ucs): New variable.
4430         (LEADING_BYTE_UCS): New macro.
4431         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4432         and `chars' to `unsigned short' from `unsigned int'.
4433         (CHARSET_TYPE): Deleted.
4434         (XCHARSET_TYPE): Deleted.
4435
4436 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4437
4438         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4439
4440         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4441         (ENCODE_CHAR): New macro.
4442
4443 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4444
4445         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4446         to 0.14 (Kawachi-Katakami).
4447
4448 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4449
4450         * text-coding.c (char_encode_shift_jis): Modify for
4451         `charset_code_point'.
4452         (char_encode_iso2022): Likewise.
4453
4454         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4455         (integer) instead of list of <Lisp_Object>s (integers) as the
4456         format of code-point of a coded-charset.
4457         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4458         (encode_builtin_char_1): New function; delete
4459         `split_builtin_char'.
4460         (charset_code_point): Return <int> instead of <Lisp_Object>.
4461         (Fsplit_char): Don't use `SPLIT_CHAR'.
4462
4463         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4464         prototype for `split_builtin_char'.
4465         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4466         (charset_code_point): Likewise.
4467         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4468         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4469
4470 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4471
4472         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4473         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4474
4475 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4476
4477         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4478
4479         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4480         (MAX_CHAR_OBS_94x94): Deleted.
4481
4482 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4483
4484         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4485
4486         * char-ucs.h (MAX_CHAR_BMP): New macro.
4487
4488 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4489
4490         * text-coding.c: Sync with r21-2-24.
4491
4492 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4493
4494         * file-coding.c: Modify for UTF-2000.
4495
4496 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4497
4498         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4499         to 0.13 (Takaida).
4500
4501 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4502
4503         * mule-charset.c (split_builtin_char): Delete builtin support for
4504         `katakana-jisx0201'.
4505         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4506         BMP area in builtin representation.
4507
4508         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4509         `Vcharset_katakana_jisx0201'.
4510
4511 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4512
4513         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4514         (Qisolated): New variable.
4515         (Qinitial): New variable.
4516         (Qmedial): New variable.
4517         (Qfinal): New variable.
4518         (Qvertical): New variable.
4519         (Qsmall): New variable.
4520         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4521         `Qvertical' and `Qsmall'.
4522         (Qmojikyo_pj_[1 .. 21]): New variable.
4523         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4524         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4525         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4526         .. 21]'.
4527
4528 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4529
4530         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4531         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4532         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4533
4534 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4535
4536         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4537         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4538         BMP.
4539         (Qjapanese_jisx0208_1990): New variable.
4540         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4541         (complex_vars_of_mule_charset): Add new coded-charset
4542         `japanese-jisx0208-1990'.
4543
4544         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4545         (MIN_CHAR_JIS_X0208_1990): New macro.
4546         (MAX_CHAR_JIS_X0208_1990): New macro.
4547
4548 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4549
4550         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4551         coded-charset is not found.
4552
4553 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4554
4555         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4556         (Fdefine_char): Use `Fmake_char'.
4557
4558 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4559
4560         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4561         (Vcharset_hiragana_jisx0208): Deleted.
4562         (Vcharset_katakana_jisx0208): Deleted.
4563         (Qideograph_daikanwa): New variable.
4564         (Qhiragana_jisx0208): Deleted.
4565         (Qkatakana_jisx0208): Deleted.
4566         (split_builtin_char): Split `ideograph-daikanwa'.
4567         (Fsplit_char): New implementation for UTF-2000.
4568         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4569         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4570         (complex_vars_of_mule_charset): Add new coded-charset
4571         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4572         `katakana-jisx0208'.
4573
4574         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4575         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4576         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4577         (MIN_CHAR_DAIKANWA): New macro.
4578         (MAX_CHAR_DAIKANWA): New macro.
4579
4580 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4581
4582         * data.c (Fstring_to_number): Don't recognize floating point if
4583         base is not 10.
4584
4585 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4586
4587         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4588
4589 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4590
4591         * mule-charset.c (Qsquare): New variable.
4592         (to_char_code): Add `Qsquare'.
4593         (syms_of_mule_charset): Add new symbol `square'.
4594
4595 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4596
4597         * mule-charset.c (Qcircle): New variable.
4598         (to_char_code): Add `Qcircle'.
4599         (syms_of_mule_charset): Add new symbol `circle'.
4600
4601 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4602
4603         * mule-charset.c (Qfont): New variable.
4604         (to_char_code): Add `Qfont'.
4605         (syms_of_mule_charset): Add new symbol `font'.
4606
4607 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4608
4609         * mule-charset.c (Qsub): New variable.
4610         (to_char_code): Add `Qsub'.
4611         (syms_of_mule_charset): Add new symbol `sub'.
4612
4613 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4614
4615         * mule-charset.c (Fput_char_attribute): Convert each element of
4616         VALUE to GL position if ATTRIBUTE is a GR-set,
4617
4618 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4619
4620         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4621         coded-charset is a GR-set.
4622
4623 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4624
4625         * mule-charset.c (Fput_char_attribute): Check each element of
4626         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4627
4628 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4629
4630         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4631         UTF-2000.
4632         (Qethiopic_ucs): New variable in UTF-2000.
4633         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4634         (complex_vars_of_mule_charset): Add new coded-charset
4635         `ethiopic-ucs' in UTF-2000.
4636
4637         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4638         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4639         9)'.
4640         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4641         10)'.
4642         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4643
4644 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4645
4646         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4647         `ascii'.
4648
4649 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4650
4651         * mule-charset.c (Vcharacter_variant_table): New variable.
4652         (Q_ucs): New variable.
4653         (Fchar_variants): New function.
4654         (Fput_char_attribute): Register `->ucs' value to
4655         `Vcharacter_variant_table'.
4656         (syms_of_mule_charset): Add new function `char-variants' and new
4657         symbol `->ucs'.
4658         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4659
4660 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4661
4662         * mule-charset.c (get_char_code_table): Allow negative character
4663         code.
4664         (put_char_code_table): Likewise.
4665         (Vcharacter_composition_table): New variable.
4666         (Q_decomposition): New variable.
4667         (Qwide): New variable.
4668         (Qnarrow): New variable.
4669         (Qcompat): New variable.
4670         (QnoBreak): New variable.
4671         (Qsuper): New variable.
4672         (Qfraction): New variable.
4673         (to_char_code): New function.
4674         (Fget_composite_char): New function.
4675         (Fput_char_attribute): Register `->decomposition' value to
4676         `Vcharacter_composition_table'.
4677         (syms_of_mule_charset): Add new function `get-composite-char', new
4678         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4679         `super' and `fraction'.
4680         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4681
4682 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4683
4684         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4685         character; copy the return value.
4686
4687 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4688
4689         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4690
4691         * mule-charset.c (range_charset_code_point): Must use make_int.
4692         (split_builtin_char): New function.
4693
4694 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4695
4696         * mule-charset.c (char_byte_table): Change name from
4697         "char-code-table" to "char-byte-table".
4698         (mark_char_code_table): New function.
4699         (char_code_table_equal): New function.
4700         (char_code_table_hash): New function.
4701         (char_code_table_description): New constant.
4702         (char_code_table): New type.
4703         (make_char_code_table): New function.
4704         (copy_char_code_table): New function.
4705         (get_char_code_table): Modify for `char_code_table' type.
4706         (put_char_code_table): Likewise.
4707         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4708         (Kashiwara).
4709
4710         * char-ucs.h (char_code_table): New type.
4711         (XCHAR_CODE_TABLE): New macro.
4712         (XSETCHAR_CODE_TABLE): New macro.
4713         (CHAR_CODE_TABLE_P): New macro.
4714         (GC_CHAR_CODE_TABLE_P): New macro.
4715         (struct Lisp_Char_Code_Table): New structure.
4716
4717 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4718
4719         * mule-charset.c (Fmake_charset): Setup byte_offset for
4720         {94|96}^n-set.
4721
4722 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4723
4724         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4725         character.
4726
4727 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4728
4729         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4730         is found.
4731
4732 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4733
4734         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4735         charset, it is regarded as a charset.
4736         (put_char_attribute): New function in UTF-2000.
4737         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4738         charset, mapping-table of the charset is modified.
4739         (Fdefine_char): New function in UTF-2000.
4740         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4741         `Fput_char_attribute'.
4742         (syms_of_mule_charset): Add new function `define-char' and new
4743         symbol `ucs' in UTF-2000.
4744         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4745
4746 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4747
4748         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4749         non-UTF-2000 configuration.
4750
4751 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4752
4753         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4754         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4755
4756         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4757         deleted.
4758         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4759         (Fset_charset_mapping_table): Likewise.
4760
4761         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4762         (CHARSET_ENCODING_TABLE): Delete.
4763         (XCHARSET_ENCODING_TABLE): Delete.
4764         (charset_code_point): New interface.
4765
4766 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4767
4768         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4769         instead of `charset_get_byte1' and `charset_get_byte2'.
4770
4771         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4772         (charset_get_byte2): Deleted.
4773
4774 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4775
4776         * char-ucs.h (SPLIT_CHAR): New inline function.
4777         (breakup_char_1): Use `SPLIT_CHAR'.
4778
4779         * mule-charset.c (range_charset_code_point): New function.
4780         (charset_code_point): New function.
4781
4782         * char-ucs.h (range_charset_code_point): New interface.
4783         (breakup_char_1): Use `range_charset_code_point'.
4784
4785 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4786
4787         * mule-charset.c (Fmake_charset): Delete unused local variable
4788         `code_offset'.
4789
4790         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4791         (breakup_char_1): Find a charset and code-point in
4792         `Vcharacter_attribute_table'.
4793
4794 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4795
4796         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4797         to 0.10 (Yao).
4798
4799 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4800
4801         * mule-charset.c (Vcharacter_attribute_table): New variable.
4802         (Fchar_attribute_alist): New function.
4803         (Fget_char_attribute): New function.
4804         (Fput_char_attribute): New function.
4805         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4806         too.
4807         (syms_of_mule_charset): Add new function `char-attribute-alist',
4808         `get-char-attribute' and `put-char-attribute'.
4809         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4810
4811 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4812
4813         * mule-charset.c (Fmake_charset): Just use
4814         `get_unallocated_leading_byte'.
4815
4816         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4817         sets; don't use final-byte based number for private sets.
4818
4819 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4820
4821         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4822         integer.
4823
4824 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4825
4826         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4827         to 0.9.
4828
4829 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4830
4831         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4832         of `CHAR_LEADING_BYTE' in UTF-2000.
4833
4834         * insdel.c (find_charsets_in_bufbyte_string): Use
4835         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4836         (find_charsets_in_emchar_string): Likewise.
4837
4838         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4839         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4840
4841         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4842         (CHAR_CHARSET_ID): New macro.
4843
4844 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4845
4846         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4847         charset-id - MIN_LEADING_BYTE.
4848         (put_char_table): Likewise.
4849
4850 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4851
4852         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4853         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4854         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4855         (CHARSET_ID_OFFSET): New macro.
4856         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4857         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4858         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4859         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4860         4).
4861         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4862         5).
4863         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4864         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4865         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4866         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4867         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4868
4869 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4870
4871         * mule-charset.c (next_allocated_leading_byte): New variable in
4872         UTF-2000.
4873         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4874         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4875         (get_unallocated_leading_byte): Simply use
4876         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4877         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4878         UTF-2000.
4879
4880         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4881         (MAX_LEADING_BYTE_PRIVATE): New macro.
4882         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4883         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4884
4885 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4886
4887         * mule-charset.c (Fmake_charset): Allocate final-byte based
4888         charset-id for 94-set, 96-set and 94x94-set.
4889
4890 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4891
4892         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4893         ambiguous `else'.
4894         (Fmake_charset): Likewise.
4895         (complex_vars_of_mule_charset): Modify the font registry of
4896         `ucs-bmp' not to match `Ethiopic-Unicode'.
4897
4898 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4899
4900         * mule-charset.c (complex_vars_of_mule_charset): Add font
4901         registory of `ucs-bmp'.
4902
4903 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4904
4905         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4906         coded-charsets in `default-coded-charset-priority-list' when
4907         breaking up a character.
4908
4909         * mule-charset.c (Vcharset_latin_viscii): New variable.
4910         (Qlatin_viscii): New variable.
4911         (make_charset): Don't use `decoding_table'.
4912         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4913         byte_offset.
4914         (Fset_charset_mapping_table): New implementation.
4915         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4916         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4917         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4918         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4919         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4920         charset `latin_viscii'.
4921
4922         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4923         (CHARSET_TYPE_94X94): Change to 1 from 2.
4924         (CHARSET_TYPE_96): Change to 2 from 1.
4925         (CHARSET_TYPE_128): New macro.
4926         (CHARSET_TYPE_128X128): Change to 5 from 4.
4927         (CHARSET_TYPE_256): New macro.
4928         (CHARSET_TYPE_256X256): Change to 7 from 5.
4929         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4930
4931 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4932
4933         * text-coding.c (char_encode_shift_jis): Refer
4934         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4935         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4936
4937         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4938         (char_byte_table_equal): New function in UTF-2000.
4939         (char_byte_table_hash): New function in UTF-2000.
4940         (char_byte_table_description): New constant in UTF-2000.
4941         (char_byte_table): New type in UTF-2000.
4942         (make_char_byte_table): New function in UTF-2000.
4943         (copy_char_byte_table): New function in UTF-2000.
4944         (make_char_code_table): New macro in UTF-2000.
4945         (get_char_code_table): New function in UTF-2000.
4946         (put_char_code_table): New function in UTF-2000.
4947         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4948         (charset_description): Add setting in UTF-2000.
4949         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4950         `CHARSET_TO_BYTE1_TABLE(cs)'.
4951         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4952         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4953         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4954         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4955         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4956         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4957         `CHARSET_TO_BYTE2_TABLE(cs)'.
4958
4959         * char-ucs.h (char_byte_table): New type.
4960         (XCHAR_BYTE_TABLE): New macro.
4961         (XSETCHAR_BYTE_TABLE): New macro.
4962         (CHAR_BYTE_TABLE_P): New macro.
4963         (GC_CHAR_BYTE_TABLE_P): New macro.
4964         (struct Lisp_Char_Byte_Table): New structure.
4965         (get_char_code_table): New interface.
4966         (Emchar_to_byte_table): Deleted.
4967         (get_byte_from_character_table): Deleted.
4968         (struct Lisp_Charset): Add `encoding_table'; delete
4969         `to_byte1_table' and `to_byte2_table'.
4970         (CHARSET_ENCODING_TABLE): New macro.
4971         (CHARSET_TO_BYTE1_TABLE): Deleted.
4972         (CHARSET_TO_BYTE2_TABLE): Deleted.
4973         (XCHARSET_ENCODING_TABLE): New macro.
4974         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4975         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4976
4977 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4978
4979         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4980         `vietnamese-viscii-*'.
4981
4982 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4983
4984         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4985         (Qvietnamese_viscii_upper): New variable.
4986         (Fdefine_charset_alias): New function.
4987         (syms_of_mule_charset): Add new function `define-charset-alias'.
4988         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4989         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4990         `latin-viscii-*'.
4991
4992 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4993
4994         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4995         (MAX_CHAR_OBS_94x94): New macro.
4996         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4997         for 94x94 sets.
4998
4999         * mule-charset.c (put_byte_from_character_table): Change unit size
5000         from 128 to 256.
5001         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
5002         not defined.
5003         (Fmake_reverse_direction_charset): Modify dummy argument of
5004         `make_charset' for non-UTF-2000 environment.
5005
5006 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5007
5008         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
5009
5010         * mule-charset.c (destroy_byte_from_character_table): New macro.
5011         (latin_jisx0201_to_ucs): Deleted.
5012         (latin_iso8859_2_to_ucs): Deleted.
5013         (latin_iso8859_3_to_ucs): Deleted.
5014         (latin_iso8859_4_to_ucs): Deleted.
5015         (latin_iso8859_9_to_ucs): Deleted.
5016         (latin_viscii_lower_to_ucs): Deleted.
5017         (latin_viscii_upper_to_ucs): Deleted.
5018         (mark_charset): Mark `cs->decoding_table'.
5019         (Fcharset_mapping_table): Fix DOC-string.
5020         (Fset_charset_mapping_table): New function.
5021         (syms_of_mule_charset): Add nwe function
5022         `set-charset-mapping-table'.
5023         (complex_vars_of_mule_charset): Don't setup and use
5024         `latin_*_to_ucs'.
5025
5026 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5027
5028         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
5029         charset.
5030
5031 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5032
5033         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
5034         (Vcharset_katakana_jisx0208): New variable.
5035         (Qhiragana_jisx0208): New variable.
5036         (Qkatakana_jisx0208): New variable.
5037         (make_charset): Add new argument `byte_offset'.
5038         (charset_get_byte1): Modify for new coded-charset definition; use
5039         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5040         `XCHARSET_BYTE_OFFSET'.
5041         (Fmake_charset): Modify for `make_charset'.
5042         (Fmake_reverse_direction_charset): Likewise.
5043         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
5044         `katakana-jisx0208'.
5045         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
5046         `.'  in font registry of charset `katakana-jisx0201',
5047         `latin-jisx0201', `vietnamese-viscii-lower' and
5048         `vietnamese-viscii-upper'; modify DOC-string of charset
5049         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
5050         registry of charset `japanese-jisx0208' not to use font for JIS
5051         X0208:1990; add new charset `hiragana-jisx0208' and
5052         `katakana-jisx0208'.
5053
5054         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
5055         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
5056         (struct Lisp_Charset): Add `byte_offset'.
5057         (CHARSET_BYTE_OFFSET): New macro.
5058         (XCHARSET_UCS_MIN): New macro.
5059         (XCHARSET_UCS_MAX): New macro.
5060         (XCHARSET_CODE_OFFSET): New macro.
5061         (XCHARSET_BYTE_OFFSET): New macro.
5062         (MIN_CHAR_HIRAGANA): New macro.
5063         (MAX_CHAR_HIRAGANA): New macro.
5064         (MIN_CHAR_KATAKANA): New macro.
5065         (MAX_CHAR_KATAKANA): New macro.
5066         (MAKE_CHAR): Modify for new coded-charset definition; use
5067         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5068         `XCHARSET_BYTE_OFFSET'.
5069
5070 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5071
5072         * mule-charset.c (CHAR96): Deleted.
5073         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
5074         <Lisp_Object>.
5075         (latin_iso8859_2_to_ucs): Likewise.
5076         (latin_iso8859_3_to_ucs): Likewise.
5077         (latin_iso8859_4_to_ucs): Likewise.
5078         (latin_iso8859_9_to_ucs): Likewise.
5079         (latin_viscii_lower_to_ucs): Likewise.
5080         (latin_viscii_upper_to_ucs): Likewise.
5081         (latin_tcvn5712_to_ucs): Commented out.
5082         (make_charset): Change type of argument `decoding_table' from
5083         <Emchar*> to <Lisp_Object> [vector of characters].
5084         (Fmake_charset): Modify for `make_charset'.
5085         (Fmake_reverse_direction_charset): Likewise.
5086         (Fcharset_mapping_table): New function in UTF-2000.
5087         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
5088         UTF-2000.
5089         (complex_vars_of_mule_charset): Modify for type change of
5090         `*_to_ucs'; modify for `make_charset'.
5091
5092         * char-ucs.h (struct Lisp_Charset): Change type of
5093         `decoding_table' from <Emchar*> to <Lisp_Object>.
5094         (MAKE_CHAR): Modify for new specification of `decoding_table'.
5095
5096 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
5097
5098         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
5099         error with non-UTF-2000-Mule.
5100
5101 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
5102
5103         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
5104         in lisp again].
5105         (Vcharset_chinese_cns11643_4): Likewise.
5106         (Vcharset_chinese_cns11643_5): Likewise.
5107         (Vcharset_chinese_cns11643_6): Likewise.
5108         (Vcharset_chinese_cns11643_7): Likewise.
5109         (Qchinese_cns11643_3): Likewise.
5110         (Qchinese_cns11643_4): Likewise.
5111         (Qchinese_cns11643_5): Likewise.
5112         (Qchinese_cns11643_6): Likewise.
5113         (Qchinese_cns11643_7): Likewise.
5114         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
5115         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5116         and `chinese-cns11643-7' to lisp/mule/chinese.el.
5117         (complex_vars_of_mule_charset): Likewise.
5118
5119 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
5120
5121         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
5122         96-set.
5123         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
5124         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
5125
5126 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5127
5128         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
5129         0xFF60.
5130         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
5131         (breakup_char_1): Likewise.
5132
5133         * text-coding.c (char_encode_iso2022): Keep designated charsets if
5134         one of them includes the specified character.
5135
5136 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5137
5138         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
5139
5140 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5141
5142         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
5143
5144 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5145
5146         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
5147         definition for non-UTF-2000 Mule.
5148         (latin_iso8859_3_to_ucs): Likewise.
5149         (latin_iso8859_4_to_ucs): Likewise.
5150         (latin_iso8859_9_to_ucs): Likewise.
5151         (latin_jisx0201_to_ucs): Likewise.
5152         (MIN_CHAR_THAI): Likewise.
5153         (MAX_CHAR_THAI): Likewise.
5154         (MIN_CHAR_GREEK): Likewise.
5155         (MAX_CHAR_GREEK): Likewise.
5156         (MIN_CHAR_HEBREW): Likewise.
5157         (MAX_CHAR_HEBREW): Likewise.
5158         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
5159         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
5160         (MIN_CHAR_CYRILLIC): Likewise.
5161         (MAX_CHAR_CYRILLIC): Likewise.
5162
5163 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5164
5165         * char-ucs.h (breakup_char_1): Use
5166         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
5167         thai-tis620 and katakana-jisx0201 area.
5168
5169 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5170
5171         * char-ucs.h (breakup_char_1): Use
5172         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
5173         area.
5174
5175         * text-coding.c (reset_encoding_stream): Fixed.
5176         (char_encode_ucs4): Delete `& 255'.
5177
5178         * char-ucs.h (breakup_char_1): Use
5179         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
5180
5181 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5182
5183         * file-coding.c (Fmake_coding_system): Don't set up
5184         `codesys->fixed.size'.
5185         (encode_coding_no_conversion): Don't refer
5186         `str->codesys->fixed.size'.
5187
5188 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5189
5190         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
5191         (latin_a_char_to_byte1): Deleted.
5192         (latin_a_char_to_byte2): Deleted.
5193
5194 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5195
5196         * mule-charset.c (make_charset): Add new argument `ucs_min',
5197         `ucs_max' and `code_offset'.
5198         (charset_get_byte1): New implementation [delete specific charset
5199         depended implementations].
5200         (Fmake_charset): Modify for `make_charset'.
5201         (Fmake_reverse_direction_charset): Likewise.
5202         (complex_vars_of_mule_charset): Likewise.
5203
5204         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
5205         `code_offset'.
5206         (CHARSET_UCS_MIN): New macro.
5207         (CHARSET_UCS_MAX): New macro.
5208         (CHARSET_CODE_OFFSET): New macro.
5209         (MAKE_CHAR): Delete charset depended definitions [except
5210         katakana-jisx0201].
5211
5212 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
5213
5214         * char-ucs.h (breakup_char_1): Use
5215         `Vdefault_coded_charset_priority_list' for C0-Controls,
5216         Basic-Latin, C1-Controls and Latin-1-Supplement area.
5217
5218 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5219
5220         * char-ucs.h (charset_get_byte1): New function.
5221         (XCHARSET_GET_BYTE1): Deleted.
5222         (charset_get_byte2): New function.
5223         (XCHARSET_GET_BYTE2): Deleted.
5224         (Vdefault_coded_charset_priority_list): New external variable.
5225         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5226         `Vdefault_preferred_coded_charset_list'.
5227
5228         * mule-charset.c (charset_get_byte1): New function.
5229         (charset_get_byte2): New function.
5230         (Vdefault_coded_charset_priority_list): New variable.
5231         (vars_of_mule_charset): Add new variable
5232         `default-coded-charset-priority-list'.
5233
5234 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5235
5236         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5237         (XCHARSET_GET_BYTE2): New inline function.
5238         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5239         `XCHARSET_GET_BYTE2'.
5240
5241 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5242
5243         * mule-charset.c (make_charset): Initialize
5244         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5245         NULL if table is not defined.
5246
5247 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5248
5249         * text-coding.c (char_encode_shift_jis): Use
5250         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5251         `ucs_to_latin_jisx0201'.
5252
5253         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5254         (ucs_to_latin_iso8859_2): Deleted.
5255         (ucs_to_latin_iso8859_3): Deleted.
5256         (ucs_to_latin_iso8859_4): Deleted.
5257         (ucs_to_latin_iso8859_9): Deleted.
5258         (ucs_to_latin_viscii_lower): Deleted.
5259         (ucs_to_latin_viscii_upper): Deleted.
5260         (ucs_to_latin_tcvn5712): Deleted.
5261         (make_charset): Add new argument `decoding_table'; set up
5262         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5263         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5264         `decoding_table' is defined in UTF-2000.
5265         (Fmake_charset): Modify for `make_charset'.
5266         (Fmake_reverse_direction_charset): Likewise.
5267         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5268         and `GENERATE_96_SET'.
5269
5270         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5271         (ucs_to_latin_jisx0201): Deleted.
5272         (latin_iso8859_2_to_ucs): Deleted.
5273         (ucs_to_latin_iso8859_2): Deleted.
5274         (latin_iso8859_3_to_ucs): Deleted.
5275         (ucs_to_latin_iso8859_3): Deleted.
5276         (latin_iso8859_4_to_ucs): Deleted.
5277         (ucs_to_latin_iso8859_4): Deleted.
5278         (latin_iso8859_9_to_ucs): Deleted.
5279         (ucs_to_latin_iso8859_9): Deleted.
5280         (latin_viscii_lower_to_ucs): Deleted.
5281         (ucs_to_latin_viscii_lower): Deleted.
5282         (latin_viscii_upper_to_ucs): Deleted.
5283         (ucs_to_latin_viscii_upper): Deleted.
5284         (struct Lisp_Charset): Renamed `encoding_table' to
5285         `to_byte1_table'; add `to_byte2_table'.
5286         (CHARSET_DECODING_TABLE): New macro.
5287         (CHARSET_TO_BYTE1_TABLE): New macro.
5288         (CHARSET_TO_BYTE2_TABLE): New macro.
5289         (XCHARSET_DECODING_TABLE): New macro.
5290         (XCHARSET_TO_BYTE1_TABLE): New macro.
5291         (XCHARSET_TO_BYTE2_TABLE): New macro.
5292         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5293         tables.
5294         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5295         don't use `ucs_to_*' tables.
5296
5297 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5298
5299         * text-coding.c (Fmake_coding_system): Don't set up
5300         `codesys->fixed.size'.
5301         (encode_coding_no_conversion): Use `if' instead of `switch'.
5302
5303         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5304
5305 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5306
5307         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5308         (Fmake_charset): Modify for `make_charset'.
5309         (Fmake_reverse_direction_charset): Likewise.
5310         (complex_vars_of_mule_charset): Likewise.
5311
5312 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5313
5314         * text-coding.c (char_encode_shift_jis): Use table
5315         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5316
5317 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5318
5319         * text-coding.c (text_encode_generic): Use `if' instead of
5320         `switch'.
5321         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5322         decode JIS-Latin.
5323
5324 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5325
5326         * text-coding.c (encode_coding_sjis): Deleted.
5327         (char_encode_shift_jis): New function.
5328         (char_finish_shift_jis): New function.
5329         (reset_encoding_stream): Set up `encode_char' and `finish' for
5330         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5331         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5332         (char_encode_utf8): Treat `eol_type'.
5333
5334 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5335
5336         * file-coding.c (decode_coding_iso2022): Use
5337         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5338
5339 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5340
5341         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5342         to 0.7 (Hirano).
5343
5344 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5345
5346         * char-lb.h (CHAR_COLUMNS): New macro.
5347
5348 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5349
5350         * text-coding.c (char_encode_ucs4): New function.
5351         (char_finish_ucs4): New function.
5352         (encode_coding_ucs4): Deleted.
5353         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5354         (text_encode_generic): Delete local variable `charset' and `half'.
5355         (ucs_to_mule_table): Deleted.
5356         (mule_to_ucs_table): Deleted.
5357         (Fset_ucs_char): Deleted.
5358         (ucs_to_char): Deleted.
5359         (Fucs_char): Deleted.
5360         (Fset_char_ucs): Deleted.
5361         (Fchar_ucs): Deleted.
5362         (decode_ucs4): Deleted.
5363         (mule_char_to_ucs4): Deleted.
5364         (encode_ucs4): Deleted.
5365         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5366         (decode_coding_utf8): Likewise.
5367         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5368         (char_encode_iso2022): Fixed.
5369         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5370         `Fset_char_ucs' and `Fchar_ucs'.
5371         (complex_vars_of_file_coding): Don't initialize
5372         `ucs_to_mule_table'.
5373
5374         * objects-tty.c (tty_initialize_font_instance): Don't use
5375         `XCHARSET_COLUMNS'.
5376
5377         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5378         UTF-2000.
5379
5380         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5381         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5382
5383         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5384         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5385         (emchar_string_displayed_columns): Likewise.
5386
5387         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5388         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5389         (string_column_at_point): Likewise.
5390         (Fmove_to_column): Likewise.
5391
5392         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5393         `encoding_table' and `decoding_table'.
5394         (CHARSET_REP_BYTES): Deleted.
5395         (XCHARSET_REP_BYTES): Deleted.
5396         (XCHARSET_COLUMNS): Deleted.
5397         (CHAR_COLUMNS): New macro.
5398         (lookup_composite_char): Deleted unconditionally.
5399         (composite_char_string): Likewise.
5400
5401 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5402
5403         * char-ucs.h (Emchar_to_byte_table): New type.
5404         (get_byte_from_character_table): New function interface.
5405         (Vcharset_latin_jisx0201): New variable.
5406         (latin_jisx0201_to_ucs): New variable.
5407         (ucs_to_latin_jisx0201): New variable.
5408         (Vcharset_latin_iso8859_2): New variable.
5409         (latin_iso8859_2_to_ucs): New variable.
5410         (ucs_to_latin_iso8859_2): New variable.
5411         (Vcharset_latin_iso8859_3): New variable.
5412         (latin_iso8859_3_to_ucs): New variable.
5413         (ucs_to_latin_iso8859_3): New variable.
5414         (Vcharset_latin_iso8859_4): New variable.
5415         (latin_iso8859_4_to_ucs): New variable.
5416         (ucs_to_latin_iso8859_4): New variable.
5417         (Vcharset_latin_iso8859_9): New variable.
5418         (latin_iso8859_9_to_ucs): New variable.
5419         (ucs_to_latin_iso8859_9): New variable.
5420         (Vcharset_latin_viscii_lower): New variable.
5421         (latin_viscii_lower_to_ucs): New variable.
5422         (ucs_to_latin_viscii_lower): New variable.
5423         (Vcharset_latin_viscii_upper): New variable.
5424         (latin_viscii_upper_to_ucs): New variable.
5425         (ucs_to_latin_viscii_upper): New variable.
5426         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5427         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5428         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5429         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5430         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5431         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5432         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5433         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5434         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5435         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5436
5437         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5438         (Vcharset_latin_viscii_upper): New variable.
5439         (make_byte_from_character_table): New function.
5440         (put_byte_from_character_table): New function.
5441         (get_byte_from_character_table): New function.
5442         (CHAR96): New macro.
5443         (ucs_to_latin_jisx0201): New variable.
5444         (latin_jisx0201_to_ucs): New variable.
5445         (ucs_to_latin_iso8859_2): New variable.
5446         (latin_iso8859_2_to_ucs): New variable.
5447         (ucs_to_latin_iso8859_3): New variable.
5448         (latin_iso8859_3_to_ucs): New variable.
5449         (ucs_to_latin_iso8859_4): New variable.
5450         (latin_iso8859_4_to_ucs): New variable.
5451         (ucs_to_latin_iso8859_9): New variable.
5452         (latin_iso8859_9_to_ucs): New variable.
5453         (ucs_to_latin_viscii_lower): New variable.
5454         (latin_viscii_lower_to_ucs): New variable.
5455         (ucs_to_latin_viscii_upper): New variable.
5456         (latin_viscii_upper_to_ucs): New variable.
5457         (ucs_to_latin_tcvn5712): New variable.
5458         (latin_tcvn5712_to_ucs): New variable.
5459         (Qlatin_viscii_lower): New variable.
5460         (Qlatin_viscii_upper): New variable.
5461         (syms_of_mule_charset): Set up new symbol
5462         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5463         (complex_vars_of_mule_charset): Set up new charset
5464         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5465         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5466         `ucs_to_<CHARSET>' tables.
5467
5468 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5469
5470         * text-coding.c: New file.
5471
5472 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5473
5474         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5475
5476         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5477         (MAKE_CHAR): Modify for `ucs-bmp'.
5478         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5479         non-MULE characters of BMP.
5480
5481 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5482
5483         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5484         to 0.6.
5485
5486 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5487
5488         * lstream.h:
5489         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5490         - Include character.h for `CHAR_ASCII_P'.
5491
5492         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5493
5494         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5495         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5496
5497         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5498         (BYTE_C0_P): Likewise.
5499         (BYTE_C1_P): Likewise.
5500         (Lstream_get_emchar_1): Likewise.
5501         (Lstream_fput_emchar): Likewise.
5502         (Lstream_funget_emchar): Likewise.
5503         (copy_internal_to_external): Likewise.
5504         (copy_external_to_internal): Likewise.
5505
5506         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5507         (BYTE_C0_P): Likewise.
5508         (BYTE_C1_P): Likewise.
5509         (Lstream_get_emchar_1): Likewise.
5510         (Lstream_fput_emchar): Likewise.
5511         (Lstream_funget_emchar): Likewise.
5512         (copy_internal_to_external): Likewise.
5513         (copy_external_to_internal): Likewise.
5514
5515         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5516         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5517
5518         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5519         (BYTE_ASCII_P): Moved to mb-1byte.h.
5520
5521 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5522
5523         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5524
5525         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5526         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5527         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5528         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5529         (VALIDATE_CHARPTR_FORWARD): Likewise.
5530         (simple_charptr_emchar): Moved to mb-multibyte.h.
5531         (simple_set_charptr_emchar): Likewise.
5532         (simple_charptr_copy_char): Likewise.
5533         (non_ascii_charptr_emchar): Likewise.
5534         (non_ascii_set_charptr_emchar): Likewise.
5535         (non_ascii_charptr_copy_char): Likewise.
5536         (charptr_emchar): Moved to mb-*byte.h.
5537         (set_charptr_emchar): Likewise.
5538         (charptr_copy_char): Likewise.
5539
5540         * mb-1byte.h, mb-multibyte.h: New files.
5541
5542 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5543
5544         * mb-utf-8.h (MULTIBYTE): New macro.
5545         (MAX_EMCHAR_LEN): Moved from buffer.h.
5546         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5547
5548         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5549
5550         * mb-lb.h, multibyte.h: New files.
5551
5552         * char-1byte.h (Charset_ID): Moved from buffer.h.
5553         (MIN_LEADING_BYTE): Likewise.
5554         (LEADING_BYTE_ASCII): Likewise.
5555         (NUM_LEADING_BYTES): Likewise.
5556         (CHARSETP): Likewise.
5557         (CHARSET_BY_LEADING_BYTE): Likewise.
5558         (XCHARSET_LEADING_BYTE): Likewise.
5559         (XCHARSET_GRAPHIC): Likewise.
5560         (XCHARSET_COLUMNS): Likewise.
5561         (XCHARSET_DIMENSION): Likewise.
5562         (CHAR_CHARSET): Likewise.
5563         (CHAR_LEADING_BYTE): Likewise.
5564         (BREAKUP_CHAR): Likewise.
5565         (Vcharset_ascii): Likewise.
5566
5567         * buffer.h: Include multibyte.h unconditionally.
5568         (VALID_CHARPTR_P): Moved to multibyte.h.
5569         (ASSERT_VALID_CHARPTR): Likewise.
5570         (REAL_INC_CHARPTR): Likewise.
5571         (REAL_INC_CHARBYTIND): Likewise.
5572         (REAL_DEC_CHARPTR): Likewise.
5573         (INC_CHARPTR): Likewise.
5574         (INC_CHARBYTIND): Likewise.
5575         (DEC_CHARPTR): Likewise.
5576         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5577         (VALIDATE_CHARPTR_FORWARD): Likewise.
5578         (charptr_n_addr): Likewise.
5579         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5580         (simple_charptr_emchar): Moved to multibyte.h.
5581         (simple_set_charptr_emchar): Likewise.
5582         (simple_charptr_copy_char): Likewise.
5583         (non_ascii_charptr_emchar): Likewise.
5584         (non_ascii_set_charptr_emchar): Likewise.
5585         (non_ascii_charptr_copy_char): Likewise.
5586         (charptr_emchar): Likewise.
5587         (set_charptr_emchar): Likewise.
5588         (charptr_copy_char): Likewise.
5589         (charptr_emchar_n): Likewise.
5590         (Charset_ID): Moved to char-1byte.h.
5591         (Vcharset_ascii): Likewise.
5592         (CHAR_CHARSET): Likewise.
5593         (CHAR_LEADING_BYTE): Likewise.
5594         (LEADING_BYTE_ASCII): Likewise.
5595         (NUM_LEADING_BYTES): Likewise.
5596         (MIN_LEADING_BYTE): Likewise.
5597         (CHARSETP): Likewise.
5598         (CHARSET_BY_LEADING_BYTE): Likewise.
5599         (XCHARSET_LEADING_BYTE): Likewise.
5600         (XCHARSET_GRAPHIC): Likewise.
5601         (XCHARSET_COLUMNS): Likewise.
5602         (XCHARSET_DIMENSION): Likewise.
5603         (BREAKUP_CHAR): Likewise.
5604
5605 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5606
5607         * character.h: Add document about interface for characters.
5608
5609         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5610         (MAKE_CHAR): Delete comment about
5611         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5612         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5613         (BREAKUP_CHAR): Modify name of arguments.
5614         (CHAR_CHARSET): Modify name of argument.
5615
5616         * buffer.h: Delete document about Emchar accessors.
5617
5618 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5619
5620         * character.h (CHAR_INTP): Moved from buffer.h
5621         (CHAR_OR_CHAR_INTP): Likewise.
5622         (XCHAR_OR_CHAR_INT): Likewise.
5623         (CHECK_CHAR_COERCE_INT): Likewise.
5624
5625         * buffer.h (CHAR_INTP): Moved to character.h
5626         (CHAR_OR_CHAR_INTP): Likewise.
5627         (XCHAR_OR_CHAR_INT): Likewise.
5628         (CHECK_CHAR_COERCE_INT): Likewise.
5629
5630 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5631
5632         * character.h:
5633         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5634         - Include char-1byte.h, char-lb.h or char-ucs.h.
5635
5636         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5637
5638         * buffer.h: Include character unconditionally.
5639         (valid_char_p): Moved to char-*.h.
5640         (non_ascii_valid_char_p): Moved to char-lb.h.
5641
5642         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5643
5644 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5645
5646         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5647         in UTF-2000 because it is not ported yet and not to use
5648         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5649         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5650         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5651
5652         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5653         (CHAR_ASCII_P): Moved from character.h.
5654
5655         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5656         (CHAR_ASCII_P): Likewise.
5657         (CHAR_FIELD1_MASK): Deleted.
5658         (CHAR_FIELD2_MASK): Deleted.
5659         (CHAR_FIELD3_MASK): Deleted.
5660         (MAX_CHAR_BASIC_LATIN): New macro.
5661         (CHAR_FIELD1): Deleted.
5662         (CHAR_FIELD2_INTERNAL): Deleted.
5663         (CHAR_FIELD3_INTERNAL): Deleted.
5664         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5665         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5666         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5667         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5668         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5669         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5670         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5671         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5672         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5673         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5674         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5675         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5676         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5677         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5678         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5679         (MIN_CHAR_COMPOSITION): Deleted.
5680         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5681         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5682
5683 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5684
5685         * buffer.h: Include mb-utf-8.h in UTF-2000.
5686
5687         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5688
5689         * mb-utf-8.h: New file.
5690
5691 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5692
5693         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5694         instead of `int'.
5695
5696         * mule-charset.h, buffer.h (Charset_ID): New type.
5697
5698 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5699
5700         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5701         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5702         instead of `MULE_CHAR_PRIVATE_OFFSET',
5703         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5704         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5705         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5706
5707         * character.h (Vcharset_japanese_jisx0212): New variable
5708         definition.
5709
5710 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5711
5712         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5713         (charset_by_attributes): Delete array about direction.
5714         (latin_a_char_to_charset): New variable in UTF-2000.
5715         (latin_a_char_to_byte1): New variable in UTF-2000.
5716         (latin_a_char_to_byte2): New variable in UTF-2000.
5717         (Qucs_bmp): New variable.
5718         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5719         `Bufbyte'.
5720         (next_allocated_2_byte_leading_byte): Likewise.
5721         (non_ascii_set_charptr_emchar): Likewise.
5722         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5723         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5724         `charset_by_attributes'.
5725         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5726         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5727         and `CHARSET_BY_LEADING_BYTE'.
5728         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5729         `utf-2000-version' to `vars_of_mule_charset'.
5730         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5731         define `leading-code-private-11' in UTF-2000; move setting of
5732         `utf-2000-version' from `syms_of_mule_charset'.
5733         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5734         UTF-2000.
5735
5736         * character.h (Charset_ID): New type.
5737         (LEADING_BYTE_UCS_BMP): New macro.
5738         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5739         (CHARSET_ID_OFFSET_94): New macro.
5740         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5741         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5742         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5743         final-byte.
5744         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5745         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5746         (CHARSET_ID_OFFSET_96): New macro.
5747         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5748         CHARSET_ID_OFFSET_96 and final-byte.
5749         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5750         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5751         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5752         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5753         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5754         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5755         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5756         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5757         (LEADING_BYTE_THAI_TIS620): Likewise.
5758         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5759         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5760         (CHARSET_ID_OFFSET_94x94): New macro.
5761         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5762         CHARSET_ID_OFFSET_94x94 and final-byte.
5763         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5764         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5765         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5766         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5767         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5768         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5769         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5770         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5771         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5772         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5773         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5774         (CHARSET_TYPE_128X128): New macro.
5775         (CHARSET_TYPE_256X256): New macro.
5776         (XCHARSET_PRIVATE_P): Delete unconditionally.
5777         (charset_by_attributes): Delete array about direction.
5778         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5779         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5780         (MIN_CHAR_94): New macro.
5781         (MAX_CHAR_94): New macro.
5782         (MIN_CHAR_96): New macro.
5783         (MAX_CHAR_96): New macro.
5784         (MIN_CHAR_94x94): New macro.
5785         (MAX_CHAR_94x94): New macro.
5786         (MIN_CHAR_96x96): New macro.
5787         (MAX_CHAR_96x96): New macro.
5788         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5789         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5790         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5791         - 32)'.
5792         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5793         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5794         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5795         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5796         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5797         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5798         `XCHARSET_LEADING_BYTE' to make code-point.
5799         (latin_a_char_to_charset): New variable.
5800         (latin_a_char_to_byte1): New variable.
5801         (latin_a_char_to_byte2): New variable.
5802         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5803         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5804         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5805
5806         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5807         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5808         (find_charsets_in_emchar_string): Likewise.
5809         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5810
5811         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5812         `int'.
5813         (decode_coding_iso2022): Likewise.
5814
5815         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5816         of `unsigned char'.
5817
5818         * redisplay.c (redisplay_text_width_emchar_string): Use
5819         `Charset_ID' instead of `unsigned char'.
5820         (redisplay_frame_text_width_string): Likewise.
5821
5822         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5823         `unsigned char'.
5824
5825         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5826         instead of `unsigned char'.
5827         (face_cachel_charset_font_metric_info): Likewise.
5828
5829         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5830         (get_non_ascii_char_table_value): Likewise.
5831         (get_char_table): Likewise.
5832         (put_char_table): Likewise.
5833         (map_over_other_charset): Likewise.
5834         (map_char_table): Likewise.
5835
5836         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5837         instead of `unsigned char'.
5838
5839 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5840
5841         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5842         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5843
5844         * mule-charset.c (leading_code_private_11): Don't define in
5845         UTF-2000.
5846
5847         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5848         in UTF-2000 because it is not ported yet and not to use
5849         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5850
5851 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5852
5853         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5854
5855 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5856
5857         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5858         in UTF-2000.
5859
5860         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5861         of unsigned char to store leading-byte.
5862
5863         * chartab.c (get_non_ascii_char_table_value): Don't use
5864         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5865
5866         * file-coding.c (encode_coding_big5): Delete bogus implementation
5867         in UTF2000.
5868
5869         * character.h (LEADING_BYTE_*): Delete definition for
5870         non-UTF-2000.
5871         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5872         (LEADING_BYTE_PREFIX_P): Deleted.
5873         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5874         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5875         (BUFBYTE_LEADING_BYTE_P): Deleted.
5876         (CHARSET_PRIVATE_P): Deleted unconditionally.
5877         (rep_bytes_by_first_byte): Deleted unconditionally.
5878         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5879         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5880         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5881         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5882         (CHAR_FIELD2): Deleted.
5883         (CHAR_FIELD3): Deleted.
5884         (MAKE_CHAR): Delete definition for non-UTF-2000.
5885         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5886         (breakup_char_1): New implementation.
5887         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5888         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5889
5890 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5891
5892         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5893         condition.
5894
5895 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5896
5897         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5898         (CHARSET_PRIVATE_P): Likewise.
5899         (XCHARSET_PRIVATE_P): Likewise.
5900         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5901
5902         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5903         UTF2000.
5904         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5905
5906 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5907
5908         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5909         (NUM_LEADING_BYTES): Changed from 128 to 256.
5910         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5911         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5912         UTF2000.
5913         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5914
5915         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5916         UTF2000.
5917         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5918         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5919         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5920         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5921         (Qchinese_cns11643_3): New variable in UTF2000.
5922         (Qchinese_cns11643_4): New variable in UTF2000.
5923         (Qchinese_cns11643_5): New variable in UTF2000.
5924         (Qchinese_cns11643_6): New variable in UTF2000.
5925         (Qchinese_cns11643_7): New variable in UTF2000.
5926         (syms_of_mule_charset): Define `chinese-cns11643-3',
5927         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5928         and `chinese-cns11643-7' in UTF2000.
5929         (vars_of_mule_charset): Initialize
5930         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5931         + 1 in UTF2000.
5932         (complex_vars_of_mule_charset): Setup charset
5933         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5934         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5935
5936 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5937
5938         * mule-charset.c: Move setting for `leading-code-private-11' from
5939         `syms_of_mule_charset' to `vars_of_mule_charset'.
5940
5941 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5942
5943         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5944         and `NUM_LEADING_BYTES' in assert.
5945
5946 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5947
5948         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5949         instead of 128.
5950         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5951         `NUM_LEADING_BYTES' instead of 128.
5952
5953 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5954
5955         * mule-charset.h (charset_by_leading_byte): Use
5956         `NUM_LEADING_BYTES' instead of 128.
5957         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5958
5959         * mule-charset.c (charset_by_leading_byte): Use
5960         `NUM_LEADING_BYTES' instead of 128.
5961         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5962
5963         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5964         128.
5965
5966 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5967
5968         * mule-charset.c (syms_of_mule_charset): Update to
5969         0.4 (Shin-Imamiya).
5970
5971 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5972
5973         * file-coding.c (encode_coding_sjis): New implementation for
5974         UTF2000.  (decode_coding_sjis): Ditto.
5975
5976 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5977
5978         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5979         Don't define in UTF2000.
5980
5981         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5982         defined.
5983
5984         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5985         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5986         MULE.
5987
5988 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5989
5990         * config.h.in (CHAR_IS_UCS4): New macro.
5991
5992         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5993         conventional MULE representation.
5994         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5995
5996         * mule-charset.h: Reverted to original.
5997
5998         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5999         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
6000         "mule-charset.h" if CHAR_IS_UCS4 is defined.
6001
6002         * character.h: New file.
6003
6004         * file-coding.c (Fmake_coding_system): Set 1 to
6005         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
6006         defined.
6007         (encode_coding_no_conversion): New implementation for UTF2000.
6008
6009         * file-coding.h (struct Lisp_Coding_System): Add new member
6010         `fixed.size'.
6011
6012 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
6013
6014         * file-coding.c (decode_coding_iso2022): Code-point arguments of
6015         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
6016         (encode_coding_iso2022): New implementation for UTF2000.
6017
6018 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6019
6020         * mule-canna.c (c2mu): New implementation for UTF2000.
6021         (m2c): Likewise.
6022
6023 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6024
6025         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
6026
6027 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6028
6029         * file-coding.c (reset_encoding_stream): Set 0 to
6030         `str->iso2022.current_char_boundary' in UTF2000.
6031         (encode_utf8): Don't define in UTF2000.
6032         (encode_coding_utf8): New implementation for UTF-8 representation
6033         of UTF2000.
6034         (complex_vars_of_file_coding): Define coding-system `utf-8'.
6035
6036 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6037
6038         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
6039
6040         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
6041         UTF2000.
6042         (REP_BYTES_BY_FIRST_BYTE): Likewise.
6043
6044         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
6045
6046         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
6047         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
6048         as UTF-8 in UTF2000.
6049         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
6050         (non_ascii_valid_char_p): Don't define in UTF2000.
6051         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
6052         (Lstream_get_emchar_1): Likewise.
6053         (utf-2000-version): New variable in UTF2000.
6054
6055         * lread.c (read_escape): Add new reader `u'.
6056
6057         * insdel.c (three_to_one_table): Don't define in UTF2000.
6058         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
6059         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6060         UTF2000.
6061         (bytind_to_bufpos_func): Likewise.
6062         (buffer_mule_signal_inserted_region): Likewise.
6063         (vars_of_insdel): Don't initialize `three_to_one_table'.
6064         (init_buffer_text): Use `buf->text->mule_size' instead of
6065         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6066         UTF2000.
6067
6068         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
6069         UTF-8 representation in UTF2000.
6070         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
6071         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
6072         (decode_coding_iso2022): Don't define local variable `lb' in
6073         UTF2000; don't use LEADING_BYTE in UTF2000; use
6074         `DECODE_ADD_UCS_CHAR' in UTF2000.
6075         (convert_to_external_format): Decode as UTF-8 in UTF2000.
6076
6077         * config.h.in (UTF2000): New macro.
6078
6079         * buffer.h (struct buffer_text): Add new member `mule_size' and
6080         don't add `mule_shifter' and `mule_three_p' in UTF2000.
6081         (valid_char_p): Return always 1 in UTF2000.
6082         (MAX_EMCHAR_LEN): 6 in UTF2000.
6083         (three_to_one_table): Don't define in UTF2000.
6084         (real_bufpos_to_bytind): Modify for UTF-8 representation in
6085         UTF2000.
6086         (real_bytind_to_bufpos): Likewise.
6087
6088         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
6089
6090 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
6091
6092         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
6093         representation change.
6094         (Vutf_2000_version): New variable.
6095         (leading_code_private_11): New variable.
6096         (syms_of_mule_charset): Add new variables `utf-2000-version' and
6097         `leading-code-private-11'.
6098
6099         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
6100         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
6101         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
6102         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
6103         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
6104         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
6105         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
6106         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
6107         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
6108         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
6109         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
6110         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
6111         (MIN_CHAR_GREEK): New macro.
6112         (MAX_CHAR_GREEK): New macro.
6113         (MIN_CHAR_CYRILLIC): New macro.
6114         (MAX_CHAR_CYRILLIC): New macro.
6115         (MIN_CHAR_HEBREW): New macro.
6116         (MAX_CHAR_HEBREW): New macro.
6117         (MIN_CHAR_THAI): New macro.
6118         (MAX_CHAR_THAI): New macro.
6119         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
6120         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
6121         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
6122         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
6123         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
6124         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
6125         (CHAR_FIELD2): New inline function.
6126         (CHAR_FIELD3): New inline function.
6127         (MULE_CHAR_PRIVATE_OFFSET): New macro.
6128         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
6129         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
6130         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
6131         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
6132         (MIN_CHAR_COMPOSITION): Likewise.
6133         (CHAR_LEADING_BYTE): Modified for character representation change.
6134         (MAKE_CHAR): Likewise.
6135
6136         * lisp.h (Vcharset_latin_iso8859_1): New variable.
6137         (Vcharset_greek_iso8859_7): Likewise.
6138         (Vcharset_cyrillic_iso8859_5): Likewise.
6139         (Vcharset_hebrew_iso8859_8): Likewise.
6140         (Vcharset_thai_tis620): Likewise.
6141         (Vcharset_katakana_jisx0201): Likewise.
6142
6143 2008-12-28  Vin Shelton  <acs@xemacs.org>
6144
6145         * XEmacs 21.4.22 is released
6146
6147 2008-12-27  Vin Shelton  <acs@xemacs.org>
6148
6149         * syswindows.h: Don't define wide character interfaces for Cygwin
6150         1.7 and up.
6151
6152 2008-03-05  Dominique Quatravaux  <domq@cpan.org>
6153
6154         * glyphs-gtk.c: Fixed compilation under gcc 4.x.
6155
6156 2008-11-01  Stephen J. Turnbull  <stephen@xemacs.org>
6157
6158         * regex.c (re_search_2): Fix at_dot by changing charpos to bytepos.
6159         From Julian Bradfield <18654.1143.304851.782755@krk.inf.ed.ac.uk>.
6160
6161 2008-12-25  Vin Shelton  <acs@xemacs.org>
6162
6163         * mule-ccl.c (ccl_driver): Fix off-by-one error.
6164         By Julian Bradfield in
6165         <18691.16568.526264.972026@krk.inf.ed.ac.uk>.
6166
6167         * mule-ccl.c (ccl_driver): 
6168
6169 2007-10-07  Vin Shelton  <acs@xemacs.org>
6170
6171         * XEmacs 21.4.21 is released
6172
6173 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
6174
6175         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
6176
6177 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
6178
6179         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
6180         (png_instantiate): Initialize setjmp_buffer early, and avoid
6181         recursive entry to error handler.
6182
6183 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
6184
6185         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
6186         a typo fix.
6187
6188 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
6189
6190         * event-Xt.c (x_reset_modifier_mapping):
6191         * event-gtk.c (gtk_reset_modifier_mapping):
6192         Zero out the device's modifier map once we've freed it, to prevent
6193         a double free on a re-entrant call. 
6194
6195 2007-05-17  Vin Shelton  <acs@xemacs.org>
6196
6197         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
6198         64-bit linux.  Patch from Hans de Graaff.
6199
6200 2007-05-02  Vin Shelton  <acs@xemacs.org>
6201
6202         * dumper.c (pdump): Don't close pdump_fd (already closed by
6203         fclose() call.  Patch from Steve Higham.
6204         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
6205         already closed.  Patch inspired by Steve Higham.
6206
6207 2007-05-01  Vin Shelton  <acs@xemacs.org>
6208
6209         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
6210         (mswindows_fstat): Ditto.
6211         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
6212
6213 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
6214
6215         * postgresql.c: Update Steve Baur's email address by his request.
6216         * postgresql.h: Ditto.
6217
6218 2007-01-04  Vin Shelton  <acs@xemacs.org>
6219
6220         * fileio.c (check_writable): Check old-style readonly bit only for
6221         non-directories.
6222
6223 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
6224
6225         * src/fileio.c (check_writable): 
6226         Cope with the fact that the read-only attribute trumps Windows NTFS
6227         ACLS.
6228
6229
6230 2006-12-09  Vin Shelton  <acs@xemacs.org>
6231
6232         * XEmacs 21.4.20 is released
6233
6234 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
6235
6236         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
6237         relocated the definitions to be used sooner in file.
6238         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6239         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6240         overflow.
6241
6242 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
6243
6244         * sound.c (init_native_sound):
6245         Only X11 and GTK devices can possibly not be on the console of the
6246         associated machine. Fixes a crash when init_native_sound is called
6247         on a msprinter device. 
6248
6249 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
6250
6251         * buffer.c (buffer-file-name): Document invariant.
6252         (buffer-file-truename): Sync wording to buffer-file-name.
6253         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6254         and discussion.
6255
6256 2006-11-19  Benson Margulies  <benson@dchbk.us>
6257
6258         * fileio.c: Add code to use full Win32 API to check for write
6259         access.  Win32 has the general design policy that you aren't
6260         supposed to ask this question, since security checks change
6261         depending on asynchronous processes.  Nonetheless, there is a way,
6262         by acting as if we are a server doing interpretive access
6263         control.
6264
6265 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6266
6267         * bytecode.c: Use xnew_array instead of alloca.
6268
6269 2006-07-04  Vin Shelton  <acs@xemacs.org>
6270
6271         * redisplay-msw.c: Fix tiny, but crucial typo.
6272
6273 2006-06-22  Jerry James  <james@xemacs.org>
6274
6275         * EmacsShell-sub.c (ChangeManaged):
6276         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6277         NULL.
6278         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6279         checking if it is NULL.  Also fix a memory leak.
6280         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6281         dereference it, not the other way around.
6282         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6283         overflow check.
6284         * dumper.c (pdump_register_struct): Ditto.
6285         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6286         to (short) warnpath overflow warnpath.
6287         * extents.c (detach_all_extents): Call extent_list_delete_all with
6288         a non-NULL parameter only.
6289         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6290         NULL width and height.
6291         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6292         xic before checking if they are NULL.
6293         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6294         allocated array.
6295         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6296         * nas.c (Err): Fix a memory leak.
6297         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6298         Don't create the buffer if there is nothing to do.
6299         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6300         * redisplay-output.c (redisplay_output_layout): Ditto.
6301         * redisplay-tty.c (tty_output_display_block): Ditto.
6302         * redisplay-x.c (x_output_display_block): Ditto.
6303         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6304         dereference instance->scrollbar_data if it is NULL.
6305         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6306         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6307         for sb->scrollbar_data.
6308         * sound.c (init_native_sound): Avoid a buffer overflow by
6309         allocating a buffer with the appropriate size.
6310
6311 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6312
6313         * EmacsShell-sub.c (RootGeometryManager):
6314         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6315         Based on a suggestion by Francois L'Archeveque.
6316
6317 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6318
6319         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6320         current values found in GNU Emacs.
6321
6322 2006-03-17  Vin Shelton  <acs@xemacs.org>
6323
6324         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6325         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6326
6327         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6328         'hex_initialized' because it conflicts with 'initialized' in
6329         lisp.h.
6330
6331 2006-01-28  Vin Shelton  <acs@xemacs.org>
6332
6333         * XEmacs 21.4.19 is released
6334
6335 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6336
6337         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6338
6339 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6340
6341         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6342         5000 to INT_MAX.
6343
6344 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6345
6346         * database.c: Suppress compiler warning under Cygwin.
6347         * database.c: Removed __FreeBSD__ check, should be handled by
6348         HAVE_U_xxx_T defines.
6349
6350 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6351
6352         * console.c (stuff_buffered_input): Compile body only if
6353         HAVE_TTY.
6354
6355 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6356
6357         * callproc.c: #include sysdir.h, so that any appropriate Mule
6358         magic happens with the chdir() call when calling a subprocess. 
6359
6360 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6361
6362         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6363         * mule-ccl.c: Check that a character set exists before using it
6364         to create a character. 
6365
6366 2005-12-06  Vin Shelton  <acs@xemacs.org>
6367
6368         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6369         to INT_MAX.
6370
6371 2005-12-03  Vin Shelton <acs@xemacs.org>
6372
6373         * XEmacs 21.4.18 is released
6374
6375 2005-11-27  Kean Johnston <kean@armory.com>
6376
6377         * redisplay-tty.c (set_tty_modes):
6378         (reset_tty_modes): disable auto-margins if the terminal supports
6379         them.
6380         (init_tty_for_redisplay): fix cursor shape.
6381
6382 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6383
6384         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6385         for control-1 characters properly, both when reading multibyte
6386         characters and writing them. 
6387
6388 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6389
6390         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6391         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6392         were seeing with incremental selection transfer failing. 
6393
6394 2005-11-26  Vin Shelton  <acs@xemacs.org>
6395
6396         * callproc.c (Fold_call_process_internal): Create the buffer if it
6397         does not already exist.  The original patch came from Ben Wing in
6398         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6399
6400 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6401
6402         * callproc.c: Process-related docstring improvements spurred by
6403         Norbert Koch.
6404
6405 2005-11-25  Vin Shelton  <acs@xemacs.org>
6406
6407         * depend: Regenerated.
6408
6409 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6410
6411         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6412         says it clashes with a global with the same name.
6413
6414 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6415
6416         * sysdll.c (dll_open): Under MacOS X return NULL under the
6417         filename is NULL.  Fixes problems finding local symbols under 10.4
6418         (Tiger)
6419
6420 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6421         
6422         * config.h.in: New HAVE_U_INT*_T defines.
6423         
6424         * database.c: Only use u_int*_t typedefs if not already
6425         defined.
6426
6427 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6428
6429         * src/process-unix.c (unix_open_network_stream): moved
6430           'portbuf' buffer out of an inner block as it is used in the
6431           entire function. With gcc4, the stack may get corrupted
6432           after leaving this block. This patches adjusts the size of
6433           the used buffer also; static '128' bytes are far too much
6434           currently and might not suffice for future architectures
6435           (e.g. for 512 bit ones ;)). Instead of, use only the really
6436           required space (max octets * ln(256)/ln(10) chars + space
6437           for '\0' and the sign)
6438
6439 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6440
6441         * callproc.c: Include sysdir.h, so any necessary Mule processing
6442         is done on the current directory name before starting a new
6443         process.
6444
6445 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6446
6447         * chartab.c (Fchar_table_p):
6448         (Fget_range_char_table):
6449         (Fput_char_table):
6450         (Fmap_char_table):
6451         Describe range representation and fix typo.
6452
6453 2005-02-12  Vin Shelton  <acs@xemacs.org>
6454
6455         * emacs.c (shut_down_emacs): Advise users to send email to the
6456         xemacs-beta list instead of crashes@xemacs.org.
6457
6458 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6459
6460         * process-unix.c (unix_send_process): Flush the last chunk, even
6461         when the pipe is blocked.
6462
6463 2005-02-06  Vin Shelton <acs@xemacs.org>
6464
6465         * XEmacs 21.4.17 is released
6466
6467 2005-01-31  Ben Wing  <ben@xemacs.org>
6468
6469         * emacs.c:
6470         Define assert_failed() always.
6471         * lisp.h:
6472         Always define ABORT().
6473
6474 2005-01-25  Ben Wing  <ben@xemacs.org>
6475
6476         * Makefile.in.in:
6477         * Makefile.in.in (%.o):
6478         Don't compile executable as Windows (-mwindows) under Cygwin.
6479         Semi-recent changes to Cygwin's executable-startup handling make
6480         it impossible to access the TTY this way.
6481
6482         Don't use special linker file under Cygwin (cygwin.sc) except
6483         when non-PDUMP (even in this case it is highly questionable); you
6484         get errors like
6485
6486       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6487    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6488
6489 2005-01-29  Ben Wing  <ben@xemacs.org>
6490
6491         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6492
6493         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6494
6495 2005-01-29  Ben Wing  <ben@xemacs.org>
6496
6497         * bytecode.c (optimize_compiled_function):
6498         * print.c (FROB):
6499         * print.c (long_to_string):
6500         Add casts to avoid warning.
6501         
6502         * glyphs-eimage.c:
6503         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6504         #### The better solution is to move the TIFF and JPEG code to
6505         different files.
6506         
6507         * glyphs-msw.c (mswindows_xbm_instantiate):
6508         Define __STDC__ to avoid problems with compface.h.
6509         
6510         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6511         * EmacsShell-sub.c:
6512         * EmacsShell-sub.c (ABORT):
6513         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6514         * EmacsShell-sub.c (RootGeometryManager):
6515         * EmacsShell.c:
6516         * EmacsShell.c (ABORT):
6517         * EmacsShell.c (EmacsShellUpdateSizeHints):
6518         * alloc.c (free_lcrecord):
6519         * alloca.c (i00afunc):
6520         * buffer.c (delete_from_buffer_alist):
6521         * buffer.c (MARKED_SLOT):
6522         * bytecode.c (execute_rare_opcode):
6523         * bytecode.c (optimize_byte_code):
6524         * bytecode.c (Ffetch_bytecode):
6525         * chartab.c (char_table_type_to_symbol):
6526         * chartab.c (Freset_char_table):
6527         * chartab.c (decode_char_table_range):
6528         * chartab.c (Fget_range_char_table):
6529         * chartab.c (check_valid_char_table_value):
6530         * chartab.c (map_char_table):
6531         * chartab.c (slow_map_char_table_fun):
6532         * chartab.c (chartab_instantiate):
6533         * cm.c (cmcheckmagic):
6534         * console-msw.c (DHEADER):
6535         * console.c (MARKED_SLOT):
6536         * data.c (finish_marking_weak_lists):
6537         * data.c (encode_weak_list_type):
6538         * debug.h (DASSERT):
6539         * device-gtk.c (gtk_init_device):
6540         * device-msw.c (mswindows_get_default_margin):
6541         * device-tty.c (tty_init_device):
6542         * device-x.c (get_device_from_display):
6543         * device-x.c (x_get_visual_depth):
6544         * doprnt.c (parse_doprnt_spec):
6545         * doprnt.c (get_doprnt_args):
6546         * dumper.c (pdump_get_indirect_count):
6547         * dumper.c (pdump_register_sub):
6548         * dumper.c (pdump_register_object):
6549         * dumper.c (pdump_register_struct):
6550         * dumper.c (pdump_dump_data):
6551         * dumper.c (pdump_reloc_one):
6552         * elhash.c (print_hash_table):
6553         * elhash.c (make_standard_lisp_hash_table):
6554         * elhash.c (hash_table_instantiate):
6555         * emacs.c:
6556         * emacs.c (Fforce_debugging_signal):
6557         * emacs.c (sort_args):
6558         * emacs.c (main):
6559         * emacs.c (assert_failed):
6560         * eval.c (throw_or_bomb_out):
6561         * eval.c (signal_1):
6562         * eval.c (Fsignal):
6563         * event-Xt.c:
6564         * event-Xt.c (emacs_Xt_mapping_action):
6565         * event-Xt.c (Xt_process_to_emacs_event):
6566         * event-msw.c:
6567         * event-stream.c (check_event_stream_ok):
6568         * event-stream.c (Fadd_timeout):
6569         * event-stream.c (Fadd_async_timeout):
6570         * event-stream.c (Fdiscard_input):
6571         * event-stream.c (execute_internal_event):
6572         * event-stream.c (Frecent_keys):
6573         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6574         * event-stream.c (lookup_command_event):
6575         * event-unixoid.c (poll_fds_for_input):
6576         * events.c:
6577         * events.c (mark_event):
6578         * events.c (event_equal):
6579         * events.c (event_hash):
6580         * events.c (Fmake_event):
6581         * events.c (Fdeallocate_event):
6582         * events.c (event_chain_find_previous):
6583         * events.c (event_to_character):
6584         * events.c (format_event_object):
6585         * events.c (Fevent_type):
6586         * events.c (event_pixel_translation):
6587         * events.c (Fevent_properties):
6588         * extents.c (extent_in_region_p):
6589         * extents.c (print_extent):
6590         * extents.c (process_extents_for_insertion_mapper):
6591         * extents.c (report_extent_modification_mapper):
6592         * extents.c (glyph_layout_to_symbol):
6593         * faces.c (face_validate):
6594         * file-coding.c (eol_type_to_symbol):
6595         * file-coding.c (subsidiary_coding_system):
6596         * file-coding.c (Fcoding_system_type):
6597         * file-coding.c (Fcoding_system_property):
6598         * file-coding.c (mule_decode):
6599         * file-coding.c (mule_encode):
6600         * file-coding.c (encode_coding_ucs4):
6601         * file-coding.c (encode_coding_utf8):
6602         * file-coding.c (parse_iso2022_esc):
6603         * file-coding.c (encode_coding_iso2022):
6604         * fileio.c:
6605         * fns.c (concat):
6606         * fns.c (Fsubseq):
6607         * fns.c (mapcar1):
6608         * fns.c (Fbase64_encode_region):
6609         * fns.c (Fbase64_encode_string):
6610         * fns.c (Fbase64_decode_region):
6611         * fns.c (Fbase64_decode_string):
6612         * font-lock.c (find_context):
6613         * font-lock.c (context_to_symbol):
6614         * frame-gtk.c (gtk_set_frame_pointer):
6615         * frame-gtk.c (gtk_update_frame_external_traits):
6616         * frame-x.c (x_wm_mark_shell_size_user_specified):
6617         * frame-x.c (x_wm_mark_shell_position_user_specified):
6618         * frame-x.c (x_wm_set_shell_iconic_p):
6619         * frame-x.c (x_wm_set_cell_size):
6620         * frame-x.c (x_wm_set_variable_size):
6621         * frame-x.c (x_wm_store_class_hints):
6622         * frame-x.c (x_wm_maybe_store_wm_command):
6623         * frame-x.c (x_initialize_frame_size):
6624         * frame-x.c (x_update_frame_external_traits):
6625         * frame.c:
6626         * frame.c (delete_frame_internal):
6627         * frame.c (mouse_pixel_position_1):
6628         * frame.c (change_frame_size_1):
6629         * free-hook.c (check_free):
6630         * free-hook.c (check_realloc):
6631         * free-hook.c (note_block_input):
6632         * free-hook.c (log_gcpro):
6633         * gccache-gtk.c (gc_cache_lookup):
6634         * glyphs-eimage.c (tiff_memory_write):
6635         * glyphs-gtk.c (gtk_finalize_image_instance):
6636         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6637         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6638         * glyphs-gtk.c (gtk_xpm_instantiate):
6639         * glyphs-gtk.c (gtk_unmap_subwindow):
6640         * glyphs-gtk.c (gtk_map_subwindow):
6641         * glyphs-gtk.c (gtk_button_redisplay):
6642         * glyphs-msw.c:
6643         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6644         * glyphs-x.c (init_image_instance_from_xbm_inline):
6645         * glyphs-x.c (extract_xpm_color_names):
6646         * glyphs-x.c (x_xpm_instantiate):
6647         * glyphs.c (get_image_instantiator_governing_domain):
6648         * glyphs.c (print_image_instance):
6649         * glyphs.c (image_instance_equal):
6650         * glyphs.c (image_instance_hash):
6651         * glyphs.c (encode_image_instance_type):
6652         * glyphs.c (make_image_instance_1):
6653         * glyphs.c (inherit_instantiate):
6654         * glyphs.c (image_instantiate):
6655         * glyphs.c (allocate_glyph):
6656         * glyphs.c (Fglyph_type):
6657         * glyphs.c (redisplay_subwindow):
6658         * glyphs.c (display_table_entry):
6659         * gtk-glue.c (xemacs_list_to_gtklist):
6660         * gtk-glue.c (xemacs_gtklist_to_list):
6661         * gtk-glue.c (xemacs_list_to_array):
6662         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6663         * gutter.c (gutter_was_visible):
6664         * gutter.c (get_gutter_coords):
6665         * input-method-xlib.c (get_XIM_input):
6666         * insdel.c (bufpos_to_bytind_func):
6667         * insdel.c (bytind_to_bufpos_func):
6668         * insdel.c (move_gap):
6669         * intl.c (x_get_composed_input):
6670         * keymap.c (keymap_lookup_directly):
6671         * keymap.c (keymap_delete_inverse_internal):
6672         * keymap.c (ensure_meta_prefix_char_keymapp):
6673         * keymap.c (accessible_keymaps_mapper_1):
6674         * keymap.c (where_is_recursive_mapper):
6675         * lisp.h:
6676         * lisp.h (ABORT):
6677         * lread.c (read_atom):
6678         * lstream.c (Lstream_delete):
6679         * lstream.c (make_lisp_buffer_stream_1):
6680         * macros.c (pop_kbd_macro_event):
6681         * malloc.c (malloc):
6682         * malloc.c (free):
6683         * marker.c (bi_marker_position):
6684         * marker.c (set_bi_marker_position):
6685         * menubar-gtk.c (menu_descriptor_to_widget_1):
6686         * menubar-msw.c (prune_menubar):
6687         * menubar-x.c (set_frame_menubar):
6688         * mule-charset.c (get_unallocated_leading_byte):
6689         * mule-charset.h (CHAR_LEADING_BYTE):
6690         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6691         * nt.c (init_environment):
6692         * nt.c (generate_inode_val):
6693         * ntproc.c (delete_child):
6694         * ntproc.c (_sys_read_ahead):
6695         * ntproc.c (create_child):
6696         * objects.c (color_instantiate):
6697         * objects.c (font_instantiate):
6698         * objects.c (face_boolean_instantiate):
6699         * print.c (printing_major_badness):
6700         * process-nt.c (nt_send_process):
6701         * process-unix.c (unix_send_process):
6702         * process.c (get_process):
6703         * ralloc.c (obtain):
6704         * ralloc.c (relinquish):
6705         * ralloc.c (relocate_blocs):
6706         * ralloc.c (resize_bloc):
6707         * ralloc.c (r_alloc_free):
6708         * ralloc.c (r_re_alloc):
6709         * ralloc.c (r_alloc_thaw):
6710         * ralloc.c (init_ralloc):
6711         * ralloc.c (Free_Addr_Block):
6712         * ralloc.c (r_alloc):
6713         * redisplay-gtk.c (gtk_output_display_block):
6714         * redisplay-msw.c (mswindows_output_display_block):
6715         * redisplay-output.c (get_next_display_block):
6716         * redisplay-output.c (get_cursor_size_and_location):
6717         * redisplay-output.c (redisplay_output_layout):
6718         * redisplay-output.c (redisplay_clear_region):
6719         * redisplay-tty.c (tty_output_display_block):
6720         * redisplay-x.c (x_output_display_block):
6721         * redisplay.c (add_propagation_runes):
6722         * redisplay.c (add_glyph_rune):
6723         * redisplay.c (create_text_block):
6724         * redisplay.c (add_margin_runes):
6725         * redisplay.c (create_left_glyph_block):
6726         * redisplay.c (create_right_glyph_block):
6727         * redisplay.c (create_string_text_block):
6728         * redisplay.c (regenerate_window):
6729         * redisplay.c (REGEN_INC_FIND_START_END):
6730         * redisplay.c (redisplay_frame):
6731         * redisplay.c (point_in_line_start_cache):
6732         * regex.c:
6733         * regex.c (ABORT):
6734         * regex.c (re_compile_fastmap):
6735         * regex.c (re_match_2_internal):
6736         * regex.c (regerror):
6737         * scrollbar-gtk.c (gtk_scrollbar_loop):
6738         * scrollbar-gtk.c (scrollbar_cb):
6739         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6740         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6741         * scrollbar-x.c (x_update_scrollbar_instance_status):
6742         * scrollbar-x.c (x_scrollbar_loop):
6743         * scrollbar-x.c (x_update_frame_scrollbars):
6744         * search.c (search_command):
6745         * search.c (Fmatch_data):
6746         * select-x.c (motif_clipboard_cb):
6747         * signal.c (interrupt_signal):
6748         * specifier.c (specifier_add_spec):
6749         * specifier.c (specifier_instance_from_inst_list):
6750         * specifier.c (specifier_instance):
6751         * specifier.h:
6752         * specifier.h (struct specifier_methods):
6753         * strftime.c (add_num_time_t):
6754         * sunplay.c (init_device):
6755         * symbols.c (Fsetplist):
6756         * symbols.c (do_symval_forwarding):
6757         * symbols.c (store_symval_forwarding):
6758         * symbols.c (Fset):
6759         * symbols.c (Fbuilt_in_variable_type):
6760         * symbols.c (decode_magic_handler_type):
6761         * symbols.c (handler_type_from_function_symbol):
6762         * syntax.c (update_syntax_cache):
6763         * sysdep.c (init_baud_rate):
6764         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6765         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6766         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6767         * toolbar.c (get_toolbar_coords):
6768         * ui-gtk.c (build_gtk_boxed):
6769         * ui-gtk.c (describe_gtk_arg):
6770         * ui-gtk.c (gtk_type_to_lisp):
6771         * ui-gtk.c (lisp_to_gtk_type):
6772         * ui-gtk.c (lisp_to_gtk_ret_type):
6773         * ui-gtk.c (lisp_to_flag):
6774         * unexnt.c (read_in_bss):
6775         * unexnt.c (map_in_heap):
6776         * window.c (real_window):
6777         * window.c (window_display_lines):
6778         * window.c (window_display_buffer):
6779         * window.c (set_window_display_buffer):
6780         * window.c (window_modeline_height):
6781         * window.c (unshow_buffer):
6782         * window.c (window_loop):
6783         * window.c (Fget_lru_window):
6784         * window.c (Fsplit_window):
6785         * window.c (Fset_window_configuration):
6786         * window.c (saved_window_index):
6787         * xgccache.c (gc_cache_lookup):
6788         abort() -> ABORT().  Eliminate preprocessor games with abort()
6789         since it creates huge problems in VC7, solvable only by including
6790         massive amounts of files in every compile (and not worth it).
6791
6792         * sysdep.c:
6793         * sysproc.h:
6794         Inclusion of process.h does not need to be before lisp.h any more.
6795         Move later and remove comment about abort().
6796
6797 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6798
6799         * regex.c (re_match_2_internal):
6800         Correctly initialize loop which clears uninitialized registers.
6801
6802 2005-01-28  Vin Shelton  <acs@xemacs.org>
6803
6804         * sheap.c (more_static_core): Applied Ben's version of the long
6805         string patch.
6806
6807 2005-01-24  Vin Shelton  <acs@xemacs.org>
6808
6809         * sheap.c (more_static_core): Reformatted printf string so
6810         gcc-3.3.3 will compile this on Cygwin.
6811
6812 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6813
6814         * console.c (function_key_map): Reference `key-binding'.
6815
6816         * keymap.c (Vkey_translation_map): Improve docstring.
6817
6818 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6819
6820         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6821         * window.c (window_loop): [fix] Take into account
6822         `allow-deletion-of-last-visible-frame' variable.
6823         * window.c (replace-buffer-in-windows): Ditto.
6824
6825 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6826
6827         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6828
6829 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6830
6831         * event-gtk.c: Recognise AltGr as a valid modifier.
6832
6833 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6834
6835         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6836
6837 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6838
6839         Fix backreference bug caught by test suite.
6840
6841         * regex.c (regex_compile):
6842         Make backref duplicate internal register.
6843
6844 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6845
6846         Documentation, code clarification, and warning suppression.
6847         
6848         * regex.c (regex_compile):
6849         Improve comments.
6850         (re_match_2_internal):
6851         Improve comments and avoid redundant braces.  [Most of the big hunk
6852         at l. 4710 is indentation; use diff -w to see the real changes.]
6853         (alt_match_null_string_p):
6854         (common_op_match_null_string_p):
6855         Avoid shadowing global on Mac OS X 10.4, at least.
6856
6857 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6858
6859         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6860         introduced with shy groups fix).  [Already applied, probably
6861         with the second "fix shy groups" patch of 2004-10-07.] 
6862
6863 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6864
6865         From Andrey Slusar <anrays@gmail.com>:
6866
6867         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6868
6869 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6870
6871         * Makefile (RECURSIVE_MAKE): Removed.
6872         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6873         handling parallel builds.
6874
6875 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6876
6877         * Makefile.in.in: Enable support for parallel builds.
6878
6879 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6880
6881         From Andrey Slusar <anrays@gmail.com>:
6882
6883         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6884         FreeBSD version is >= 199701 _and_ < 600006.
6885
6886 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6887
6888         * scrollbar.c (compute_scrollbar_instance_usage):
6889         Only call device method compute_scrollbar_instance_usage() if it
6890         is defined.
6891
6892 2004-12-05  Vin Shelton <acs@xemacs.org>
6893
6894         * XEmacs 21.4.16 is released
6895
6896 2004-12-04  Vin Shelton  <acs@xemacs.org>
6897
6898         * depend: Regenerated.
6899
6900 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6901
6902         * regex.c (re_match_2_internal): Map internal to external
6903         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6904         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6905
6906 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6907
6908         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6909         to fix a crash.  Also, check the buffer is live and it
6910         really exists in buffer_list.  If the buffer is not in the list,
6911         prepend it.
6912
6913 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6914
6915         Fix shy groups by implementing recording of all groups for
6916         repetition and backtracking.  Backport from 21.5.
6917         
6918         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6919         external_to_internal_register, external_to_internal_register_size,
6920         and update comments for re_nsub.
6921
6922         * regex.c (re_opcode_t): Update comments.
6923         (print_compiled_pattern): Ouput external_to_internal_register,
6924         external_to_internal_register_size, and re_ngroups for debugging.
6925         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6926         (regex_compile): Update header comment.
6927         Ensure that all groups are recorded so that repeat matches and
6928         backtracking work correctly.  Comment related warning for groups >
6929         255.
6930         (re_search_2): Construct map of API indexes (which count only
6931         nonshy groups) to internal register numbers, and keep it updated.
6932
6933 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6934
6935         * frame-gtk.c (gtk_make_frame_visible):
6936         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6937         show/hide.  This is what X uses and is prevents previously hidden
6938         widgets from suddenly reappearing.
6939         * gtk-xemacs.c (gtk_xemacs_paint):
6940         * gtk-xemacs.c (gtk_xemacs_draw):
6941         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6942         drawable.
6943         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6944         size and location changes so that they can be seen before the next
6945         idle event.  Without this rapid changes to scrollbar properties
6946         are not seen.
6947
6948 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6949
6950         * console-gtk.h:
6951         * console-gtk.h (struct gtk_frame):
6952         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6953           Add hash tables track tab_control callback data.
6954           Added #defines for GTK object data names.
6955           Declaration of gtk_widget_to_frame().
6956         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6957         * frame-gtk.c (gtk_widget_to_frame): New.
6958         * frame-gtk.c (gtk_create_widgets):
6959         * frame-gtk.c (allocate_gtk_frame_struct):
6960         * frame-gtk.c (gtk_mark_frame):
6961         Manage frame callbakc hash tables.
6962         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6963         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6964         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6965         of widget size.
6966         * glyphs-gtk.c (gtk_widget_query_geometry): New
6967         * glyphs-gtk.c (gtk_register_gui_item): New
6968         * glyphs-gtk.c (gtk_add_tab_item): New
6969         * glyphs-gtk.c (gtk_tab_control_callback): New
6970         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6971         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6972         Use correct list when loading item.
6973         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6974         Register new methods.
6975         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6976         default size, for widgets.
6977         * gui-x.c:  Improved comment.
6978         * menubar-gtk.c (__generic_button_callback): Use
6979         gtk_widget_to_frame instead of __get_channel.
6980         * scrollbar-gtk.c:
6981         * ui-gtk.c: Use symbolic names for GTK object data.
6982
6983 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6984
6985         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6986
6987 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6988
6989         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6990
6991 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6992
6993         * malloc.c (morecore): siz is a long because in some architectures
6994         (eg ia-64) an int cannot hold the address range.  Additional patch
6995         from the SuSe distribution.
6996
6997 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6998
6999         * emacs.c:
7000         * malloc.c: lim_data is a long because in some architectures
7001         (eg ia-64) an int cannot hold the address range.
7002         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
7003         instead of ulimit() because ulimit() always returns -1.
7004
7005 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
7006
7007         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
7008
7009 2004-06-11  David Kastrup  <dak@gnu.org>
7010
7011         * search.c (match_limit): Don't flag an error if match-data
7012         exceeding the allocated search_regs.num_regs gets requested, just
7013         return Qnil.
7014
7015 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7016
7017         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
7018         replace symbolic color entries with the real colors specified in
7019         xpm-color-symbols, before passing the XPM to gtk.
7020         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
7021         instead of a GTK specific field, so that it is used in by generic
7022         code.
7023
7024 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
7025
7026        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
7027         coredump from deref of NULL ptr (ExtData)
7028
7029 2004-04-19  Jerry James  <james@xemacs.org>
7030
7031         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
7032         VALBITS to compute the location of the sign bit.
7033         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
7034         of VALBITS with EMACS_INT_MAX.
7035         * events.c (Fevent_timestamp): Ditto.
7036         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
7037         compute the halfway point to timestamp wraparound.
7038         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
7039         EMACS_INT_MIN instead of using VALBITS.
7040         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
7041         incorrect number with VALBITS.
7042         * fns.c (Frandom): Correct number of integer bits in docstring.
7043         Use INT_VALBITS instead of VALBITS to compute the denominator.
7044         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
7045         build random numbers.
7046
7047 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7048         * event-gtk.c:
7049         * event-gtk.c (gtk_event_to_emacs_event):
7050         * menubar-gtk.c:
7051         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
7052         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
7053         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
7054         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
7055         * menubar-gtk.c (__activate_menu):
7056         * menubar-gtk.c (convert_underscores):
7057         * menubar-gtk.c (remove_underscores):
7058         * menubar-gtk.c (menu_convert):
7059         * menubar-gtk.c (menu_descriptor_to_widget_1):
7060         * menubar-gtk.c (menu_descriptor_to_widget):
7061         * menubar-gtk.c (menu_can_reuse_widget):
7062         * menubar-gtk.c (menu_create_menubar):
7063         * menubar-gtk.c (gtk_popup_menu):
7064         * menubar-gtk.c (Fgtk_build_xemacs_menu):
7065         Added support for Gtk menu bar and menu item mnemonics.
7066
7067 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7068
7069         * sysdll.c: (dll_function): Added support for finding symbols in
7070         Darwin shared libraries as well in Darwin bundles.
7071         * sysdll.c (image_for_address): New
7072         * sysdll.c (my_find_image): New
7073         * sysdll.c (search_linked_libs): New
7074
7075 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7076
7077         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
7078         return to GTK requires a different API to marshalling data to use
7079         as GTK parameters.
7080         * ui-gtk.c (lisp_to_gtk_ret_type): New.
7081
7082 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
7083
7084         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
7085
7086 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7087
7088         * glyphs.c (process_image_string_instantiator):
7089         (Fset_console_type_image_conversion_list):
7090         Stop GCC from warning about shadowing of `exp'.
7091
7092         * redisplay-x.c (x_output_string): Fix unsigned lossage.
7093
7094 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7095
7096         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
7097
7098 2004-02-03  Vin Shelton  <acs@xemacs.org>
7099
7100         * glyphs.c (image_instance_layout): Remove pointless assertion.
7101         * regex.c (regex_grow_registers): Return type is void.
7102
7103 2004-02-02  Vin Shelton <acs@xemacs.org>
7104
7105         * XEmacs 21.4.15 is released
7106
7107 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
7108
7109         * device-x.c (x_error_handler): Don't call stderr_out
7110
7111 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
7112
7113         * buffer.c (other-buffer): Clarify documentation of order of
7114         arguments for FSF Emacs.
7115
7116 2003-10-11  Olivier Galibert  <galibert@pobox.com>
7117
7118         * window.c (Fdelete_window): Dirty the mirror structure _before_
7119         marking the window deleted.
7120
7121 2003-09-15  Jerry James  <james@xemacs.org>
7122
7123         * event-msw.c (debug_mswin_messages): Conditionally compile
7124         messages missing from the Cygwin headers.
7125
7126 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
7127
7128         * data.c (eq_with_ebola_notice): Fix typo in comment.
7129         (Ftrue_list_p): Improve docstring.
7130
7131 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
7132
7133         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
7134
7135 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
7136
7137         * search.c (trivial_regexp_p): Regexps containing "\{" are
7138         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
7139         Stefan Monnier for suggesting a diagnosis.
7140
7141 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
7142
7143         * elhash.c (make-hash-table): Clarify use of :test #'equal.
7144
7145 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
7146
7147         * search.c (Fsearch_forward):
7148         (Fsearch_backward):
7149         Document negative count.
7150
7151 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
7152
7153         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
7154
7155 2003-09-13  Martin Buchholz  <martin@xemacs.org>
7156
7157         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
7158
7159 2003-09-15  Vin Shelton  <acs@xemacs.org>
7160
7161         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
7162         21.5.
7163
7164 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7165
7166         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
7167         (re_search_2): Match the first byte of Bufbyte, not Emchar.
7168         (re_match_2_internal): Use TRANSLATE instead of
7169         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
7170         non-ASCII char case conversion.
7171
7172 2003-09-08  Mike Sperber  <mike@xemacs.org>
7173
7174         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
7175         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
7176
7177 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
7178
7179        * .gdbinit (pobj): fix printing of symbol name.
7180
7181 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
7182
7183         * frame-x.c (x_layout_widgets): When resizing is about to cause
7184         frame size slip, mark it for redisplay.
7185
7186 2003-08-18  Jerry James  <james@xemacs.org>
7187
7188         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
7189
7190 2003-09-03  Vin Shelton <acs@xemacs.org>
7191
7192         * XEmacs 21.4.14 is released
7193
7194 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
7195
7196         * config.h.in (REGEX_MALLOC): Make it configure'able.
7197
7198 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
7199
7200         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
7201         linking.
7202         * sysdll.c (dll_init):
7203         * sysdll.c (dll_open):
7204         * sysdll.c (dll_close):
7205         * sysdll.c (dll_function):
7206         * sysdll.c (dll_variable):
7207         * sysdll.c (dll_error):
7208         Add support for loading bundles using Darwin/MacOSX
7209         native API.
7210
7211 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
7212
7213         * process.c (start-process-internal): Document coding systems.
7214
7215 2003-07-30  Jerry James  <james@xemacs.org>
7216
7217         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
7218
7219 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
7220
7221         * event-msw.c (mswindows_enqueue_mouse_button_event):
7222         * event-msw.c (mswindows_wnd_proc):
7223           enqueue button event when scrollwheel event isn't handled by 
7224           mswindows_handle_mousewheel_event, such as when the scrollbars
7225           are not showing.
7226
7227 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
7228
7229         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
7230
7231 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
7232
7233         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
7234
7235 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
7236
7237         * regex.c (re_match_2_internal): Fix matching degenerate word
7238         boundaries.
7239
7240 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
7241
7242         * XEmacs 21.4.13 is released
7243
7244 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
7245
7246         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
7247         * lisp.h (<inttypes.h>):
7248         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
7249         the definition.
7250
7251 2003-03-15  Martin Buchholz  <martin@xemacs.org>
7252
7253         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7254         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7255         Result: "temacs can only be run in -batch mode."
7256         Fix: Check xemacs executable candidate for directory-ness.
7257
7258 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7259
7260         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7261           they conflict with <sys/types.h>.
7262
7263 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7264
7265         * database.c: Berkeley DB wants __STDC__ to be defined.
7266
7267 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7268
7269         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7270
7271 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7272
7273         * process-unix.c (unix_send_process): Fix C++ compile error.
7274
7275 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7276
7277         * Added .dylib as an acceptable shared library file extension
7278         * to support MacOSX.
7279
7280 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7281
7282         * EmacsFrameP.h (EmacsFramePart):
7283         Kludge to allow compiling with Motif1, but linking with Motif2.
7284
7285 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7286
7287         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7288
7289
7290 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7291
7292         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7293
7294 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7295
7296         * sysdll.c: Included lisp.h to define needed alloca_array.
7297
7298 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7299
7300         Make XEmacs redisplay 10 times faster.
7301         If, that is, you're using a slow X connection and MoveOpaque.
7302         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7303         Use compress_motion = TRUE.
7304         * EmacsFrame.c (emacsFrameClassRec): 
7305         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7306         * EmacsManager.c (emacsManagerClassRec):
7307         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7308
7309 2003-01-30  Vin Shelton  <acs@xemacs.org>
7310
7311         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7312
7313 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7314
7315         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7316         Patch by Martin Buchholz.
7317
7318 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7319
7320         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7321         Thanks to icc for warning and Martin Buchholz for reporting.
7322
7323 2003-01-29  Vin Shelton <acs@xemacs.org>
7324
7325         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7326
7327         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7328         remember to multiply by the element size.
7329
7330 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7331
7332         * XEmacs 21.4.12 "Portable Code" is released.
7333
7334 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7335
7336         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7337         * s/cygwin.sc: new linker file.
7338
7339 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7340
7341         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7342
7343         * redisplay-x.c (x_output_string): Use X11-specified types.
7344         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7345         * emacs.c (__free_hook): Use typeof with Intel compiler.
7346         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7347
7348 2003-01-08  Andy Piper  <andy@xemacs.org>
7349
7350         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7351         reserve size during unexec().
7352
7353 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7354
7355         * process-unix.c (unix_create_process): Don't let outchannel block.
7356
7357 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7358
7359         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7360         Needed for IsBadReadPtr().
7361
7362 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7363
7364         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7365
7366 2002-12-14  Ben Wing  <ben@xemacs.org>
7367
7368         * callint.c: Declaration error.
7369         * dumper.c (pdump):
7370         * dumper.c (pdump_load): Warning fix.
7371         * process.c: GCPRO error.
7372         * glyphs.c (unmap_subwindow):
7373         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7374         * event-stream.c (maybe_kbd_translate): Wrong argument to
7375         character_to_event().
7376
7377         * alloc.c (garbage_collect_1):
7378         * emacs.c:
7379         * emacs.c (debug_can_access_memory):
7380         * emacs.c (fatal_error_signal):
7381         * emacs.c (mswindows_handle_hardware_exceptions):
7382         * emacs.c (main_1):
7383         * emacs.c (main):
7384         * emacs.c (assert_failed):
7385         * emacs.c (syms_of_emacs):
7386         * lisp.h:
7387         * print.c:
7388         * print.c (std_handle_out_va):
7389         * print.c (write_string_to_stdio_stream):
7390         * print.c (write_fmt_string):
7391         * print.c (printing_badness):
7392         * print.c (printing_major_badness):
7393         * print.c (print_internal):
7394         * print.c (debug_print_no_newline):
7395         * print.c (debug_backtrace):
7396         Be more defensive in handling bad values when printing.  Add code
7397         from trunk involving inhibit_non_essential_printing_operations.
7398         When going down or in debug_print(), don't do external conversion
7399         and such and try really, really hard when printing to avoid core
7400         dumping.  Add force-debugging-signal, debug_break().
7401
7402 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7403
7404         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7405         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7406
7407 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7408
7409         * database.c: Fix open_database. Berkeley DB API has changed in
7410         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7411
7412 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7413
7414         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7415
7416 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7417
7418         * event-Xt.c (Xt_timeout):
7419         (Xt_timeout_callback):
7420         (emacs_Xt_add_timeout):
7421         (emacs_Xt_remove_timeout):
7422         (Xt_timeout_to_emacs_event):
7423         Turn completed_timeouts from a stack into a queue.  Fixes
7424         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7425
7426 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7427
7428         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7429         * emacs.c (main): Assert that mmap'd allocation is disabled.
7430
7431 2002-10-14  Andy Piper  <andy@xemacs.org>
7432
7433         * glyphs-widget.c (layout_query_geometry): add in fiddle
7434         factor. Include border text in width layout calculation.
7435         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7436
7437 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7438
7439         * XEmacs 21.4.10 "Military Intelligence" is released.
7440
7441 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7442
7443         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7444         using the NAS private array SoundFileInfo that no longer exists in
7445         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7446         and earlier.  This is broken for some versions between 1.5a and
7447         1.5f.
7448
7449 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7450
7451         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7452
7453         * emacs.c (shut_down_emacs): Improve crash message.
7454
7455 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7456
7457         * file-coding.c (determine_real_coding_system): Check for coding
7458         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7459         shebangs and Python PEP 263.
7460
7461 2002-10-08  Andy Piper  <andy@xemacs.org>
7462
7463         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7464         if static sizes haven't been set.
7465
7466 2002-08-30  Mike Alexander  <mta@arbortext.com>
7467
7468         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7469         to close a socket.
7470
7471 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7472
7473         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7474
7475 2002-09-20  Mike Sperber <mike@xemacs.org>
7476
7477         (This partially gets back my patch from 2002-07-20 without the
7478         bug.)
7479         * callproc.c (child_setup): Remove Ben's comment noting confusion
7480         over the file descriptors >= 3: close_process_descs() doesn't
7481         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7482         * process-unix.c (unix_create_process): Call
7483         begin_dont_check_for_quit to inhibit unwanted interaction (and
7484         thus breaking of X event synchronicity) in the child.
7485
7486 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7487
7488         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7489         widget.
7490
7491 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7492
7493         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7494         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7495         the xemacs process did not exit, but looped infinitely here.  This
7496         fixes that problem.
7497
7498 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7499
7500         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7501         (find_context): Improve comments.
7502
7503         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7504         (re_match_2): An XCHAR_TABLE operation was missing.
7505
7506         Many of the following changes were inspired by Andy Piper's (now
7507         obsolete) patch to make syntax-table text property lookup optional.
7508
7509         [Documentation]
7510
7511         * syntax.h (top level): Document semantics of syntax flags.
7512         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7513         * syntax.c, syntax.h (top level): Document syntax cache better in
7514         comments.
7515
7516         [Instrument syntax caching (temporary change)]
7517
7518         * syntax.h (enum syntax_cache_statistics_functions, struct
7519         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7520         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7521         * syntax.c (scan_words, Fforward_comment, scan_lists,
7522         Fbackward_prefix_characters):
7523         * font-lock.c (find_context):
7524         Use them to instrument syntax caching. 
7525         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7526         syntax_cache_statistics_function_names): New type and variables.
7527         * syntax.c (update_syntax_cache): Update and report statistics.
7528
7529         [Major syntax cache optimizations]
7530
7531         syntax.c (lookup_syntax_properties): Default off.
7532
7533         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7534         * syntax.c (update_syntax_cache):
7535         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7536
7537         [Minor syntax cache optimizations and code clarifications]
7538
7539         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7540         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7541         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7542         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7543         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7544         (Code clarification.)
7545
7546         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7547         scan_lists): Compute code from syncode, use Boolean macros instead
7548         of redundant masking operations.  (Code clarification; any decent
7549         compiler can do this optimization.)
7550
7551         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7552         for clarity.
7553
7554         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7555         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7556         use F*_single_property_change instead of F*_extent_change.
7557         Currently F*_single_property_change is _much_ less efficient.
7558
7559         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7560         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7561         syntax_cache.object properly, don't leave Qt or Qnil.
7562         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7563         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7564         tests for Qt or Qnil.
7565
7566 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7567
7568         * redisplay.c (point_in_line_start_cache): 
7569         * extents.c (print_extent_1):
7570         Fix warnings.
7571
7572         * extents.c (Fset_extent_property): Document `syntax-table' property.
7573
7574         * extents.h (Fnext_single_property_change): EXFUN it.
7575
7576 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7577
7578         * search.c (clear_unused_search_regs): New static function.
7579         (search_buffer): 
7580         (simple_search): 
7581         (boyer_moore):
7582         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7583         Minor clarifications in comments.
7584
7585         * regex.c (re_match_2_internal): Ensure no stale submatches.
7586
7587 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7588
7589         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7590
7591 2002-08-29  Jerry James  <james@xemacs.org>
7592
7593         * lisp.h: structrures -> structures.
7594
7595 2002-06-03  Andy Piper  <andy@xemacs.org>
7596
7597         * frame.c (frame_conversion_internal): add conversion appropriate
7598         for setting frame dimensions in pixels.
7599
7600         * console.h (struct console_methods): add device-specific widget
7601         layout functions.
7602
7603         * emacs.c (main_1): initialize glyph vars.
7604
7605         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7606         (handle_focus_event_2): new function. Allow focus to
7607         be set to a particular window and widget.
7608         (enqueue_focus_event): new function. Create a
7609         synthetic focus event.
7610         (emacs_Xt_handle_magic_event): call
7611         handle_focus_event_2.
7612
7613         * frame.c (Fset_frame_pixel_height): new function. Allow
7614         pixel-based sizing. Does the right thing on character-oriented
7615         displays.
7616         (Fset_frame_pixel_width): ditto.
7617         (Fset_frame_pixel_size): ditto.
7618         (syms_of_frame): declare.
7619
7620         * general-slots.h: add :vertically-justify and
7621         :horizontally-justify.
7622
7623         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7624         (mswindows_widget_border_width): new function.
7625         (mswindows_combo_box_instantiate): set border widths.
7626         (console_type_create_glyphs_mswindows): declare.
7627
7628         * glyphs-widget.c:
7629         (check_valid_justification): allow vertical and horizontal
7630         justification.
7631         (widget_border_width): new function. Call device methods.
7632         (widget_instance_border_width): ditto.
7633         (logical_unit_height): new function. Determine the height of a
7634         logical-unit. Logical units are intended to provide grid-like
7635         layout for subcontrols in a layout. If the layout is
7636         :vertically-justify top then subcontrols will be positioned on
7637         logical-unit boundaries, thus allowing adjacent subcontrols to
7638         line up.
7639         (widget_logical_unit_height): ditto for widgets.
7640         (redisplay_widget): misc cleanup.
7641         (widget_spacing): new function. Call device specific
7642         methods. Intended to be the default gap between adjacent widgets.
7643         (widget_query_geometry): use new spacing functions to determine
7644         appropriate geometry.
7645         (initialize_widget_image_instance): initialize horizontal and
7646         vertical justification.
7647         (widget_instantiate): use logica-units where appropriate for
7648         sizing large widgets.
7649         (button_query_geometry): use widget_instance_border_width.
7650         (tree_view_query_geometry): ditto.
7651         (tab_control_query_geometry): ditto.
7652         (edit_field_query_geometry): new function.
7653         (layout_update): pick up :justify, :horizontally-justify and
7654         :vertically-justify none of which worked previously. :justify is
7655         used as a fallback for both horizontal and vertical justification.
7656         (layout_query_geometry): use logical units to size appropriately.
7657         (layout_layout): ditto.
7658         (Fwidget_logical_to_character_width): new function. Allow users to
7659         convert from logical units to characters so that frame sizes can
7660         be set appropriately.
7661         (Fwidget_logical_to_character_height): ditto.
7662         (syms_of_glyphs_widget): declare.
7663         (image_instantiator_edit_fields): add edit_field_query_geometry.
7664         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7665         :horizontally-justify.
7666         (specifier_vars_of_glyphs_widget): new function. Declare
7667         Vwidget_border_width which is not yet used.
7668
7669         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7670         (x_widget_border_width): new function.
7671         (x_widget_instantiate): create a sensible name for widgets.
7672         (console_type_create_glyphs_x): declare x_widget_border_width.
7673
7674         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7675         (struct Lisp_Image_Instance): add :vertically-justify and
7676         :horizontally-justify.
7677         (LAYOUT_JUSTIFY_TOP): new.
7678         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7679         (ROUND_UP): new macro. Round argument up to next integral
7680         interval.
7681
7682         * redisplay-output.c (redisplay_output_layout): misc formatting.
7683
7684         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7685
7686 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7687
7688         * XEmacs 21.4.9 "Informed Management" is released.
7689
7690 2002-08-19  Andy Piper  <andy@xemacs.org>
7691
7692         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7693         win32 format.
7694
7695         * realpath.c (xrealpath): normalize drive spec also so that dir
7696         sep chars are not mixed on cygwin.
7697
7698 2002-08-06  Jerry James  <james@xemacs.org>
7699
7700         * window.c (Fsplit_window): Count only half of the divider width
7701         against the left window when splitting horizontally. 
7702
7703 2002-06-24  Andy Piper  <andy@xemacs.org>
7704
7705         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7706         toolbar was cleared.
7707
7708         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7709         function. Split out from mswindows_output_frame_toolbars.
7710         (mswindows_output_frame_toolbars): move clear pieces to
7711         mswindows_output_frame_toolbars.
7712
7713         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7714         out from gtk_output_frame_toolbars.
7715         (gtk_output_frame_toolbars): move clear pieces to
7716         gtk_clear_frame_toolbars.
7717
7718         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7719         the frame is cleared. How this ever worked before is a mystery.
7720         (x_output_frame_toolbars): Only output toolbars.
7721         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7722
7723         * gutter.c (update_gutter_geometry):
7724         Mark frame layout changed.
7725         (update_frame_gutter_geometry, update_frame_gutters):
7726         Respect frame_layout_changed.
7727
7728         * console.h (struct console_methods): add
7729         clear_frame_toolbars_method.
7730
7731         * redisplay.c (redisplay_frame): call
7732         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7733
7734         * toolbar.h: declare update_frame_toolbars_geometry.
7735
7736         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7737         out from update_frame_toolbars.  Call clear_frame_toolbars.
7738         (update_frame_toolbars): only output, do not change geometry.
7739
7740         * redisplay.c: add frame_layout_changed.
7741
7742         * redisplay.h: add frame_layout_changed.
7743         (CLASS_RESET_CHANGED_FLAGS): set it.
7744         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7745         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7746         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7747
7748         * device.h (struct device): add frame_layout_changed.
7749         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7750
7751         * frame.h (struct frame): add frame_layout_changed.
7752         (MARK_FRAME_LAYOUT_CHANGED): new.
7753
7754 2002-06-30  Mike Alexander  <mta@arbortext.com>
7755
7756         * event-msw.c (mswindows_need_event): Don't wait for a new message
7757         if the queue is not empty.  Suggested by Paul Moore.
7758
7759 2002-06-12  Andy Piper  <andy@xemacs.org>
7760
7761         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7762         for printing on accurately.
7763
7764 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7765
7766         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7767         WM_ACTIVATE message. Make sure that the frame is visible if the
7768         window is visible. This seemss to fix the problem where XEmacs
7769         appears to freeze after switching desktops with certain virtual
7770         window managers.
7771         (debug_output_mswin_message): Added code to output message
7772         parameters for WM_WINDOWPOSCHANGED, 
7773         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7774
7775 2002-05-25  Andy Piper  <andy@xemacs.org>
7776
7777         * select-x.c (vars_of_select_x): Fix docstring of
7778         x-selection-strict-motif-ownership
7779
7780 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7781
7782         * keymap.c (get_keymap):
7783         Add comment about do_autoload GCPROs own args.
7784
7785 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7786
7787         * bytecode.c (execute_optimized_program): check_opcode ifdef
7788         ERROR_CHECK_BYTE_CODE.
7789
7790 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7791
7792         Thanks to Ben Wing and Michael Sperber.
7793
7794         * eval.c (Fcommand_execute):
7795         (Feval):
7796         (Ffuncall):
7797         (Fmacroexpand_internal):
7798         (function_argcount):
7799         callint.c (Fcall_interactively):
7800         Add comment about do_autoload GCPROs own args.
7801
7802         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7803
7804         * eval.c (Ffuncall): Extra braces to placate GCC.
7805
7806 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7807
7808         * backtrace.h (grow_specpdl):
7809         (SPECPDL_RESERVE):
7810         * EmacsFrame.c (EmacsFrameSetValues):
7811         * eval.c (grow_specpdl):
7812         * ExternalShell.c (hack_event_masks_1):
7813         * glyphs-x.c (convert_EImage_to_XImage): 
7814         (x_finalize_image_instance):
7815         * ralloc.c (page_size):
7816         (r_alloc_sbrk):
7817         * xgccache.c (gc_cache_hash):
7818         Fix unsigned comparison warnings.
7819
7820 2002-07-29  Jerry James  <james@xemacs.org>
7821
7822         * lread.c (locate_file): Any nonnegative return value indicates
7823         success if MODE is nonnegative.
7824
7825 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7826
7827         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7828         argument. 
7829
7830 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7831
7832         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7833
7834         * dumper.c (pdump_get_indirect_count):
7835         (pdump_scan_by_alignment):
7836         (pdump_dump_root_struct_ptrs):
7837         (pdump_dump_rtables):
7838         (pdump_dump_root_objects):
7839         (pdump):
7840         * nas.c (WaveOpenDataForReading):
7841         * fns.c (print_bit_vector):
7842         * font-lock.c (SINGLE_SYNTAX_STYLE):
7843         * glyphs.c (check_for_ignored_expose):
7844         (find_matching_subwindow):
7845         * glyphs-eimage.c:
7846         * imgproc.c (get_histogram):
7847         * redisplay.c (point_in_line_start_cache):
7848         * redisplay-output.c (redisplay_unmap_subwindows):
7849         * symbols.c (defsymbol_massage_name_1):
7850         (defkeyword_massage_name):
7851         (deferror_massage_name_and_message):
7852         * redisplay-x.c (x_output_string): 
7853         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7854         * frame.h (struct frame):
7855         * filelock.c (current_lock_owner):
7856         * doprnt.c (emacs_doprnt_1):
7857         * lisp.h (struct Lisp_Bit_Vector):
7858         (DO_REALLOC):
7859         Fix warnings.
7860
7861 2002-02-13  Ben Wing  <ben@xemacs.org>
7862
7863         * event-stream.c (reset_key_echo):
7864         * event-stream.c (reset_this_command_keys):
7865         * event-stream.c (execute_command_event):
7866         If console is dead as a result of C-x 5 0, then post-command stuff
7867         needs to be careful and do only non-console-specific stuff.
7868
7869 2002-07-01  Mike Sperber <mike@xemacs.org>
7870
7871         * process-unix.c (unix_send_process): Mark coding_outstream as
7872         non-open upon SIGPIPE.
7873
7874         * event-stream.c (Fnext_event): Reorder switch cases to something
7875         that makes sense.
7876
7877 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7878
7879         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7880         Don't bogusly reinitialize ascii_character property.
7881
7882 2002-07-08  Mike Sperber <mike@xemacs.org>
7883
7884         * process.c (Fstart_process_internal): Do error checking before we
7885         fork off the child, so the child can't muck with the state of the
7886         parent.
7887
7888 2002-07-08  Mike Sperber <mike@xemacs.org>
7889
7890         * ralloc.c (init_ralloc): Allocate properly for pdump.
7891
7892 2002-06-12  Andy Piper  <andy@xemacs.org>
7893
7894         * glyphs.c (query_string_geometry): check the string.
7895
7896         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7897         widget names.
7898
7899 2002-06-17  Jerry James  <james@xemacs.org>
7900
7901         * sysdll.c: Remove RTLD_GLOBAL initialization.
7902         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7903
7904 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7905
7906         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7907
7908 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7909
7910         * sysdep.c (sys_rename): Make sys_rename work for the case where
7911         Windows rename sets errno to EACCES if target file exists.
7912
7913 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7914
7915         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7916         Fix detection of metric units to work on Win95
7917
7918 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7919
7920         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7921
7922 2002-04-25  Andy Piper  <andy@xemacs.org>
7923
7924         * redisplay.c (create_text_block): Remove extra comment trailer.
7925
7926 2002-04-24  Andy Piper  <andy@xemacs.org>
7927
7928         * redisplay.c (create_text_block): Don't actually add propagation
7929         data if the line ends after we have added a glyph.
7930
7931 2002-04-22  Andy Piper  <andy@xemacs.org>
7932
7933         * extents.c (extent_fragment_update): check for glyphs we have
7934         previously displayed.
7935         * extents.c (print_extent_1): warning removal.
7936         * extents.h: change prototype.
7937         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7938         widths correctly for wide glyphs.
7939         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7940         * redisplay.c (prop_type): add PROP_GLYPH.
7941         * redisplay.c (struct prop_block): add glyph type
7942         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7943         to the propagation data.
7944         * redisplay.c (create_text_block): if there is a glyph in the
7945         propagation data use it to salt extent_fragment_update.
7946         * redisplay.c (create_string_text_block): ditto.
7947
7948 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7949
7950         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7951         * redisplay-output.c (compare_runes): Compare them.
7952         * redisplay.c: Update copyright date.
7953         * redisplay.c (pos_data): Add need_baseline_computation field.
7954         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7955         need_baseline_computation; zero yoffset. Set max_pixmap_height
7956         for all pixmaps, not just automatically positioned ones.
7957         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7958         * redisplay.c (calculate_baseline): New, compute textual baseline.
7959         * redisplay.c (add_glyph_rune): Call them.
7960         * redisplay.c (create_text_block): Likewise.
7961         * redisplay.c (create_overlay_glyph_block): Likewise.
7962         * redisplay.c (add_margin_runes): Likewise.
7963         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7964
7965         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7966         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7967         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7968         * redisplay-msw.c (mswindows_output_string): Likewise.
7969         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7970         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7971         * redisplay-x.c (x_output_display_block): Likewise.
7972
7973 2002-03-28  Ben Wing  <ben@xemacs.org>
7974
7975         * redisplay.c: Fixed bug in redisplay
7976         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7977         and down of the lines, since they're bigger than the line
7978         size. (It was seen most obviously when there's a horizontal scroll
7979         bar, e.g. do C-h a glyph or something like that.) The problem was
7980         that the glyph-contrib-p setting on glyphs was ignored even if it
7981         was set properly, which it wasn't until now.
7982
7983 2002-04-24  Andy Piper  <andy@xemacs.org>
7984
7985         * lisp.h (Dynarr_end): Fix definition.
7986
7987 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7988
7989         * redisplay.c (mark_redisplay): Remove call to
7990         update_frame_window_mirror.
7991
7992 2001-11-15  Andy Piper  <andy@xemacs.org>
7993
7994         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7995         cygwin (again).
7996
7997 2002-02-13  Andy Piper  <andy@xemacs.org>
7998
7999         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
8000         we did in fact enqueue the XM_MAPFRAME event.
8001
8002 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
8003
8004         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
8005         to fix problem switching between virtual desktops under virtuawin
8006         virtual window manager.
8007
8008 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
8009
8010         * event-msw.c: Typo fix.
8011         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
8012         magic XM_MAPFRAME event has been sent.
8013
8014 2001-11-23  Andy Piper  <andy@xemacs.org>
8015
8016         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
8017
8018 2001-11-21  Andy Piper  <andy@xemacs.org>
8019
8020         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
8021         mouse events outside the frame.
8022
8023 2002-03-20  Andy Piper  <andy@xemacs.org>
8024
8025         * menubar-msw.c (mswindows_popup_menu): warning removal.
8026         * dialog-msw.c (dialog_popped_down): ditto.
8027
8028 2001-12-11  Andy Piper  <andy@xemacs.org>
8029
8030         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
8031         * dialog-msw.c (mswindows_make_dialog_box_internal): set
8032         popup_up_p.
8033         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
8034         * menubar-msw.c (mswindows_handle_wm_command): ditto.
8035         * menubar-msw.c (mswindows_popup_menu): ditto.
8036
8037 2001-10-29  Andy Piper  <andy@xemacs.org>
8038
8039         * dialog-msw.c (handle_directory_dialog_box): quit if the user
8040         cancels.
8041
8042 2002-01-03  Andy Piper  <andy@xemacs.org>
8043
8044         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
8045         letters.
8046         (xrealpath): ditto.
8047
8048 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
8049
8050         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
8051         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
8052         * device-msw.c (mswindows_handle_page_setup_dialog_box):
8053         Detect and handle case where machine is set up for metric units
8054
8055 2002-04-02  Andy Piper  <andy@xemacs.org>
8056
8057         * dired-msw.c (mswindows_get_files): 
8058         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
8059         completely handled by XEmacs. Suggested by Thomas Vogler
8060         <mail@thomas-vogler.de>.
8061
8062 2001-11-14  Andy Piper  <andy@xemacs.org>
8063
8064         * nt.c (REG_ROOT): change registry key to XEmacs.
8065
8066 2002-04-27  Andy Piper  <andy@xemacs.org>
8067
8068         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
8069
8070 2002-04-26  Andy Piper  <andy@xemacs.org>
8071
8072         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
8073         behavior.
8074
8075 2002-03-14  Mike Alexander  <mta@arbortext.com>
8076
8077         * event-msw.c (mswindows_unwait_process): New, remove process from
8078         wait list
8079         * process-nt.c (nt_finalize_process_data): Call
8080         mswindows_unwait_process
8081         * console-msw.h: Declare mswindows_unwait_process
8082
8083 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
8084
8085         * editfns.c (Fdecode_time):
8086         (Fformat_time_string):
8087         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
8088         (make_time): Warning elimination (change arg name).
8089
8090 2001-11-24  Andy Piper  <andy@xemacs.org>
8091
8092         * window.c (Fsplit_window): Doc return type.
8093
8094 2002-04-01  Andy Piper  <andy@xemacs.org>
8095
8096         * emacs.c (Fkill_emacs): Only output message box in interactive
8097         mode.
8098
8099 2002-04-26  Andy Piper  <andy@xemacs.org>
8100  
8101         * config.h.in: pull in 21.5.x change to stop alloca warnings under
8102         cygwin.
8103
8104 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
8105
8106         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
8107         bit platform.
8108
8109 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
8110
8111         * XEmacs 21.4.8 "Honest Recruiter" is released.
8112
8113 2002-05-07  Nix  <nix@esperi.demon.co.uk>
8114
8115         Supersedes 2002-04-17 patch.
8116
8117         * process.h (PROCESS_LIVE_P): Use the process status as
8118         evidence of health, not the state of the input stream.
8119         (PROCESS_READABLE_P): Say if the process is readable
8120         from. (It may be dead nonetheless.)
8121         (CHECK_READABLE_PROCESS): Test for that condition.
8122
8123         * process.c (create_process): Use PROCESS_READABLE_P.
8124         (read_process_output, set_process_filter): Likewise.
8125
8126         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
8127         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
8128
8129         This code is #if 0'd, this is not the time to add new functions:
8130
8131         * process.c (Fprocess_readable_p): Report readability status.
8132         * process.c (Qprocess_readable_p): New, associated symbol...
8133         * process.c (syms_of_process): ... initialize it.
8134
8135 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
8136
8137         * XEmacs 21.4.7 "Economic Science" is released.
8138
8139 2002-04-17  Nix  <nix@esperi.demon.co.uk>
8140
8141         * process.h (PROCESS_LIVE_P): Use the process status as
8142         evidence of health, not the state of the input stream.
8143
8144 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
8145
8146         * sysdep.c (sys_siglist): change "signum" to "signal"
8147
8148 2001-04-21  Martin Buchholz  <martin@xemacs.org>
8149
8150         * s/darwin.h: New file.
8151         Thanks to Greg Parker <gparker@cs.stanford.edu>.
8152         
8153 2002-04-23  Andreas Jaeger  <aj@suse.de>
8154
8155         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
8156         which use lib64 for 64-bit libs.
8157         (START_FILES): Likewise.
8158
8159 2002-02-11  Mike Sperber  <mike@xemacs.org>
8160
8161         * device-x.c: 
8162         (x_IO_error_handler):
8163         (x_init_device): Temporarily keep device in static variable
8164         `device_being_initialized' so we can recover gracefully from
8165         internal XOpenDevice failure.  (XOpenDevice is documented to
8166         return NULL on failure, but sometimes calls the IO error handler
8167         instead.)
8168
8169 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
8170
8171         * dired.c (Ffile_name_all_completions): Change documentation --
8172         remove reference to completion-ignored-extensions.
8173         * dired.c (vars_of_dired): Change documentation for
8174         completion-ignored-extensions -- remove reference to
8175         file-name-all-completions.
8176
8177 2002-03-06  Jerry James  <james@xemacs.org>
8178
8179         * emodules.c (emodules_load): Fix multiple loading of same module.
8180
8181 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
8182         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
8183         RTLD_LAZY to avoid incorrect symbol binding when using nested
8184         shared libraries on Solaris.
8185
8186 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
8187
8188         * fileio.c (Ffind_file_name_handler): Improve docstring.
8189
8190 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
8191
8192         * fns.c (Fmapconcat): Improve docstring.
8193
8194 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
8195
8196         * device-gtk.c: Add prototype for
8197         emacs_gtk_selection_clear_event_handle.
8198         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
8199         selection.  Setup signal handler for "selection_clear_event"
8200         (emacs_gtk_selection_clear_event_handle).
8201
8202         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
8203         other applications owning the clipboard (based on
8204         x_handle_selection_clear).
8205
8206 2001-12-23  William M. Perry  <wmperry@gnu.org>
8207
8208         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
8209         
8210 2002-01-04  Martin Buchholz  <martin@xemacs.org>
8211
8212         * keymap.c (define_key_alternate_name): Parenthesize EQ.
8213
8214 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
8215
8216         * XEmacs 21.4.6 "Common Lisp" is released.
8217
8218 2001-12-16  Torsten Duwe  <duwe@caldera.de>
8219
8220         * search.c (Freplace_match): Add missing sub-expression functionality.
8221
8222         * buffer.c (decode_buffer): Add a check for pointer type to
8223         decode_buffer, before gcc's CSE optimization reorders a
8224         dereference in front of the allow_string test.
8225
8226 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
8227
8228         * window.c (window_loop): Fix bug that sometimes prevented
8229         window_loop() from iterating across multiple devices.  Also, at
8230         Ben's request, changed infloop-detecting code to abort() instead
8231         of silently terminating window_loop().
8232
8233 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
8234
8235         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
8236         * editfns.c (make_time): New function.
8237         (Fencode_time): Use it instead of wasteful_word_to_lisp.
8238         * lisp.h (make_time): Prototype and comment it.
8239         * dired.c (wasteful_word_to_lisp): Deprecate.
8240         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8241
8242 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
8243
8244         * fileio.c (auto_save_1): Use current coding system, not
8245         escape-quoted.
8246
8247 2001-11-13  Ben Wing  <ben@xemacs.org>
8248
8249         * window.c:
8250         * window.c (window_truncation_on):
8251         * window.c (syms_of_window):
8252         truncate-partial-width-windows should respect the buffer being
8253         displayed, like other redisplay vars.
8254
8255 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8256
8257         * event-stream.c (Fread_key_sequence): save current buffer.
8258
8259 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8260
8261         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8262
8263 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8264
8265         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8266
8267 2001-10-26  Mike Alexander  <mta@arbortext.com>
8268
8269         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8270
8271 2001-10-25  Andy Piper  <andy@xemacs.org>
8272
8273         * ChangeLog:
8274         * dialog-msw.c (handle_directory_proc): new function.
8275          (handle_directory_dialog_box): new fucntion.
8276          (handle_file_dialog_box): use new directory dialog support.
8277          (mswindows_make_dialog_box_internal): ditto.
8278         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8279         handling.
8280         (mswindows_find_frame): make global.
8281         * fileio.c (Fexpand_file_name): build fix.
8282         * general-slots.h: add Qdirectory.
8283         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8284         handling.
8285         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8286         cygwin not leaving win32 paths unchanged.
8287         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8288         cygwin runtime to do path conversion.
8289         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8290         (syms_of_win32): add new function.
8291         * window.c (window_loop): build fix.
8292
8293 2001-10-15  Andy Piper  <andy@xemacs.org>
8294
8295         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8296
8297 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8298
8299         * XEmacs 21.4.5 "Civil Service" is released.
8300
8301 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8302
8303         * glyphs-x.c: Force buffer-tab highlight update when moving the
8304         buffer, avoiding an ugly black border, used for keyboard focus
8305         indication, on a widget that can never have keyboard focus, the
8306         buffer tab.
8307
8308 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8309
8310         * process-unix.c (unix_open_multicast_group): Remove too much
8311         conversion between host and network byte order.
8312
8313 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8314
8315         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8316         before replacing them.
8317
8318         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8319         operation.
8320
8321         * src/window.c (undedicate_windows): Use it.
8322         * src/window.h: Add prototype.
8323
8324 2001-09-17  Ben Wing  <ben@xemacs.org>
8325
8326         * fileio.c (normalize_filename):
8327         * fileio.c (Fexpand_file_name):
8328         Fix various C++ compile errors in Andy's recent code.
8329         
8330         * callint.c (Fcall_interactively):
8331         * editfns.c (Ftemp_directory):
8332         * editfns.c (Fuser_full_name):
8333         * emacs.c (argmatch):
8334         * lread.c (locate_file_map_suffixes):
8335         * redisplay-x.c (x_ring_bell):
8336         Fix sign-compare warnings.
8337         
8338 2001-09-08  Andy Piper  <andy@xemacs.org>
8339
8340         * fileio.c (normalize_filename): copied from nt.c
8341         * (Ffile_name_directory): enable win32 paths under cygwin.
8342         * (Ffile_name_nondirectory): ditto.
8343         * (directory_file_name): ditto.
8344         * (Fexpand_file_name): ditto.
8345         * (Ffile_truename): ditto.
8346         * (Fsubstitute_in_file_name): ditto.
8347         * (Ffile_name_absolute_p): ditto.
8348         * (Ffile_readable_p): ditto.
8349
8350 2001-09-08  Andy Piper  <andy@xemacs.org>
8351
8352         * device-msw.c (mswindows_finish_init_device): remove dde
8353         initialization.
8354         * device-msw.c (mswindows_init_dde): factor out from
8355         mswindows_finish_init_device()
8356         * device-msw.c (init_mswindows_very_early): new function
8357         initialize but don't enable dde.
8358         * emacs.c (main_1): call init_mswindows_very_early.
8359         * event-msw.c:
8360         * event-msw.c (mswindows_dde_callback): only execute when we are
8361         ready.
8362         * symsinit.h: declare init_mswindows_very_early.
8363
8364 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8365
8366         [sjt: This has been in 21.5 for months with no complaints.]
8367
8368         * console.h (struct console_methods): Added flags member.
8369         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8370         (CONMETH_IMPL_FLAG):
8371         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8372         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8373
8374         * device.c (window_system_pixelated_geometry): Use the above macros.
8375
8376         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8377         implememntation flag.
8378         * device.h (DEVICE_DISPLAY_P): Use it.
8379
8380         * frame.c (delete_frame_internal): Use the above macro.
8381
8382         * redisplay.c (redisplay_device): Use it.
8383         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8384         (redisplay_frame): Ditto.
8385
8386         * device-msw.c (mswindows_device_implementation_flags): Removed.
8387         (msprinter_device_implementation_flags): Removed.
8388         (console_type_create_device_mswindows): Removed references to
8389         implementation_flags methods, set implementation flags here.
8390         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8391
8392         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8393         (console_type_create_device_gtk): Removed method declaration.
8394         Added commented out statement which semantically matches the
8395         commented out statement in the above removed method.
8396
8397 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8398
8399         The attached patch fixes a few warnings. 
8400
8401         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8402         * src/frame-gtk.c: guard against GNOME calls in GTK only
8403         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8404         * src/select-gtk.c: prototype lisp_to_time
8405
8406 2001-06-08  Ben Wing  <ben@xemacs.org>
8407
8408         ------ gc-in-window-procedure fixes ------
8409         
8410         * alloc.c:
8411         * alloc.c (struct post_gc_action):
8412         * alloc.c (register_post_gc_action):
8413         * alloc.c (run_post_gc_actions):
8414         * alloc.c (garbage_collect_1):
8415         Create "post-gc actions", to avoid those dreaded "GC during window
8416         procedure" problems.
8417
8418         * event-msw.c:
8419         Abort, clean and simple, when GC in window procedure.  We want
8420         to flush these puppies out.
8421
8422         * glyphs-msw.c:
8423         * glyphs-msw.c (finalize_destroy_window):
8424         * glyphs-msw.c (mswindows_finalize_image_instance):
8425         Use a post-gc action when destroying subwindows.
8426
8427         * lisp.h:
8428         Declare register_post_gc_action().
8429
8430         * scrollbar-msw.c:
8431         * scrollbar-msw.c (unshow_that_mofo):
8432         Use a post-gc action when unshowing scrollbar windows, if in gc.
8433
8434         * redisplay.c (mark_redisplay):
8435         Add comment about the utter evilness of what's going down here.
8436
8437         ------ cygwin setitimer fixes ------
8438         
8439         * Makefile.in.in (sheap_objs):
8440         * Makefile.in.in (profile_objs):
8441         * Makefile.in.in (objs):
8442         Compile profile.c only when HAVE_SETITIMER.
8443         
8444         * nt.c (mswindows_sigset):
8445         * nt.c (mswindows_sighold):
8446         * nt.c (mswindows_sigrelse):
8447         * nt.c (mswindows_sigpause):
8448         * nt.c (mswindows_raise):
8449         * nt.c (close_file_data):
8450         Style fixes.
8451         
8452         * nt.c:
8453         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8454         
8455         * profile.c:
8456         * profile.c (Fstart_profiling):
8457         * profile.c (Fstop_profiling):
8458         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8459         instead of just plain setitimer().
8460         
8461         * signal.c:
8462         * signal.c (set_one_shot_timer):
8463         * signal.c (alarm):
8464         Define qxe_setitimer() as an encapsulation around setitimer() --
8465         call setitimer() directly unless Cygwin or MS Win, in which case
8466         we use our simulated version in win32.c.
8467         
8468         * systime.h:
8469         * systime.h (struct itimerval):
8470         * systime.h (ITIMER_REAL):
8471         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8472         comment about "qxe" and the policy regarding encapsulation.
8473
8474         * win32.c:
8475         * win32.c (setitimer_helper_proc):
8476         * win32.c (setitimer_helper_period):
8477         * win32.c (setitimer_helper):
8478         * win32.c (mswindows_setitimer):
8479         Move setitimer() emulation here, so Cygwin can use it.
8480         Rename a couple of functions and variables to be longer and more
8481         descriptive.  In setitimer_helper_proc(), send the signal
8482         using either mswindows_raise() or (on Cygwin) kill().  If for
8483         some reason we are still getting lockups, we'll change the kill()
8484         to directly invoke the signal handlers.
8485
8486         ------ windows shell fixes ------
8487         
8488         * callproc.c:
8489         * ntproc.c:
8490         Comments about how these two files must die.
8491
8492         * callproc.c (init_callproc):
8493         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8494         not just COMSPEC. (more correct and closer to FSF.) Don't
8495         force a value for SHELL into the environment. (Comments added
8496         to explain why not.)
8497         
8498         * nt.c (init_user_info):
8499         Don't shove a fabricated SHELL into the environment.  See above.
8500
8501 2001-06-01  Ben Wing  <ben@xemacs.org>
8502
8503         * Makefile.in.in (ldflags):
8504         eliminate that pesky "defaulting to 00401000" warning.
8505         * nt.h:
8506         eliminate warnings.
8507
8508 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8509
8510         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8511         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8512
8513 2001-04-24  Jerry James <james@xemacs.org>
8514
8515         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8516         correct order.
8517
8518 2001-06-01  Ben Wing  <ben@xemacs.org>
8519
8520         * event-msw.c (debug_mswin_messages):
8521         conditionalize the messages that were causing compile errors.
8522         (if only macros could generate #ifdef statements ...)
8523
8524 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8525
8526         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8527
8528 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8529
8530         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8531
8532 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8533
8534         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8535         * process-unix.c (unix_canonicalize_host_name):
8536         sysdep.c (init_system_name):
8537         Use it to conditionally support IPv6 canonicalization.
8538
8539 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8540
8541         * event-msw.c:
8542         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8543
8544 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8545
8546         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8547         attempt is made to scroll when no scroll bar is available.
8548
8549 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8550
8551         * input-method-motif.c (XIM_delete_frame): New callback.
8552         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8553         got deleted from 21.4.3.)
8554
8555 2001-06-01  Ben Wing  <ben@xemacs.org>
8556
8557         * nt.c (mswindows_utime):
8558         * nt.c (close_file_data):
8559         fix off-by-one-indirection error.
8560
8561 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8562
8563         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8564         because set_file_times() now takes Lisp_Object path, instead of
8565         char*.
8566         * nt.c: Include buffer.h.
8567         * nt.c (convert_from_time_t): New.
8568         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8569         not set mtime correctly.
8570         * nt.h: Declare mswindows_utime().
8571         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8572         path, instead of char*.
8573         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8574
8575 2001-05-30  Ben Wing  <ben@xemacs.org>
8576
8577         For 21.4:
8578
8579         (Stephen, just take all event-msw.c patches.  This includes
8580         the "iconify" fix below.)
8581
8582         * event-msw.c:
8583         * event-msw.c (mswindows_dequeue_dispatch_event):
8584         * event-msw.c (assert):
8585         * event-msw.c (emacs_mswindows_quit_p):
8586         * event-msw.c (debug_mswin_messages):
8587         * event-msw.c (debug_output_mswin_message):
8588         * event-msw.c (vars_of_event_mswindows):
8589         Fix yet more problems with C-g handling.
8590         Implement debug-mswindows-events.
8591         
8592 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8593
8594         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8595         
8596 2001-05-23  Ben Wing  <ben@xemacs.org>
8597
8598         * event-msw.c (winsock_writer):
8599         * event-msw.c (winsock_closer):
8600         prior kludgy code was clobbering the buffer, thinking it was
8601         "unused" space to store an unneeded return value; instead, use
8602         the variable we've already got staring us in the face.
8603
8604 2001-05-17  Andy Piper  <andy@xemacs.org>
8605
8606         * sysfile.h: don't assume that file attributes are boolean
8607
8608 2001-05-23  Ben Wing  <ben@xemacs.org>
8609
8610         * device-msw.c (msprinter_init_device):
8611         signal an error rather than crash with an unavailable network
8612         printer (from Mike Alexander).
8613         
8614         * event-msw.c:
8615         * event-msw.c (struct winsock_stream):
8616         * event-msw.c (winsock_writer):
8617         * event-msw.c (winsock_closer):
8618         * event-msw.c (make_winsock_stream_1):
8619         cleanup headers.  fix (hopefully) an error with data corruption
8620         when sending to a network connection.
8621
8622         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8623         to handle the ~user prefix by (a) always assuming we're referencing
8624         ourselves and not even verifying the user -- hence any file with
8625         a tilde as its first char is invalid! (b) if there wasn't a slash
8626         following the filename, the pointer was set *past* the end of
8627         file and we started reading from uninitialized memory.  Now we
8628         simply treat these as files, always.
8629
8630         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8631         
8632 2001-05-19  Ben Wing  <ben@xemacs.org>
8633
8634         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8635
8636         * process-nt.c:
8637         * process-nt.c (vars_of_process_nt):
8638         remove unused mswindows-quote-process-args.  rec for 21.4.
8639         
8640 2001-05-12  Ben Wing  <ben@xemacs.org>
8641
8642         * event-msw.c (mswindows_dde_callback):
8643         * event-msw.c (mswindows_wnd_proc):
8644         eliminate cygwin warnings.
8645
8646 2001-05-06  Ben Wing  <ben@xemacs.org>
8647
8648         * console-msw.h:
8649         * device-msw.c:
8650         * device-msw.c (print_dialog_worker):
8651         * device-msw.c (mswindows_handle_print_dialog_box):
8652         * device-msw.c (syms_of_device_mswindows):
8653         * dialog-msw.c (mswindows_make_dialog_box_internal):
8654         * general-slots.h:
8655         implement printing the selection when it's selected.
8656
8657 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8658
8659         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8660
8661 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8662
8663         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8664         EMACS_INT is signed.
8665
8666 2001-04-15  Michael Lausch  <mla@1012surf.net>
8667
8668         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8669         gtk_widget_request_size() to give scrollbar >0 width for
8670         GTK >1.2.8.
8671
8672 2001-05-30  William M. Perry  <wmperry@gnu.org>
8673
8674         * event-gtk.c: Check for buttons as modifier keys.
8675
8676 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8677
8678         * s\mingw32.h:
8679         Properly find MinGW's <process.h> inside Cygwin's restructured
8680         include directories.  Don't try to include <cygwin/version.h>
8681         since we are dropping support for MinGW in versions of Cygwin
8682         earlier than b21.
8683         * nt.c:
8684         Drop support for MinGW in versions of Cygwin before b21.
8685         * sysdep.c:
8686         Properly find MinGW's <process.h> inside Cygwin's restructured
8687         include directories.
8688         * syswindows.h:
8689         Drop support for MinGW in versions of Cygwin before b21.
8690         * unexcw.c:
8691         Even though a.out.h is no longer detected by configure, allow
8692         MinGW to use it until we figure out how to do the job with Win32.
8693
8694 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8695
8696         * syntax.c (find_start_of_comment):
8697         Fix `unbalanced parentheses' bug when dealing with mixed comment
8698         styles in c++/java/etc. mode
8699
8700 2001-05-29  Mike Alexander  <mta@arbortext.com>
8701
8702         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8703         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8704
8705 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8706
8707         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8708
8709 2001-03-31  Mike Sperber <mike@xemacs.org>
8710
8711         * search.c (Freplace_match): Support FSF-style specification of
8712         match subexpression when applied to a buffer.
8713
8714 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8715
8716         * event-stream.c (is_scrollbar_event): add missing semicolon
8717
8718 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8719
8720         * Makefile.in.in: Use TAR macro instead of hardcoding
8721           tar.  Allows use of GNU tar instead of system tar
8722
8723 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8724
8725         * event-stream.c (is_scrollbar_event): add missing semicolon
8726
8727 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8728
8729         * XEmacs 21.4.3 "Academic Rigor" is released.
8730
8731 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8732
8733         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8734
8735 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8736
8737         * buffer.c (Vcase_fold_search): Remove obsolete
8738           comment about non ASCII case-fold-search.  This
8739           bug has been fixed by case-table changes.
8740
8741 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8742
8743         * event-msw.c: Restore include of events-mod.h.
8744
8745 2001-04-22   zhaoway  <zw@debian.org>
8746
8747         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8748         !HAVE_SCROLLBARS.
8749
8750 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8751
8752         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8753
8754 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8755
8756         * mule-charset.c (Fmake_charset): Add missing else.
8757
8758 2001-04-23  Ben Wing  <ben@xemacs.org>
8759
8760         * event-msw.c (FAKE_MOD_QUIT):
8761         * event-msw.c (mswindows_dequeue_dispatch_event):
8762         * event-msw.c (mswindows_wnd_proc):
8763         * event-msw.c (emacs_mswindows_quit_p):
8764         Get critical quit working.
8765
8766 2001-05-05  Ben Wing  <ben@xemacs.org>
8767
8768         * console-msw.h:
8769         * device-msw.c:
8770         * device-msw.c (mswindows_get_default_margin):
8771         * frame-msw.c (mswindows_size_frame_internal):
8772         * frame-msw.c (msprinter_init_frame_1):
8773         * frame-msw.c (vars_of_frame_mswindows):
8774         Change top/bottom margin defaults to 0.5 inches.
8775
8776 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8777
8778         Fix link error with gcc 3.0 on Linux.
8779         * terminfo.c (UP): Remove.
8780         * terminfo.c (BC): Remove.
8781         * terminfo.c (PC): Remove.
8782         They weren't used, and in any case, these symbols should be
8783         defined in the *library*.
8784
8785 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8786
8787         * s/aix4.h: Fix crash with xlc -O3.
8788         Improve comment explaining how -O3 works.
8789
8790 2001-04-15  Ben Wing  <ben@xemacs.org>
8791
8792         * event-stream.c:
8793         * event-stream.c (Fnext_event):
8794         * event-stream.c (is_scrollbar_event):
8795         * event-stream.c (execute_command_event):
8796         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8797         crash' problem.  His fix introduces other problems.  We filter
8798         out scrollbar events specifically, making them somewhat invisible
8799         to command-building, and not appearing in `this-command-keys'.
8800         More work is still needed (see comments in event-stream.c), but
8801         this fixes all the major problems.
8802
8803 2001-04-20  Ben Wing  <ben@xemacs.org>
8804
8805         * .cvsignore: Added stuff for Windows.
8806
8807 2001-04-28  Ben Wing  <ben@xemacs.org>
8808
8809         * buffer.c (Ferase_buffer):
8810         * editfns.c (buffer_insert1):
8811         * editfns.c (Finsert_before_markers):
8812         * editfns.c (Finsert_string):
8813         * editfns.c (Finsert_char):
8814         * editfns.c (Fdelete_region):
8815         * editfns.c (Fwiden):
8816         * editfns.c (Fnarrow_to_region):
8817         remove bogus lines setting zmacs_region_stays to 0.
8818         
8819 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8820
8821         * process-unix.c (unix_open_network_stream): If connect() fails
8822         invalidate file descriptor after closing it.
8823
8824 2001-03-08  Mike Alexander  <mta@arbortext.com>
8825
8826         * event-msw.c (mswindows_need_event_in_modal_loop):
8827         Don't dispatch a message if we didn't get one.
8828         (mswindows_need_event):
8829         Terminate the correct process when one exits instead of the first
8830         one on Vprocess_list and look for process termination when in
8831         mswindows_protect_modal_loop.
8832
8833 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8834
8835         * XEmacs 21.4.1 "Copyleft" is released.
8836
8837 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8838
8839         * input-method-motif.c (XIM_delete_frame): New callback.
8840         (XIM_init_frame): Register it.
8841
8842 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8843
8844         * XEmacs 21.4.0 "Solid Vapor" is released.
8845
8846 2001-04-15  Ben Wing  <ben@xemacs.org>
8847
8848         * cmdloop.c (call_command_loop):
8849         Fix braino in bit-rotting code.
8850         
8851 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8852
8853         * extents.c (Fset_extent_endpoints): Force creation of extent info
8854         in buffer_or_string.
8855
8856         * extents.c (process_extents_for_insertion_mapper): Correctly
8857         check for open-open zero-length extents.
8858
8859 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8860
8861         * lisp.h: New typedefs Memory_count, Element_count.
8862         * regex.c:
8863         * regex.h:
8864         Sign-compare warning elimination: several unsigned -> signed.
8865         Based on work by Ben Wing <ben@xemacs.org>.
8866
8867 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8868
8869         * XEmacs 21.2.47 "Zephir" is released.
8870
8871 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8872
8873         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8874
8875 2001-04-03  Mike Sperber <mike@xemacs.org>
8876
8877         * search.c: Revert previous patch due because of release.
8878
8879 2001-03-30  Ben Wing  <ben@xemacs.org>
8880
8881         * s\cygwin32.h:
8882         Add missing killpg prototype.
8883
8884         * elhash.c:
8885         Add a comment about fixing problems when a new entry is added
8886         while mapping.
8887
8888         * frame-msw.c (mswindows_init_frame_1):
8889         Fix compile warnings.
8890
8891         * menubar.c (vars_of_menubar):
8892         Provide `menu-accelerator-support' to indicate that we properly
8893         support %_ in menu specifications, so that package code can
8894         conditionalize on this (and remove %_ from menu specifications
8895         on older versions).
8896
8897         * event-msw.c:
8898         * scrollbar-msw.c:
8899         * scrollbar-msw.c (can_scroll):
8900         * scrollbar-msw.h:
8901         Fix handling of mouse wheel under Windows to follow standards --
8902         now scrolls window under pointer, not selected window.
8903
8904 2001-03-31  Mike Sperber <mike@xemacs.org>
8905
8906         * search.c (Freplace_match): Support FSF-style specification of
8907         match subexpression when applied to a buffer.
8908
8909 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8910
8911         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8912         function to modify KEYMAP, so map over a copy of the hash table.
8913
8914 2001-03-21  Martin Buchholz <martin@xemacs.org>
8915
8916         * XEmacs 21.2.46 "Urania" is released.
8917
8918 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8919
8920         * realpath.c (xrealpath): Make file-truename work with symlinks to
8921         /cygdrive paths on cygwin. Always lowercase drive-letters on
8922         native windows.
8923         (cygwin_readlink): Don't try to find canonical filename unless
8924         file exists.
8925
8926 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8927
8928         * ChangeLog: Log GTK merge.
8929
8930         * dumper.c:
8931         * select-x.c:
8932         * specifier.c:
8933         * symeval.h:
8934         Revert gratuitous whitespace changes from GTK merge.
8935
8936         * emacs.c: Document end of complex #ifdef @ l. 1495.
8937
8938
8939 2001-03-12  Andy Piper  <andy@xemacs.org>
8940
8941         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8942         have to do likewise.
8943
8944 2001-03-12  Andy Piper  <andy@xemacs.org>
8945
8946         * sysdep.c: we only support mingw now.
8947
8948 2001-03-09  Andy Piper  <andy@xemacs.org>
8949
8950         * unexcw.c (copy_executable_and_dump_data_section): making approx
8951         overrun a warning only.
8952
8953 2001-03-10  William M. Perry  <wmperry@aventail.com>
8954
8955         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8956         satisfy Stephen's identical-after-cpp plea.
8957
8958 2001-03-02  Ben Wing  <ben@xemacs.org>
8959
8960         * cmds.c:
8961         * cmds.c (Fforward_char):
8962         * syntax.c:
8963         * window.c:
8964
8965         Augment documentation of the most common motion commands to make
8966         note of the shifted-motion support.
8967         
8968 2001-03-02  Ben Wing  <ben@xemacs.org>
8969
8970         * nt.c (mswindows_fstat):
8971         * nt.c (mswindows_stat):
8972         * search.c (boyer_moore):
8973         Fix compile warnings under Windows.
8974         
8975         * sysdep.c (sys_readdir):
8976         Fix buggy filename-conversion code under Mule.
8977
8978 2001-03-09  William M. Perry  <wmperry@aventail.com>
8979
8980         * Makefile.in.in:
8981         * config.h.in:
8982         * console.c:
8983         * console.h:
8984         * device.c:
8985         * device.h:
8986         * dragdrop.c:
8987         * emacs.c:
8988         * event-stream.c:
8989         * events.c:
8990         * events.h:
8991         * faces.c:
8992         * frame.h:
8993         * general-slots.h:
8994         * glyphs.c:
8995         * gutter.c:
8996         * inline.c:
8997         * lisp.h:
8998         * lrecord.h:
8999         * make-src-depend:
9000         * redisplay-output.c:
9001         * redisplay.c:
9002         * symsinit.h:
9003         * sysfile.h:
9004         * toolbar.c:
9005         * window.c:
9006         The Great GTK Merge.
9007
9008         * ChangeLog.GTK:
9009         * console-gtk.c:
9010         * console-gtk.h:
9011         * device-gtk.c:
9012         * emacs-marshals.c:
9013         * emacs-widget-accessors.c:
9014         * event-gtk.c:
9015         * frame-gtk.c:
9016         * gccache-gtk.c:
9017         * gccache-gtk.h:
9018         * glade.c:
9019         * glyphs-gtk.c:
9020         * glyphs-gtk.h:
9021         * gtk-glue.c:
9022         * gtk-xemacs.c:
9023         * gtk-xemacs.h:
9024         * gui-gtk.c:
9025         * gui-gtk.h:
9026         * menubar-gtk.c:
9027         * native-gtk-toolbar.c:
9028         * objects-gtk.c:
9029         * objects-gtk.h:
9030         * redisplay-gtk.c:
9031         * scrollbar-gtk.c:
9032         * scrollbar-gtk.h:
9033         * select-gtk.c:
9034         * toolbar-gtk.c:
9035         * ui-byhand.c:
9036         * ui-gtk.c:
9037         * ui-gtk.h:
9038         The Great GTK Merge: new files.
9039
9040 2001-02-26  Ben Wing  <ben@xemacs.org>
9041
9042         Reapplied Lstream change.
9043
9044 2001-02-26  Ben Wing  <ben@xemacs.org>
9045
9046         Undid the last change, since it is more controversial than I
9047         thought.  It should be back in at some point soon.
9048         
9049 2001-02-25  Ben Wing  <ben@xemacs.org>
9050
9051         * buffer.c:
9052         * callproc.c (Fold_call_process_internal):
9053         * event-msw.c (ntpipe_slurp_reader):
9054         * event-msw.c (ntpipe_shove_writer):
9055         * event-msw.c (winsock_reader):
9056         * event-msw.c (winsock_writer):
9057         * file-coding.c:
9058         * file-coding.c (detect_eol_type):
9059         * file-coding.c (detect_coding_type):
9060         * file-coding.c (determine_real_coding_system):
9061         * file-coding.c (Fdetect_coding_region):
9062         * file-coding.c (decoding_reader):
9063         * file-coding.c (decoding_writer):
9064         * file-coding.c (mule_decode):
9065         * file-coding.c (Fdecode_coding_region):
9066         * file-coding.c (encoding_reader):
9067         * file-coding.c (encoding_writer):
9068         * file-coding.c (mule_encode):
9069         * file-coding.c (Fencode_coding_region):
9070         * file-coding.c (detect_coding_sjis):
9071         * file-coding.c (decode_coding_sjis):
9072         * file-coding.c (encode_coding_sjis):
9073         * file-coding.c (detect_coding_big5):
9074         * file-coding.c (decode_coding_big5):
9075         * file-coding.c (encode_coding_big5):
9076         * file-coding.c (detect_coding_ucs4):
9077         * file-coding.c (decode_coding_ucs4):
9078         * file-coding.c (encode_coding_ucs4):
9079         * file-coding.c (detect_coding_utf8):
9080         * file-coding.c (decode_coding_utf8):
9081         * file-coding.c (encode_coding_utf8):
9082         * file-coding.c (detect_coding_iso2022):
9083         * file-coding.c (decode_coding_iso2022):
9084         * file-coding.c (encode_coding_iso2022):
9085         * file-coding.c (decode_coding_no_conversion):
9086         * file-coding.c (encode_coding_no_conversion):
9087         * glyphs-x.c (write_lisp_string_to_temp_file):
9088         * gpmevent.c (tty_get_foreign_selection):
9089         * lisp.h:
9090         * lstream.c:
9091         * lstream.c (Lstream_flush_out):
9092         * lstream.c (Lstream_adding):
9093         * lstream.c (Lstream_write_1):
9094         * lstream.c (Lstream_write):
9095         * lstream.c (Lstream_raw_read):
9096         * lstream.c (Lstream_read_more):
9097         * lstream.c (Lstream_read):
9098         * lstream.c (Lstream_unread):
9099         * lstream.c (Lstream_fputc):
9100         * lstream.c (stdio_reader):
9101         * lstream.c (stdio_writer):
9102         * lstream.c (filedesc_reader):
9103         * lstream.c (filedesc_writer):
9104         * lstream.c (lisp_string_reader):
9105         * lstream.c (struct fixed_buffer_stream):
9106         * lstream.c (make_fixed_buffer_input_stream):
9107         * lstream.c (make_fixed_buffer_output_stream):
9108         * lstream.c (fixed_buffer_reader):
9109         * lstream.c (fixed_buffer_writer):
9110         * lstream.c (struct resizing_buffer_stream):
9111         * lstream.c (resizing_buffer_writer):
9112         * lstream.c (dynarr_writer):
9113         * lstream.c (lisp_buffer_reader):
9114         * lstream.c (lisp_buffer_writer):
9115         * lstream.h:
9116         * lstream.h (lstream_implementation):
9117         * lstream.h (struct lstream):
9118         * md5.c (Fmd5):
9119         * process-nt.c (nt_send_process):
9120         * process-unix.c (unix_send_process):
9121         
9122         Correct Lstream lossage due to mixing of signed and unsigned
9123         quantities.  All Lstream uses of size_t and ssize_t are now a
9124         single signed data type Lstream_data_count.  This fixes problems
9125         under Windows with sending large quantities of data to a process,
9126         and may well fix other subtle bugs.
9127
9128 2001-02-23  Martin Buchholz <martin@xemacs.org>
9129
9130         * XEmacs 21.2.45 "Thelxepeia" is released.
9131
9132 2001-02-21  Martin Buchholz  <martin@xemacs.org>
9133
9134         * lisp-union.h (XSETINT): 
9135         (XSETCHAR):
9136         (XSETOBJ): 
9137         Reverse previous change of 2001-02-06.
9138
9139 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
9140
9141         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
9142         buffers.
9143         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9144         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
9145         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
9146         * regex.c (POS_AS_IN_BUFFER): removed
9147         * regex.c (re_search_2):
9148         * regex.c (re_match_2):
9149         Don't use an offset of 1 when calculating buffer positions, since
9150         `BI_BUF_BEGV' does it already.
9151
9152 2001-02-18  Wim Dumon  <wim@easics.be>
9153
9154         * insdel.c (prepare_to_modify_buffer): Also check for
9155         supersession when clash-detection is enabled. 
9156
9157 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
9158
9159         * regex.c (re_match_2_internal):
9160         Convert temp characters from 'const unsigned char' to 're_char'.
9161         Fix crashing bug with extended characters under mule.
9162         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
9163         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
9164         font-lock, pdump, and new syntax-table code.
9165         * syntax.c (find_start_of_comment):
9166         (find_end_of_comment):
9167         (forward-comment):
9168         Fix crashing bugs involving moving beyond end of buffer.
9169         * syntax.c (find_start_of_comment):
9170         Fixed logic to allow proper detection of cases where the same
9171         character is used to end both a two-char comment start and a
9172         two-char comment end sequence. Fixes `(forward-comment -1)'.
9173         * syntax.c (find_start_of_comment):
9174         Return position just past last comment-end character for all cases
9175         (previously was only done for two-char comment-end sequences).
9176         * syntax.c (forward-comment):
9177         Take value returned from `find_end_of_comment', rather than
9178         incrementing it.
9179         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9180         Properly deal with BUFFERP (syntax_cache.object)
9181
9182 2001-02-17  Martin Buchholz  <martin@xemacs.org>
9183
9184         * alloc.c (Fgarbage_collect): 
9185         * alloc.c (make_bit_vector_from_byte_vector):
9186         -Wsign-compare-correctness.
9187
9188 2001-02-16  Martin Buchholz  <martin@xemacs.org>
9189
9190         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
9191         (XSETCHAR): Likewise.
9192         (XSETOBJ): Likewise.
9193
9194 2001-02-15  Martin Buchholz  <martin@xemacs.org>
9195
9196         * mule-canna.c (canna-func-delete_previous): 
9197         Rename to canna-func-delete-previous.
9198
9199 2001-02-14  Martin Buchholz  <martin@xemacs.org>
9200
9201         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
9202
9203 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
9204
9205         * font-lock.c (find_context): Fix C++ compile errors introduced by
9206         recent patch
9207
9208 2001-02-13  Martin Buchholz  <martin@xemacs.org>
9209
9210         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
9211         pragma, but earlier ones barf on the same pragma.
9212
9213 2001-02-06  Mike Sperber <mike@xemacs.org>
9214
9215         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
9216         `configure-mule-lisp-directory'.
9217
9218 2001-02-12  Martin Buchholz  <martin@xemacs.org>
9219
9220         Make sure dump-id.c is compiled in the same way as other .c's.
9221         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
9222         * dump-id.h: Remove.
9223         * emacs.c: Move dump-id.h into dumper.h.
9224         * dumper.h: Move dump-id.h into dumper.h.
9225         * Makefile.in.in:
9226         Use standard .c.o rule for building dump-id.o.
9227         Remove preprocessor flags from link command.
9228         Add dump-id.o to ${otherobjs} if PDUMP.
9229
9230 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
9231
9232         Port FSF 20.7 syntax table improvements.
9233         * syntax.c.
9234         * syntax.h.
9235
9236         Fixups for new syntax table stuff.
9237         * dired.c: Include syntax.c.
9238         (Fdirectory_files): Initialize regex_match_object and
9239         regex_emacs_buffer.
9240         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9241         and Fget_char_property.
9242
9243         Use ported FSF 20.7 syntax table improvements.
9244         * font-lock.c.
9245         * regex.c.
9246         * search.c.
9247         
9248 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9249
9250         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9251         Unixware's enum boolean from sys/types.h.
9252
9253 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9254
9255         Fix support for building with latest Purify.
9256         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9257         (PURIFY_FLAGS): Likewise.
9258
9259 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9260
9261         * fileio.c (lisp_string_set_file_times): New.
9262         * fileio.c (Fcopy_file): Use it.
9263         Fixes bug:
9264         (copy-file filename non-ascii-filename t t)
9265         ==> No such file or directory, non-ascii-filename
9266
9267 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9268
9269         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9270         USHRT_MAX seems clearer than ~0 anyways.
9271
9272 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9273
9274         dumper improvements.  Inspired by Olivier.
9275         * dumper.c (pdump_max_align): New.
9276         * dumper.c (pdump_add_entry): Use pdump_max_align.
9277         * dumper.c (pdump_get_entry_list): Likewise.
9278         * dumper.c (pdump_scan_by_alignment): Likewise.
9279         Don't iterate through unnecessary alignments.
9280         * dumper.c (pdump_file_get): No need to align result of malloc().
9281         * dumper.c (pdump_mallocadr): Remove.  
9282         The result of malloc() is guaranteed to be maximally aligned.
9283         * dumper.c: s/elmt/elt/g;
9284         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9285         * dumper.c (pdump_alert_undump_object): Likewise.
9286         * dumper.c (pdump_align_table): 
9287         Don't support alignments > 64.
9288         Store ALIGNOF's, not shift counts, in table.
9289
9290 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9291
9292         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9293         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9294         * systime.h: Use HAVE_UTIME.
9295         * sysdep.c (struct utimbuf): Remove.
9296         * sysdep.c (set_file_times): Prefer utime() to utimes().
9297         * config.h.in (HAVE_UTIME): New.
9298         * config.h.in (HAVE_UTIME_H): Remove.
9299         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9300
9301 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9302
9303         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9304
9305 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9306
9307         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9308
9309 2001-02-08  Martin Buchholz <martin@xemacs.org>
9310
9311         * XEmacs 21.2.44 "Thalia" is released.
9312
9313 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9314
9315         Fixes crashes in kill-emacs on some systems.
9316         * process-unix.c (unix_kill_child_process):
9317         It's OK for kill() to fail with ESRCH.
9318
9319 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9320
9321         Contortions to make .gdbinit tricks work on most systems.
9322         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9323         * alloc.c (dbg_valmask): Make non-const.
9324         * alloc.c (dbg_typemask): Make non-const.
9325         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9326         * alloc.c (dbg_valbits): Make non-const.
9327         * alloc.c (dbg_gctypebits): Make non-const.
9328         * .gdbinit (decode_object): Make it work with AIX cc.
9329
9330 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9331
9332         * elhash.c (make_general_lisp_hash_table):
9333         Use simpler and more efficient calloc to clear entries.
9334
9335 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9336
9337         * window.c (window_scroll): Work around an AIX C compiler bug.
9338         Fixes 'scroll-up' does nothing problem with xlC.
9339
9340 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9341
9342         * .gdbinit: Remove obsolete comment.
9343
9344 2001-01-31  Mike Alexander  <mta@arbortext.com>
9345
9346         * select.c (Fown_selection_internal): Set owned_p for device
9347         method correctly.
9348
9349 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9350
9351         Port to g++ 2.97.
9352         "not" cannot be used as a macro name as it is an operator in C++
9353         * config.h.in: Stop #defining `not'.
9354         * chartab.c (check_category_char): not ==> not_p
9355         * chartab.h: Likewise.
9356         * regex.c (re_match_2_internal): Likewise.
9357
9358 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9359
9360         * lisp-disunion.h: Fix up comments.
9361
9362 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9363
9364         * keymap.c (define_key_check_and_coerce_keysym):
9365         (syms_of_keymap):
9366         Support mouse-6 and mouse-7 bindings in the obvious way.
9367
9368 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9369
9370         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9371
9372 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9373
9374         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9375         Previous patch missed DEFVAR_INT_MAGIC.
9376         Make sure future DEFVAR_foo use correct types.
9377         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9378         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9379         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9380         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9381         * (DEFVAR_INT): Likewise.
9382         * redisplay.c (vertical_clip): Should be of type Fixnum.
9383         * redisplay.c (horizontal_clip): Likewise.
9384         * lisp.h (dump_add_opaque_int): New.
9385         (dump_add_opaque_fixnum): New.
9386
9387 2001-01-29  Andy Piper  <andy@xemacs.org>
9388
9389         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9390         since they can be eval'ed
9391
9392 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9393
9394         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9395         Oops, XEmacs redefines `class'.  Use `typename' instead.
9396
9397 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9398
9399         * dumper.c: Fix C++ compile errors.
9400
9401 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9402
9403         * tparam.c: Use correct prototypes.
9404
9405 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9406
9407         * sysproc.h: #include util.h for NetBSD's openpty.
9408
9409 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9410
9411         More 64-bit correctness.
9412         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9413         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9414         Fix up comments.
9415         This finally finishes the 64-bit SGI port.
9416         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9417         * symbols.c: Fix up comments and type casts.
9418         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9419         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9420         * symeval.h (Fixnum): New type.
9421         * symeval.h (symbol_value_type): Fix up comment.
9422
9423         * commands.h:
9424         * nt.c:
9425         * emacs.c:
9426         * data.c:
9427         * redisplay.c:
9428         * abbrev.c:
9429         * dired-msw.c:
9430         * event-Xt.c:
9431         * eldap.c:
9432         * window.c:
9433         * sound.c:
9434         * event-stream.c:
9435         * eval.c:
9436         * buffer.c:
9437         * mule-canna.c: A million DEFVAR_INTs here...
9438         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9439         * extents.c:
9440         * cmdloop.c:
9441         * lisp.h:
9442         * select-x.c:
9443         * console-x.h:
9444         * event-msw.c:
9445         * mule-wnnfns.c:
9446         * hpplay.c:
9447         * ralloc.c:
9448         * alloc.c:
9449         * keymap.c:
9450         * profile.c:
9451         s/int/Fixnum/g in DEFVAR_INT declarations.
9452
9453 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9454
9455         Port pdump to SGI alignment-sensitive environment.
9456         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9457         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9458         properly aligned.
9459         Define and use aligned reading and writing macros.
9460         Use buffered stdio instead of posix i/o for faster dumping.
9461         Eliminate kludgy 256 byte space for header.
9462         Read and write from dump file using structs for alignment safety.
9463         * dumper.c (pdump_align_stream): New.
9464         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9465         * dumper.c (PDUMP_READ_ALIGNED): New.
9466         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9467         * dumper.c (pdump_static_Lisp_Object): New struct.
9468         * dumper.c (pdump_static_pointer): New struct.
9469         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9470         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9471         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9472         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9473
9474         * dumper.c (pdump_backtrace):
9475         * dumper.c (pdump_get_indirect_count):
9476         * dumper.c (pdump_register_object):
9477         * dumper.c (pdump_register_struct):
9478         * dumper.c (pdump_reloc_one):
9479         * dumper.c (pdump_scan_by_alignment):
9480         * dumper.c (pdump_dump_from_root_struct_ptrs):
9481         * dumper.c (pdump_dump_opaques):
9482         * dumper.c (pdump_dump_rtables):
9483         * dumper.c (pdump_dump_from_root_objects):
9484         * dumper.c (pdump):
9485         * dumper.c (pdump_load_finish):
9486         Use aligned reading and writing.
9487
9488         * dumper.c (pdump_free): Make static.
9489         * dumper.c (pdump_hFile): Likewise.
9490         * dumper.c (pdump_hMap): Likewise.
9491
9492 2001-01-26  Martin Buchholz <martin@xemacs.org>
9493
9494         * XEmacs 21.2.43 "Terspichore" is released.
9495
9496 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9497
9498         Type fiddling for window_config.saved_windows_count
9499         * window.c (struct window_config): 
9500         Make saved_windows_count member unsigned.
9501         * window.c (sizeof_window_config_for_n_windows): 
9502         Make parameter unsigned.
9503         * window.c (mark_window_config):
9504         * window.c (window_config_equal):
9505         * window.c (free_window_configuration):
9506         * window.c (Fset_window_configuration):
9507         * window.c (count_windows):
9508         * window.c (Fcurrent_window_configuration):
9509         * window.c (reinit_vars_of_window):
9510         Update all callers and users.
9511
9512 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9513
9514         Alignment correctness for flexible arrays.
9515         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9516         Make alignment-correct. Add interesting comments.
9517         * alloc.c (size_vector):
9518         * alloc.c (make_vector_internal):
9519         * alloc.c (make_bit_vector_internal):
9520         * alloc.c (sweep_bit_vectors_1):
9521         * fns.c (size_bit_vector):
9522         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9523         * window.c (sizeof_window_config_for_n_windows): 
9524         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9525
9526 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9527
9528         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9529
9530 2001-01-23  Andy Piper  <andy@xemacs.org>
9531
9532         * select.c (Fown_selection_internal): pass owned_p
9533
9534         * select-msw.c (mswindows_own_selection): New Signature.
9535
9536         * console.h (struct console_methods): add owned_p to
9537         _own_selection.
9538
9539         * select-x.c (x_own_selection): pass owned_p
9540         (hack_motif_clipboard_selection): use owned_p
9541         (vars_of_select_x): new variable -
9542         x_selection_strict_motif_ownership.
9543
9544 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9545
9546         * specifier.h (specifier_data_offset): Remove pointless parens.
9547         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9548
9549 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9550
9551         Make Lisp_Object sizeof methods be alignment-correct.
9552         pdump must restore objects to the same alignment as the C compiler
9553         assumes.  It really matters on SGIs.
9554         * lstream.c (aligned_sizeof_lstream): New.
9555         (sizeof_lstream): Use aligned_sizeof_lstream.
9556         (Lstream_new): Likewise.
9557         * opaque.c (aligned_sizeof_opaque): New.
9558         (sizeof_opaque): Use aligned_sizeof_opaque.
9559         (make_opaque): Likewise.
9560         * specifier.c (aligned_sizeof_specifier): New.
9561         (sizeof_specifier): Use aligned_sizeof_specifier.
9562         (make_specifier_internal): Likewise.
9563
9564 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9565
9566         * lstream.h (struct lstream): Use max_align_t for trailing data.
9567         * specifier.h (struct Lisp_Specifier): Likewise.
9568
9569 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9570
9571         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9572         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9573         (CCL_SUSPEND): Likewise.
9574         (CCL_INVALID_CMD): Likewise.
9575         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9576         (ccl_driver): Likewise.
9577         (CCL_WRITE_CHAR): Macro hygiene.
9578         (CCL_WRITE_STRING): Macro hygiene.
9579
9580 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9581
9582         Port "portable" dumper to SunOS 4 and HP-UX.
9583         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9584         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9585         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9586
9587 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9588
9589         * lisp.h (ALIGNOF): A better definition for C++.
9590
9591 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9592
9593         Macro hygiene.
9594         Fix printf warnings: int format, long int arg.
9595         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9596         (PUSH_FAILURE_POINT): Use correct printf formats.
9597         (POP_FAILURE_POINT): Use correct printf formats.  
9598         Use do {...} while (0)
9599
9600 2001-01-20  Martin Buchholz <martin@xemacs.org>
9601
9602         * XEmacs 21.2.42 "Poseidon" is released.
9603
9604 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9605
9606         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9607
9608 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9609
9610         De-kludgify FIXED_TYPE free list frobbing.
9611         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9612         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9613         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9614         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9615         * alloc.c (LRECORD_FREE_P): New.
9616         * alloc.c (MARK_LRECORD_AS_FREE): New.
9617         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9618         * alloc.c (STRUCT_FREE_P): Deleted.
9619         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9620         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9621         * alloc.c (STRING_CHARS_FREE_P): New.
9622         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9623         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9624         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9625         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9626         * alloc.c (resize_string): Use new definitions.
9627         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9628         * alloc.c (verify_string_chars_integrity): Use new definitions.
9629         * alloc.c (compact_string_chars): Use new definitions.
9630         * alloc.c: Update monster comments.
9631         * lrecord.h (lrecord_type): Add some new lrecord types for
9632         alloc.c's use.
9633
9634 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9635
9636         Improve alignment hackery.
9637         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9638         (max_align_t): Moved from opaque.h - general purpose.
9639         (ALIGN_PTR): Use size_t, not long.
9640         * opaque.h (max_align_t): Move to lisp.h.
9641
9642 2001-01-18  Norbert Koch  <nk@LF.net>
9643
9644         * gui.h: Fix and add prototypes to fix build problems.
9645
9646 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9647
9648         temacs is going away, so `dump-temacs' is now a bad name.
9649         * .dbxrc (dump-temacs): Rename to `dmp'.
9650         * .gdbinit (dump-temacs): Rename to `dmp'.
9651
9652 2001-01-17  Andy Piper  <andy@xemacs.org>
9653
9654         * glyphs.c (print_image_instance): comment to make martin happy.
9655
9656         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9657         change.
9658
9659         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9660         activation.
9661         (mswindows_tab_control_redisplay): warning suppression.
9662
9663         * glyphs-widget.c (widget_update): re-write to cope with updated
9664         items.
9665         (widget_instantiate): use new gui_item functions.
9666         (tab_control_update): deleted.
9667         (progress_gauge_update): deleted.
9668         (image_instantiator_progress_guage): take out update reference.
9669         (image_instantiator_tree_view): ditto.
9670         (image_instantiator_tab_control): ditto.
9671
9672         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9673         Right the new way.
9674         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9675         return whether anything was changed.
9676         (update_gui_item_keywords): as it sounds.
9677
9678         * gui.h: declare widget_gui_parse_item_keywords.
9679
9680         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9681         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9682
9683 2001-01-17  Martin Buchholz <martin@xemacs.org>
9684
9685         * XEmacs 21.2.41 "Polyhymnia" is released.
9686
9687 2001-01-16  Didier Verna  <didier@xemacs.org>
9688
9689         * glyphs.c (image_instantiate): don't use fallbacks when
9690         instantiating a face's background pixmap by inheritance.
9691
9692 2001-01-14  Mike Sperber <mike@xemacs.org>
9693
9694         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9695         Conditionalize accordingly.
9696
9697 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9698
9699         * dumper.c (pdump_file_get): Fix a compiler warning.
9700
9701 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9702
9703         Make Purify happy when pdumping.
9704         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9705         iniitalizing all bits of new lisp object memory.
9706         * symbols.c (Fmake_local_variable): Likewise.
9707         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9708         * symbols.c (Fdefvaralias): Likewise.
9709         * mule-charset.c (vars_of_mule_charset): Likewise.
9710
9711 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9712         Add the `-nd' flag when running pre-dump operations under the debugger.
9713         * .dbxrc (run-temacs): Add `-nd'.
9714         * .dbxrc (update-elc): Likewise.
9715         * .dbxrc (dump-temacs): Likewise.
9716         * .gdbinit (run-temacs): Likewise.
9717         * .gdbinit (check-temacs): Likewise.
9718         * .gdbinit (update-elc): Likewise.
9719         * .gdbinit (dump-temacs): Likewise.
9720
9721 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9722
9723         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9724         export OBJECT_MODE=64
9725         configure --pdump --use-union-type=no
9726         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9727         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9728
9729         * miscplay.c (sndcnv8U_2mono):
9730         Avoid two uses of `++' in the same expression.
9731         Suppresses a GCC warning.
9732
9733 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9734
9735         Make sure future compilers don't miscompile alloc.c.
9736         * alloc.c:
9737         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9738         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9739
9740 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9741
9742         * dumper.c: A little post-pdump-rename comment fixup.
9743
9744 2001-01-09  Jerry James  <james@eecs.ku.edu>
9745
9746         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9747
9748 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9749
9750         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9751         script:
9752         #!/bin/sh
9753         replace_symbol () {
9754           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9755         }
9756
9757         replace_symbol pdump_wire_lists pdump_weak_object_chains
9758         replace_symbol pdump_wire_list dump_add_weak_object_chain
9759
9760         replace_symbol pdump_wires pdump_root_objects
9761         replace_symbol pdump_wire dump_add_root_object
9762
9763         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9764         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9765
9766         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9767         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9768         replace_symbol dumpstructinfo pdump_root_struct_ptr
9769         replace_symbol dumpstruct dump_add_root_struct_ptr
9770
9771         replace_symbol dumpopaque dump_add_opaque
9772         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9773         replace_symbol dumpopaqueinfos pdump_opaques
9774         replace_symbol dumpopaqueinfo pdump_opaque
9775
9776         replace_symbol nb_structdump nb_root_struct_ptrs
9777         replace_symbol nb_opaquedump nb_opaques
9778
9779         replace_symbol align_table pdump_align_table
9780         replace_symbol dump_header pdump_header
9781
9782         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9783         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9784
9785
9786 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9787
9788         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9789         optimizing bytecount_to_charcount().
9790
9791 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9792
9793         * config.h.in:
9794         (HAVE_DLFCN_H): Removed.
9795         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9796
9797 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9798
9799         Portable dumper maintainability improvements.
9800         * alloc.c (staticpro):
9801         * alloc.c (staticpro_nodump):
9802         * alloc.c (garbage_collect_1):
9803         * alloc.c (reinit_alloc_once_early):
9804         * alloc.c (init_alloc_once_early):
9805         * alloc.c: Move dumper functions to alloc.c.
9806         * dumper.c (pdump_backtrace):
9807         * dumper.c (pdump_dump_structs):
9808         * dumper.c (pdump_dump_opaques):
9809         * dumper.c (pdump_dump_rtables):
9810         * dumper.c (pdump_dump_wired):
9811         * dumper.c (pdump):
9812         * dumper.c (pdump_load_check):
9813         * dumper.c (pdump_load_finish):
9814         * dumper.c (pdump_file_unmap):
9815         * dumper.c (pdump_file_get):
9816         * dumper.c (pdump_resource_free):
9817         * dumper.c (pdump_resource_get):
9818         * dumper.c (pdump_file_free):
9819         * dumper.c (pdump_file_try):
9820         * dumper.c (pdump_load):
9821         Remove fixed size limits on staticpro(), staticpro_nodump(),
9822         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9823         Remove custom code for dumping lrecord_implementations_table - use
9824         dumpopaque instead.
9825         Remove (most of the) custom code for dumping staticpros - dump it
9826         like any other dynarr.
9827
9828         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9829         * dumper.c: Moved functions from alloc.c.
9830         * alloc.c (dumpstruct): Moved to dumper.c.
9831         * alloc.c (dumpopaque): Likewise.
9832         * alloc.c (pdump_wire): Likewise.
9833         * alloc.c (pdump_wire_list): Likewise.
9834
9835         * lisp.h (Dynarr_sizeof): New.
9836         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9837         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9838         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9839
9840         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9841         * lisp.h (dumpopaque): ditto.
9842         * lisp.h (pdump_wire): ditto.
9843         * lisp.h (pdump_wire_list): ditto.
9844
9845 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9846
9847         * make-src-depend (PrintPatternDeps):
9848         Use `sort' to make output independent of perl version.
9849
9850 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9851
9852         Port to Netbsd 1.5.
9853         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9854         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9855
9856 2001-01-03  Didier Verna  <didier@xemacs.org>
9857
9858         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9859         that `focus_frame' is alive before thinking of calling
9860         `redisplay_redraw_cursor' on it.
9861
9862 2001-01-08  Martin Buchholz <martin@xemacs.org>
9863
9864         * XEmacs 21.2.40 is released.
9865
9866 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9867
9868         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9869
9870 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9871
9872         * alloc.c (dbg_valmask): Make const.
9873         * alloc.c (dbg_typemask): Make const.
9874         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9875         * alloc.c (dbg_valbits): Make const.
9876         * alloc.c (dbg_gctypebits): Make const.
9877
9878 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9879
9880         * redisplay-x.c (x_bevel_area):
9881         redisplay.h (struct rune):
9882         Typo fixes in comments.
9883
9884 2001-01-05  Andy Piper  <andy@xemacs.org>
9885
9886         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9887         adjustment.
9888
9889         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9890
9891 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9892
9893         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9894
9895         * mule-ccl.c (stack_idx_of_map_multiple):
9896         Non const global data must not be initialized!
9897         Found by MIYASHITA Hisashi.
9898
9899 2001-01-02  Andy Piper  <andy@xemacs.org>
9900
9901         * frame.c (change_frame_size): make sure frame size is always
9902         marked as changed.
9903
9904         * glyphs.c (image_instance_layout): minor code reuse.
9905
9906         * window.c (Fcurrent_window_configuration): revert previous
9907         change.
9908
9909 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9910
9911         * glyphs.h:
9912         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9913
9914 2000-12-31  Andy Piper  <andy@xemacs.org>
9915
9916         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9917         when widget gets unmapped.
9918
9919         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9920         function. Make sure widgets losing focus don't just drop it.
9921         (handle_focus_event_1): record the widget with focus.
9922
9923 2000-12-31  Andy Piper  <andy@xemacs.org>
9924
9925         * window.c (allocate_window): use
9926         make_image_instance_cache_hash_table.
9927         (make_dummy_parent): ditto.
9928         (Fset_window_configuration): ditto.
9929
9930         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9931
9932         * glyphs.c (process_image_string_instantiator): use
9933         INSTANTIATOR_TYPE.
9934         (get_image_instantiator_governing_domain): ditto.
9935         (normalize_image_instantiator): ditto.
9936         (instantiate_image_instantiator): ditto.
9937         (make_image_instance_1): ditto.
9938         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9939         (instantiator_eq_equal): new function for use with instance hash
9940         tables.
9941         (instantiator_eq_hash): ditto.
9942         (make_image_instance_cache_hash_table): create a suitable hash
9943         table for storing image instances.
9944
9945         * elhash.h (hash_table_weakness): new internal weakness type
9946         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9947         declare new functions.
9948
9949         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9950         another weakness type for glyphs.
9951         (make_standard_lisp_hash_table): new function split out from
9952         make_general_lisp_hash_table.
9953         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9954         (hash_table_instantiate): ditto.
9955         (Fmake_hash_table): ditto.
9956
9957 2000-12-31  Martin Buchholz <martin@xemacs.org>
9958
9959         * XEmacs 21.2.39 is released.
9960
9961 2000-12-29  Andy Piper  <andy@xemacs.org>
9962
9963         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9964
9965         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9966         the frame has changed so that we pick up geometry changes such as
9967         menubar visibility.
9968
9969 2000-12-28  Andy Piper  <andy@xemacs.org>
9970
9971         * lastfile.c (my_ebss): make a char array so we can pad the
9972         bss. Fixes cygwin unexec.
9973
9974         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9975
9976 2000-12-26  Andy Piper  <andy@xemacs.org>
9977
9978         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9979         comments and try and be more precise about a non-/SIGIO world.
9980         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9981         SIGIO.
9982
9983         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9984         we don't normalize to zero width or height.
9985
9986 2000-12-24  Andy Piper  <andy@xemacs.org>
9987
9988         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9989
9990 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9991
9992         * s/sco5.h: SCO 5 has pty support.
9993
9994 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9995
9996         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9997         input-method-xlib.c contains whole contents of input-method-xfs.c,
9998         so we can use input-method-xlib.c's code for USE_XFONTSET
9999         using #ifdefs.
10000         * input-method-xfs.c: removed.
10001
10002 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
10003
10004         * file-coding.h (enum coding_category_type): reorder enumerators to
10005         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
10006         (now one greater than largest real coding_category_type enumerator).
10007         * file-coding.c (coding_category_symbol, coding_category_by_priority,
10008         coding_category_system, fcd_descriptihon_1, decode_coding_category,
10009         Fcoding_category_list, Fset_coding_priority_list,
10010         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
10011         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
10012
10013 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10014
10015         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
10016         * redisplay-output.c (redisplay_output_window): Clear top of window
10017         when face is changed.
10018         * redisplay-x.c (x_redraw_exposed_window): Call
10019         redisplay_clear_top_of_window.
10020         * redisplay.h: Publish redisplay_clear_top_of_window.
10021
10022 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10023
10024         * buffer.c (Fkill_buffer): Map over all devices.
10025         * window.c (window_loop): Remove UNSHOW_BUFFER code.
10026         (list_windows): New function.
10027         (list_all_windows): Ditto.
10028         (Freplace_buffer_in_windows): Use them.
10029
10030 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
10031
10032         * database.c (berkdb_subtype): Recognize new subtype `queue'.
10033         (Fopen_database): Use `db_create' instead of `db_open'.
10034         (syms_of_database): Initialize Qqueue.
10035
10036 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10037
10038         * buffer.c (common_init_complex_vars_of_buffer): Initialize
10039         buffer_local_face_property.
10040         * buffer.h (struct buffer): New member buffer_local_face_property.
10041         * window.c (Fset_window_buffer):  Mark window's face as changed
10042         when buffer has buffer local face.
10043         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
10044         * objects.c (color_after_change): Set buffer_local_face_property
10045         when locale of face specifier is buffer.
10046         * objects.c (font_after_change): Ditto.
10047         * objects.c (face_boolean_after_change): Ditto.
10048         * glyphs.c (image_after_change): Ditto.
10049
10050 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10051
10052         * nt.c (mswindows_fstat): Report file permissions, volume serial
10053         number, etc. Code adapted from FSF Emacs 20.7.
10054
10055 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10056
10057         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
10058         of stat when we don't have symbolic links, to make sure
10059         mswindows_stat is called on mswindows.
10060
10061 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
10062
10063         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
10064
10065 2000-12-12  Martin Buchholz  <martin@xemacs.org>
10066
10067         * doprnt.c (emacs_doprnt_1): More printing fixes.
10068         Make printing of numbers compatible with libc and FSF Emacs.
10069         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
10070         Use the system printf to do most of the hard work of formatting,
10071         instead of doprnt_1().
10072         Calculate memory to allocate for format string.
10073         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
10074         (doprnt_1): Cleaner code and documentation.
10075
10076 2000-12-01  Jerry James  <james@eecs.ukans.edu>
10077
10078         * Makefile.in.in: Use the loop variable to install headers.
10079
10080 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10081
10082         * window.c (Fsplit_window): Don't invalidate face cache.
10083
10084 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10085
10086         * minibuf.c (Fall_completions): Undo the previous change
10087         which removed checking elements start with space.
10088
10089 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10090
10091         * mule-canna.c: Didier suppression.
10092
10093 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10094
10095         * mule-canna.c: rename static unsigned char buf[] to key_buffer
10096         (warning suppression).  Add English comment translations.
10097
10098 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10099
10100         * unexelfsgi.c (unexec): Better test for mmap failure.
10101
10102 2000-12-05  Martin Buchholz <martin@xemacs.org>
10103
10104         * XEmacs 21.2.38 is released.
10105
10106 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10107
10108         * redisplay.c (bar-cursor): Make a user variable.
10109
10110         * symsinit.h: Add init_postgresql_from_environment.
10111
10112 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10113
10114         * regex.c: Convert to clean C.
10115
10116 2000-12-05  Dan Holmsand  <dan@eyebee.com>
10117
10118         * realpath.c:
10119         Don't #include sysfile.h. Revert to duplicating PATH_MAX
10120         initialization.
10121         (sys_readlink): renamed to system_readlink to avoid conflict with
10122         the other sys_readlink.
10123
10124 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
10125
10126         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
10127
10128 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
10129
10130         * postgresql.c (init_postgresql_from_environment): new function.
10131         (vars_of_postgresql): Move code initializing Lisp variables out and
10132         into init_postgresql_from_environment.
10133         emacs.c (main_1): Call init_postgresql_from_environment if and only
10134         if running a dumped XEmacs.
10135
10136 2000-08-31  Dan Holmsand  <dan@eyebee.com>
10137
10138         * buffer.c: Make find-file-compare-truenames default to true on
10139         windows.
10140
10141         * realpath.c (win32_abs_start):
10142         (cygwin_readlink):
10143         (win32_readlink): New functions.
10144         (xrealpath): Return really real filenames on windows.
10145
10146         * fileio.c (Ffile_truename): Make file-truename work on windows.
10147
10148 2000-11-29  Didier Verna  <didier@xemacs.org>
10149
10150         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
10151         * faces.c (update_face_cachel_data): use it.
10152         * faces.c (add_face_cachel): use it. Complete background pixmap
10153         frobbing in face cache if `update_face_cachel_data' has not done so.
10154
10155 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
10156
10157         * search.c (string_match_1): Don't set last_thing_searched
10158         when search failed.
10159
10160 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
10161
10162         * buffer.c: Include casetab.h
10163         (common_init_complex_vars_of_buffer): Use new case-table object.
10164         * buffer.h: Include casetab.h
10165         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
10166         (DOWNCASE_TABLE_OF): Ditto.
10167         * bufslots.h: Remove char-tables and add case-table.
10168         * casetab.c: Include casetab.h
10169         (CASE_TABLE_P): Removed.
10170         (mark_case_table): New function.
10171         (allocate_case_table): New function.
10172         (Fcase_table_p): Use new case-table.
10173         (case_table_char): New function.
10174         (Fget_case_table): Ditto.
10175         (Fput_case_table): Ditto.
10176         (Fput_case_table_pair): Ditto.
10177         (Fcopy_case_table): Ditto.
10178         (Fcurrent_case_table): Return case-table.
10179         (Fstandard_case_table): Return case-table.
10180         (Fset_case_table): Fix doc-string.
10181         (set_case_table): Use case-table
10182         (syms_of_casetab): DEFSUBR new functions.
10183         (complex_vars_of_casetab): Set up standard case-table.
10184         * casetab.h: New file.
10185         * editfns.c: Include casetab.h
10186         (Fcompare_buffer_substrings): Use case-table.
10187         * inline.c: Include casetab.h
10188         * lisp.h: Remove bogus extern.
10189         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
10190         * search.c: Include casetab.h
10191         (TRANSLATE_ASCII): Removed.
10192         (TRANSLATE): Unconditionally translate character.
10193         (looking_at_1): Use case-table.
10194         (string_match_1): Ditto.
10195         (fast_string_match): Ditto.
10196         (search_command): Ditto.
10197         (search_buffer): Separate boyer_moore.  Check whether
10198         boyer_moore is possible.
10199         (simple_search): New function.
10200         (boyer_moore): Separated from search_buffer. Translate char.
10201
10202 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10203
10204         * regex.c (RE_TR_ASCII): Removed.
10205         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
10206         (PATFETCH): Call PATFETCH_RAW.
10207         (PATFETCH_RAW): Fetch Emchar.
10208         (PATUNFETCH): Decrement charptr.
10209         (GET_BUFFER_SPACE): Rename b to buf_end.
10210         (BUF_PUSH): Ditto.
10211         (BUF_PUSH_2): Ditto.
10212         (BUF_PUSH_3): Ditto.
10213         (EXTEND_BUFFER): Ditto.
10214         (SET_LIST_BIT): Ditto.
10215         (regex_compile): Ditto.  Translate non ASCII char.
10216         (compile_range): Ditto.
10217         (re_search_2): Ditto.
10218         (re_match_2_internal): Compare Emchar.
10219         (bcmp_translate): Ditto.
10220
10221 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
10222
10223         * lisp.h (basic char/int typedefs):  comment improvement.
10224
10225 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
10226
10227         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
10228         unstomp inhibit_site_lisp.  Improve comments.
10229
10230 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
10231
10232         * mule-charset.c (Fcharset_property):  improve type checking, comments.
10233
10234 2000-11-28  Andy Piper  <andy@xemacs.org>
10235
10236         * redisplay-output.c (redisplay_output_subwindow): make sure we do
10237         clipped display for windows in the gutter also.
10238         (redisplay_display_boxes_in_window_p): change semantics of return
10239         codes to be more intuitive.
10240
10241         * gutter.h: declare display_boxes_in_gutter_p.
10242
10243         * gutter.c (display_boxes_in_gutter_p): new function for
10244         redisplay.
10245
10246 2000-11-22  Andy Piper  <andy@xemacs.org>
10247
10248         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10249         autodetect domain.
10250
10251 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10252
10253         * callproc.c (Fold_call_process_internal):
10254         * gpm.c (Freceive_gpm_event):
10255         (tty_get_foreign_selection): Might be just warning supression.
10256         * fileio.c (Fwrite_region_internal):
10257         (Fset_visited_file_modtime):
10258         * keymap.c (event_matches_key_specifier_p):
10259         Initialize GCPROed variable.
10260
10261         * menubar-x.c (command_builder_find_menu_accelerator):
10262         Initialize before use.
10263
10264 2000-11-23  Andy Piper  <andy@xemacs.org>
10265
10266         * unexcw.c (unexec): make the resulting executable executable.
10267
10268 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10269
10270         * doc.c (get_doc_string):
10271         Use size_t, not int, for result of XSTRING_LENGTH.
10272
10273         * cmds.c (Fdelete_char):
10274         * cmds.c (Fpoint_at_eol):
10275         * cmds.c (Fself_insert_command):
10276         Use EMACS_INT, not int, for result of XINT.
10277         Someday, someone will want to insert more than 2**31 identical characters.
10278
10279         * cmds.c (Fdelete_char):
10280         * cmds.c (Fdelete_backward_char):
10281         * syntax.c (Fforward_word):
10282         * syntax.c (Fforward_comment):
10283         Make COUNT argument optional, for consistency with forward-char et al.
10284
10285 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10286
10287         * lisp.h:
10288         * print.c (long_to_string):
10289         Return a useful value: the pointer at end of data written.
10290
10291         * doprnt.c:
10292         Use `static const char * const' for constant strings.
10293         (union printf_arg): Delete `i', `ui' members.
10294         (get_doprnt_args):
10295         (emacs_doprnt_1):
10296         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10297         Do all printf-ing via the `l' specifier.
10298         Use EMACS_INT instead of int.
10299         Optimize.
10300
10301 2000-11-20  Didier Verna  <didier@xemacs.org>
10302
10303         * faces.c (update_face_cachel_data): don't frob the background
10304         pixmap when the window is being created. The face is needed but
10305         does not exist yet.
10306
10307 2000-11-20  Andy Piper  <andy@xemacs.org>
10308
10309         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10310         messing with a debug environment.
10311
10312 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10313
10314         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10315
10316 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10317
10318         * casetab.c (Fcase_table_p): Fix compile error and crash.
10319
10320 2000-11-18  Philip Aston  <philipa@mail.com>
10321
10322         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10323
10324 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10325
10326         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10327         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10328
10329 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10330
10331         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10332         * unexelf.c: Use HAVE_ELF_H.
10333         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10334         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10335         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10336         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10337         for testing.
10338         So this is an unexelfsgi.c from a different line of development.
10339
10340 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10341
10342         * regex.c (RE_TR_ASCII): New function.
10343         (RE_TRANSLATE): Call it.
10344
10345 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10346
10347         * buffer.h (TRT_TABLE_OF): Remove assert.
10348         (IN_TRT_TABLE_DOMAIN): Removed.
10349
10350 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10351
10352         * free-hook.c (log_gcpro):
10353         (show_gcprohist): Add support for GCPRO5.
10354
10355 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10356
10357         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10358
10359 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10360
10361         * symeval.h: Declare flush_all_buffer_local_cache.
10362
10363         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10364         (flush_buffer_local_cache): Added.
10365         (flush_all_buffer_local_cache): Added.
10366
10367         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10368
10369         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10370         (pdump_dump_data): Ditto.
10371         (pdump_reloc_one): Ditto.
10372         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10373         before dumping.
10374
10375
10376 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10377
10378         * buffer.c: Remove if 0'ed entry.
10379         * buffer.h: Rewrite TRT to use char-table.
10380         * bufslots.h: Remove mirror tables.
10381         * casetab.c: Remove mirror tables.
10382         (CASE_TABLE_P): New macro.
10383         (Fcase_table_p): Element of a case table is string or char-table.
10384         (make_mirror_trt_table): Removed.
10385         (set_case_table): Setup char-table from strings for backward
10386         compatibility.
10387         * dired.c (Fdirectory_files):
10388         * dired-msw.c: (mswindows_get_files):
10389         * lisp.h: Change prototype of re_pattern_buffer.
10390         * regex.c: (RE_TRANSLATE): New macro.
10391         (TRANSLATE_P): Ditto.
10392         Change translate to type RE_TRANSLATE_TYPE.
10393         * regex.h: Define RE_TRANSLATE_TYPE
10394         * search.c (TRANSLATE): New macro.
10395         (TRANSLATE_ASCII): New macro.
10396         Translate table is changed to Lisp_Object.
10397         (signal_failure): Inhibit return.
10398
10399 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10400
10401         * device-msw.c:
10402         * eldap.c:
10403         * event-Xt.c:
10404         * event-stream.c:
10405         * print.c:
10406         Do UNGCPRO before return.
10407
10408 2000-11-14  Martin Buchholz <martin@xemacs.org>
10409
10410         * XEmacs 21.2.37 is released.
10411
10412 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10413
10414         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10415         Add comments about discarded return value.
10416
10417 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10418
10419         * callint.c:
10420         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10421
10422 2000-10-27  Andy Piper  <andy@xemacs.org>
10423
10424         * gutter.c (Fset_default_gutter_position): default left and right
10425         gutters to visible.
10426         (calculate_gutter_size): calculate resonable heuristic for left
10427         and right gutter sizes.
10428         (specifier_vars_of_gutter): change left and right gutter sizes to
10429         autodetect.
10430         (calculate_gutter_size_from_display_lines): new function.
10431         (output_gutter): check for resizing on left and right gutters.
10432         (clear_gutter): don't special case top and left gutters.
10433         (specifier_vars_of_gutter): use new signature for
10434         set_specifier_caching.
10435
10436         * glyphs-x.c (x_redisplay_widget): spelling fix.
10437         * glyphs.c (specifier_vars_of_glyphs):
10438         * menubar.c (specifier_vars_of_menubar):
10439         * redisplay.c (specifier_vars_of_redisplay):
10440         * toolbar.c (specifier_vars_of_toolbar):
10441         * window.c (specifier_vars_of_window):
10442         * scrollbar.c (specifier_vars_of_scrollbar):
10443         (complex_vars_of_scrollbar): use new signature for
10444         set_specifier_caching.
10445
10446         * specifier.c (set_specifier_caching): include recompute flag.
10447         (recompute_one_cached_specifier_in_window): always recompute if
10448         flag set.
10449         (recompute_one_cached_specifier_in_frame): ditto.
10450
10451         * specifier.h (struct specifier_caching): add recompute flag.
10452
10453 2000-10-24  Andy Piper  <andy@xemacs.org>
10454
10455         * unexcw.c (copy_executable_and_dump_data_section): add new
10456         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10457         5.0 happy.
10458
10459 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10460
10461         * console-x.h (x_device): New member modifier_release_time.
10462         * event-Xt.c (x_handle_sticky_modifiers):
10463         Bound interval modifier keys are sticky.
10464         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10465         * events.h: extern it.
10466
10467 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10468
10469         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10470
10471 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10472
10473         * event-stream.c (execute_command_event): Preserve current_events
10474         and the like when event is misc-user-event.
10475         Inhibit quit during the call to maybe_echo_keys.
10476
10477 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10478
10479         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10480         symlink when buffer is killed.
10481         (inhibit_clash_detection): New variable.
10482
10483 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10484
10485         * console.c (Fset_input_method): Trigger redisplay on tty.
10486
10487 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10488
10489         * process.c (Fprocess_status): Revert to previous behavior:
10490         (process-status "nosuchprocess") ==> nil
10491
10492 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10493
10494         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10495         Work around another GCC 2.95.2 optimizer bug.
10496
10497 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10498
10499         * process.c (Fget_process): Use LIST_LOOP_2.
10500         (kill_buffer_processes): Use LIST_LOOP_2.
10501
10502         * minibuf.c (Fall_completions):
10503         Delete old non-functional code for FSF fourth argument.
10504
10505         * frame.c (frame_matches_frame_spec):
10506         Renamed from `frame_matches_frametype'.  Update all callers.
10507         (device_matches_device_spec):
10508         Renamed from 'device_matches_console_spec'.  Update all callers.
10509
10510         * doc.c (Fsubstitute_command_keys):
10511         Remove buffer overflow crash.  Small code cleanups.
10512
10513         * casetab.c (check_case_table): Simpler code.
10514
10515         * window.c (Freplace_buffer_in_windows):
10516         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10517         (and similar implementation) as Fdelete_windows_on.
10518         Update all callers.
10519
10520         * alloc.c (Fmake_list):
10521         * alloc.c (make_vector):
10522         * alloc.c (Fmake_vector):
10523         * alloc.c (make_bit_vector):
10524         * alloc.c (Fmake_bit_vector):
10525         * alloc.c (Fbit_vector):
10526         * alloc.c (Fmake_string):
10527         * alloc.c (Fpurecopy):
10528         * alloc.c (Fmemory_limit):
10529         * buffer.c:
10530         * buffer.c (Fget_buffer):
10531         * buffer.c (Fkill_buffer):
10532         * buffer.c (complex_vars_of_buffer):
10533         * bytecode.c (Fcompiled_function_stack_depth):
10534         * callint.c (Fprefix_numeric_value):
10535         * event-stream.c:
10536         * event-stream.c (Fread_key_sequence):
10537         * casetab.c:
10538         * casetab.c (Fcase_table_p):
10539         * casetab.c (check_case_table):
10540         * casetab.c (Fset_case_table):
10541         * casetab.c (Fset_standard_case_table):
10542         * chartab.c:
10543         * chartab.c (Fchar_table_type):
10544         * chartab.c (Freset_char_table):
10545         * chartab.c (Fget_char_table):
10546         * chartab.c (Fget_range_char_table):
10547         * chartab.c (Fput_char_table):
10548         * chartab.c (Fmap_char_table):
10549         * chartab.c (Fcategory_table_p):
10550         * chartab.c (Fcheck_category_at):
10551         * chartab.c (Fchar_in_category_p):
10552         * chartab.c (Fcategory_table):
10553         * chartab.c (Fcopy_category_table):
10554         * chartab.c (Fset_category_table):
10555         * chartab.c (Fcategory_designator_p):
10556         * chartab.c (Fcategory_table_value_p):
10557         * cmds.c (Fdelete_char):
10558         * cmds.c (Fdelete_backward_char):
10559         * cmds.c (Fself_insert_command):
10560         * cmds.c (Fself_insert_internal):
10561         * console.c (Fvalid_console_type_p):
10562         * console.c (Fcdfw_console):
10563         * console.c (Fconsole_type):
10564         * console.c (Fconsole_name):
10565         * console.c (Fconsole_device_list):
10566         * console.c (Fconsole_on_window_system_p):
10567         * data.c:
10568         * data.c (Feq):
10569         * data.c (Fold_eq):
10570         * data.c (Fsubr_interactive):
10571         * data.c (Fchar_to_int):
10572         * data.c (Fint_to_char):
10573         * data.c (Fsetcar):
10574         * data.c (Fsetcdr):
10575         * data.c (Fnumber_to_string):
10576         * data.c (Fstring_to_number):
10577         * data.c (Frem):
10578         * database.c (mark_database):
10579         * database.c (finalize_database):
10580         * database.c (Fdatabase_live_p):
10581         * database.c (Fdatabasep):
10582         * device-x.c (Fx_get_resource):
10583         * device.c (Fdfw_device):
10584         * dired.c:
10585         * dired.c (Ffile_name_completion):
10586         * dired.c (Ffile_name_all_completions):
10587         * dired.c (Fuser_name_completion):
10588         * dired.c (Fuser_name_completion_1):
10589         * dired.c (Fuser_name_all_completions):
10590         * doc.c (Fdocumentation):
10591         * doc.c (Fdocumentation_property):
10592         * doc.c (Fsubstitute_command_keys):
10593         * editfns.c:
10594         * editfns.c (Fchar_to_string):
10595         * editfns.c (Fstring_to_char):
10596         * editfns.c (Ftemp_directory):
10597         * editfns.c (Finsert_char):
10598         * editfns.c (Fbuffer_substring_no_properties):
10599         * editfns.c (Fnarrow_to_region):
10600         * editfns.c (Fchar_equal):
10601         * editfns.c (Fchar_Equal):
10602         * editfns.c (Ftranspose_regions):
10603         * emacs.c (Fdump_emacs):
10604         * eval.c (Fthrow):
10605         * eval.c (Fcommand_execute):
10606         * eval.c (Fautoload):
10607         * eval.c (Fbacktrace):
10608         * eval.c (Fbacktrace_frame):
10609         * events.c:
10610         * events.c (Fcopy_event):
10611         * events.c (Fcharacter_to_event):
10612         * events.c (Fevent_button):
10613         * events.c (Fevent_process):
10614         * extents.c:
10615         * extents.c (Fnext_extent_change):
10616         * extents.c (Fextent_property):
10617         * faces.c (Ffacep):
10618         * faces.c (Fmake_face):
10619         * file-coding.c:
10620         * file-coding.c (Fencode_shift_jis_char):
10621         * file-coding.c (Fencode_big5_char):
10622         * fileio.c (Ffile_name_directory):
10623         * fileio.c (Ffile_name_nondirectory):
10624         * fileio.c (Ffile_name_as_directory):
10625         * fileio.c (Fdirectory_file_name):
10626         * fileio.c (Ffile_truename):
10627         * fileio.c (Fsubstitute_in_file_name):
10628         * fileio.c (Ffile_modes):
10629         * fileio.c (Fset_file_modes):
10630         * fileio.c (Fset_default_file_modes):
10631         * fileio.c (Fverify_visited_file_modtime):
10632         * floatfns.c (Facos):
10633         * floatfns.c (Fasin):
10634         * floatfns.c (Fatan):
10635         * floatfns.c (Fcos):
10636         * floatfns.c (Fsin):
10637         * floatfns.c (Ftan):
10638         * floatfns.c (Fbessel_j0):
10639         * floatfns.c (Fbessel_j1):
10640         * floatfns.c (Fbessel_jn):
10641         * floatfns.c (Fbessel_y0):
10642         * floatfns.c (Fbessel_y1):
10643         * floatfns.c (Fbessel_yn):
10644         * floatfns.c (Ferf):
10645         * floatfns.c (Ferfc):
10646         * floatfns.c (Flog_gamma):
10647         * floatfns.c (Fexp):
10648         * floatfns.c (Fexpt):
10649         * floatfns.c (Flog):
10650         * floatfns.c (Flog10):
10651         * floatfns.c (Fsqrt):
10652         * floatfns.c (Fcube_root):
10653         * floatfns.c (Facosh):
10654         * floatfns.c (Fasinh):
10655         * floatfns.c (Fatanh):
10656         * floatfns.c (Fcosh):
10657         * floatfns.c (Fsinh):
10658         * floatfns.c (Ftanh):
10659         * floatfns.c (Fabs):
10660         * floatfns.c (Ffloat):
10661         * floatfns.c (Flogb):
10662         * floatfns.c (Fceiling):
10663         * floatfns.c (Ffloor):
10664         * floatfns.c (Fround):
10665         * floatfns.c (Ftruncate):
10666         * floatfns.c (Ffceiling):
10667         * floatfns.c (Fffloor):
10668         * floatfns.c (Ffround):
10669         * floatfns.c (Fftruncate):
10670         * fns.c (Fstring_equal):
10671         * fns.c (Fstring_lessp):
10672         * fns.c (concat2):
10673         * fns.c (concat3):
10674         * fns.c (vconcat2):
10675         * fns.c (vconcat3):
10676         * fns.c (Fsubstring):
10677         * fns.c (Fassoc):
10678         * fns.c (Fold_assoc):
10679         * fns.c (assoc_no_quit):
10680         * fns.c (Fassq):
10681         * fns.c (Fold_assq):
10682         * fns.c (assq_no_quit):
10683         * fns.c (Frassoc):
10684         * fns.c (Fold_rassoc):
10685         * fns.c (Frassq):
10686         * fns.c (Fold_rassq):
10687         * fns.c (rassq_no_quit):
10688         * fns.c (Fremassoc):
10689         * fns.c (remassoc_no_quit):
10690         * fns.c (Fremassq):
10691         * fns.c (remassq_no_quit):
10692         * fns.c (Fremrassoc):
10693         * fns.c (Fremrassq):
10694         * fns.c (remrassq_no_quit):
10695         * fns.c (Fsort):
10696         * fns.c (Fplist_get):
10697         * fns.c (Fplist_put):
10698         * fns.c (Fplist_remprop):
10699         * fns.c (Fplist_member):
10700         * fns.c (Flax_plist_get):
10701         * fns.c (Flax_plist_put):
10702         * fns.c (Flax_plist_remprop):
10703         * fns.c (Flax_plist_member):
10704         * fns.c (Fequal):
10705         * fns.c (Fold_equal):
10706         * fns.c (Frequire):
10707         * fns.c (Fbase64_encode_region):
10708         * fns.c (Fbase64_encode_string):
10709         * fns.c (Fbase64_decode_region):
10710         * frame.c:
10711         * frame.c (frame_matches_frame_spec):
10712         * frame.c (device_matches_device_spec):
10713         * frame.c (next_frame):
10714         * frame.c (previous_frame):
10715         * frame.c (Fnext_frame):
10716         * frame.c (Fprevious_frame):
10717         * frame.c (Fframe_property):
10718         * frame.c (Fset_frame_height):
10719         * frame.c (Fset_frame_size):
10720         * frame.h:
10721         * glyphs.c:
10722         * glyphs.c (if):
10723         * glyphs.c (decode_error_behavior_flag):
10724         * glyphs.c (Fmake_image_instance):
10725         * indent.c (Findent_to):
10726         * intl.c (Fignore_defer_gettext):
10727         * keymap.c (Fkeymapp):
10728         * keymap.c (Flookup_key):
10729         * lread.c:
10730         * lread.c (Fload_internal):
10731         * lread.c (Feval_buffer):
10732         * lread.c (Feval_region):
10733         * macros.c (Fexecute_kbd_macro):
10734         * marker.c (set_marker_internal):
10735         * marker.c (Fset_marker):
10736         * marker.c (set_marker_restricted):
10737         * marker.c (Fcopy_marker):
10738         * marker.c (noseeum_copy_marker):
10739         * menubar.c:
10740         * menubar.c (Fpopup_menu):
10741         * minibuf.c:
10742         * mule-charset.c (Fcharset_name):
10743         * mule-charset.c (Fchar_charset):
10744         * mule-charset.c (Fchar_octet):
10745         * mule-charset.c (Fsplit_char):
10746         * mule-wnnfns.c (Fwnn_open):
10747         * mule-wnnfns.c (Fwnn_dict_comment):
10748         * mule-wnnfns.c (Fwnn_quit_henkan):
10749         * mule-wnnfns.c (Fwnn_word_toroku):
10750         * mule-wnnfns.c (Fwnn_word_sakujo):
10751         * mule-wnnfns.c (Fwnn_word_use):
10752         * mule-wnnfns.c (Fwnn_hindo_set):
10753         * objects.c:
10754         * objects.c (Fmake_color_instance):
10755         * objects.c (Fmake_font_instance):
10756         * print.c (Fwrite_char):
10757         * process.c:
10758         * process.c (mark_process):
10759         * process.c (print_process):
10760         * process.c (get_process_from_usid):
10761         * process.c (Fprocessp):
10762         * process.c (Fprocess_live_p):
10763         * process.c (Fget_process):
10764         * process.c (Fget_buffer_process):
10765         * process.c (get_process):
10766         * process.c (Fprocess_id):
10767         * process.c (Fprocess_name):
10768         * process.c (Fprocess_command):
10769         * process.c (init_process_io_handles):
10770         * process.c (start_process_unwind):
10771         * process.c (Fstart_process_internal):
10772         * process.c (Fopen_multicast_group_internal):
10773         * process.c (Fset_process_window_size):
10774         * process.c (read_process_output):
10775         * process.c (send_process):
10776         * process.c (Fprocess_tty_name):
10777         * process.c (Fset_process_buffer):
10778         * process.c (Fprocess_buffer):
10779         * process.c (Fprocess_mark):
10780         * process.c (set_process_filter):
10781         * process.c (Fset_process_filter):
10782         * process.c (Fprocess_filter):
10783         * process.c (Fprocess_send_region):
10784         * process.c (Fprocess_send_string):
10785         * process.c (exec_sentinel):
10786         * process.c (Fset_process_sentinel):
10787         * process.c (Fprocess_sentinel):
10788         * process.c (status_notify):
10789         * process.c (Fprocess_status):
10790         * process.c (Fprocess_exit_status):
10791         * process.c (process_send_signal):
10792         * process.c (Fprocess_send_eof):
10793         * process.c (deactivate_process):
10794         * process.c (remove_process):
10795         * process.c (Fdelete_process):
10796         * process.c (kill_buffer_processes):
10797         * process.c (Fprocess_kill_without_query):
10798         * process.c (Fprocess_kill_without_query_p):
10799         * rangetab.c:
10800         * rangetab.c (Fget_range_table):
10801         * rangetab.c (Fput_range_table):
10802         * rangetab.c (Fremove_range_table):
10803         * rangetab.c (Fclear_range_table):
10804         * search.c:
10805         * search.c (Fskip_chars_forward):
10806         * search.c (Fskip_chars_backward):
10807         * search.c (Fskip_syntax_forward):
10808         * search.c (Fskip_syntax_backward):
10809         * search.c (search_command):
10810         * search.c (Freplace_match):
10811         * search.c (Fregexp_quote):
10812         * select.c (Fown_selection_internal):
10813         * select.c (Fselection_owner_p):
10814         * select.c (Fselection_exists_p):
10815         * select.c (Fget_selection_internal):
10816         * specifier.c:
10817         * symbols.c:
10818         * symbols.c (Fintern):
10819         * symbols.c (Fintern_soft):
10820         * symbols.c (Funintern):
10821         * symbols.c (Fapropos_internal):
10822         * symbols.c (Fset_default):
10823         * syntax.c:
10824         * syntax.c (Fsyntax_table_p):
10825         * syntax.c (Fcopy_syntax_table):
10826         * syntax.c (Fset_syntax_table):
10827         * syntax.c (Fchar_syntax):
10828         * syntax.c (syntax_match):
10829         * syntax.c (Fmatching_paren):
10830         * syntax.c (Fforward_word):
10831         * syntax.c (scan_lists):
10832         * syntax.c (Fscan_lists):
10833         * syntax.c (Fscan_sexps):
10834         * syntax.c (Fparse_partial_sexp):
10835         * toolbar.c (Fcheck_toolbar_button_syntax):
10836         * tooltalk.doc:
10837         * window.c:
10838         * window.c (Fwindowp):
10839         * window.c (Fwindow_live_p):
10840         * window.c (Fwindow_point):
10841         * window.c (Fdelete_window):
10842         * window.c (Fnext_window):
10843         * window.c (Fprevious_window):
10844         * window.c (Fother_window):
10845         * window.c (window_loop):
10846         * window.c (Fget_lru_window):
10847         * window.c (Fsplit_window):
10848         * window.c (Fenlarge_window):
10849         * window.c (Fenlarge_window_pixels):
10850         * window.c (Fshrink_window):
10851         * window.c (Fshrink_window_pixels):
10852         * window.c (change_window_height):
10853         * window.c (Fwindow_configuration_p):
10854         * window.c (Fcurrent_window_configuration):
10855         * window.h:
10856         * casefiddle.c (casify_object):
10857         * casefiddle.c (Fupcase):
10858         * casefiddle.c (Fdowncase):
10859         * casefiddle.c (Fcapitalize):
10860         * casefiddle.c (Fupcase_initials):
10861         * casefiddle.c (casify_region_internal):
10862         * casefiddle.c (casify_region):
10863         * casefiddle.c (Fupcase_region):
10864         * casefiddle.c (Fdowncase_region):
10865         * casefiddle.c (Fcapitalize_region):
10866         * casefiddle.c (Fupcase_initials_region):
10867         * casefiddle.c (Fupcase_word):
10868         * casefiddle.c (Fdowncase_word):
10869         * casefiddle.c (Fcapitalize_word):
10870         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10871         Replace 0 with '\0' when working with bytes.
10872         Replace initial "(" with "\(" in docstrings.
10873
10874 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10875
10876         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10877
10878         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10879
10880 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10881
10882         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10883
10884 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10885
10886         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10887         correctly.
10888
10889 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10890
10891         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10892         (inhibit_auto_save_session): New variable.
10893         (vars_of_fileio): Declare and initialize them.
10894         * fileio.c (Fdo_auto_save): Don't create session file if
10895         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10896
10897 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10898
10899         * sgiplay.c (play_internal): C++ compilability.
10900         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10901         * callproc.c (Fold_call_process_internal):
10902         Remove unused vars `env', `first'.
10903         * scrollbar.c (update_scrollbar_instance):
10904         #### unused var `current_window'.
10905         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10906         etc. within #ifdef NOT_YET.
10907         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10908         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10909         * specifier.c (specifier_instance):
10910         #### unused var `tag'.
10911         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10912
10913 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10914
10915         * fns.c (Fbutlast):
10916         * fns.c (list_sort):
10917         * fns.c (Ffillarray):
10918         * fns.c (bytecode_nconc2):
10919         * fns.c (Fnconc):
10920         * fns.c (mapcar1):
10921         * fns.c (Fmapconcat):
10922         Be pedantically 64-bit correct.  For the time when someone will
10923         want to have a list with length > 2**32.
10924
10925         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10926         Work around MIPSpro compiler bug.
10927
10928         * process-unix.c (unix_kill_child_process): Add snarky comment.
10929         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10930
10931         * config.h.in: Oops, _getpt ==> _getpty
10932
10933 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10934
10935         * config.h.in:
10936         * regex.c:
10937         Use void*, not char*, as return type of alloca().
10938
10939         * alloc.c (free_marker): Side effect inside assert expression!
10940
10941 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10942
10943         * mule-charset.c (Fset_charset_ccl_program): To check
10944         if the given ccl program is valid, use setup_ccl_program()
10945         instead of CHECK_VECTOR().
10946         (Fmake_charset): Likewise.
10947
10948 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10949
10950         * faces.c (get_extent_fragment_face_cache_index):
10951         Fix cachel.merged_faces memory leak.
10952
10953 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10954
10955         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10956         Reset MSB of octets obtained by DECODE_SJIS
10957         because of the incompatibility with Emacs.
10958         (ccl_driver)<CCL_ENCODE_SJIS>:
10959         Set MSB of octets before passing them to
10960         ENCODE_SJIS because of the incompatibility
10961         with Emacs.
10962
10963 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10964
10965         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10966         (DECLARE_LRECORD): Undo the last change.
10967         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10968
10969 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10970
10971         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10972         the implementation to lrecord_implementations_table.
10973
10974 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10975
10976         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10977         initial value of `lrecord_type_##c_name' and
10978         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10979         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10980         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10981         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10982         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10983
10984 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10985
10986         * miscplay.c (sndcnv8S_2mono):
10987         (sndcnv2monounsigned):
10988         (sndcnvULaw_2linear):
10989         (sndcnv16swap):
10990         Remove implementation-defined behavior.
10991
10992 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10993
10994         * input-method-xlib.c: Warning suppression.
10995
10996 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10997
10998         * mule-ccl.c: Sync up with Emacs 21.0.90.
10999         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
11000         Do nothing.
11001         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
11002         Likewise.
11003         (ccl_driver[WriteMultibyteChar2]): Bug fix.
11004         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
11005         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
11006         leading char belongs to official 2-dimensional charset.
11007         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
11008         write the given character as is.  Otherwise,
11009         if it is a multibyte char, convert it by
11010         non_ascii_set_charptr_emchar, then write it.
11011         (CCL_WRITE_STRING): Likewise.
11012         (ccl_get_compiled_code): New function.
11013         (setup_ccl_program): When ccl_prog is invalid,
11014         return -1.
11015         (Fregister_code_conversion_map): New function.
11016         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
11017
11018         * mule-ccl.h: Sync up with Emacs 21.0.90.
11019         (Fregister_ccl_program): export it.
11020
11021         * redisplay-msw.c (separate_textual_runs):
11022         If ccl program is not valid, don't do ccl conversion.
11023
11024         * redisplay-x.c (separate_textual_runs): Ditto.
11025
11026         * file-coding.c (Fmake_coding_system):
11027         When type is ccl and value is vector, register it
11028         with a proper symbol.  And checks whether the
11029         given ccl program is valid.
11030         (mule_decode): When calling ccl_driver, if src indicates
11031         NULL pointer, set an empty string instead.
11032         (mule_encode): Likewise.
11033
11034 2000-10-11  Martin Buchholz  <martin@xemacs.org>
11035
11036         The following large batch of changes gets us back to a state of
11037         C++ compilability.  Extbyte is now a char, which means that
11038         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
11039
11040         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
11041
11042         * sound.c (Fplay_sound): Type correctness.
11043
11044         * select-x.c (hack_motif_clipboard_selection): Type correctness.
11045         (x_get_window_property): Type correctness.
11046         (receive_incremental_selection): unsigned char ==> Extbyte
11047         (selection_data_to_lisp_data): unsigned char ==> Extbyte
11048         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
11049         (Fx_store_cutbuffer_internal): Type correctness.
11050
11051         * process-unix.c (try_to_initialize_subtty): Type correctness.
11052
11053         * objects-x.c (x_print_color_instance): Type correctness.
11054         (x_print_font_instance): Type correctness.
11055         (x_list_fonts): SExtbyte ==> Extbyte.
11056         (valid_x_font_name_p): SExtbyte ==> Extbyte.
11057         (x_find_charset_font): SExtbyte ==> Extbyte.
11058         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
11059         (truename_via_XListFonts): SExtbyte ==> Extbyte.
11060         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
11061         Use bufbyte_strcmp.
11062
11063         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
11064         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
11065         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
11066         (BYTE_C0_P): Use bit ops for char-signedness safety.
11067         (BYTE_C1_P): Use bit ops for char-signedness safety.
11068         (CHARSET_BY_LEADING_BYTE):
11069         (CHARSET_BY_ATTRIBUTES):
11070         Always use inline function.
11071         Use type_checking_assert.
11072         Hide chlook.
11073
11074         * mule-charset.c (non_ascii_charptr_copy_char):
11075         Modify to work with both ASCII and non-ASCII characters.
11076         Improve docs and variable names.
11077         Replace over-clever fall-through switch with a simple loop.
11078         (Lstream_get_emchar_1):
11079         Replace over-clever fall-through switch with a simple loop.
11080
11081         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11082         Warning suppression.
11083
11084         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
11085         the return value of Lstream_getc, which could be EOF as well.
11086
11087         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
11088
11089         * lisp.h: Make Extbyte a char, not unsigned char, so that external
11090         APIs can be used on Extbytes without casts.  Risky!
11091         (SExtbyte): Remove.
11092         (UExtbyte): Remove.
11093
11094         * input-method-xlib.c (XIM_init_device):
11095         Use Xlib.h instead of IntrinsicP.h.
11096         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
11097         which will break in X11R7.
11098         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
11099         to call XRegisterIMInstantiateCallback with correct types.
11100
11101         * gui-x.c (button_item_to_widget_value): Type correctness.
11102
11103         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
11104
11105         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
11106         (xbm_instantiate_1): Type correctness.
11107         (BUILD_GLYPH_INST):  Type correctness.
11108
11109         * fileio.c (Fsubstitute_in_file_name): Type correctness.
11110
11111         * file-coding.c:
11112         (decode_coding_sjis):
11113         (decode_coding_big5):
11114         (decode_coding_ucs4):
11115         (decode_coding_utf8):
11116         (decode_coding_iso2022):
11117         (decode_coding_no_conversion):
11118         Make all decoding functions take an Extbyte * arg.
11119         (encode_coding_sjis):
11120         (encode_coding_big5):
11121         (encode_coding_ucs4):
11122         (encode_coding_utf8):
11123         (encode_coding_iso2022):
11124         (encode_coding_no_conversion):
11125         Make all encoding functions take a Bufbyte * arg.
11126         Use size_t instead of unsigned int for memory sizes.
11127         Only cast to unsigned char whenever dereferencing Extbyte *.
11128
11129         * doc.c (unparesseuxify_doc_string): Type correctness.
11130
11131         * console-x.c (split_up_display_spec):
11132         Rewrite without using details of internal string representation.
11133         (x_semi_canonicalize_device_connection): Type correctness.
11134
11135         * config.h.in:
11136         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
11137         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
11138         (HAVE_XFREE386): Removed.
11139
11140         * buffer.h (DEC_CHARPTR): `const' correctness.
11141         (bufbyte_strcmp): New.
11142         (bufbyte_memcmp): New.
11143
11144         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
11145
11146         * buffer.h (XCHAR_OR_CHAR_INT):
11147         Always use inline function.
11148         Remove redundant type checking assert() - XINT will abort quite nicely.
11149
11150 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11151
11152         * search.c (Freplace_match): Set newtext to an empty string.
11153
11154 2000-10-10  Martin Buchholz  <martin@xemacs.org>
11155
11156         * s/decosf1-3.h: Remove #include of stropts.h
11157         * s/ptx.h: Remove #include of stropts.h
11158         * s/usg5-4.h: Remove #include of stropts.h
11159         * sysproc.h:
11160         * config.h.in:
11161         Use stropts.h, not sys/stropts.h.
11162         Use strtio.h, not sys/strtio.h.
11163
11164 2000-10-04  Martin Buchholz <martin@xemacs.org>
11165
11166         * XEmacs 21.2.36 is released.
11167
11168 2000-09-21  Andy Piper  <andy@xemacs.org>
11169
11170         * glyphs-x.c (x_redisplay_widget): make sure non-structural
11171         changes still involve copying the widget tree.
11172         (update_widget_face): make sure a change is register in the widget
11173         tree. Call update_tab_widget_face appropriately.
11174         (update_tab_widget_face): ditto.
11175         (x_tab_control_redisplay): make sure non-structural changes still
11176         involve copying the widget tree.
11177
11178 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
11179
11180         * lread.c (locate_file): Check the path element is non-nil.
11181
11182 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11183
11184         * lisp.h: Warning suppression for SCO compilers.
11185
11186         * redisplay-tty.c (reset_tty_modes): Fix crash.
11187         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
11188
11189 2000-09-27  Martin Buchholz  <martin@xemacs.org>
11190
11191         Big signal/process handling overhaul.  Bugs fixed:
11192         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
11193         M-x comint-kill-subjob should work for both values nil and t of
11194         process-connection-type. It was broken on most platforms.
11195         Testing on Irix and Cygwin still needed.  Other plaforms tested.
11196         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
11197         * process-unix.c: Signal/Process handling overhaul.
11198         (pty_name): make 64 bytes, as `expect' does, for paranoia.
11199         (allocate_pty): Use all available modern methods of allocating
11200         ptys, falling back to old style BSD allocation as a last resort.
11201         Use allegedly more secure Unix98 pty allocation by default.
11202         (allocate_pty_the_old_fashioned_way): New. the last resort.
11203         (unix_create_process): Push ptem, ldterm, ttcompat where
11204         available.  Autoconfiscate.
11205         (try_to_initialize_subtty): New.
11206         (unix_kill_child_process): Proper signal handling for ptys on most
11207         platforms, using special knowledge of AIX, BSD, etc...
11208         (unix_create_process): Always disconnect_controlling_terminal() for
11209         subprocesses, whether using ptys or not.
11210         * process.h: Remove old getpt-dependent PTY code.
11211         * process.c (Fprocess_send_signal): New, obvious generic function.
11212         (decode_signal): New.
11213         (Finterrupt_process):
11214         (Fkill_process):
11215         (Fquit_process):
11216         (Fstop_process):
11217         (Fcontinue_process):
11218         (Fsignal_process): Use decode_signal.
11219         (process_send_signal):
11220         Many docstring corrections.
11221         Allow any signal to be sent to a process object.
11222         * config.h.in: Add symbols for big signal/process overhaul.
11223         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
11224         * sysproc.h: Include process-related headers, where available:
11225         sys/stropts.h sys/strtio.h pty.h libutil.h
11226         * s/irix4-0.h:
11227         * s/irix5-0.h:
11228         * s/cygwin32.h:
11229         * s/gnu.h:
11230         * s/linux.h:
11231         * s/hpux.h:
11232         * s/aix3-1.h:
11233         Remove old S&M pty stuff.
11234         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
11235         * systty.h: Simplify cpp hackery, improve comments.
11236         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
11237
11238         * editfns.c (Fformat_time_string):
11239         Be a little more paranoid with the return value of ctime.
11240
11241         * fileio.c (check_executable):
11242         (check_writable):
11243         Use symbolic constants X_OK, W_OK.
11244
11245         * console-x.c (split_up_display_spec): Fix a warning.
11246
11247 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11248
11249         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11250         * ntproc.c (sys_spawnve): make_string ==> build_string
11251         Small clarity improvements.
11252
11253 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11254
11255         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11256
11257         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11258
11259         * config.h.in (HAVE_STRCASECMP): Remove.
11260
11261 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11262
11263         * redisplay-output.c (redisplay_output_pixmap):
11264         Cleaner and possibly more 64-bit correct code.
11265
11266 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11267
11268         * dumper.c (pdump_load_finish): move restoration of
11269         `noninteractive1' to emacs.c (main_1).
11270         * emacs.c (main_1): protect LISP-visible command-line flags
11271         from pdump_load().
11272
11273 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11274
11275         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11276         DUMP_TARGET instead of literal program names.
11277
11278 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11279
11280         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11281
11282 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11283
11284         * *: Spelling mega-patch
11285
11286 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11287
11288         * fns.c (bad_bad_turtle):
11289         Delete "Eek!" comment, since we fixed the bug to which it refers.
11290
11291 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11292
11293         * alloca.c: Replace REGISTER with register.
11294
11295 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11296
11297         * file-coding.c (ucs_to_char): Use countof.
11298
11299 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11300
11301         * file-coding.c: (ucs_to_char):
11302         (complex_vars_of_file_coding):
11303         Use countof instead of sizeof.
11304         Use CHECK_NATNUM instead of CHECK_INT.
11305
11306         * sysdep.c (strcasecmp): Remove.
11307         * device-x.c (ascii_strcasecmp): New.
11308         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11309         Avoid using non-standard non-portable strcasecmp.
11310
11311 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11312
11313         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11314         * font-lock.c: remove reference to emacsfns.h.
11315         * search.c: small doc improvement.
11316         * event-Xt.c: correct file names in comments.
11317         * console-x.h Correct file names in comments.
11318         * frame.c: Correct file names in comments.
11319         * event-stream.c: remove Energize from comments.
11320
11321 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11322
11323         * symeval.h (DEFERROR_STANDARD):
11324         (DEFERROR):
11325         (DEFSYMBOL):
11326         (DEFSYMBOL_NO_DUMP):
11327         (DEFSYMBOL_MULTIWORD_PREDICATE):
11328         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11329         (DEFKEYWORD):
11330         The construct &##name is not sensible C.
11331         Fixes compilation errors with Unixware native compiler.
11332
11333 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11334
11335         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11336         (next_frame_internal): Removed.  We now just have next_frame.
11337         (next_frame):
11338         Write a simpler and cleaner one-pass algorithm.
11339         Remove called_from_delete_device arg and #ifdefed-out code.
11340         (previous_frame):
11341         Renamed from prev_frame.  Update callers.
11342         Cleaned up to have an analogous implementation to next_frame.
11343         (other_visible_frames_internal): Remove the
11344         called_from_delete_device bogus arg, and hence, remove this
11345         function.  Just use other_visible_frames().
11346
11347         * window.c (Fnext_window):
11348         Prettify docstring.
11349         Since next_frame() is guaranteed to return a frame, remove check
11350         for nil inserted in previous patch.
11351         (Fprevious_window):
11352         Prettify docstring.
11353         Make code look more like Fnext_window.
11354         (window_loop):
11355         Respect the `console' arg when iterating through windows.
11356         Fixes bug: (get-buffer-window buffer t device) not respecting
11357         the `device' arg.
11358         This function needs more work, as others have pointed out.
11359
11360         * frame.h: Rename prev_frame to previous_frame.
11361         device_matches_console_spec no longer takes a `frame' arg.
11362
11363         * s/gnu.h:
11364         * s/linux.h:
11365         * s/hpux.h:
11366         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11367         From "Golubev I. N." <gin@mo.msk.ru>.
11368
11369         * make-src-depend: Fix typo.
11370
11371 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11372
11373         * window.c (Fnext_window):
11374         next_frame() might return nil, not a frame.
11375         Fixes this crash:
11376         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11377
11378         * frame.c (next_frame_internal):
11379         We've passed a frame if we've passed its device.
11380         Fixes this crash:
11381         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11382 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11383
11384 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11385
11386         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11387         Allow option to suppress accelerators in menu/dialog items.
11388         (populate_or_checksum_helper): Pass dialog title through above.
11389
11390 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11391
11392         * event-msw.c (mswindows_key_to_emacs_keysym):
11393         Add "pause" key, fix "menu" key.
11394
11395 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11396
11397         * eval.c (reinit_vars_of_eval):
11398         Increase max_lisp_eval_depth to 1000,
11399         required for thai-xtis.el to byte-compile under some circumstances.
11400
11401 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11402
11403         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11404         From Kenichi Handa.
11405
11406 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11407
11408         * make-src-depend: Make the generated Makefiles smaller.
11409
11410         * s/hpux.h (SETUP_SLAVE_PTY):
11411         Provide a %d in the format string for the errno argument.
11412
11413         * editfns.c (Ftemp_directory):
11414         Warning fix.
11415         Avoid buffer overrun on very long file name.
11416
11417         * input-method-xlib.c (XIM_init_device):
11418         6th parameter of XRegisterIMInstantiateCallback has different
11419         pointer types on different OSes, so simply cast to (void *).
11420
11421         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11422
11423         * sysdll.c (dll_open):
11424         shl_load will hang hard if passed a NULL filename.
11425         Simply return NULL for compatibility with dlopen.
11426         * sysdll.c: Conform to XEmacs coding standards.
11427
11428         * sysdep.c (get_pty_max_bytes):
11429         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11430
11431 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11432
11433         * tooltalk.c: Add #include <syssignal.h>
11434
11435 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11436
11437         * s/hpux.h: Don't use undefined function sigunblock().
11438
11439 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11440
11441         * config.h.in: Add HAVE_BALLOON_HELP.
11442         * emacs.c: Use HAVE_BALLOON_HELP.
11443         * Makefile.in.in (x_objs):
11444         Make Balloon Help conditional on finding shape.h.
11445
11446 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11447
11448         * syntax.c (regex_emacs_buffer_p): New variable.
11449         * syntax.h (regex_emacs_buffer_p): extern.
11450         * search.c (looking_at_1):
11451         (string_match_1):
11452         (fast_string_match):
11453         (search_buffer): Set regex_emacs_buffer_p.
11454         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11455         when before_dot, at_dot, after_dot.
11456
11457 2000-08-23  Andy Piper  <andy@xemacs.org>
11458
11459         * gui-x.c (popup_selection_callback): Only set action_occurred
11460         when we really have an image instance.
11461         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11462
11463 2000-08-23  Andy Piper  <andy@xemacs.org>
11464
11465         * gui-msw.c (mswindows_handle_gui_wm_command): set
11466         action_occurred.
11467         * gui-x.c (popup_selection_callback): ditto.
11468
11469         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11470         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11471         (struct Lisp_Image_Instance): add action_occurred flag.
11472
11473         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11474         (image_instance_changed): ditto.
11475         (reset_frame_subwindow_instance_cache): only unmap windows - do
11476         not remove them from the cache also.
11477
11478         * glyphs-widget.c (tab_control_update): better debug.
11479         (progress_gauge_update): ditto.
11480         (layout_update): ditto.
11481         (layout_instantiate): ditto.
11482         (tab_control_order_only_changed): cope with null pending items.
11483
11484         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11485         debug. Force selection of an item when an action occurred. Cope
11486         with null pending_items.
11487         (mswindows_progress_gauge_redisplay): better debug.
11488         * glyphs-x.c (x_tab_control_redisplay): ditto.
11489
11490         * redisplay.c (redisplay_frame): reset the frame cache if the
11491         frame is garbaged.
11492
11493         * window.c (Fset_window_configuration): potentially re-enable
11494         frame cache reset.
11495         (window_unmap_subwindows): need to finalize instances here since
11496         it is only used in mark_window_as_deleted.
11497
11498 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11499
11500         * nas.c (SndOpenDataForReading):
11501         nas.c (WaveOpenDataForReading):
11502         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11503         Somehow escaped from the 2000-08-14 patch.
11504
11505 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11506
11507         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11508         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11509
11510 2000-08-21  Andy Piper  <andy@xemacs.org>
11511
11512         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11513         window if it is not already displayed.
11514
11515         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11516         it is not already displayed.
11517
11518         * window.c (Fset_window_configuration): don't reset the frame
11519         cache.
11520
11521         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11522         instances from the frame cache if we are actually finalizing them.
11523         (reset_frame_subwindow_instance_cache): reset frame cache only
11524         after unmapping everything.
11525         (map_subwindow): set displayed flag after mapping.
11526
11527 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11528
11529         * data.c (indirect_function):
11530         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11531
11532         * eval.c (function_argcount):
11533         Use original function when signaling errors.
11534
11535 2000-08-18  Andy Piper  <andy@xemacs.org>
11536
11537         * frame.c (delete_frame_internal): use new
11538         free_frame_subwindow_instances name.
11539
11540         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11541         (add_tab_item): make return type correct.
11542         (mswindows_tab_control_instantiate): assert index of tab.
11543         (mswindows_tab_control_redisplay): Re-code to use
11544         gui_item_equal_sans_selected and gui_item_list_find_selected.
11545
11546         * glyphs-widget.c (tab_control_update): Correct comment.
11547
11548         * window.c (window_unmap_subwindows): use new
11549         unmap_subwindow_instance_cache_mapper.
11550         (window_unmap_subwindows_cache_mapper): deleted.
11551         (Fset_window_configuration): comparisons should now be with
11552         EQ. Preserve the subwindow instance cache across configuration
11553         changes.
11554         (allocate_window): ditto.
11555         (make_dummy_parent): ditto.
11556
11557         * glyphs.c (free_frame_subwindow_instances): rename from
11558         free_frame_subwindow_instance_cache. finalize all instances rather
11559         than just those in the display cache.
11560         (finalize_all_subwindow_instances): walk windows unmapping and
11561         finalizing subwindows.
11562         (unmap_subwindow_instance_cache_mapper): moved from
11563         window.c. Allow finalization as well as unmapping.
11564
11565         * gui.c (gui_item_list_find_selected): new function.
11566
11567         * gui.h (gui_item_list_find_selected): declare.
11568
11569         * glyphs-x.c (x_tab_control_redisplay): pick tab
11570         explicitly. Re-code to use gui_item_equal_sans_selected and
11571         gui_item_list_find_selected.
11572
11573         * glyphs-x.h: add lwlib-utils.h
11574
11575         * buffer.c (Frecord_buffer): undo previous change.
11576
11577 2000-08-09  Vin Shelton  <acs@xemacs.org>
11578
11579         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11580         possible.  Create temporary files more securely.  The patch was
11581         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11582         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11583         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11584         for details.
11585
11586 2000-08-07  Ben Wing  <ben@xemacs.org>
11587
11588         * getloadavg.c: remove duplicate (and windows-breaking)
11589         includes of fcntl.h and sys/file.h.
11590
11591         * nt.c: remove duplicate getloadavg() definition.
11592
11593         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11594         encodings.
11595
11596 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11597
11598         * eval.c (function_argcount): If function needs to be autoloaded
11599         actually use the loaded definition.
11600         GCPRO function.
11601
11602 2000-08-05  Ben Wing  <ben@xemacs.org>
11603
11604         * getloadavg.c: add prototype for getloadavg().  remove
11605         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11606         of the code).  remove duplicate header includes.
11607
11608         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11609
11610         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11611         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11612         useful load average.
11613
11614         * alloc.c (reinit_alloc_once_early): removed references to
11615         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11616         the lisp vars are the only things referencing the malloc_sbrk_*
11617         vars, and they were already if 0'd out.  these vars only exist
11618         in the older malloc.c, which is basically unused, and they're
11619         only for informational purposes.
11620
11621         * m\*.h: removed useless VIRT_ADDR_VARIES.
11622
11623         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11624
11625 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11626
11627         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11628         color if the image is a mono pixmap.
11629
11630 2000-07-30  Ben Wing  <ben@xemacs.org>
11631
11632         * Makefile.in.in (release):
11633         Remove stray @.
11634
11635         * buffer.c (directory_is_current_directory):
11636         * dired-msw.c (mswindows_get_files):
11637         * dired.c:
11638         * dired.c (Fdirectory_files):
11639         * dired.c (file_name_completion_stat):
11640         * dired.c (Ffile_attributes):
11641         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11642         preprocessor tricks, to avoid problems on some machines
11643         (e.g. SCO).
11644
11645         * callproc.c (egetenv): GC docs.
11646
11647         * console-msw.h:
11648         * console-msw.h (struct mswindows_dialog_id):
11649         * lrecord.h (lrecord_type):
11650         New object for use with MSW dialogs.
11651
11652         * console.h (struct console_methods):
11653         New enable/disable frame methods, for proper modal dialogs.
11654
11655         * device-msw.c (msprinter_default_printer): Fix to follow
11656         proper Mule conventions.
11657
11658         * device-msw.c:
11659         * device-msw.c (signal_open_printer_error):
11660         * device-msw.c (msprinter_init_device):
11661         * device-msw.c (ensure_not_printing):
11662         * device-msw.c (plist_get_margin):
11663         * device-msw.c (Fmsprinter_select_settings):
11664         * device-msw.c (finalize_devmode):
11665         * device-msw.c (Fmsprinter_settings_despecialize):
11666         * device-msw.c (signal_enum_priner_error):
11667         * extents.c (decode_extent):
11668         * extents.c (decode_map_extents_flags):
11669         * extents.c (decode_extent_at_flag):
11670         * extents.c (Fextent_at):
11671         * extents.c (Fextents_at):
11672         * extents.c (symbol_to_glyph_layout):
11673         [[[[2]]]] Use structured errors.
11674
11675         * dialog-msw.c:
11676         * dialog-msw.c (mswindows_is_dialog_msg):
11677         * dialog-msw.c (mark_mswindows_dialog_id):
11678         * dialog-msw.c (dialog_proc):
11679         * dialog-msw.c (handle_question_dialog_box):
11680         * dialog-msw.c (syms_of_dialog_mswindows):
11681         Define new object to clean up marking; use it as a dialog identifier.
11682         Call new delete-dialog-box-hook.
11683
11684         * dialog-x.c (dbox_selection_callback):
11685         * dialog-x.c (dbox_descriptor_to_widget_value):
11686         * dialog-x.c (x_make_dialog_box_internal):
11687         Call new delete-dialog-box-hook.
11688         Return an id.
11689
11690         * dialog.c:
11691         * dialog.c (syms_of_dialog):
11692         * dialog.c (vars_of_dialog):
11693         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11694
11695         * eval.c:
11696         * eval.c (signal_call_debugger):
11697         when noninteractive, output stack traces on the console instead
11698         of in a (never-seen) buffer.
11699
11700         * eval.c (signal_type_error):
11701         * eval.c (invalid_argument_2):
11702         * lisp.h:
11703         new funs for use w/structured errors.
11704
11705         * event-Xt.c:
11706         * event-Xt.c (x_to_emacs_keysym):
11707         * event-Xt.c (describe_event):
11708         * event-Xt.c (emacs_Xt_event_handler):
11709         * event-Xt.c (vars_of_event_Xt):
11710         * event-msw.c:
11711         * event-msw.c (mswindows_wnd_proc):
11712         * event-msw.c (vars_of_event_mswindows):
11713         rename {x,mswindows}-debug-events to debug-{}-events for
11714         consistency with other debug-foo variables.
11715
11716         * event-stream.c:
11717         document next-event more clearly.
11718
11719         * fileio.c (Ffile_name_directory):
11720         * fileio.c (Ffile_name_nondirectory):
11721         * fileio.c (Funhandled_file_name_directory):
11722         * fileio.c (file_name_as_directory):
11723         * fileio.c (Ffile_name_as_directory):
11724         * fileio.c (directory_file_name):
11725         * fileio.c (Fdirectory_file_name):
11726         * fileio.c (Fmake_temp_name):
11727         * fileio.c (Ffile_truename):
11728         * fileio.c (Fsubstitute_in_file_name):
11729         * fileio.c (expand_and_dir_to_file):
11730         * fileio.c (barf_or_query_if_file_exists):
11731         * fileio.c (check_executable):
11732         * fileio.c (Ffile_exists_p):
11733         * fileio.c (Ffile_writable_p):
11734         * fileio.c (Ffile_directory_p):
11735         * fileio.c (Ffile_regular_p):
11736         * fileio.c (Ffile_modes):
11737         * fileio.c (Ffile_newer_than_file_p):
11738         * fileio.c (Fverify_visited_file_modtime):
11739         * fileio.c (Fset_visited_file_modtime):
11740         * fileio.c (auto_save_1):
11741         (1). (2).
11742         fix up gcpro's.
11743
11744         * frame-msw.c:
11745         * frame-msw.c (mswindows_init_frame_1):
11746         * frame-msw.c (mswindows_enable_frame):
11747         * frame-msw.c (error_frame_unsizable):
11748         * frame-msw.c (msprinter_init_frame_1):
11749         * frame-msw.c (msprinter_init_frame_3):
11750         * frame-msw.c (console_type_create_frame_mswindows):
11751         (2).
11752         implement new enable/disable frame methods.
11753
11754         * frame-x.c:
11755         * frame-x.c (x_enable_frame):
11756         * frame-x.c (console_type_create_frame_x):
11757         implement new enable/disable frame methods.
11758
11759         * frame.c:
11760         * frame.c (Fdisable_frame):
11761         * frame.c (syms_of_frame):
11762         * frame.h (struct frame):
11763         implement new enable/disable frame methods/functions.
11764
11765         * general-slots.h:
11766         add initial-focus.
11767
11768         * glyphs-msw.c (mswindows_widget_instantiate):
11769         comment that initial-focus should be implemented.
11770
11771         * glyphs-widget.c:
11772         * glyphs-widget.c (check_valid_instantiator):
11773         * glyphs-widget.c (check_valid_orientation):
11774         * glyphs-widget.c (check_valid_tab_orientation):
11775         * glyphs-widget.c (check_valid_justification):
11776         * glyphs-widget.c (check_valid_border):
11777         * glyphs-widget.c (check_valid_callback):
11778         * glyphs-widget.c (check_valid_int_or_function):
11779         * glyphs-widget.c (check_valid_string_or_vector):
11780         * glyphs-widget.c (check_valid_item_list_1):
11781         * glyphs-widget.c (widget_validate):
11782         * glyphs-widget.c (combo_box_validate):
11783         * glyphs-widget.c (widget_instantiate):
11784         * glyphs-widget.c (syms_of_glyphs_widget):
11785         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11786         * glyphs-widget.c (image_instantiator_combo_box):
11787         * glyphs-widget.c (image_instantiator_scrollbar):
11788         * glyphs-widget.c (image_instantiator_tab_control):
11789         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11790         (2).
11791         support (unimplemented) keyword initial-focus.
11792         reindent long macros.
11793
11794         * glyphs-x.c (x_redisplay_widget):
11795         * glyphs-x.c (x_button_instantiate):
11796         * glyphs-x.c (x_button_redisplay):
11797         * glyphs-x.c (x_progress_gauge_instantiate):
11798         * glyphs-x.c (x_edit_field_instantiate):
11799         * glyphs-x.c (x_combo_box_instantiate):
11800         * glyphs-x.c (x_tab_control_instantiate):
11801         * glyphs-x.c (x_label_instantiate):
11802         * gui-x.c:
11803         * gui-x.c (button_item_to_widget_value):
11804         * gui-x.c (gui_items_to_widget_values_1):
11805         * gui-x.c (gui_item_children_to_widget_values):
11806         * gui-x.c (gui_items_to_widget_values):
11807         * gui-x.h:
11808         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11809         add new flag to gui-parsing routines to indicate whether
11810         accelerator specs should be supported.
11811
11812         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11813
11814         * glyphs.h (struct Lisp_Image_Instance):
11815         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11816         add initial-focus flag.
11817
11818         * gui.c:
11819         * gui.c (syms_of_gui):
11820         * gui.c (vars_of_gui):
11821         clean up menu-no-selection-hook.
11822
11823         * gui.h:
11824         support delete-dialog-box-hook.
11825
11826         * lread.c (Fload_internal):
11827         * lread.c (locate_file_in_directory_mapper):
11828         (1).
11829
11830         * lrecord.h:
11831         * lrecord.h (struct toolbar_button):
11832         * lrecord.h (syms_of_toolbar):
11833         document how to create a new object.
11834
11835         * menubar-msw.c (mswindows_char_is_accelerator):
11836         may be called on frames w/o menus.
11837
11838         * menubar.c (vars_of_menubar):
11839         clean up :filter docs.
11840
11841         * nt.c (readdir):
11842         * ntproc.c:
11843         (1).
11844
11845         * process-nt.c:
11846         * process-nt.c (validate_signal_number):
11847         * process-nt.c (signal_cannot_launch):
11848         * process-nt.c (nt_create_process):
11849         * process-nt.c (nt_send_process):
11850         * process-nt.c (nt_kill_child_process):
11851         * process-nt.c (nt_open_network_stream):
11852         * process-nt.c (syms_of_process_nt):
11853         (2).
11854         delete quote-handling.  call new lisp code that does it better.
11855
11856         * process-unix.c (connect_to_file_descriptor):
11857         * process-unix.c (allocate_pty):
11858         * process-unix.c (unix_send_process):
11859         * process-unix.c (unix_kill_child_process):
11860         * process-unix.c (unix_open_network_stream):
11861         * process-unix.c (unix_open_multicast_group):
11862         (1). (2).
11863
11864         * process.c:
11865         * process.c (Fstart_process_internal):
11866         (2).  need to canonicalize process path even if absolute.
11867
11868         * select-msw.c (symbol_to_ms_cf):
11869         * select-msw.c (ms_cf_to_symbol):
11870         * select-msw.c (cf_is_autofreed):
11871         * select-msw.c (mswindows_destroy_selection):
11872         * select.c:
11873         * select.c (syms_of_select):
11874         * select.h:
11875         support dibv5, fix bugs. (from Mike Alexander)
11876
11877         * select.c (Fget_selection_internal):
11878         * select.c (select_convert_out):
11879
11880         * sysdep.c:
11881         * sysdep.c (xemacs_stat):
11882         renamed.
11883
11884         * sysdep.c (mkdir):
11885         * sysdep.c (rmdir):
11886         but keep original stat() here because we provide encapsulation
11887         around these funs.
11888
11889         * sysfile.h:
11890         * sysfile.h (fstat):
11891         remove stat garbage.
11892
11893         * syswindows.h:
11894         fix X/MSW conflict.
11895         don't include tchar.h.  it's inappropriate because it makes
11896         compile-time distinctions when we want runtime distinctions.
11897         (we provide our own tchar replacements)
11898
11899         * toolbar.c:
11900         use default object printer for toolbar-button.
11901
11902         * unexcw.c:
11903         make sure we don't encapsulate.
11904
11905         * window.c (vars_of_window):
11906         emphasize that temp-buffer-show-hook is obsolete.
11907
11908 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11909
11910         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11911         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11912
11913         * events.c (Fevent_timestamp_lessp):
11914         Not 64-bit clean.  Use EMACS_INT, not int.
11915
11916 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11917
11918         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11919         unsigned int and changed the last enum to
11920         lrecord_type_last_built_in_type.
11921         (lrecord_implementations_table): changed prototype to know how
11922         long the array is supposed to be.
11923         (lrecord_type_count): new unsigned int to keep track of the
11924         current number of lisp lrecord types.
11925         (DEFINE_EXTERNAL_LRECORD):
11926         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11927         dynamic-modules to declare new lisp types. They are the same
11928         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11929         int for each new type, and increment lrecord_type_count by 1.
11930
11931         * alloc.c (lrecord_implementations_table): Changed to reference
11932         lrecord_type_last_built_in_type for the size of the array.
11933         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11934
11935 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11936
11937         * glyphs.h (check_valid_item_list): Renamed from
11938         check_valid_item_list_1.
11939
11940 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11941
11942         * select.c (Qselect_coerce): New.
11943         * select.c (Vselection_coercion_alist): New.
11944         * select.c (syms_of_select): Declare.
11945         * select.c (get-selection-internal): Use it.
11946         Use the new select-coerce functionality.
11947
11948         * select.c (select_coerce): New.
11949         * select.h (select_coerce): Declare.
11950         New function to coerce one type of data into another.
11951
11952 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11953
11954         * callproc.c (Fcall_process_internal):
11955         (Fcall_process_internal):
11956         * process-unix.c (unix_create_process):
11957         Save and restore the value of errno, so that error messages are accurate.
11958
11959 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11960
11961         * elhash.c (print_hash_table):
11962         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11963         Prettify docstrings and indentation.
11964
11965 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11966
11967         * window.c (Fwindow_pixel_edges): Subtract frame border and
11968         gutter size.
11969
11970 2000-07-31  Andy Piper  <andy@xemacs.org>
11971
11972         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11973         will acknowledge the change.
11974
11975         * glyphs.h: declare tab_control_order_only_changed.
11976
11977         * glyphs-x.c (x_tab_control_redisplay): use
11978         tab_control_order_only_changed.
11979
11980         * glyphs-widget.c (tab_control_order_only_changed): new function.
11981
11982         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11983         tab_control_order_only_changed.
11984
11985         * gui.c (gui_item_equal_sans_selected): new function.
11986         (gui_item_equal): use it.
11987
11988         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11989         :properties in favor of :items..
11990
11991         * glyphs-widget.c (check_valid_item_list): rename from
11992         check_valid_item_list_1.
11993         (check_valid_item_list_1): renamed.
11994         (combo_box_validate): deprecate :properties in favor of :items.
11995         (widget_instantiate): ditto.
11996         (tab_control_update): ditto.
11997         (image_instantiator_combo_box): ditto.
11998         (image_instantiator_tree_view): ditto.
11999         (image_instantiator_tab_control): ditto.
12000         (layout_post_instantiate): remove dead code.
12001
12002         * print.c (debug_print_no_newline): only write to debugger if in
12003         WIN32_NATIVE.
12004
12005         * elhash.c (Fmake_hash_table): update doc string.
12006
12007         * event-msw.c (mswindows_wnd_proc): don't allow processing of
12008         messages whilst in GC. This at least stops XEmacs crashing but has
12009         the potential for wierd behaviour.
12010
12011 2000-07-31  Martin Buchholz  <martin@xemacs.org>
12012
12013         * config.h.in:
12014         Make existence of s&m files optional.
12015
12016         * s/bsd386.h: Remove HAVE_GETLOADAVG.
12017         * s/freebsd.h: Remove HAVE_GETLOADAVG.
12018         * s/gnu.h: Remove HAVE_GETLOADAVG.
12019         * s/netbsd.h: Remove HAVE_GETLOADAVG.
12020         * s/sol2.h: Remove HAVE_GETLOADAVG.
12021         * lisp.h: Remove getloadavg() declaration.
12022         * fns.c:
12023         Include <sys/loadavg.h> if available.
12024         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
12025         * config.h.in:  Group together getloadavg()-related macros.
12026         Use only configure-time tests to detect getloadavg().
12027
12028 2000-07-30  Martin Buchholz  <martin@xemacs.org>
12029
12030         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
12031
12032 2000-07-25  Andy Piper  <andy@xemacs.org>
12033
12034         * syswindows.h: add tchar.h for native builds.
12035
12036         * frame.c (syms_of_frame): remove set-glyph-image.
12037
12038         * general-slots.h: add Qset_glyph_image.
12039
12040         * glyphs-widget.c (layout_update): add domain arg to
12041         set-glyph-image.
12042         (syms_of_glyphs_widget): remove set-glyph-image.
12043
12044 2000-07-23  Ben Wing  <ben@xemacs.org>
12045
12046         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
12047         Vpopup_frame_list.
12048
12049 2000-07-22  Andy Piper  <andy@xemacs.org>
12050
12051         * symsinit.h: add syms_of_win32().
12052
12053         * gui-msw.c (syms_of_gui_mswindows): remove
12054         Fmswindows_shell_execute.
12055         (Fmswindows_shell_execute): moved to win32.c.
12056
12057         * emacs.c (main_1): add syms_of_win32 ().
12058
12059         * win32.c (init_potentially_nonexistent_functions): rewrite in
12060         compiler-friendly terms.
12061         (Fmswindows_shell_execute): move here from gui-msw.c.
12062         (syms_of_win32): new.
12063
12064         * device-msw.c (Fmswindows_printer_list): clean up args to
12065         EnumPrinters.
12066         Don't include tchar under cygwin or mingw.
12067         (msprinter_default_printer): make cygwin-friendly.
12068
12069 2000-07-21  Andy Piper  <andy@xemacs.org>
12070
12071         * glyphs-widget.c (image_instantiator_tree_view): use tab
12072         control's update function.
12073         (layout_property): new function. Retrieve items.
12074
12075         * glyphs-msw.c (mswindows_tree_view_redisplay): new
12076         function. Re-populate the tree view from the pending items.
12077
12078         * glyphs.c (instantiate_image_instantiator): Make sure the domain
12079         is designated the parent if the domain is an image instance. This
12080         is needed so that dirtiness can be cascade up the hierarchy and
12081         thus for layout children to be redisplayed correctly.
12082         (allocate_image_instance): rename glyph -> parent.
12083
12084         * redisplay.h: change redisplay_output_layout signature.
12085
12086         * redisplay-msw.c (mswindows_output_display_block): use domain
12087         arg.
12088
12089         * redisplay-x.c (x_output_display_block): use domain arg.
12090
12091 2000-07-10  Andy Piper  <andy@xemacs.org>
12092
12093         * window.c (Fset_window_configuration): add comment.
12094
12095         * redisplay-output.c (compare_runes):
12096         (redisplay_output_subwindow): redisplay rather than update subwindow.
12097         (redisplay_output_layout): ditto.
12098
12099         * redisplay-msw.c (mswindows_frame_output_end):
12100         (mswindows_frame_output_end): make defer window pos optional.
12101
12102         * lisp.h: add Flast.
12103
12104         * glyphs.h (struct image_instantiator_methods): add dest_mask top
12105         normalize method. Change update method to be for changed
12106         instantiators. Add redisplay method. Change signature of layout
12107         method.
12108         (struct Lisp_Image_Instance): add instantiator.
12109         (IMAGE_INSTANCE_INSTANTIATOR): new.
12110         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
12111         (XIMAGE_INSTANCE_INSTANTIATOR): new.
12112         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
12113
12114         * glyphs.c:
12115         (find_instantiator_differences): new function.
12116         (Fset_instantiator_property): new convenience function.
12117         (check_image_instance_structure): strictly check for vector
12118         instantiators.
12119         (normalize_image_instantiator): make non-static.
12120         (instantiate_image_instantiator): pass on dest_mask and use new
12121         signatures for image_instance_layout and friends.
12122         (mark_image_instance): mark the instantiator. Mark the subwindow
12123         face not the widget face.
12124         (image_instance_equal): add instantiator.
12125         (image_instance_hash): ditto.
12126         (allocate_image_instance): ditto.
12127         (Fset_image_instance_property): removed.
12128         (Fimage_instance_file_name): ditto.
12129         (Fcolorize_image_instance): ditto.
12130         (image_instance_layout): add offsets to be set.
12131         (update_image_instance): new function. update an image instance
12132         from its changed instantiator.
12133         (inherit_normalize): add dest_mask.
12134         (xbm_normalize): ditto.
12135         (xface_normalize): ditto.
12136         (xpm_normalize): ditto.
12137         (text_update): set_property -> update.
12138         (image_instantiate): use the glyph identity as a hash key, not the
12139         instantiator.
12140         (glyph_width): use new image_instance_layout signature.
12141         (glyph_ascent): ditto.
12142         (glyph_descent): ditto.
12143         (glyph_height): ditto.
12144         (glyph_query_geometry): ressurrect.
12145         (glyph_layout): ditto.
12146         (redisplay_subwindow): update -> redisplay.
12147         (syms_of_glyphs): add Fset_instantiator_property.
12148         (image_instantiator_format_create): set_property -> update.
12149
12150         * glyphs-x.c:
12151         (autodetect_normalize): add dest_maks to signature.
12152         (x_redisplay_subwindow): update -> redisplay.
12153         (x_redisplay_widget): ditto.
12154         (x_button_redisplay): ditto.
12155         (x_progress_gauge_redisplay): ditto.
12156         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
12157         stacking order.
12158         (console_type_create_glyphs_x): update -> redisplay.
12159         (image_instantiator_format_create_glyphs_x): ditto.
12160
12161         * glyphs-widget.c:
12162         (check_valid_instantiator): disallow glyphs in the instantiator,
12163         they must now be vectors.
12164         (check_valid_instantiator_list): ditto.
12165         (glyph_instantiator_to_glyph): use internal symbol rather than
12166         intern.
12167         (widget_update): renamed from widget_set_property. Call cascaded
12168         update methods.
12169         (redisplay_widget): renamed from update_widget.
12170         (widget_layout): image_instance_layout now takes position as well
12171         as size.
12172         (widget_normalize): ditto.
12173         (widget_instantiate): ditto.
12174         (tab_control_query_geometry) ditto.:
12175         (tab_control_update): renamed from tab_control_set_property.
12176         (progress_gauge_update): set_property -> update.
12177         (layout_normalize): rewrite so that child instantiators are
12178         normalized also.
12179         (layout_update): new function. Create glyphs from the normalized
12180         children and cope with any other layout keywords. We do not
12181         instantiate children here that will be take care of by
12182         redisplay_output_layout.
12183         (layout_instantiate): call layout_update and not much else.
12184         (layout_post_instantiate): not sure whether this is needed
12185         anymore.
12186         (layout_query_geometry): query glyph geometry rather than
12187         image_instance geometry.
12188         (layout_layout): set offsets from pass in parameters. Use glyph
12189         geometry and layout functions rather than image instance ones.
12190         (native_layout_layout): ditto.
12191         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
12192         (image_instantiator_widget): set_property -> update.
12193         (image_instantiator_buttons): ditto.
12194         (image_instantiator_progress_guage): ditto.
12195         (image_instantiator_tab_control): ditto.
12196         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
12197         (image_instantiator_layout): add update method.
12198
12199         * glyphs-msw.c (bmp_normalize):
12200         (mswindows_resource_normalize): add dest_mask so that it can be
12201         proprogated by layout_normalize.
12202         (begin_defer_window_pos): make optional because it may not be the
12203         right thing to do and it introduces differences with X.
12204         (mswindows_unmap_subwindow): ditto.
12205         (mswindows_map_subwindow): ditto.
12206         (mswindows_redisplay_subwindow): renamed from
12207         mswindows_update_subwindow.
12208         (mswindows_redisplay_widget): ditto.
12209         (mswindows_button_redisplay): renamed from
12210         mswindows_button_update. Update is now what the instantiation
12211         function does for a changed instantiator.
12212         (mswindows_progress_gauge_instantiate): set the progress value
12213         here if appropriate.
12214         (mswindows_tab_control_redisplay): cope with re-ordering of the
12215         members of the tab widget by simply selecting the new top
12216         widget. This makes things appear ok if you click on a tab.
12217         (mswindows_combo_box_instantiate): image_instance_layout now takes
12218         position as well as size.
12219         (mswindows_progress_gauge_redisplay): renamed from
12220         mswindows_progress_gauge_update.
12221         (console_type_create_glyphs_mswindows): fix update -> redisplay.
12222         (image_instantiator_format_create_glyphs_mswindows): ditto.
12223
12224         * glyphs-eimage.c (jpeg_normalize):
12225         (gif_normalize):
12226         (png_normalize):
12227         (tiff_normalize): add dest_mask so that it can be proprogated by
12228         layout_normalize.
12229
12230         * elhash.c:
12231         (print_hash_table):
12232         (hash_table_weakness_validate):
12233         (decode_hash_table_weakness):
12234         (Fhash_table_weakness):
12235         (Fhash_table_type):
12236         (syms_of_elhash): use Ben's naming scheme for hashtable types..
12237
12238         * console.h (struct console_methods): move update_* to
12239         redisplay_*.
12240
12241 2000-07-20  Ben Wing  <ben@xemacs.org>
12242
12243         * *.[ch] (XSETOBJ): remove unused middle argument.
12244         lisp-disunion.h: correct wrap_object() to one argument.
12245
12246 2000-07-15  Ben Wing  <ben@xemacs.org>
12247
12248         * s/cygwin32.h:
12249         * s/cygwin32.h (CYGWIN_CONV_PATH):
12250         Add missing logb prototype for v1.1.
12251         Use post-b20 names and alias to pre-b20 names when pre-b20.
12252
12253         * s/windowsnt.h: [5].
12254
12255 2000-07-15  Ben Wing  <ben@xemacs.org>
12256
12257         * Makefile.in.in (x_objs):
12258         * Makefile.in.in (sheap_objs):
12259         * Makefile.in.in (objs):
12260         added win32.o, cosmetic cleanups.
12261
12262         * alloc.c (Fmake_byte_code):
12263         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12264         etc. macros which declare their own args now.
12265
12266         * alloc.c (syms_of_alloc):
12267         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12268
12269         * buffer.c:
12270         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12271
12272         * buffer.c (Fget_file_buffer):
12273         Fixed GCPRO problem.
12274
12275         * buffer.c (get_truename_buffer):
12276         Fixed comment about GC checking.
12277
12278         * buffer.c (syms_of_buffer):
12279         Undeclared those dedicated frame funs.
12280         [2].
12281
12282         * buffer.h:
12283         Define convenience macros for internal/external conversions.
12284         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12285         and Qenvironment_variable_encoding for cleaner code.
12286
12287         * bufslots.h:
12288         Remove dedicated-frame; in lisp.
12289
12290         * bytecode.c (funcall_compiled_function):
12291         [1].
12292
12293         * bytecode.c (syms_of_bytecode):
12294         [2].
12295
12296         * console-msw.c:
12297         * console-msw.c (mswindows_show_console): Rewrote.
12298
12299         * console-msw.c (Fmswindows_debugging_output): New.
12300         Sends to OutputDebugString (special MSWin debugger interface).
12301
12302         * console-msw.c (Fmswindows_message_box):
12303         Fixed stupid bugs so it works when called from kill-emacs.
12304
12305         * console-msw.c (syms_of_console_mswindows):
12306         Declare Fmswindows_debugging_output.
12307
12308         * console-msw.h:
12309         New MSWin prototypes.
12310
12311         * console-msw.h (struct mswindows_frame):
12312         New entry last-click-mods for improved button-modifier support.
12313
12314         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12315         New struct entry `popup' with corresponding accessor.
12316
12317         * console-x.c:
12318         * console-x.c (split_up_display_spec):
12319         * console-x.c (get_display_arg_connection):
12320         * console-x.c (x_semi_canonicalize_console_connection):
12321         * console-x.c (x_canonicalize_device_connection):
12322         [[[6]]]: Change char to more specific type.
12323         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12324
12325         * console-x.c (x_semi_canonicalize_console_connection):
12326         * console-x.c (x_canonicalize_device_connection):
12327         [[[9]]]: Fix up error signalling to use new structured error system.
12328
12329         * console-x.h:
12330         [[[4]]]: Define codesys aliases:
12331         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12332         Qx_color_name_encoding, Qx_display_name_encoding.
12333
12334         * console.h (struct console_methods):
12335         New method make_dialog_box_internal supersedes older
12336         popup_dialog_box method.
12337
12338         * data.c:
12339         Define many new errors, part of new structured errors.
12340
12341         * data.c (init_errors_once_early):
12342         * data.c (syms_of_data):
12343         [2].
12344
12345         * device-msw.c (mswindows_init_device):
12346         [[[5]]]: Cleanup to support NT 3.51.
12347
12348         * device-msw.c (decode_devmode): Cleanup.
12349
12350         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12351         * device-msw.c (mswindows_handle_print_dialog_box):
12352         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12353         * device-msw.c (syms_of_device_mswindows):
12354         Delete the dialog box primitives recently introduced by Kirill and
12355         instead interface to general dialog box interface.
12356
12357         * device-x.c:
12358         * device-x.c (compute_x_app_name):
12359         * device-x.c (x_init_device):
12360         * device-x.c (Fx_valid_keysym_name_p):
12361         * device-x.c (Fx_set_font_path):
12362         [6].
12363         [7].
12364
12365         * device.h (wrap_device): New.
12366         First of its kind; meant to replace XSETDEVICE.
12367
12368         * dialog-msw.c: Many file-dialog symbols.
12369
12370         * dialog-msw.c (mswindows_register_popup_frame): New.
12371         * dialog-msw.c (mswindows_is_dialog_msg): New.
12372         For supporting kbd traversal in dialog boxes.
12373
12374         * dialog-msw.c (dialog_proc):
12375         Support hitting ESC in dialogs.
12376
12377         * dialog-msw.c (struct):
12378         Common dialog box errors.
12379
12380         * dialog-msw.c (handle_file_dialog_box): New.
12381         Add file dialog code.
12382
12383         * dialog-msw.c (handle_question_dialog_box):
12384         Redo existing code to support new question dialog syntax.
12385
12386         * dialog-msw.c (console_type_create_dialog_mswindows):
12387         We support new dialog console method.
12388
12389         * dialog-msw.c (syms_of_dialog_mswindows):
12390         * dialog-msw.c (vars_of_dialog_mswindows):
12391         New file dialog symbols, vars.
12392
12393         * dialog-x.c:
12394         * dialog-x.c (maybe_run_dbox_text_callback):
12395         * dialog-x.c (dbox_descriptor_to_widget_value):
12396         * dialog-x.c (x_make_dialog_box_internal):
12397         * dialog-x.c (console_type_create_dialog_x):
12398         Mule-ize entire file.
12399         Redo to support question dialog syntax.
12400         [6].
12401
12402         * dialog.c:
12403         * dialog.c (Fmake_dialog_box_internal):
12404         * dialog.c (syms_of_dialog):
12405         Kill old popup-dialog-box, replace with new primitive.
12406         Just call device method or signal error.
12407
12408         * eldap.c (Fldap_open):
12409         * eldap.c (Fldap_search_basic):
12410         * eldap.c (Fldap_add):
12411         * eldap.c (Fldap_modify):
12412         [1].
12413         [7].
12414
12415         * emacs.c:
12416         * emacs.c (make_arg_list_1):
12417         * emacs.c (make_arg_list):
12418         Mule-ize call to dll_init().
12419         [6].
12420         [8].
12421
12422         * emacs.c (make_argc_argv):
12423         * emacs.c (free_argc_argv):
12424         * emacs.c (init_cmdargs):
12425         * emacs.c (main_1):
12426         * emacs.c (Fkill_emacs):
12427         * emacs.c (Fdump_emacs):
12428         Update comments about what can be used in syms_* etc.
12429         Call init_win32() when necessary.
12430         Fix up MS Win dialog box in kill-buffer to actually work right.
12431         [7].
12432
12433         * eval.c:
12434         * eval.c (For):
12435         * eval.c (Fand):
12436         * eval.c (Fprogn):
12437         * eval.c (Fprog1):
12438         * eval.c (Fprog2):
12439         * eval.c (FletX):
12440         * eval.c (Flet):
12441         * eval.c (condition_case_3):
12442         * eval.c (Feval):
12443         * eval.c (function_argcount):
12444         * eval.c (funcall_lambda):
12445         [1].
12446
12447         * eval.c (type_error): New.
12448         * eval.c (maybe_type_error): New.
12449         * eval.c (continuable_type_error): New.
12450         * eval.c (maybe_continuable_type_error): New.
12451         * eval.c (type_error_with_frob): New.
12452         * eval.c (maybe_type_error_with_frob): New.
12453         * eval.c (continuable_type_error_with_frob): New.
12454         * eval.c (maybe_continuable_type_error_with_frob): New.
12455         New functions for use with structured errors.
12456
12457         * event-Xt.c:
12458         * event-Xt.c (x_event_to_emacs_event):
12459         Buttons are now modifiers too.
12460
12461         * event-Xt.c (emacs_Xt_current_event_timestamp):
12462         Implement new event method.
12463         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12464
12465         * event-msw.c:
12466         * event-msw.c (ntpipe_shove_writer): [5].
12467         * event-msw.c (mswindows_enqueue_mouse_button_event):
12468         * event-msw.c (mswindows_drain_windows_queue):
12469         * event-msw.c (mswindows_wnd_proc): [7].
12470         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12471         * event-msw.c (mswindows_modifier_state):
12472         Throughout: support new button modifiers.
12473
12474         * event-msw.c (emacs_mswindows_current_event_timestamp):
12475         Implement new event method.
12476         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12477
12478         * event-stream.c:
12479         * event-stream.c (event_stream_current_event_timestamp): New.
12480         * event-stream.c (maybe_kbd_translate): New functionality.
12481         * event-stream.c (vars_of_event_stream):
12482         Document new kbd-translate-table functionality.
12483
12484         * event-stream.c (Fcurrent_event_timestamp): New.
12485         New primitive for use in fabricated events.
12486         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12487
12488         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12489
12490         * events.c:
12491         * events.c (Fmake_event):
12492         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12493         [1].
12494         [9].
12495
12496         * events.c (format_event_object): fix gcc warnings.
12497
12498         * events.c (Fevent_timestamp): Document new primitives.
12499
12500         * events.c (TIMESTAMP_HALFSPACE): New.
12501
12502         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12503         comparing timestamps correctly (half-space algorithm).
12504
12505         * events.c (Fevent_modifier_bits): Doc fix.
12506
12507         * events.c (Fevent_modifiers): Major doc addition.
12508         * events.c (event_x_y_pixel_internal): Typo fix.
12509         * events.c (syms_of_events): Declare new primitives.
12510
12511         * events.h:
12512         Update long comment for button modifiers, timestamps.
12513
12514         * events.h (struct event_stream):
12515         New current_event_timestamp method.
12516
12517         * extents.c:
12518         * extents.c (extent_in_region_p):
12519         * extents.c (decode_extent):
12520         * extents.c (Fset_extent_parent):
12521         * extents.c (decode_map_extents_flags):
12522         Fix gcc warnings.
12523         [9].
12524
12525         * extents.c (struct extent_at_arg):
12526         * extents.c (decode_extent_at_flag):
12527         * extents.c (extent_at_mapper):
12528         * extents.c (extent_at_bytind):
12529         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12530         * extents.c (Fextents_at): New primitive. [9].
12531         * extents.c (symbol_to_glyph_layout): [9].
12532         Support new primitive `extents-at'.
12533
12534
12535         * extents.c (get_text_property_bytind):
12536         extent_at_bytind has another arg.
12537         [9].
12538
12539         * extents.c (syms_of_extents): New primitive.
12540
12541         * file-coding.c (Fmake_coding_system): [1].
12542         * file-coding.c (subsidiary_coding_system): fix gcc warning
12543         * file-coding.c (syms_of_file_coding): [2].
12544
12545         * fileio.c (Fexpand_file_name):
12546         * fileio.c (Fsysnetunam):
12547         * fileio.c (Ffile_exists_p):
12548         * fileio.c (Ffile_executable_p):
12549         * fileio.c (Fverify_visited_file_modtime):
12550         Clean up GCPROing.
12551
12552         * fileio.c (syms_of_fileio): [2].
12553
12554         * filelock.c (lock_file_1):
12555         * filelock.c (current_lock_owner):
12556         * filelock.c (lock_if_free):
12557         * filelock.c (lock_file):
12558         * filelock.c (unlock_file):
12559         Clean up GCPROing.
12560
12561         * fns.c (concat): Fix gcc warning.
12562
12563         * fns.c (Fmember):
12564         * fns.c (Fold_member):
12565         * fns.c (Fmemq):
12566         * fns.c (Fold_memq):
12567         * fns.c (memq_no_quit):
12568         * fns.c (Fassoc):
12569         * fns.c (Fold_assoc):
12570         * fns.c (Fassq):
12571         * fns.c (Fold_assq):
12572         * fns.c (assq_no_quit):
12573         * fns.c (Frassoc):
12574         * fns.c (Fold_rassoc):
12575         * fns.c (Frassq):
12576         * fns.c (Fold_rassq):
12577         * fns.c (rassq_no_quit):
12578         * fns.c (Fdelete):
12579         * fns.c (Fold_delete):
12580         * fns.c (Fdelq):
12581         * fns.c (Fold_delq):
12582         * fns.c (delq_no_quit):
12583         * fns.c (Fremassoc):
12584         * fns.c (Fremassq):
12585         * fns.c (remassq_no_quit):
12586         * fns.c (Fremrassoc):
12587         * fns.c (Fremrassq):
12588         * fns.c (remrassq_no_quit):
12589         * fns.c (Freverse):
12590         * fns.c (mapcar1):
12591         [1].
12592
12593         * frame-msw.c (mswindows_init_frame_1):
12594         * frame-msw.c (mswindows_delete_frame):
12595         Register popups with dialog code so keyboard traversing works.
12596
12597         * frame-tty.c (tty_raise_frame_no_select): [1].
12598
12599         * frame-x.c:
12600         * frame-x.c (x_set_frame_text_value):
12601         * frame-x.c (x_set_frame_properties):
12602         * frame-x.c (x_create_widgets):
12603         [7].
12604
12605         * frame.c:
12606         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12607
12608         * frame.h (wrap_frame): New.
12609         Macro like wrap_device.
12610
12611         * general.c:
12612         * general.c (SYMBOL):
12613         * general.c (syms_of_general):
12614         Major reorg.  This is now just a wrapper and symbols themselves
12615         are listed in general-slots.h.
12616
12617         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12618         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12619
12620         * glyphs-msw.c (mswindows_native_layout_instantiate):
12621         Add DS_CONTROL so keyboard traversal will work.
12622
12623         * glyphs-widget.c:
12624         * glyphs-widget.c (syms_of_glyphs_widget):
12625         Move some symbols to general-slots.h.
12626
12627         * glyphs-x.c:
12628         * glyphs-x.c (xbm_instantiate_1):
12629         * glyphs-x.c (x_xbm_instantiate):
12630         * glyphs-x.c (x_xface_instantiate):
12631         * glyphs-x.c (autodetect_instantiate):
12632         * glyphs-x.c (cursor_font_instantiate):
12633         * glyphs-x.c (x_update_widget):
12634         * glyphs-x.c (x_widget_instantiate):
12635         * glyphs.c (bitmap_to_lisp_data):
12636         * glyphs.c (pixmap_to_lisp_data):
12637         [7].
12638
12639         * glyphs.c (syms_of_glyphs):
12640         [2].
12641
12642         * gui-x.c:
12643         * gui-x.c (print_widget_value):
12644         * gui-x.c (menu_separator_style_and_to_external):
12645         * gui-x.c (add_accel_and_to_external):
12646         * gui-x.c (button_item_to_widget_value):
12647         * gui-x.c (gui_items_to_widget_values_1):
12648         * gui-x.c (gui_items_to_widget_values):
12649         * gui-x.c (syms_of_gui_x):
12650         * gui-x.c (vars_of_gui_x):
12651         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12652         [9].
12653
12654         * gui-x.h:
12655         Muleize, prototype changes matching gui-x.c.
12656
12657         * gui.c:
12658         * gui.c (separator_string_p):
12659         * gui.c (gui_item_add_keyval_pair):
12660         * gui.c (make_gui_item_from_keywords_internal):
12661         * gui.c (signal_too_long_error):
12662         * gui.c (parse_gui_item_tree_item):
12663         * gui.c (syms_of_gui):
12664         * gui.c (vars_of_gui):
12665         * gui.h:
12666         menu-no-selection-hook moved here (used by MSWin).
12667         Move some symbols to general-slots.h.
12668         [6].
12669         [9].
12670
12671         * insdel.c (get_buffer_pos_char):
12672         * insdel.c (get_buffer_range_char):
12673         Add GC comments.
12674
12675         * keymap.c (keymap_lookup_directly):
12676         * keymap.c (keymap_store):
12677         * keymap.c (ensure_meta_prefix_char_keymapp):
12678         * keymap.c (describe_map):
12679         * keymap.h:
12680         Support new button modifiers.
12681
12682         * lisp-disunion.h (wrap_object):
12683         * lisp-disunion.h (XSETOBJ):
12684         Rename make_obj to wrap_object.
12685
12686         * lisp-union.h:
12687         * lisp-union.h (make_int):
12688         * lisp-union.h (make_char):
12689         Support wrap_object.
12690
12691         * lisp.h:
12692         * lisp.h (LIST_LOOP):
12693         * lisp.h (EXTERNAL_LIST_LOOP):
12694         * lisp.h (LIST_LOOP_2):
12695         * lisp.h (EXTERNAL_LIST_LOOP_1):
12696         * lisp.h (EXTERNAL_LIST_LOOP_2):
12697         * lisp.h (EXTERNAL_LIST_LOOP_3):
12698         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12699         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12700         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12701         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12702         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12703         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12704         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12705         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12706         * lisp.h (struct Lisp_Symbol):
12707         * lisp.h (maybe_continuable_error_with_frob):
12708         Fix up section comments.
12709         Add new types for char to indicate usage.
12710         Delete symbols auto-generated from general-slots.h.
12711         Add prototypes for structured error functions.
12712         Add long comments describing looping macros and change interface
12713         so that lvalues are automatically declared.
12714         Add NO_DECLARE macro in case callers want to declare lvalues
12715         themselves.
12716
12717         * lread.c (read_syntax_error):
12718         * lread.c (continuable_read_syntax_error):
12719         * lread.c (read_structure):
12720         * lread.c (sequence_reader):
12721         * lread.c (read_list_conser):
12722         * lread.c (read_compiled_function):
12723         Rename syntax_error and continuable_syntax_error to avoid clash
12724         with same-named structured error functions.
12725
12726         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12727         * menubar-msw.c (populate_menu_add_item):
12728         * menubar-msw.c (populate_or_checksum_helper):
12729         [5].
12730         [9].
12731
12732         * menubar-x.c:
12733         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12734         Mule-ize whole file.
12735
12736         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12737
12738         * mule-charset.c (Fmake_charset):
12739         * mule-wnnfns.c (Fwnn_set_param):
12740         [1].
12741
12742         * ntproc.c (create_child):
12743         * ntproc.c (Fwin32_set_current_locale):
12744         Add comments portending doom.
12745
12746         * objects-msw.c:
12747         * objects-msw.c (old_font_enum_callback_2):
12748         * objects-msw.c (font_enum_callback_1):
12749         * objects-msw.c (mswindows_enumerate_fonts):
12750         [5].
12751
12752         * objects-x.c:
12753         * objects-x.c (allocate_nearest_color):
12754         * objects-x.c (x_parse_nearest_color):
12755         * objects-x.c (x_initialize_color_instance):
12756         * objects-x.c (x_print_color_instance):
12757         * objects-x.c (x_finalize_color_instance):
12758         * objects-x.c (x_valid_color_name_p):
12759         * objects-x.c (x_initialize_font_instance):
12760         * objects-x.c (x_print_font_instance):
12761         * objects-x.c (valid_x_font_name_p):
12762         * objects-x.c (truename_via_FONT_prop):
12763         * objects-x.c (truename_via_random_props):
12764         * objects-x.c (truename_via_XListFonts):
12765         * objects-x.c (x_font_truename):
12766         * objects-x.c (x_font_instance_truename):
12767         * objects-x.c (x_font_instance_properties):
12768         * objects-x.c (x_list_fonts):
12769         * objects-x.c (x_find_charset_font):
12770         Mule-ize entire file.
12771         [7].
12772
12773         * objects-x.h:
12774         Mule-verify.
12775
12776         * print.c:
12777         * print.c (std_handle_out_external):
12778         * print.c (debug_print_no_newline):
12779         * print.c (syms_of_print):
12780         Output to all debugger kinds in debug-print.
12781         Fix console-output code under MSWin to actually work.
12782
12783         * process-nt.c (send_signal):
12784         * process-nt.c (nt_create_process):
12785         Use newer Unicode macros.
12786
12787         * process-unix.c (unix_create_process):
12788         * process-unix.c (unix_canonicalize_host_name):
12789         * process-unix.c (unix_open_network_stream):
12790         [7].
12791
12792         * scrollbar-x.c:
12793         Mule-verify.
12794
12795         * search.c (syms_of_search):
12796         [2].
12797
12798         * select-msw.c (mswindows_destroy_selection):
12799         Use LIST_LOOP_2.
12800
12801         * select-x.c (symbol_to_x_atom):
12802         [7].
12803
12804         * select.c (syms_of_select):
12805         [2].
12806
12807         * sound.c (Fplay_sound_file):
12808         [7].
12809
12810         * specifier.c:
12811         * specifier.c (decode_specifier_type):
12812         * specifier.c (Fvalid_specifier_locale_type_p):
12813         * specifier.c (check_valid_locale_or_locale_type):
12814         * specifier.c (decode_locale):
12815         * specifier.c (decode_locale_type):
12816         * specifier.c (decode_locale_list):
12817         * specifier.c (check_valid_domain):
12818         * specifier.c (decode_specifier_tag_set):
12819         * specifier.c (Fcanonicalize_tag_set):
12820         * specifier.c (Fdefine_specifier_tag):
12821         * specifier.c (Fspecifier_tag_predicate):
12822         * specifier.c (check_valid_inst_list):
12823         * specifier.c (check_valid_spec_list):
12824         * specifier.c (decode_how_to_add_specification):
12825         * specifier.c (check_modifiable_specifier):
12826         * specifier.c (specifier_add_spec):
12827         * specifier.c (boolean_validate):
12828         * specifier.c (display_table_validate):
12829         [9].
12830
12831         * specifier.c (syms_of_specifier):
12832         Move some symbols to general-slots.h.
12833         [2].
12834
12835         * symbols.c:
12836         * symbols.c (Fmapatoms):
12837         * symbols.c (Fapropos_internal):
12838         Add GCPROs.
12839
12840         * symbols.c (set_default_buffer_slot_variable):
12841         * symbols.c (set_default_console_slot_variable):
12842         [1].
12843
12844         * symbols.c (defsymbol_massage_name_1):
12845         * symbols.c (defkeyword_massage_name):
12846         * symbols.c (deferror_1):
12847         * symbols.c (deferror):
12848         * symbols.c (deferror_massage_name_and_message):
12849         * symeval.h:
12850         * symeval.h (DEFSYMBOL):
12851         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12852
12853         * symbols.c (syms_of_symbols):
12854         [2].
12855
12856         * symsinit.h:
12857         * symsinit.h (init_win32): New.
12858         Also new is syms_of_dialog_mswindows.
12859
12860         * syswindows.h:
12861         Add new Unicode macros, missing Cygwin wide-char functions,
12862         convenience conversion macros for Qmswindows_tstr, macros for
12863         encapsulating required MSWin <-> Cygwin filename conversions,
12864         prototype for dynamically-extracted (not in NT 3.51) functions.
12865
12866         * toolbar-x.c:
12867         Mule-verify.
12868
12869         * tooltalk.c (Fadd_tooltalk_message_arg):
12870         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12871         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12872         [7].
12873
12874         * tooltalk.c (syms_of_tooltalk):
12875         [2].
12876
12877         * unexnt.c:
12878         * unexnt.c (unexec):
12879         Fix up headers, declaration of unexec() to be more standard.
12880
12881 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12882
12883         * offix.h: Revert change to guard macros - they're used in offix.c!
12884
12885 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12886
12887         * lisp.h: Defsubred Fdelete.
12888
12889         * console-msw.h:  (msprinter_default_printer): Added.
12890
12891         * console-msw.c (msprinter_canonicalize_console_connection):
12892         (msprinter_canonicalize_device_connection): Added.
12893
12894         * device-msw.c (msprinter_default_printer):
12895         (Fmswingows_get_default_printer):
12896         (signal_enum_priner_error):
12897         (Fmswingows_printer_list): Added.
12898
12899 2000-07-19  Martin Buchholz <martin@xemacs.org>
12900
12901         * XEmacs 21.2.35 is released.
12902
12903 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12904
12905         * select-x.c (x_handle_selection_request):
12906         Text selected in xemacs and pasted into xterm failed to appear.
12907         Spelling fixes and cosmetic changes.
12908
12909 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12910
12911         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12912         XEmacs frame (fix for doubling chars in dialog boxes).
12913
12914 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12915
12916         * select.c (select_convert_in, select_convert_out):
12917         Don't call intern() every time.
12918
12919         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12920         * select.c (vars_of_select): Initialise them.
12921
12922 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12923
12924         * select.c (selection-coercible-types): New.
12925
12926         * select.c (own-selection-internal):
12927         * select.c (get-selection-internal):
12928         MULE bug fix - these should default to COMPOUND_TEXT and not
12929         STRING for MULE. I think.
12930
12931         * select.c (select_convert_out): Use selection-coercible-types
12932         to find types that we can attempt to perform coercions on.
12933
12934 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12935
12936         * mule-wnnfns.c:
12937         * mule-canna.c:
12938         Add coding: cookie to identify encoding.
12939
12940         * mule-canna.c (CANNA_mode_keys): make static.
12941         Use proper prototypes, even for functions of no arguments.
12942         Remove external prototype for Fding().
12943
12944         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12945
12946         * select.c (syms_of_select): Add missing DEFSUBR.
12947
12948 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12949
12950         * select.c (get_selection_internal, own_selection_internal):
12951         Make the type default to STRING, rather than placing a nil type
12952         into Vselection_alist.
12953
12954 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12955
12956         * gpmevent.c (tty_selection_exists_p):
12957         * gpmevent.c (tty_own_selection):
12958         Updated parameter lists.
12959
12960 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12961
12962         * select.h (selection-alist): Removed declaration.
12963
12964         * select.h (get_local_selection):
12965         * select.c (get_local_selection):
12966         Made static.
12967
12968         * select.h (convert_selection): Removed declaration.
12969         * select.c (convert_selection): Removed.
12970         This function belongs in Lisp.
12971
12972         * select.h (select_convert_in): Declare.
12973         * select.h (select_convert_out): Declare.
12974         * select.c (select_convert_in): New.
12975         * select.c (select_convert_out): New.
12976         New conversion functions for other files to call.
12977
12978         * select.h (select_notify_buffer_kill): Declare.
12979         * select.c (select_notify_buffer_kill): New.
12980         New functions that get called from kill-buffer.
12981
12982         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12983         X-specific lisp code.
12984
12985         * select.h: Declare some of the lisp-visible functions for
12986         external use.
12987
12988         * select.c (clean_local_selection_data): Removed. This was
12989         a disgusting function, and previously should have been in
12990         select-x.c in any case. The functionality is now provided
12991         in select-convert-from-integer (select.el).
12992
12993         * select.c (available-selection-types): Fixed stupidity where
12994         INTEGER and ATOM got added twice. Also add STRING when we see an
12995         extent.
12996
12997         * select.c (get-selection-internal): Removed symbol stripping. No
12998         longer causes conversion when data comes from the internal cache.
12999
13000         * select.c (syms_of_select): Added new functions.
13001
13002         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
13003         error checking - previously this called abort!
13004
13005         * select-x.c (x_own_selection): Changed comment.
13006
13007         * select-x.c (x_handle_selection_request): Use select_convert_out.
13008         Don't mess with selection-alist; it's an internal variable of select.c.
13009
13010         * select-x.c (x_get_foreign_selection): Use select_convert_in.
13011
13012         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
13013         rather than messing with selection-alist.
13014
13015         * select-msw.c (mswindows_get_foreign_selection):
13016         Use TO_INTERNAL_FORMAT rather than hacking.
13017
13018 2000-07-14  Martin Buchholz  <martin@xemacs.org>
13019
13020         * process-unix.c (unix_open_multicast_group):
13021         (unix_open_multicast_group): Remove useless casts.
13022
13023 2000-07-13  Martin Buchholz  <martin@xemacs.org>
13024
13025         * sound.c (Fplay_sound): Fix `unused variable' warning.
13026
13027         * emacs.c (main): Use correct type for _environ on SCO5.
13028
13029 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
13030
13031         * console.h (own_selection_method):
13032         * console.h (selection_exists_p_method):
13033         * console.h (available_selection_types_method): New.
13034         * console.h (register_selection_data_type_method): New.
13035         * console.h (selection_data_type_name): New.
13036
13037         * console-msw.h (mswindows_destroy_selection): Declare it.  New
13038         function & alist to track GlobalAlloc()'d handles that need
13039         releasing when the clipboard data gets replaced or emptied.
13040
13041         * event-msw.c (mswindows_wnd_proc): Call it.
13042
13043         * lisp.h, general.c (Qappend): New symbol representing a
13044         `how-to-add' mode.
13045
13046         * select.c (own-selection-internal):
13047         * select.c (selection-exists-p):
13048         * select.c (available-selection-types): New.
13049         * select.c (register-selection-data-type): New.
13050         * select.c (selection-data-type-name): New.  New functions to deal
13051         with device-specific selection data formats.
13052         * select.c (selection-converter-out-alist): Renamed.
13053         * select.c (selection-converter-in-alist): New.
13054         * select.c (selection-appender-alist): New.  Added new alists.
13055         * select.c (syms_of_select, vars_of_select): Added new symbols &
13056         variables.
13057         * select.c (get_local_selection): Split.
13058         * select.c: Removed spurious type checking - selections may now be
13059         of any type, not just strings.
13060         * select.c (own-selection-internal):
13061
13062         * select.h, select.c (convert_selection): New. Created
13063         convert_selection() function based on get_local_selection().
13064         * select.h, select.c (QCF_*): New symbols representing mswindows
13065         clipboard formats.
13066         * select.h, select.c (Qreplace_all, Qreplace_existing): New
13067         symbols representing `how-to-add' modes.
13068
13069         * select-msw.c (x_sym_p): New.
13070         * select-msw.c (symbol_to_ms_cf): New.
13071         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
13072         symbols & clipboard formats. Can also handle string names.
13073         * select-msw.c (mswindows_own_selection):
13074         * select-msw.c (mswindows_selection_exists_p):
13075         Added `data-type' parameter. Use it.
13076         * select-msw.c (mswindows_available_selection_types): New.
13077         * select-msw.c (mswindows_register_selection_data_type): New.
13078         * select-msw.c (mswindows_selection_data_type_name): New.
13079         * select-msw.c (mswindows_own_selection):
13080         * select-msw.c (mswindows_get_foreign_selection):
13081         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
13082         * select-msw.c (console_create_select_mswindows): Added new methods.
13083         * select-msw.c (mswindows_destroy_selection): New.
13084         * select-msw.c (Vhandle_alist): New list.
13085         * select-msw.c (mswindows_own_selection):
13086
13087         * select-x.c (x_own_selection):
13088         * select-x.c (x_selection_exists_p):
13089         * select-x.c: Added some comments about maybe using new
13090         functionality.
13091         * select-x.c (x_own_selection):
13092
13093         * specifier.c: Remove definition of Qappend (now in general.c)
13094         * specifier.c (syms_of_specifier): Remove Qappend.
13095
13096 2000-07-12  Martin Buchholz  <martin@xemacs.org>
13097
13098         * config.h.in: Add socklen_t.
13099
13100         * s/decosf4-0.h: No special compiler flags needed or desired.
13101         In particular, undefine _BSD for DEC OSF 4.0.
13102
13103 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13104
13105         * redisplay-msw.c (msprinter_frame_output_end): Added.
13106         (console_type_create_redisplay_mswindows): Referred the above.
13107
13108         * frame.c (setup_frame_without_minibuffer): Do not create a
13109         default minibuffer frame on a printer device.
13110
13111         * frame-msw.c (apply_dc_geometry): Added.
13112         (msprinter_start_page):
13113         (msprinter_init_frame_3):
13114         (msprinter_eject_page): Use it.
13115
13116         * console-msw.h (struct msprinter_frame): Added pix_left and top,
13117         and removed residual duplex and orientation properties.
13118
13119 2000-07-11  Martin Buchholz  <martin@xemacs.org>
13120
13121         * eval.c (function_argcount): Work around a DEC CC compiler bug.
13122
13123         * unexalpha.c: Remove system prototypes from C sources!
13124
13125 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
13126
13127         * eval.c: Remove references to M-x edit-options in DEFUNs for
13128         `defvar' and `defconst'.
13129
13130 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13131
13132         * config.h.in: Remove SMART_INCLUDE hackery.
13133
13134         PostgreSQL hacking:
13135         * config.h.in: Don't use SMART_INCLUDE.
13136
13137         * postgresql.h: Include libpq-fe.h here.  Fix typo.
13138         * inline.c: Simply #include "postgresql.h"
13139         * postgresql.c:
13140         - Don't use SMART_INCLUDE
13141         - Use simply "const".
13142         - Use standard doc string conventions.
13143         - Use correct type for result of PQstatus.
13144
13145 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13146
13147         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
13148
13149         C++ compilation changes.
13150         * config.h.in (EXTERN_C): Define.
13151         * config.h.in (not): This is also a C++ keyword.
13152         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
13153         * cm.c: Use EXTERN_C.
13154         * redisplay-tty.c: Use EXTERN_C.
13155         * sysdep.c: Use EXTERN_C.  Remove Gould support.
13156
13157 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13158
13159         * general.c: Remove duplicate definition for Qfunction.
13160
13161 2000-07-08  Ben Wing  <ben@xemacs.org>
13162
13163         * device-msw.c (msprinter_init_device):
13164         * device-msw.c (sync_printer_with_devmode):
13165         * device-msw.c (handle_devmode_changes):
13166         * device-msw.c (print_dialog_worker):
13167         * device-msw.c (Fmsprinter_apply_settings):
13168         * device-msw.c (hash_devmode):
13169         * device-msw.c (Fmsprinter_settings_despecialize):
13170         use Qmswindows_tstr, not Qctext.
13171
13172         * vm-limit.c (check_memory_limits):
13173         avoid infinite loop printing warning messages.
13174
13175 2000-07-05  Craig Lanning  <lanning@scra.org>
13176
13177         * Makefile.in.in: Add support for including the Windows resources
13178         when building with the cygwin and mingw targets.
13179
13180         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
13181         not set or not correct.
13182         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
13183         (init_initial_directory): Don't try to use $PWD on the
13184         WIN32_NATIVE target.
13185
13186         * s\cygwin32.h:
13187         [[Add -mwindows to eliminate console window.]] not required --ben
13188         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13189         (MAIL_USE_POP): removed; now handled by configure.
13190
13191         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
13192         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
13193         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13194         (MAIL_USE_POP): removed; now handled by configure.
13195         (ENCAPSULATE_STAT): from Dan Holmsand, added.
13196         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
13197         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
13198         constant string.
13199         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
13200         up from <winsock.h> via systime.h.
13201         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
13202         (getpagesize): from Dan Holmsand, added.
13203         Added #endif which was left dangling by Ben's mega patch; added
13204         comment to help prevent this in the future.
13205
13206         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
13207
13208 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13209
13210         * console-msw.h (struct mswindows_device): Removed unnecessary
13211         cached device geometry values.
13212         Added update_tick and an accessor macro.
13213         (Lisp_Devmode): Added lrecord declaration.
13214         (struct msprinter_device): Contain devmode as a Lisp object.
13215         Added mswindows_get_selected_frame_hwnd();
13216
13217         * console.h (struct console_methods): Indentation nitpicking.
13218
13219         * device-msw.c (mswindows_init_device): Do not initialize geometry
13220         cache. Initialize update tick.
13221         (mswindows_device_system_metrics): Ask the device for its geometry.
13222         (global_free_2_maybe):
13223         (devmode_to_hglobal):
13224         (handle_printer_changes):
13225         (ensure_not_printing):
13226         (print_dialog_worker):
13227         (Fmsprinter_print_setup_dialog):
13228         (Fmsprinter_print_dialog):
13229         (plist_get_margin):
13230         (plist_set_margin):
13231         (Fmsprinter_page_setup_dialog): Added functions.
13232         (sync_printer_with_devmode):
13233         (handle_devmode_changes):
13234         (Fmsprinter_get_settings):
13235         (Fmsprinter_select_settings):
13236         (Fmsprinter_apply_settings):
13237         (allocate_devmode):
13238         (Fmsprinter_settings_copy):
13239         (Fmsprinter_settings_despecialize):
13240         (print_devmode):
13241         (finalize_devmode):
13242         (equal_devmode):
13243         (hash_devmode): Added functions
13244         (syms_of_device_mswindows): Init devmode lrecord class.
13245
13246         * device.h: Added an exfun for find-device.
13247
13248         * event-msw.c (mswindows_wnd_proc): Do not update the cached
13249         geometry; although, recreate the device compatible DC.
13250
13251         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13252         (msprinter_init_frame_3):
13253         (msprinter_frame_property):
13254         (msprinter_internal_frame_property_p):
13255         (msprinter_frame_properties):
13256         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13257         print job properties (will move to device settings).
13258
13259         * lisp.h: Added symbols.
13260
13261         * general.c (syms_of_general): Declared them.
13262
13263         * hash.c (string_hash): Added.
13264
13265         * lrecord.h (lrecord_type): Added devmode lrecord type.
13266
13267 2000-07-02  Mike Sperber <mike@xemacs.org>
13268
13269         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13270         FreeBSD 4.0.
13271
13272 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13273
13274         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13275         integer.
13276
13277 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13278
13279         * data.c (Fstring_to_number): Don't recognize floating point if
13280         base is not 10.
13281
13282 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13283
13284         * glyphs-widget.c (tab_control_query_geometry):
13285         (widget_query_geometry):
13286         (button_query_geometry):
13287         * glyphs.c (text_query_geometry):
13288         Enforce type correctness.
13289
13290 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13291
13292         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13293         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13294
13295 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13296
13297         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13298         conflicts with gcc's fixincluded version of FOO.h.
13299
13300         * glyphs.h (image_instance_geometry): Remove trailing `,'
13301
13302 2000-06-08  Mike Alexander  <mta@arbortext.com>
13303
13304         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13305         (shove_thread): Don't write the same output twice
13306         (make_ntpipe_output_stream): Increase priority of shove thread
13307         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13308         chance to run
13309         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13310         it.
13311
13312 2000-06-12  Ben Wing  <ben@xemacs.org>
13313
13314         * s\mingw32.h (sigset):
13315         * s\windowsnt.h (sigset):
13316         rename msw_ to mswindows_ for consistency with general convention.
13317
13318 2000-06-12  Ben Wing  <ben@xemacs.org>
13319
13320         * console-msw.c:
13321         * console-msw.c (mswindows_get_console_hwnd):
13322         * console-msw.c (mswindows_ensure_console_allocated):
13323         * console-msw.c (mswindows_hide_console):
13324         * console-msw.c (mswindows_show_console):
13325         * console-msw.c (mswindows_ensure_console_buffered):
13326         * console-msw.c (mswindows_output_console_string):
13327         * console-msw.c (mswindows_windows9x_p):
13328         * console-msw.h:
13329         * device-msw.c (mswindows_get_workspace_coords):
13330         * device-msw.c (mswindows_device_system_metrics):
13331         * dialog-msw.c (mswindows_popup_dialog_box):
13332         * event-msw.c (mswindows_wnd_proc):
13333         * frame-msw.c (mswindows_size_frame_internal):
13334         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13335         * menubar-msw.c (displayable_menu_item):
13336         * menubar-msw.c (mswindows_char_is_accelerator):
13337         * nt.c:
13338         * nt.c (mswindows_sigset):
13339         * nt.c (mswindows_sigrelse):
13340         * nt.c (mswindows_sigpause):
13341         * nt.c (mswindows_raise):
13342         * nt.c (timer_proc):
13343         * ntproc.c:
13344         * ntproc.c (find_child_console):
13345         * ntproc.c (sys_kill):
13346         * print.c:
13347         * print.c (std_handle_out_external):
13348         * process-nt.c (find_child_console):
13349         * process-nt.c (send_signal_the_95_way):
13350         * process-nt.c (ensure_console_window_exists):
13351         * process-nt.c (nt_create_process):
13352         * syssignal.h:
13353         rename msw_ to mswindows_ for consistency with general convention.
13354
13355         * emacs.c:
13356         * dumper.c:
13357         include nt.h, not syswindows.h.
13358
13359         * nt.c (mswindows_fstat):
13360         * nt.c (mswindows_stat):
13361         prefix mswindows_ instead of attempting to directly override the
13362         library functions.  fix declarations.
13363
13364         * nt.h:
13365         include syswindows.h.  move some sysdep.h stuff here.
13366
13367         * ntheap.h:
13368         include syswindows.h, not <windows.h>.
13369
13370         * ntplay.c:
13371         clean up headers.
13372
13373         * sysdep.c:
13374         clean up headers.
13375
13376         * sysdep.c (sys_fstat):
13377         * sysdep.c (sys_stat):
13378         call mswindows versions when appropriate.
13379
13380         * sysdep.h:
13381         move mswin decls to nt.h.
13382
13383         * syswindows.h:
13384         add long comment describing appropriate use of the various windows
13385         headers.
13386
13387 2000-06-11  Ben Wing  <ben@xemacs.org>
13388
13389         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13390
13391 2000-06-10  Ben Wing  <ben@xemacs.org>
13392
13393         * Makefile.in.in (release):
13394         Correction to make sure xemacs.exe always dumped when correct.
13395
13396         * alloca.c:
13397         * balloon_help.c:
13398         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13399
13400         * buffer.c (set_buffer_internal):
13401         [[[[2]]]]: Remove HAVE_FEP code.
13402
13403         * buffer.c (init_initial_directory):
13404         [3].
13405
13406         * bytecode.c:
13407         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13408         individual files.
13409
13410         * callproc.c:
13411         * callproc.c (call_process_cleanup):
13412         * callproc.c (Fold_call_process_internal):
13413         * callproc.c (child_setup):
13414         * callproc.c (getenv_internal):
13415         * callproc.c (init_callproc):
13416         * callproc.c (vars_of_callproc):
13417         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13418         __CYGWIN32__ -> CYGWIN.
13419         DOS_NT -> WIN32_NATIVE.
13420         Remove MSDOS support/references, converting to WIN32_NATIVE
13421           where correct.
13422         __MINGW32__ -> MINGW.
13423         Fix windows.h includes.
13424         Remove bogus HAVE_NTGUI.
13425
13426         * config.h.in:
13427         [2].
13428
13429         * console-msw.c:
13430         mswindows_message_outputted added for use in allowing startup
13431         errors on the console to be seen.
13432
13433         * console-msw.c (msw_ensure_console_allocated):
13434         * console-msw.c (msw_output_console_string):
13435         * console-msw.c (DHEADER):
13436         * console-msw.c (DOPAQUE_DATA):
13437         * console-msw.c (DEVENT):
13438         * console-msw.c (DCONS):
13439         * console-msw.c (DCONSCDR):
13440         * console-msw.c (DSTRING):
13441         * console-msw.c (DVECTOR):
13442         * console-msw.c (DSYMBOL):
13443         * console-msw.c (DSYMNAME):
13444         Fix warnings.
13445
13446         * console-stream.c (stream_init_console):
13447         Fix text/binary problems.
13448
13449         * device-msw.c:
13450         * device-msw.c (mswindows_finish_init_device):
13451         * device-msw.c (mswindows_delete_device):
13452         [1].
13453
13454         * device.c (handle_asynch_device_change):
13455         [3].
13456
13457         * dgif_lib.c:
13458         * dgif_lib.c (DGifOpenFileName):
13459         * dgif_lib.c (DGifOpenFileHandle):
13460         * dgif_lib.c (DGifGetLine):
13461         * dgif_lib.c (DGifGetPixel):
13462         Added config.h/lisp.h, fix up includes.
13463         [1].
13464
13465         * dired-msw.c:
13466         [4].
13467
13468         * dired.c:
13469         * dired.c (file_name_completion):
13470         * dired.c (Ffile_attributes):
13471         * dired.c (syms_of_dired):
13472         [1].
13473
13474         * dumper.c:
13475         * dumper.c (pdump_file_unmap):
13476         * dumper.c (pdump_load):
13477         [1].
13478
13479         * editfns.c:
13480         * editfns.c (Ftemp_directory):
13481         * editfns.c (user_login_name):
13482         * editfns.c (Fuser_real_login_name):
13483         * editfns.c (get_home_directory):
13484         [1].
13485
13486         * elhash.c (finish_marking_weak_hash_tables):
13487         [[[[5]]]]: Fix GCC warnings.
13488
13489         * emacs.c:
13490         * emacs.c (mswindows_handle_hardware_exceptions):
13491         * emacs.c (make_arg_list_1):
13492         * emacs.c (main_1):
13493         * emacs.c (Fkill_emacs):
13494         * emacs.c (Fdump_emacs):
13495         [1].
13496         Fix problems with nested crashes, add long comment.
13497
13498         * event-Xt.c (init_event_Xt_late):
13499         [1].
13500
13501         * event-msw.c:
13502         * event-msw.c (mswindows_dde_callback):
13503         * event-msw.c (mswindows_handle_sticky_modifiers):
13504         * event-msw.c (mswindows_wnd_proc):
13505         [1].
13506         [5].
13507
13508         * events.c (character_to_event):
13509         [1].
13510
13511         * fileio.c:
13512         * fileio.c (Ffile_name_directory):
13513         * fileio.c (Ffile_name_nondirectory):
13514         * fileio.c (directory_file_name):
13515         * fileio.c (Fexpand_file_name):
13516         * fileio.c (Fsubstitute_in_file_name):
13517         * fileio.c (Ffile_name_absolute_p):
13518         * fileio.c (check_executable):
13519         * fileio.c (Ffile_readable_p):
13520         * fileio.c (Ffile_accessible_directory_p):
13521         * fileio.c (Ffile_modes):
13522         * fileio.c (Funix_sync):
13523         * fileio.c (vars_of_fileio):
13524         [1]. [4].
13525
13526         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13527
13528         Expand getdefdir defn.
13529         Fix bogus rename() comment.
13530
13531         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13532         to use standard XEmacs include files, e.g. sysfile.h, rather
13533         than system-specific includes.
13534
13535         * fns.c:
13536         * fns.c (Fsubseq):
13537         [5]. [6].
13538
13539         * frame.c (vars_of_frame):
13540         [1].
13541
13542         * getloadavg.c:
13543         * getloadavg.c (getloadavg):
13544         [1]. [6].
13545         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13546         (We don't use it elsewhere in the code; just add a comment.)
13547
13548         * gif_io.c:
13549         [6].
13550         Add config.h.
13551
13552         * glyphs-msw.c:
13553         * glyphs-msw.c (mswindows_resource_instantiate):
13554         [1].
13555
13556         * glyphs-x.c (x_native_layout_instantiate):
13557         [5].
13558
13559         * gui-msw.c (Fmswindows_shell_execute):
13560         [1].
13561
13562         * insdel.c:
13563         [4].
13564
13565         * lisp.h:
13566         [4]. [5].
13567
13568         * lread.c (locate_file_in_directory_mapper):
13569         [1].
13570
13571         * lstream.c:
13572         [4].
13573
13574         * mem-limits.h:
13575         * mem-limits.h (get_lim_data):
13576         [1].
13577
13578         * menubar-msw.c:
13579         [4].
13580
13581         * ndir.h:
13582         [1].
13583
13584         * nt.c:
13585         * nt.c (getwd):
13586         * nt.c (closedir):
13587         * nt.c (rva_to_section):
13588         * nt.c (mswindows_executable_type):
13589         [1]. [6].
13590         Fix closedir() defn.
13591
13592         * nt.h:
13593         [[[[8]]]]: *_OK defs moved to sysfile.h.
13594
13595         * ntproc.c:
13596         [6]. [7].
13597
13598         * objects-x.c:
13599         [4].
13600
13601         * print.c:
13602         * print.c (std_handle_out_external):
13603         [1]. [4].
13604
13605         * process-nt.c:
13606         * process-nt.c (nt_create_process):
13607         [6].
13608         try to fix process quoting somewhat.
13609
13610         * process-unix.c (unix_create_process):
13611         [1].
13612
13613         * process.c:
13614         * process.c (vars_of_process):
13615         Add Vnull_device.
13616
13617         * process.h:
13618         [1].
13619
13620         * realpath.c:
13621         * realpath.c (xrealpath):
13622         [1].
13623
13624         * redisplay-tty.c (init_tty_for_redisplay):
13625         [3].
13626
13627         * redisplay.c:
13628         [4]. [6].
13629
13630         * scrollbar-msw.c:
13631         [4].
13632
13633         * sheap.c:
13634         * sheap.c (more_static_core):
13635         * sheap.c (report_sheap_usage):
13636         [5]. [6].
13637
13638         * signal.c:
13639         * signal.c (alarm_signal):
13640         [1]. [6].
13641
13642         * sound.c:
13643         [6].
13644
13645         * strftime.c:
13646         * strftime.c (zone_name):
13647         [1]. [5].
13648
13649         * symsinit.h (init_sunpro):
13650         [1].
13651
13652         * syscommctrl.h:
13653         commctrl.h not in Cygwin b20.1.
13654
13655         * sysdep.c:
13656         * sysdep.c (endif):
13657         * sysdep.c (sys_subshell):
13658         * sysdep.c (init_baud_rate):
13659         * sysdep.c (emacs_get_tty):
13660         * sysdep.c (emacs_set_tty):
13661         * sysdep.c (tty_init_sys_modes_on_device):
13662         * sysdep.c (init_system_name):
13663         * sysdep.c (sys_open):
13664         * sysdep.c (interruptible_open):
13665         * sysdep.c (sys_fopen):
13666         * sysdep.c (sys_mkdir):
13667         * sysdep.c (sys_rename):
13668         * sysdep.c (get_process_times_1):
13669         [1]. [6].
13670
13671         * sysdep.h:
13672         [1].
13673
13674         * sysdir.h:
13675         * sysdir.h (DIRENTRY_NONEMPTY):
13676         [1]. [6].
13677
13678         * sysdll.c (dll_init):
13679         * sysdll.h:
13680         [1].
13681
13682         * sysfile.h:
13683         [1]. [6]. [8].
13684         added text/binary defs.
13685
13686         * sysfloat.h:
13687         [1].
13688
13689         * sysproc.h:
13690         * sysproc.h (EDESTADDRREQ):
13691         * sysproc.h (poll_fds_for_input):
13692         [1]. [6].
13693
13694         * syspwd.h:
13695         [6].
13696
13697         * syssignal.h:
13698         [1].
13699
13700         * systime.h:
13701         [1]. [6].
13702
13703         * systty.h:
13704         [1].
13705
13706         * syswindows.h:
13707         [1].
13708         Always define WIN32_LEAN_AND_MEAN.
13709
13710         * unexcw.c (unexec):
13711         [5].
13712
13713         * unexec.c:
13714         * unexec.c (copy_text_and_data):
13715         * unexec.c (adjust_lnnoptrs):
13716         [1].
13717
13718         * unexnt.c:
13719         * unexnt.c (_start):
13720         [1].
13721
13722 2000-06-07  Ben Wing  <ben@xemacs.org>
13723
13724         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13725         was used only as a model.  We've long since extracted any useful
13726         logic or code out of this. (I just did an exhaustive search.)
13727
13728         * s\msdos.h: Removed.
13729
13730         * s\windows95.h: Removed.
13731
13732 2000-06-10  Ben Wing  <ben@xemacs.org>
13733
13734         * s\cygwin32.h:
13735         [1]. [5].
13736         Don't use extern with fun defs.
13737
13738         * s\mingw32.h:
13739         [1]. [7].
13740         Remove nt\inc include.
13741         Remove getdisk, getdefdir. (The former is unused, the latter
13742         expanded in fileio.h.)
13743
13744         * s\windowsnt.h:
13745         * s\windowsnt.h (WIN32_NATIVE):
13746         * s\windowsnt.h (HAVE_STRCASECMP):
13747         [1]. [7].
13748         Add long comment about preprocessor changes.
13749         Remove getdisk, getdefdir. (The former is unused, the latter
13750         expanded in fileio.h.)
13751
13752 2000-06-10  Ben Wing  <ben@xemacs.org>
13753
13754         * m\arm.h:
13755         * m\delta.h:
13756         * m\intel386.h:
13757         * m\sequent.h:
13758         * m\template.h:
13759         * m\windowsnt.h:
13760         [1].
13761         Remove bogus/unused NO_SOCK_SIGIO.
13762
13763 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13764
13765         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13766         not an Emchar.
13767
13768 2000-06-04  Mike Sperber <mike@xemacs.org>
13769
13770         * casetab.c (set_case_table): For `set-standard-case-table',
13771         actually deposit the new case tables where the rest of XEmacs can
13772         see them.
13773
13774 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13775
13776         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13777
13778 2000-06-05  Ben Wing  <ben@xemacs.org>
13779
13780         * callproc.c (child_setup): Don't do close_load_descs() under
13781         MS Windows.  Put in a comment explaining why.
13782
13783 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13784
13785         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13786         Toolkit shell" which breaks `kill-compilation' on Windows NT
13787         native, retaining STDERR handling improvements.
13788
13789 2000-06-01  Andreas Jaeger  <aj@suse.de>
13790
13791         * s/s390.h: Support for S390, based on a patch by Martin
13792         Schwidefsky <schwidefsky@de.ibm.com>.
13793
13794 2000-05-30  Andy Piper  <andy@xemacs.org>
13795
13796         * window.c (allocate_window):
13797         (make_dummy_parent):
13798         (Fset_window_configuration): use new hashtable type.
13799
13800         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13801         (struct image_instantiator_methods):
13802         (struct Lisp_Image_Instance): make instance geometry signed.
13803
13804         * glyphs.c (instantiate_image_instantiator):
13805         (image_instance_query_geometry):
13806         (image_instance_layout):
13807         (image_instance_layout):
13808         (query_string_geometry):
13809         (text_query_geometry):
13810         (image_instantiate):
13811         (image_instantiate):
13812         (cache_subwindow_instance_in_frame_maybe):
13813         (subwindow_query_geometry): make instance geometry signed.
13814
13815         * glyphs-widget.c (widget_query_geometry):
13816         (widget_layout):
13817         (button_query_geometry):
13818         (tree_view_query_geometry):
13819         (tab_control_query_geometry):
13820         (layout_query_geometry):
13821         (layout_layout):
13822         (native_layout_layout): make instance geometry signed.
13823
13824 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13825
13826         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13827         constant.
13828
13829         * general.c (syms_of_general): Add Qfull_assoc symbol.
13830
13831         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13832         correctly.
13833         (decode_weak_list_type): Decode full-assoc type.
13834         (encode_weak_list_type): Encode full-assoc type.
13835         (Fmake_weak_list): Update doc string.
13836
13837 2000-05-30  Andy Piper  <andy@xemacs.org>
13838
13839         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13840
13841         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13842         (decode_hash_table_weakness): ditto.
13843         (Fhash_table_weakness): ditto.
13844         (Fhash_table_type): ditto.
13845         (finish_marking_weak_hash_tables): ditto.
13846         (hash_table_weakness_validate): ditto.
13847         (syms_of_elhash): ditto.
13848
13849 2000-05-28  Martin Buchholz <martin@xemacs.org>
13850
13851         * XEmacs 21.2.34 is released.
13852
13853 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13854
13855         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13856         start cache.
13857         (updating_line_start_cache): Gone.
13858         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13859         generic code to force a minimum of 1 line laid out in the
13860         CMOTION_DISP case.
13861
13862 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13863
13864         * glyphs.c (instantiate_image_instantiator): Check for initialized
13865         height & width no longer special cases IMAGE_NOTHING.
13866         (nothing_instantiate): Set height and width of instance.
13867
13868 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13869
13870         * unexelf.c (unexec): Search for ".data" section.
13871         Initialize new_data2_offset from old_data_index.
13872         Remove redundant check for ElfW.
13873
13874 2000-05-23  Andy Piper  <andy@xemacs.org>
13875
13876         * glyphs.c (get_image_instantiator_governing_domain): allow more
13877         specific domains as the governing domain rather than expecting an
13878         exact match. This fixes problems with layouts.
13879
13880 2000-05-22  Andy Piper  <andy@xemacs.org>
13881
13882         * redisplay-output.c (compare_runes): check for non-images
13883
13884         * glyphs.c (set_glyph_dirty_p): ditto.
13885         (update_glyph_cachel_data): ditto.
13886
13887         * glyphs-widget.c (layout_post_instantiate): ditto.
13888         (layout_post_instantiate): ditto.
13889
13890         * event-msw.c (mswindows_wnd_proc): warning removal.
13891
13892 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13893
13894         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13895
13896         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13897
13898         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13899
13900         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13901         (mswindows_executable_type): mingw32 now has enough headers for
13902         this to work.
13903
13904 2000-05-20  Andy Piper  <andy@xemacs.org>
13905
13906         * console-msw.c (mswindows_output_last_error): ; -> ,
13907
13908 2000-05-12  Andy Piper  <andy@xemacs.org>
13909
13910         * console-msw.c (FROB): compare ints with ints.
13911
13912 2000-05-11  Andy Piper  <andy@xemacs.org>
13913
13914         * glyphs-x.c (x_finalize_image_instance): make minimal build
13915         happy.
13916
13917 2000-05-20  Ben Wing  <ben@xemacs.org>
13918
13919         * event-Xt.c:
13920         * event-Xt.c (vars_of_event_Xt):
13921         move modifier-keys-are-sticky to event-stream.c.
13922
13923         * event-msw.c:
13924         * event-msw.c (mswindows_enqueue_mouse_button_event):
13925         * event-msw.c (key_needs_default_processing_p):
13926         * event-msw.c (XEMSW_LCONTROL):
13927         * event-msw.c (mswindows_handle_sticky_modifiers):
13928         * event-msw.c (FROB):
13929         * event-msw.c (clear_sticky_modifiers):
13930         * event-msw.c (output_modifier_keyboard_state):
13931         * event-msw.c (output_alt_keyboard_state):
13932         * event-msw.c (mswindows_wnd_proc):
13933         * event-msw.c (mswindows_modifier_state):
13934         * event-msw.c (emacs_mswindows_handle_magic_event):
13935         implement sticky modifiers.
13936
13937         * event-stream.c:
13938         * event-stream.c (vars_of_event_stream):
13939         move modifier-keys-are-sticky here.
13940
13941         * lisp.h:
13942         add CHECK_FUNCTION.
13943
13944         * rangetab.c:
13945         implement map-range-table.
13946
13947
13948 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13949
13950         * redisplay-tty.c (reset_tty_modes):
13951         (tty_redisplay_shutdown): Adjust argument type to
13952         tty_frame_output_end.
13953
13954 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13955
13956         * eval.c (Fbacktrace): Don't output a line with only right
13957         parenthesis.
13958
13959 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13960
13961         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13962         (Fpq_reset_poll): Ditto.
13963
13964 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13965
13966         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13967
13968 2000-05-16  Ben Wing  <ben@xemacs.org>
13969
13970         * buffer.c:
13971         * buffer.c (dfc_convert_to/from_internal_format):
13972         * buffer.c (reinit_vars_of_buffer):
13973         Fix conversion functions to allow reentrancy.
13974
13975         * console-msw.c:
13976         * console-msw.c (mswindows_output_last_error):
13977         New fun, generally useful -- output a human-readable
13978         version of GetLastError() on the console.
13979
13980         * console-msw.h:
13981         * console-msw.h (struct mswindows_frame):
13982         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13983
13984         * console-stream.c (stream_output_begin):
13985         * console-stream.c (stream_output_end):
13986         * console-stream.c (stream_output_vertical_divider):
13987         * console-stream.c (stream_clear_region):
13988         * console-stream.c (stream_flash):
13989         * console-stream.c (console_type_create_stream):
13990         Delete blank stream methods, not needed.
13991
13992         * console.h (struct console_methods):
13993         Split begin/end methods into window and frame.
13994
13995         * event-msw.c:
13996         * event-msw.c (mswindows_handle_paint):
13997         * event-msw.c (output_alt_keyboard_state):
13998         * event-msw.c (mswindows_wnd_proc):
13999         * event-msw.c (vars_of_event_mswindows):
14000         Comment about problems with ignored-expose.
14001         Define mswindows-debug-events; not really implemented.
14002
14003         * frame-msw.c (mswindows_init_frame_1):
14004         random cleanups.
14005
14006         * glyphs-msw.c:
14007         * glyphs-msw.c (begin_defer_window_pos):
14008         * glyphs-msw.c (mswindows_unmap_subwindow):
14009         * glyphs-msw.c (mswindows_map_subwindow):
14010         * glyphs-msw.c (mswindows_resize_subwindow):
14011         Use DeferWindowPos to reduce flashing when mapping/unmapping.
14012
14013         * glyphs.c (make_image_instance_1):
14014         Fix crash.
14015
14016         * gutter.c (Fredisplay_gutter_area):
14017         Use new begin/end methods.
14018
14019         * lisp.h (Dynarr_new2):
14020         New creation fun.
14021
14022         * redisplay-msw.c:
14023         * redisplay-msw.c (mswindows_frame_output_begin):
14024         * redisplay-msw.c (mswindows_frame_output_end):
14025         * redisplay-msw.c (console_type_create_redisplay_mswindows):
14026         New begin/end methods -- handle DeferWindowPos.
14027
14028         * redisplay-output.c (redisplay_move_cursor):
14029         * redisplay-output.c (redraw_cursor_in_window):
14030         * redisplay-output.c (redisplay_update_line):
14031         * redisplay-output.c (redisplay_output_window):
14032         New begin/end methods.
14033
14034         * redisplay-tty.c:
14035         * redisplay-tty.c (tty_frame_output_begin):
14036         * redisplay-tty.c (tty_frame_output_end):
14037         * redisplay-tty.c (console_type_create_redisplay_tty):
14038         New begin/end methods.
14039
14040         * redisplay-x.c:
14041         * redisplay-x.c (x_window_output_begin):
14042         * redisplay-x.c (x_window_output_end):
14043         * redisplay-x.c (console_type_create_redisplay_x):
14044         New begin/end methods.
14045
14046         * redisplay.c (redisplay_frame):
14047         * redisplay.c (Fredisplay_echo_area):
14048         New begin/end methods.
14049         use MAYBE_DEVMETH for clear_frame; it may not exist.
14050
14051         * window.h (WINDOW_XFRAME):
14052         WINDOW_XFOO macros -- get locale and decode struct pointer.
14053
14054
14055 2000-05-12  Ben Wing  <ben@xemacs.org>
14056
14057         * emacs.c:
14058         * emacs.c (ensure_no_quitting_from_now_on):
14059         * emacs.c (fatal_error_signal):
14060         * emacs.c (mswindows_handle_hardware_exceptions):
14061         * emacs.c (main):
14062         * emacs.c (Fkill_emacs):
14063         * emacs.c (shut_down_emacs):
14064         * emacs.c (assert_failed):
14065         various improvements in fatal error handling.
14066
14067         * eval.c:
14068         move preparing_for_armageddon to emacs.c.
14069
14070         * lisp.h:
14071         declare fatal_error_in_progress.
14072
14073         * print.c:
14074         * print.c (std_handle_out_external):
14075         * print.c (std_handle_out_va):
14076         * print.c (stderr_out):
14077         * print.c (stdout_out):
14078         use console under mswin when no standard output.
14079         don't do code conversion during fatal error.
14080
14081         * scrollbar.c (Fscrollbar_page_up):
14082         * scrollbar.c (Fscrollbar_page_down):
14083         fix missing else.  reindent.
14084
14085 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
14086
14087         Emergency fix.
14088
14089         * glyphs.h (GLYPH_CACHEL_DESCENT):
14090         (GLYPH_CACHEL_DESCENT):
14091         (GLYPH_CACHEL_DESCENT):
14092         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
14093         used in case these are inline functions.
14094         Use more absurd values to error check.
14095
14096         include window.h for error check functions.
14097
14098 2000-05-11  Ben Wing  <ben@xemacs.org>
14099
14100         * cmdloop.c (Freally_early_error_handler):
14101         Display message box under windows; otherwise, message will disappear
14102         before it can be viewed.
14103
14104         * console-msw.c:
14105         * console-msw.c (Fmswindows_message_box):
14106         * console-msw.c (FROB):
14107         * console-msw.c (syms_of_console_mswindows):
14108         Define new fun `mswindows-message-box'.
14109         #### I will merge this into `popup-dialog-box'; just give me
14110         a bit of time.
14111
14112         * general.c:
14113         * general.c (syms_of_general):
14114         Some new symbols used in `mswindows-message-box'.
14115
14116         * glyphs.c:
14117         * glyphs.c (Fset_image_instance_property):
14118         put warning in this fun.
14119
14120         * glyphs.h:
14121         * glyphs.h (GLYPH_CACHEL_WIDTH):
14122         * glyphs.h (GLYPH_CACHEL_ASCENT):
14123         * glyphs.h (GLYPH_CACHEL):
14124         * glyphs.h (GLYPH_CACHEL_GLYPH):
14125         define error-checking versions to try to catch a bug i've seen --
14126         redisplay gets in an infinite loop because the glyph width of the
14127         continuation glyph is 65535.
14128
14129         * lisp.h:
14130         Extern message-box stuff.
14131
14132         * window.c (allocate_window):
14133         * window.c (make_dummy_parent):
14134         * window.c (Fset_window_configuration):
14135         Use EQUAL not EQ for subwindow caches to make them work a bit
14136         better. (Something is still very broken.)
14137
14138
14139 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14140
14141         * glyphs.c (image_instantiate): Suppress gcc warnings.
14142         (Fmake_image_instance): Fix doc string.
14143         * specifier.c (Fmake_specifier): Ditto.
14144
14145 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
14146
14147         * paths.h.in (PATH_LOCK): Removed.
14148         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
14149         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
14150
14151 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14152
14153         * fns.c (Ffeaturep): Update e-mail address in doc-string.
14154         Document (featurep '(and xemacs 21.02)).
14155
14156 2000-05-09  Ben Wing  <ben@xemacs.org>
14157
14158         * buffer.c (complex_vars_of_buffer):
14159         update modeline-format doc.
14160
14161         * device.h:
14162         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
14163
14164         * emacs.c:
14165         timeline of all released versions of Emacs, for use in creating
14166         authorship comments and in synching up.
14167
14168         * glyphs-widget.c (image_instantiator_buttons):
14169         * glyphs-widget.c (image_instantiator_edit_fields):
14170         * glyphs-widget.c (image_instantiator_combo_box):
14171         * glyphs-widget.c (image_instantiator_scrollbar):
14172         * glyphs-widget.c (image_instantiator_progress_guage):
14173         * glyphs-widget.c (image_instantiator_tree_view):
14174         * glyphs-widget.c (image_instantiator_tab_control):
14175         * glyphs-widget.c (image_instantiator_labels):
14176         * glyphs-widget.c (image_instantiator_layout):
14177         * glyphs-widget.c (image_instantiator_native_layout):
14178         rename decode_domain method to governing_domain.
14179
14180         * glyphs.c:
14181         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
14182         * glyphs.c (add_entry_to_device_ii_format_list):
14183         make sure we don't put an entry more than once into the list.
14184         * glyphs.c (check_instance_cache_mapper):
14185         *************************************************************
14186         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14187         HAVE BEEN GETTING.
14188         *************************************************************
14189         * glyphs.c (get_image_instantiator_governing_domain):
14190         clean up, expand on new concept of governing domain.
14191         * glyphs.c (instantiate_image_instantiator):
14192         * glyphs.c (allocate_image_instance):
14193         use governing_domain instead of cache_domain in naming.
14194         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
14195         * glyphs.c (make_image_instance_1):
14196         * glyphs.c (Fmake_image_instance):
14197         allow for any domain (not just device), and process the
14198         governing domain correctly.  very big doc fix.
14199         * glyphs.c (Fimage_instance_domain):
14200         new primitive, to retrieve the governing domain of an image instance.
14201         * glyphs.c (image_instantiate):
14202         use new governing_domain stuff.  this fixes a crash you could get
14203         by instantiating certain widget glyphs in frame locales. (should
14204         signal an error instead of crashing.)
14205         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
14206         * glyphs.c (Fglyphp): clean up doc.
14207         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
14208         * glyphs.c (syms_of_glyphs):
14209         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
14210         * glyphs.c (image_instantiator_format_create): add some comments about
14211         bogus code.
14212         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
14213         for current-display-table. (Apparently Hrjove implemented in 1998 a
14214         design I wrote up in 1996, but didn't update the doc string.)
14215
14216         * glyphs.h: clean up a doc string.
14217         * glyphs.h (governing_domain):
14218         * glyphs.h (struct image_instantiator_methods):
14219         changes for governing_domain stuff.
14220
14221         * gutter.c:
14222         * gutter.c (Fgutter_specifier_p):
14223         * gutter.c (Fgutter_size_specifier_p):
14224         * gutter.c (Fgutter_visible_specifier_p):
14225         * objects.c:
14226         * objects.c (Fcolor_specifier_p):
14227         * objects.c (Ffont_specifier_p):
14228         * objects.c (Fface_boolean_specifier_p):
14229         doc strings moved to make-*-specifier.
14230
14231         * redisplay.c (add_disp_table_entry_runes_1):
14232         * redisplay.c (generate_fstring_runes):
14233         * redisplay.c (screen):
14234         add random comments and doc strings.
14235
14236         * specifier.c:
14237         * specifier.c (Fmake_specifier):
14238         major overhaul of this doc string.
14239
14240         * specifier.c (Fvalid_specifier_domain_p):
14241         comment about the bogosity of image instances being domains.
14242         * specifier.c (decode_domain):
14243         now non-static, used in glyphs.c.
14244         * specifier.c (specifier_instance):
14245         comment about the bogosity of image instances being domains.
14246         * specifier.c (Fgeneric_specifier_p):
14247         move doc string to make-generic-specifier.
14248         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14249         rebackslashify.
14250
14251         * specifier.h:
14252         * specifier.h (DOMAIN_FRAME):
14253         * specifier.h (DOMAIN_LIVE_P):
14254         * specifier.h (DOMAIN_XDEVICE):
14255         rebackslashify.
14256         add comments about problems with these macros.
14257         prototype for decode_domain.
14258
14259         * toolbar.c:
14260         * toolbar.c (Ftoolbar_specifier_p):
14261         move doc string to `make-toolbar-specifier'.
14262
14263         * window.c (window_unmap_subwindows_cache_mapper):
14264         *************************************************************
14265         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14266         HAVE BEEN GETTING.
14267         *************************************************************
14268
14269 2000-05-09  Andy Piper  <andy@xemacs.org>
14270
14271         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14272
14273         * window.c (Fset_window_configuration): reset the frame subwindow
14274         cache and re-initialize the window subwindow caches.
14275
14276         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14277
14278 2000-05-09  Ben Wing  <ben@xemacs.org>
14279
14280         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14281         DWORD.
14282
14283 2000-04-26  Mike Woolley  <mike@bulsara.com>
14284
14285         * ntheap.c: Changed recreate_heap to limit the amount reserved
14286         for the heap to that which is actually available. Also now
14287         displays a message box (with some dignostics) in the event that
14288         it still can't start.
14289
14290 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14291
14292         * callproc.c (Fold_call_process_internal): GCPRO path
14293
14294 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14295
14296         Patch by Bill Perry.
14297
14298         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14299         back data instead of #ifdef.
14300         (Fscrollbar_page_down): ditto.
14301
14302 2000-05-07  Ben Wing  <ben@xemacs.org>
14303
14304         * buffer.h:
14305         Kludge for defining Qmswindows_tstr.
14306
14307         * nt.c:
14308         * nt.c (open_input_file):
14309         * nt.c (open_output_file):
14310         * nt.c (rva_to_section):
14311         * nt.c (mswindows_executable_type):
14312         Move all memory-mapped-file routines here (some were in unexnt.c,
14313         which is bad because they are used by process-nt.c, and unexnt
14314         won't be around when portable dumping).  Synched the above routines
14315         with FSF 20.6.
14316
14317         * nt.h:
14318         Removed ifdef'd out bogus code.
14319         Fixed some prototypes.
14320
14321         * nt.h (file_data):
14322         * nt.h (OFFSET_TO_RVA):
14323         * nt.h (RVA_TO_OFFSET):
14324         * nt.h (RVA_TO_PTR):
14325         Moved the memory-mapped-file structures, macros and prototypes
14326         here, to parallel nt.c.  ntheap.h should really be removed
14327         entirely, and it's a non-portable-dumper specific file.
14328
14329         * ntheap.h (round_to_next):
14330         Moved the memory-mapped-file structures, macros and prototypes
14331         to nt.h.
14332
14333         * ntproc.c (compare_env):
14334         Moved rva_to_section and mswindows_executable_type to nt.c.
14335         Moved compare_env to process-nt.c.
14336         ntproc.c will die, one day.
14337
14338         * ntproc.c (sys_spawnve):
14339         Account for win32_ -> mswindows_.
14340
14341         * process-nt.c:
14342         * process-nt.c (struct nt_process_data):
14343         * process-nt.c (ensure_console_window_exists):
14344         * process-nt.c (compare_env):
14345         * process-nt.c (nt_create_process):
14346         * process-nt.c (nt_kill_process_by_pid):
14347         * process-nt.c (syms_of_process_nt):
14348         * process-nt.c (vars_of_process_nt):
14349         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14350         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14351         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14352         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14353         Move compare_env here from ntproc.c.
14354
14355         * process.c (Fprocess_send_region):
14356         Takes an optional fourth argument, BUFFER, which should fix some
14357         problems with call-process.
14358
14359         * syscommctrl.h:
14360         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14361
14362         * syswindows.h:
14363         Move ICC_BAR_CLASSES to syscommctrl.h.
14364         Add preliminary macros for MSWindows/Mule.  More to come.
14365
14366         * unexnt.c:
14367         * unexnt.c (unexec):
14368         open_output_file moved to nt.c.
14369
14370
14371 2000-05-05  Andy Piper  <andy@xemacs.org>
14372
14373         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14374         instance from the frame cache also since GC may catch up too late
14375         to make frame deletion sane.
14376
14377 2000-05-04  Andy Piper  <andy@xemacs.org>
14378
14379         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14380         (x_finalize_image_instance): ungcpro on deletion.
14381
14382         * glyphs.c (image_instantiator_format_create): give pointers a
14383         query geometry method so that the geometry is at least set.
14384
14385         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14386         initialize layouts if using widgets.
14387
14388 2000-05-03  Andy Piper  <andy@xemacs.org>
14389
14390         * nt.c: remove bogus reference to sysmmsystem.h
14391
14392         * gui-x.c (popup_selection_callback): fix no selection abort.
14393
14394 2000-05-02  Andy Piper  <andy@xemacs.org>
14395
14396         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14397         (mswindows_widget_instantiate): ditto.
14398
14399         * glyphs-widget.c (initialize_widget_image_instance): initialize
14400         children correctly.
14401         (widget_instantiate): cope with children and items in the same
14402         instance.
14403
14404         * glyphs.c (mark_image_instance): cope with children as a first
14405         class member.
14406         (image_instance_equal): ditto.
14407         (image_instance_hash): ditto.
14408         (image_instance_changed): ditto.
14409
14410 2000-04-30  Andy Piper  <andy@xemacs.org>
14411
14412         * glyphs.c (subwindow_query_geometry): new function. Return some
14413         defaults.
14414         (subwindow_instantiate): don't assign dimensions if none have been
14415         given.
14416         (image_instantiator_format_create): add subwindow_query_geometry.
14417         (print_image_instance): cope with layouts as widgets.
14418
14419 2000-04-29  Andy Piper  <andy@xemacs.org>
14420
14421         * frame.c (delete_frame_internal): call
14422         free_frame_subwindow_instance_cache so that all subwindows are
14423         finalized before their parent.
14424         (mark_frame): remove subwindow_cachels.
14425         (Fmake_frame): remove subwindow_cachel manipulation.
14426         (allocate_frame_core): subwindow_instance_cache is a weak list.
14427         (delete_frame_internal): set subwindow_instance_cache to nil.
14428
14429         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14430         finalization safe.
14431         (mswindows_finalize_image_instance): use the device
14432         not the domain as the domain may have died already.
14433
14434         * glyphs-x.c (x_finalize_image_instance): ditto.
14435         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14436         HEIGHT.
14437
14438         * redisplay-output.c (redisplay_unmap_subwindows): update for
14439         subwindow instance cache as a weak list.
14440         (redisplay_unmap_subwindows_maybe): ditto.
14441         (redisplay_unmap_subwindows_except_us): ditto.
14442
14443         * glyphs.c (unmap_subwindow): error checking will check the domain
14444         so don't deal with it here. Don't use cachels anymore.
14445         (map_subwindow): ditto.
14446         (update_subwindow_cachel_data): remove old accessor names.
14447         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14448         (Fresize_subwindow): don't update cachel.
14449         (mark_subwindow_cachels):
14450         (update_subwindow_cachel_data):
14451         (add_subwindow_cachel):
14452         (get_subwindow_cachel_index):
14453         (update_subwindow_cachel):
14454         (reset_subwindow_cachels):
14455         (mark_subwindow_cachels_as_not_updated): deleted.
14456         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14457         subwindow instance to the frame cache.
14458         (find_matching_subwindow): update for subwindow instance cache as
14459         a weak list.
14460         (update_widget_instances): ditto.
14461         (image_instance_type_to_mask):inlined.
14462         (free_frame_subwindow_instance_cache): new function. finalize all
14463         subwindows that are instantiated.
14464
14465         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14466         of cachel information.
14467         (IMAGE_INSTANCE_DISPLAY_X):
14468         (IMAGE_INSTANCE_DISPLAY_Y):
14469         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14470         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14471         (XIMAGE_INSTANCE_DISPLAY_X):
14472         (XIMAGE_INSTANCE_DISPLAY_Y):
14473         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14474         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14475         remove subwindow_cachel structure and function references.
14476         (image_instance_type_to_mask): inline from glyphs.c
14477
14478         * redisplay.c (redisplay_frame): remove subwindow_cachel
14479         references.
14480
14481         * frame.h (struct frame): remove subwindow_cachels.
14482         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14483
14484         * frameslots.h: add subwindow_instance_cache.
14485
14486         * window.c (replace_window): check subwindow cache of replacement.
14487         (window_unmap_subwindows_cache_mapper):
14488         (window_unmap_subwindows): new functions. Unmap all subwindows
14489         cached on this window.
14490         (mark_window_as_deleted): unmap all subwindows.
14491
14492 2000-04-27  Andy Piper  <andy@xemacs.org>
14493
14494         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14495
14496         * glyphs-widget.c (widget_layout): return something.
14497         (layout_layout): return something. Fail if not initialized.
14498         (layout_query_geometry): ditto.
14499         (image_instantiator_native_layout): new function. Initialized the
14500         native layout type.
14501         (widget_instantiate): don't do layout stuff here.
14502
14503         * glyphs.c (instantiate_image_instantiator): reorded calling or
14504         instantiate and post_instantiate with layout in between.
14505         (image_instance_layout): be more selective about deciding whether
14506         the layout has been done or not.
14507
14508         * glyphs.h (struct image_instantiator_methods): return a value
14509         from layout_method.
14510
14511 2000-04-26  Andy Piper  <andy@xemacs.org>
14512
14513         * glyphs.c (allocate_image_instance): make initial width and
14514         height unspecified. Set initialized to 0.
14515
14516         * syscommctrl.h new file. Encapsulates commctrl.h.
14517
14518         * syswindows.h new file. Encapsulates windows.h.
14519
14520         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14521         * nt.c: ditto.
14522         * console-msw.h: ditto.
14523
14524         * redisplay-tty.c (tty_output_display_block): remove layout references.
14525
14526         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14527         window handle rather than just the frame.
14528
14529         * glyphs.c (mark_image_instance): remove layout references.
14530         (print_image_instance): ditto.
14531         (image_instance_equal): ditto.
14532         (image_instance_hash): ditto.
14533         (decode_image_instance_type): ditto.
14534         (encode_image_instance_type): ditto.
14535         (image_instantiate): ditto.
14536         (allocate_glyph): ditto.
14537         (Fimage_instance_height): ditto.
14538         (Fimage_instance_width): ditto.
14539         (update_subwindow): ditto.
14540
14541         * redisplay-x.c (x_output_display_block): recode for layouts as
14542         widgets.
14543
14544         * redisplay-output.c (redisplay_output_layout): recode for layouts
14545         as widgets.
14546         (compare_runes): remove layout references.
14547
14548         * redisplay-msw.c (mswindows_output_display_block): recode for
14549         layouts as widgets.
14550
14551         * glyphs-widget.c (image_instantiator_layout): remove
14552         layout_possible_dest_types.
14553         (layout_possible_dest_types): deleted.
14554
14555         * glyphs.h (image_instance_type): remove layout references.
14556         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14557         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14558         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14559
14560 2000-04-25  Andy Piper  <andy@xemacs.org>
14561
14562         * glyphs-widget.c (image_instantiator_buttons):
14563         (image_instantiator_edit_fields):
14564         (image_instantiator_combo_box):
14565         (image_instantiator_scrollbar):
14566         (image_instantiator_progress_guage):
14567         (image_instantiator_tree_view):
14568         (image_instantiator_tab_control):
14569         (image_instantiator_labels):
14570         (image_instantiator_layout): call default post_instantiate method.
14571         (widget_post_instantiate): new function. Simply lays out the
14572         widgets.
14573
14574         * glyphs.h (struct image_instantiator_methods): add
14575         post_instantiate method.
14576
14577         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14578         method calls.
14579
14580 2000-04-23  Andy Piper  <andy@xemacs.org>
14581
14582         * glyphs.h (struct image_instantiator_methods): add
14583         decode_domain_method.
14584         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14585         derived from the domain.
14586         (IMAGE_INSTANCE_FRAME): new accessor.
14587         (XIMAGE_INSTANCE_FRAME): ditto.
14588
14589         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14590         instead of _SUBWINDOW_FRAME.
14591         (finalize_image_instance): ditto.
14592         (Fimage_instance_foreground): ditto.
14593         (Fimage_instance_background): ditto.
14594         (image_instantiate): ditto.
14595         (update_subwindow_cachel): ditto.
14596         (update_subwindow): ditto.
14597         (unmap_subwindow): ditto.
14598         (map_subwindow): ditto
14599         (subwindow_instantiate): ditto.
14600         * glyphs-msw.c (mswindows_update_widget): ditto.
14601         (mswindows_progress_gauge_instantiate): ditto.
14602         (mswindows_tab_control_update): ditto.
14603         * glyphs-x.c (x_update_widget): ditto.
14604         (x_widget_instantiate): ditto.
14605         (x_tab_control_instantiate): ditto.
14606         (x_tab_control_update): ditto.
14607         * event-msw.c (mswindows_wnd_proc): ditto
14608
14609         * glyphs-widget.c (image_instantiator_layout): use
14610         subwindow_decode_domain.
14611         (image_instantiator_buttons): ditto.
14612         (image_instantiator_edit_fields): ditto.
14613         (image_instantiator_combo_box): ditto.
14614         (image_instantiator_scrollbar): ditto.
14615         (image_instantiator_progress_guage): ditto.
14616         (image_instantiator_tree_view): ditto.
14617         (image_instantiator_tab_control): ditto.
14618         (image_instantiator_labels): ditto.
14619         (image_instantiator_layout): ditto.
14620
14621         * glyphs.c: add instance error checking to many functions.
14622         (instantiate_image_instantiator): decode device from cache_domain.
14623         (image_instantiate): partially rewrite by using
14624         decode_image_instantiator_domain to determine what domain the
14625         instance needs to be cached in.
14626         (decode_image_instantiator_domain): new function. Determine what
14627         domain the image needs to be cached in.
14628         (check_window_subwindow_cache): new error checking function.
14629         (check_instance_cache_mapper): ditto.
14630         (check_image_instance_structure): ditto.
14631         (subwindow_decode_domain): new function. Encodes a window as a
14632         subwindow's cache domain.
14633         (image_instantiator_format_create): use it for text and
14634         subwindows.
14635
14636 2000-04-21  Andy Piper  <andy@xemacs.org>
14637
14638         * glyphs.c (image_instance_device): new function.
14639         (image_instance_frame): new function.
14640         (image_instance_window): new function.
14641         (image_instance_live_p): new function.
14642
14643         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14644         cache to nil.
14645
14646         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14647         (IMAGE_INSTANCE_DOMAIN): new accessor.
14648         (XIMAGE_INSTANCE_DOMAIN): ditto.
14649
14650         * glyphs-x.c (x_finalize_image_instance): device->domain.
14651
14652         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14653         (mswindows_finalize_image_instance): ditto.
14654
14655         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14656         (gif_instantiate): ditto.
14657         (png_instantiate): ditto.
14658         (tiff_instantiate): ditto.
14659
14660         * glyphs.c (instantiate_image_instantiator): use domain rather
14661         than device.
14662         (mark_image_instance): device -> domain.
14663         (print_image_instance): ditto.
14664         (finalize_image_instance): ditto.
14665         (image_instance_equal): ditto.
14666         (allocate_image_instance): ditto.
14667         (Fcolorize_image_instance): ditto.
14668         (query_string_geometry): ditto.
14669         (image_instantiate): ditto
14670         (query_string_font): ditto.
14671         (image_instantiate): ditto.
14672         (update_subwindow): ditto.
14673         (unmap_subwindow): ditto.
14674         (map_subwindow): ditto.
14675         (subwindow_instantiate): ditto.
14676
14677         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14678         (DOMAIN_FRAME): ditto.
14679         (DOMAIN_WINDOW): ditto.
14680         (DOMAIN_LIVE_P): ditto.
14681         (XDOMAIN_DEVICE): ditto.
14682         (XDOMAIN_FRAME): ditto.
14683         (XDOMAIN_WINDOW): ditto.
14684
14685         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14686         a valid specifier domain.
14687
14688 2000-04-19  Andy Piper  <andy@xemacs.org>
14689
14690         * glyphs-widget.c (syms_of_glyphs_widget): remove
14691         widget-callback-current-channel.
14692         (vars_of_glyphs_widget): ditto.
14693         * glyphs.h: ditto
14694
14695         * gui.c (get_gui_callback): revert to previous behaviour.
14696
14697 2000-04-18  Andy Piper  <andy@xemacs.org>
14698
14699         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14700         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14701         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14702
14703         * glyphs.c (image_instance_equal): add margin_width.
14704         (image_instance_hash): ditto.
14705
14706         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14707         (layout_query_geometry): ditto.
14708         (layout_layout): ditto.
14709         (syms_of_glyphs_widget): add margin-width.
14710         (image_instantiator_layout): allow margin-width.
14711
14712         * glyphs.c (update_widget_instances): make a normal function.
14713         (syms_of_glyphs): remove Qupdate_widget_instances.
14714         * glyphs.h: ditto.
14715
14716         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14717         so that we don't corrupt ideas about the last event or
14718         command. Remove widget-callback-current-channel fiddling.
14719         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14720
14721 2000-05-01  Martin Buchholz <martin@xemacs.org>
14722
14723         * XEmacs 21.2.33 is released.
14724
14725 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14726
14727         * make-src-depend: Allow dots in header file name.
14728
14729 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14730
14731         * mule-charset.h (struct charset_lookup): Add
14732         next_allocated_1_byte_leading_byte and
14733         next_allocated_2_byte_leading_byte.
14734         * mule-charset.c: Move above two variables so that those values
14735         will be dumped.
14736
14737 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14738
14739         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14740         when string length is zero.
14741         (find_charsets_in_emchar_string): Ditto.
14742
14743 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14744
14745         * lisp.h: extern Qdialog and Qmenubar.
14746
14747         * gui-x.c: added events.h.
14748                 also fixed typo which made the file uncompilable.
14749
14750         * general.c: Added Qmenubar and Qdialog
14751
14752 2000-04-28  Ben Wing  <ben@xemacs.org>
14753
14754         * frame-msw.c (mswindows_init_frame_1):
14755         * frame-msw.c (mswindows_mark_frame):
14756         * event-msw.c (mswindows_enqueue_dispatch_event):
14757         * console-msw.h:
14758         * console-msw.h (struct mswindows_frame):
14759         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14760         there are now three hash tables for callbacks.
14761         mswindows_enqueue_dispatch_event is no longer static.
14762
14763         * dialog-x.c (maybe_run_dbox_text_callback):
14764         * dialog-x.c (dbox_descriptor_to_widget_value):
14765         switch to new cons3 form for callbacks.
14766
14767         * glyphs-msw.c (mswindows_register_gui_item):
14768         * glyphs-msw.c (mswindows_widget_instantiate):
14769         * glyphs-msw.c (add_tree_item):
14770         * glyphs-msw.c (add_tab_item):
14771         new image instance parameter, so it can be passed to callback-ex.
14772         respect :callback-ex as well as :callback.
14773
14774         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14775         add :callback-ex.
14776
14777         * glyphs.c (print_image_instance):
14778         prettify, e.g. now prints widget type.
14779
14780         * gui-x.h:
14781         certain funs have new image instance parameter.
14782
14783         * gui.c:
14784         * gui.c (get_gui_callback):
14785         * gui.c (gui_item_add_keyval_pair):
14786         * gui.c (gui_item_init):
14787         * gui.c (gui_add_item_keywords_to_plist):
14788         * gui.c (mark_gui_item):
14789         * gui.c (gui_item_hash):
14790         * gui.c (gui_item_equal):
14791         * gui.c (copy_gui_item):
14792         * gui.c (syms_of_gui):
14793         recognize callback-ex in a number of places.
14794         also, fix the annoying "can't get out of yes-no dialog" bug.
14795
14796         * gui.h:
14797         * gui.h (struct Lisp_Gui_Item):
14798         recognize callback-ex in a number of places.
14799
14800         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14801         new parameter in button_item_to_widget_value.
14802
14803         * glyphs-x.c (x_update_widget):
14804         * glyphs-x.c (x_button_instantiate):
14805         * glyphs-x.c (x_button_update):
14806         * glyphs-x.c (x_progress_gauge_instantiate):
14807         * glyphs-x.c (x_edit_field_instantiate):
14808         * glyphs-x.c (x_combo_box_instantiate):
14809         * glyphs-x.c (x_tab_control_instantiate):
14810         * glyphs-x.c (x_label_instantiate):
14811         new image instance parameter in various places.
14812
14813         * event-Xt.c:
14814         * event-Xt.c (enqueue_Xt_dispatch_event):
14815         this fun gets exported.
14816
14817         * gui-msw.c:
14818         * gui-msw.c (mswindows_handle_gui_wm_command):
14819         handle both :callback and :callback-ex, and generate our own
14820         event because it's one of the callback-ex arguments.
14821
14822         * gui-x.c:
14823         * gui-x.c (popup_selection_callback):
14824         handle both :callback and :callback-ex, and generate our own
14825         event because it's one of the callback-ex arguments.
14826         * gui-x.c (button_item_to_widget_value):
14827         * gui-x.c (gui_items_to_widget_values_1):
14828         * gui-x.c (gui_item_children_to_widget_values):
14829         * gui-x.c (gui_items_to_widget_values):
14830         new image instance parameter in various places.
14831
14832         * fns.c (Freplace_list):
14833         fix small typo in doc string.
14834
14835         * lisp.h:
14836         declare enqueue_Xt_dispatch_event.
14837
14838 2000-04-28  Ben Wing  <ben@xemacs.org>
14839
14840         * buffer.c:
14841         * buffer.c (Frecord_buffer):
14842         * buffer.c (syms_of_buffer):
14843         delete record-buffer-hook.
14844
14845         * fns.c:
14846         * fns.c (Freplace_list):
14847         * fns.c (syms_of_fns):
14848         new primitive replace-list.
14849
14850         * frameslots.h:
14851         slot for old buffer-alist.
14852
14853         * lisp.h:
14854         exfun replace-list.
14855
14856         * redisplay.c:
14857         * redisplay.c (redisplay_frame):
14858         * redisplay.c (syms_of_redisplay):
14859         * redisplay.c (vars_of_redisplay):
14860         new hook buffer-list-changed-hook.
14861         call it.
14862
14863 2000-04-27  Ben Wing  <ben@xemacs.org>
14864
14865         * extents.h: extern in_modeline_generation.
14866
14867         * redisplay.c (generate_formatted_string_db): set
14868         in_modeline_generation.
14869
14870         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14871         flags if in modeline generation.  otherwise frame-modified-tick
14872         is ticked far too often.
14873         Declare in_modeline_generation.
14874
14875 2000-04-26  Ben Wing  <ben@xemacs.org>
14876
14877         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14878         option.
14879         (vars_of_emacs): add quick-build as an error-checking option.
14880         A bit kludgy, but there doesn't seem much point in creating
14881         a real var for this.
14882
14883         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14884
14885 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14886
14887         * redisplay.h (struct display_line): Add a new variable,
14888         line_continuation.
14889
14890         * redisplay.c (create_text_block): Set dl->line_continuation if
14891         the line continues.
14892         (create_string_text_block): Ditto.
14893         (regenerate_window_incrementally): Use line_continuation instead
14894         of searching continuation glyph.
14895         (add_margin_runes): Call add_glyph_rune.
14896         (add_glyph_rune): Handle margin glyph.
14897
14898 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14899
14900         * filelock.c (fill_in_lock_file_name):
14901         ANSIfy.
14902         Check for IS_ANY_SEP instead of '/'.
14903         (lock_file_1):
14904         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14905         Never check errno without first seeing that system call failed.
14906         (unlock_file): Add GCPRO.
14907         (Flock_buffer): Fix docstring.
14908         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14909
14910 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14911
14912         * sysdep.c (get_pty_max_bytes):
14913         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14914         strings longer than 252 bytes.
14915
14916         * md5.c: Unconditionally include ANSI header <limits.h>
14917
14918         * glyphs-x.c (convert_EImage_to_XImage):
14919         * lisp-union.h (union Lisp_Object):
14920         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14921
14922 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14923
14924         * filelock.c (current_lock_owner): Remove unused variable o, p.
14925
14926 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14927
14928         * callint.c: Remove multiply defined symbol Qlet
14929         (syms_of_callint): ditto.
14930
14931 2000-04-14  Andy Piper  <andy@xemacs.org>
14932
14933         * general.c (syms_of_general): add last-command, this-command, let
14934         and funcall.
14935
14936         * lisp.h: declare various symbols.
14937
14938         * glyphs.h: declare Qwidget_callback_current_channel;
14939
14940         * glyphs-widget.c (syms_of_glyphs_widget): add
14941         Qgui_callback_current_channel.
14942         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14943
14944         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14945         widget-callback-current-channel when invoking the interactive
14946         arg. Also bind last-command and next-command when invoking the
14947         widget updates.
14948         * gui-x.c (popup_selection_callback): ditto.
14949
14950         * gui.c (get_gui_callback): massage args so that we are always
14951         calling eval. This allows us to add our own variable bindings
14952         outside.
14953
14954         * glyphs-x.c (x_button_instantiate): use
14955         gui_items_to_widget_values since this is GC safe.
14956         (x_progress_gauge_instantiate): ditto.
14957         (x_edit_field_instantiate): ditto.
14958         (x_label_instantiate): ditto.
14959
14960         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14961         (emacs_Xt_event_widget_focus_out): new function
14962         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14963         focus.
14964         (emacs_Xt_event_add_widget_actions): new function. add focus
14965         functions as actions.
14966         (init_event_Xt_late): use it.
14967
14968 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14969
14970         * event-stream.c (Fdispatch_event): Doc fix.
14971
14972 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14973
14974         * postgresql.c: Remove all references to PQsetenv*.
14975
14976         * postgresql.h: Remove references to PGsetenvHandler object.
14977         * lrecord.h (lrecord_type): Ditto.
14978
14979 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14980
14981         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14982         real_heigh and real_width members, and accessor macros for these.
14983
14984         * glyphs-msw.c (init_image_instance_geometry): New function.
14985         (init_image_instance_from_dibitmap): Use it.
14986         (mswindows_resource_instantiate): Use it.
14987         (init_image_instance_from_xbm_inline): Use it.
14988         (mswindows_initialize_image_instance_mask): Use real bitmap
14989         geometry.
14990         (mswindows_create_resized_bitmap): Ditto.
14991         (mswindows_create_resized_mask): Ditto.
14992
14993         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14994         and bitmap to their surface size.
14995
14996 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14997
14998         * process-unix.c (unix_send_process): Guard against process MIA
14999         after Faccept_process_output.
15000
15001 2000-04-11  Ben Wing  <ben@xemacs.org>
15002
15003         * eval.c (unbind_to_hairy): fix brokenness introduced by
15004         nanosecond speed improvements.
15005
15006 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
15007
15008         * sunplay.c (init_device): To play sounds correctly, the device
15009         apparently needs to be initialized at least once by XEmacs.  Make
15010         it so.
15011
15012 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15013
15014         * redisplay.c (add_margin_runes): Add text image glyph
15015           handling.
15016
15017 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
15018
15019         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
15020         gcc is newer than 2.5.
15021
15022 2000-04-06  Colin Rafferty  <colin@xemacs.org>
15023
15024         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
15025
15026         * fns.c (size_bit_vector):
15027         * alloc.c (size_vector):
15028         (make_vector_internal):
15029         (make_bit_vector_internal):
15030         (sweep_bit_vectors_1):
15031         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
15032
15033 2000-04-06  Andy Piper  <andy@xemacs.org>
15034
15035         * gmalloc.c (malloc): undo previous change.
15036         (malloc): ditto.
15037         (free): ditto.
15038         (realloc): ditto.
15039
15040 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
15041
15042         * line-number.c (buffer_line_number): Revert to former version.
15043
15044 2000-04-06  Andy Piper  <andy@xemacs.org>
15045
15046         * gmalloc.c (malloc): add error checking.
15047         (malloc): ditto.
15048         (free): ditto.
15049         (realloc): ditto.
15050
15051         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
15052         button_item_to_widget_value arg.
15053
15054         * glyphs-x.c (x_button_instantiate): add extra
15055         button_item_to_widget_value arg.
15056         (x_progress_gauge_instantiate): ditto.
15057         (x_edit_field_instantiate): ditto.
15058         (x_label_instantiate): ditto.
15059
15060         * gui-x.c (gui_items_to_widget_values_1): add extra
15061         button_item_to_widget_value arg.
15062         (button_item_to_widget_value): add extra menu_item_p arg.
15063
15064         * gui-x.h: change signature of button_item_to_widget_value.
15065
15066         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
15067         button_item_to_widget_value arg.
15068
15069 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
15070
15071         * buffer.h (struct buffer): auto_save_modified should be long.
15072
15073 2000-04-05  Andy Piper  <andy@xemacs.org>
15074
15075         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
15076         type.
15077         (button_query_geometry): give a little more room so that athena
15078         buttons fit.
15079
15080 2000-04-05  Andy Piper  <andy@xemacs.org>
15081
15082         * faces.c (complex_vars_of_faces): The widget face should inherit
15083         the font of the gui-element face.
15084
15085 2000-04-04  Andy Piper  <andy@xemacs.org>
15086
15087         * glyphs-x.c (x_button_update): new function. unconditionally
15088         update a button's state when the instance is dirty.
15089         (image_instantiator_format_create_glyphs_x): add x_button_update.
15090         (x_widget_instantiate): remove old resize cruft.
15091
15092 2000-04-02  Andy Piper  <andy@xemacs.org>
15093
15094         * frame.c (change_frame_size_1): The introduction of gutters means
15095         that we need to allow 0 as a potential frame dimension.
15096
15097 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15098
15099         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
15100         image glyph if allow_cursor.
15101         (add_hscroll_rune): Don't allow cursor to border glyph.
15102         (create_text_block): Ditto.
15103
15104         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
15105         text not in buffer.
15106         (redisplay_output_layout): Call ensure_face_cachel_complete for
15107         text image glyph.
15108
15109
15110 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15111
15112         * redisplay.c (add_glyph_rune): Adding text image as text runes.
15113
15114         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
15115         not in buffer
15116
15117         * redisplay-tty.c (tty_output_display_block): Delete the routine
15118         for text image glyph
15119         * redisplay-x.c (x_output_display_block): ditto
15120         * redisplay-msw.c (mswindows_output_display_block): ditto
15121
15122 2000-02-02  Mike Alexander  <mta@arbortext.com>
15123
15124         Note: Some of these were committed by accident as part of other
15125         patches.
15126
15127         * regex.c (regex_compile): Avoid compiler warnings.
15128
15129         * ntproc.c (sys_spawnve): Avoid compiler warnings.
15130
15131         * nt.h: Declare term_ntproc correctly.
15132
15133         * nt.c: Remove incorrect declaration of get_home_directory which
15134         is declared correctly in lisp.h.
15135
15136         * keymap.c (get_keyelt): Avoid compiler warnings.
15137         (raw_lookup_key_mapper): Avoid compiler warnings.
15138
15139         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
15140
15141         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
15142
15143         * filemode.c (mode_string): Avoid compiler warnings.
15144
15145         * file-coding.c (Fcoding_system_aliasee): Add return statement to
15146         avoid warning.
15147
15148         * events-mod.h: Undef some things that winuser.h defines differently.
15149
15150         * data.c (Faset): Avoid compiler warnings.
15151
15152         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
15153
15154 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15155
15156         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
15157         Fall through to simple beep on error.
15158         Replace "extern" by real header file.
15159
15160         * linuxplay.c: Use nativesound.h
15161         (play_sound_data): Return error code. Be less verbose on error.
15162
15163         * sunplay.c: Use nativesound.h
15164         (play_sound_data): Return error code. Be less verbose on error.
15165
15166         * ntplay.c: Use nativesound.h
15167         (play_sound_data): Return fake error code
15168
15169         * sgiplay.c: Use nativesound.h
15170         (play_sound_data): Return error code
15171
15172         * hpplay.c: Use nativesound.h, partially implement
15173         new error code. Break compilation until finished.
15174         (play_sound_data): error code.
15175
15176         * nativesound.h (play_sound_file):
15177           (play_sound_data): Prototype in new header.
15178
15179 2000-03-31  Andy Piper  <andy@xemacs.org>
15180
15181         * glyphs-widget.c: (button_query_geometry): new function. Adjust
15182         for toggle and radio buttons.
15183         (image_instantiator_buttons): use it.
15184
15185 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15186
15187         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
15188         (x_update_horizontal_scrollbar_callback): Return if no mirror was
15189         found. Scrollbar event probably belonged to some old config.
15190
15191 2000-03-31  Andy Piper  <andy@xemacs.org>
15192
15193         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
15194         than 1.
15195         (initialize_widget_image_instance): default layout to
15196         LAYOUT_HORIZONTAL rather than 0.
15197         (widget_instantiate): reverse the item list at the end rather than
15198         every iteration.
15199         (layout_layout): re-code for the border text at the front of the
15200         item list rather than at the end.
15201         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
15202         provided by the user.
15203         (widget_query_geometry): comment.
15204
15205 2000-03-30  Andy Piper  <andy@xemacs.org>
15206
15207         * glyphs-widget.c (image_instantiator_layout): allow standard
15208         widget keywords in layouts.
15209
15210         * gutter.c (output_gutter): cope with nil gutter contents.
15211
15212         * frame.c (Fset_frame_properties): add gutter docs.
15213
15214 2000-03-29  Andy Piper  <andy@xemacs.org>
15215
15216         * toolbar-msw.c (TBSTYLE_FLAT): add.
15217         (mswindows_output_toolbar): minor fiddling.
15218
15219 2000-03-29  Andy Piper  <andy@xemacs.org>
15220
15221         * gutter.c (output_gutter): force gutter size recalculation if
15222         what we are trying to display won't fit.
15223         (update_gutter_geometry): new function. A per-gutter version of
15224         update_frame_gutter_geometry.
15225         (update_frame_gutter_geometry): use it.
15226         (redraw_exposed_gutter): add extra debugging output.
15227
15228 2000-03-28  Mike Alexander  <mta@arbortext.com>
15229
15230         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
15231         (pdump_file_unmap): Implement it on Windows
15232         (pdump_file_get): Save alocated handles for pdump_file_unmap
15233
15234 2000-03-28  Andy Piper  <andy@xemacs.org>
15235
15236         * gui.c (get_gui_callback): treat Quit specially.
15237
15238 2000-03-27  Andy Piper  <andy@xemacs.org>
15239
15240         * glyphs.c (image_instantiate): be careful to check in the same
15241         way we assigned.
15242
15243 2000-03-27  Didier Verna  <didier@xemacs.org>
15244
15245         * config.h.in: define the proper SMART_INCLUDE macro.
15246         handle renaming of `foo_h_path' to `foo_h_file'.
15247
15248         * database.c: ditto.
15249
15250         * emacs.c: ditto.
15251
15252         * linuxplay.c: ditto.
15253
15254         * terminfo.c: ditto.
15255
15256         * tooltalk.h: ditto.
15257
15258 2000-03-27  Andy Piper  <andy@xemacs.org>
15259
15260         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15261         gets updated whenever the face might have changed.
15262
15263 2000-03-26  Mike Alexander  <mta@arbortext.com>
15264
15265         * dumper.c (pdump_resource_free): Fix the comment.
15266
15267 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15268
15269         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15270
15271 2000-03-22  Mike Alexander  <mta@arbortext.com>
15272
15273         * dumper.c: Include Windows headers on Windows
15274         (pdump_resource_free): Add a body to the function
15275         (pdump_load): exe_name -> exe_path and add some comments.
15276
15277 2000-03-25  Mike Alexander  <mta@arbortext.com>
15278
15279         * gui.c (copy_gui_item_tree): Return a value in all cases
15280
15281 2000-03-21  Didier Verna  <didier@xemacs.org>
15282
15283         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15284         lwlib/config.h.in.
15285         (SMART_INCLUDE): new macro.
15286         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15287         the proper location.
15288
15289         * postgresql.c: use it.
15290
15291         * inline.c: ditto.
15292
15293 2000-03-24  Andy Piper  <andy@xemacs.org>
15294
15295         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15296         do this.
15297
15298 2000-03-24  Andy Piper  <andy@xemacs.org>
15299
15300         * redisplay-output.c (compare_runes): use image_instance_changed
15301         to detect changes. Do not depend on glyphs_changed, only depend on
15302         dirtiness.
15303          (redisplay_output_layout): add debug messages.
15304         (compare_runes): ditto.
15305
15306         * glyphs.h: declare new functions.
15307         (struct Lisp_Image_Instance): remove percent and associated
15308         accessors.
15309
15310         * gui.h: declare new copying functions.
15311
15312         * gui.c (copy_gui_item_tree): new function.
15313         (copy_gui_item): new function.
15314         (gui_item_id_hash): revert to standard hash.
15315         (gui_item_hash): ditto.
15316         (gui_item_hash_internal): deleted.
15317         (mark_gui_item): mark value.
15318         (gui_item_add_keyval_pair): add value.
15319         (gui_item_init): ditto.
15320         (gui_add_item_keywords_to_plist): ditto.
15321         (gui_item_equal): ditto.
15322         (syms_of_gui): add Q_value.
15323
15324         * glyphs-x.c (x_progress_gauge_update): use pending items and
15325         value for setting the state.
15326         (x_update_widget): don't set items from pending here.
15327
15328         * glyphs-widget.c (update_widget): update items here.
15329         (progress_gauge_set_property): use items for storing value. Put
15330         new value in pending items.
15331
15332         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15333         items for new value. Convert percent -> value.
15334         (mswindows_tab_control_update): don't update items here.
15335
15336         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15337         (update_subwindow): ditto.
15338         (image_instance_changed): new function. Compare hash values and
15339         past and present widget items.
15340         (image_instantiate): We more careful about where we instantiate
15341         things.
15342         (image_instantiate): add error checking.
15343
15344         * gutter.c (syms_of_gutter): use -hook.
15345
15346 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15347
15348         * console-tty.c (Fset_console_tty_input_coding_system): Use
15349         Qkeyboard.
15350         (Fset_console_tty_output_coding_system): Use Qterminal.
15351         (tty_init_console): Use Qkeyboard and Qterminal.
15352
15353 2000-03-21  Ben Wing  <ben@xemacs.org>
15354
15355         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15356         From Mike Alexander <mta@arbortext.com>.
15357
15358 2000-03-21  Ben Wing  <ben@xemacs.org>
15359
15360         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15361         process brokenness.  Proper implementation to come.
15362         * callproc.c:
15363         Rename call-process-internal to old-call-process-internal.
15364         New impl. in process.el.
15365
15366 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15367
15368         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15369
15370 2000-03-20  Andy Piper  <andy@xemacs.org>
15371
15372         * glyphs.c (full_list_hash): make hashes of the same elements in
15373         different orders return different values.
15374
15375 2000-03-20  Martin Buchholz <martin@xemacs.org>
15376
15377         * XEmacs 21.2.32 is released.
15378
15379 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15380
15381         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15382         (DFC_MALLOC_USE_CONVERTED_DATA):
15383         Add aliasing-safe casts to allow use with char* or unsigned char*
15384         lvalues.
15385
15386         * eldap.c (Fldap_open):
15387         (Fldap_search_basic):
15388         (Fldap_add):
15389         (Fldap_modify):
15390         Make C++-compilable.
15391         Make sure GCPRO'ed variables are initialized.
15392         Use temp variables to avoid repeated calls to Flength.
15393
15394 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15395
15396         * sysfile.h:
15397         Make sure PATH_MAX is always defined.
15398         Include limits.h for PATH_MAX.
15399         Deprecate use of MAXPATHLEN.
15400
15401 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15402
15403         * emacs.c: Add reinit_vars_of_fileio.
15404         * symsinit.h: Add reinit_vars_of_fileio.
15405         * fileio.c (reinit_vars_of_fileio): New.
15406         * fileio.c (Fmake_temp_name):
15407         Initialize temp_name random number from microseconds to make
15408         collisions even less likely.  Initialize always at process startup
15409         time.  (make-temp-name) used to return the same file name twice in
15410         a row when PDUMP.
15411         Random stylistic fiddling.
15412         Comment fixes.
15413
15414 2000-03-20  Andy Piper  <andy@xemacs.org>
15415
15416         * glyphs.c (image_instantiate): allow text glyphs to be
15417         instantiated in the minibuffer window.
15418
15419 2000-03-19  Andy Piper  <andy@xemacs.org>
15420
15421         * glyphs.c (image_instance_hash): be careful about which items we
15422         hash on.
15423
15424         * glyphs-widget.c (tab_control_set_property): record into pending
15425         items rather than the actual items.
15426
15427         * glyphs-x.c (x_update_widget): use pending items to update with.
15428
15429         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15430         to update with.
15431
15432         * glyphs.c (mark_image_instance): mark pending items.
15433
15434         * window.c (Fset_window_configuration): record the buffer.
15435         (Fselect_window): totally revert previous change which breaks many
15436         things.
15437
15438 2000-03-18  Andy Piper  <andy@xemacs.org>
15439
15440         * glyphs-msw.c (mswindows_tab_control_update): force selected
15441         item.
15442
15443         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15444         window domain cache, otherwise we get inconsistencies at
15445         startup. There is something fishy at startup which can lead to the
15446         minibuffer being the selected window when the gutter content is
15447         instantiated.
15448
15449         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15450         gcpros.
15451         (parse_gui_item_tree_children): ditto.
15452         (parse_gui_item_tree_item): ditto.
15453
15454         * glyphs.c (Fupdate_widget_instances): return something.
15455
15456 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15457
15458         * window.c (Fselect_window): Undo 2000-03-17 change.
15459
15460 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15461
15462         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15463         against v7.0 libraries.  Insta-coredump city until the postgres
15464         folks fix it.
15465
15466 2000-03-17  Andy Piper  <andy@xemacs.org>
15467
15468         * faces.c (complex_vars_of_faces): don't give the widget face an
15469         inherited background pixmap.
15470
15471         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15472         selected item.
15473
15474         * event-stream.c (Fdispatch_non_command_events): return something.
15475
15476         * gutter.c (output_gutter): use widget face.
15477         (clear_gutter): ditto.
15478
15479         * NEWS: adjust again.
15480
15481         * window.c (Fselect_window): make sure this runs to completion to
15482         avoid oddities with Fset_window_configuration.
15483         (Fcurrent_window_configuration): in general do not save the
15484         minibuffer as the selected window.
15485
15486         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15487
15488 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15489
15490         * emacs.c (Frunning_temacs_p): Revert previous patch.
15491         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15492
15493 2000-03-16  Andy Piper  <andy@xemacs.org>
15494
15495         * glyphs-x.c (x_tab_control_update): if no widget values then
15496         return.
15497
15498         * NEWS: update for new features.
15499
15500         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15501         synthetic event to the native system.
15502         (reinit_vars_of_event_Xt): set force_event_pending to
15503         emacs_Xt_force_event_pending.
15504
15505         * events.h (struct event_stream): add force_event_pending.
15506
15507         * specifier.c (recompute_one_cached_specifier_in_window): add
15508         comment.
15509
15510         * redisplay.c (redisplay_frame): don't call
15511         update_frame_subwindows. Reset subwindow cachels when
15512         subwindows_changed, removing this was an optimization too far.
15513
15514         * redisplay-output.c (compare_runes): reorganize so that we catch
15515         glyph changes when we want them. Set optimize_output when this
15516         would help layouts.
15517         (redisplay_output_layout): remove frame_really_changed, use
15518         optimize_output instead.
15519
15520         * redisplay-msw.c (mswindows_output_display_block): reset
15521         optimize_output after outputting a glyph.
15522         * redisplay-x.c (x_output_display_block): ditto.
15523         * redisplay-tty.c (tty_output_display_block): ditto.
15524
15525         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15526         functions.
15527         (gutter_specs_changed): do specific gutter positions.
15528         (top_gutter_specs_changed): new function. Only update the
15529         specified gutter specs.
15530         (bottom_gutter_specs_changed): ditto.
15531         (left_gutter_specs_changed): ditto.
15532         (right_gutter_specs_changed): ditto.
15533
15534         * gui.c (gui_item_hash_internal): new function, does a real hash.
15535         (gui_item_id_hash): use it.
15536         (gui_item_hash): hash the eval'ed gui_item.
15537
15538         * gui-x.c (popup_selection_callback): send an eval event to call
15539         Fupdate_widget_instances.
15540
15541         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15542         to call Fupdate_widget_instances.
15543
15544         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15545         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15546
15547         * glyphs.c: (update_frame_subwindows): deleted.
15548         (Fupdate_widget_instances): new function for updating the dirty
15549         state of widgets that might have changed.
15550         (syms_of_glyphs): add Qupdate_widget_instances.
15551         (full_list_hash): hash a list completely.
15552         (image_instance_hash): use it for items and properties.
15553
15554         * frame-msw.c (mswindows_size_frame_internal): remove unused
15555         variable.
15556
15557         * faces.h (struct face_cachel): fix comment.
15558
15559         * event-stream.c (Fdispatch_non_command_events): new
15560         function. Process non-command events, forcing an event cycle
15561         beforehand.
15562         (syms_of_event_stream): declare.
15563         (event_stream_force_event_pending): new function. Force an event
15564         on the native event queue so that an event cycle will occur next
15565         time we check.
15566
15567         * event-msw.c:
15568         (struct ntpipe_shove_stream):
15569         (mswindows_enqueue_dispatch_event):
15570         (mswindows_dequeue_dispatch_event):
15571         (mswindows_cancel_dispatch_event):
15572         (mswindows_pump_outstanding_events):
15573         (mswindows_drain_windows_queue):
15574         (mswindows_handle_paint):
15575         (mswindows_wnd_proc):
15576         (mswindows_key_to_emacs_keysym):
15577         (get_process_input_waitable):
15578         (emacs_mswindows_delete_stream_pair): re-indent file.
15579         (mswindows_need_event): do not process further fds if the windows
15580         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15581         fixes the 100% cpu problem.
15582         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15583
15584 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15585
15586         * alloc.h: New.
15587         * dumper.h: New.
15588         * dumper.c: New.
15589
15590         * emacs.c: Moved dump file searching to dumper.c.
15591         (Frunning_temacs_p): Fixed.
15592
15593         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15594         last_lrecord_type_index_assigned.
15595
15596 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15597
15598         * symsinit.h: Added reinit parameter to init_console_stream
15599         declaration.
15600
15601         * lisp.h: Added file parameter to pdump_load declaration.
15602
15603         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15604         support.  Added dump file searching.
15605
15606         * config.h.in: Added EMACS_PROGNAME.
15607
15608         * console-stream.c (init_console_stream): Fix reinitialisation
15609         when running from temacs.
15610
15611         * alloc.c (pdump): Add id support.
15612         (pdump_load): Add file parameter and signature/id support.
15613
15614         * Makefile.in.in: Add full pdump support.
15615
15616 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15617
15618         * postgresql.c: Update documentation to reflect latest code
15619         status.
15620         (print_result): Show tuple counts in printed representation when
15621         appropriate.
15622         (Fpq_put_nbytes): MULE-ize.
15623         (Fpq_get_line_async): Ditto.
15624
15625 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15626
15627         * postgresql.c (Fpq_lo_import): Fix return value.
15628         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15629
15630 2000-03-13  Ben Wing  <ben@xemacs.org>
15631
15632         * alloc.c (pdump_load):
15633         Fix compile warning under mswin.
15634
15635 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15636
15637         * postgresql.c: Mule-ization, bug fixes.
15638         Use PG_CODING to encapsulate coding system name changes.
15639         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15640         (pg-coding-system): Create.
15641
15642         (Fpq_conn_defaults): Mule-ize.
15643         (Fpq_connectdb): Mule-ize & bug fix.
15644         (Fpq_connect_start): Mule-ize.
15645         (Fpq_set_client_encoding): Mule-ize.
15646         (Fpq_finish): Document `DEAD' connection status.
15647         (Fpq_clear): Ditto.
15648         (Fpq_pgconn): Mule-ize.
15649         (Fpq_exec): Mule-ize & bug fix.
15650         (Fpq_send_query): Ditto.
15651         (Fpq_get_result): Ditto.
15652         (Fpq_res_status): Mule-ize.
15653         (Fpq_result_error_message): Mule-ize.
15654         (Fpq_ntuples): fix comments.
15655         (Fpq_fname): Mule-ize.
15656         (Fpq_fnumber): Mule-ize.
15657         (Fpq_ftype): fix comments.
15658         (Fpq_get_value): Mule-ize.
15659         (Fpq_cmd_status): Ditto.
15660         (Fpq_cmd_tuples): Ditto.
15661         (Fpq_oid_value): Ditto.
15662         (Fpq_notifies): Ditto.
15663         (Fpq_lo_import): Ditto.
15664         (Fpq_lo_export): Ditto.
15665         (Fpq_get_line): Ditto.
15666         (Fpq_put_line): Mule-ize and bug fix.
15667         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15668
15669 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15670
15671         * postgresql.c (vars_of_postgresql): Mule-ize.
15672         (Fpq_conn_defaults): Ditto.
15673
15674 2000-03-12  Ben Wing  <ben@xemacs.org>
15675
15676         * alloc.c (Fmake_byte_code):
15677         * alloc.c (debug_string_purity_print):
15678         * alloc.c (pdump_backtrace):
15679         * alloc.c (pdump_get_indirect_count):
15680         * alloc.c (pdump_register_sub):
15681         * alloc.c (pdump_register_object):
15682         * alloc.c (pdump_register_struct):
15683         * alloc.c (pdump_dump_data):
15684         * alloc.c (pdump_reloc_one):
15685         Minor cleanups.
15686
15687         * console-msw.c:
15688         * console-msw.c (GetConsoleHwnd):
15689         * console-msw.c (msw_hide_console):
15690         * console-msw.c (msw_show_console):
15691         * console-msw.c (msw_ensure_console_buffered):
15692         * console-msw.c (msw_output_console_string):
15693         * console-msw.c (console_type_create_mswindows):
15694
15695         a) Added functions to manipulate the console window for use with
15696         shell support.
15697
15698         b) Added support for writing text to the console, which is now
15699         used under Windows when xemacs is not being run non-interactively,
15700         to write text that would otherwise be destined for stdout because
15701         under these circumstances, text written to stdout tends to
15702         disappear and not be seen.
15703
15704         * console-msw.h:
15705         * event-Xt.c:
15706         * event-Xt.c (x_event_to_emacs_event):
15707         * event-Xt.c (describe_event_window):
15708         * events-mod.h (XEMACS_MOD_CONTROL):
15709         * events.c:
15710         * events.c (Fmake_event):
15711         * events.c (character_to_event):
15712         * events.c (event_to_character):
15713         * events.c (format_event_object):
15714         * events.c (Fevent_modifiers):
15715         * events.h:
15716         * events.h (struct key_data):
15717         * events.h (struct button_data):
15718         * events.h (struct misc_user_data):
15719         * frame-x.c (Fcde_start_drag_internal):
15720         * frame-x.c (Foffix_start_drag_internal):
15721         * gpmevent.c (Freceive_gpm_event):
15722         * keymap.c:
15723         * keymap.c (bucky_sym_to_bucky_bit):
15724         * keymap.c (control_meta_superify):
15725         * keymap.c (make_key_description):
15726         * keymap.c (keymap_lookup_directly):
15727         * keymap.c (create_bucky_submap):
15728         * keymap.c (keymap_store):
15729         * keymap.c (define_key_check_and_coerce_keysym):
15730         * keymap.c (define_key_parser):
15731         * keymap.c (define_key_alternate_name):
15732         * keymap.c (Fdefine_key):
15733         * keymap.c (raw_lookup_key_mapper):
15734         * keymap.c (struct map_keymap_unsorted_closure):
15735         * keymap.c (map_keymap_unsorted_mapper):
15736         * keymap.c (map_keymap_sort_predicate):
15737         * keymap.c (map_keymap_sorted):
15738         * keymap.c (accessible_keymaps_mapper_1):
15739         * keymap.c (where_is_recursive_mapper):
15740         * keymap.c (describe_map_mapper):
15741         * keymap.c (describe_map_sort_predicate):
15742         * keymap.c (describe_map):
15743         * keymap.c (complex_vars_of_keymap):
15744         And a number of other files, the key modifier preprocessor
15745         constants that xemacs uses have names that conflict with constants
15746         defined under MS Windows for other purposes, so they were renamed
15747         to begin with the prefix XEMACS_. The variables that hold such
15748         modifiers were changed to consistently be of type int to fix
15749         various compile warnings.
15750
15751         * console.c (complex_vars_of_console):
15752         * device.c:
15753         * device-msw.c:
15754         * device-msw.c (mswindows_finish_init_device):
15755         * device-msw.c (msw_get_workspace_coords):
15756         * device-msw.c (mswindows_device_system_metrics):
15757         and various other files, added support for a new
15758         device property called offset-workspace which returns the position
15759         of the upper left corner of the workspace area and goes along with
15760         the existing size-workspace property.
15761
15762         * dialog-msw.c:
15763         * dialog-msw.c (push_bufbyte_string_as_unicode):
15764         * dialog-msw.c (mswindows_popup_dialog_box):
15765         Added support for XEmacs-style accelerator specifications in
15766         button text.  Note: I didn't add support for this under X Windows,
15767         and somebody needs to do this.
15768
15769         * dialog.c:
15770         * dialog.c (Fpopup_dialog_box):
15771         Documented the support for accelerators that was just mentioned.
15772
15773         editfns.c (get_home_directory): Changed behavior under Windows
15774         when HOME not defined; former behavior was irretrievably broken.
15775
15776         * emacs.c:
15777         * emacs.c (main_1):
15778         * emacs.c (main):
15779         * minibuf.c (clear_echo_area_internal):
15780         * minibuf.c (echo_area_append):
15781         * print.c:
15782         * print.c (std_handle_out_external):
15783         * print.c (std_handle_out_va):
15784         * print.c (fatal):
15785         * print.c (write_string_to_stdio_stream):
15786         * print.c (output_string):
15787         * print.c (debug_print):
15788         * print.c (debug_backtrace):
15789         * print.c (debug_short_backtrace):
15790         Cleaned up the code that prints text to stdout so that this can be
15791         changed to output into a console window instead under MS Windows,
15792         as described above.
15793
15794         * eval.c:
15795         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15796         * eval.c (internal_catch):
15797         * eval.c (unwind_to_catch):
15798         * eval.c (throw_or_bomb_out):
15799         * eval.c (condition_case_1):
15800         * eval.c (signal_1):
15801         * eval.c (check_error_state_sanity):
15802         * eval.c (call_with_suspended_errors_1):
15803         * eval.c (call_with_suspended_errors):
15804         * eval.c (reinit_vars_of_eval):
15805         Added code to catch throw loops and check for a pesky bug that may
15806         be gone now.
15807
15808         * event-msw.c:
15809         * event-msw.c (key_needs_default_processing_p):
15810         * event-msw.c (mswindows_wnd_proc):
15811         * event-msw.c (mswindows_modifier_state):
15812         * event-msw.c (emacs_mswindows_quit_p):
15813         * event-msw.c (vars_of_event_mswindows):
15814         a) Added support for using the alt key to select menu items as is
15815         standard under MS Windows.  This is controlled using the variable
15816         menu-accelerator-enabled, just like under X Windows.  There is an
15817         option on the options menu to turn this support on.  I really
15818         think that it should be on by default under Windows, but I'm not
15819         going to make this change yet.
15820
15821         b)  Added support for dynamic display size changes under Windows.
15822
15823         * event-stream.c:
15824         * event-stream.c (maybe_echo_keys):
15825         * event-stream.c (Fnext_event):
15826         * event-stream.c (command_builder_find_leaf):
15827         * event-stream.c (lookup_command_event):
15828         * event-stream.c (execute_command_event):
15829         * event-stream.c (pre_command_hook):
15830         * event-stream.c (post_command_hook):
15831         * event-stream.c (syms_of_event_stream):
15832         * event-stream.c (vars_of_event_stream):
15833         * event-stream.c (complex_vars_of_event_stream):
15834         * events.h (struct command_builder):
15835
15836         a) Tried to clean up a little bit the horribly written x-specific
15837         accelerator code that crept into this file.  I moved this code
15838         into menubar-x.c where it belongs. I also needed to move the
15839         command builder structure into the file events.h because it is
15840         accessed directly by this accelerator code.  What I didn't do, but
15841         which should be done at some point, is to properly abstract this
15842         code using device methods instead of the kludgy way that it
15843         currently hooks into the event code.
15844
15845         b) Added the lisp variables this-command-properties and
15846         last-command- properties, which should be used to synchronize two
15847         adjacent commands in preference to playing games with the variable
15848         this-command, which is typically what happens.
15849
15850         c) Added some slightly nasty code to hook into the lisp support
15851         for shifted- motion-key selection.  This is actually necessary for
15852         somewhat complicated reasons, which are described in
15853         simple.el. (NB: I think the proper thing would be to have the code
15854         that calls the pre and post command hooks also call out to generic
15855         lisp functions in simple.el, where all built-in stuff could be
15856         added.  I will think about this more.)
15857
15858         * event-unixoid.c (poll_fds_for_input):
15859         * lread.c (readchar):
15860         * redisplay-tty.c (tty_clear_frame):
15861         * redisplay-x.c (x_get_gc):
15862         * signal.c (interrupt_signal):
15863         And a whole bunch of other files: fixed up places that printed
15864         directly to stderr to instead call the function stderr_out so that
15865         the changes I made under Windows work correctly.
15866
15867         * filemode.c (mode_string):
15868         Warning fixes.
15869
15870         * frame-msw.c:
15871         * frame-msw.c (mswindows_size_frame_internal):
15872         Fixed the computation of frame size and position to keep the frame
15873         within the workspace area, rather than within the physical
15874         dimensions of the screen, so that the frame doesn't overlap window
15875         manager decorations, such as the start menu and toolbar, typically
15876         at the bottom of the screen.
15877
15878         * frame.c (vars_of_frame):
15879         Changed the default frame title format under MS Windows to consist
15880         of buffername-XEmacs, which is standard under MS Windows.  I think
15881         it might be a good idea to change this everywhere because I think
15882         it is superior to the current frame title format, but this is the
15883         kind of change that is likely to cause some people to get annoyed,
15884         so I'm not making it.
15885
15886         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15887
15888         * gui-msw.c (mswindows_handle_gui_wm_command):
15889         Fixed compile warnings.
15890
15891         * gui-x.c:
15892         * gui-x.c (strdup_and_add_accel):
15893         * gui-x.c (button_item_to_widget_value):
15894         * gui-x.h:
15895         Added code to automatically put an accelerator onto the beginning
15896         of menu items that don't have one as is now the standard, and is
15897         described more later.  Also fixed things so that the menu item
15898         name can be an evaluated expression, again a new standard.
15899
15900         * gui.c:
15901         * gui.c (gui_item_add_keyval_pair):
15902         * gui.c (make_gui_item_from_keywords_internal):
15903         * gui.c (gui_add_item_keywords_to_plist):
15904         * gui.c (gui_item_accelerator):
15905         * gui.c (gui_name_accelerator):
15906         * gui.c (gui_item_included_p):
15907         * gui.c (gui_item_display_flush_left):
15908         * gui.c (gui_item_display_flush_right):
15909         * gui.c (parse_gui_item_tree_item):
15910         * gui.c (parse_gui_item_tree_children):
15911         * gui.c (parse_gui_item_tree_list):
15912         Mule-ized.  Cleanup.  GCPRO addition.
15913
15914         * line-number.c (buffer_line_number):
15915         * lisp.h:
15916         * lisp.h (EMACS_INT_MAX):
15917         Added the manifest constant EMACS_INT_MIN corresponding to the
15918         existing constant EMACS_INT_MAX.  This is partially to fix compile
15919         warnings under Windows, and partly for cleanliness.
15920
15921         * menubar-msw.c:
15922         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15923         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15924         * menubar-msw.c (displayable_menu_item):
15925         * menubar-msw.c (populate_menu_add_item):
15926         * menubar-msw.c (populate_or_checksum_helper):
15927         * menubar-msw.c (populate_menu):
15928         * menubar-msw.c (update_frame_menubar_maybe):
15929         * menubar-msw.c (prune_menubar):
15930         * menubar-msw.c (msw_char_is_accelerator):
15931         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15932         * menubar-msw.c (mswindows_handle_wm_command):
15933         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15934         * menubar-msw.c (mswindows_handle_wm_initmenu):
15935         * menubar-msw.c (mswindows_update_frame_menubars):
15936         * menubar-msw.c (mswindows_free_frame_menubars):
15937         * menubar-msw.c (mswindows_popup_menu):
15938         Fixed a bug in handling accelerators where an extra character
15939         would be displayed in the menu item.  Also generalized the
15940         function displayable_menu_item because it is now used by the
15941         dialog box code as well.  And finally, added code in the functions
15942         that create the menubar to extract a list of accelerators for the
15943         top level menubar, which is used in the event code to determine
15944         whether a particular alt-key combination should be used to invoke
15945         a menu item, or should be passed through to access the standard
15946         XEmacs keymap binding for this key combination.
15947
15948         Much needed GCPROing.
15949
15950         * menubar-x.c:
15951         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15952         * menubar-x.c (menu_item_descriptor_to_widget_value):
15953         * menubar-x.c (restore_in_menu_callback):
15954         * menubar-x.c (x_popup_menu):
15955         * menubar-x.c (menu_move_up):
15956         * menubar-x.c (menu_move_down):
15957         * menubar-x.c (menu_move_left):
15958         * menubar-x.c (menu_move_right):
15959         * menubar-x.c (menu_select_item):
15960         * menubar-x.c (command_builder_operate_menu_accelerator):
15961         * menubar-x.c (menu_accelerator_junk_on_error):
15962         * menubar-x.c (command_builder_find_menu_accelerator):
15963         * menubar-x.c (Faccelerate_menu):
15964         * menubar.h:
15965         Moved a whole bunch of code here that was previously in
15966         event-stream.c as described above.  There is also code connected
15967         to the new standard of adding an accelerator to the beginning of
15968         menu items that don't have one as described above and below.
15969
15970         * menubar.c:
15971         * menubar.c (menu_parse_submenu_keywords):
15972         * menubar.c (Fmenu_find_real_submenu):
15973         * menubar.c (Fnormalize_menu_item_name):
15974         * menubar.c (syms_of_menubar):
15975         * menubar.c (vars_of_menubar):
15976         * menubar.c (complex_vars_of_menubar):
15977
15978         a) Cleaned up a bunch of documentation and improved it.
15979
15980         b) XEmacs now automatically adds an accelerator onto the beginning
15981         of any menu items that don't have one.  I did this because there
15982         will inevitably be some menu items on the main menubar that don't
15983         have accelerators on them because the package that adds that
15984         particular menu item hasn't yet been fixed up to have accelerators
15985         in them and it looked rather strange to have some items with and
15986         some items without accelerators, especially since even in items
15987         without accelerators, you can, at least under windows, still
15988         access the item through an accelerator corresponding to the first
15989         character in the item's name.  If people don't like this behavior,
15990         I can add a variable to turn it off optionally, but I'm not sure
15991         this is a good idea because we really do need to have accelerators
15992         on all of the menu items, and if a package doesn't like the
15993         accelerators being put on the first character, then it should put
15994         the accelerators where they belong.
15995
15996         c) I made a behavior change, which is that the descriptor that
15997         specifies the text of the menu item, which formerly was just a
15998         string, can now also be an evaluated expression.  This makes this
15999         descriptor parallel with all of the others, which could also be
16000         evaluated expressions.  This also obviates the need for the
16001         keyword :label, which was previously listed in the documentation
16002         as unimplemented, and which was for the same purpose.
16003
16004         d) GCPROing.
16005
16006         * ntproc.c:
16007         * ntproc.c (new_child):
16008         * ntproc.c (sys_spawnve):
16009         * ntproc.c (find_child_console):
16010         * ntproc.c (sys_kill):
16011         Fixed compile warnings.  By the way, this file should really go
16012         away entirely, and this will happen as soon as Kirill makes his
16013         final round of process cleanups, which affect the function
16014         call-process.
16015
16016         * process-nt.c:
16017         * process-nt.c (struct nt_process_data):
16018         * process-nt.c (find_process_from_pid):
16019         * process-nt.c (send_signal_the_nt_way):
16020         * process-nt.c (enable_child_signals):
16021         * process-nt.c (find_child_console):
16022         * process-nt.c (send_signal_the_95_way):
16023         * process-nt.c (nt_finalize_process_data):
16024         * process-nt.c (ensure_console_window_exists):
16025         * process-nt.c (nt_create_process):
16026         * process-nt.c (nt_kill_child_process):
16027         * process-nt.c (nt_kill_process_by_pid):
16028         * process-nt.c (nt_open_network_stream):
16029         * process-nt.c (vars_of_process_nt):
16030         Copied over code from Emacs 20.5 to correctly send signals to sub-
16031         processes under Windows 95.  Also added code to automatically
16032         create and hide console window when a sub-process is created under
16033         Windows 95, which obviates the need for the separate runemacs.exe
16034         executable, and finally implemented some variables that were
16035         implemented in Emacs 20.5, but previously not in XEmacs.  These
16036         include mswindows- start-process-share-console and
16037         mswindows-start-process-inherit-error-mode. (Both of these only
16038         apply to Windows 95.)
16039
16040         * regex.c (regex_compile): Fixed a compile warning.
16041
16042         * select-msw.c:
16043         * select-msw.c (mswindows_own_selection):
16044         * select-msw.c (mswindows_get_foreign_selection):
16045         * select-msw.c (mswindows_disown_selection):
16046         * select-msw.c (console_type_create_select_mswindows):
16047         * select-msw.c (syms_of_select_mswindows):
16048         Cleaned up the file and implemented the device method
16049         selection_exists_p, which had accidentally been left out.  Also
16050         removed four lisp functions that were remnants from before the
16051         time when the selection code was properly device abstracted.
16052         These functions are no longer needed because there are generic
16053         equivalents, and because they were added recently and don't exist
16054         in FSF Emacs, I don't think there's any problem with just deleting
16055         them.
16056
16057         * sysdep.c:
16058         * sysdep.c (sys_subshell):
16059         Fixed a compile warning, although in this case there's probably
16060         something wrong with this code, and it ought to be looked into
16061         more thoroughly by somebody who understands it.
16062
16063         * window.c:
16064         * window.c (Fwindow_text_area_height):
16065         * window.c (Fwindow_width):
16066         * window.c (Fwindow_full_width):
16067         * window.c (Fwindow_pixel_width):
16068         * window.c (debug_print_window):
16069         * window.c (syms_of_window):
16070         Added functions window-text-area-height and window-full-width,
16071         which are functions for returning various width and height
16072         characteristics of a window. (One of these functions is necessary
16073         for making the file dialog box work correctly, and the other one
16074         was added for completeness.)  Also added a table to the
16075         documentation for window-height which describes the entire scheme
16076         for accessing width and height characteristics of a window.
16077
16078 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16079
16080         * nt.c (fstat): Added a comment for another problem with
16081         non-encapsulated [f]stat(), reported by Adrian Aichner
16082         <aichner@ecf.teradyne.com>.
16083
16084 2000-03-11  Andy Piper  <andy@xemacs.org>
16085
16086         * window.c (make_dummy_parent): initialize subwindow instance
16087         cache.
16088         (Fset_window_configuration): zero extent_modiff.
16089
16090 2000-03-10  Andy Piper  <andy@xemacs.org>
16091
16092         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
16093         more changes can be triggered.
16094         (Fredisplay_frame): ditto.
16095         (Fredraw_device): ditto.
16096         (Fredisplay_device): ditto.
16097         (redisplay_frame): make non-static.
16098         (redisplay_frame): call update_frame_gutter_geometry outside of
16099         display proper.
16100
16101         * gutter.h: declare update_frame_gutter_geometry.
16102
16103         * redisplay.h: declare redisplay_frame.
16104
16105         * gutter.c (update_frame_gutter_geometry): move geometry changes
16106         in update_frame_gutters here. Geometry changes can only occur
16107         outside of redisplay.
16108         (update_frame_gutters): remove geometry change code.
16109         (Fredisplay_gutter_area): make sure that we are in display when we
16110         update and that we have flushed any size changes.
16111
16112 2000-03-11  Andy Piper  <andy@xemacs.org>
16113
16114         * alloc.c (pdump_dump_data): remove i & count shadows.
16115
16116 2000-02-27  Mike Alexander  <mta@arbortext.com>
16117
16118         * sysdep.h: Declare pdump_read_file
16119
16120         * sysdep.c (pdump_read_file): New function
16121
16122         * alloc.c (pdump_load): Call pdump_read_file to get the portable
16123         dump data
16124
16125 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
16126
16127         * lrecord.h: add `lrecord_type_pgsetenv'.
16128
16129 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
16130
16131         * symsinit.h: declare (vars|syms)_of* functions.
16132         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
16133
16134 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
16135
16136         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
16137
16138         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
16139         GCCs.
16140
16141         * emacs.c (main_1): Call postgres initialization code.
16142
16143         * postgresql.h: New file.  PostgreSQL RDBMS support.
16144         * postgresql.c: New file.
16145
16146 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
16147
16148         * redisplay-output.c (redisplay_output_display_block): Disable
16149         redundant code.
16150
16151 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16152
16153         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
16154         (Fcanna_henkan_next): Ditto.
16155         (Fcanna_bunsetu_henkou): Ditto.
16156         (Fcanna_henkan_kakutei): Ditto.
16157         (Fcanna_henkan_end): Ditto.
16158         (Fcanna_henkan_quit): Ditto.
16159         (Fcanna_henkan_next): Set retun value correctly.
16160         (c2mu): Use unsigned char instead of signed char.
16161
16162 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16163
16164         * emacs.c (main_1): Always call syms_of_gui.
16165         * inline.c: include gui.h
16166
16167 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16168
16169         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
16170         converted to Lisp_Object.
16171         (Qtop_bottom): New variable.
16172         (syms_of_redisplay): Initialize it.
16173         * redisplay.h (Vvisible_bell): Ditto.
16174         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
16175         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
16176         only flash top and bottom.
16177
16178 2000-03-08  Andy Piper  <andy@xemacs.org>
16179
16180         * buffer.c (Frename_buffer): record new buffer name the right way.
16181
16182 2000-03-08  Andy Piper  <andy@xemacs.org>
16183
16184         * glyphs.c (update_subwindow): increase hash depth so that widget
16185         items get picked up properly.
16186
16187         * redisplay-output.c (compare_runes): increase hash depth so that
16188         widget items get picked up properly.
16189
16190 2000-03-08  Andy Piper  <andy@xemacs.org>
16191
16192         * gutter.c (output_gutter): add some debug.
16193
16194         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
16195         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
16196         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
16197
16198         * redisplay-output.c (compare_runes): use display_hash to
16199         determine if glyphs really are not the same.
16200
16201         * glyphs.c (update_subwindow): check display_hash to see if
16202         anything really needs to be updated. If not then do
16203         nothing. Record the display_hash after updating.
16204         (image_instance_equal): compare the image_instance face also.
16205
16206 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
16207
16208         * redisplay.h: Fix comment style.
16209
16210 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16211
16212         * consle-msw.h (struct mswindows_frame):
16213         Added new member paint_pending to indicate whether a WM_PAINT
16214         magic event has been queued for this frame.
16215
16216         * event-msw.c (mswindows_drain_windows_queue):
16217         Don't queue a WM_PAINT magic event if one is already queued.
16218         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
16219
16220         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
16221
16222 2000-03-07  Didier Verna  <didier@xemacs.org>
16223
16224         * dired.c: #include `regex.h' after `sysfile.h'.
16225
16226 2000-03-06  Martin Buchholz  <martin@xemacs.org>
16227
16228         * sound.c (init_nas_sound): Fix compiler warning.
16229
16230         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
16231         (FREE_STRUCT_P):
16232         (MARK_STRUCT_AS_FREE):
16233         (MARK_STRUCT_AS_NOT_FREE):
16234         Make `gcc -fstrict-aliasing' work properly.
16235
16236 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16237
16238         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16239         (mswindows_delete_device): Call CoUnnitialize().
16240
16241         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16242
16243 2000-02-25    <CraigL@DyCon.com>
16244
16245         * process-nt.c: MinGW now has <shellapi.h>, but still needs
16246         <errno.h>.
16247
16248         * sysdep.c: This extern declaration for environ prevents MinGW
16249         from finding the variable in CRTDLL.DLL.
16250
16251         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16252         windows headers.
16253         (SHGFI_EXETYPE): ..
16254         (WM_MOUSEWHEEL): ..
16255         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16256         definitions.
16257         (MMRESULT): Removed, now defined in cygwin's windows headers.
16258         (TIMECAPS): ..
16259         (uid_t,gid_t,pid_t,ssize_t): ..
16260         (_timeb): Removed, MinGW defines both _timeb and timeb.
16261         (HAVE_H_ERRNO): Added.
16262         (HAVE_TZNAME): Added, configure is not detecting this.
16263
16264 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16265
16266         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16267         * syntax.c (syntax_match): Use it.
16268
16269         * cmds.c: Import auto-fill-chars from FSF Emacs.
16270         (Vauto_fill_chars): New variables.
16271         (internal_self_insert): Check Vauto_fill_chars.
16272         (vars_of_cmds):
16273         Declare auto-fill-chars as a Lisp variable and initialize it.
16274
16275 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16276
16277         * fileio.c (Fmake_symbolic_link):
16278         (Ffile_symlink_p):
16279         Run handlers even if local machine doesn't have symlinks.
16280
16281 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16282
16283         * event-msw.c (mswindows_drain_windows_queue):
16284         Don't generate paint magic events for non-XEmacs frames.
16285
16286 2000-03-05  Andy Piper  <andy@xemacs.org>
16287
16288         * redisplay.c (redisplay_frame): generate_displayable_area and
16289         friends assumes that we are not in GC, we therefore have to make
16290         sure that this doesn't happen.
16291
16292         * gutter.c (calculate_gutter_size): generate_displayable_area
16293         assumes that we are not in GC, we therefore have to make sure that
16294         this doesn't happen.
16295
16296 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16297
16298         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16299
16300 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16301
16302         * redisplay.c (regenerate_window): Make sure we set a sane value
16303         for end_pos even if we jump out of the loop.
16304         (regenerate_window): Answer Ben's question :-).
16305         (start_end_of_last_line): Add may_error argument.
16306         (start_of_last_line):
16307         (end_of_last_line): Pass may_error = 0.
16308         (end_of_last_line_may_error): New function.
16309         (pixel_to_glyph_translation): Use it, so we don't crash in
16310         event_to_glyph.
16311
16312 2000-03-04  Andy Piper  <andy@xemacs.org>
16313
16314         * window.h (struct window): add gutter_extent_modiff.
16315
16316         * window.c (allocate_window): zero out gutter_extent_modiff.
16317
16318         * redisplay.h: declare sync_display_line_structs.
16319
16320         * redisplay.c (add_glyph_rune): add a better comment.
16321
16322         * redisplay-output.c (sync_display_line_structs): made non-static.
16323         (compare_runes): remove unneccesary glyph cachel access.
16324
16325         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16326
16327         * gutter.c (output_gutter): don't output the gutter if extent
16328         changes only involve extents in buffers. use 4 sets of display
16329         lines.
16330         (gutter_extent_signal_changed_region_maybe): new function. Mark
16331         extents in gutters as changed.
16332         (update_frame_gutters): use 4 sets of display lines.
16333         (reset_gutter_display_lines): ditto.
16334         (free_frame_gutters): ditto.
16335         (redraw_exposed_gutter): force output of gutters.
16336
16337         * frame.h (struct frame): add 4 sets of gutter display lines.
16338
16339         * extents.c: (extent_changed_for_redisplay): signal changes to
16340         extents in strings in the gutter as well as extents in buffers.
16341
16342 2000-03-02  Andy Piper  <andy@xemacs.org>
16343
16344         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16345
16346         * frame.c (Fmake_frame): make sure the gutters get initialized
16347         after the frame is visible.
16348         (set_frame_selected_window): re-arrange compilation macros a
16349         little.
16350         (change_frame_size_1): mark gutters changed.
16351
16352         * device.c (Fset_device_class): mark gutters changed.
16353
16354 2000-03-01  Andy Piper  <andy@xemacs.org>
16355
16356         * window.c (window_top_frame_gutter_height): deleted.
16357         (window_bottom_frame_gutter_height): ditto.
16358         (window_left_frame_gutter_height): ditto.
16359         (window_right_frame_gutter_height): ditto.
16360         (window_top_gutter_height): don't use them.
16361         (window_bottom_gutter_height): ditto.
16362         (window_left_gutter_width): ditto.
16363         (window_right_gutter_width): ditto.
16364         (Fsplit_window): ditto.
16365         (Fwindow_pixel_edges): don't use border dimensions here.
16366
16367         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16368         (update_scrollbar_instance): ditto.
16369
16370         * redisplay.c (generate_modeline): don't take gutters into account.
16371         (generate_modeline): ditto.
16372         (redisplay_frame): small gutter display optimization.
16373
16374         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16375
16376         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16377         gutters into account.
16378
16379         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16380         for window position and type.
16381
16382         * gutter.c (get_gutter_coords): fix for frame gutters.
16383         (update_frame_gutters): update frame geometry if the gutters have
16384         changed.
16385         (init_frame_gutters): record current gutter geometries.
16386
16387         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16388         var.
16389         (mswindows_widget_instantiate): ditto.
16390
16391         * frame.h (struct frame): add current_gutter_bounds.
16392
16393         * frame.c (change_frame_size_1): position window and minibuffer
16394         appropriately taking into account the frame gutters.
16395
16396         * frame-x.c: (x_initialize_frame_size): take into account the
16397         frame gutters.
16398
16399 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16400
16401         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16402
16403 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16404
16405         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16406
16407 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16408
16409         * file-coding.c (reset_decoding_stream): Clear previous
16410         detection state when autodetect.
16411
16412 2000-02-29  Didier Verna  <didier@xemacs.org>
16413
16414         * extents.c (set_extent_glyph_1): don't require extents to be
16415         attached.
16416
16417 2000-02-27  Andy Piper  <andy@xemacs.org>
16418
16419         * gutter.c (Fset_default_gutter_position): don't default left and
16420         right gutter visibility to t.
16421         (Fset_default_gutter_position): run
16422         default-gutter-position-changed-hook.
16423         (syms_of_gutter): add default-gutter-position-changed-hook.
16424
16425 2000-02-26  Andy Piper  <andy@xemacs.org>
16426
16427         * specifier.c (Fmake_specifier): add gutter references.
16428
16429         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16430
16431         * lisp.h: declare Fvalid_plist_p.
16432
16433         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16434         as changed.
16435         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16436         well as its visibility so that it gets reconstructed.
16437         (construct_window_gutter_spec): new function. Construct a string
16438         to be displayed in the gutter from a plist of strings. Take care
16439         to only use elements that are declared as visible.
16440         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16441         WINDOW_GUTTER.
16442         (gutter_validate): allow plists of strings in the specifier.
16443         (gutter_specs_changed): construct the real_gutter from the gutter
16444         specs using construct_window_gutter_spec.
16445         (gutter_visible_validate): gutter-visible is a new specifier type.
16446         (Fgutter_visible_specifier_p): new function for the new specifier.
16447         (syms_of_gutter): declare gutter-visible and
16448         Fgutter_visible_specifier_p.
16449         (specifier_type_create_gutter): intitalize new gutter-visible
16450         specifier.
16451         (reinit_specifier_type_create_gutter): ditto.
16452         (specifier_vars_of_gutter): use new specifier type for gutter
16453         visibility.
16454         (init_frame_gutters): construct real_gutter correctly.
16455         (Fgutter_specifier_p): beef up documentation.
16456         (Fgutter_size_specifier_p): ditto.
16457
16458         * winslots.h: add real_gutter slots.
16459
16460 2000-02-25  Andy Piper  <andy@xemacs.org>
16461
16462         * device-msw.c: Be kind to older cygwin versions. From Raymond
16463         Toy <toy@rtp.ericsson.se>.
16464
16465         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16466         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16467
16468 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16469
16470         * elhash.c (MARK_OBJ): Practice macro hygiene.
16471
16472 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16473
16474         * miscplay.c: s/__inline__/inline/g;
16475         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16476         (get_device_compdc): INLINE ==> static inline
16477         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16478         find -name '*.h' | \
16479         xargs global-replace \
16480         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16481
16482 2000-02-25  Andy Piper  <andy@xemacs.org>
16483
16484         * window.c (window_top_frame_gutter_height): new function.
16485         (window_top_window_gutter_height): ditto.
16486         (window_top_gutter_height): use them.
16487         (window_bottom_frame_gutter_height): new function.
16488         (window_bottom_window_gutter_height): ditto.
16489         (window_bottom_gutter_height): use them.
16490         (window_left_window_gutter_width): new function.
16491         (window_left_frame_gutter_width): ditto.
16492         (window_left_gutter_width): use them.
16493         (window_right_window_gutter_width): new function.
16494         (window_right_frame_gutter_width): ditto.
16495         (window_right_gutter_width): use them.
16496         (window_pixel_height): new function. calulate window pixel height
16497         with frame gutter involvement.
16498         (Fsplit_window): calculate new sizes taking frame gutters into
16499         account.
16500         (window_char_height_to_pixel_height): don't include frame gutters.
16501         (window_char_height): use window_pixel_height.
16502         (window_pixheight): rename from window_pixel_height.
16503         (change_window_height): use it.
16504         (window_pixel_height_to_char_height): don't include frame gutters.
16505         (window_char_width_to_pixel_width): ditto.
16506
16507 2000-02-25  Andy Piper  <andy@xemacs.org>
16508
16509         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16510         if it is.
16511
16512 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16513
16514         * alloc.c (staticpro):
16515         (staticpro_nodump):
16516         (dumpstruct):
16517         (dumpopaque):
16518         (pdump_wire):
16519         (pdump_wire_list):
16520         (compact_string_chars):
16521         (pdump_dump_wired):
16522         Convert:  if (foo) abort();  ==>  assert (! foo);
16523
16524         * eldap.c (Fldap_search_basic):
16525         (Fldap_add):
16526         (Fldap_modify):
16527         (Fldap_delete):
16528         Fix compiler warnings, and possible crashes if (random) return
16529         value were to be used.
16530
16531 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16532
16533         * device-msw.c: Workaround ResetDC failure.
16534
16535         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16536         applying a devmode.
16537
16538         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16539         (mswindows_text_width): Do not start printer page.
16540
16541         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16542
16543         * glyphs-msw.c: Added image methods to msprinter console and
16544         msprinter-specific image instantiation.
16545
16546 2000-02-20  Mike Alexander  <mta@arbortext.com>
16547
16548         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16549         to avoid crashes when selection-sets-clipboard is on
16550         (mswindows_own_selection): ditto
16551
16552 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16553
16554         * glyphs-msw.c:
16555         * redisplay-msw.c (get_frame_dc):
16556         (get_frame_compdc):
16557         * console-msw.h:
16558         * device-msw.c (mswindows_init_device):
16559         (mswindows_delete_device):
16560         (msprinter_init_device):
16561         (msprinter_delete_device):
16562         * frame-msw.c (mswindows_init_frame_1):
16563         (mswindows_delete_frame):
16564         (msprinter_init_frame_3):
16565         (msprinter_delete_frame): Move compatible DC to device object from
16566         frame object, for both mswindows and msprinter. Only one at a time
16567         is needed, it is a real waste to have one per frame!
16568
16569 2000-02-23  Andy Piper  <andy@xemacs.org>
16570
16571         * glyphs.c: add dynamic width and height elements.
16572         (image_instance_equal): ditto.
16573
16574         * glyphs-widget.c (widget_query_geometry): calculate width and
16575         height dynamically if required.
16576         (initialize_widget_image_instance): initialize dynamic dimensions.
16577         (widget_instantiate): pick-up dynamic dimensions.
16578
16579         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16580         dynamic determination. Add appropriate macros.
16581
16582         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16583         dimensions safe.
16584         (WINDOW_GUTTER_SIZE): ditto.
16585         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16586
16587         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16588         inline.
16589         (get_frame_dc): ditto.
16590
16591         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16592         here.
16593
16594 2000-02-23  Martin Buchholz <martin@xemacs.org>
16595
16596         * XEmacs 21.2.31 is released.
16597
16598 2000-02-22  Ben Wing <ben@xemacs.org>
16599
16600         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16601
16602 2000-02-22  Andy Piper  <andy@xemacs.org>
16603
16604         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16605
16606 2000-02-21  Mike Sperber <mike@xemacs.org>
16607
16608         * .dbxrc:
16609         * .gdbinit:
16610         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16611         variables.
16612
16613 2000-02-21  Mike Sperber <mike@xemacs.org>
16614
16615         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16616
16617 2000-02-21  Martin Buchholz <martin@xemacs.org>
16618
16619         * XEmacs 21.2.30 is released.
16620
16621 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16622
16623         Performance hacking.
16624         * *.c (syms_of_*):
16625         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16626         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16627         * emacs.c (main_1):
16628         * lisp.h (DEFUN):
16629         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16630         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16631         * symeval.h (DEFVAR_SYMVAL_FWD):
16632         * symbols.c (guts_of_unbound_marker):
16633         Make all c_readonly objects also lisp_readonly and marked for life.
16634         * lrecord.h (struct lrecord_implementation):
16635         Document flags better.
16636         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16637         * lrecord.h (DECLARE_LRECORD):
16638         * lrecord.h (XSETRECORD):
16639         * lrecord.h (RECORDP):
16640         * lrecord.h (RECORD_TYPEP):
16641         * lrecord.h (RECORD_MARKER): New.
16642         * lrecord.h (error_check_*):
16643         * lrecord.h (CONCHECK_NONRECORD):
16644         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16645         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16646         * lrecord.h (set_lheader_implementation):
16647         * lrecord.h (enum lrecord_type): New.
16648         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16649         * alloc.c (disksave_object_finalization_1):
16650         * alloc.c (mark_object):
16651         * alloc.c (lrecord_type_index):
16652         * alloc.c (tick_lcrecord_stats):
16653         * alloc.c (Fgarbage_collect):
16654         * alloc.c (init_alloc_once_early):
16655         * alloc.c (pdump_load):
16656         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16657         * alloc.c (lrecord_type_index): Delete.
16658         Make lisp object type indexes be constant.
16659           Makes (byte-compile) 5% faster.
16660         Put all marker functions into their own array.
16661           Makes (garbage-collect) 5% faster.
16662         Optimize SYMBOL_VALUE_MAGIC_P.
16663           Makes (byte-compile) 2-3% faster.
16664         * config.h.in (gc_checking_assert): New.
16665         * alloc.c: Use gc_checking_assert().
16666         * .dbxrc: Make compatible with new object type implementation.
16667         * .gdbinit: Make compatible with new object type implementation.
16668         * alloc.c: Delete all symbols defined only for debugging, such as
16669         Lisp_Type_Vector and lrecord_charset.
16670
16671 2000-02-21  Andy Piper  <andy@xemacs.org>
16672
16673         * gui-msw.c (Fmswindows_shell_execute): fix file location
16674         problems.
16675
16676         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16677         unshowing so that set_window_buffer doesn't undo
16678         kill_buffer_hook's hard work.
16679
16680         * glyphs-widget.c (tab_control_query_geometry): don't count the
16681         first item when calculating geometry.
16682
16683         * glyphs.c (map_subwindow): remove redundant code.
16684         (update_frame_subwindows): be more circumspect about when to
16685         update subwindows.
16686
16687         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16688         when items haven't changed. Update faces if faces have changed as
16689         well as just the widget face.
16690         (x_tab_control_update): Update faces if faces have changed as well
16691         as just the widget face.
16692
16693 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16694
16695         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16696         registration.
16697         (build_syscolor_string): Use mswindows_color_to_string to try to
16698         get a named color.
16699         (mswindows_device_system_metrics): Reverse the foreground and
16700         background colors so that they match the documentation.
16701
16702         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16703         they match the default Windows palette.
16704         (mswindows_color_to_string): New function.
16705
16706 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16707
16708         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16709
16710 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16711
16712         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16713         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16714
16715         * symbols.c (init_symbols_once_early): Removed obsolete
16716         DATA_SEG_BITS related kludge.
16717         (defvar_magic): Ditto.
16718
16719         * malloc.c: Removed obsolete DATA_SEG_BITS
16720         * ralloc.c: Ditto.
16721         * mem-limits.h: Ditto.
16722
16723         * Makefile.in.in: Removed obsolete HAVE_SHM
16724         * emacs.c: Ditto.
16725
16726 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16727
16728         *  device-msw.c (mswindows_delete_device): Free DDE string
16729         handles.
16730
16731 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16732
16733         * keymap.c (get_keyelt):
16734         * unexnt.c (unexec):
16735         * vm-limit.c (memory_warnings):
16736         * ntheap.c (recreate_heap):
16737         * ntheap.h (UNINIT_PTR):
16738         * select-msw.c (Fmswindows_get_clipboard):
16739         (Fmswindows_set_clipboard):
16740         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16741         * objects-msw.c:
16742         * menubar-msw.c (displayable_menu_item):
16743         * glyphs-msw.c:
16744         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16745         * sysdep.c (sys_subshell):
16746         * process-nt.c (nt_create_process):
16747         * nt.c (normalize_filename):
16748         (dostounix_filename):
16749         (unixtodos_filename):
16750         * ntproc.c (win32_executable_type):
16751         * ntplay.c (play_sound_data_1):
16752         (play_sound_file):
16753         * editfns.c (get_home_directory):
16754         * event-msw.c (struct winsock_stream):
16755         (mswindows_dde_callback):
16756         * device-msw.c (msprinter_init_device):
16757         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16758
16759         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16760         mswindows_clear_toolbar were swapped!
16761
16762         * objects-msw.c:(colormap_t):
16763         (fontmap_t):
16764         * emacs.c (struct standard_args): Fixed const jumble.
16765
16766         * glyphs-widget.c (update_widget): Fixed comparison notation.
16767
16768         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16769
16770         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16771         __declspec(noreturn) syntax.
16772
16773 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16774
16775         * eldap.c (Fldap_open):
16776         (Fldap_search_basic):
16777         (Fldap_add):
16778         (Fldap_modify):
16779         Use new coding system conversion macros.
16780
16781 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16782
16783         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16784
16785 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16786
16787         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16788         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16789
16790         * eldap.c (Qadd, Qreplace): New constant symbols
16791         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16792         interruptions by XEmacs signals
16793         Remove unnecessary calls to slow_down_interrupts and
16794         speed_up_interrupts
16795         (Fldap_search_basic): Renamed from Fldap_search_internal
16796         Added new optional parameter VERBOSE that triggers the
16797         display of progress messages
16798         Remove unnecessary calls to slow_down_interrupts and
16799         speed_up_interrupts
16800         LDAP result code analysis rewritten
16801         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16802         (syms_of_eldap): Define the new symbols and functions
16803
16804
16805 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16806
16807         * realpath.c: Determine PATH_MAX maximally portably.
16808
16809         * insdel.c (bytecount_to_charcount): Optimize.
16810         The function used to be optimized for entirely ASCII sequences.
16811         Now it is optimized for successive characters from the same
16812         charset.  This also wins big for _mostly_ ASCII sequences.
16813
16814         * fileio.c (Ffile_truename): convert return from realpath() using
16815         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16816         - Rewrite GCPROing slightly.
16817
16818         * sysdep.c (sys_open): Do filename conversion, like all other
16819         sys_* functions.  Fixes bug:
16820         (let ((file-name-coding-system 'iso-8859-2))
16821            (write-region x y latin2-name))
16822         ==> writes filename using internal encoding.
16823
16824 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16825
16826         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16827         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16828         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16829         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16830         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16831         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16832         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16833         (CONST_IF_NOT_DEBUG): Delete.
16834         * alloc.c (this_one_is_unmarkable): Delete.
16835         (mark_object): Don't check for this_one_is_unmarkable. Use the
16836         c_readonly flag instead.
16837         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16838
16839 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16840
16841         * event-msw.c (mswindows_drain_windows_queue):
16842         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16843         away redundant repaint events.
16844
16845 2000-02-17  Andy Piper  <andy@xemacs.org>
16846
16847         * redisplay.h: declare mark_redisplay_structs.
16848
16849         * redisplay.c (redisplay_window):
16850         (redisplay_frame): don't check subwindows_state_changed.
16851         (mark_redisplay): mark gutters here.
16852
16853         * glyphs.c: (instantiate_image_instantiator): always layout if we
16854         haven't done so already.
16855         (allocate_image_instance): don't mark as dirty.
16856         (update_subwindow): bind inhibit_quit.
16857
16858         * gutter.c (mark_gutters): new function.
16859
16860         * glyphs-x.c (x_update_widget): Always resize to get round a
16861         widget bug.
16862
16863         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16864         breaking absolutely everything.
16865
16866         * gutter.h: declare mark_gutters.
16867
16868 2000-02-16  Martin Buchholz <martin@xemacs.org>
16869
16870         * XEmacs 21.2.29 is released.
16871
16872 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16873
16874         * fns.c (size_bit_vector): Fix computation of the size.
16875
16876 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16877
16878         * *.[ch]: Change CONST to const globally.
16879         find -name '*.[ch]' | \
16880         xargs global-replace \
16881         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16882         - Remove vestigial references to CONST_IS_LOSING
16883
16884 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16885
16886         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16887         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16888         events instead of dispatching them directly.
16889         (mswindows_handle_paint): New function to do repainting.
16890         (mswindows_wnd_proc):
16891         (emacs_mswindows_handle_magic_event): Call above function.
16892
16893 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16894
16895         * objects-msw.c (mswindows_create_font_variant): Return the new
16896         font handle.
16897         (initialize_font_instance): Get font metrics from the underlined
16898         variant of the font to cope with the case where the underlined
16899         font has a bigger descent.
16900
16901 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16902
16903         * gui.c (gui_item_accelerator): Return the first underlined
16904         character in item name.
16905
16906 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16907
16908         * lisp.h: Added Qprinter.
16909
16910         * general.c (syms_of_general): Initialized it.
16911
16912         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16913         (get_frame_dc):
16914         (get_frame_compdc): Made inline.
16915
16916         * console.h (struct console_methods): Added eject_page method.
16917
16918         * frame.h: Added FRAME_DISPLAY_P and friends.
16919         Aligned backslahes in many macros in more readable fashion.
16920         Added page_number to struct frame, and an accessor macro
16921         for it.
16922
16923         * defice.h: Added DEVICE_DISPLAY_P and friends.
16924
16925         * device.c (Fdevice_printer_p): Used these.
16926
16927         * frame.c (allocate_frame_core): Initialize page number.
16928         (Fprint_job_page_number):
16929         (Fprint_job_eject_page): Implemented.
16930
16931         * frame-msw.c (msprinter_eject_page): Added method.
16932         (msprinter_start_page): Added.
16933
16934         * window.c (Fwindow_truncated_p): Fixed docstring.
16935         (Fwindow_last_line_visible_height): Implemented.
16936
16937 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16938
16939         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16940
16941 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16942
16943         * syntax.c (scan_words): Always advance at least one character.
16944
16945 2000-02-13  Andy Piper  <andy@xemacs.org>
16946
16947         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16948         to make sure the glyph is in the cachels.
16949
16950         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16951         global image instance flag.
16952         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16953         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16954
16955         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16956         (Fset_image_instance_property): mark layout as changed.
16957         (invalidate_glyph_geometry_maybe): mark layout as changed.
16958         (glyph_width): use new NEEDS_LAYOUT macro.
16959         (glyph_ascent): ditto.
16960         (glyph_descent): ditto.
16961         (glyph_height): ditto.
16962         (image_instance_layout): mark layout as clean after laying out.
16963         (update_subwindow): don't mark layout as clean here.
16964
16965         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16966         should no longer be needed.
16967
16968         * glyphs-x.c (x_update_widget): sanitize asserts.
16969         (x_finalize_image_instance): sanitize assignment to widgets.
16970
16971         * glyphs-widget.c (widget_instantiate): don't need to clear the
16972         layout flag here.
16973
16974 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16975
16976         * sysdep.c (getcwd): Use standard prototype.
16977         * sysdep.h (getcwd): Use standard prototype.
16978
16979         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16980         (sequence, start, end).
16981         Remove redundant type checking.
16982         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16983         view of `caller-protects') to avoid a crash where the real fix was
16984         found elsewhere.
16985
16986 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16987
16988         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16989
16990         * s/sol2.h: Remove feature macro initialization.
16991
16992         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16993         (vector_hash): New.  Code from internal_hash.
16994         * lrecord.h:
16995         Fix up allocation subsystem comments.
16996
16997         * config.h.in: Add __EXTENSIONS__ for Solaris.
16998
16999         * systime.h (EMACS_GETTIMEOFDAY): New.
17000         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
17001         Remove Solaris-specific code.
17002         Use void* for the (ignored) second arg for gettimeofday().
17003
17004         * elhash.c (hash_table_hash): Implement it, finally.
17005         * elhash.c:  Use hashcode_t.
17006
17007         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
17008         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
17009
17010         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
17011         * fns.c (size_bit_vector):
17012         * alloc.c (size_vector):
17013         (make_vector_internal):
17014         (make_bit_vector_internal):
17015         (sweep_bit_vectors_1):
17016         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
17017
17018 2000-02-10  Martin Buchholz  <martin@xemacs.org>
17019
17020         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
17021         Include strings.h to avoid warnings for bzero and strcasecmp.
17022
17023 2000-02-10  Olivier Galibert  <galibert@pobox.com>
17024
17025         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
17026         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
17027
17028         * fns.c (size_bit_vector): New.  Declare bit vectors as a
17029         sequence.
17030
17031 2000-02-10  Olivier Galibert  <galibert@pobox.com>
17032
17033         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
17034         use a value field instead.
17035         (symbol_value_forward_forward): Use value field.
17036         (DEFVAR_SYMVAL_FWD): Use value field.
17037         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
17038         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
17039         (DEFVAR_CONST_INT): Ditto.
17040         (DEFVAR_BOOL): Ditto.
17041         (DEFVAR_CONST_BOOL): Ditto.
17042         (DEFVAR_INT_MAGIC): Ditto.
17043         (DEFVAR_BOOL_MAGIC): Ditto.
17044
17045         * symbols.c (guts_of_unbound_marker): Use value field.
17046         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
17047         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
17048
17049         * lisp.h: Declare dumpopaque and noninteractive1.
17050
17051         * alloc.c (dumpopaque): Added.
17052         (pdump_dump_opaquevec): Added.
17053         (pdump): Call pdump_dump_opaquevec to dump opaque data.
17054         (pdump_load): Reload opaque data.  Sync noninteractive1 with
17055         noninteractive.
17056
17057 2000-02-10  Andy Piper  <andy@xemacs.org>
17058
17059         * glyphs.c (image_instance_layout): if the size changes, mark it
17060         as such.
17061
17062         * redisplay-output.c (redisplay_output_layout): Update the
17063         subwindow here.
17064         (redisplay_output_subwindow): ditto.
17065
17066         * glyphs.c (update_subwindow): make sure we reset flags for
17067         layouts as well as everything else.
17068
17069         * glyphs-widget.c (layout_layout): don't need to set the instances
17070         dimensions here.
17071
17072 2000-02-09  Martin Buchholz  <martin@xemacs.org>
17073
17074         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
17075         not HAVE_DLOPEN, which is a lower-level thing.
17076
17077         * .cvsignore: Ignore gmon.out
17078
17079 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
17080
17081         * .cvsignore: Ignore portable dumper xemacs.dmp file
17082
17083 2000-02-09  Andy Piper  <andy@xemacs.org>
17084
17085         * redisplay-output.c (redisplay_output_layout): be more clever
17086         about when we output based on the changed flags.
17087
17088         * glyphs.h (struct image_instantiator_methods): add update_method.
17089         (struct Lisp_Image_Instance): add changed flags. Declare new
17090         macros for manipulating them.
17091
17092         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
17093         (image_instance_parent_glyph): find an image_instance's parent
17094         glyph or image_instance.
17095         (image_instance_layout): mark the size as changed.
17096         (set_image_instance_dirty_p): new function. mark an image
17097         instance, plus all of its parents, as dirty.
17098         (Fset_image_instance_property): use it.
17099         (Fglyph_animated_timeout_handler): use it.
17100         (update_subwindow): call update_widget and device methods for
17101         update_subwindow. Mark all changed flags as clean.
17102         (Fresize_subwindow): mark size as changed.
17103
17104         * glyphs-x.c (x_finalize_image_instance): try and detect gc
17105         failures.
17106         (x_update_subwindow): only resize subwindows here.
17107         (x_update_widget): new function. Update all changed properties of
17108         a widget.
17109         (x_resize_subwindow): deleted.
17110         (x_widget_set_property): deleted.
17111         (x_progress_gauge_set_property): deleted.
17112         (x_progress_gauge_update): new function. Implement recorded
17113         changes.
17114         (x_tab_control_update): ditto.
17115         (x_tab_control_set_property): deleted.
17116         (console_type_create_glyphs_x): declare new functions.
17117         (image_instantiator_format_create_glyphs_x): ditto.
17118
17119         * glyphs-widget.c (widget_set_property): mark text changed.
17120         (update_widget): new function. Update properties of a widget.
17121         (widget_instantiate): for layouts make sure we set their
17122         children's parent correctly.
17123         (tab_control_set_property): new function. Record changes that will
17124         take place under redisplay's control.
17125         (progress_gauge_set_property): ditto.
17126         (image_instantiator_progress_guage): declare new functions.
17127         (image_instantiator_tab_control): ditto.
17128
17129         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
17130         now.
17131         (mswindows_update_widget): new function. Update all properties on
17132         a widget that have changed.
17133         (mswindows_button_update): new function. Update a button's set
17134         state.
17135         (mswindows_tab_control_update): new function. Update the items in
17136         a tab.
17137         (mswindows_tab_control_set_property): deleted.
17138         (mswindows_progress_gauge_update): new function. Update the
17139         progress gauge's progress.
17140         (mswindows_widget_set_property): deleted. This is all done
17141         asynchronously now.
17142         (mswindows_progress_gauge_set_property): ditto.
17143         (console_type_create_glyphs_mswindows): declare new methods.
17144         (image_instantiator_format_create_glyphs_mswindows): ditto.
17145
17146         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
17147         (msprinter_set_frame_properties): ditto.
17148
17149         * console.h (struct console_methods): Add update_widget_method.
17150
17151 2000-02-09  Andy Piper  <andy@xemacs.org>
17152
17153         * gui-msw.c (Fmswindows_shell_execute): Make
17154         mswindows-shell-execute industrial strength.
17155
17156 2000-02-08  Martin Buchholz  <martin@xemacs.org>
17157
17158         * lrecord.h: Make macro argument `props' match member function `plist'.
17159         * fns.c (Fget):
17160         * fns.c (Fput):
17161         * fns.c (Fremprop):
17162         * fns.c (Fobject_plist):
17163         * alloc.c:
17164         * symbols.c:
17165         Object property list frobbing cleanup.
17166         - Allow any lisp object (compared with `eq'), not just symbols, as
17167           keys in object plists.
17168         - Move symbol plist frobbing into symbols.c, where it belongs.
17169         - Move string plist frobbing into alloc.c, where it belongs.
17170         - Everything's an lrecord now, so no need to test for symbolp, etc.
17171         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
17172
17173         * extents.c: Reorder code to remove declarations.
17174
17175         * frame.h (store_in_alist): Remove useless declaration.
17176
17177 2000-02-07  Martin Buchholz  <martin@xemacs.org>
17178
17179         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
17180         * config.h.in: Add HAVE_XCONVERTCASE.
17181
17182 2000-02-07  Andy Piper  <andy@xemacs.org>
17183
17184         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
17185         it breaks many things.
17186
17187 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
17188
17189         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
17190         actually can start a common comment type.
17191         * src/syntax.h (SYNTAX_END_P): ditto for end.
17192
17193 2000-02-07  Martin Buchholz <martin@xemacs.org>
17194
17195         * XEmacs 21.2.28 is released.
17196
17197 2000-02-06  Martin Buchholz  <martin@xemacs.org>
17198
17199         * event-Xt.c (x_keysym_to_character): New.
17200         (maybe_define_x_key_as_self_inserting_character): New.
17201         (x_has_keysym): New.
17202         Auto-define all keys on the keyboard as self-insert-key.
17203
17204 2000-02-02  Martin Buchholz  <martin@xemacs.org>
17205
17206         * menubar.c (vars_of_menubar): A small code simplification.
17207
17208         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
17209
17210         * ExternalShell.c:
17211         * ExternalClient.c:
17212         * EmacsShell-sub.c:
17213         * EmacsManager.c:
17214         * EmacsFrame.c:
17215         Use consistent style for specifying X resources.
17216
17217         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
17218         This makes (dontusethis-set-symbol-value-handler) actually usable.
17219
17220         * lrecord.h (lrecord_decription_type):
17221         * alloc.c (pdump_register_sub):
17222         (pdump_dump_data):
17223         (pdump_reloc_one):
17224         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
17225         Comply with XEmacs coding style.
17226         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
17227         args, and XD_LISP_OBJECT_ARRAY with 3 args.
17228
17229         * keymap.c (Faccessible_keymaps):
17230         Make (accessible-keymaps map "\C-h") do the Right Thing.
17231         Make (accessible-keymaps map []) do the Right Thing.
17232         Make (accessible-keymaps map "") do the Right Thing.
17233         (check_keymap_definition_loop): New function.
17234         (keymap_store_internal): Keep luser from shooting self in foot,
17235           via (define-key ctl-x-4-map "p" global-map).
17236         Remove fullness slot from struct Lisp_Keymap, since hash tables
17237         are now reliable.
17238         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17239
17240 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17241
17242         * redisplay.c (init_redisplay): Fix small memory leak.
17243         * elhash.h:
17244         * elhash.c (pdump_reorganize_hash_table):
17245         Rename from reorganize_hash_table. Change prototype.
17246         Reuse the original memory for hentries.  Save 100k.
17247         * alloc.c (PDUMP_READ): new macro.
17248         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17249         * alloc.c: No need to #ifndef before #undef.
17250
17251         * print.c: Allow debug_print() to print readably by modifying
17252         debug_print_readably.  Use consistent variable names.
17253
17254         * .dbxrc: Try to get things to work even if stopped in a function
17255         without source available by explicitly specifying source files.
17256 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17257
17258         * unexnt.c (_start): Removed bogus code which caused loading heap
17259         from differrent executable file.
17260         Removed bogus assignment to _fmode, which caused inconsistencies.
17261
17262 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17263
17264         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17265         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17266         Do not preliminary `#define signal sigset'.
17267
17268         * systime.h: Do not prototype environ on windows nt and cygwin,
17269         this conflicts with system header.
17270
17271         * syssignal.h: Use correct define for WINDOWSNT
17272
17273         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17274         with system header.
17275
17276         * sysdep.c (near start of file): Fixed commentary and rearranged
17277         ifdefs in readable order.
17278         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17279         (start_of_text):
17280         (end_of_text):
17281         (end_of_data): Do not compile in if using PDUMP.
17282
17283         * symsinit.h: Prototyped vars_of_nt().
17284
17285         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17286         (find_child_console): Use it.
17287         (sys_kill): Use it.
17288
17289         * ntheap.h: Do not extern os_subtype.
17290
17291         * ntheap.c (cache_system_info): Do not cache unneeded:
17292         nt_major_version, nt_minor_version and os_subtype.
17293         (recreate_heap): Do not compile in when PDUMPing.
17294
17295         * nt.c (geteuid and friends): Use the new varibale
17296         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17297         (init_user_info): Removed the above mentioned hackery.
17298         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17299         stat has been fixed in the C runtime.
17300         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17301
17302         * file-coding.c (struct file_coding_dump): Do not define
17303         ucs_to_mule_table in the struct if not MULE.
17304         (struct struct lrecord_description fcd_description_1): Do not dump
17305         the above.
17306
17307         * emacs.c (main_1): Call vars_of_nt().
17308         (right before Fdump_emacs_data): Don't need lastfile if using both
17309         portabe dumper and system malloc.
17310
17311         * alloc.c (Fmemory_limit): Conditionalized out.
17312         (pdump): Use OPEN_BINARY for the portable dump file.
17313         (pdump_load): Ditto.
17314
17315 2000-02-02  Mike Alexander  <mta@arbortext.com>
17316
17317         * nt.c (convert_time): Set tm_isdst before calling mktime and
17318         avoid calling it at all if the compiler supports 64 bit integers.
17319         Also initialize utc_base_ft before using it.
17320
17321 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17322
17323         * frame.c (change_frame_size_1): Take f->internal_border_width
17324         into consideration when calculating the width of the frame.
17325
17326 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17327
17328         * window.c (frame_min_height):
17329         (frame_size_valid_p):
17330         (frame_pixsize_valid_p): Added.
17331         (check_frame_size): Generalized.
17332
17333         * window.h: Prototyped the above.
17334
17335         * lisp.h:
17336         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17337         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17338         Deleted Vwin32_* and Vbinary_process_* unused variables.
17339
17340         * device-msw.c (msprinter_init_device): Do not get printer font
17341         list; Added DEVMODE functions.
17342
17343         * frame-msw.c: Added lots of printer code.
17344
17345         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17346         general.c.
17347
17348         * console-msw.h: Added more msprinter device private slots.
17349
17350 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17351
17352         * event-msw.c (key_needs_default_processing_p): Added.
17353         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17354
17355 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17356
17357         * glyphs.c (image_instance_layout): Mark image instance as clean
17358         after layout.
17359         (glyph_dirty_p): Removed redundant function.
17360         (invalidate_glyph_geometry_maybe): Added.
17361         (update_glyph_cachel_data): Call it.
17362
17363         * glyphs.h: Prototyped it.
17364
17365         * redisplay.c (add_glyph_rune): Call it.
17366         (redisplay_window): Reset glyphs cachels when frame faces have
17367         changed, thus forcing recomputation of built-in border glyphs.
17368
17369 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17370
17371         * Makefile.in.in: Make portable dumper and purify play well together.
17372         Add imperfect, but better than nothing, support for pdump.
17373         Remove xemacs.dmp when temacs is re-generated.
17374         Don't ignore errors when dumping xemacs.
17375
17376         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17377
17378 2000-01-28  Andy Piper  <andy@xemacs.org>
17379
17380         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17381         (setup_normal_frame): ditto.
17382         (setup_frame_without_minibuffer): ditto.
17383         (setup_minibuffer_frame): ditto.
17384         (delete_frame_internal): ditto.
17385         (Fmake_frame_invisible): ditto.
17386         (Ficonify_frame): ditto.
17387
17388         * window.h: change Fset_window_buffer signature.
17389
17390         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17391         (Fset_window_buffer): allow recording of buffer if the window is
17392         the selected window.
17393         (window_loop): Use new Fset_window signature.
17394
17395 2000-01-23  Daniel Pittman  <daniel@danann.net>
17396
17397         * config.h.in: Added template for `HAVE_ATHENA_3D'
17398
17399 2000-01-29  Andy Piper  <andy@xemacs.org>
17400
17401         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17402
17403         * gutter.c (output_gutter): Don't output if the window isn't live.
17404
17405 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17406
17407         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17408         of 01/12/00: Moved SetFocus back here where it belongs.
17409
17410 2000-01-23  Andy Piper  <andy@xemacs.org>
17411
17412         * s/cygwin32.h: declare printer things.
17413
17414 2000-01-26  Andy Piper  <andy@xemacs.org>
17415
17416         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17417         Alexander.
17418
17419 2000-01-24  Andy Piper  <andy@xemacs.org>
17420
17421         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17422         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17423
17424         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17425
17426         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17427
17428         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17429
17430         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17431         (mswindows_output_display_block): Avoid local shadows.
17432
17433         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17434         (mswindows_enqueue_mouse_button_event): ditto.
17435         (mswindows_handle_gui_wm_command): remove declaration.
17436
17437         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17438         warnings.
17439
17440         * console-msw.h: Avoid shadows.
17441         (mswindows_get_toolbar_button_text):
17442         (emacs_mswindows_create_stream_pair):
17443         (emacs_mswindows_delete_stream_pair):
17444         (mswindows_handle_toolbar_wm_command): declare.
17445
17446         * device-msw.c (build_syscolor_string): Avoid shadows.
17447
17448 2000-01-23  Andy Piper  <andy@xemacs.org>
17449
17450         * glyphs-widget.c (widget_instantiate): reverse the items for
17451         layouts so that children are in the expected order.
17452
17453 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17454
17455         * ralloc.c: safe_bcopy ==> memmove
17456         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17457         * s/msdos.h: Remove BCOPY macros.
17458         * insdel.c (gap_right): Remove BCOPY conditional code.
17459         * insdel.c (gap_left): Remove BCOPY conditional code.
17460         XEmacs demands a working ANSI C compiler - hence memmove.
17461
17462         * regex.c (regex_compile): Remove accidental use of trigraphs.
17463
17464 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17465
17466         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17467         event timestamp.
17468
17469 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17470
17471         * event-msw.c (mswindows_drain_windows_queue): Added the
17472         parameter.
17473         (mswindows_need_event): Commented the call to
17474         mswindows_drain_windows_queue().
17475         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17476         only.
17477
17478         * console-msw.h: Moved a few function prototypes here from
17479         event-msw.c.
17480
17481         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17482         parameter from unsigned short to unsigned long.
17483         (Fmswindows_shell_execute): Added return value.
17484
17485 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17486
17487         * sysdep.c (init_system_name):
17488           process-unix.c (unix_canonicalized_host_name):
17489         Don't call freeaddrinfo() if getaddrinfo() fails.
17490
17491         * process-unix.c (unix_open_unix_network_stream):
17492         Moved the code to get a port # into address loop.
17493
17494 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17495
17496         * buffer.c (reinit_vars_of_buffer):
17497         The right place to initialize conversion_in_dynarr and
17498         conversion_out_dynarr.
17499
17500         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17501
17502         * process-unix.c (unix_canonicalize_host_name): Muleize.
17503         (unix_open_network_stream): Muleize.
17504
17505         * buffer.h: Fix up prototypes for ralloc.c functions.
17506
17507 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17508         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17509         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17510                 instead of gethostbyname()
17511         * process-unix.c: In unix_canonicalize_host_name() and
17512                 unix_open_network_stream(), add code to use getaddrinfo()
17513                 instead of gethostbyname().
17514
17515 2000-01-27  Daniel Pittman <daniel@danann.net>
17516
17517         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17518         libs when built with flat Athena.
17519
17520 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17521
17522         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17523         Use coding standards for function prototypes.
17524
17525 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17526
17527         * dialog-msw.c (push_lisp_string_as_unicode):
17528         * doc.c (unparesseuxify_doc_string):
17529         * dired.c (Fuser_name_completion_1):
17530         * dired.c (Fuser_name_all_completions):
17531         * dired.c (free_user_cache):
17532         * dired.c (user_name_completion):
17533         * console-x.c (get_display_arg_connection):
17534         * minibuf.c (clear_echo_area_internal):
17535         * minibuf.c (echo_area_append):
17536         * eldap.c (Fldap_open):
17537         * eldap.c (Fldap_search_internal):
17538         * frame-x.c (x_set_frame_text_value):
17539         * frame-x.c (x_set_frame_properties):
17540         * frame-x.c (x_create_widgets):
17541         * redisplay-tty.c (term_get_fkeys_1):
17542         * objects-x.c (x_parse_nearest_color):
17543         * objects-x.c (x_valid_color_name_p):
17544         * objects-x.c (x_initialize_font_instance):
17545         * objects-x.c (x_list_fonts):
17546         * objects-x.c (x_find_charset_font):
17547         * tooltalk.c (Fadd_tooltalk_message_arg):
17548         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17549         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17550         * process-unix.c (unix_create_process):
17551         * ntproc.c (sys_spawnve):
17552         * sound.c (Fplay_sound_file):
17553         * sound.c (Fplay_sound):
17554         * buffer.c (init_initial_directory):
17555         * buffer.c (init_buffer):
17556         * editfns.c (init_editfns):
17557         * editfns.c (Ftemp_directory):
17558         * editfns.c (Fuser_full_name):
17559         * editfns.c (uncache_home_directory):
17560         * editfns.c (get_home_directory):
17561         * editfns.c (Fuser_home_directory):
17562         * editfns.c (Fformat_time_string):
17563         * editfns.c (Fcurrent_time_string):
17564         * gui-x.c (button_item_to_widget_value):
17565         * database.c (Fopen_database):
17566         * event-Xt.c (x_to_emacs_keysym):
17567         * event-Xt.c (x_event_to_emacs_event):
17568         * event-Xt.c (describe_event_window):
17569         * event-msw.c (mswindows_wnd_proc):
17570         * glyphs-eimage.c (jpeg_instantiate):
17571         * glyphs-eimage.c (gif_instantiate):
17572         * glyphs-eimage.c (png_instantiate):
17573         * glyphs-eimage.c (tiff_instantiate):
17574         * glyphs-x.c (xbm_instantiate_1):
17575         * glyphs-x.c (x_xbm_instantiate):
17576         * glyphs-x.c (x_xface_instantiate):
17577         * glyphs-x.c (autodetect_instantiate):
17578         * glyphs-x.c (cursor_font_instantiate):
17579         * glyphs-x.c (x_widget_instantiate):
17580         * glyphs-x.c (x_widget_set_property):
17581         * glyphs-x.c (x_widget_property):
17582         * glyphs-x.c (BUILD_GLYPH_INST):
17583         * print.c (write_string_to_stdio_stream):
17584         * print.c (output_string):
17585         * print.c (Falternate_debugging_output):
17586         * print.c (Fexternal_debugging_output):
17587         * glyphs-msw.c (extract_xpm_color_names):
17588         * glyphs-msw.c (mswindows_xpm_instantiate):
17589         * glyphs-msw.c (bmp_instantiate):
17590         * glyphs-msw.c (resource_name_to_resource):
17591         * glyphs-msw.c (mswindows_resource_instantiate):
17592         * glyphs-msw.c (xbm_instantiate_1):
17593         * glyphs-msw.c (mswindows_xbm_instantiate):
17594         * glyphs-msw.c (mswindows_xface_instantiate):
17595         * glyphs-msw.c (mswindows_widget_instantiate):
17596         * glyphs-msw.c (add_tree_item):
17597         * glyphs-msw.c (add_tab_item):
17598         * glyphs-msw.c (mswindows_combo_box_instantiate):
17599         * glyphs-msw.c (mswindows_widget_property):
17600         * glyphs-msw.c (mswindows_combo_box_property):
17601         * glyphs-msw.c (mswindows_widget_set_property):
17602         * console.c (stuff_buffered_input):
17603         * objects-msw.c (mswindows_initialize_color_instance):
17604         * objects-msw.c (mswindows_valid_color_name_p):
17605         * objects-msw.c (mswindows_list_fonts):
17606         * objects-msw.c (mswindows_font_instance_truename):
17607         * bytecode.c (optimize_compiled_function):
17608         * select-x.c (symbol_to_x_atom):
17609         * select-x.c (x_atom_to_symbol):
17610         * select-x.c (hack_motif_clipboard_selection):
17611         * select-x.c (selection_data_to_lisp_data):
17612         * select-x.c (lisp_data_to_selection_data):
17613         * select-x.c (Fx_get_cutbuffer_internal):
17614         * select-x.c (Fx_store_cutbuffer_internal):
17615         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17616         * buffer.h (TO_INTERNAL_FORMAT): New function.
17617         * emacs.c (make_arg_list_1):
17618         * emacs.c (make_argc_argv):
17619         * emacs.c (main_1):
17620         * emacs.c (Fdump_emacs):
17621         * emacs.c (split_string_by_emchar_1):
17622         * file-coding.h:
17623         * lisp.h:
17624         * lstream.h:
17625         * symsinit.h:
17626         * device-x.c (x_init_device):
17627         * device-x.c (Fx_valid_keysym_name_p):
17628         * device-x.c (Fx_get_font_path):
17629         * device-x.c (Fx_set_font_path):
17630         * glyphs.c (bitmap_to_lisp_data):
17631         * glyphs.c (pixmap_to_lisp_data):
17632         * alloc.c (make_ext_string): Use coding system arguments.  Update
17633         all callers.
17634         * alloc.c (build_string):
17635         * callproc.c (child_setup):
17636         * callproc.c (init_callproc):
17637         * fileio.c (lisp_strerror):
17638         * fileio.c (directory_file_name):
17639         * fileio.c (Fexpand_file_name):
17640         * fileio.c (Ffile_truename):
17641         * fileio.c (Fsysnetunam):
17642         * fileio.c (Fdo_auto_save):
17643         * sysdep.c (sys_readdir):
17644         * tests.c: New file.  Allow adding C tests.
17645         Replace GET_* macros with a more comprehensible and flexible
17646         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17647         Modify all calls.
17648         Any coding system can be used to do format conversion.
17649         Eliminate enum external_data_format.
17650         Eliminate convert_to_external_format.
17651         Eliminate convert_to_internal_format.
17652         Make sure file-name, keyboard, terminal, and ctext are always
17653         defined as coding systems or aliases.  Make
17654         file-name-coding-system, terminal-coding-system, and
17655         keyboard-coding-system magical variables that are equivalent to
17656         defining the corresponding coding system aliases.
17657
17658         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17659         * file-coding.c (Fcoding_system_alias_p): New function.
17660         * file-coding.c (Fcoding_system_aliasee): New function.
17661         * file-coding.c (append_suffix_to_symbol): New function.
17662         * file-coding.c (dangling_coding_system_alias_p): New function.
17663         * file-coding.c (Ffind_coding_system):
17664         * file-coding.c (Fcopy_coding_system):
17665         * file-coding.c (encode_coding_no_conversion):
17666         * file-coding.c (syms_of_file_coding):
17667         * file-coding.c (vars_of_file_coding):
17668         Rewrite coding system alias code.
17669         Allow nested aliases, like symbolic links.
17670         Allow redefinition of coding system aliases.
17671         Prevent existence of dangling coding system aliases.
17672
17673         * dired.c (Fuser_name_completion_1):
17674         * dired.c (Fuser_name_all_completions):
17675         A crash would happen if user did QUIT in the middle of building
17676         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17677
17678         * lisp.h:
17679         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17680
17681         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17682         an unsigned char *.  Update all callers.
17683
17684 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17685
17686         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17687
17688 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17689
17690         * elhash.c (hentry_description): Use more portable definition.
17691         (resize_hash_table): Initialize new hentries using
17692         xnew_array_and_zero, thereby simplifying the code.
17693
17694         * mule-charset.c (make_charset): Make sure entire object is
17695         initialized, to avoid Purify warnings.
17696
17697         * alloc.c (resize_string): Fix unlikely crash with big strings.
17698
17699 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17700
17701         * realpath.c (xrealpath):
17702         Don't call getwd().
17703
17704 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17705
17706         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17707
17708 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17709
17710         * unexelfsgi.c (unexec): Change the way we decide which segment
17711         should be extended.
17712
17713         Assumption that .bss section should be outside the PT_LOADable
17714         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17715         it's present) is inside the 'data' segment. This would fail the
17716         test which was used to find a segment to grow and cover new
17717         heap. Instead of this assumption, I created another one - on IRIX
17718         the segment to grow should start below .bss and it's address
17719         should extent above the end of .bss. Once this segment is
17720         identified, it's grown to accommodate the new heap and new
17721         zero-length .bss section is added at the end of .data2.
17722
17723 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17724
17725         * eval.c (Feval): Wrong number of arguments should use original
17726         function, not the indirect_function version of it.
17727
17728 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17729
17730         * glyphs-x.c (x_button_instantiate): Don't add image if
17731         it is not a pixmap.
17732         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17733         is relative.
17734
17735 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17736
17737         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17738         declaration.
17739         (DEFVAR_INT_MAGIC): Ditto.
17740         (DEFVAR_BOOL_MAGIC): Ditto.
17741         * glyphs.h: Reindent backslash.
17742
17743 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17744
17745         * glyphs-widget.c (layout_query_geometry):
17746         (layout_layout): Use correct types for gheight, gwidth.
17747
17748 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17749
17750         * EmacsManager.c (QueryGeometry): Purified.
17751
17752 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17753
17754         * alloc.c (make_float): Make sure entire object is initialized, to
17755         avoid Purify warnings.
17756         (pdump_register_sub): Remove useless assignment.
17757         (pdump): Use xmalloc, not malloc.
17758         (pdump_load): Use xmalloc, not malloc.
17759
17760 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17761
17762         * callproc.c:
17763         * dired-msw.c:
17764         * fileio.c:
17765         * process-nt.c:
17766         * redisplay-msw.c:
17767         * sysdep.c: Removed redundant #include <windows.h>
17768
17769 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17770
17771         * frame.c (delete_frame_internal): Do not delete device when its
17772         implementation so declares.
17773         (delete_frame_internal): Set device selected frame to nil when
17774         last frame goes away.
17775
17776         * device-msw.c (msprinter_device_system_metrics): Implemented.
17777         (mswindows_device_system_metrics): Added 'device-dpi property.
17778
17779         * device.c: (Fdevice_printer_p): Added.
17780         Added 'offset-workspace device metric.
17781
17782         * console.h (device_metrics): Declared DM_offset_workspace.
17783
17784 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17785
17786         * fileio.c (Ffile_truename): Remove pointless and confusing
17787         initialization of elen.
17788
17789         * glyphs-widget.c: Compiler warning fixes.
17790
17791 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17792
17793         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17794         instead of a Lisp_Object as argument to make it consistent with
17795         the other LIVE_P macros.
17796         (CHECK_LIVE_PROCESS): New macro.
17797
17798         * process.c: Declare Qprocess_live_p.
17799         (Fprocess_live_p): New function.
17800         (create_process): Use PROCESS_LIVE_P.
17801         (read_process_output): Ditto.
17802         (set_process_filter): Ditto.
17803         (Fdelete_process): Ditto.
17804         (kill_buffer_processes): Ditto
17805         (process_send_signal): Use CHECK_LIVE_PROCESS.
17806         (Fprocess_input_coding_system): Check whether process is still
17807         alive (fix PR#1061).
17808         (Fprocess_output_coding_system): Ditto.
17809         (Fprocess_coding_system): Ditto.
17810         (Fset_process_input_coding_system): Ditto.
17811         (Fset_process_output_coding_system): Ditto.
17812
17813 2000-01-23  Andy Piper  <andy@xemacs.org>
17814
17815         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17816         layout and widget.
17817
17818         * glyphs.c (mark_image_instance): take into account changed
17819         image_instance format.
17820         (image_instance_equal): ditto.
17821         (image_instance_hash): ditto.
17822
17823         * glyphs-widget.c (widget_instantiate): Incorporate layout
17824         instantiation here. Delay layout of the layout until later.
17825         (layout_instantiate): deleted.
17826         (layout_query_geometry): new function. get the geometry of a
17827         layout.
17828         (layout_layout): layout a layout dynamically.
17829         (image_instantiator_widget): New function - splitting up
17830         image_instantiator_format_create_glyphs_widget for netwinder
17831         compilation.
17832         (image_instantiator_buttons):
17833         (image_instantiator_edit_fields):
17834         (image_instantiator_combo_box):
17835         (image_instantiator_scrollbar):
17836         (image_instantiator_progress_guage):
17837         (image_instantiator_tree_view):
17838         (image_instantiator_tab_control):
17839         (image_instantiator_labels):
17840         (image_instantiator_layout): ditto.
17841         (image_instantiator_format_create_glyphs_widget): Call preceding
17842         functions.
17843
17844 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17845
17846         * process.c (Fset_process_coding_system):
17847         * device-x.c (Fx_keysym_hash_table):
17848         Docstring fixes.
17849
17850         * lstream.c (Lstream_write): Return documented value, not 0.
17851
17852         * fileio.c (directory_file_name):
17853         (Fsubstitute_in_file_name):
17854         (Fsubstitute_insert_file_contents_internal):
17855         (Fwrite_region_internal):
17856         * emacs.c:
17857         * sysdep.c:
17858         * getloadavg.c:
17859         * systty.h:
17860         Remove vestigial APOLLO-conditional code.
17861
17862 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17863
17864         * getpagesize.h: Add guard macros.
17865         * libsst.h: Add guard macros.
17866         * libst.h: Add guard macros.
17867         * line-number.h: Add guard macros.
17868         * ndir.h: Add guard macros.
17869         * sysfloat.h: Add guard macros.
17870         * sysfile.h: Add guard macros.
17871         * sysproc.h: Add guard macros.
17872         * syswait.h: Add guard macros.
17873         * xintrinsic.h: Add guard macros.
17874         * xintrinsicp.h: Add guard macros.
17875         * xmmanager.h: Add guard macros.
17876         * xmmanagerp.h: Add guard macros.
17877         * xmprimitive.h: Add guard macros.
17878         * xmu.h: Add guard macros.
17879         * gpmevent.h: Add copyright statement. Add guard macros.
17880         * miscplay.h: Add guard macros.
17881         * *.h: Use consistent C-standards-approved guard macro names.
17882
17883         * opaque.c (make_opaque): Switch parameter order.
17884         * opaque.h (make_opaque): Switch parameter order.
17885         Update all callers.
17886         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17887
17888         * config.h.in (type_checking_assert): Added.
17889         (bufpos_checking_assert): Added.
17890
17891 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17892
17893         * alloc.c: Harmless pdump changes.
17894         - Use countof().
17895         - spell alignment correctly.
17896         * sysdep.c: Use countof()
17897
17898 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17899
17900         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17901         initially_selected_for_input() console method, default to 0.
17902         (semi_canonicalize_console_connection): Try to delegate to
17903         canonicalize_console_connection if no such console method.
17904         (canonicalize_console_connection): Vice versa.
17905         (print_console): Do not print nil connection.
17906
17907         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17908         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17909         (XDEVIMPF_FRAMELESS_OK): Added.
17910         (CONSOLE_INHERITS_METHOD): Added.
17911
17912         * console-msw.c (mswindows_canonicalize_console_connection):
17913         Added.
17914         (mswindows_canonicalize_device_connection): Added.
17915
17916         * console-msw.h (struct msprinter_device): Added this struct and
17917         accessor macros.
17918         (mswindows_device): Made fontlist a lisp object.
17919
17920         * device.c (semi_canonicalize_device_connection):  Try to delegate
17921         to canonicalize_device_connection if no such console method.
17922         (canonicalize_device_connection): Vice versa.
17923         (print_device): Do not print nil connection.
17924
17925         * device-msw.c (mswindows_init_device): Call InitCommonControls
17926         when have widgets.
17927         (mswindows_delete_device): Removed fontlist deallocation.
17928         (mswindows_mark_device): Added.
17929
17930         * events.c (event_equal): Added abort() at unreached code.
17931         (event_hash): Ditto.
17932
17933         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17934         fallback tags of Windows devices.
17935
17936         * general.c (syms_of_general): Initialized Qmsprinter.
17937
17938         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17939         of fallback tags of Windows devices.
17940
17941         * lisp.h: Declared Qmsprinter.
17942
17943         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17944         of strings.
17945         (mswindows_list_fonts): Ditto.
17946         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17947         that it can be used by both mswindows and msprinter devices.
17948         (initialize_font_instance): Added.
17949         (mswindows_initialize_font_instance): Use it.
17950         (msprinter_initialize_font_instance): Added.
17951
17952         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17953         and implementation flags check.
17954         (redisplay_without_hooks): Changed the call to the above.
17955         (Fredraw_device): Ditto.
17956         (Fredisplay_device): Ditto.
17957
17958         * redisplay-msw.c (get_frame_dc): Implemented.
17959         (get_frame_compdc): Implemented.
17960         (many functions): Use the two functions above to get device
17961         contexts, ether for a window or a printer.
17962
17963 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17964
17965         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17966         initialization here.
17967         (init_symbols_once_early): Call it.
17968         * emacs.c (main_1): Call it.
17969         * symsinit.h: Declare it.
17970
17971 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17972
17973         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17974         Lisp_Object.
17975         (pdump_backtrace): Ditto.
17976         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17977         (pdump_get_entry): Abort if trying to register a null pointer.
17978         (pdump_dump_data): Cleanup types when relocating.
17979         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17980         (pdump_dump_rtables): Remove bad casts.
17981         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17982         Lisp_Object instead of a EMACS_INT for the hashtable
17983         reorganization.
17984
17985 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17986
17987         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17988
17989         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17990
17991         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17992
17993         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17994
17995 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17996
17997         * faces.h (FACE_STRIKETHRU_P): Added.
17998
17999         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
18000         of font variants.
18001
18002         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
18003         (mswindows_set_dc_font): New function, aware of font variants,
18004         separated from mswindows_update_dc.
18005
18006         * objects-msw.h (struct mswindows_font_instance_data): Added
18007         definition.
18008
18009         * objects-msw.c (mswindows_finalize_font_instance): Delete all
18010         cached fonts and the data structure.
18011         (mswindows_initialize_font_instance): Added creation of font data
18012         structure.
18013         (mswindows_print_font_instance): Print at least something.
18014         (mswindows_create_font_variant): Implemented.
18015         (mswindows_get_hfont): Implemented.
18016
18017 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
18018
18019         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
18020         prototyping problem with msvc.
18021
18022         * emacs.c (main_1): added syms_of_gui_mswindows() call
18023
18024         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
18025         syms_of_gui_mswindows() function
18026
18027         * symsinit.h: added the prototype for syms_of_gui_mswindows()
18028
18029 2000-01-18  Martin Buchholz <martin@xemacs.org>
18030
18031         * XEmacs 21.2.27 is released.
18032
18033 2000-01-18  Martin Buchholz  <martin@xemacs.org>
18034
18035         * glyphs-eimage.c (struct tiff_error_struct):
18036         (tiff_error_func):
18037         (tiff_warning_func):
18038         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
18039
18040         * unexmips.c:
18041         * unexhp9k3.c:
18042         * unexfreebsd.c:
18043         * unexec.c: Remove vestigial Lucid C code.
18044         * unexalpha.c:
18045         * unexaix.c:
18046         * termcap.c:
18047         * libsst.c: Ansify.
18048         Remove declarations of errno and strerror().
18049
18050         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
18051
18052         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
18053
18054 2000-01-16  Martin Buchholz  <martin@xemacs.org>
18055
18056         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
18057         Optimize.
18058
18059 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18060
18061         * md5.c:
18062         * file-coding.c:
18063         * file-coding.h:
18064         Change enum eol_type to eol_type_t.
18065
18066 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18067
18068         * gui.c (get_gui_callback): Check cons before accessing car.
18069
18070 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18071
18072         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
18073         (XSETSPECIFIER_TYPE): Ditto.
18074
18075 2000-01-17  Didier Verna  <didier@xemacs.org>
18076
18077         * redisplay.c (generate_fstring_runes): compute string size in
18078         characters, not bytes.
18079
18080 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18081
18082         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
18083
18084 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
18085
18086         * print.c (print_error_message): Call print_prepare().
18087
18088 2000-01-14  Martin Buchholz  <martin@xemacs.org>
18089
18090         * .dbxrc: Renamed from dbxrc.
18091
18092         * events.c (event_to_character):
18093         Use `assert (foo)' instead of `if (!foo) abort()'
18094
18095         * .gdbinit (xtype): Add documentation.
18096         * .gdbinit (check-temacs): New function.
18097         * .gdbinit (check-xemacs): New function.
18098         * dbxrc (check-xemacs): New function.
18099         * dbxrc (check-xemacs): New function.
18100
18101 2000-01-14  Andy Piper  <andy@xemacs.org>
18102
18103         * glyphs-widget.c (widget_query_geometry): Make sure that we
18104         calculate default dimensions correctly.
18105
18106 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18107
18108         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
18109
18110         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
18111         pdump_wire'd variable.
18112
18113         * emacs.c: (main_1): Conditionalized calls to
18114         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
18115
18116 2000-01-13  Martin Buchholz  <martin@xemacs.org>
18117
18118         * window.c (Fset_window_configuration):
18119         * sysdep.c (_start):
18120         * input-method-motif.c (res):
18121         * event-Xt.c (Xt_process_to_emacs_event):
18122         Simple compiler warning fixes.
18123
18124         * bytecode.c (funcall_compiled_function): Use the original
18125         function symbol on the backtrace list in preference to the
18126         compiled_function object in error messages.
18127
18128 2000-01-13  Andy Piper  <andy@xemacs.org>
18129
18130         * glyphs-x.c (update_widget_face): Make sure we update the widget
18131         background as well as foreground.
18132
18133 2000-01-13  Andy Piper  <andy@xemacs.org>
18134
18135         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
18136         fields to subwindow.
18137         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
18138         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
18139         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18140         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18141
18142         * glyphs-widget.c (check_valid_tab_orientation): new function.
18143         (initialize_widget_image_instance): zero orientation and
18144         justification.
18145         (widget_instantiate): pick up orientation.
18146         (tab_control_query_geometry): return appropriate values for
18147         vertical tabs.
18148
18149         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
18150         appropriate creation flags for left, right and bottom tabs.
18151
18152         * s/cygwin32.h: add tab definitions.
18153
18154 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18155
18156         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
18157         frame upon hiding a subwindow.
18158         (mswindows_button_instantiate): Changed the push button style to
18159         BS_PUSHBUTTON.
18160         (mswindows_button_instantiate): Removed button BS_NOTIFY
18161         style.
18162         (mswindows_button_instantiate): Removed redundant check for
18163         a disabled gui item.
18164         (mswindows_button_instantiate): Made use of WS_TABSTOP
18165         consistent: "operable" controls (edit, button, tree, scroll) have
18166         this style, "display-only" ones (static, progress gauge) do
18167         not. This style is currently ignored by XEmacs though. Also,
18168         removed the WS_EX_CONTROLPARENT style - it is not for children,
18169         it is for their parents!
18170         (mswindows_edit_field_instantiate): Ditto.
18171         (mswindows_progress_gauge_instantiate): Ditto.
18172         (mswindows_tree_view_instantiate): Ditto.
18173         (mswindows_tab_control_instantiate): Ditto.
18174         (mswindows_scrollbar_instantiate): Ditto.
18175         (mswindows_combo_box_instantiate): Ditto.
18176         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
18177         style to the "clip" window.
18178         (mswindows_button_instantiate): Removed compilation warning by
18179         equally typing terms of the ?: operator.
18180
18181 2000-01-12  Didier Verna  <didier@xemacs.org>
18182
18183         * redisplay.c (generate_fstring_runes): new parameter holding the
18184         last modeline-format extent.
18185         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
18186         extent, fill the glyph block with it.
18187         (generate_fstring_runes): handle these parameters.
18188         (generate_formatted_string_db): ditto.
18189
18190         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
18191         glyphs'extents in the modeline.
18192
18193 1999-01-11  Mike Woolley  <mike@bulsara.com>
18194
18195         * ntheap.c: Reduced the reserved heap space from 1Gb down to
18196         256Mb, as a workaround for the non-starting problem many people
18197         have experienced.
18198
18199 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18200
18201         * console-tty.c (Fset_console_tty_output_coding_system):
18202         Force redrawing tty frame.
18203
18204 2000-01-10  Didier Verna  <didier@xemacs.org>
18205
18206         * redisplay.c (generate_fstring_runes): fix size computation bug.
18207
18208 2000-01-09  William M. Perry <wmperry@aventail.com>
18209
18210         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
18211
18212 2000-01-09  Andy Piper  <andy@xemacs.org>
18213
18214         * glyphs-msw.c: index -> i to avoid shadows.
18215         (xbm_create_bitmap_from_data): make static.
18216         (check_valid_string_or_int): deleted.
18217         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
18218
18219         * glyphs-x.c (x_update_subwindow): remove unused args.
18220
18221         * glyphs.c (glyph_image_instance): return the thing. Don't set the
18222         back pointer - this is done in allocate_image_instance.
18223         (query_string_font): return Qnil to make the compiler happy.
18224         (unmap_subwindow): set to ~0 to make the compiler happy.
18225         (glyph_query_geometry): comment out until used.
18226         (glyph_layout): ditto.
18227
18228 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18229
18230         * insdel.c (signal_after_change): Remove extraneous unbind_to().