update.>
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2015-11-25  MORIOKA Tomohiko  <tomo.git@chise.org>
2
3         * chartab.c (Fchar_feature): When argument ATTRIBUTE is a CCS and
4         whose name is =>FOO, don't try to find =FOO; fix problem when
5         argument ATTRIBUTE is ==>FOO.
6
7 2013-05-19  MORIOKA Tomohiko  <tomo.git@chise.org>
8
9         * text-coding.c (COMPOSE_ADD_CHAR): Use
10         `concord_object_get_attribute' instead of
11         `concord_object_get_feature_value'.
12
13         * chartab.c (char_table_get_db_cos): Use
14         `concord_object_get_attribute' instead of
15         `concord_object_get_feature_value'.
16
17 2013-05-02  MORIOKA Tomohiko  <tomo.git@chise.org>
18
19         * chartab.h (get_char_id_table_ce): Use
20         `load_char_attribute_maybe_cos' instead of
21         `load_char_attribute_maybe'.
22
23         * chartab.c (load_char_attribute_maybe_cos): Return NULL instead
24         of Qunbound as the default value.
25
26 2013-05-01  MORIOKA Tomohiko  <tomo.git@chise.org>
27
28         * chartab.h (load_char_attribute_maybe_cos): New prototype when
29         HAVE_LIBCHISE is defined.
30         (get_char_id_table_ce): New inline function when HAVE_LIBCHISE is
31         defined.
32
33         * mule-charset.c (charset_code_point): Use `get_char_id_table_ce'
34         instead of `get_char_id_table' when HAVE_LIBCHISE is defined.
35         (load_char_decoding_entry_maybe): Don't use
36         `decoding_table_put_char' to avoid GC.
37
38         * text-coding.c (concord_setup_env_maybe): Abolished.
39         (COMPOSE_ADD_CHAR): Use `open_chise_data_source_maybe' instead of
40         `concord_setup_env_maybe'.
41
42 2013-05-01  MORIOKA Tomohiko  <tomo.git@chise.org>
43
44         * chartab.c (open_chise_data_source_maybe): New implementation;
45         don't use `build_string' and `Fexpand_file_name' to avoid GC.
46         (char_table_get_db_cos): New function when HAVE_LIBCHISE is
47         defined.
48         (load_char_attribute_maybe_cos): Likewise.
49
50 2013-04-23  MORIOKA Tomohiko  <tomo.git@chise.org>
51
52         * text-coding.c (struct decoding_stream): Use COS_object instead
53         of Lisp_Object for `combining_table' if HAVE_LIBCHISE is defined.
54         (reset_decoding_stream): Likewise.
55         (COMPOSE_FLUSH_CHARS): Likewise.
56         (concord_setup_env_maybe): New function.
57         (COMPOSE_ADD_CHAR): Use COS API for `str->combining_table' if
58         HAVE_LIBCHISE is defined.
59
60 2013-02-16  MORIOKA Tomohiko  <tomo.git@chise.org>
61
62         * chartab.c (find_char_feature_in_family): New implementation;
63         don't support multiple parents; support non-list mother.
64
65 2012-06-11  MORIOKA Tomohiko  <tomo.git@chise.org>
66
67         * text-coding.c (Qenable_decomposition): New variable in XEmacs
68         CHISE.
69         (Fmake_coding_system): Add new property `enable-decomposition' in
70         XEmacs CHISE.
71         (char_encode_utf8): Don't decompose character if
72         CODING_SYSTEM_ENABLE_DECOMPOSITION (str->codesys) is false.
73         (syms_of_file_coding): Add new symbol `enable-decomposition' in
74         XEmacs CHISE.
75         (complex_vars_of_file_coding): Define new coding-system-property
76         `enable-decomposition' in XEmacs CHISE.
77
78         * file-coding.h (struct Lisp_Coding_System): Add
79         `enable_decomposition' in XEmacs CHISE.
80         (CODING_SYSTEM_ENABLE_DECOMPOSITION): New macro in XEmacs CHISE.
81         (XCODING_SYSTEM_ENABLE_DECOMPOSITION): New macro in XEmacs CHISE.
82
83 2012-02-17  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
84
85         * text-coding.c (DECODE_ADD_UCS_CHAR): Add `static'.
86
87 2012-02-11  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
88
89         * text-coding.c (DECODE_ADD_UCS_CHAR): Don't use `INLINE_HEADER'.
90
91         * chartab.c (UINT8_DECODE): Don't use `INLINE_HEADER'.
92         (UINT16_DECODE): Ditto.
93
94         * glyphs-eimage.c (png_instantiate):
95         - Use `png_get_image_height (png_ptr, info_ptr)' instead of
96           `info_ptr->height'.
97         - Use `png_get_image_width (png_ptr, info_ptr)' instead of
98           `info_ptr->width'.
99         - Use `png_get_color_type(png_ptr, info_ptr)' instead of
100           `info_ptr->color_type'.
101         - Use `png_get_bit_depth(png_ptr, info_ptr)' instead of
102           `info_ptr->bit_depth'.
103
104 2011-07-20  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
105
106         * mule-charset.c (charset_code_point): If nil is specified as a
107         feature-value, don't find in mother and return -1.
108
109 2011-07-22  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
110
111         * chartab.c (Fput_char_attribute): Accept nil as a value of
112         CCS-feature [it means that specified object does not have
113         code-point of the CCS-feature].
114
115 2011-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
116
117         * mule-charset.c (complex_vars_of_mule_charset): Use "jisx0208"
118         instead of "jisx0208\\.1990" as the X-registry of `=jis-x0208'.
119
120 2011-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
121
122         * text-coding.c (char_encode_as_entity_reference): Don't use
123         `DECODE_CHAR' to detect isolated characters.
124
125         * mule-charset.c (charset_code_point): Change the third argument
126         `defined_only' to `accepted_mode'; `accepted_mode' can be
127         CHAR_ISOLATED_ONLY, CHAR_ALL or CHAR_DEFINED_ONLY.
128
129         * char-ucs.h (CHAR_ISOLATED_ONLY): New macro.
130         (CHAR_ALL): New macro.
131         (CHAR_DEFINED_ONLY): New macro.
132
133 2011-03-14  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
134
135         * chartab.c (Fchar_feature_base_name_eq): New function when
136         UTF2000 is enabled.
137         (Fput_char_attribute): Use `Fchar_feature_base_name_eq'.
138         (syms_of_chartab): Add new builtin function
139         `char-feature-base-name=' when UTF2000 is enabled.
140
141 2011-02-17  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
142
143         * text-coding.c (Vdecomposition_feature_list): New variable when
144         UTF2000 is defined.
145         (char_encode_utf8): Refer variable `decomposition-feature-list'
146         instead of `=decomposition' feature.
147         (vars_of_file_coding): Add new variable
148         `decomposition-feature-list' when UTF2000 is defined.
149
150 2011-02-16  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
151
152         * chartab.c (Fput_char_attribute): Support `=decomposition@FOO' as
153         `=decomposition' feature.
154
155 2011-02-12  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
156
157         * mule-charset.c (Fmake_charset): Fix problem for 94^n or 96^n
158         coded-charsets with builtin characters.
159
160 2011-02-09  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
161
162         * text-coding.c (Qrep_decomposition): New extern.
163         (char_encode_utf8): Try to encode as combing sequence (or IVS).
164
165 2011-01-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
166
167         * concord.c (Fconcord_genre_ds): Add "#ifdef HAVE_LIBCHISE" ...
168         "#endif" for code to refer Vchise_system_db_directory.
169
170 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
171
172         * concord.c (Fconcord_object_put): Use `member' instead of `memq'.
173         (Fconcord_object_adjoin): New function.
174         (Fconcord_object_adjoinX): New function.
175         (syms_of_concord): Defsubred `Fconcord_object_adjoin' and
176         `Fconcord_object_adjoinX'.
177
178 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
179
180         * concord.c:
181         - Include "elconcord.h".
182         - Move EXFUNs for `Fconcord_decode_object', `Fconcord_object_put'
183           and `Fconcord_object_get' to elconcord.h.
184         (Lisp_CONCORD_DS): Moved to elconcord.h.
185         (struct Lisp_CONCORD_DS): Ditto.
186         (XCONCORD_DS): Ditto.
187         (XSET_CONCORD_DS): Ditto.
188         (CONCORD_DS_P): Ditto.
189         (CHECK_CONCORD_DS): Ditto.
190         (CONCHECK_CONCORD_DS): Ditto.
191         (Lisp_CONCORD_Object): Ditto.
192         (struct Lisp_CONCORD_Object): Ditto.
193         (XCONCORD_OBJECT): Ditto.
194         (XSET_CONCORD_OBJECT): Ditto.
195         (CONCORD_OBJECT_P): Ditto.
196         (CHECK_CONCORD_OBJECT): Ditto.
197         (CONCHECK_CONCORD_OBJECT): Ditto.
198         (CONCORD_OBJECT_GENRE): Ditto.
199         (CONCORD_OBJECT_ID): Ditto.
200         (XCONCORD_OBJECT_ID): Ditto.
201         (XCONCORD_OBJECT_GENRE): Ditto.
202         (concord_object_equal): New function.
203         (LRECORD_IMPLEMENTATION of "concord_object"): Use
204         `concord_object_equal'.
205
206         * elconcord.h: New file.
207
208 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
209
210         * concord.c (print_concord_object): Use readable form even if
211         `print-readably' is nil.
212
213 2010-11-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
214
215         * concord.c (print_concord_object): Don't display location of
216         data-source when `print-readably' is nil.
217
218 2010-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
219
220         * concord.c (Fconcord_genre_ds): Use Vchise_system_db_directory as
221         the default location of data-source.
222         (complex_vars_of_concord): Use Vchise_system_db_directory to
223         assign genre `character' and `feature'.
224
225         * chartab.h (Vchise_system_db_directory): New extern when
226         HAVE_CONCORD is defined.
227
228 2010-09-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
229
230         * concord.c: Include <chise.h> if HAVE_LIBCHISE is defined.
231         (Qcharacter): New variable when HAVE_LIBCHISE is defined.
232         (Qfeature): Ditto.
233         (Fconcord_object_genre): New function.
234         (syms_of_concord):
235         - Add new builtin symbols `character' and `feature' when
236           HAVE_LIBCHISE is defined.
237         - Add Add new builtin function `concord-object-genre'.  
238         (complex_vars_of_concord): New function; assign genres `character'
239         and `feature' when HAVE_LIBCHISE is defined.
240
241 2010-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
242
243         * emacs.c (main_1): Call `complex_vars_of_concord' when
244         HAVE_CONCORD is defined.
245
246         * symsinit.h (complex_vars_of_concord): New prototype.
247
248 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
249
250         * chartab.c (allocate_character): Add `static'.
251
252 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
253
254         * chartab.c (allocate_character): New function.
255         (Fdefine_char): Use allocate_character().
256
257 2010-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
258
259         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.25
260         (ÅŒkawara).
261
262 2010-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
263
264         * chartab.c (save_uint8_byte_table): Fixed problem when a property
265         is unloaded.
266         (save_uint16_byte_table): Likewise.
267
268 2010-02-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
269
270         * chartab.c (Fchar_feature_property): New function when LIBCHISE
271         is enabled.
272         (Fput_char_feature_property): Likewise.
273         (syms_of_chartab): Add new builtin functions
274         `char-feature-property' and `put-char-feature-property' when
275         LIBCHISE is enabled.
276
277 2009-04-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
278
279         * mule-charset.c (Fmake_charset): Add DOC-string of 'iso-ir and
280         '=>iso-ir.
281         (Fcharset_property): Regard '=>iso-ir as same as `iso_ir.
282
283 2009-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
284
285         * mule-charset.c (Qto_iso_ir): New variable for XEmacs CHISE.
286         (make_charset): Add new argument `iso_ir'.
287         (Fmake_charset): Add new property `=>iso-ir' in XEmacs CHISE.
288         (Fmake_reverse_direction_charset): Copy CHARSET_ISO_IR(cs) in
289         XEmacs CHISE.
290         (Fcharset_property): Support `iso-ir' in XEmacs CHISE.
291         (syms_of_mule_charset): Add new builtin symbol `=>iso-ir' in
292         XEmacs CHISE.
293         (complex_vars_of_mule_charset): Specify argument `iso_ir' of
294         function `make_charset'.
295
296         * char-ucs.h (LEADING_BYTE_*): Enclose negative value with ( ).
297         (struct Lisp_Charset): Add new member `iso_ir'.
298         (CHARSET_ISO_IR): New macro.
299
300 2009-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
301
302         * mule-charset.c (Fdecode_char): Fix problem when decoding GR
303         code-point by GL charset.
304
305 2008-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
306
307         * concord.c (concord_id_validate): New function.
308         (structure_type_create_concord): Use `concord_id_validate' instead
309         of `concord_name_validate' to accept integer and character as =id.
310
311 2008-09-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
312
313         * concord.c (func_for_each_object): Fix bug about GC-protection.
314
315 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
316
317         * concord.c (Fconcord_object_put): Check argument FEATURE is a
318         symbol.
319
320 2008-09-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
321
322         * text-coding.c (struct decoding_stream): Add new member
323         `bom_flag' in XEmacs CHISE.
324         (reset_decoding_stream): Ignore U+FEFF in the beginning of stream
325         in XEmacs CHISE.
326
327 2008-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
328
329         * mule-charset.c: Move definition of `=jis-x0208@1978' to
330         lisp/mule/mule-conf.el.
331
332 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
333
334         * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
335         (make_charset): Add new argument `partial'.
336         (Fmake_charset): Add new property 'partial in XEmacs CHISE.
337         (Fmake_reverse_direction_charset): Modify for `make_charset'.
338         (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
339         CHISE.
340         (complex_vars_of_mule_charset): Modify for `make_charset'; specify
341         `=jis-x0208' as a partial coded-charset.
342
343 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
344
345         * text-coding.c (decode_add_er_char): Fix problem when a character
346         represented by an entity-reference is not defined.
347
348 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
349
350         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
351         Qrep_*.
352
353 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
354
355         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
356         (Kasagi).
357
358 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
359
360         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
361         is a relation feature.
362
363 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
364
365         * chartab.c (syms_of_chartab): Define
366         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
367
368         * chartab.h (Q_denotational): New extern when UTF2000 or
369         HAVE_CONCORD is defined.
370         (Q_denotational_from): Likewise.
371         (Q_subsumptive): Likewise.
372         (Q_subsumptive_from): Likewise.
373
374 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
375
376         * concord.c (concord_object_put): New function.
377         (Fconcord_object_put): Use `concord_object_put'.
378
379 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
380
381         * concord.c (Fconcord_define_object): New function.
382         (syms_of_concord): Add new builtin function
383         `concord-define-object'.
384
385 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
386
387         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
388         (Kamo).
389
390 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
391
392         * concord.c: Add EXFUN for Fconcord_object_get.
393         (Vconcord_genre_object_hash_table): New variable.
394         (concord_genre_cache_get_object): New function.
395         (concord_genre_cache_put_object): New function.
396         (Fconcord_make_object): Use object cache; put object-ID into `=id'
397         feature.
398         (Fconcord_object_put): Call `concord_index_sync' after
399         `concord_index_strid_put_obj'.
400         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
401
402 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
403
404         * concord.c (Fconcord_decode_object): Do GCPRO for
405         Fconcord_make_object.
406         (func_for_each_object): Likewise; do GCPRO for
407         for_each_object_closure->function.
408         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
409         for_each_object_closure->function, for_each_object_closure->genre,
410         for_each_object_closure->ds and for_each_object_closure->ret.
411         (concord_object_validate): Do GCPRO for Fconcord_make_object.
412
413 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
414
415         * concord.c: Add EXFUNs for Fconcord_decode_object and
416         Fconcord_object_put.
417         (Fconcord_make_object): Change order of arguments.
418         (Fconcord_decode_object): Modify for Fconcord_make_object.
419         (func_for_each_object): Likewise.
420         (concord_object_validate): Likewise.
421         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
422
423 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
424
425         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
426
427 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
428
429         * concord.c (Fconcord_decode_object): Try to use readable print
430         form as a key of Concord-index.
431         (Fconcord_object_get): Try to use readable print form as an ID of
432         Concord-object.
433         (Fconcord_object_put): Try to use readable print form as an ID of
434         Concord-object and a feature value.
435         (Fconcord_object_spec): Try to use readable print form as an ID of
436         Concord-object.
437
438 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
439
440         * concord.c (print_concord_object): Support readable form.
441
442 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
443
444         * emacs.c (main_1): Call `structure_type_create_concord' when
445         HAVE_CONCORD is defined.
446
447         * symsinit.h (structure_type_create_concord): New prototype.
448
449         * concord.c (Qconcord_object): New variable.
450         (Qgenre): Likewise.
451         (Q_id): Likewise.
452         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
453         for directory.
454         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
455         char*> for genre-name.
456         (Fconcord_feature_list): Likewise.
457         (Fconcord_make_object): Likewise.
458         (Fconcord_decode_object): Likewise; use <char*> instead of
459         <unsigned char*> for feature_name and strid.
460         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
461         c_obj and feature_name.
462         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
463         char*> for c_value.
464         (struct closure_for_object_spec): Use <char*> instead of <unsigned
465         char*> for member `object_id'.
466         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
467         char*> for feature-name.
468         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
469         for c_obj.
470         (func_for_each_object): Cast to avoid warnings.
471         (Fconcord_foreach_object_in_feature): Use <char*> instead of
472         <unsigned char*> for genre_name and feature_name.
473         (concord_name_validate): New function.
474         (concord_object_validate): Likewise.
475         (concord_object_instantiate): Likewise.
476         (syms_of_concord): Add new builtin symbols `concord-object',
477         `genre' and `=id'.
478         (structure_type_create_concord): New function.
479
480 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
481
482         * concord.c (Vconcord_ds_hash_table): New variable.
483         (Vconcord_genre_hash_table): New variable.
484         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
485         (Fconcord_ds_directory): New function.
486         (Fconcord_assign_genre): New function.
487         (Fconcord_genre_directory): New function.
488         (Fconcord_genre_ds): New function.
489         (Fconcord_feature_list): Allow to omit `ds'.
490         (Fconcord_make_object): Likewise.
491         (Fconcord_decode_object): Likewise.
492         (Fconcord_foreach_object_in_feature): Likewise.
493         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
494         Fconcord_assign_genre, Fconcord_genre_directory and
495         Fconcord_genre_ds.
496         (vars_of_concord): Setup Vconcord_ds_hash_table and
497         Vconcord_genre_hash_table.
498
499 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
500
501         * concord.c (struct closure_for_each_object): Add new member
502         `ret'.
503         (func_for_each_object): Setup the return value to
504         `for_each_object_closure->ret'.
505         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
506         returns the value instead of Qt.
507
508 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
509
510         * concord.c: New file.
511
512 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
513
514         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
515         `lrecord_type_concord_object'.
516
517 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
518
519         * symsinit.h (syms_of_concord): New prototype.
520         (vars_of_concord): New prototype.
521
522         * emacs.c (main_1): Setup symbols and variable about concord if
523         HAVE_CONCORD is defined.
524
525         * config.h.in (HAVE_CONCORD): New macro.
526
527 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
528
529         * chartab.c (Fput_char_attribute): For each character relation
530         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
531
532 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
533
534         * chartab.c (Fput_char_attribute): Use
535         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
536         calling `put_char_composition'.
537
538 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
539
540         * chartab.c (Q_halfwidth_of): New variable.
541         (put_char_composition): Return `<-halfwidth' instead of
542         `=decomposition' for compatibility mapping to single character
543         tagged `narrow'.
544         (Fput_char_attribute): Convert char-specs in value of
545         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
546         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
547         for `<-halfwidth'.
548         (syms_of_chartab): Add new symbol `<-halfwidth'.
549
550 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
551
552         * chartab.c (put_char_composition): Return
553         `<-formed@{isolated|initial|medial|final}' for compatibility
554         mapping to single character tagged
555         `{isolated|initial|medial|final}'.
556
557 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
558
559         * chartab.c (Q_compat_of): Deleted.
560         (put_char_composition): Return `<-FOO' for compatibility mapping
561         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
562         of `symbol_name (XSYMBOL(...))'.
563         (Fput_char_attribute): Convert char-specs in value of
564         `{<-|->}font[^*]*' to characters and put reverse links.
565         (Fsave_char_attribute_table): Don't refer Q_compat_of.
566         (syms_of_chartab): Delete builtin symbol `<-compat'.
567
568 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
569
570         * chartab.c (Q_circled_of): New variable.
571         (put_char_composition): Return `<-circled' instead of
572         `=decomposition' for compatibility mapping to single character
573         tagged `circle'.
574         (Fput_char_attribute): Convert char-specs in value of
575         `{<-|->}circled[^*]*' to characters and put reverse links.
576         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
577         for `<-circled'.
578         (syms_of_chartab): Add new symbol `<-circled'.
579
580 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
581
582         * chartab.c (Qto_decomposition_at_circled): New variable.
583         (put_char_composition): Return `=>decomposition@circled' instead
584         of `=decomposition' for compatibility decomposition mapping tagged
585         `circle'.
586         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
587
588 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
589
590         * chartab.c (Q_subscript_of): New variable.
591         (put_char_composition): Return `<-subscript' instead of
592         `=decomposition' for compatibility mapping to single character
593         tagged `sub'.
594         (Fput_char_attribute): Convert char-specs in value of
595         `{<-|->}subscript[^*]*' to characters and put reverse links.
596         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
597         for `<-subscript'.
598         (syms_of_chartab): Add new symbol `<-subscript'.
599
600 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
601
602         * chartab.c (Q_superscript_of): New variable.
603         (put_char_composition): Return `<-superscript' instead of
604         `=decomposition' for compatibility mapping to single character
605         tagged `super'.
606         (Fput_char_attribute): Convert char-specs in value of
607         `{<-|->}superscript[^*]*' to characters and put reverse links.
608         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
609         for `<-superscript'.
610         (syms_of_chartab): Add new symbol `<-superscript'.
611
612 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
613
614         * chartab.c (Qto_decomposition_at_compat): Deleted.
615         (Qto_decomposition_at_superscript): New variable.
616         (put_char_composition): Use `=>decomposition@superscript' instead
617         of `=decomposition' for compatibility decomposition mapping tagged
618         `super'.
619         (Fput_char_attribute): Fix condition about `put_char_composition'.
620         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
621         add news symbol `=>decomposition@superscript'.
622
623 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
624
625         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
626         for compatibility decomposition mapping tagged FOO.
627         (Fput_char_attribute): Modify for `put_char_composition'.
628
629 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
630
631         * chartab.c (Qto_decomposition_at_compat): New variable.
632         (Q_compat_of): Renamed from `Q_compatibility_of'.
633         (put_char_composition): Rename `Q_compatibility_of' to
634         `Q_compat_of'; return `=>decomposition@compat' for compatibility
635         decomposition mapping.
636         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
637         `Q_compat_of'.
638         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
639         `<-compatibility' to `<-compat'.
640
641 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
642
643         * chartab.c (Q_compatibility_of): New variable.
644         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
645         object is proved to be a cons cell; return `<-compatibility' if
646         the first element of argument `value' is `compat'.
647         (Fput_char_attribute): Eliminate the first value if
648         `put_char_composition' returns `<-compatibility'.
649         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
650         for `<-compatibility'.
651         (syms_of_chartab): Add new symbol `<-compatibility'.
652
653 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
654
655         * chartab.c (Q_canonical): New variable.
656         (put_char_composition): Return a feature name: return
657         `->canonical' if argument `value' specifies single character.
658         (Fput_char_attribute): Use `put_char_composition' to determine
659         feature name for `=decomposition' or `->denotational'.
660         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
661         for `->canonical'.
662         (syms_of_chartab): Add new symbol `->canonical'.
663
664 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
665
666         * chartab.c (Qmap_decomposition): New variable.
667         (Fput_char_attribute): Convert `->decomposition' to
668         `=decomposition'.
669         (syms_of_chartab): Add new symbol `=decomposition'.
670
671 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
672
673         * chartab.c (Fget_range_char_table): Fix serious problem when
674         `range' is nil.
675
676 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
677
678         * chartab.c (char_table_get_db): Use `read_from_c_string'.
679
680 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
681
682         * lread.c (read_from_c_string): New function.
683
684         * lisp.h (read_from_c_string): New prototype.
685
686 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
687
688         * chartab.c (Fput_char_attribute): Convert char-specs in value of
689         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
690         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
691         for `{<-|->}Oracle-Bones[^*]*'.
692
693 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
694
695         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
696         (Kizu).
697
698 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
699
700         * text-coding.c (Qccs_priority_list): New variable in XEmacs
701         CHISE.
702         (Fmake_coding_system): Support new property `ccs-priority-list' in
703         XEmacs CHISE.
704         (Fcoding_system_property): Likewise.
705         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
706         Vdefault_coded_charset_priority_list in XEmacs CHISE.
707         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
708         XEmacs CHISE.
709         (complex_vars_of_file_coding): Define new coding-system-property
710         `ccs-priority-list' in XEmacs CHISE.
711
712         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
713
714 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
715
716         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
717         changed to normal function.
718         (encode_char_2): Likewise.
719
720         * mule-charset.c (decoding_table_put_char): Copied from
721         char-ucs.h; changed to normal function.
722         (encode_char_2): Likewise.
723
724 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
725
726         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
727         New extern.
728         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
729         (encode_char_2_search_children): New inline function.
730         (encode_char_2): Refer
731         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
732         and use `encode_char_2_search_children'.
733
734 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
735
736         * mule-charset.c
737         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
738         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
739         (vars_of_mule_charset): Add new variable
740         `display-coded-charset-priority-use-inheritance' and
741         `display-coded-charset-priority-use-hierarchy-order'.
742
743 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
744
745         * char-ucs.h (Q_subsumptive): New extern.
746         (Q_denotational): Likewise.
747         (encode_char_2): Search children specified by `->subsumptive' and
748         `->denotational'.
749
750 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
751
752         * mule-charset.c (complex_vars_of_mule_charset): Modify the
753         X-registry of `ucs-bmp'.
754
755 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
756
757         * chartab.c (char-variants): Refer `->subsumptive',
758         `->denotational' and `->identical' as same as `->ucs-unified'.
759
760 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
761
762         * chartab.c (Fput_char_attribute): Convert char-specs in value of
763         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
764         links.
765
766 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
767
768         * text-coding.c: Add EXFUN for `Fregexp_quote'.
769         (decode_add_er_char): Fix problem about infinite loop when a CCS
770         specified in `coded-charset-entity-reference-alist' is not
771         existed.
772
773 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
774
775         * mule-charset.c (syms_of_mule_charset): Rename
776         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
777
778 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
779
780         * fns.c (simplify_char_spec): Don't allocate new character-object
781         if specified char_spec does not have any CCS-features.
782
783         * chartab.h: Add EXFUN for Fdefine_char.
784
785         * chartab.c: Delete EXFUN for Fdefine_char.
786
787 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
788
789         * fns.c (simplify_char_spec): Use Fdefine_char instead of
790         Ffind_char for char-spec.
791
792 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
793
794         * lisp-disunion.h (XCHARVAL): Fix condition about
795         SIZEOF_EMACS_INT.
796
797 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
798
799         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
800         <int> for `code'.
801         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
802         point; use <Emchar> instead of <int> for character-id.
803
804 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
805
806         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
807         (make_char): Likewise.
808         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
809         environment.
810         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
811         instead of <int> as the type of return value; use <Lisp_Object>
812         instead of <Emchar> as the type of argument.
813         (XCHARVAL[macro version]): Cast the result into <Emchar>.
814
815         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
816         syntaxcode> instead of <int>.
817
818 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
819
820         * chartab.c (put_char_composition): Use DECODE_CHAR to get
821         character corresponding with UCS code point.
822         (Fput_char_attribute): Likewise.
823
824         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
825         character in the UCS decoding-table if the char-id is not equal to
826         the UCS code point.
827
828 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
829
830         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
831         for aliases; write `description'; write
832         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
833         not 0.
834
835 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
836
837         * chartab.c (Fsave_char_attribute_table): Don't use
838         `save_charset_properties'.
839
840         * mule-charset.c (Fsave_charset_properties): Renamed from
841         `save_charset_properties' and changed to Lisp function again;
842         write property `type' as `CCS'; write properties `final-byte' and
843         `mother' if they exists.
844         (syms_of_mule_charset): Revive builtin function
845         `save-charset-properties' when HAVE_LIBCHISE is defined.
846
847 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
848
849         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
850         instead of Vexec_directory.
851         (char_attribute_system_db_file): Likewise.
852
853 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
854
855         * chartab.c (Fsave_char_attribute_table): Use
856         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
857         defined.
858
859         * mule-charset.c (save_charset_properties): Renamed from
860         `Fsave_charset_properties'; changed to non-Lisp function.
861         (syms_of_mule_charset): Abolish builtin function
862         `save-charset-properties'.
863
864 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
865
866         * mule-charset.c (Fsave_charset_properties): New function when
867         HAVE_LIBCHISE is defined.
868         (syms_of_mule_charset): Add new builtin function
869         `save-charset-properties' when HAVE_LIBCHISE is defined.
870
871 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
872
873         * chartab.c (Fput_char_attribute): Convert char-specs in value of
874         `{<-|->}ancient[^*]*' to characters and put reverse links.
875         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
876         for `{<-|->}ancient[^*]*'.
877
878 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
879
880         * chartab.c (Fput_char_attribute): Convert char-specs in value of
881         `{<-|->}original[^*]*' to characters and put reverse links.
882         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
883         for `{<-|->}original[^*]*'.
884
885 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
886
887         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
888
889 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
890
891         * mule-charset.c (Qsystem_char_id): New variable.
892
893         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
894         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
895
896 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
897
898         * chartab.c (Fput_char_attribute): When processing a reference of
899         a character, put into the end of the reversed reference of each
900         target character.
901
902 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
903
904         * chartab.c (Q_same): Deleted.
905         (Q_same_of): Deleted.
906         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
907         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
908         for `{<-|->}same'.
909         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
910
911 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
912
913         * chartab.c (Q_vulgar): Deleted.
914         (Q_vulgar_of): Deleted.
915         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
916         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
917         for `{<-|->}vulgar'.
918         (syms_of_chartab): Don't define `{<-|->}vulgar'.
919
920 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
921
922         * chartab.c (Fput_char_attribute): Convert char-specs in value of
923         `{<-|->}wrong[^*]*' to characters and put reverse links.
924         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
925         for `{<-|->}wrong[^*]*'.
926
927 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
928
929         * chartab.c (Q_vulgar): New variable.
930         (Q_vulgar_of): New variable.
931         (Fput_char_attribute): Convert char-specs in value of
932         `{->|<-}vulgar' to characters and put reverse links.
933         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
934         for `{->|<-}vulgar'.
935         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
936
937 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
938
939         * text-coding.c (decode_add_er_char): Must to quote prefix string
940         as regexp.
941
942 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
943
944         * mule-charset.c (put_char_ccs_code_point): Store characters of
945         =ucs whose code_points >= 0xF0000.
946
947 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
948
949         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
950         CHISE.
951         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
952         CHISE.
953         (complex_vars_of_mule_charset): Add new coded-charset
954         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
955         builtin characters over 0xEFFFF.
956
957         * chartab.c (syms_of_chartab): Don't define symbol
958         `system-char-id' in every case.
959
960         * char-ucs.h (Qsystem_char_id): New extern variable.
961         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
962
963 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
964
965         * text-coding.c (char_encode_utf8): Try to use entity-references
966         for U-000F0000 ...  U-0010FFFF.
967
968 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
969
970         * text-coding.c (ER_BUF_SIZE): New macro.
971         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
972         `er_buf'.
973         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
974         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
975
976 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
977
978         * chartab.c (find_char_feature_in_family): New function.
979         (Fchar_feature): Use `find_char_feature_in_family' with
980         `->identical', `<-subsumptive' and `<-denotational'.
981
982 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
983
984         * text-coding.c (char_encode_as_entity_reference): Allow prefix
985         within 8 characters; fix infinite loop.
986
987 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
988
989         * chartab.c (Q_same): New variable.
990         (Q_same_of): New variable.
991         (Fput_char_attribute): Convert char-specs in value of
992         `{->|<-}same' to characters and put reverse links.
993         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
994         for `{->|<-}same'.
995         (syms_of_chartab): Add new symbols `{->|<-}same'.
996
997 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
998
999         * chartab.c (Q_component): New variable.
1000         (Q_component_of): Likewise.
1001         (Fput_char_attribute): Convert char-specs in value of
1002         `{->|<-}ideographic-component-forms' to characters and put reverse
1003         links.
1004         (syms_of_chartab): Add new symbols
1005         `{->|<-}ideographic-component-forms'.
1006
1007 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1008
1009         * chartab.c (Q_identical): New variable.
1010         (Q_identical_from): New variable.
1011         (Fchar_feature): Regard `->identical' as a feature to find
1012         ancestors.
1013         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
1014         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
1015         for `{->|<-}identical'.
1016         (syms_of_chartab): Add new symbols `{->|<-}identical'.
1017
1018 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1019
1020         * char-ucs.h (encode_char_2): New inline function.
1021         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
1022
1023 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1024
1025         * chartab.c (Fput_char_attribute): Convert char-specs to
1026         characters in value of `ideographic-structure'.
1027         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
1028         for `{<-|->}simplified(@...)'.
1029         (Fdefine_char): Try to use predefined character's id.
1030
1031 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1032
1033         * fns.c (simplify_char_spec): Try to convert builtin chars to
1034         defined chars.
1035
1036 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1037
1038         * chartab.c (Fput_char_attribute): Convert char-specs in value of
1039         `<-simplified[^*]*' to characters and put reverse links.
1040
1041 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1042
1043         * chartab.c (Q_subsumptive): Renamed from Q_unified.
1044         (Q_subsumptive_from): Renamed from Q_unified_from.
1045         (Fchar_feature): Use `Q_subsumptive_from' instead of
1046         `Q_unified_from'.
1047         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
1048         `Q_unified'.
1049         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
1050         `<-unified' to `<-subsumptive'.
1051
1052 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1053
1054         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
1055         inheritance itself; fix typo; stop recursive search if cyclic
1056         inheritance is found.
1057
1058 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1059
1060         * chartab.c (Q_denotational): New variable.
1061         (Q_denotational_from): New variable.
1062         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
1063         (put_char_attribute): New function.
1064         (Fput_char_attribute): Use `put_char_attribute'; regard
1065         `->denotational' and `<-denotational' as same as `->unified' and
1066         `<-unified'.
1067         (syms_of_chartab): Add new symbols `->denotational' and
1068         `<-denotational'.
1069
1070 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1071
1072         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
1073         `Fget_char_attribute'.
1074         (Fchar_variants): Likewise.
1075         (get_char_table): Likewise.
1076         (Fchar_feature): New function.
1077         (put_char_composition): Use `Fchar_feature' instead of
1078         `Fget_char_attribute'.
1079         (Fput_char_attribute): Likewise; don't put the target character
1080         into its `->unified' value.
1081         (syms_of_chartab): Add new builtin function `char-feature'.
1082
1083 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1084
1085         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
1086         `Fget_char_attribute'.
1087         (char_encode_utf8): Likewise.
1088
1089         * chartab.h: Add an EXFUN for `Fchar_feature'.
1090
1091 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1092
1093         * chartab.c (Vnext_defined_char_id): New variable.
1094         (Fput_char_attribute): Accept characters in `->unified'.
1095         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
1096         new characters which are not related with builtin char-id ranges.
1097         (vars_of_chartab): Add new variable `next-defined-char-id'.
1098
1099 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1100
1101         * chartab.c (Q_unified): New variable.
1102         (Q_unified_from): New variable.
1103         (Fput_char_attribute): Add code for `->unified'.
1104         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
1105         XEmacs CHISE.
1106
1107 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1108
1109         * mule-charset.c (decode_ccs_conversion): New function.
1110         (decode_defined_char): Use `decode_ccs_conversion'.
1111         (decode_builtin_char): Likewise.
1112
1113 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1114
1115         * char-ucs.h: Change some charset-ids of private coded-charsets.
1116
1117 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1118
1119         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
1120         (char_encode_as_entity_reference): Likewise.
1121         (decode_coding_big5): Modify for `decode_defined_char' and
1122         `DECODE_CHAR'.
1123         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
1124         avoid compiler warning.
1125         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
1126
1127         * mule-charset.c (decode_defined_char): Add new argument
1128         `without_inheritance'.
1129         (Fdecode_char): Add new optional argument `without_inheritance'.
1130         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1131
1132         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
1133         (simplify_char_spec): Likewise.
1134
1135         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
1136         setting.
1137
1138         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
1139         (map_char_table): Likewise.
1140         (Fdefine_char): Use `Fdecode_char' without inheritance.
1141         (Ffind_char): Modify for `Fdecode_char'.
1142
1143         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
1144
1145         * char-ucs.h (decode_defined_char): Add new argument
1146         `without_inheritance'.
1147         (DECODE_CHAR): Likewise.
1148         (MAKE_CHAR): Modify for `DECODE_CHAR'.
1149
1150 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1151
1152         * chartab.c (Vchise_system_db_directory): New variable.
1153         (vars_of_chartab): Add new variable `chise-system-db-directory'.
1154
1155 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1156
1157         * chartab.c: EXFUN `Fmount_char_attribute_table'.
1158         (print_chartab_range): Don't define when `UTF2000' is defined.
1159         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
1160         `CHISE_DS_open'.
1161
1162 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1163
1164         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
1165         and optional argument `rehash' is specified, call
1166         `open_chise_data_source_maybe' before
1167         `chise_ds_foreach_char_feature_name' is called.
1168
1169 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1170
1171         * chartab.c (char_attribute_list_reset_map_func): New function
1172         when HAVE_LIBCHISE is defined.
1173         (Fchar_attribute_list): Add new optional argument `rehash' when
1174         HAVE_LIBCHISE is defined.
1175         (open_chise_data_source_maybe): Use "chise-db" instead of
1176         "char-db".
1177         (char_attribute_system_db_file): Likewise.
1178         (Fload_char_attribute_table): Use
1179         `chise_feature_foreach_char_with_value' instead of
1180         `chise_char_feature_value_iterate'.
1181
1182 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1183
1184         * chartab.c (Vchise_db_directory): New variable.
1185         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
1186
1187 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1188
1189         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
1190         instead of HAVE_CHISE to specify using with libchise.
1191
1192         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
1193
1194         * chartab.h: Don't use HAVE_CHISE_CLIENT.
1195
1196         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
1197         defined or HAVE_LIBCHISE_LIBCHISE is defined.
1198         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
1199         is defined.
1200         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
1201         HAVE_CHISE to specify using with libchise.
1202         (syms_of_chartab): Don't define symbol `system-char-id' when
1203         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
1204
1205 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1206
1207         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1208         specify CHISE DB support.
1209         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
1210         of `char_attribute_system_db_file' to check feature DB file.
1211
1212         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
1213         HAVE_CHISE_CLIENT to specify CHISE DB support.
1214
1215         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1216         specify CHISE DB support.
1217         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
1218         not defined.
1219         (Freset_char_attribute_table): Use `chise_feature_setup_db'
1220         instead of `char_attribute_system_db_file' to check feature DB
1221         file.
1222
1223 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1224
1225         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
1226         `HAVE_CHISE_CLIENT'.
1227
1228 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1229
1230         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
1231         (Fsave_charset_mapping_table): Don't use
1232         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1233
1234         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
1235         (HAVE_LIBCHISE): New macro.
1236
1237         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
1238
1239         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
1240         (Fsave_char_attribute_table): Don't use
1241         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1242
1243 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1244
1245         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
1246         defined.
1247         (save_uint16_byte_table): Likewise.
1248         (save_byte_table): Likewise.
1249         (char_table_get_db): Use `chise_ds_load_char_feature_value'
1250         instead of `chise_char_load_feature_value'.
1251         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
1252
1253 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1254
1255         * chartab.h (struct Lisp_Char_Table): Delete member
1256         `feature_table' if CHISE is defined.
1257
1258         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
1259         (Fcopy_char_table): Likewise.
1260         (char_table_open_db_maybe): Likewise.
1261         (char_table_close_db_maybe): Likewise.
1262         (char_table_get_db): Likewise.
1263         (Fmount_char_attribute_table): Likewise.
1264         (Fload_char_attribute_table): Likewise.
1265
1266 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1267
1268         * mule-charset.c (load_char_decoding_entry_maybe): Use
1269         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
1270         `chise_ccs_decode'.
1271
1272 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1273
1274         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
1275         instead of `chise_open_data_source'.
1276         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
1277         `chise_ds_close'.
1278
1279 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1280
1281         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
1282         instead of `chise_ds_open_feature_table'.
1283         (char_table_close_db_maybe): Don't use `chise_ft_close'.
1284
1285 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1286
1287         * mule-charset.c (Fsave_charset_mapping_table): Use
1288         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
1289         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
1290         `chise_ccs_sync' instead of `chise_ccst_close'.
1291         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
1292
1293         * chartab.c (open_chise_data_source_maybe): Modify for
1294         `chise_open_data_source'.
1295         (char_table_open_db_maybe): Modify for
1296         `chise_ds_open_feature_table'.
1297
1298 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1299
1300         * mule-charset.c (load_char_decoding_entry_maybe): Use
1301         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
1302         `chise_ccst_close'.
1303
1304 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1305
1306         * mule-charset.c (Fsave_charset_mapping_table): Use
1307         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
1308         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
1309         `chise_dt_put_char' and `chise_dt_close'.
1310         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
1311         `chise_ccs_decode' and `chise_ccst_close' instead of
1312         `chise_ds_open_decoding_table', `chise_dt_get_char' and
1313         `chise_dt_close'.
1314
1315         * chartab.c (char_table_get_db): Use
1316         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
1317         (load_char_attribute_table_map_func): Modify for
1318         `chise_char_feature_value_iterate'.
1319         (Fload_char_attribute_table): Use
1320         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
1321
1322 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1323
1324         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
1325
1326 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1327
1328         * chartab.c (put_char_table): Modify for inherited coded-charsets
1329         in XEmacs CHISE.
1330
1331 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1332
1333         * chartab.c (Fput_char_table_map_function): Fixed.
1334         (word_boundary_p): Don't check charset in XEmacs CHISE.
1335
1336 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1337
1338         * mule-charset.c (Fsave_charset_mapping_table): Use
1339         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1340         instead of `chise_open_decoding_table'; refer
1341         `default_chise_data_source'; use `chise_dt_close' instead of
1342         `chise_close_decoding_table'.
1343         (load_char_decoding_entry_maybe): Likewise.
1344
1345         * chartab.c (default_chise_data_source): New variable when `CHISE'
1346         is defined.
1347         (Fcopy_char_table): `ct->ds' is deleted.
1348         (open_chise_data_source_maybe): New function.
1349         (Fclose_char_data_source): New function.
1350         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1351         use `chise_ds_open_feature_table' instead of
1352         `chise_open_feature_table'.
1353         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1354         `chise_close_feature_table'; `cit->ds' is deleted.
1355         (syms_of_chartab): Add new builtin function
1356         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1357
1358         * chartab.h (default_chise_data_source): New extern variable.
1359         (open_chise_data_source_maybe): New prototype.
1360         (struct Lisp_Char_Table): Delete `ds'.
1361
1362 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1363
1364         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1365         `CHISE' is defined.
1366
1367 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1368
1369         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1370         not defined; add code for non-libchise setting.
1371         (char_table_close_db_maybe): Likewise.
1372         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1373         defined.
1374         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1375         even if `CHISE' is not defined.
1376         (Freset_char_attribute_table): Likewise.
1377         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1378         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1379         `char_table_get_db'.
1380         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1381         `char_table_close_db_maybe' even if `CHISE' is not defined.
1382
1383 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1384
1385         * chartab.c (char_table_open_db_maybe): New function.
1386         (char_table_close_db_maybe): New function.
1387         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1388         (Freset_char_attribute_table): Likewise.
1389         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1390         `char_table_close_db_maybe'.
1391         (Fload_char_attribute_table): Likewise.
1392
1393 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1394
1395         * chartab.c: Don't include <chise.h> because it is included in
1396         chartab.h.
1397         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1398         defined.
1399         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1400         `CHISE' is defined.
1401         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1402         `CHISE' is defined.
1403         (Fclose_char_attribute_table): Close `ct->feature_table' and
1404         `ct->ds' when `CHISE' is defined.
1405         (Freset_char_attribute_table): Likewise.
1406         (load_char_attribute_maybe): Use `cit->ds' and
1407         `cit->feature_table' when `CHISE' is defined.
1408         (Fload_char_attribute_table): Likewise.
1409
1410         * chartab.h: Include <chise.h> when `CHISE' is defined.
1411         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1412         when `CHISE' is defined.
1413
1414 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1415
1416         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1417         is defined.
1418         (char_table_description): Likewise.
1419         (Fmake_char_table): Likewise.
1420         (Fcopy_char_table): Likewise.
1421         (Fmount_char_attribute_table): Likewise.
1422         (Fclose_char_attribute_table): Likewise.
1423         (Freset_char_attribute_table): Likewise.
1424         (load_char_attribute_maybe): Likewise.
1425         (Fload_char_attribute_table): Likewise.
1426
1427         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1428         defined.
1429
1430 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1431
1432         * chartab.c (load_char_attribute_table_map_func): New function
1433         when CHISE is defined.
1434         (Qload_char_attribute_table_map_function): Don't define when CHISE
1435         is defined.
1436         (Fload_char_attribute_table_map_function): Likewise.
1437         (Fload_char_attribute_table): Use libchise when `CHISE' is
1438         defined.
1439         (syms_of_chartab): Don't define
1440         `load-char-attribute-table-map-function' when CHISE is defined.
1441
1442 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1443
1444         * chartab.c: Include <chise.h> when `CHISE' is defined.
1445         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1446
1447 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1448
1449         * mule-charset.c (charset_code_point): Fix problem when searching
1450         in mother CCS fails with `defined_only' mode.
1451
1452 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1453
1454         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1455         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1456         (put_char_composition): Likewise.
1457         (Fput_char_attribute): Likewise.
1458         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1459
1460 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1461
1462         * chartab.c (Q_ucs): Deleted.
1463         (Fput_char_attribute): Don't refer `->ucs'.
1464         (Fdefine_char): Likewise.
1465         (Ffind_char): Likewise.
1466         (syms_of_chartab): Delete `->ucs'.
1467
1468 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1469
1470         * mule-charset.c (Qmap_cns11643_2): Renamed from
1471         `Qchinese_cns11643_2'.
1472         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1473         `chinese-cns11643-2'.
1474         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1475         `=cns11643-2'.
1476
1477 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1478
1479         * mule-charset.c (Qmap_cns11643_1): Renamed from
1480         `Qchinese_cns11643_1'.
1481         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1482         `chinese-cns11643-1'.
1483         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1484         `=cns11643-1'.
1485
1486 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1487
1488         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1489         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1490         `chinese-gb12345'.
1491         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1492         `=gb12345'.
1493
1494 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1495
1496         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1497         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1498         `chinese-gb2312'.
1499         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1500         `=gb2312'.
1501
1502 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1503
1504         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1505         (syms_of_mule_charset): Add new symbol `=big5' instead of
1506         `chinese-big5'.
1507         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1508
1509 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1510
1511         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1512         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1513         `korean-ksc5601'.
1514         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1515         `=ks-x1001'.
1516
1517 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1518
1519         * mule-charset.c (Qmap_jis_x0212): Renamed from
1520         `Qjapanese_jisx0212'.
1521         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1522         `japanese-jisx0212'.
1523         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1524         `=jis-x0212'.
1525
1526 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1527
1528         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1529         `Qjapanese_jisx0208'.
1530         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1531         of `japanese-jisx0208'.
1532         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1533         `=jis-x0208-1983'.
1534
1535 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1536
1537         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1538         `Qjapanese_jisx0208_1978'.
1539         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1540         of `japanese-jisx0208-1978'.
1541         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1542         `=jis-x0208-1978'.
1543
1544 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1545
1546         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1547         only for XEmacs CHISE.
1548
1549 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1550
1551         * char-ucs.h: Compact non-ISO-IR charset-ids.
1552         (LEADING_BYTE_UCS): Changed to -177.
1553         (LEADING_BYTE_CONTROL_1): Changed to -77.
1554         (LEADING_BYTE_UCS_BMP): Changed to -176.
1555         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1556
1557 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1558
1559         * mule-charset.c (Qiso_ir): New variable.
1560         (Fmake_charset): Recognise new property `iso-ir'.
1561         (syms_of_mule_charset): Add new symbol `iso-ir'.
1562
1563 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1564
1565         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1566         n to -n; charset-id of non ISO-IR sets are changed to positive
1567         numbers.
1568
1569 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1570
1571         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1572         for &MCS-XXXXXXXX; values.
1573
1574 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1575
1576         * mule.c (Vxemacs_chise_version): Renamed from
1577         `Vutf_2000_version'.
1578         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1579         `utf-2000-version' as an alias for `xemacs-chise-version'.
1580
1581 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1582
1583         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1584         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1585         defined.
1586
1587         * config.h.in (CHISE): New macro.
1588
1589 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1590
1591         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1592         of `ucs'.
1593         (Qmap_ucs): New variable.
1594         (syms_of_mule_charset): Add new symbol `=ucs'.
1595         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1596
1597         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1598         (simplify_char_spec): Likewise.
1599
1600         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1601
1602         * char-ucs.h (Qmap_ucs): New extern variable.
1603
1604 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1605
1606         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1607         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1608         don't define it when UTF2000 is not defined.
1609         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1610         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1611         when UTF2000 is not defined.
1612         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1613         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1614
1615 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1616
1617         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1618
1619         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1620         (Qucs_gb): Deleted.
1621         (syms_of_mule_charset): Delete `ucs-gb'.
1622         (complex_vars_of_mule_charset): Likewise.
1623
1624 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1625
1626         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1627
1628         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1629         (Qucs_cns): Deleted.
1630         (syms_of_mule_charset): Delete `ucs-cns'.
1631         (complex_vars_of_mule_charset): Likewise.
1632
1633 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1634
1635         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1636
1637         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1638         (Qucs_jis): Deleted.
1639         (syms_of_mule_charset): Delete `ucs-jis'.
1640         (complex_vars_of_mule_charset): Likewise.
1641
1642 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1643
1644         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1645
1646         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1647         (Qucs_ks): Deleted.
1648         (syms_of_mule_charset): Delete `ucs-ks'.
1649         (complex_vars_of_mule_charset): Likewise.
1650
1651 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1652
1653         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1654         (Qideograph_daikanwa_2): Deleted.
1655         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1656         (complex_vars_of_mule_charset): Likewise.
1657
1658         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1659         (LEADING_BYTE_DAIKANWA_1): Deleted.
1660         (LEADING_BYTE_DAIKANWA_2): Deleted.
1661         (MIN_CHAR_DAIKANWA): Deleted.
1662         (MAX_CHAR_DAIKANWA): Deleted.
1663
1664 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1665
1666         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1667         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1668         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1669
1670         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1671         (Vcharset_ideograph_daikanwa): Deleted.
1672         (Qideograph_hanziku_{1..12}): Deleted.
1673         (Qideograph_daikanwa): Deleted.
1674         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1675         Vcharset_ideograph_daikanwa.
1676         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1677         `ideograph-hanziku-{1..12}'.
1678         (complex_vars_of_mule_charset): Likewise.
1679
1680 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1681
1682         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1683
1684         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1685         (Qideograph_gt_pj_{1..11}): Deleted.
1686         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1687         (complex_vars_of_mule_charset): Likewise.
1688
1689 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1690
1691         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1692         (Vcharset_ideograph_gt): Deleted.
1693         (Qucs_big5): Deleted.
1694         (Qideograph_gt): Deleted.
1695         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1696         `ideograph-gt'.
1697         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1698         and `ideograph-gt'.
1699
1700         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1701         (LEADING_BYTE_GT): Deleted.
1702         (MIN_CHAR_GT): Deleted.
1703         (MAX_CHAR_GT): Deleted.
1704
1705 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1706
1707         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1708
1709 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1710
1711         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1712         (save_uint16_byte_table): Likewise.
1713         (save_byte_table): Likewise; convert values by it.
1714         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1715         for `ideographic-structure'.
1716         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1717         as the filter for `ideographic-structure'.
1718
1719 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1720
1721         * chartab.c (put_char_composition): New function.
1722         (Fput_char_attribute): Use `put_char_composition'; use
1723         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1724
1725         * fns.c (simplify_char_spec): New function.
1726         (char_ref_simplify_spec): New function.
1727         (Fchar_refs_simplify_char_specs): New function.
1728         (syms_of_fns): Add new builtin function
1729         `char-refs-simplify-char-specs'.
1730
1731 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1732
1733         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1734         (Qideograph_cbeta): Deleted.
1735         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1736         (complex_vars_of_mule_charset): Likewise.
1737
1738         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1739         (MIN_CHAR_CBETA): Comment out.
1740         (MAX_CHAR_CBETA): Likewise.
1741
1742 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1743
1744         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1745         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1746         CHISE client feature.
1747
1748 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1749
1750         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1751
1752 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1753
1754         * mule-charset.c (charset_lookup_description_1): Use
1755         `NUM_LEADING_BYTES' in UTF-2000.
1756
1757 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1758
1759         * char-ucs.h (GC_CHARSETP): Deleted.
1760
1761 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1762
1763         * char-ucs.h (MAX_CHAR_GT): Updated.
1764
1765 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1766
1767         * text-coding.c: Sync with XEmacs 21.4.10.
1768
1769 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1770
1771         * mule-charset.c (Vcharset_china3_jef): Deleted.
1772         (Qchina3_jef): Deleted.
1773         (syms_of_mule_charset): Don't define `china3-jef'.
1774         (complex_vars_of_mule_charset): Likewise.
1775
1776         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1777         (MIN_CHAR_CHINA3_JEF): Comment out.
1778         (MAX_CHAR_CHINA3_JEF): Comment out.
1779
1780 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1781
1782         * mule-charset.c (Vcharset_ucs_gb): New variable.
1783         (Qucs_gb): New variable.
1784         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1785         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1786
1787         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1788
1789 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1790
1791         * mule-charset.c (charset_code_point): if a coded-charset has a
1792         final-byte, don't inherit the builtin range of the mother CCS.
1793
1794 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1795
1796         * mule-charset.c (charset_code_point): Fix problem about
1797         inheritance.
1798
1799 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1800
1801         * mule-charset.c (decode_builtin_char): Reorganized.
1802
1803 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1804
1805         * text-coding.c (char_encode_as_entity_reference): Modify for
1806         `charset_code_point'.
1807         (char_encode_shift_jis): Likewise.
1808         (char_encode_big5): Likewise.
1809         (char_encode_utf8): Likewise.
1810         (char_encode_iso2022): Likewise.
1811
1812         * mule-charset.c (charset_code_point): Add new argument
1813         `defined_only'.
1814         (Fencode_char): Add new optional argument `defined_only'.
1815
1816         * chartab.c (put_char_table): Modify for `charset_code_point'.
1817
1818         * char-ucs.h (charset_code_point): Add new argument
1819         `defined_only'.
1820         (encode_char_1): Modify for `charset_code_point'.
1821
1822 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1823
1824         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1825         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1826
1827 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1828
1829         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1830         (Qjis_x0208): Likewise.
1831         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1832         XCHARSET_FINAL(charset).
1833         (charset_code_point): Modify condition for final-byte based
1834         builtin-chars.
1835         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1836         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1837         in UTF-2000; specify `=jis-x0208' as the mother of
1838         `japanese-jisx0208-1978', `japanese-jisx0208' and
1839         `japanese-jisx0208-1990' in UTF-2000.
1840
1841 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1842
1843         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1844
1845 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1846
1847         * text-coding.c (decode_coding_utf16): Support UTF-16.
1848         (char_encode_utf16): Fixed.
1849
1850 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1851
1852         * text-coding.c (Qutf16): New variable in MULE.
1853         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1854         (Fcoding_system_type): Add `utf-16' in MULE.
1855         (struct detection_state): Add a structure for utf16 in MULE.
1856         (detect_coding_type): Setup st->utf16.mask in MULE.
1857         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1858         MULE.
1859         (reset_encoding_stream): Use `char_encode_utf16' and
1860         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1861         (detect_coding_utf16): New function [incomplete].
1862         (decode_coding_utf16): New function [support only UCS-2].
1863         (char_encode_utf16): New function.
1864         (char_finish_utf16): New function.
1865         (syms_of_file_coding): Add new symbol `utf-16'; setup
1866         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1867
1868         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1869         UTF-2000.
1870         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1871         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1872
1873 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1874
1875         * chartab.c (put_char_table): When a charset is specified as a
1876         range in UTF-2000, don't support builtin characters.
1877
1878 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1879
1880         * mule-charset.c (decode_defined_char): Don't refer external
1881         database if Qunbound or Qnil are found.
1882         (Fsave_charset_mapping_table): Don't define it if
1883         HAVE_CHISE_CLIENT is not defined.
1884         (Freset_charset_mapping_table): New function.
1885         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1886         found in external database.
1887         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1888         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1889         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1890
1891 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1892
1893         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1894         not.
1895
1896 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1897
1898         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1899         Q_lowercase, Q_uppercase in UTF-2000.
1900
1901         * chartab.c (get_char_table): Add special code for the standard
1902         case table to use character attribute `->downcase' and
1903         `->uppercase' for case operations in UTF-2000.
1904
1905         * casetab.c (Qflippedcase): New variable in UTF-2000.
1906         (Q_lowercase): Likewise.
1907         (Q_uppercase): Likewise.
1908         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1909         and `->uppercase' in UTF-2000.
1910         (complex_vars_of_casetab): Assign attribute name `downcase' to
1911         downcase and CANON table of Vstandard_case_table in UTF-2000;
1912         assign attribute name `flippedcase' to upcase and EQV table of
1913         Vstandard_case_table in UTF-2000.
1914
1915 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1916
1917         * text-coding.c (decode_add_er_char): Support isolated-chars.
1918         (char_encode_as_entity_reference): Likewise.
1919
1920 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1921
1922         * emacs.c (Vutf_2000_lisp_directory): New variable.
1923         (Vconfigure_utf_2000_lisp_directory): Likewise.
1924         (complex_vars_of_emacs): Add new variable
1925         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1926
1927 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1928
1929         * char-ucs.h (DECODE_CHAR): Delete special code for
1930         `chinese-big5-1' and `chinese-big5-2'.
1931
1932         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1933         (Qbig5_2): Likewise.
1934         (decode_defined_char): Support CONVERSION_BIG5_1 and
1935         CONVERSION_BIG5_2.
1936         (decode_builtin_char): Likewise.
1937         (charset_code_point): Likewise.
1938         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1939         'conversion in UTF-2000.
1940         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1941         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1942         `chinese-big5-2' as children of `chinese-big5'.
1943
1944         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1945         (CONVERSION_BIG5_2): New macro.
1946
1947 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1948
1949         * text-coding.c (char_encode_big5): Support entity-reference.
1950
1951 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1952
1953         * text-coding.c (char_encode_as_entity_reference): New function.
1954         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1955
1956 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1957
1958         * text-coding.c (decode_coding_big5): Support entity-reference
1959         decoding feature.
1960
1961 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1962
1963         * text-coding.c (allocate_coding_system): Initialize initial
1964         charsets for CODESYS_UTF8.
1965         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1966         charset-g2 for CODESYS_UTF8.
1967         (decode_coding_utf8): Use charset-g0.
1968         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1969         to force variants to map to UCS.
1970
1971 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1972
1973         * text-coding.c (Qutf_8_mcs): New variable.
1974         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1975         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1976         instead of `utf-8' in UTF-2000.
1977
1978 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1979
1980         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1981         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1982         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1983         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1984         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1985         CONVERSION_96x96x96x96 are introduced.
1986         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1987         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1988         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1989
1990         * char-ucs.h (CONVERSION_94): New macro.
1991         (CONVERSION_96): New macro.
1992         (CONVERSION_94x94): New macro.
1993         (CONVERSION_96x96): New macro.
1994         (CONVERSION_94x94x94): New macro.
1995         (CONVERSION_96x96x96): New macro.
1996         (CONVERSION_94x94x94x60): New macro.
1997         (CONVERSION_94x94x94x94): New macro.
1998         (CONVERSION_96x96x96x96): New macro.
1999
2000 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2001
2002         * chartab.c (Vcharacter_variant_table): Deleted.
2003         (Fchar_variants): Use character-attribute `->ucs-variants' instead
2004         of `Vcharacter_variant_table'.
2005         (Fput_char_attribute): Likewise.
2006         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
2007         (complex_vars_of_chartab): Likewise.
2008
2009 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2010
2011         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
2012
2013         * fns.c (Qideographic_structure): New variable.
2014         (Qkeyword_char): New variable.
2015         (ids_format_unit): New function.
2016         (Fideographic_structure_to_ids): New function.
2017         (syms_of_fns): Add new symbols `ideographic-structure' and
2018         `:char'; add new builtin function `ideographic-structure-to-ids'.
2019
2020         * data.c (Fchar_ref_p): New function.
2021         (syms_of_data): Add new builtin function `char-ref-p'.
2022
2023         * chartab.h: Add an EXFUN for `Ffind_char'.
2024
2025 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2026
2027         * text-coding.c (Vcharacter_composition_table): Deleted.
2028         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
2029         in every UTF-2000.
2030
2031         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
2032         UTF-2000.
2033         (Vcharacter_composition_table): Deleted.
2034         (Fget_composite_char): Use the implementation for external-DB
2035         support in every UTF-2000.
2036         (Fput_char_attribute): Likewise.
2037         (char_attribute_system_db_file): Don't define if external-DB
2038         feature is not available.
2039         (Fsave_char_attribute_table): Likewise.
2040         (Fmount_char_attribute_table): Likewise.
2041         (Fclose_char_attribute_table): Likewise.
2042         (Freset_char_attribute_table): Likewise.
2043         (Fload_char_attribute_table): Likewise.
2044         (syms_of_chartab): Don't define `save-char-attribute-table',
2045         `mount-char-attribute-table', `reset-char-attribute-table',
2046         `close-char-attribute-table' and `load-char-attribute-table' if
2047         external-DB feature is not available.
2048         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
2049
2050 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2051
2052         * text-coding.c (Qcomposition): Add extern if external-DB feature
2053         is supported.
2054         (Vcharacter_composition_table): Don't add extern if external-DB
2055         feature is supported.
2056         (COMPOSE_ADD_CHAR): Modify for new data-representation of
2057         character composition rule if external-DB feature is supported.
2058
2059         * chartab.c (Vcharacter_composition_table): Don't define if
2060         external-DB feature is supported.
2061         (Qcomposition): New variable.
2062         (Fget_composite_char): New implementation for external-DB support.
2063         (Fput_char_attribute): Use `composition' property of each
2064         character instead of `Vcharacter_composition_table' to store
2065         character-composition rules if external-DB feature is supported.
2066         (syms_of_chartab): Add new symbol `composition'.
2067         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
2068         external-DB feature is supported.
2069
2070 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2071
2072         * chartab.c (Vchar_db_stingy_mode): New variable.
2073         (load_char_attribute_maybe): Close database if
2074         Vchar_db_stingy_mode is not NIL.
2075         (Fload_char_attribute_table_map_function): Use
2076         `get_char_id_table_0' instead of `get_char_id_table'.
2077         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
2078
2079         * chartab.h (get_char_id_table_0): New inline function.
2080         (get_char_id_table): Use `get_char_id_table_0'.
2081
2082 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2083
2084         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
2085         and `COMPOSE_ADD_CHAR'.
2086         (decode_coding_iso2022): Use `decode_flush_er_chars'.
2087
2088 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2089
2090         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
2091         instead of `DECODE_ADD_UCS_CHAR'.
2092         (COMPOSE_ADD_CHAR): Likewise.
2093
2094 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2095
2096         * text-coding.c (decode_flush_er_chars): New inline function.
2097         (decode_add_er_char): New function.
2098         (decode_coding_utf8): Use `decode_flush_er_chars' and
2099         `decode_add_er_char'.
2100
2101 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2102
2103         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
2104         done before `decode_output_utf8_partial_char'.
2105
2106         * mule-charset.c (complex_vars_of_mule_charset): Specify
2107         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
2108         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
2109
2110 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2111
2112         * mule-charset.c (decode_defined_char): New function; search
2113         mother.
2114         (decode_builtin_char): Don't search mother if
2115         XCHARSET_MAX_CODE(charset) == 0.
2116         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
2117         == 0 even if code >= XCHARSET_MAX_CODE(charset).
2118         (Fdecode_char): Use `decode_defined_char' instead of
2119         `DECODE_DEFINED_CHAR'.
2120         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
2121         mother of `Vcharset_ucs_jis'.
2122
2123         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
2124         instead of `DECODE_DEFINED_CHAR'.
2125
2126         * char-ucs.h (decode_defined_char): Renamed from
2127         `DECODE_DEFINED_CHAR'; changed to normal function.
2128         (DECODE_CHAR): Use `decode_defined_char' instead of
2129         `DECODE_DEFINED_CHAR'.
2130
2131         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
2132
2133 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2134
2135         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
2136
2137         * text-coding.c (Vcoded_charset_entity_reference_alist): New
2138         variable.
2139         (Quse_entity_reference): New variable.
2140         (Qd): New variable.
2141         (Qx): New variable.
2142         (QX): New variable.
2143         (coding_system_description): Add description for
2144         `ccs_priority_list'.
2145         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
2146         (allocate_coding_system): Initialize `ccs_priority_list' in
2147         UTF-2000.
2148         (Fmake_coding_system): Add description about
2149         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
2150         (codesys).
2151         (Fcoding_system_property): Accept `disable-composition' and
2152         `use-entity-reference' in UTF-2000.
2153         (struct decoding_stream): Add new member `er_counter' and `er_buf'
2154         in UTF-2000.
2155         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
2156         (decode_coding_utf8): Decode entity-reference if
2157         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
2158         (char_encode_utf8): Encode non-Unicode characters as
2159         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
2160         (str->codesys).
2161         (syms_of_file_coding): Add new symbols `use-entity-reference',
2162         `d', `x', `X'.
2163         (vars_of_file_coding): Add new variable
2164         `coded-charset-entity-reference-alist'.
2165         (complex_vars_of_file_coding): Declare `disable-composition' and
2166         `use-entity-reference' to be coding-system-properties in UTF-2000.
2167
2168         * file-coding.h (struct Lisp_Coding_System): Add new member
2169         `use_entity_reference' and `ccs_priority_list'.
2170         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2171         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
2172         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2173
2174 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2175
2176         * chartab.c (save_uint8_byte_table): Don't clear the table.
2177         (save_uint16_byte_table): Likewise.
2178         (save_byte_table): Likewise.
2179         (Fmount_char_attribute_table): New function.
2180         (syms_of_chartab): Add new builtin function
2181         `mount-char-attribute-table'.
2182
2183 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2184
2185         * mule-charset.c (Fsave_charset_mapping_table): Open database as
2186         "w+" mode.
2187         (load_char_decoding_entry_maybe): Open database as read-only mode.
2188
2189         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
2190         open database as "w+" mode.
2191         (load_char_attribute_maybe): Open database as read-only mode.
2192         (Fload_char_attribute_table): Likewise.
2193
2194 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2195
2196         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
2197         (char_table_description): Delete member `db_file'.
2198         (Fmake_char_table): Don't refer `ct->db_file'.
2199         (Fcopy_char_table): Likewise.
2200         (Fsave_char_attribute_table): Likewise.
2201         (Fclose_char_attribute_table): Likewise.
2202         (Freset_char_attribute_table): Likewise.
2203         (load_char_attribute_maybe): Likewise.
2204         (Fload_char_attribute_table): Likewise.
2205
2206         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
2207
2208 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2209
2210         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
2211         (Fsave_char_attribute_table): Don't check `ct->db_file' if
2212         `ct->db' is living.
2213         (load_char_attribute_maybe): Likewise.
2214         (Fload_char_attribute_table): Likewise.
2215
2216 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2217
2218         * chartab.c (Fclose_char_attribute_table): Set Qnil on
2219         `ct->db_file' unconditionally.
2220
2221 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2222
2223         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
2224         UTF-2000.
2225         (char_table_description): Add description for `db_file' and `db'
2226         in UTF-2000.
2227         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
2228         UTF-2000.
2229         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
2230         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
2231         (Fclose_char_attribute_table): New function.
2232         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
2233         (load_char_attribute_maybe): Change interface; use `cit->db_file'
2234         and `cit->db'.
2235         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
2236         (syms_of_chartab): Add new builtin function
2237         `Fclose_char_attribute_table'.
2238
2239 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2240
2241         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
2242         `db' in UTF-2000.
2243         (load_char_attribute_maybe): Change interface.
2244         (get_char_id_table): Modify for `load_char_attribute_maybe'.
2245
2246 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2247
2248         * database.h: Add an EXFUN for `Fdatabase_live_p'.
2249
2250 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2251
2252         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
2253         instead of `DECODE_CHAR' for mother; don't use special code for
2254         chinese-big5 to use code space of chinese-big5-1 and
2255         chinese-big5-2.
2256         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
2257         `MAX_CHAR_BIG5_CDP' for chinese-big5.
2258
2259         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
2260         (MAX_CHAR_BIG5_CDP): Revival.
2261
2262 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2263
2264         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
2265         the XLFD registry-encoding name of `chinese-big5'.
2266
2267 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2268
2269         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
2270         (Qchinese_big5_cdp): Deleted.
2271         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
2272         (complex_vars_of_mule_charset): Delete coded-charset
2273         `chinese-big5-cdp'.
2274
2275         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
2276         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
2277         `CHARSET_ID_OFFSET - n' for private CCS.
2278         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
2279         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
2280         of `MIN_LEADING_BYTE'.
2281         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
2282         `(CHARSET_ID_OFFSET - 97)'.
2283         (MIN_CHAR_BIG5_CDP): Deleted.
2284         (MAX_CHAR_BIG5_CDP): Deleted.
2285
2286 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2287
2288         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
2289
2290 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2291
2292         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
2293         (vars_of_mule): Add new variable `utf-2000-version' [moved from
2294         chartab.c].
2295
2296         * chartab.c (Vutf_2000_version): Moved to mule.c.
2297         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
2298
2299 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2300
2301         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
2302         when HAVE_CHISE_CLIENT is not defined.
2303
2304         * mule.c (vars_of_mule): Provide feature `chise' when
2305         HAVE_CHISE_CLIENT is defined.
2306
2307 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2308
2309         * config.h.in (UTF2000): Add comment.
2310         (HAVE_CHISE_CLIENT): New macro.
2311
2312 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2313
2314         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
2315         CONSP.
2316         (Fput_char_attribute): Likewise.
2317         (char_attribute_system_db_file): Encode file-name of attribute.
2318         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
2319         the initial value.
2320
2321 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2322
2323         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
2324         (Fsave_charset_mapping_table): Use
2325         `char_attribute_system_db_file'.
2326         (load_char_decoding_entry_maybe): Likewise.
2327
2328         * chartab.h (Qsystem_char_id): New external variable.
2329         (char_attribute_system_db_file): New prototype.
2330
2331         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2332         (char_attribute_system_db_file): New function.
2333         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2334         (Freset_char_attribute_table): Likewise.
2335         (load_char_attribute_maybe): Likewise.
2336         (Fload_char_attribute_table): Likewise.
2337         (syms_of_chartab): Add new symbol `system-char-id'.
2338
2339 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2340
2341         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2342         `XCHARSET_GRAPHIC(ccs)'.
2343
2344 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2345
2346         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2347
2348 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2349
2350         * chartab.c (Q_ucs_variants): New variable.
2351         (syms_of_chartab): Add new symbol `->ucs-variants'.
2352         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2353         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2354         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2355
2356         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2357
2358         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2359         `HAVE_DATABASE' is defined.
2360         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2361         `HAVE_DATABASE' is defined.
2362
2363 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2364
2365         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2366         attribute-table.
2367         (Freset_char_attribute_table): New function.
2368         (syms_of_chartab): Add new builtin function
2369         `reset-char-attribute-table'.
2370
2371 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2372
2373         * chartab.c (load_char_attribute_maybe): Don't make directories.
2374
2375 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2376
2377         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2378
2379         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2380         for decoding-table.
2381
2382 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2383
2384         * mule-charset.c (Fsave_charset_mapping_table): Use
2385         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2386
2387         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2388         instead of `XCHARSET_CHARS'.
2389
2390 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2391
2392         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2393         (XCHARSET_BYTE_SIZE): Likewise.
2394
2395         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2396         mule-charset.c].
2397         (XCHARSET_BYTE_SIZE): Likewise.
2398
2399 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2400
2401         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2402         data-directory to store database.
2403         (Fsave_char_attribute_table): Likewise.
2404         (load_char_attribute_maybe): Likewise.
2405         (Fload_char_attribute_table): Likewise.
2406
2407 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2408
2409         * mule-charset.c (Fsave_charset_mapping_table): New function.
2410         (syms_of_mule_charset): Add new builtin function
2411         `save-charset-mapping-table'.
2412
2413 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2414
2415         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2416         (get_ccs_octet_table): New inline function.
2417         (put_ccs_octet_table): Likewise.
2418         (decoding_table_put_char): Use `get_ccs_octet_table' and
2419         `put_ccs_octet_table'.
2420         (decoding_table_remove_char): Use `decoding_table_put_char'.
2421         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2422
2423         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2424         into encoding_table.
2425         (make_charset): Use Qunbound instead Qnil as initial value of
2426         decoding_table.
2427
2428 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2429
2430         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2431         element is Qunloaded.
2432         (map_over_uint16_byte_table): Likewise.
2433         (map_over_byte_table): Likewise.
2434         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2435         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2436         database support, load encoding-table of the specified
2437         coded-charset if it is not loaded yet.
2438         (save_uint8_byte_table): New function of UTF-2000 with external
2439         database support.
2440         (save_uint16_byte_table): Likewise.
2441         (save_byte_table): Likewise.
2442         (Fput_char_attribute): Don't store value into external database
2443         even if the external database feature is supported in UTF-2000;
2444         set `attribute' as name of char-table if the external database
2445         feature is supported.
2446         (Fsave_char_attribute_table): New function in UTF-2000.
2447         (syms_of_chartab): Add new builtin function
2448         `save-char-attribute-table' in UTF-2000.
2449
2450 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2451
2452         * chartab.c (char_attribute_table_to_put): New variable in
2453         UTF-2000.
2454         (Qput_char_table_map_function): Likewise.
2455         (value_to_put): Likewise.
2456         (Fput_char_table_map_function): New function in UTF-2000.
2457         (put_char_table): Use `Fmap_char_attribute' for
2458         CHARTAB_RANGE_CHARSET in UTF-2000.
2459         (Fput_char_attribute): Store symbol instead of string in
2460         `XCHAR_TABLE_NAME (table)'.
2461         (load_char_attribute_maybe): Likewise.
2462         (syms_of_chartab): Add new symbol/function
2463         `put-char-table-map-function'.
2464
2465 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2466
2467         * database.h: Add new EXFUN for `Fmap_database'.
2468
2469         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2470         (syms_of_database): Likewise.
2471
2472         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2473         UTF-2000.
2474         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2475         (XCHAR_TABLE_UNLOADED): Likewise.
2476
2477         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2478         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2479         HAVE_DATABASE is defined.
2480         (char_attribute_table_to_load): New variable of UTF-2000 with
2481         external database support.
2482         (Qload_char_attribute_table_map_function): Likewise.
2483         (Fload_char_attribute_table_map_function): New function of
2484         UTF-2000 with external database support.
2485         (Fload_char_attribute_table): New function of UTF-2000.
2486         (Fmap_char_attribute): Call Fload_char_attribute_table if
2487         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2488         (syms_of_chartab): Add new symbol and function
2489         `load-char-attribute-table-map-function' in UTF-2000 with external
2490         database support; add new function `load-char-attribute-table' in
2491         UTF-2000.
2492
2493 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2494
2495         * chartab.h (load_char_attribute_maybe): New prototype for
2496         UTF-2000 with DATABASE support.
2497         (get_char_id_table): Use `load_char_attribute_maybe' if
2498         HAVE_DATABASE is defined.
2499
2500         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2501         with DATABASE support.
2502
2503 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2504
2505         * chartab.c (Fput_char_attribute): Use S-expression as key of
2506         external database.
2507
2508         * chartab.h (get_char_id_table): Use S-expression as key of
2509         external database.
2510
2511 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2512
2513         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2514         if an element is not loaded, load the corresponding attributes
2515         from an external database.
2516         (map_over_uint16_byte_table): Likewise.
2517         (map_over_byte_table): Likewise.
2518         (map_char_table): Modify for `map_over_uint8_byte_table',
2519         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2520         element is not loaded, load the corresponding attributes from an
2521         external database.
2522         (Fput_char_attribute): Change initial values to Qunloaded.
2523
2524         * chartab.h (get_char_id_table): If a character attribute is not
2525         loaded and the attribute value is not found in an external
2526         database, store Qunbound as the attribute value.
2527
2528 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2529
2530         * chartab.c (BT_UINT8_unloaded): New macro.
2531         (UINT8_VALUE_P): Accept Qunloaded.
2532         (UINT8_ENCODE): Likewise.
2533         (UINT8_DECODE): Likewise.
2534         (BT_UINT16_unloaded): New macro.
2535         (UINT16_VALUE_P): Accept Qunloaded.
2536         (UINT16_ENCODE): Likewise.
2537         (UINT16_DECODE): Likewise.
2538         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2539         BT_UINT16_unloaded.
2540         (mark_char_table): Mark `ct->name' in UTF-2000.
2541         (char_table_description): Add `name' in UTF-2000.
2542         (Fmake_char_table): Initialize `ct->name'.
2543         (Fcopy_char_table): Copy `ct->name'.
2544         (Fput_char_attribute): Store value into an external database if
2545         HAVE_DATABASE is defined.
2546
2547         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2548         UTF-2000.
2549         (CHAR_TABLE_NAME): New macro in UTF-2000.
2550         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2551         (get_char_id_table): Try to read an external database if Qunloaded
2552         is stored in a table.
2553
2554         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2555         Qunloaded.
2556
2557 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2558
2559         * database.h: Add EXFUN definitions for Fopen_database,
2560         Fput_database, Fget_database and Fclose_database.
2561
2562         * data.c (Qunloaded): New variable in UTF-2000.
2563
2564         * lisp.h (Qunloaded): New variable in UTF-2000.
2565
2566 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2567
2568         * mule-charset.c (put_char_ccs_code_point): Modify for
2569         `decoding_table_remove_char' and `decoding_table_put_char'.
2570         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2571
2572         * char-ucs.h (decoding_table_remove_char): Change arguments to
2573         hide decoding_table vector.
2574         (decoding_table_put_char): Likewise.
2575
2576 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2577
2578         * mule-charset.c (decoding_table_remove_char): Moved to
2579         char-ucs.h.
2580         (decoding_table_put_char): Likewise.
2581
2582         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2583         from mule-charset.c].
2584         (decoding_table_remove_char): New inline function [moved from
2585         mule-charset.c].
2586         (decoding_table_put_char): Likewise.
2587
2588 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2589
2590         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2591         extension.
2592
2593 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2594
2595         * mule-charset.c (decode_builtin_char): Support mother charsets.
2596
2597 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2598
2599         * mule-charset.c (Q94x94x60): New variable.
2600         (charset_code_point): Support conversion `94x94x60'.
2601         (Fmake_charset): Likewise.
2602         (syms_of_mule_charset): Add new symbol `94x94x60'.
2603
2604         * char-ucs.h (CONVERSION_94x94x60): New macro.
2605
2606 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2607
2608         * mule-charset.c (charset_code_point): Unify code about
2609         `code-offset'.
2610
2611 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2612
2613         * mule-charset.c (charset_code_point): Merge code about builtin
2614         characters into code about mother charsets; don't use
2615         `range_charset_code_point'.
2616         (range_charset_code_point): Deleted.
2617
2618 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2619
2620         * mule-charset.c (Qcode_offset): New variable.
2621         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2622         `max-code'; accept new property `code-offset'.
2623         (syms_of_mule_charset): Add new symbol `code-offset'.
2624
2625 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2626
2627         * mule-charset.c (range_charset_code_point): Fixed.
2628
2629 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2630
2631         * mule-charset.c (decode_builtin_char): Change semantics of
2632         code-offset of coded-charset.
2633         (charset_code_point): Likewise.
2634         (range_charset_code_point): Likewise.
2635         (complex_vars_of_mule_charset): Modify for the change.
2636
2637 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2638
2639         * mule-charset.c (Fencode_char): Reverse arguments.
2640
2641         * mule-charset.c (charset_code_point): Fixed.
2642
2643 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2644
2645         * mule-charset.c (Vcharset_mojikyo): Deleted.
2646         (Vcharset_mojikyo_2022_1): Deleted.
2647         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2648         (Qmin_code): New variable in UTF-2000.
2649         (Qmax_code): Likewise.
2650         (Qmother): Likewise.
2651         (Qconversion): Likewise.
2652         (Q94x60): Likewise.
2653         (Qmojikyo): Deleted.
2654         (Qmojikyo_2022_1): Deleted.
2655         (Qmojikyo_pj_{1..22}): Deleted.
2656         (mark_charset): Mark `cs->mother'.
2657         (charset_description): Add description for `mother'.
2658         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2659         new arguments `mother' and `conversion'; use
2660         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2661         (charset_code_point): Moved from char-ucs.h; support `mother'
2662         charset feature.
2663         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2664         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2665         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2666         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2667         allow 2 as the value of `graphic' in UTF-2000; add new properties
2668         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2669         require `final' in UTF-2000; modify for `make_charset'.
2670         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2671         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2672         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2673         (Fencode_char): New function.
2674         (syms_of_mule_charset): Add new builtin function `encode-char' in
2675         UTF-2000; add new symbols `min-code', `max-code', `mother',
2676         `conversion' and `94x60'; delete symbols `mojikyo',
2677         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2678         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2679         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2680         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2681
2682         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2683         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2684
2685         * char-ucs.h (Vcharset_mojikyo): Deleted.
2686         (Vcharset_mojikyo_2022_1): Deleted.
2687         (LEADING_BYTE_MOJIKYO): Deleted.
2688         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2689         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2690         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2691         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2692         add new member `mother'; add new member `conversion'.
2693         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2694         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2695         (CHARSET_MOTHER): New macro.
2696         (CHARSET_CONVERSION): New macro.
2697         (CONVERSION_IDENTICAL): New macro.
2698         (CONVERSION_94x60): New macro.
2699         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2700         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2701         (XCHARSET_MOTHER): New macro.
2702         (XCHARSET_CONVERSION): New macro.
2703         (MIN_CHAR_MOJIKYO): Deleted.
2704         (MAX_CHAR_MOJIKYO): Deleted.
2705         (DECODE_MOJIKYO_2022): Deleted.
2706         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2707         (charset_code_point): Changed to non-inline function.
2708         (encode_char_1): Use `charset_code_point'.
2709         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2710
2711 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2712
2713         * lread.c (read_compiled_function): Fix prototype.
2714         (read_vector): Likewise.
2715
2716 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2717
2718         * lrecord.h (struct lrecord_header): Delete `older'.
2719         (set_lheader_implementation): Delete code for `older'.
2720         (set_lheader_older_implementation): Deleted.
2721         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2722         (OLDER_RECORD_P): Deleted.
2723         (OLDER_RECORD_HEADER_P): Deleted.
2724         (alloc_older_lcrecord): Deleted.
2725         (alloc_older_lcrecord_type): Deleted.
2726
2727         * alloc.c (all_older_lcrecords): Deleted.
2728         (alloc_older_lcrecord): Deleted.
2729         (disksave_object_finalization_1): Delete code for older objects.
2730         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2731         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2732
2733 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2734
2735         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2736         instead of `make_older_vector'.
2737         (put_char_ccs_code_point): Likewise.
2738         (mark_charset): Mark `cs->decoding_table'.
2739         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2740
2741         * lisp.h (make_older_vector): Deleted.
2742         (make_vector_newer): Deleted.
2743
2744         * config.h.in (HAVE_GGC): Deleted.
2745
2746         * alloc.c (make_older_vector): Deleted.
2747         (make_vector_newer_1): Deleted.
2748         (make_vector_newer): Deleted.
2749
2750 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2751
2752         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2753         (Qideograph_daikanwa_2): New variable.
2754         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2755         (complex_vars_of_mule_charset): Add new coded-charset
2756         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2757         `LEADING_BYTE_DAIKANWA'.
2758
2759         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2760         (LEADING_BYTE_DAIKANWA_1): New macro.
2761         (LEADING_BYTE_DAIKANWA_2): New macro.
2762         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2763
2764 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2765
2766         * mule-charset.c (complex_vars_of_mule_charset): Change
2767         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2768         the second revised version.
2769
2770 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2771
2772         * mule-charset.c (Vcharset_ucs_smp): New variable.
2773         (Vcharset_ucs_sip): New variable.
2774         (Qucs_smp): New variable.
2775         (Qucs_sip): New variable.
2776         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2777         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2778         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2779         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2780         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2781         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2782
2783         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2784         (LEADING_BYTE_UCS_SIP): New macro.
2785         (MIN_CHAR_SMP): New macro.
2786         (MAX_CHAR_SMP): New macro.
2787         (MIN_CHAR_SIP): New macro.
2788         (MAX_CHAR_SIP): New macro.
2789
2790 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2791
2792         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2793         utf-2000.
2794
2795 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2796
2797         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2798         value; don't store value into `encoding_table' of `Lisp_Charset'.
2799         (mark_charset): `encoding_table' was deleted.
2800         (charset_description): Likewise.
2801         (make_charset): Likewise.
2802         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2803         `put_char_ccs_code_point'.
2804
2805         * chartab.h (Fput_char_attribute): New EXFUN.
2806
2807         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2808         is unified with normal symbol space.
2809         (Fget_char_attribute): Likewise.
2810         (Fput_char_attribute): Likewise; behavior of
2811         `put_char_ccs_code_point' is changed.
2812
2813         * char-ucs.h: Include "elhash.h".
2814         (Vchar_attribute_hash_table): New external variable.
2815         (struct Lisp_Charset): Delete `encoding_table'.
2816         (CHARSET_ENCODING_TABLE): New implementation; refer
2817         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2818         `Lisp_Charset'.
2819
2820 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2821
2822         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2823         (cs) == 0.
2824
2825 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2826
2827         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2828         `chinese-big5'.
2829
2830 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2831
2832         * chartab.c (uint8_byte_table_description): New constant.
2833         (uint8-byte-table): Use `uint8_byte_table_description'.
2834         (uint16_byte_table_description): New constant.
2835         (uint16-byte-table): Use `uint16_byte_table_description'.
2836
2837 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2838
2839         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2840         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2841
2842 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2843
2844         * mule-charset.c (Vcharset_ucs_ks): New variable.
2845         (Qucs_ks): New variable.
2846         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2847         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2848
2849         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2850
2851 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2852
2853         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2854         (Fdecode_char): Likewise.
2855
2856         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2857         chartab.h.
2858         (Fdefine_char): Modify for Fdecode_char.
2859         (Ffind_char): Likewise.
2860
2861         * mule-charset.c (Fdecode_char): Add new optional argument
2862         `defined-only'.
2863         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2864
2865 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2866
2867         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2868         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2869         (allocate_coding_system): Initialize initial-charsets of
2870         CODESYS_BIG5 in XEmacs UTF-2000.
2871         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2872         CODESYS_BIG5 in XEmacs UTF-2000.
2873         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2874         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2875
2876         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2877         variables.
2878         (Qideograph_hanziku_{1 .. 12}): Likewise.
2879         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2880         .. 12}'.
2881         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2882         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2883         `ideograph-hanziku-{1 .. 12}'.
2884
2885         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2886         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2887         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2888         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2889         (DECODE_DEFINED_CHAR): New inline function.
2890         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2891
2892 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2893
2894         * mule-charset.c (Vcharset_china3_jef): Renamed from
2895         `Vcharset_japanese_jef_china3'.
2896         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2897         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2898         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2899         (syms_of_mule_charset): Rename `china3-jef' from
2900         `japanese-jef-china3'.
2901         (complex_vars_of_mule_charset): Likewise; rename
2902         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2903
2904         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2905         `LEADING_BYTE_JEF_CHINA3'.
2906         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2907         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2908
2909 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2910
2911         * mule-charset.c (encode_builtin_char_1): Comment out special code
2912         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2913
2914         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2915         (MAX_CHAR_MOJIKYO_0): Comment out.
2916         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2917         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2918         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2919         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2920
2921 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2922
2923         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2924         (Qideograph_cbeta): New variable.
2925         (encode_builtin_char_1): Comment out special code for
2926         coded-charset `mojikyo' and `japanese-jef-china3'.
2927         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2928         (complex_vars_of_mule_charset): Add new coded-charset
2929         `ideograph-cbeta'.
2930
2931         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2932         (MIN_CHAR_CBETA): New macro.
2933         (MAX_CHAR_CBETA): New macro.
2934
2935 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2936
2937         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2938         (LEADING_BYTE_JEF_CHINA3): New macro.
2939         (MIN_CHAR_JEF_CHINA3): New macro.
2940         (MAX_CHAR_JEF_CHINA3): Likewise.
2941         (DECODE_CHAR): Fixed.
2942
2943 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2944
2945         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2946         (Qjapanese_jef_china3): New variable.
2947         (encode_builtin_char_1): Support `japanese-jef-china3'.
2948         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2949         (complex_vars_of_mule_charset): Add new coded-charset
2950         `japanese-jef-china3'.
2951
2952 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2953
2954         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2955         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2956         94^4, 96^3, 96^4, 128^n and 256^n set.
2957         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2958         (map_char_table): Likewise.
2959
2960 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2961
2962         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2963         UTF-2000.
2964
2965 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2966
2967         * chartab.h (get_char_id_table): New inline function.
2968
2969         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2970         function.
2971
2972 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2973
2974         * chartab.h (decode_char_table_range): New prototype in XEmacs
2975         UTF-2000.
2976         (put_char_id_table): New inline function in XEmacs UTF-2000.
2977
2978         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2979         function.
2980         (decode_char_table_range): Delete static declaration in XEmacs
2981         UTF-2000.
2982
2983 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2984
2985         * chartab.c (put_char_id_table): Use `put_char_table'.
2986
2987 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2988
2989         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2990         (map_over_uint16_byte_table): Likewise.
2991         (map_over_byte_table): Likewise.
2992         (map_char_table): Modify for `map_over_uint8_byte_table',
2993         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2994         UTF-2000.
2995
2996 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2997
2998         * chartab.c (struct map_char_table_for_charset_arg): New
2999         structure.
3000         (map_char_table_for_charset_fun): New function.
3001         (map_char_table): Use `map_char_table' for encoding_table of
3002         `range->charset'.
3003
3004 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3005
3006         * chartab.c (map_char_table): Check a character is found in
3007         range->charset instead of non default value is defined in
3008         char-table when range is CHARTAB_RANGE_ROW.
3009
3010 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3011
3012         * chartab.c (map_char_id_table): Deleted.
3013         (Fmap_char_attribute): Use `map_char_table' instead of
3014         `map_char_id_table'.
3015
3016 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3017
3018         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
3019         UTF-2000.
3020         (update_syntax_table): Deleted in XEmacs UTF-2000.
3021
3022         * syntax.c (find_defun_start): Use `syntax_table' instead of
3023         `mirror_syntax_table' in XEmacs UTF-2000.
3024         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
3025         UTF-2000.
3026         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
3027         XEmacs UTF-2000.
3028         (Fmatching_paren): Likewise.
3029         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
3030         in XEmacs UTF-2000.
3031         (find_start_of_comment): Likewise.
3032         (find_end_of_comment): Likewise.
3033         (Fforward_comment): Likewise.
3034         (scan_lists): Likewise.
3035         (char_quoted): Likewise.
3036         (Fbackward_prefix_chars): Likewise.
3037         (scan_sexps_forward): Likewise.
3038         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
3039         (update_syntax_table): Likewise.
3040
3041         * search.c (skip_chars): Use `syntax_table' instead of
3042         `mirror_syntax_table' in XEmacs UTF-2000.
3043         (wordify): Likewise.
3044         (Freplace_match): Likewise.
3045
3046         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
3047         `mirror_syntax_table' in XEmacs UTF-2000.
3048         (WORDCHAR_P_UNSAFE): Likewise.
3049         (re_match_2_internal): Likewise.
3050
3051         * font-lock.c (find_context): Use `buf->syntax_table' instead of
3052         `buf->mirror_syntax_table' in XEmacs UTF-2000.
3053
3054         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
3055         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
3056
3057         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
3058         XEmacs UTF-2000.
3059
3060         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
3061         UTF-2000.
3062         (print_char_table): Print `default_value' in XEmacs UTF-2000.
3063         (char_table_description): Delete `mirror_table' in XEmacs
3064         UTF-2000.
3065         (fill_char_table): Don't call `update_syntax_table' in XEmacs
3066         UTF-2000.
3067         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
3068         (Fcopy_char_table): Likewise.
3069         (put_char_table): Don't call `update_syntax_table' in XEmacs
3070         UTF-2000.
3071
3072         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
3073         `buf->mirror_syntax_table' in XEmacs UTF-2000.
3074         (casify_region_internal): Likewise.
3075
3076         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
3077
3078         * buffer.c (common_init_complex_vars_of_buffer): Don't use
3079         `mirror_syntax_table' in XEmacs UTF-2000.
3080
3081         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
3082         `buf->mirror_syntax_table' in XEmacs UTF-2000.
3083         (Fexpand_abbrev): Likewise.
3084
3085 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3086
3087         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
3088
3089 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3090
3091         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
3092         (map_over_uint16_byte_table): Likewise.
3093         (map_over_byte_table): Likewise.
3094         (get_char_id_table): Refer `cit->default_value'.
3095         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
3096         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
3097         of character-id ranges.
3098         (mark_char_table): Mark `ct->default_value'.
3099         (char_table_description): Add `default_value'.
3100         (fill_char_table): Use `default_value'.
3101         (decode_char_table_range): Decode `nil' as
3102         `CHARTAB_RANGE_DEFAULT'.
3103         (get_char_id_table): Refer `cit->default_value'.
3104         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
3105         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
3106         temporary hack; check value of char-table is bound or not.
3107         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
3108
3109         * chartab.h (struct Lisp_Char_Table): Add new member
3110         `default_value' in XEmacs UTF-2000.
3111         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
3112         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
3113         UTF-2000.
3114
3115 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3116
3117         * chartab.h (Lisp_Char_ID_Table): Deleted.
3118
3119         * chartab.c (char_table_description): Fix typo.
3120         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
3121         `Lisp_Char_ID_Table'.
3122
3123 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3124
3125         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
3126         `CHAR_ID_TABLE_P'.
3127
3128         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
3129         `CHAR_ID_TABLE_P'.
3130
3131         * chartab.h (XCHAR_ID_TABLE): Deleted.
3132         (XSETCHAR_ID_TABLE): Deleted.
3133         (CHAR_ID_TABLE_P): Deleted.
3134
3135         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
3136         `CHAR_ID_TABLE_P'.
3137         (Fget_composite_char): Likewise.
3138         (put_char_table): Likewise.
3139         (add_char_attribute_alist_mapper): Fixed.
3140         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
3141         `CHAR_ID_TABLE_P'.
3142         (Fget_char_attribute): Likewise.
3143         (Fget_char_attribute): Likewise.
3144         (Fmap_char_attribute): Likewise.
3145
3146         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
3147         `CHAR_ID_TABLE_P'.
3148         (encode_char_1): Likewise.
3149
3150 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3151
3152         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
3153         `XCHAR_ID_TABLE'.
3154
3155         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
3156         instead of `XCHAR_ID_TABLE'.
3157         (remove_char_ccs): Likewise.
3158
3159         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
3160         `XCHAR_ID_TABLE'.
3161         (Fget_composite_char): Likewise.
3162         (Fchar_variants): Likewise.
3163         (put_char_table): Likewise.
3164         (add_char_attribute_alist_mapper): Likewise.
3165         (Fchar_attribute_alist): Likewise.
3166         (Fget_char_attribute): Likewise.
3167         (Fput_char_attribute): Likewise.
3168         (Fmap_char_attribute): Likewise.
3169         (Fmap_char_attribute): Likewise.
3170
3171         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
3172         `XCHAR_ID_TABLE'.
3173         (encode_char_1): Likewise.
3174
3175 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3176
3177         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
3178         `Lisp_Char_ID_Table'.
3179         (mark_char_id_table): Deleted.
3180         (print_char_id_table): Likewise.
3181         (char_id_table_equal): Likewise.
3182         (char_id_table_hash): Likewise.
3183         (char_id_table_description): Likewise.
3184         (char_id_table): Likewise.
3185         (make_char_id_table): Use `Fmake_char_table' and
3186         `fill_char_table'.
3187         (get_char_id_table): Use `Lisp_Char_Table' instead of
3188         `Lisp_Char_ID_Table'.
3189         (put_char_id_table): Likewise.
3190         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
3191         `XCHAR_ID_TABLE'.
3192         (Fremove_char_attribute): Likewise.
3193         (syms_of_chartab): Don't define type `char-id-table'.
3194
3195         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
3196         (char_id_table): Likewise.
3197         (GC_CHAR_ID_TABLE_P): Likewise.
3198         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
3199         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
3200         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
3201         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
3202         (get_char_id_table): Use `Lisp_Char_Table' instead of
3203         `Lisp_Char_ID_Table'.
3204         (put_char_id_table_0): Likewise.
3205         (put_char_id_table): Likewise.
3206
3207 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3208
3209         * chartab.h: Lisp_Byte_Table related codes are moved from
3210         chartab.h.
3211
3212         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
3213
3214 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3215
3216         * chartab.h: Don't include "chartab.h".
3217         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
3218         (Lisp_Char_ID_Table): Likewise.
3219         (char_id_table): Likewise.
3220         (XCHAR_ID_TABLE): Likewise.
3221         (XSETCHAR_ID_TABLE): Likewise.
3222         (CHAR_ID_TABLE_P): Likewise.
3223         (GC_CHAR_ID_TABLE_P): Likewise.
3224         (get_char_id_table): Likewise.
3225
3226         * char-ucs.h: Include "chartab.h".
3227         (struct Lisp_Char_ID_Table): Moved to chartab.h.
3228         (Lisp_Char_ID_Table): Likewise.
3229         (char_id_table): Likewise.
3230         (XCHAR_ID_TABLE): Likewise.
3231         (XSETCHAR_ID_TABLE): Likewise.
3232         (CHAR_ID_TABLE_P): Likewise.
3233         (GC_CHAR_ID_TABLE_P): Likewise.
3234         (get_char_id_table): Likewise.
3235
3236 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3237
3238         * chartab.c (copy_uint8_byte_table): New function.
3239         (copy_uint16_byte_table): New function.
3240         (copy_byte_table): New function.
3241         (map_over_uint8_byte_table): Modify to avoid huge numbers of
3242         characters to call.
3243         (map_over_uint16_byte_table): Likewise.
3244         (map_over_byte_table): Likewise.
3245         (get_byte_table): Move prototype to chartab.h.
3246         (put_byte_table): Likewise.
3247         (put_char_id_table_0): Moved to chartab.h.
3248         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
3249         (char_table_entry_equal): Likewise.
3250         (char_table_entry_hash): Likewise.
3251         (char_table_entry_description): Likewise.
3252         (char_table_entry): Likewise.
3253         (make_char_table_entry): Likewise.
3254         (copy_char_table_entry): Likewise.
3255         (get_non_ascii_char_table_value): Likewise.
3256         (map_over_charset_ascii): Likewise.
3257         (map_over_charset_control_1): Likewise.
3258         (map_over_charset_row): Likewise.
3259         (map_over_other_charset): Likewise.
3260         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
3261         (print_char_table): Likewise.
3262         (char_table_equal): Likewise.
3263         (char_table_hash): Likewise.
3264         (char_table_description): Likewise.
3265         (fill_char_table): Likewise.
3266         (Fcopy_char_table): Likewise.
3267         (get_char_table): Likewise.
3268         (Fget_range_char_table): Likewise.
3269         (put_char_table): Likewise.
3270         (map_char_table): Likewise.
3271         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
3272         UTF-2000.
3273
3274 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3275
3276         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
3277         `Vauto_fill_chars' in XEmacs UTF-2000.
3278
3279         * chartab.h (get_byte_table): New prototype [moved from
3280         chartab.c].
3281         (put_byte_table): Likewise [moved from chartab.c].
3282         (put_char_id_table_0): New inline function [moved from chartab.c].
3283         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
3284         (Lisp_Char_Table_Entry): Likewise.
3285         (char_table_entry): Likewise.
3286         (XCHAR_TABLE_ENTRY): Likewise.
3287         (XSETCHAR_TABLE_ENTRY): Likewise.
3288         (CHAR_TABLE_ENTRYP): Likewise.
3289         (CHECK_CHAR_TABLE_ENTRY): Likewise.
3290         (NUM_ASCII_CHARS): Likewise.
3291         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
3292         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
3293
3294 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3295
3296         * chartab.c (get_char_id_table): Change interface.
3297         (put_char_id_table_0): New function.
3298         (put_char_id_table): Change interface; new implementation.
3299         (Fget_composite_char): Modify for interface change of
3300         `get_char_id_table'.
3301         (Fchar_variants): Likewise.
3302         (add_char_attribute_alist_mapper): Likewise.
3303         (Fchar_attribute_alist): Likewise.
3304         (Fget_char_attribute): Likewise.
3305         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
3306         as same as character as the first argument like `put-char-table';
3307         modify for interface change of `put_char_id_table'.
3308         (Fremove_char_attribute): Modify for interface change of
3309         `put_char_id_table'.
3310
3311 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3312
3313         * text-coding.c: Sync up with XEmacs 21.2.41.
3314         (COMPOSE_ADD_CHAR): Modify for interface change of
3315         `get_char_id_table'.
3316
3317         * mule-charset.c (put_char_ccs_code_point): Modify for interface
3318         change of `put_char_id_table'.
3319         (remove_char_ccs): Likewise.
3320
3321         * chartab.h (put_char_id_table): Change interface.
3322
3323         * char-ucs.h (get_char_id_table): Change interface.
3324         (charset_code_point): Modify for interface change of
3325         `get_char_id_table'.
3326         (encode_char_1): Likewise.
3327
3328 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3329
3330         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3331         argument `ccs'.
3332         (map_over_uint16_byte_table): Likewise.
3333         (map_over_byte_table): Likewise.
3334         (map_char_id_table): Add new argument `range' like
3335         `map_char_table'.
3336         (Fmap_char_attribute): Add new argument `range' like
3337         `Fmap_char_table'.
3338
3339 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3340
3341         * chartab.c (map_over_uint8_byte_table): Change interface of
3342         mapping function to use struct chartab_range instead of Emchar.
3343         (map_over_uint16_byte_table): Likewise.
3344         (map_over_byte_table): Likewise.
3345         (map_char_id_table): Likewise.
3346         (struct slow_map_char_id_table_arg): Deleted.
3347         (slow_map_char_id_table_fun): Deleted.
3348         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3349         function `slow_map_char_table_fun' instead of struct
3350         `slow_map_char_id_table_arg' and function
3351         `slow_map_char_id_table_fun'.
3352
3353 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3354
3355         * mule-charset.c: Move char-it-table related codes to chartab.c.
3356         (Vutf_2000_version): Moved to chartab.c.
3357         (Fdefine_char): Likewise.
3358         (Ffind_char): Likewise.
3359         (syms_of_mule_charset): Move types `uint8-byte-table',
3360         `uint16-byte-table', `byte-table' and `char-id-table' to
3361         chartab.c; move functions `char_attribute_list,
3362         `find_char_attribute_table, `char_attribute_alist,
3363         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3364         `map_char_attribute, `define_char, `find_char, `char_variants and
3365         `get_composite_char to chartab.c; move symbols `=>ucs',
3366         `->decomposition', `compat', `isolated', `initial', `medial',
3367         `final', `vertical', `noBreak', `fraction', `super', `sub',
3368         `circle', `square', `wide', `narrow', `small' and `font' to
3369         chartab.c.
3370         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3371         setting codes for `Vcharacter_composition_table' and
3372         `Vcharacter_variant_table' to chartab.c.
3373         (complex_vars_of_mule_charset): Move setting code for
3374         `Vchar_attribute_hash_table' to chartab.c.
3375
3376         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3377         (make_char_id_table): New prototype.
3378         (put_char_id_table): Likewise.
3379         (Fget_char_attribute): Likewise.
3380
3381         * chartab.c: Move char-id-table related code from mule-charset.c.
3382         (Vutf_2000_version): Moved from mule-charset.c.
3383
3384         * char-ucs.h (Qucs): New external variable.
3385         (put_char_ccs_code_point): New prototype.
3386         (remove_char_ccs): Likewise.
3387
3388 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3389
3390         * mule-charset.c (Vcharset_ucs_jis): New variable.
3391         (Qucs_jis): Likewise.
3392         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3393         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3394
3395         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3396
3397 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3398
3399         * mule-charset.c (map_over_uint8_byte_table): New function.
3400         (map_over_uint16_byte_table): Likewise.
3401         (map_over_byte_table): Likewise.
3402         (map_char_id_table): Likewise.
3403         (slow_map_char_id_table_fun): Likewise.
3404         (Fmap_char_attribute): Likewise.
3405         (syms_of_mule_charset): Add new function `map-char-attribute'.
3406
3407 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3408
3409         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3410         (syms_of_mule_charset): Add new function `find-char'.
3411
3412 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3413
3414         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3415         XEmacs UTF-2000.
3416         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3417         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3418         XEmacs UTF-2000.
3419         (complex_vars_of_mule_charset): Add new coded-charset
3420         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3421         `ideograph-gt-pj-*'.
3422
3423         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3424
3425 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3426
3427         * mule-charset.c (encode_builtin_char_1): Purge codes about
3428         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3429         {MIN|MAX}_CHAR_HEBREW.
3430         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3431         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3432
3433         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3434         (MAX_CHAR_GREEK): Purged.
3435         (MIN_CHAR_CYRILLIC): Purged.
3436         (MAX_CHAR_CYRILLIC): Purged.
3437         (MIN_CHAR_HEBREW): Commented out.
3438         (MAX_CHAR_HEBREW): Likewise.
3439
3440 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3441
3442         * mule-charset.c (Qto_ucs): New variable.
3443         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3444         (Fdefine_char): Likewise.
3445         (syms_of_mule_charset): Add new symbol `=>ucs'.
3446
3447 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3448
3449         * mule-charset.c (Fdecode_char): Fixed.
3450
3451 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3452
3453         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3454         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3455         "tcvn5712-1".
3456
3457 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3458
3459         * mule-charset.c (Vcharset_ucs_big5): New variable.
3460         (Qucs_big5): Likewise.
3461         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3462         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3463
3464         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3465
3466 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3467
3468         * mule-charset.c (decode_builtin_char): Check Big5 code range
3469         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3470
3471 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3472
3473         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3474         (Qchinese_gb12345): Likewise.
3475         (Fdecode_builtin_char): Fixed.
3476         (syms_of_mule_charset): Add `chinese-gb12345'.
3477         (complex_vars_of_mule_charset): Add coded-charset
3478         `chinese-gb12345'.
3479
3480         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3481         (LEADING_BYTE_CHINESE_GB12345): New macro.
3482
3483 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3484
3485         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3486         and `latin-viscii-upper' for `latin-viscii'.
3487
3488 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3489
3490         * mule-charset.c (Fdecode_builtin_char): Comment out
3491         regularization code for ISO-IR GR representation.
3492
3493 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3494
3495         * mule-charset.c (decode_builtin_char): New function; renamed from
3496         `make_builtin_char'; return -1 instead of signal.
3497         (Fdecode_builtin_char): Use `decode_builtin_char'.
3498
3499         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3500         `make_builtin_char'.
3501         (DECODE_CHAR): Use `decode_builtin_char' instead of
3502         `make_builtin_char'; use mapping table of `chinese-big5' for
3503         `chinese-big5-{1,2}'.
3504
3505 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3506
3507         * text-coding.c (char_encode_big5): New function.
3508         (char_finish_big5): Likewise.
3509         (reset_encoding_stream): Use `char_encode_big5' and
3510         `char_finish_big5' for CODESYS_BIG5.
3511         (mule_encode): Don't use `encode_coding_big5'.
3512         (encode_coding_big5): Deleted.
3513
3514 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3515
3516         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3517         0x81- in XEmacs UTF-2000.
3518         (detect_coding_big5): Likewise.
3519
3520 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3521
3522         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3523         generate character-id if the CCS property does not have
3524         corresponding predefined character.
3525         (make_builtin_char): Return -1 if corresponding predefined
3526         character is not found.
3527         (Fdecode_char): Return nil if corresponding character is not
3528         found.
3529         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3530         don't map to builtin ucs space.
3531
3532 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3533
3534         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3535         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3536
3537 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3538
3539         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3540         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3541         (Qideograph_gt): Likewise.
3542         (Qideograph_gt_pj_{1..11}): Likewise.
3543         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3544         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3545         `ideograph-gt-pj-11'.
3546         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3547         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3548         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3549
3550         * char-ucs.h (LEADING_BYTE_GT): New macro.
3551         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3552         (MIN_CHAR_GT): Likewise.
3553         (MAX_CHAR_GT): Likewise.
3554
3555 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3556
3557         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3558         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3559
3560         * doprnt.c (unsigned_int_converters): Add `c'.
3561         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3562
3563         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3564         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3565         `MIN_CHAR_MOJIKYO'.
3566         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3567         (MAX_CHAR_MOJIKYO_0): New macro.
3568         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3569
3570 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3571
3572         * mule-charset.c (Fdefine_char): Delete cemented out code.
3573         (encode_builtin_char_1): Modify for new allocation of builtin
3574         Mojikyo characters.
3575
3576         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3577
3578 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3579
3580         * mule-charset.c (Vcharset_ucs_cns): New variable.
3581         (Qucs_cns): New variable.
3582         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3583         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3584
3585 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3586
3587         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3588
3589 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3590
3591         * search.c (search_buffer): Make `charset_base_code' as
3592         character-id >> 6 to eliminate the corresponding last byte in
3593         UTF-8 representation [I'm not sure it is right thing].
3594         (boyer_moore): Likewise.
3595
3596 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3597
3598         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3599         representation in MULE.
3600
3601 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3602
3603         * text-coding.c (Fmake_coding_system): Use
3604         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3605         `EXTERNAL_PROPERTY_LIST_LOOP'.
3606
3607 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3608
3609         * text-coding.c (decode_output_utf8_partial_char): New function.
3610         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3611
3612 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3613
3614         * text-coding.c (decode_coding_utf8): Output original byte
3615         sequence if it is broken; change order of conditions.
3616
3617         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3618         of conditions.
3619
3620         * mb-multibyte.h (BYTE_ASCII_P):
3621         Use bit ops for char-signedness safety.
3622         (BYTE_C0_P): Use bit ops for char-signedness safety.
3623         (BYTE_C1_P): Use bit ops for char-signedness safety.
3624
3625         * character.h: (XCHAR_OR_CHAR_INT):
3626         Always use inline function.
3627         Remove redundant type checking assert() - XINT will abort quite
3628         nicely.
3629
3630 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3631
3632         * text-coding.c: (Fencode_shift_jis_char):
3633         (Fencode_big5_char):
3634         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3635         Replace 0 with '\0' when working with bytes.
3636         Replace initial "(" with "\(" in docstrings.
3637
3638         (Fmake_coding_system):
3639         When type is ccl and value is vector, register it with a proper
3640         symbol.  And checks whether the given ccl program is valid.
3641         (mule_decode): When calling ccl_driver, if src indicates
3642         NULL pointer, set an empty string instead.
3643         (mule_encode): Likewise.
3644
3645         (detect_eol_type):
3646         (detect_coding_sjis):
3647         (decode_coding_sjis):
3648         (detect_coding_big5):
3649         (decode_coding_big5):
3650         (detect_coding_ucs4):
3651         (decode_coding_ucs4):
3652         (detect_coding_utf8):
3653         (decode_coding_utf8):
3654         (detect_coding_iso2022):
3655         (decode_coding_iso2022):
3656         (decode_coding_no_conversion):
3657         (mule_decode):
3658         Make all detecting and decoding functions take an Extbyte * arg.
3659         (text_encode_generic):
3660         (encode_coding_big5):
3661         (encode_coding_no_conversion):
3662         (mule_encode):
3663         Make all encoding functions take a Bufbyte * arg.
3664         Use size_t instead of unsigned int for memory sizes.
3665         Only cast to unsigned char whenever dereferencing Extbyte *.
3666
3667         (struct lrecord_description fcd_description_1): Use countof.
3668         (complex_vars_of_file_coding):
3669         Use countof instead of sizeof.
3670         Use CHECK_NATNUM instead of CHECK_INT.
3671
3672 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3673
3674         * mule-charset.c (Fget_char_attribute): Add new optional argument
3675         `default-value'.
3676         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3677         (remove_char_ccs): Likewise.
3678
3679 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3680
3681         * text-coding.c (char_encode_shift_jis): New implementation in
3682         UTF-2000.
3683         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3684         ...)'.
3685
3686         * mule-charset.c (Vcharset_chinese_big5): New variable in
3687         UTF-2000.
3688         (Qchinese_big5): New variable in UTF-2000.
3689         (BIG5_SAME_ROW): New macro in UTF-2000.
3690         (make_builtin_char): Use builtin characters of
3691         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3692         characters of `Vcharset_chinese_big5'.
3693         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3694         (complex_vars_of_mule_charset): Add new coded-charset
3695         `chinese-big5' in UTF-2000.
3696
3697         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3698         (Vcharset_chinese_big5): New external variable declaration.
3699         (Vcharset_japanese_jisx0208_1990): Likewise.
3700
3701 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3702
3703         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3704         function.
3705         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3706
3707 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3708
3709         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3710         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3711         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3712         `mojikyo-pj-*'.
3713
3714 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3715
3716         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3717
3718 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3719
3720         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3721         to 0.17.
3722
3723 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3724
3725         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3726         for `CHARSET_BY_ATTRIBUTES'.
3727         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3728         `CHARSET_BY_ATTRIBUTES'.
3729
3730         * text-coding.c (struct decoding_stream): Rename member `CH' to
3731         `CPOS'.
3732         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3733         (decode_coding_sjis): Likewise.
3734         (decode_coding_big5): Likewise.
3735         (decode_coding_ucs4): Likewise.
3736         (decode_coding_utf8): Likewise.
3737         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3738         `CHARSET_BY_ATTRIBUTES'.
3739         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3740         `str->counter'; decode 3, 4 bytes sets.
3741         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3742         sets.
3743         (decode_coding_no_conversion): Use `str->cpos' instead of
3744         `str->ch'.
3745
3746         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3747         (Qmojikyo_2022_1): New variable.
3748         (make_charset): Don't use `CHARSET_TYPE_*'.
3749         (range_charset_code_point): Support coded-charset
3750         `mojikyo-2022-1'.
3751         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3752         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3753         `CHARSET_BY_ATTRIBUTES'.
3754         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3755         `CHARSET_BY_ATTRIBUTES'.
3756         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3757         (complex_vars_of_mule_charset): Add new coded-charset
3758         `mojikyo-2022-1'.
3759
3760         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3761         interface; changed to inline function.
3762
3763         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3764         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3765         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3766         (CHARSET_TYPE_94): Deleted.
3767         (CHARSET_TYPE_94X94): Deleted.
3768         (CHARSET_TYPE_96): Deleted.
3769         (CHARSET_TYPE_96X96): Deleted.
3770         (CHARSET_TYPE_128): Deleted.
3771         (CHARSET_TYPE_128X128): Deleted.
3772         (CHARSET_TYPE_256): Deleted.
3773         (CHARSET_TYPE_256X256): Deleted.
3774         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3775         to inline function.
3776         (DECODE_MOJIKYO_2022): New inline function.
3777         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3778         `Vcharset_mojikyo_2022_1'.
3779
3780 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3781
3782         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3783         instead of `EQ'.
3784         (put_byte_table): Likewise.
3785         (char_id_table_equal): Use `get_byte_table' [new implementation].
3786
3787 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3788
3789         * mule-charset.c: Include <limits.h> in UTF-2000.
3790         (BT_UINT8_MIN): New macro in UTF-2000.
3791         (BT_UINT8_MAX): New macro in UTF-2000.
3792         (BT_UINT8_t): New macro in UTF-2000.
3793         (BT_UINT8_nil): New macro in UTF-2000.
3794         (BT_UINT8_unbound): New macro in UTF-2000.
3795         (INT_UINT8_P): New inline function in UTF-2000.
3796         (UINT8_VALUE_P): New inline function in UTF-2000.
3797         (UINT8_ENCODE): New inline function in UTF-2000.
3798         (UINT8_DECODE): New inline function in UTF-2000.
3799         (mark_uint8_byte_table): New function in UTF-2000.
3800         (print_uint8_byte_table): New function in UTF-2000.
3801         (uint8_byte_table_equal): New function in UTF-2000.
3802         (uint8_byte_table_hash): New function in UTF-2000.
3803         (make_uint8_byte_table): New function in UTF-2000.
3804         (uint8_byte_table_same_value_p): New function in UTF-2000.
3805         (BT_UINT16_MIN): New macro in UTF-2000.
3806         (BT_UINT16_MAX): New macro in UTF-2000.
3807         (BT_UINT16_t): New macro in UTF-2000.
3808         (BT_UINT16_nil): New macro in UTF-2000.
3809         (BT_UINT16_unbound): New macro in UTF-2000.
3810         (INT_UINT16_P): New inline function in UTF-2000.
3811         (UINT16_VALUE_P): New inline function in UTF-2000.
3812         (UINT16_ENCODE): New inline function in UTF-2000.
3813         (UINT16_DECODE): New inline function in UTF-2000.
3814         (UINT8_TO_UINT16): New inline function in UTF-2000.
3815         (mark_uint16_byte_table): New function in UTF-2000.
3816         (print_uint16_byte_table): New function in UTF-2000.
3817         (uint16_byte_table_equal): New function in UTF-2000.
3818         (uint16_byte_table_hash): New function in UTF-2000.
3819         (make_uint16_byte_table): New function in UTF-2000.
3820         (uint16_byte_table_same_value_p): New function in UTF-2000.
3821         (print_byte_table): New function in UTF-2000.
3822         (byte-table): Use `print_byte_table' as printer.
3823         (make_byte_table): Delete second argument `older'.
3824         (byte_table_same_value_p): New function in UTF-2000.
3825         (copy_byte_table): Deleted.
3826         (get_byte_table): New function in UTF-2000.
3827         (put_byte_table): New function in UTF-2000.
3828         (print_char_id_table): New function in UTF-2000.
3829         (char-id-table): Use `print_char_id_table' as printer.
3830         (make_char_id_table): Delete second argument `older'.
3831         (get_char_id_table): Use `get_byte_table [new implementation].
3832         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3833         implementation].
3834         (Ffind_char_attribute_table): New function in UTF-2000.
3835         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3836         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3837         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3838         (syms_of_mule_charset): Add new function
3839         `find-char-attribute-table' in UTF-2000.
3840
3841         * lrecord.h (enum lrecord_type): Add
3842         `lrecord_type_uint16_byte_table' and
3843         `lrecord_type_uint8_byte_table'.
3844
3845         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3846         (Lisp_Uint8_Byte_Table): New type.
3847         (XUINT8_BYTE_TABLE): New macro.
3848         (XSETUINT8_BYTE_TABLE): New macro.
3849         (UINT8_BYTE_TABLE_P): New macro.
3850         (GC_UINT8_BYTE_TABLE_P): New macro.
3851         (struct Lisp_Uint16_Byte_Table): New structure.
3852         (Lisp_Uint16_Byte_Table): New type.
3853         (XUINT16_BYTE_TABLE): New macro.
3854         (XSETUINT16_BYTE_TABLE): New macro.
3855         (UINT16_BYTE_TABLE_P): New macro.
3856         (GC_UINT16_BYTE_TABLE_P): New macro.
3857
3858 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3859
3860         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3861         (Vcharacter_ideographic_strokes_table): Deleted.
3862         (Vcharacter_total_strokes_table): Deleted.
3863         (Vcharacter_morohashi_daikanwa_table): Deleted.
3864         (Vcharacter_decomposition_table): Deleted.
3865         (Qname): Deleted because it is duplicated.
3866         (Qideographic_radical): Deleted.
3867         (Qideographic_strokes): Deleted.
3868         (Qtotal_strokes): Deleted.
3869         (Qmorohashi_daikanwa): Deleted.
3870         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3871         `ideographic-radical', `ideographic-strokes', `total-strokes',
3872         `morohashi-daikanwa' and `->decomposition'.
3873         (Fget_char_attribute): Likewise.
3874         (Fput_char_attribute): Likewise; use `make-vector' instead of
3875         `make_older_vector' for `->decomposition' value.
3876         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3877         `ideograph-daikanwa'.
3878         (syms_of_mule_charset): Delete builtin symbols `name',
3879         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3880         `morohashi-daikanwa'.
3881         (vars_of_mule_charset): Don't setup
3882         `Vcharacter_ideographic_radical_table',
3883         `Vcharacter_ideographic_strokes_table',
3884         `Vcharacter_total_strokes_table',
3885         `Vcharacter_morohashi_daikanwa_table' and
3886         `Vcharacter_decomposition_table'.
3887
3888 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3889
3890         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3891         `make_older_vector', `make_vector_newer_1' and
3892         `make_vector_newer'.
3893
3894         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3895         `make_older_vector' and `make_vector_newer'.
3896
3897         * config.h.in (HAVE_GGC): New macro.
3898
3899 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3900
3901         * mule-charset.c (struct char_attribute_list_closure): New
3902         structure in UTF-2000.
3903         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3904         (Fchar_attribute_list): Likewise.
3905         (Fset_charset_mapping_table): Use `make_vector_newer'.
3906         (Fdecode_builtin_char): New function in UTF-2000.
3907         (syms_of_mule_charset): Add new function `char-attribute-list' and
3908         `decode-builtin-char' in UTF-2000.
3909
3910         * lisp.h (make_vector_newer): New prototype.
3911
3912         * alloc.c (make_vector_newer_1): New function.
3913         (make_vector_newer): New function.
3914
3915 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3916
3917         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3918         50100)'.
3919
3920 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3921
3922         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3923         (Vcharacter_attribute_table): Deleted.
3924         (Vcharacter_name_table): Deleted.
3925         (put_char_attribute): Deleted.
3926         (remove_char_attribute): Deleted.
3927         (struct char_attribute_alist_closure): New structure.
3928         (add_char_attribute_alist_mapper): New function.
3929         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3930         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3931         (Fget_char_attribute): Likewise.
3932         (Fput_char_attribute): Likewise.
3933         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3934         of `remove_char_attribute'.
3935         (Fdefine_char): Return character.
3936         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3937         and `Vcharacter_name_table'.
3938         (complex_vars_of_mule_charset): Likewise
3939         `Vchar_attribute_hash_table'.
3940
3941 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3942
3943         * character.h (CHARC_CHARSET): New macro.
3944         (CHARC_CHARSET_ID): New macro.
3945         (CHARC_CODE_POINT): New macro.
3946         (CHARC_COLUMNS): New macro.
3947         (CHARC_TO_CHAR): New inline function.
3948         (CHARC_EQ): New inline function.
3949         (CHARC_ASCII_EQ): New inline function.
3950         (CHARC_IS_SPACE): New inline function.
3951         (ASCII_TO_CHARC): New inline function.
3952
3953         * char-ucs.h (encode_char_2): Deleted.
3954         (ENCODE_CHAR): Use `encode_char_1' again.
3955         (breakup_char_1): Likewise.
3956         (CHAR_TO_CHARC): New inline function.
3957
3958         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3959
3960 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3961
3962         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3963         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3964         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3965         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3966         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3967         `CHARC_IS_SPACE'.
3968         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3969
3970         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3971         `CHARC_CODE_POINT'.
3972         (x_output_display_block): Use `CHARC_CHARSET' and
3973         `CHARC_ASCII_EQ'.
3974
3975         * redisplay-tty.c (tty_output_display_block): Use
3976         `CHARC_ASCII_EQ'.
3977         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3978
3979         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3980
3981         * insdel.c (find_charsets_in_charc_string): Use
3982         `CHARC_CHARSET_ID'.
3983         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3984         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3985         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3986         (convert_charc_string_into_malloced_string): Likewise.
3987
3988 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3989
3990         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3991         instead of <Emchar_dynarr *> for buf; use
3992         `convert_bufbyte_string_into_charc_dynarr' instead of
3993         `convert_bufbyte_string_into_emchar_dynarr'; use
3994         `find_charsets_in_charc_string' instead of
3995         `find_charsets_in_emchar_string'.
3996
3997         * redisplay.h:
3998         - Include "character.h".
3999         (struct rune): New member `cglyph'; delete member `chr'.
4000
4001         * redisplay.c (redisplay_text_width_charc_string): New function;
4002         delete `redisplay_text_width_emchar_string'.
4003         (rtw_charc_dynarr): New variable; renamed from
4004         `rtw_emchar_dynarr'.
4005         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
4006         `rtw_emchar_dynarr'; use
4007         `convert_bufbyte_string_into_charc_dynarr' instead of
4008         `convert_bufbyte_string_into_emchar_dynarr'; use
4009         `redisplay_text_width_charc_string' instead of
4010         `redisplay_text_width_emchar_string'.
4011         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
4012         instead of `rtw_emchar_dynarr'; use
4013         `convert_bufbyte_string_into_charc_dynarr' instead of
4014         `convert_bufbyte_string_into_emchar_dynarr'.
4015         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
4016         `redisplay_text_width_charc_string' instead of
4017         `redisplay_text_width_emchar_string'.
4018         (create_text_block): Modify for <struct rune> change.
4019         (generate_formatted_string_db): Likewise.
4020         (create_string_text_block): Likewise.
4021         (pixel_to_glyph_translation): Likewise.
4022
4023         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
4024         instead of <const Emchar *>.
4025         (x_text_width): Likewise.
4026         (x_output_display_block): Use <Charc_dynarr *> instead
4027         <Emchar_dynarr *>; modify for <structure rune> change.
4028         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
4029         *>.
4030
4031         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
4032         <const Emchar *>; use `charc_string_displayed_columns' instead of
4033         `emchar_string_displayed_columns'.
4034         (tty_output_display_block): Use <Charc_dynarr *> instead of
4035         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
4036         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
4037         (tty_output_charc_dynarr_dynarr): New variable; renamed from
4038         `tty_output_emchar_dynarr_dynarr'.
4039         (tty_output_charc_dynarr): New function; delete
4040         `tty_output_charc_dynarr'.
4041
4042         * redisplay-output.c (compare_runes): Modify for `struct rune'.
4043         (redisplay_output_layout): Use <Charc_dynarr *> instead of
4044         <Emchar_dynarr *> for buf; use
4045         `convert_bufbyte_string_into_charc_dynarr' instead of
4046         `convert_bufbyte_string_into_emchar_dynarr'.
4047
4048         * frame.c (title_string_charc_dynarr): New variable; renamed from
4049         `title_string_emchar_dynarr'.
4050         (generate_title_string): Use `title_string_charc_dynarr' instead
4051         of `title_string_emchar_dynarr'; use
4052         `convert_charc_string_into_malloced_string' instead of
4053         `convert_emchar_string_into_malloced_string'.
4054         (init_frame): Use `title_string_charc_dynarr' instead of
4055         `title_string_emchar_dynarr'.
4056
4057         * console.h:
4058         - Include "character.h".
4059         (struct console_methods): Use <const Charc *> instead of <const
4060         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
4061         <Emchar_dynarr *> in output_string_method.
4062
4063         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
4064         <Emchar_dynarr *>.
4065
4066         * console-stream.c (stream_text_width): Use <const Charc *>
4067         instead of <const Emchar *>.
4068
4069         * character.h (Charc_dynarr): New type.
4070
4071         * char-ucs.h (structure Charc): New structure; define new type
4072         `Charc'.
4073
4074         * char-lb.h (DECODE_CHAR): New inline function.
4075         (encode_char_1): New inline function.
4076         (ENCODE_CHAR): New macro.
4077         (structure Charc): New structure; define new type `Charc'.
4078
4079         * char-1byte.h (Vcharset_control_1): New macro.
4080         (Vcharset_latin_iso8859_1): New macro.
4081         (DECODE_CHAR): New inline function.
4082         (encode_char_1): New inline function.
4083         (ENCODE_CHAR): New macro.
4084         (structure Charc): New structure; define new type `Charc'.
4085
4086         * insdel.c (find_charsets_in_charc_string): New function; delete
4087         `find_charsets_in_emchar_string'.
4088         (charc_string_displayed_columns): New function; delete
4089         `emchar_string_displayed_columns'.
4090         (convert_bufbyte_string_into_charc_dynarr): New function; delete
4091         `convert_bufbyte_string_into_emchar_dynarr'.
4092         (convert_charc_string_into_bufbyte_dynarr): New function; delete
4093         `convert_charc_string_into_bufbyte_dynarr'.
4094         (convert_charc_string_into_malloced_string): New function; delete
4095         `convert_charc_string_into_malloced_string'.
4096
4097         * buffer.h (find_charsets_in_charc_string): New prototype; delete
4098         `find_charsets_in_emchar_string'.
4099         (charc_string_displayed_columns): New prototype; delete
4100         `emchar_string_displayed_columns'.
4101         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
4102         `convert_charc_string_into_bufbyte_dynarr'.
4103         (convert_charc_string_into_malloced_string): New prototype; delete
4104         `convert_charc_string_into_malloced_string'.
4105
4106 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4107
4108         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
4109
4110 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4111
4112         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
4113
4114         * char-ucs.h: Use <short> for <Charset_ID>.
4115
4116         * mule-charset.h, char-1byte.h: Use <unsigned char> for
4117         <Charset_ID>.
4118
4119 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4120
4121         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4122         to 0.16.
4123
4124 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4125
4126         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
4127         variable.
4128         (Qmorohashi_daikanwa): New variable.
4129         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
4130         for `morohashi-daikanwa' attribute.
4131         (Fget_char_attribute): Likewise.
4132         (Fput_char_attribute): Likewise.
4133         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
4134         has the same value of `ideograph-daikanwa'.
4135         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
4136         (vars_of_mule_charset): Setup
4137         `Vcharacter_morohashi_daikanwa_table'.
4138
4139 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4140
4141         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
4142         attributes.
4143         (add_charset_to_list_mapper): Add `key' instead of
4144         `XCHARSET_NAME (value)' to return aliases.
4145
4146 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4147
4148         * mule-charset.c (Vcharacter_ideographic_radical_table): New
4149         variable.
4150         (Vcharacter_ideographic_strokes_table): New variable.
4151         (Qideographic_radical): New variable.
4152         (Qideographic_strokes): New variable.
4153         (Fchar_attribute_alist): Use
4154         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
4155         attribute; use `Vcharacter_ideographic_strokes_table' for
4156         `ideographic-strokes' attribute.
4157         (Fget_char_attribute): Likewise.
4158         (Fput_char_attribute): Likewise.
4159         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
4160         `ideographic-strokes'.
4161         (vars_of_mule_charset): Setup
4162         `Vcharacter_ideographic_radical_table' and
4163         `Vcharacter_ideographic_strokes_table'.
4164
4165 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4166
4167         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
4168         (Qtotal_strokes): New variable.
4169         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
4170         `total-strokes' attribute.
4171         (Fget_char_attribute): Likewise.
4172         (Fput_char_attribute): Likewise.
4173         (syms_of_mule_charset): Add new symbol `total-strokes'.
4174         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
4175
4176 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4177
4178         * mule-charset.c (Vcharacter_decomposition_table): New variable.
4179         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
4180         are found.
4181         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
4182         `->decomposition' attribute.
4183         (Fput_char_attribute): Likewise.
4184         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
4185
4186 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4187
4188         * mule-charset.c (decoding_table_check_elements): New function.
4189         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
4190
4191 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4192
4193         * mule-charset.c (Fset_charset_mapping_table): Use
4194         `put_char_ccs_code_point'.
4195
4196 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4197
4198         * mule-charset.c (decoding_table_put_char): New inline function.
4199         (put_char_ccs_code_point): Use `decoding_table_put_char'.
4200
4201 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4202
4203         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
4204         (XCHARSET_BYTE_SIZE): New macro.
4205         (decoding_table_remove_char): New inline function.
4206         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
4207         `decoding_table_remove_char'.
4208         (remove_char_ccs): Use `decoding_table_remove_char'.
4209         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
4210
4211 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4212
4213         * mule-charset.c (Vcharacter_name_table): New variable.
4214         (Qname): New variable.
4215         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
4216         attribute.
4217         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
4218         `Vcharacter_name_table' for `name' attribute.
4219         (Fremove_char_attribute): Use function `remove_char_ccs'.
4220         (put_char_ccs_code_point): New function.
4221         (remove_char_ccs): New function.
4222         (syms_of_mule_charset): Add new symbol `name'.
4223         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
4224
4225 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4226
4227         * mule-charset.c (make_byte_table): Add new argument `older'.
4228         (make_char_id_table): Likewise.
4229         (copy_char_id_table): Comment out because it is not used.
4230         (put_char_id_table): Modify for `make_byte_table'.
4231         (Fput_char_attribute): Make encoding_table as older object;
4232         inherit older bit of `Vcharacter_composition_table'.
4233         (mark_charset): Don't mark `cs->encoding_table'.
4234         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
4235         normal object; make `Vcharacter_composition_table' as an older
4236         object; delete staticpro for `Vcharacter_composition_table'; make
4237         `Vcharacter_variant_table' as a normal object.
4238
4239         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
4240         (mark_object): Don't check older object in UTF-2000.
4241
4242         * lrecord.h (struct lrecord_header): Add new member `older' in
4243         UTF-2000.
4244         (set_lheader_implementation): Setup `SLI_header->older' in
4245         UTF-2000.
4246         (set_lheader_older_implementation): New macro in UTF-2000.
4247         (OLDER_RECORD_P): New macro in UTF-2000.
4248         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
4249         (alloc_older_lcrecord): New prototype in UTF-2000.
4250         (alloc_older_lcrecord_type): New macro in UTF-2000.
4251
4252 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4253
4254         * mule-charset.c (byte_table_description): Use
4255         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
4256         (char_id_table_description): Delete bogus `, 1'.
4257         (Fget_char_attribute): Refer encoding_table of each coded-charset
4258         to get value of coded-charset attribute of a character.
4259         (Fput_char_attribute): Use `make_older_vector' instead of
4260         `make_vector'; use encoding_table of each coded-charset to store
4261         value of coded-charset attribute of a character.
4262         (Fremove_char_attribute): Use encoding_table of each coded-charset
4263         to store value of coded-charset attribute of a character.
4264         (mark_charset): Mark `cs->encoding_table'; don't mark
4265         `cs->decoding_table'.
4266         (charset_description): Add description of new member
4267         `encoding_table'.
4268         (make_charset): Initialize `encoding_table'.
4269
4270         * char-ucs.h (struct Lisp_Charset): Add new member
4271         `encoding_table'.
4272         (CHARSET_ENCODING_TABLE): New macro.
4273         (XCHARSET_ENCODING_TABLE): New macro.
4274         (charset_code_point): New implementation.
4275         (encode_char_1): Likewise.
4276
4277         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
4278         (disksave_object_finalization_1): Call finalizers of
4279         `all_older_lcrecords' in UTF-2000.
4280         (make_older_vector): New function in UTF-2000.
4281         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
4282         UTF-2000.
4283
4284         * lisp.h (make_older_vector): New prototype in UTF-2000.
4285
4286 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4287
4288         * lrecord.h (enum lrecord_type): Rename
4289         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
4290
4291         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
4292         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
4293         `get_char_code_table'.
4294
4295         * mule-charset.c (mark_char_id_table): Renamed from
4296         `mark_char_code_table'.
4297         (char_id_table_equal): Renamed from `char_code_table_equal'.
4298         (char_id_table_hash): Renamed from `char_code_table_hash'.
4299         (make_char_id_table): Renamed from `make_char_code_table'.
4300         (copy_char_id_table): Renamed from `copy_char_code_table'.
4301         (get_char_id_table): Renamed from `get_char_code_table'.
4302         (put_char_id_table): Renamed from `put_char_code_table'.
4303         (to_char_id): Renamed from `to_char_code'.
4304
4305         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
4306         `Lisp_Char_Code_Table'.
4307         (char_id_table): Renamed from `char_code_table'.
4308         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
4309         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
4310         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
4311         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
4312         (get_char_id_table): Renamed from `get_char_code_table'.
4313
4314 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4315
4316         * lrecord.h (enum lrecord_type): Rename
4317         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
4318
4319         * mule-charset.c (mark_byte_table): Renamed from
4320         `mark_char_byte_table'.
4321         (byte_table_equal): Renamed from `char_byte_table_equal'.
4322         (byte_table_hash): Renamed from `byte_table_hash'.
4323         (make_byte_table): Renamed from `make_byte_table'.
4324         (copy_byte_table): Renamed from `copy_char_byte_table'.
4325
4326         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4327         `Lisp_Char_Byte_Table'.
4328         (byte_table): Renamed from `char_byte_table'.
4329         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4330         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4331         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4332         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4333
4334 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4335
4336         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4337         (dfc_convert_to_internal_format): Likewise.
4338         
4339         * text-coding.c (Fcoding_system_canonical_name_p): New function.
4340         * text-coding.c (Fcoding_system_alias_p): New function.
4341         * text-coding.c (Fcoding_system_aliasee): New function.
4342         * text-coding.c (append_suffix_to_symbol): New function.
4343         * text-coding.c (dangling_coding_system_alias_p): New function.
4344         * text-coding.c (Ffind_coding_system):
4345         * text-coding.c (Fcopy_coding_system):
4346         * text-coding.c (encode_coding_no_conversion):
4347         * text-coding.c (syms_of_file_coding):
4348         * text-coding.c (vars_of_file_coding):
4349         Rewrite coding system alias code.
4350         Allow nested aliases, like symbolic links.
4351         Allow redefinition of coding system aliases.
4352         Prevent existence of dangling coding system aliases.
4353         Eliminate convert_to_external_format.
4354         Eliminate convert_to_internal_format.
4355         
4356         * text-coding.c: Change enum eol_type to eol_type_t.
4357
4358 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4359
4360         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4361         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4362
4363         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4364         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4365
4366 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4367
4368         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4369         `ideograph-daikanwa'.
4370
4371         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4372         (Vcharset_ucs_bmp): Likewise.
4373         (Vcharset_mojikyo): Add new extern variable definition.
4374         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4375         (Vcharset_latin_iso8859_3): Likewise.
4376         (Vcharset_latin_iso8859_4): Likewise.
4377         (Vcharset_latin_iso8859_9): Likewise.
4378         (Vcharset_latin_viscii_lower): Likewise.
4379         (Vcharset_latin_viscii_upper): Likewise.
4380         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4381         `mojikyo' code-point is used to decode.
4382         (encode_char_2): New function [to convert `mojikyo' code-point to
4383         Mojikyo font encoding].
4384         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4385         (breakup_char_1): Likewise.
4386         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4387
4388 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4389
4390         * text-coding.c (Fmake_coding_system): Add document about
4391         `disable-composition' property.
4392
4393 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4394
4395         * text-coding.c (Qdisable_composition): New variable; delete
4396         `Qcomposite'.
4397         (Fmake_coding_system): Add new property `disable-composite';
4398         delete property `composite'.
4399         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4400         instead of `!CODING_SYSTEM_COMPOSITE'.
4401         (syms_of_file_coding): Add new symbol `disable-composition';
4402         delete symbol `composite'.
4403
4404         * file-coding.h (struct Lisp_Coding_System): Add
4405         `disable_composition'; delete `enable_composition'.
4406         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4407         `CODING_SYSTEM_COMPOSITE'.
4408         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4409         `XCODING_SYSTEM_COMPOSITE'.
4410
4411 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4412
4413         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4414         to 0.15.
4415
4416 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4417
4418         * text-coding.c (Qcomposite): New variable.
4419         (Fmake_coding_system): Add new property `composite'.
4420         (struct decoding_stream): Add `combined_char_count',
4421         `combined_chars' and `combining_table' in UTF-2000.
4422         (COMPOSE_FLUSH_CHARS): New macro.
4423         (COMPOSE_ADD_CHAR): New macro.
4424         (reset_decoding_stream): Reset `str->combined_char_count' and
4425         `str->combining_table' in UTF-2000.
4426         (decode_coding_iso2022): Modify for character-decomposition.
4427         (syms_of_file_coding): Add new symbol `composite'.
4428
4429 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4430
4431         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4432         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4433         of `Vcharacter_composition_table' if `->decomposition' property
4434         has only 1 element.
4435         (Qlatin_tcvn5712): New variable.
4436         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4437         (complex_vars_of_mule_charset): Add new coded-charset
4438         `latin-tcvn5712'.
4439
4440         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4441
4442 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4443
4444         * file-coding.h (struct Lisp_Coding_System): Add
4445         `enable_composition'.
4446         (CODING_SYSTEM_COMPOSITE): New macro.
4447         (XCODING_SYSTEM_COMPOSITE): New macro.
4448
4449 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4450
4451         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4452
4453 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4454
4455         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4456         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4457
4458 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4459
4460         * mule-charset.c (Vcharset_mojikyo): New variable.
4461         (Fdefine_char): Don't use coded-charset which does not have
4462         non-builtin character range to allocate character-id.
4463         (Qmojikyo): New variable.
4464         (syms_of_mule_charset): Add new symbol `mojikyo'.
4465         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4466
4467         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4468         (LEADING_BYTE_MOJIKYO): New macro.
4469         (MIN_CHAR_MOJIKYO): New macro.
4470         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4471         (MAX_CHAR_MOJIKYO): New macro.
4472
4473 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4474
4475         * mule-charset.c (remove_char_attribute): Fixed.
4476
4477 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4478
4479         * mule-charset.c (remove_char_attribute): New function.
4480         (Fremove_char_attribute): New function.
4481         (encode_builtin_char_1): Comment out builtin-support for
4482         greek-iso8859-7 and cyrillic-iso8859-5.
4483         (Fdecode_char): Check `code' is an integer.
4484         (syms_of_mule_charset): Add `remove-char-attribute'.
4485         (MIN_CHAR_GREEK): Deleted.
4486         (MAX_CHAR_GREEK): Likewise.
4487         (MIN_CHAR_CYRILLIC): Likewise.
4488         (MAX_CHAR_CYRILLIC): Likewise.
4489         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4490         MAX_CHAR_GREEK for `greek-iso8859-7'.
4491
4492         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4493         (MAX_CHAR_GREEK): Likewise.
4494         (MIN_CHAR_CYRILLIC): Likewise.
4495         (MAX_CHAR_CYRILLIC): Likewise.
4496
4497 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4498
4499         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4500         format is used without `ucs' property.
4501         (Fdecode_char): Fix problem with GR representation.
4502         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4503         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4504
4505 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4506
4507         * mule-charset.c (make_builtin_char): New function.
4508         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4509         (Fset_charset_mapping_table): Modify for new representation of
4510         code-point.
4511         (Fdecode_char): New function.
4512         (syms_of_mule_charset): Add new builtin function `decode-char' in
4513         UTF-2000.
4514
4515         * char-ucs.h (make_builtin_char): New prototype.
4516         (DECODE_CHAR): New inline function.
4517         (MAKE_CHAR): Use `DECODE_CHAR'.
4518
4519 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4520
4521         * text-coding.c (parse_charset_conversion_specs): Use
4522         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4523         `XCHARSET_TYPE'.
4524         (iso2022_designate): Likewise.
4525
4526         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4527         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4528
4529         * mule-charset.c (Vcharset_ucs): New variable.
4530         (print_charset): Change design; use `CHARSET_CHARS' and
4531         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4532         (make_charset): Change signature to specify `chars' and
4533         `dimension' instead of `type'.
4534         (range_charset_code_point): Modify for 256^n-set.
4535         (encode_builtin_char_1): Encode as `ucs' in default.
4536         (Fmake_charset): Modify for `make_charset'.
4537         (Fmake_reverse_direction_charset): Likewise.
4538         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4539         UTF-2000.
4540         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4541         for `make_charset'.
4542
4543         * char-ucs.h (Vcharset_ucs): New variable.
4544         (LEADING_BYTE_UCS): New macro.
4545         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4546         and `chars' to `unsigned short' from `unsigned int'.
4547         (CHARSET_TYPE): Deleted.
4548         (XCHARSET_TYPE): Deleted.
4549
4550 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4551
4552         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4553
4554         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4555         (ENCODE_CHAR): New macro.
4556
4557 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4558
4559         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4560         to 0.14 (Kawachi-Katakami).
4561
4562 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4563
4564         * text-coding.c (char_encode_shift_jis): Modify for
4565         `charset_code_point'.
4566         (char_encode_iso2022): Likewise.
4567
4568         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4569         (integer) instead of list of <Lisp_Object>s (integers) as the
4570         format of code-point of a coded-charset.
4571         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4572         (encode_builtin_char_1): New function; delete
4573         `split_builtin_char'.
4574         (charset_code_point): Return <int> instead of <Lisp_Object>.
4575         (Fsplit_char): Don't use `SPLIT_CHAR'.
4576
4577         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4578         prototype for `split_builtin_char'.
4579         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4580         (charset_code_point): Likewise.
4581         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4582         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4583
4584 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4585
4586         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4587         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4588
4589 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4590
4591         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4592
4593         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4594         (MAX_CHAR_OBS_94x94): Deleted.
4595
4596 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4597
4598         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4599
4600         * char-ucs.h (MAX_CHAR_BMP): New macro.
4601
4602 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4603
4604         * text-coding.c: Sync with r21-2-24.
4605
4606 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4607
4608         * file-coding.c: Modify for UTF-2000.
4609
4610 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4611
4612         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4613         to 0.13 (Takaida).
4614
4615 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4616
4617         * mule-charset.c (split_builtin_char): Delete builtin support for
4618         `katakana-jisx0201'.
4619         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4620         BMP area in builtin representation.
4621
4622         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4623         `Vcharset_katakana_jisx0201'.
4624
4625 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4626
4627         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4628         (Qisolated): New variable.
4629         (Qinitial): New variable.
4630         (Qmedial): New variable.
4631         (Qfinal): New variable.
4632         (Qvertical): New variable.
4633         (Qsmall): New variable.
4634         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4635         `Qvertical' and `Qsmall'.
4636         (Qmojikyo_pj_[1 .. 21]): New variable.
4637         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4638         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4639         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4640         .. 21]'.
4641
4642 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4643
4644         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4645         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4646         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4647
4648 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4649
4650         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4651         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4652         BMP.
4653         (Qjapanese_jisx0208_1990): New variable.
4654         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4655         (complex_vars_of_mule_charset): Add new coded-charset
4656         `japanese-jisx0208-1990'.
4657
4658         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4659         (MIN_CHAR_JIS_X0208_1990): New macro.
4660         (MAX_CHAR_JIS_X0208_1990): New macro.
4661
4662 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4663
4664         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4665         coded-charset is not found.
4666
4667 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4668
4669         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4670         (Fdefine_char): Use `Fmake_char'.
4671
4672 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4673
4674         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4675         (Vcharset_hiragana_jisx0208): Deleted.
4676         (Vcharset_katakana_jisx0208): Deleted.
4677         (Qideograph_daikanwa): New variable.
4678         (Qhiragana_jisx0208): Deleted.
4679         (Qkatakana_jisx0208): Deleted.
4680         (split_builtin_char): Split `ideograph-daikanwa'.
4681         (Fsplit_char): New implementation for UTF-2000.
4682         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4683         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4684         (complex_vars_of_mule_charset): Add new coded-charset
4685         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4686         `katakana-jisx0208'.
4687
4688         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4689         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4690         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4691         (MIN_CHAR_DAIKANWA): New macro.
4692         (MAX_CHAR_DAIKANWA): New macro.
4693
4694 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4695
4696         * data.c (Fstring_to_number): Don't recognize floating point if
4697         base is not 10.
4698
4699 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4700
4701         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4702
4703 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4704
4705         * mule-charset.c (Qsquare): New variable.
4706         (to_char_code): Add `Qsquare'.
4707         (syms_of_mule_charset): Add new symbol `square'.
4708
4709 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4710
4711         * mule-charset.c (Qcircle): New variable.
4712         (to_char_code): Add `Qcircle'.
4713         (syms_of_mule_charset): Add new symbol `circle'.
4714
4715 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4716
4717         * mule-charset.c (Qfont): New variable.
4718         (to_char_code): Add `Qfont'.
4719         (syms_of_mule_charset): Add new symbol `font'.
4720
4721 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4722
4723         * mule-charset.c (Qsub): New variable.
4724         (to_char_code): Add `Qsub'.
4725         (syms_of_mule_charset): Add new symbol `sub'.
4726
4727 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4728
4729         * mule-charset.c (Fput_char_attribute): Convert each element of
4730         VALUE to GL position if ATTRIBUTE is a GR-set,
4731
4732 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4733
4734         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4735         coded-charset is a GR-set.
4736
4737 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4738
4739         * mule-charset.c (Fput_char_attribute): Check each element of
4740         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4741
4742 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4743
4744         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4745         UTF-2000.
4746         (Qethiopic_ucs): New variable in UTF-2000.
4747         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4748         (complex_vars_of_mule_charset): Add new coded-charset
4749         `ethiopic-ucs' in UTF-2000.
4750
4751         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4752         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4753         9)'.
4754         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4755         10)'.
4756         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4757
4758 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4759
4760         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4761         `ascii'.
4762
4763 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4764
4765         * mule-charset.c (Vcharacter_variant_table): New variable.
4766         (Q_ucs): New variable.
4767         (Fchar_variants): New function.
4768         (Fput_char_attribute): Register `->ucs' value to
4769         `Vcharacter_variant_table'.
4770         (syms_of_mule_charset): Add new function `char-variants' and new
4771         symbol `->ucs'.
4772         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4773
4774 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4775
4776         * mule-charset.c (get_char_code_table): Allow negative character
4777         code.
4778         (put_char_code_table): Likewise.
4779         (Vcharacter_composition_table): New variable.
4780         (Q_decomposition): New variable.
4781         (Qwide): New variable.
4782         (Qnarrow): New variable.
4783         (Qcompat): New variable.
4784         (QnoBreak): New variable.
4785         (Qsuper): New variable.
4786         (Qfraction): New variable.
4787         (to_char_code): New function.
4788         (Fget_composite_char): New function.
4789         (Fput_char_attribute): Register `->decomposition' value to
4790         `Vcharacter_composition_table'.
4791         (syms_of_mule_charset): Add new function `get-composite-char', new
4792         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4793         `super' and `fraction'.
4794         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4795
4796 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4797
4798         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4799         character; copy the return value.
4800
4801 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4802
4803         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4804
4805         * mule-charset.c (range_charset_code_point): Must use make_int.
4806         (split_builtin_char): New function.
4807
4808 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4809
4810         * mule-charset.c (char_byte_table): Change name from
4811         "char-code-table" to "char-byte-table".
4812         (mark_char_code_table): New function.
4813         (char_code_table_equal): New function.
4814         (char_code_table_hash): New function.
4815         (char_code_table_description): New constant.
4816         (char_code_table): New type.
4817         (make_char_code_table): New function.
4818         (copy_char_code_table): New function.
4819         (get_char_code_table): Modify for `char_code_table' type.
4820         (put_char_code_table): Likewise.
4821         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4822         (Kashiwara).
4823
4824         * char-ucs.h (char_code_table): New type.
4825         (XCHAR_CODE_TABLE): New macro.
4826         (XSETCHAR_CODE_TABLE): New macro.
4827         (CHAR_CODE_TABLE_P): New macro.
4828         (GC_CHAR_CODE_TABLE_P): New macro.
4829         (struct Lisp_Char_Code_Table): New structure.
4830
4831 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4832
4833         * mule-charset.c (Fmake_charset): Setup byte_offset for
4834         {94|96}^n-set.
4835
4836 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4837
4838         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4839         character.
4840
4841 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4842
4843         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4844         is found.
4845
4846 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4847
4848         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4849         charset, it is regarded as a charset.
4850         (put_char_attribute): New function in UTF-2000.
4851         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4852         charset, mapping-table of the charset is modified.
4853         (Fdefine_char): New function in UTF-2000.
4854         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4855         `Fput_char_attribute'.
4856         (syms_of_mule_charset): Add new function `define-char' and new
4857         symbol `ucs' in UTF-2000.
4858         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4859
4860 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4861
4862         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4863         non-UTF-2000 configuration.
4864
4865 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4866
4867         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4868         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4869
4870         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4871         deleted.
4872         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4873         (Fset_charset_mapping_table): Likewise.
4874
4875         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4876         (CHARSET_ENCODING_TABLE): Delete.
4877         (XCHARSET_ENCODING_TABLE): Delete.
4878         (charset_code_point): New interface.
4879
4880 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4881
4882         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4883         instead of `charset_get_byte1' and `charset_get_byte2'.
4884
4885         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4886         (charset_get_byte2): Deleted.
4887
4888 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4889
4890         * char-ucs.h (SPLIT_CHAR): New inline function.
4891         (breakup_char_1): Use `SPLIT_CHAR'.
4892
4893         * mule-charset.c (range_charset_code_point): New function.
4894         (charset_code_point): New function.
4895
4896         * char-ucs.h (range_charset_code_point): New interface.
4897         (breakup_char_1): Use `range_charset_code_point'.
4898
4899 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4900
4901         * mule-charset.c (Fmake_charset): Delete unused local variable
4902         `code_offset'.
4903
4904         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4905         (breakup_char_1): Find a charset and code-point in
4906         `Vcharacter_attribute_table'.
4907
4908 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4909
4910         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4911         to 0.10 (Yao).
4912
4913 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4914
4915         * mule-charset.c (Vcharacter_attribute_table): New variable.
4916         (Fchar_attribute_alist): New function.
4917         (Fget_char_attribute): New function.
4918         (Fput_char_attribute): New function.
4919         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4920         too.
4921         (syms_of_mule_charset): Add new function `char-attribute-alist',
4922         `get-char-attribute' and `put-char-attribute'.
4923         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4924
4925 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4926
4927         * mule-charset.c (Fmake_charset): Just use
4928         `get_unallocated_leading_byte'.
4929
4930         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4931         sets; don't use final-byte based number for private sets.
4932
4933 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4934
4935         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4936         integer.
4937
4938 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4939
4940         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4941         to 0.9.
4942
4943 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4944
4945         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4946         of `CHAR_LEADING_BYTE' in UTF-2000.
4947
4948         * insdel.c (find_charsets_in_bufbyte_string): Use
4949         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4950         (find_charsets_in_emchar_string): Likewise.
4951
4952         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4953         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4954
4955         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4956         (CHAR_CHARSET_ID): New macro.
4957
4958 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4959
4960         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4961         charset-id - MIN_LEADING_BYTE.
4962         (put_char_table): Likewise.
4963
4964 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4965
4966         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4967         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4968         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4969         (CHARSET_ID_OFFSET): New macro.
4970         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4971         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4972         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4973         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4974         4).
4975         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4976         5).
4977         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4978         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4979         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4980         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4981         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4982
4983 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4984
4985         * mule-charset.c (next_allocated_leading_byte): New variable in
4986         UTF-2000.
4987         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4988         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4989         (get_unallocated_leading_byte): Simply use
4990         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4991         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4992         UTF-2000.
4993
4994         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4995         (MAX_LEADING_BYTE_PRIVATE): New macro.
4996         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4997         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4998
4999 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5000
5001         * mule-charset.c (Fmake_charset): Allocate final-byte based
5002         charset-id for 94-set, 96-set and 94x94-set.
5003
5004 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5005
5006         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
5007         ambiguous `else'.
5008         (Fmake_charset): Likewise.
5009         (complex_vars_of_mule_charset): Modify the font registry of
5010         `ucs-bmp' not to match `Ethiopic-Unicode'.
5011
5012 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5013
5014         * mule-charset.c (complex_vars_of_mule_charset): Add font
5015         registory of `ucs-bmp'.
5016
5017 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5018
5019         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
5020         coded-charsets in `default-coded-charset-priority-list' when
5021         breaking up a character.
5022
5023         * mule-charset.c (Vcharset_latin_viscii): New variable.
5024         (Qlatin_viscii): New variable.
5025         (make_charset): Don't use `decoding_table'.
5026         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
5027         byte_offset.
5028         (Fset_charset_mapping_table): New implementation.
5029         (syms_of_mule_charset): Add new symbol `latin-viscii'.
5030         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
5031         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
5032         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
5033         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
5034         charset `latin_viscii'.
5035
5036         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
5037         (CHARSET_TYPE_94X94): Change to 1 from 2.
5038         (CHARSET_TYPE_96): Change to 2 from 1.
5039         (CHARSET_TYPE_128): New macro.
5040         (CHARSET_TYPE_128X128): Change to 5 from 4.
5041         (CHARSET_TYPE_256): New macro.
5042         (CHARSET_TYPE_256X256): Change to 7 from 5.
5043         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
5044
5045 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5046
5047         * text-coding.c (char_encode_shift_jis): Refer
5048         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
5049         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
5050
5051         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
5052         (char_byte_table_equal): New function in UTF-2000.
5053         (char_byte_table_hash): New function in UTF-2000.
5054         (char_byte_table_description): New constant in UTF-2000.
5055         (char_byte_table): New type in UTF-2000.
5056         (make_char_byte_table): New function in UTF-2000.
5057         (copy_char_byte_table): New function in UTF-2000.
5058         (make_char_code_table): New macro in UTF-2000.
5059         (get_char_code_table): New function in UTF-2000.
5060         (put_char_code_table): New function in UTF-2000.
5061         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
5062         (charset_description): Add setting in UTF-2000.
5063         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
5064         `CHARSET_TO_BYTE1_TABLE(cs)'.
5065         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
5066         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
5067         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
5068         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
5069         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
5070         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
5071         `CHARSET_TO_BYTE2_TABLE(cs)'.
5072
5073         * char-ucs.h (char_byte_table): New type.
5074         (XCHAR_BYTE_TABLE): New macro.
5075         (XSETCHAR_BYTE_TABLE): New macro.
5076         (CHAR_BYTE_TABLE_P): New macro.
5077         (GC_CHAR_BYTE_TABLE_P): New macro.
5078         (struct Lisp_Char_Byte_Table): New structure.
5079         (get_char_code_table): New interface.
5080         (Emchar_to_byte_table): Deleted.
5081         (get_byte_from_character_table): Deleted.
5082         (struct Lisp_Charset): Add `encoding_table'; delete
5083         `to_byte1_table' and `to_byte2_table'.
5084         (CHARSET_ENCODING_TABLE): New macro.
5085         (CHARSET_TO_BYTE1_TABLE): Deleted.
5086         (CHARSET_TO_BYTE2_TABLE): Deleted.
5087         (XCHARSET_ENCODING_TABLE): New macro.
5088         (XCHARSET_TO_BYTE1_TABLE): Deleted.
5089         (XCHARSET_TO_BYTE2_TABLE): Deleted.
5090
5091 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5092
5093         * mule-charset.c (syms_of_mule_charset): Delete charset alias
5094         `vietnamese-viscii-*'.
5095
5096 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5097
5098         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
5099         (Qvietnamese_viscii_upper): New variable.
5100         (Fdefine_charset_alias): New function.
5101         (syms_of_mule_charset): Add new function `define-charset-alias'.
5102         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
5103         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
5104         `latin-viscii-*'.
5105
5106 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
5107
5108         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
5109         (MAX_CHAR_OBS_94x94): New macro.
5110         (breakup_char_1): Support obsolete XEmacs-UCS private code space
5111         for 94x94 sets.
5112
5113         * mule-charset.c (put_byte_from_character_table): Change unit size
5114         from 128 to 256.
5115         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
5116         not defined.
5117         (Fmake_reverse_direction_charset): Modify dummy argument of
5118         `make_charset' for non-UTF-2000 environment.
5119
5120 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5121
5122         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
5123
5124         * mule-charset.c (destroy_byte_from_character_table): New macro.
5125         (latin_jisx0201_to_ucs): Deleted.
5126         (latin_iso8859_2_to_ucs): Deleted.
5127         (latin_iso8859_3_to_ucs): Deleted.
5128         (latin_iso8859_4_to_ucs): Deleted.
5129         (latin_iso8859_9_to_ucs): Deleted.
5130         (latin_viscii_lower_to_ucs): Deleted.
5131         (latin_viscii_upper_to_ucs): Deleted.
5132         (mark_charset): Mark `cs->decoding_table'.
5133         (Fcharset_mapping_table): Fix DOC-string.
5134         (Fset_charset_mapping_table): New function.
5135         (syms_of_mule_charset): Add nwe function
5136         `set-charset-mapping-table'.
5137         (complex_vars_of_mule_charset): Don't setup and use
5138         `latin_*_to_ucs'.
5139
5140 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5141
5142         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
5143         charset.
5144
5145 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5146
5147         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
5148         (Vcharset_katakana_jisx0208): New variable.
5149         (Qhiragana_jisx0208): New variable.
5150         (Qkatakana_jisx0208): New variable.
5151         (make_charset): Add new argument `byte_offset'.
5152         (charset_get_byte1): Modify for new coded-charset definition; use
5153         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5154         `XCHARSET_BYTE_OFFSET'.
5155         (Fmake_charset): Modify for `make_charset'.
5156         (Fmake_reverse_direction_charset): Likewise.
5157         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
5158         `katakana-jisx0208'.
5159         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
5160         `.'  in font registry of charset `katakana-jisx0201',
5161         `latin-jisx0201', `vietnamese-viscii-lower' and
5162         `vietnamese-viscii-upper'; modify DOC-string of charset
5163         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
5164         registry of charset `japanese-jisx0208' not to use font for JIS
5165         X0208:1990; add new charset `hiragana-jisx0208' and
5166         `katakana-jisx0208'.
5167
5168         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
5169         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
5170         (struct Lisp_Charset): Add `byte_offset'.
5171         (CHARSET_BYTE_OFFSET): New macro.
5172         (XCHARSET_UCS_MIN): New macro.
5173         (XCHARSET_UCS_MAX): New macro.
5174         (XCHARSET_CODE_OFFSET): New macro.
5175         (XCHARSET_BYTE_OFFSET): New macro.
5176         (MIN_CHAR_HIRAGANA): New macro.
5177         (MAX_CHAR_HIRAGANA): New macro.
5178         (MIN_CHAR_KATAKANA): New macro.
5179         (MAX_CHAR_KATAKANA): New macro.
5180         (MAKE_CHAR): Modify for new coded-charset definition; use
5181         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5182         `XCHARSET_BYTE_OFFSET'.
5183
5184 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5185
5186         * mule-charset.c (CHAR96): Deleted.
5187         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
5188         <Lisp_Object>.
5189         (latin_iso8859_2_to_ucs): Likewise.
5190         (latin_iso8859_3_to_ucs): Likewise.
5191         (latin_iso8859_4_to_ucs): Likewise.
5192         (latin_iso8859_9_to_ucs): Likewise.
5193         (latin_viscii_lower_to_ucs): Likewise.
5194         (latin_viscii_upper_to_ucs): Likewise.
5195         (latin_tcvn5712_to_ucs): Commented out.
5196         (make_charset): Change type of argument `decoding_table' from
5197         <Emchar*> to <Lisp_Object> [vector of characters].
5198         (Fmake_charset): Modify for `make_charset'.
5199         (Fmake_reverse_direction_charset): Likewise.
5200         (Fcharset_mapping_table): New function in UTF-2000.
5201         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
5202         UTF-2000.
5203         (complex_vars_of_mule_charset): Modify for type change of
5204         `*_to_ucs'; modify for `make_charset'.
5205
5206         * char-ucs.h (struct Lisp_Charset): Change type of
5207         `decoding_table' from <Emchar*> to <Lisp_Object>.
5208         (MAKE_CHAR): Modify for new specification of `decoding_table'.
5209
5210 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
5211
5212         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
5213         error with non-UTF-2000-Mule.
5214
5215 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
5216
5217         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
5218         in lisp again].
5219         (Vcharset_chinese_cns11643_4): Likewise.
5220         (Vcharset_chinese_cns11643_5): Likewise.
5221         (Vcharset_chinese_cns11643_6): Likewise.
5222         (Vcharset_chinese_cns11643_7): Likewise.
5223         (Qchinese_cns11643_3): Likewise.
5224         (Qchinese_cns11643_4): Likewise.
5225         (Qchinese_cns11643_5): Likewise.
5226         (Qchinese_cns11643_6): Likewise.
5227         (Qchinese_cns11643_7): Likewise.
5228         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
5229         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5230         and `chinese-cns11643-7' to lisp/mule/chinese.el.
5231         (complex_vars_of_mule_charset): Likewise.
5232
5233 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
5234
5235         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
5236         96-set.
5237         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
5238         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
5239
5240 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5241
5242         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
5243         0xFF60.
5244         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
5245         (breakup_char_1): Likewise.
5246
5247         * text-coding.c (char_encode_iso2022): Keep designated charsets if
5248         one of them includes the specified character.
5249
5250 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5251
5252         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
5253
5254 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5255
5256         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
5257
5258 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5259
5260         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
5261         definition for non-UTF-2000 Mule.
5262         (latin_iso8859_3_to_ucs): Likewise.
5263         (latin_iso8859_4_to_ucs): Likewise.
5264         (latin_iso8859_9_to_ucs): Likewise.
5265         (latin_jisx0201_to_ucs): Likewise.
5266         (MIN_CHAR_THAI): Likewise.
5267         (MAX_CHAR_THAI): Likewise.
5268         (MIN_CHAR_GREEK): Likewise.
5269         (MAX_CHAR_GREEK): Likewise.
5270         (MIN_CHAR_HEBREW): Likewise.
5271         (MAX_CHAR_HEBREW): Likewise.
5272         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
5273         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
5274         (MIN_CHAR_CYRILLIC): Likewise.
5275         (MAX_CHAR_CYRILLIC): Likewise.
5276
5277 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5278
5279         * char-ucs.h (breakup_char_1): Use
5280         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
5281         thai-tis620 and katakana-jisx0201 area.
5282
5283 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5284
5285         * char-ucs.h (breakup_char_1): Use
5286         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
5287         area.
5288
5289         * text-coding.c (reset_encoding_stream): Fixed.
5290         (char_encode_ucs4): Delete `& 255'.
5291
5292         * char-ucs.h (breakup_char_1): Use
5293         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
5294
5295 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5296
5297         * file-coding.c (Fmake_coding_system): Don't set up
5298         `codesys->fixed.size'.
5299         (encode_coding_no_conversion): Don't refer
5300         `str->codesys->fixed.size'.
5301
5302 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5303
5304         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
5305         (latin_a_char_to_byte1): Deleted.
5306         (latin_a_char_to_byte2): Deleted.
5307
5308 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5309
5310         * mule-charset.c (make_charset): Add new argument `ucs_min',
5311         `ucs_max' and `code_offset'.
5312         (charset_get_byte1): New implementation [delete specific charset
5313         depended implementations].
5314         (Fmake_charset): Modify for `make_charset'.
5315         (Fmake_reverse_direction_charset): Likewise.
5316         (complex_vars_of_mule_charset): Likewise.
5317
5318         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
5319         `code_offset'.
5320         (CHARSET_UCS_MIN): New macro.
5321         (CHARSET_UCS_MAX): New macro.
5322         (CHARSET_CODE_OFFSET): New macro.
5323         (MAKE_CHAR): Delete charset depended definitions [except
5324         katakana-jisx0201].
5325
5326 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
5327
5328         * char-ucs.h (breakup_char_1): Use
5329         `Vdefault_coded_charset_priority_list' for C0-Controls,
5330         Basic-Latin, C1-Controls and Latin-1-Supplement area.
5331
5332 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5333
5334         * char-ucs.h (charset_get_byte1): New function.
5335         (XCHARSET_GET_BYTE1): Deleted.
5336         (charset_get_byte2): New function.
5337         (XCHARSET_GET_BYTE2): Deleted.
5338         (Vdefault_coded_charset_priority_list): New external variable.
5339         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5340         `Vdefault_preferred_coded_charset_list'.
5341
5342         * mule-charset.c (charset_get_byte1): New function.
5343         (charset_get_byte2): New function.
5344         (Vdefault_coded_charset_priority_list): New variable.
5345         (vars_of_mule_charset): Add new variable
5346         `default-coded-charset-priority-list'.
5347
5348 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5349
5350         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5351         (XCHARSET_GET_BYTE2): New inline function.
5352         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5353         `XCHARSET_GET_BYTE2'.
5354
5355 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5356
5357         * mule-charset.c (make_charset): Initialize
5358         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5359         NULL if table is not defined.
5360
5361 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5362
5363         * text-coding.c (char_encode_shift_jis): Use
5364         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5365         `ucs_to_latin_jisx0201'.
5366
5367         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5368         (ucs_to_latin_iso8859_2): Deleted.
5369         (ucs_to_latin_iso8859_3): Deleted.
5370         (ucs_to_latin_iso8859_4): Deleted.
5371         (ucs_to_latin_iso8859_9): Deleted.
5372         (ucs_to_latin_viscii_lower): Deleted.
5373         (ucs_to_latin_viscii_upper): Deleted.
5374         (ucs_to_latin_tcvn5712): Deleted.
5375         (make_charset): Add new argument `decoding_table'; set up
5376         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5377         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5378         `decoding_table' is defined in UTF-2000.
5379         (Fmake_charset): Modify for `make_charset'.
5380         (Fmake_reverse_direction_charset): Likewise.
5381         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5382         and `GENERATE_96_SET'.
5383
5384         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5385         (ucs_to_latin_jisx0201): Deleted.
5386         (latin_iso8859_2_to_ucs): Deleted.
5387         (ucs_to_latin_iso8859_2): Deleted.
5388         (latin_iso8859_3_to_ucs): Deleted.
5389         (ucs_to_latin_iso8859_3): Deleted.
5390         (latin_iso8859_4_to_ucs): Deleted.
5391         (ucs_to_latin_iso8859_4): Deleted.
5392         (latin_iso8859_9_to_ucs): Deleted.
5393         (ucs_to_latin_iso8859_9): Deleted.
5394         (latin_viscii_lower_to_ucs): Deleted.
5395         (ucs_to_latin_viscii_lower): Deleted.
5396         (latin_viscii_upper_to_ucs): Deleted.
5397         (ucs_to_latin_viscii_upper): Deleted.
5398         (struct Lisp_Charset): Renamed `encoding_table' to
5399         `to_byte1_table'; add `to_byte2_table'.
5400         (CHARSET_DECODING_TABLE): New macro.
5401         (CHARSET_TO_BYTE1_TABLE): New macro.
5402         (CHARSET_TO_BYTE2_TABLE): New macro.
5403         (XCHARSET_DECODING_TABLE): New macro.
5404         (XCHARSET_TO_BYTE1_TABLE): New macro.
5405         (XCHARSET_TO_BYTE2_TABLE): New macro.
5406         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5407         tables.
5408         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5409         don't use `ucs_to_*' tables.
5410
5411 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5412
5413         * text-coding.c (Fmake_coding_system): Don't set up
5414         `codesys->fixed.size'.
5415         (encode_coding_no_conversion): Use `if' instead of `switch'.
5416
5417         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5418
5419 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5420
5421         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5422         (Fmake_charset): Modify for `make_charset'.
5423         (Fmake_reverse_direction_charset): Likewise.
5424         (complex_vars_of_mule_charset): Likewise.
5425
5426 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5427
5428         * text-coding.c (char_encode_shift_jis): Use table
5429         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5430
5431 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5432
5433         * text-coding.c (text_encode_generic): Use `if' instead of
5434         `switch'.
5435         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5436         decode JIS-Latin.
5437
5438 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5439
5440         * text-coding.c (encode_coding_sjis): Deleted.
5441         (char_encode_shift_jis): New function.
5442         (char_finish_shift_jis): New function.
5443         (reset_encoding_stream): Set up `encode_char' and `finish' for
5444         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5445         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5446         (char_encode_utf8): Treat `eol_type'.
5447
5448 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5449
5450         * file-coding.c (decode_coding_iso2022): Use
5451         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5452
5453 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5454
5455         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5456         to 0.7 (Hirano).
5457
5458 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5459
5460         * char-lb.h (CHAR_COLUMNS): New macro.
5461
5462 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5463
5464         * text-coding.c (char_encode_ucs4): New function.
5465         (char_finish_ucs4): New function.
5466         (encode_coding_ucs4): Deleted.
5467         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5468         (text_encode_generic): Delete local variable `charset' and `half'.
5469         (ucs_to_mule_table): Deleted.
5470         (mule_to_ucs_table): Deleted.
5471         (Fset_ucs_char): Deleted.
5472         (ucs_to_char): Deleted.
5473         (Fucs_char): Deleted.
5474         (Fset_char_ucs): Deleted.
5475         (Fchar_ucs): Deleted.
5476         (decode_ucs4): Deleted.
5477         (mule_char_to_ucs4): Deleted.
5478         (encode_ucs4): Deleted.
5479         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5480         (decode_coding_utf8): Likewise.
5481         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5482         (char_encode_iso2022): Fixed.
5483         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5484         `Fset_char_ucs' and `Fchar_ucs'.
5485         (complex_vars_of_file_coding): Don't initialize
5486         `ucs_to_mule_table'.
5487
5488         * objects-tty.c (tty_initialize_font_instance): Don't use
5489         `XCHARSET_COLUMNS'.
5490
5491         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5492         UTF-2000.
5493
5494         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5495         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5496
5497         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5498         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5499         (emchar_string_displayed_columns): Likewise.
5500
5501         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5502         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5503         (string_column_at_point): Likewise.
5504         (Fmove_to_column): Likewise.
5505
5506         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5507         `encoding_table' and `decoding_table'.
5508         (CHARSET_REP_BYTES): Deleted.
5509         (XCHARSET_REP_BYTES): Deleted.
5510         (XCHARSET_COLUMNS): Deleted.
5511         (CHAR_COLUMNS): New macro.
5512         (lookup_composite_char): Deleted unconditionally.
5513         (composite_char_string): Likewise.
5514
5515 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5516
5517         * char-ucs.h (Emchar_to_byte_table): New type.
5518         (get_byte_from_character_table): New function interface.
5519         (Vcharset_latin_jisx0201): New variable.
5520         (latin_jisx0201_to_ucs): New variable.
5521         (ucs_to_latin_jisx0201): New variable.
5522         (Vcharset_latin_iso8859_2): New variable.
5523         (latin_iso8859_2_to_ucs): New variable.
5524         (ucs_to_latin_iso8859_2): New variable.
5525         (Vcharset_latin_iso8859_3): New variable.
5526         (latin_iso8859_3_to_ucs): New variable.
5527         (ucs_to_latin_iso8859_3): New variable.
5528         (Vcharset_latin_iso8859_4): New variable.
5529         (latin_iso8859_4_to_ucs): New variable.
5530         (ucs_to_latin_iso8859_4): New variable.
5531         (Vcharset_latin_iso8859_9): New variable.
5532         (latin_iso8859_9_to_ucs): New variable.
5533         (ucs_to_latin_iso8859_9): New variable.
5534         (Vcharset_latin_viscii_lower): New variable.
5535         (latin_viscii_lower_to_ucs): New variable.
5536         (ucs_to_latin_viscii_lower): New variable.
5537         (Vcharset_latin_viscii_upper): New variable.
5538         (latin_viscii_upper_to_ucs): New variable.
5539         (ucs_to_latin_viscii_upper): New variable.
5540         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5541         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5542         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5543         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5544         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5545         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5546         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5547         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5548         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5549         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5550
5551         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5552         (Vcharset_latin_viscii_upper): New variable.
5553         (make_byte_from_character_table): New function.
5554         (put_byte_from_character_table): New function.
5555         (get_byte_from_character_table): New function.
5556         (CHAR96): New macro.
5557         (ucs_to_latin_jisx0201): New variable.
5558         (latin_jisx0201_to_ucs): New variable.
5559         (ucs_to_latin_iso8859_2): New variable.
5560         (latin_iso8859_2_to_ucs): New variable.
5561         (ucs_to_latin_iso8859_3): New variable.
5562         (latin_iso8859_3_to_ucs): New variable.
5563         (ucs_to_latin_iso8859_4): New variable.
5564         (latin_iso8859_4_to_ucs): New variable.
5565         (ucs_to_latin_iso8859_9): New variable.
5566         (latin_iso8859_9_to_ucs): New variable.
5567         (ucs_to_latin_viscii_lower): New variable.
5568         (latin_viscii_lower_to_ucs): New variable.
5569         (ucs_to_latin_viscii_upper): New variable.
5570         (latin_viscii_upper_to_ucs): New variable.
5571         (ucs_to_latin_tcvn5712): New variable.
5572         (latin_tcvn5712_to_ucs): New variable.
5573         (Qlatin_viscii_lower): New variable.
5574         (Qlatin_viscii_upper): New variable.
5575         (syms_of_mule_charset): Set up new symbol
5576         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5577         (complex_vars_of_mule_charset): Set up new charset
5578         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5579         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5580         `ucs_to_<CHARSET>' tables.
5581
5582 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5583
5584         * text-coding.c: New file.
5585
5586 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5587
5588         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5589
5590         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5591         (MAKE_CHAR): Modify for `ucs-bmp'.
5592         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5593         non-MULE characters of BMP.
5594
5595 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5596
5597         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5598         to 0.6.
5599
5600 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5601
5602         * lstream.h:
5603         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5604         - Include character.h for `CHAR_ASCII_P'.
5605
5606         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5607
5608         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5609         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5610
5611         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5612         (BYTE_C0_P): Likewise.
5613         (BYTE_C1_P): Likewise.
5614         (Lstream_get_emchar_1): Likewise.
5615         (Lstream_fput_emchar): Likewise.
5616         (Lstream_funget_emchar): Likewise.
5617         (copy_internal_to_external): Likewise.
5618         (copy_external_to_internal): Likewise.
5619
5620         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5621         (BYTE_C0_P): Likewise.
5622         (BYTE_C1_P): Likewise.
5623         (Lstream_get_emchar_1): Likewise.
5624         (Lstream_fput_emchar): Likewise.
5625         (Lstream_funget_emchar): Likewise.
5626         (copy_internal_to_external): Likewise.
5627         (copy_external_to_internal): Likewise.
5628
5629         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5630         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5631
5632         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5633         (BYTE_ASCII_P): Moved to mb-1byte.h.
5634
5635 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5636
5637         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5638
5639         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5640         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5641         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5642         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5643         (VALIDATE_CHARPTR_FORWARD): Likewise.
5644         (simple_charptr_emchar): Moved to mb-multibyte.h.
5645         (simple_set_charptr_emchar): Likewise.
5646         (simple_charptr_copy_char): Likewise.
5647         (non_ascii_charptr_emchar): Likewise.
5648         (non_ascii_set_charptr_emchar): Likewise.
5649         (non_ascii_charptr_copy_char): Likewise.
5650         (charptr_emchar): Moved to mb-*byte.h.
5651         (set_charptr_emchar): Likewise.
5652         (charptr_copy_char): Likewise.
5653
5654         * mb-1byte.h, mb-multibyte.h: New files.
5655
5656 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5657
5658         * mb-utf-8.h (MULTIBYTE): New macro.
5659         (MAX_EMCHAR_LEN): Moved from buffer.h.
5660         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5661
5662         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5663
5664         * mb-lb.h, multibyte.h: New files.
5665
5666         * char-1byte.h (Charset_ID): Moved from buffer.h.
5667         (MIN_LEADING_BYTE): Likewise.
5668         (LEADING_BYTE_ASCII): Likewise.
5669         (NUM_LEADING_BYTES): Likewise.
5670         (CHARSETP): Likewise.
5671         (CHARSET_BY_LEADING_BYTE): Likewise.
5672         (XCHARSET_LEADING_BYTE): Likewise.
5673         (XCHARSET_GRAPHIC): Likewise.
5674         (XCHARSET_COLUMNS): Likewise.
5675         (XCHARSET_DIMENSION): Likewise.
5676         (CHAR_CHARSET): Likewise.
5677         (CHAR_LEADING_BYTE): Likewise.
5678         (BREAKUP_CHAR): Likewise.
5679         (Vcharset_ascii): Likewise.
5680
5681         * buffer.h: Include multibyte.h unconditionally.
5682         (VALID_CHARPTR_P): Moved to multibyte.h.
5683         (ASSERT_VALID_CHARPTR): Likewise.
5684         (REAL_INC_CHARPTR): Likewise.
5685         (REAL_INC_CHARBYTIND): Likewise.
5686         (REAL_DEC_CHARPTR): Likewise.
5687         (INC_CHARPTR): Likewise.
5688         (INC_CHARBYTIND): Likewise.
5689         (DEC_CHARPTR): Likewise.
5690         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5691         (VALIDATE_CHARPTR_FORWARD): Likewise.
5692         (charptr_n_addr): Likewise.
5693         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5694         (simple_charptr_emchar): Moved to multibyte.h.
5695         (simple_set_charptr_emchar): Likewise.
5696         (simple_charptr_copy_char): Likewise.
5697         (non_ascii_charptr_emchar): Likewise.
5698         (non_ascii_set_charptr_emchar): Likewise.
5699         (non_ascii_charptr_copy_char): Likewise.
5700         (charptr_emchar): Likewise.
5701         (set_charptr_emchar): Likewise.
5702         (charptr_copy_char): Likewise.
5703         (charptr_emchar_n): Likewise.
5704         (Charset_ID): Moved to char-1byte.h.
5705         (Vcharset_ascii): Likewise.
5706         (CHAR_CHARSET): Likewise.
5707         (CHAR_LEADING_BYTE): Likewise.
5708         (LEADING_BYTE_ASCII): Likewise.
5709         (NUM_LEADING_BYTES): Likewise.
5710         (MIN_LEADING_BYTE): Likewise.
5711         (CHARSETP): Likewise.
5712         (CHARSET_BY_LEADING_BYTE): Likewise.
5713         (XCHARSET_LEADING_BYTE): Likewise.
5714         (XCHARSET_GRAPHIC): Likewise.
5715         (XCHARSET_COLUMNS): Likewise.
5716         (XCHARSET_DIMENSION): Likewise.
5717         (BREAKUP_CHAR): Likewise.
5718
5719 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5720
5721         * character.h: Add document about interface for characters.
5722
5723         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5724         (MAKE_CHAR): Delete comment about
5725         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5726         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5727         (BREAKUP_CHAR): Modify name of arguments.
5728         (CHAR_CHARSET): Modify name of argument.
5729
5730         * buffer.h: Delete document about Emchar accessors.
5731
5732 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5733
5734         * character.h (CHAR_INTP): Moved from buffer.h
5735         (CHAR_OR_CHAR_INTP): Likewise.
5736         (XCHAR_OR_CHAR_INT): Likewise.
5737         (CHECK_CHAR_COERCE_INT): Likewise.
5738
5739         * buffer.h (CHAR_INTP): Moved to character.h
5740         (CHAR_OR_CHAR_INTP): Likewise.
5741         (XCHAR_OR_CHAR_INT): Likewise.
5742         (CHECK_CHAR_COERCE_INT): Likewise.
5743
5744 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5745
5746         * character.h:
5747         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5748         - Include char-1byte.h, char-lb.h or char-ucs.h.
5749
5750         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5751
5752         * buffer.h: Include character unconditionally.
5753         (valid_char_p): Moved to char-*.h.
5754         (non_ascii_valid_char_p): Moved to char-lb.h.
5755
5756         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5757
5758 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5759
5760         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5761         in UTF-2000 because it is not ported yet and not to use
5762         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5763         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5764         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5765
5766         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5767         (CHAR_ASCII_P): Moved from character.h.
5768
5769         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5770         (CHAR_ASCII_P): Likewise.
5771         (CHAR_FIELD1_MASK): Deleted.
5772         (CHAR_FIELD2_MASK): Deleted.
5773         (CHAR_FIELD3_MASK): Deleted.
5774         (MAX_CHAR_BASIC_LATIN): New macro.
5775         (CHAR_FIELD1): Deleted.
5776         (CHAR_FIELD2_INTERNAL): Deleted.
5777         (CHAR_FIELD3_INTERNAL): Deleted.
5778         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5779         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5780         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5781         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5782         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5783         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5784         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5785         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5786         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5787         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5788         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5789         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5790         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5791         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5792         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5793         (MIN_CHAR_COMPOSITION): Deleted.
5794         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5795         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5796
5797 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5798
5799         * buffer.h: Include mb-utf-8.h in UTF-2000.
5800
5801         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5802
5803         * mb-utf-8.h: New file.
5804
5805 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5806
5807         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5808         instead of `int'.
5809
5810         * mule-charset.h, buffer.h (Charset_ID): New type.
5811
5812 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5813
5814         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5815         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5816         instead of `MULE_CHAR_PRIVATE_OFFSET',
5817         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5818         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5819         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5820
5821         * character.h (Vcharset_japanese_jisx0212): New variable
5822         definition.
5823
5824 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5825
5826         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5827         (charset_by_attributes): Delete array about direction.
5828         (latin_a_char_to_charset): New variable in UTF-2000.
5829         (latin_a_char_to_byte1): New variable in UTF-2000.
5830         (latin_a_char_to_byte2): New variable in UTF-2000.
5831         (Qucs_bmp): New variable.
5832         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5833         `Bufbyte'.
5834         (next_allocated_2_byte_leading_byte): Likewise.
5835         (non_ascii_set_charptr_emchar): Likewise.
5836         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5837         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5838         `charset_by_attributes'.
5839         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5840         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5841         and `CHARSET_BY_LEADING_BYTE'.
5842         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5843         `utf-2000-version' to `vars_of_mule_charset'.
5844         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5845         define `leading-code-private-11' in UTF-2000; move setting of
5846         `utf-2000-version' from `syms_of_mule_charset'.
5847         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5848         UTF-2000.
5849
5850         * character.h (Charset_ID): New type.
5851         (LEADING_BYTE_UCS_BMP): New macro.
5852         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5853         (CHARSET_ID_OFFSET_94): New macro.
5854         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5855         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5856         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5857         final-byte.
5858         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5859         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5860         (CHARSET_ID_OFFSET_96): New macro.
5861         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5862         CHARSET_ID_OFFSET_96 and final-byte.
5863         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5864         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5865         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5866         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5867         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5868         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5869         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5870         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5871         (LEADING_BYTE_THAI_TIS620): Likewise.
5872         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5873         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5874         (CHARSET_ID_OFFSET_94x94): New macro.
5875         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5876         CHARSET_ID_OFFSET_94x94 and final-byte.
5877         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5878         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5879         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5880         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5881         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5882         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5883         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5884         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5885         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5886         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5887         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5888         (CHARSET_TYPE_128X128): New macro.
5889         (CHARSET_TYPE_256X256): New macro.
5890         (XCHARSET_PRIVATE_P): Delete unconditionally.
5891         (charset_by_attributes): Delete array about direction.
5892         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5893         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5894         (MIN_CHAR_94): New macro.
5895         (MAX_CHAR_94): New macro.
5896         (MIN_CHAR_96): New macro.
5897         (MAX_CHAR_96): New macro.
5898         (MIN_CHAR_94x94): New macro.
5899         (MAX_CHAR_94x94): New macro.
5900         (MIN_CHAR_96x96): New macro.
5901         (MAX_CHAR_96x96): New macro.
5902         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5903         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5904         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5905         - 32)'.
5906         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5907         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5908         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5909         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5910         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5911         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5912         `XCHARSET_LEADING_BYTE' to make code-point.
5913         (latin_a_char_to_charset): New variable.
5914         (latin_a_char_to_byte1): New variable.
5915         (latin_a_char_to_byte2): New variable.
5916         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5917         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5918         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5919
5920         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5921         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5922         (find_charsets_in_emchar_string): Likewise.
5923         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5924
5925         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5926         `int'.
5927         (decode_coding_iso2022): Likewise.
5928
5929         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5930         of `unsigned char'.
5931
5932         * redisplay.c (redisplay_text_width_emchar_string): Use
5933         `Charset_ID' instead of `unsigned char'.
5934         (redisplay_frame_text_width_string): Likewise.
5935
5936         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5937         `unsigned char'.
5938
5939         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5940         instead of `unsigned char'.
5941         (face_cachel_charset_font_metric_info): Likewise.
5942
5943         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5944         (get_non_ascii_char_table_value): Likewise.
5945         (get_char_table): Likewise.
5946         (put_char_table): Likewise.
5947         (map_over_other_charset): Likewise.
5948         (map_char_table): Likewise.
5949
5950         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5951         instead of `unsigned char'.
5952
5953 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5954
5955         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5956         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5957
5958         * mule-charset.c (leading_code_private_11): Don't define in
5959         UTF-2000.
5960
5961         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5962         in UTF-2000 because it is not ported yet and not to use
5963         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5964
5965 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5966
5967         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5968
5969 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5970
5971         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5972         in UTF-2000.
5973
5974         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5975         of unsigned char to store leading-byte.
5976
5977         * chartab.c (get_non_ascii_char_table_value): Don't use
5978         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5979
5980         * file-coding.c (encode_coding_big5): Delete bogus implementation
5981         in UTF2000.
5982
5983         * character.h (LEADING_BYTE_*): Delete definition for
5984         non-UTF-2000.
5985         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5986         (LEADING_BYTE_PREFIX_P): Deleted.
5987         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5988         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5989         (BUFBYTE_LEADING_BYTE_P): Deleted.
5990         (CHARSET_PRIVATE_P): Deleted unconditionally.
5991         (rep_bytes_by_first_byte): Deleted unconditionally.
5992         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5993         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5994         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5995         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5996         (CHAR_FIELD2): Deleted.
5997         (CHAR_FIELD3): Deleted.
5998         (MAKE_CHAR): Delete definition for non-UTF-2000.
5999         (BREAKUP_CHAR_1_UNSAFE): Deleted.
6000         (breakup_char_1): New implementation.
6001         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
6002         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
6003
6004 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
6005
6006         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
6007         condition.
6008
6009 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
6010
6011         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
6012         (CHARSET_PRIVATE_P): Likewise.
6013         (XCHARSET_PRIVATE_P): Likewise.
6014         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
6015
6016         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
6017         UTF2000.
6018         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
6019
6020 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
6021
6022         * character.h (LEADING_BYTE_*): Changed in UTF2000.
6023         (NUM_LEADING_BYTES): Changed from 128 to 256.
6024         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
6025         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
6026         UTF2000.
6027         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
6028
6029         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
6030         UTF2000.
6031         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
6032         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
6033         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
6034         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
6035         (Qchinese_cns11643_3): New variable in UTF2000.
6036         (Qchinese_cns11643_4): New variable in UTF2000.
6037         (Qchinese_cns11643_5): New variable in UTF2000.
6038         (Qchinese_cns11643_6): New variable in UTF2000.
6039         (Qchinese_cns11643_7): New variable in UTF2000.
6040         (syms_of_mule_charset): Define `chinese-cns11643-3',
6041         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
6042         and `chinese-cns11643-7' in UTF2000.
6043         (vars_of_mule_charset): Initialize
6044         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
6045         + 1 in UTF2000.
6046         (complex_vars_of_mule_charset): Setup charset
6047         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
6048         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
6049
6050 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
6051
6052         * mule-charset.c: Move setting for `leading-code-private-11' from
6053         `syms_of_mule_charset' to `vars_of_mule_charset'.
6054
6055 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
6056
6057         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
6058         and `NUM_LEADING_BYTES' in assert.
6059
6060 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
6061
6062         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
6063         instead of 128.
6064         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
6065         `NUM_LEADING_BYTES' instead of 128.
6066
6067 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
6068
6069         * mule-charset.h (charset_by_leading_byte): Use
6070         `NUM_LEADING_BYTES' instead of 128.
6071         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
6072
6073         * mule-charset.c (charset_by_leading_byte): Use
6074         `NUM_LEADING_BYTES' instead of 128.
6075         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
6076
6077         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
6078         128.
6079
6080 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
6081
6082         * mule-charset.c (syms_of_mule_charset): Update to
6083         0.4 (Shin-Imamiya).
6084
6085 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
6086
6087         * file-coding.c (encode_coding_sjis): New implementation for
6088         UTF2000.  (decode_coding_sjis): Ditto.
6089
6090 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
6091
6092         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
6093         Don't define in UTF2000.
6094
6095         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
6096         defined.
6097
6098         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
6099         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
6100         MULE.
6101
6102 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
6103
6104         * config.h.in (CHAR_IS_UCS4): New macro.
6105
6106         * mule-charset.c (rep_bytes_by_first_byte): Modify for
6107         conventional MULE representation.
6108         (syms_of_mule_charset): Update to 0.3 (Imamiya).
6109
6110         * mule-charset.h: Reverted to original.
6111
6112         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
6113         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
6114         "mule-charset.h" if CHAR_IS_UCS4 is defined.
6115
6116         * character.h: New file.
6117
6118         * file-coding.c (Fmake_coding_system): Set 1 to
6119         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
6120         defined.
6121         (encode_coding_no_conversion): New implementation for UTF2000.
6122
6123         * file-coding.h (struct Lisp_Coding_System): Add new member
6124         `fixed.size'.
6125
6126 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
6127
6128         * file-coding.c (decode_coding_iso2022): Code-point arguments of
6129         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
6130         (encode_coding_iso2022): New implementation for UTF2000.
6131
6132 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6133
6134         * mule-canna.c (c2mu): New implementation for UTF2000.
6135         (m2c): Likewise.
6136
6137 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6138
6139         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
6140
6141 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6142
6143         * file-coding.c (reset_encoding_stream): Set 0 to
6144         `str->iso2022.current_char_boundary' in UTF2000.
6145         (encode_utf8): Don't define in UTF2000.
6146         (encode_coding_utf8): New implementation for UTF-8 representation
6147         of UTF2000.
6148         (complex_vars_of_file_coding): Define coding-system `utf-8'.
6149
6150 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6151
6152         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
6153
6154         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
6155         UTF2000.
6156         (REP_BYTES_BY_FIRST_BYTE): Likewise.
6157
6158         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
6159
6160         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
6161         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
6162         as UTF-8 in UTF2000.
6163         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
6164         (non_ascii_valid_char_p): Don't define in UTF2000.
6165         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
6166         (Lstream_get_emchar_1): Likewise.
6167         (utf-2000-version): New variable in UTF2000.
6168
6169         * lread.c (read_escape): Add new reader `u'.
6170
6171         * insdel.c (three_to_one_table): Don't define in UTF2000.
6172         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
6173         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6174         UTF2000.
6175         (bytind_to_bufpos_func): Likewise.
6176         (buffer_mule_signal_inserted_region): Likewise.
6177         (vars_of_insdel): Don't initialize `three_to_one_table'.
6178         (init_buffer_text): Use `buf->text->mule_size' instead of
6179         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6180         UTF2000.
6181
6182         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
6183         UTF-8 representation in UTF2000.
6184         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
6185         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
6186         (decode_coding_iso2022): Don't define local variable `lb' in
6187         UTF2000; don't use LEADING_BYTE in UTF2000; use
6188         `DECODE_ADD_UCS_CHAR' in UTF2000.
6189         (convert_to_external_format): Decode as UTF-8 in UTF2000.
6190
6191         * config.h.in (UTF2000): New macro.
6192
6193         * buffer.h (struct buffer_text): Add new member `mule_size' and
6194         don't add `mule_shifter' and `mule_three_p' in UTF2000.
6195         (valid_char_p): Return always 1 in UTF2000.
6196         (MAX_EMCHAR_LEN): 6 in UTF2000.
6197         (three_to_one_table): Don't define in UTF2000.
6198         (real_bufpos_to_bytind): Modify for UTF-8 representation in
6199         UTF2000.
6200         (real_bytind_to_bufpos): Likewise.
6201
6202         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
6203
6204 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
6205
6206         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
6207         representation change.
6208         (Vutf_2000_version): New variable.
6209         (leading_code_private_11): New variable.
6210         (syms_of_mule_charset): Add new variables `utf-2000-version' and
6211         `leading-code-private-11'.
6212
6213         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
6214         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
6215         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
6216         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
6217         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
6218         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
6219         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
6220         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
6221         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
6222         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
6223         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
6224         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
6225         (MIN_CHAR_GREEK): New macro.
6226         (MAX_CHAR_GREEK): New macro.
6227         (MIN_CHAR_CYRILLIC): New macro.
6228         (MAX_CHAR_CYRILLIC): New macro.
6229         (MIN_CHAR_HEBREW): New macro.
6230         (MAX_CHAR_HEBREW): New macro.
6231         (MIN_CHAR_THAI): New macro.
6232         (MAX_CHAR_THAI): New macro.
6233         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
6234         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
6235         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
6236         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
6237         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
6238         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
6239         (CHAR_FIELD2): New inline function.
6240         (CHAR_FIELD3): New inline function.
6241         (MULE_CHAR_PRIVATE_OFFSET): New macro.
6242         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
6243         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
6244         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
6245         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
6246         (MIN_CHAR_COMPOSITION): Likewise.
6247         (CHAR_LEADING_BYTE): Modified for character representation change.
6248         (MAKE_CHAR): Likewise.
6249
6250         * lisp.h (Vcharset_latin_iso8859_1): New variable.
6251         (Vcharset_greek_iso8859_7): Likewise.
6252         (Vcharset_cyrillic_iso8859_5): Likewise.
6253         (Vcharset_hebrew_iso8859_8): Likewise.
6254         (Vcharset_thai_tis620): Likewise.
6255         (Vcharset_katakana_jisx0201): Likewise.
6256
6257 2008-12-28  Vin Shelton  <acs@xemacs.org>
6258
6259         * XEmacs 21.4.22 is released
6260
6261 2008-12-27  Vin Shelton  <acs@xemacs.org>
6262
6263         * syswindows.h: Don't define wide character interfaces for Cygwin
6264         1.7 and up.
6265
6266 2008-03-05  Dominique Quatravaux  <domq@cpan.org>
6267
6268         * glyphs-gtk.c: Fixed compilation under gcc 4.x.
6269
6270 2008-11-01  Stephen J. Turnbull  <stephen@xemacs.org>
6271
6272         * regex.c (re_search_2): Fix at_dot by changing charpos to bytepos.
6273         From Julian Bradfield <18654.1143.304851.782755@krk.inf.ed.ac.uk>.
6274
6275 2008-12-25  Vin Shelton  <acs@xemacs.org>
6276
6277         * mule-ccl.c (ccl_driver): Fix off-by-one error.
6278         By Julian Bradfield in
6279         <18691.16568.526264.972026@krk.inf.ed.ac.uk>.
6280
6281         * mule-ccl.c (ccl_driver): 
6282
6283 2007-10-07  Vin Shelton  <acs@xemacs.org>
6284
6285         * XEmacs 21.4.21 is released
6286
6287 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
6288
6289         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
6290
6291 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
6292
6293         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
6294         (png_instantiate): Initialize setjmp_buffer early, and avoid
6295         recursive entry to error handler.
6296
6297 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
6298
6299         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
6300         a typo fix.
6301
6302 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
6303
6304         * event-Xt.c (x_reset_modifier_mapping):
6305         * event-gtk.c (gtk_reset_modifier_mapping):
6306         Zero out the device's modifier map once we've freed it, to prevent
6307         a double free on a re-entrant call. 
6308
6309 2007-05-17  Vin Shelton  <acs@xemacs.org>
6310
6311         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
6312         64-bit linux.  Patch from Hans de Graaff.
6313
6314 2007-05-02  Vin Shelton  <acs@xemacs.org>
6315
6316         * dumper.c (pdump): Don't close pdump_fd (already closed by
6317         fclose() call.  Patch from Steve Higham.
6318         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
6319         already closed.  Patch inspired by Steve Higham.
6320
6321 2007-05-01  Vin Shelton  <acs@xemacs.org>
6322
6323         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
6324         (mswindows_fstat): Ditto.
6325         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
6326
6327 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
6328
6329         * postgresql.c: Update Steve Baur's email address by his request.
6330         * postgresql.h: Ditto.
6331
6332 2007-01-04  Vin Shelton  <acs@xemacs.org>
6333
6334         * fileio.c (check_writable): Check old-style readonly bit only for
6335         non-directories.
6336
6337 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
6338
6339         * src/fileio.c (check_writable): 
6340         Cope with the fact that the read-only attribute trumps Windows NTFS
6341         ACLS.
6342
6343
6344 2006-12-09  Vin Shelton  <acs@xemacs.org>
6345
6346         * XEmacs 21.4.20 is released
6347
6348 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
6349
6350         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
6351         relocated the definitions to be used sooner in file.
6352         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6353         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6354         overflow.
6355
6356 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
6357
6358         * sound.c (init_native_sound):
6359         Only X11 and GTK devices can possibly not be on the console of the
6360         associated machine. Fixes a crash when init_native_sound is called
6361         on a msprinter device. 
6362
6363 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
6364
6365         * buffer.c (buffer-file-name): Document invariant.
6366         (buffer-file-truename): Sync wording to buffer-file-name.
6367         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6368         and discussion.
6369
6370 2006-11-19  Benson Margulies  <benson@dchbk.us>
6371
6372         * fileio.c: Add code to use full Win32 API to check for write
6373         access.  Win32 has the general design policy that you aren't
6374         supposed to ask this question, since security checks change
6375         depending on asynchronous processes.  Nonetheless, there is a way,
6376         by acting as if we are a server doing interpretive access
6377         control.
6378
6379 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6380
6381         * bytecode.c: Use xnew_array instead of alloca.
6382
6383 2006-07-04  Vin Shelton  <acs@xemacs.org>
6384
6385         * redisplay-msw.c: Fix tiny, but crucial typo.
6386
6387 2006-06-22  Jerry James  <james@xemacs.org>
6388
6389         * EmacsShell-sub.c (ChangeManaged):
6390         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6391         NULL.
6392         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6393         checking if it is NULL.  Also fix a memory leak.
6394         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6395         dereference it, not the other way around.
6396         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6397         overflow check.
6398         * dumper.c (pdump_register_struct): Ditto.
6399         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6400         to (short) warnpath overflow warnpath.
6401         * extents.c (detach_all_extents): Call extent_list_delete_all with
6402         a non-NULL parameter only.
6403         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6404         NULL width and height.
6405         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6406         xic before checking if they are NULL.
6407         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6408         allocated array.
6409         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6410         * nas.c (Err): Fix a memory leak.
6411         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6412         Don't create the buffer if there is nothing to do.
6413         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6414         * redisplay-output.c (redisplay_output_layout): Ditto.
6415         * redisplay-tty.c (tty_output_display_block): Ditto.
6416         * redisplay-x.c (x_output_display_block): Ditto.
6417         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6418         dereference instance->scrollbar_data if it is NULL.
6419         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6420         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6421         for sb->scrollbar_data.
6422         * sound.c (init_native_sound): Avoid a buffer overflow by
6423         allocating a buffer with the appropriate size.
6424
6425 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6426
6427         * EmacsShell-sub.c (RootGeometryManager):
6428         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6429         Based on a suggestion by Francois L'Archeveque.
6430
6431 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6432
6433         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6434         current values found in GNU Emacs.
6435
6436 2006-03-17  Vin Shelton  <acs@xemacs.org>
6437
6438         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6439         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6440
6441         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6442         'hex_initialized' because it conflicts with 'initialized' in
6443         lisp.h.
6444
6445 2006-01-28  Vin Shelton  <acs@xemacs.org>
6446
6447         * XEmacs 21.4.19 is released
6448
6449 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6450
6451         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6452
6453 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6454
6455         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6456         5000 to INT_MAX.
6457
6458 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6459
6460         * database.c: Suppress compiler warning under Cygwin.
6461         * database.c: Removed __FreeBSD__ check, should be handled by
6462         HAVE_U_xxx_T defines.
6463
6464 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6465
6466         * console.c (stuff_buffered_input): Compile body only if
6467         HAVE_TTY.
6468
6469 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6470
6471         * callproc.c: #include sysdir.h, so that any appropriate Mule
6472         magic happens with the chdir() call when calling a subprocess. 
6473
6474 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6475
6476         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6477         * mule-ccl.c: Check that a character set exists before using it
6478         to create a character. 
6479
6480 2005-12-06  Vin Shelton  <acs@xemacs.org>
6481
6482         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6483         to INT_MAX.
6484
6485 2005-12-03  Vin Shelton <acs@xemacs.org>
6486
6487         * XEmacs 21.4.18 is released
6488
6489 2005-11-27  Kean Johnston <kean@armory.com>
6490
6491         * redisplay-tty.c (set_tty_modes):
6492         (reset_tty_modes): disable auto-margins if the terminal supports
6493         them.
6494         (init_tty_for_redisplay): fix cursor shape.
6495
6496 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6497
6498         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6499         for control-1 characters properly, both when reading multibyte
6500         characters and writing them. 
6501
6502 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6503
6504         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6505         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6506         were seeing with incremental selection transfer failing. 
6507
6508 2005-11-26  Vin Shelton  <acs@xemacs.org>
6509
6510         * callproc.c (Fold_call_process_internal): Create the buffer if it
6511         does not already exist.  The original patch came from Ben Wing in
6512         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6513
6514 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6515
6516         * callproc.c: Process-related docstring improvements spurred by
6517         Norbert Koch.
6518
6519 2005-11-25  Vin Shelton  <acs@xemacs.org>
6520
6521         * depend: Regenerated.
6522
6523 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6524
6525         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6526         says it clashes with a global with the same name.
6527
6528 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6529
6530         * sysdll.c (dll_open): Under MacOS X return NULL under the
6531         filename is NULL.  Fixes problems finding local symbols under 10.4
6532         (Tiger)
6533
6534 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6535         
6536         * config.h.in: New HAVE_U_INT*_T defines.
6537         
6538         * database.c: Only use u_int*_t typedefs if not already
6539         defined.
6540
6541 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6542
6543         * src/process-unix.c (unix_open_network_stream): moved
6544           'portbuf' buffer out of an inner block as it is used in the
6545           entire function. With gcc4, the stack may get corrupted
6546           after leaving this block. This patches adjusts the size of
6547           the used buffer also; static '128' bytes are far too much
6548           currently and might not suffice for future architectures
6549           (e.g. for 512 bit ones ;)). Instead of, use only the really
6550           required space (max octets * ln(256)/ln(10) chars + space
6551           for '\0' and the sign)
6552
6553 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6554
6555         * callproc.c: Include sysdir.h, so any necessary Mule processing
6556         is done on the current directory name before starting a new
6557         process.
6558
6559 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6560
6561         * chartab.c (Fchar_table_p):
6562         (Fget_range_char_table):
6563         (Fput_char_table):
6564         (Fmap_char_table):
6565         Describe range representation and fix typo.
6566
6567 2005-02-12  Vin Shelton  <acs@xemacs.org>
6568
6569         * emacs.c (shut_down_emacs): Advise users to send email to the
6570         xemacs-beta list instead of crashes@xemacs.org.
6571
6572 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6573
6574         * process-unix.c (unix_send_process): Flush the last chunk, even
6575         when the pipe is blocked.
6576
6577 2005-02-06  Vin Shelton <acs@xemacs.org>
6578
6579         * XEmacs 21.4.17 is released
6580
6581 2005-01-31  Ben Wing  <ben@xemacs.org>
6582
6583         * emacs.c:
6584         Define assert_failed() always.
6585         * lisp.h:
6586         Always define ABORT().
6587
6588 2005-01-25  Ben Wing  <ben@xemacs.org>
6589
6590         * Makefile.in.in:
6591         * Makefile.in.in (%.o):
6592         Don't compile executable as Windows (-mwindows) under Cygwin.
6593         Semi-recent changes to Cygwin's executable-startup handling make
6594         it impossible to access the TTY this way.
6595
6596         Don't use special linker file under Cygwin (cygwin.sc) except
6597         when non-PDUMP (even in this case it is highly questionable); you
6598         get errors like
6599
6600       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6601    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6602
6603 2005-01-29  Ben Wing  <ben@xemacs.org>
6604
6605         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6606
6607         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6608
6609 2005-01-29  Ben Wing  <ben@xemacs.org>
6610
6611         * bytecode.c (optimize_compiled_function):
6612         * print.c (FROB):
6613         * print.c (long_to_string):
6614         Add casts to avoid warning.
6615         
6616         * glyphs-eimage.c:
6617         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6618         #### The better solution is to move the TIFF and JPEG code to
6619         different files.
6620         
6621         * glyphs-msw.c (mswindows_xbm_instantiate):
6622         Define __STDC__ to avoid problems with compface.h.
6623         
6624         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6625         * EmacsShell-sub.c:
6626         * EmacsShell-sub.c (ABORT):
6627         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6628         * EmacsShell-sub.c (RootGeometryManager):
6629         * EmacsShell.c:
6630         * EmacsShell.c (ABORT):
6631         * EmacsShell.c (EmacsShellUpdateSizeHints):
6632         * alloc.c (free_lcrecord):
6633         * alloca.c (i00afunc):
6634         * buffer.c (delete_from_buffer_alist):
6635         * buffer.c (MARKED_SLOT):
6636         * bytecode.c (execute_rare_opcode):
6637         * bytecode.c (optimize_byte_code):
6638         * bytecode.c (Ffetch_bytecode):
6639         * chartab.c (char_table_type_to_symbol):
6640         * chartab.c (Freset_char_table):
6641         * chartab.c (decode_char_table_range):
6642         * chartab.c (Fget_range_char_table):
6643         * chartab.c (check_valid_char_table_value):
6644         * chartab.c (map_char_table):
6645         * chartab.c (slow_map_char_table_fun):
6646         * chartab.c (chartab_instantiate):
6647         * cm.c (cmcheckmagic):
6648         * console-msw.c (DHEADER):
6649         * console.c (MARKED_SLOT):
6650         * data.c (finish_marking_weak_lists):
6651         * data.c (encode_weak_list_type):
6652         * debug.h (DASSERT):
6653         * device-gtk.c (gtk_init_device):
6654         * device-msw.c (mswindows_get_default_margin):
6655         * device-tty.c (tty_init_device):
6656         * device-x.c (get_device_from_display):
6657         * device-x.c (x_get_visual_depth):
6658         * doprnt.c (parse_doprnt_spec):
6659         * doprnt.c (get_doprnt_args):
6660         * dumper.c (pdump_get_indirect_count):
6661         * dumper.c (pdump_register_sub):
6662         * dumper.c (pdump_register_object):
6663         * dumper.c (pdump_register_struct):
6664         * dumper.c (pdump_dump_data):
6665         * dumper.c (pdump_reloc_one):
6666         * elhash.c (print_hash_table):
6667         * elhash.c (make_standard_lisp_hash_table):
6668         * elhash.c (hash_table_instantiate):
6669         * emacs.c:
6670         * emacs.c (Fforce_debugging_signal):
6671         * emacs.c (sort_args):
6672         * emacs.c (main):
6673         * emacs.c (assert_failed):
6674         * eval.c (throw_or_bomb_out):
6675         * eval.c (signal_1):
6676         * eval.c (Fsignal):
6677         * event-Xt.c:
6678         * event-Xt.c (emacs_Xt_mapping_action):
6679         * event-Xt.c (Xt_process_to_emacs_event):
6680         * event-msw.c:
6681         * event-stream.c (check_event_stream_ok):
6682         * event-stream.c (Fadd_timeout):
6683         * event-stream.c (Fadd_async_timeout):
6684         * event-stream.c (Fdiscard_input):
6685         * event-stream.c (execute_internal_event):
6686         * event-stream.c (Frecent_keys):
6687         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6688         * event-stream.c (lookup_command_event):
6689         * event-unixoid.c (poll_fds_for_input):
6690         * events.c:
6691         * events.c (mark_event):
6692         * events.c (event_equal):
6693         * events.c (event_hash):
6694         * events.c (Fmake_event):
6695         * events.c (Fdeallocate_event):
6696         * events.c (event_chain_find_previous):
6697         * events.c (event_to_character):
6698         * events.c (format_event_object):
6699         * events.c (Fevent_type):
6700         * events.c (event_pixel_translation):
6701         * events.c (Fevent_properties):
6702         * extents.c (extent_in_region_p):
6703         * extents.c (print_extent):
6704         * extents.c (process_extents_for_insertion_mapper):
6705         * extents.c (report_extent_modification_mapper):
6706         * extents.c (glyph_layout_to_symbol):
6707         * faces.c (face_validate):
6708         * file-coding.c (eol_type_to_symbol):
6709         * file-coding.c (subsidiary_coding_system):
6710         * file-coding.c (Fcoding_system_type):
6711         * file-coding.c (Fcoding_system_property):
6712         * file-coding.c (mule_decode):
6713         * file-coding.c (mule_encode):
6714         * file-coding.c (encode_coding_ucs4):
6715         * file-coding.c (encode_coding_utf8):
6716         * file-coding.c (parse_iso2022_esc):
6717         * file-coding.c (encode_coding_iso2022):
6718         * fileio.c:
6719         * fns.c (concat):
6720         * fns.c (Fsubseq):
6721         * fns.c (mapcar1):
6722         * fns.c (Fbase64_encode_region):
6723         * fns.c (Fbase64_encode_string):
6724         * fns.c (Fbase64_decode_region):
6725         * fns.c (Fbase64_decode_string):
6726         * font-lock.c (find_context):
6727         * font-lock.c (context_to_symbol):
6728         * frame-gtk.c (gtk_set_frame_pointer):
6729         * frame-gtk.c (gtk_update_frame_external_traits):
6730         * frame-x.c (x_wm_mark_shell_size_user_specified):
6731         * frame-x.c (x_wm_mark_shell_position_user_specified):
6732         * frame-x.c (x_wm_set_shell_iconic_p):
6733         * frame-x.c (x_wm_set_cell_size):
6734         * frame-x.c (x_wm_set_variable_size):
6735         * frame-x.c (x_wm_store_class_hints):
6736         * frame-x.c (x_wm_maybe_store_wm_command):
6737         * frame-x.c (x_initialize_frame_size):
6738         * frame-x.c (x_update_frame_external_traits):
6739         * frame.c:
6740         * frame.c (delete_frame_internal):
6741         * frame.c (mouse_pixel_position_1):
6742         * frame.c (change_frame_size_1):
6743         * free-hook.c (check_free):
6744         * free-hook.c (check_realloc):
6745         * free-hook.c (note_block_input):
6746         * free-hook.c (log_gcpro):
6747         * gccache-gtk.c (gc_cache_lookup):
6748         * glyphs-eimage.c (tiff_memory_write):
6749         * glyphs-gtk.c (gtk_finalize_image_instance):
6750         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6751         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6752         * glyphs-gtk.c (gtk_xpm_instantiate):
6753         * glyphs-gtk.c (gtk_unmap_subwindow):
6754         * glyphs-gtk.c (gtk_map_subwindow):
6755         * glyphs-gtk.c (gtk_button_redisplay):
6756         * glyphs-msw.c:
6757         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6758         * glyphs-x.c (init_image_instance_from_xbm_inline):
6759         * glyphs-x.c (extract_xpm_color_names):
6760         * glyphs-x.c (x_xpm_instantiate):
6761         * glyphs.c (get_image_instantiator_governing_domain):
6762         * glyphs.c (print_image_instance):
6763         * glyphs.c (image_instance_equal):
6764         * glyphs.c (image_instance_hash):
6765         * glyphs.c (encode_image_instance_type):
6766         * glyphs.c (make_image_instance_1):
6767         * glyphs.c (inherit_instantiate):
6768         * glyphs.c (image_instantiate):
6769         * glyphs.c (allocate_glyph):
6770         * glyphs.c (Fglyph_type):
6771         * glyphs.c (redisplay_subwindow):
6772         * glyphs.c (display_table_entry):
6773         * gtk-glue.c (xemacs_list_to_gtklist):
6774         * gtk-glue.c (xemacs_gtklist_to_list):
6775         * gtk-glue.c (xemacs_list_to_array):
6776         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6777         * gutter.c (gutter_was_visible):
6778         * gutter.c (get_gutter_coords):
6779         * input-method-xlib.c (get_XIM_input):
6780         * insdel.c (bufpos_to_bytind_func):
6781         * insdel.c (bytind_to_bufpos_func):
6782         * insdel.c (move_gap):
6783         * intl.c (x_get_composed_input):
6784         * keymap.c (keymap_lookup_directly):
6785         * keymap.c (keymap_delete_inverse_internal):
6786         * keymap.c (ensure_meta_prefix_char_keymapp):
6787         * keymap.c (accessible_keymaps_mapper_1):
6788         * keymap.c (where_is_recursive_mapper):
6789         * lisp.h:
6790         * lisp.h (ABORT):
6791         * lread.c (read_atom):
6792         * lstream.c (Lstream_delete):
6793         * lstream.c (make_lisp_buffer_stream_1):
6794         * macros.c (pop_kbd_macro_event):
6795         * malloc.c (malloc):
6796         * malloc.c (free):
6797         * marker.c (bi_marker_position):
6798         * marker.c (set_bi_marker_position):
6799         * menubar-gtk.c (menu_descriptor_to_widget_1):
6800         * menubar-msw.c (prune_menubar):
6801         * menubar-x.c (set_frame_menubar):
6802         * mule-charset.c (get_unallocated_leading_byte):
6803         * mule-charset.h (CHAR_LEADING_BYTE):
6804         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6805         * nt.c (init_environment):
6806         * nt.c (generate_inode_val):
6807         * ntproc.c (delete_child):
6808         * ntproc.c (_sys_read_ahead):
6809         * ntproc.c (create_child):
6810         * objects.c (color_instantiate):
6811         * objects.c (font_instantiate):
6812         * objects.c (face_boolean_instantiate):
6813         * print.c (printing_major_badness):
6814         * process-nt.c (nt_send_process):
6815         * process-unix.c (unix_send_process):
6816         * process.c (get_process):
6817         * ralloc.c (obtain):
6818         * ralloc.c (relinquish):
6819         * ralloc.c (relocate_blocs):
6820         * ralloc.c (resize_bloc):
6821         * ralloc.c (r_alloc_free):
6822         * ralloc.c (r_re_alloc):
6823         * ralloc.c (r_alloc_thaw):
6824         * ralloc.c (init_ralloc):
6825         * ralloc.c (Free_Addr_Block):
6826         * ralloc.c (r_alloc):
6827         * redisplay-gtk.c (gtk_output_display_block):
6828         * redisplay-msw.c (mswindows_output_display_block):
6829         * redisplay-output.c (get_next_display_block):
6830         * redisplay-output.c (get_cursor_size_and_location):
6831         * redisplay-output.c (redisplay_output_layout):
6832         * redisplay-output.c (redisplay_clear_region):
6833         * redisplay-tty.c (tty_output_display_block):
6834         * redisplay-x.c (x_output_display_block):
6835         * redisplay.c (add_propagation_runes):
6836         * redisplay.c (add_glyph_rune):
6837         * redisplay.c (create_text_block):
6838         * redisplay.c (add_margin_runes):
6839         * redisplay.c (create_left_glyph_block):
6840         * redisplay.c (create_right_glyph_block):
6841         * redisplay.c (create_string_text_block):
6842         * redisplay.c (regenerate_window):
6843         * redisplay.c (REGEN_INC_FIND_START_END):
6844         * redisplay.c (redisplay_frame):
6845         * redisplay.c (point_in_line_start_cache):
6846         * regex.c:
6847         * regex.c (ABORT):
6848         * regex.c (re_compile_fastmap):
6849         * regex.c (re_match_2_internal):
6850         * regex.c (regerror):
6851         * scrollbar-gtk.c (gtk_scrollbar_loop):
6852         * scrollbar-gtk.c (scrollbar_cb):
6853         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6854         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6855         * scrollbar-x.c (x_update_scrollbar_instance_status):
6856         * scrollbar-x.c (x_scrollbar_loop):
6857         * scrollbar-x.c (x_update_frame_scrollbars):
6858         * search.c (search_command):
6859         * search.c (Fmatch_data):
6860         * select-x.c (motif_clipboard_cb):
6861         * signal.c (interrupt_signal):
6862         * specifier.c (specifier_add_spec):
6863         * specifier.c (specifier_instance_from_inst_list):
6864         * specifier.c (specifier_instance):
6865         * specifier.h:
6866         * specifier.h (struct specifier_methods):
6867         * strftime.c (add_num_time_t):
6868         * sunplay.c (init_device):
6869         * symbols.c (Fsetplist):
6870         * symbols.c (do_symval_forwarding):
6871         * symbols.c (store_symval_forwarding):
6872         * symbols.c (Fset):
6873         * symbols.c (Fbuilt_in_variable_type):
6874         * symbols.c (decode_magic_handler_type):
6875         * symbols.c (handler_type_from_function_symbol):
6876         * syntax.c (update_syntax_cache):
6877         * sysdep.c (init_baud_rate):
6878         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6879         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6880         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6881         * toolbar.c (get_toolbar_coords):
6882         * ui-gtk.c (build_gtk_boxed):
6883         * ui-gtk.c (describe_gtk_arg):
6884         * ui-gtk.c (gtk_type_to_lisp):
6885         * ui-gtk.c (lisp_to_gtk_type):
6886         * ui-gtk.c (lisp_to_gtk_ret_type):
6887         * ui-gtk.c (lisp_to_flag):
6888         * unexnt.c (read_in_bss):
6889         * unexnt.c (map_in_heap):
6890         * window.c (real_window):
6891         * window.c (window_display_lines):
6892         * window.c (window_display_buffer):
6893         * window.c (set_window_display_buffer):
6894         * window.c (window_modeline_height):
6895         * window.c (unshow_buffer):
6896         * window.c (window_loop):
6897         * window.c (Fget_lru_window):
6898         * window.c (Fsplit_window):
6899         * window.c (Fset_window_configuration):
6900         * window.c (saved_window_index):
6901         * xgccache.c (gc_cache_lookup):
6902         abort() -> ABORT().  Eliminate preprocessor games with abort()
6903         since it creates huge problems in VC7, solvable only by including
6904         massive amounts of files in every compile (and not worth it).
6905
6906         * sysdep.c:
6907         * sysproc.h:
6908         Inclusion of process.h does not need to be before lisp.h any more.
6909         Move later and remove comment about abort().
6910
6911 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6912
6913         * regex.c (re_match_2_internal):
6914         Correctly initialize loop which clears uninitialized registers.
6915
6916 2005-01-28  Vin Shelton  <acs@xemacs.org>
6917
6918         * sheap.c (more_static_core): Applied Ben's version of the long
6919         string patch.
6920
6921 2005-01-24  Vin Shelton  <acs@xemacs.org>
6922
6923         * sheap.c (more_static_core): Reformatted printf string so
6924         gcc-3.3.3 will compile this on Cygwin.
6925
6926 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6927
6928         * console.c (function_key_map): Reference `key-binding'.
6929
6930         * keymap.c (Vkey_translation_map): Improve docstring.
6931
6932 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6933
6934         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6935         * window.c (window_loop): [fix] Take into account
6936         `allow-deletion-of-last-visible-frame' variable.
6937         * window.c (replace-buffer-in-windows): Ditto.
6938
6939 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6940
6941         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6942
6943 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6944
6945         * event-gtk.c: Recognise AltGr as a valid modifier.
6946
6947 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6948
6949         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6950
6951 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6952
6953         Fix backreference bug caught by test suite.
6954
6955         * regex.c (regex_compile):
6956         Make backref duplicate internal register.
6957
6958 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6959
6960         Documentation, code clarification, and warning suppression.
6961         
6962         * regex.c (regex_compile):
6963         Improve comments.
6964         (re_match_2_internal):
6965         Improve comments and avoid redundant braces.  [Most of the big hunk
6966         at l. 4710 is indentation; use diff -w to see the real changes.]
6967         (alt_match_null_string_p):
6968         (common_op_match_null_string_p):
6969         Avoid shadowing global on Mac OS X 10.4, at least.
6970
6971 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6972
6973         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6974         introduced with shy groups fix).  [Already applied, probably
6975         with the second "fix shy groups" patch of 2004-10-07.] 
6976
6977 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6978
6979         From Andrey Slusar <anrays@gmail.com>:
6980
6981         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6982
6983 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6984
6985         * Makefile (RECURSIVE_MAKE): Removed.
6986         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6987         handling parallel builds.
6988
6989 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6990
6991         * Makefile.in.in: Enable support for parallel builds.
6992
6993 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6994
6995         From Andrey Slusar <anrays@gmail.com>:
6996
6997         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6998         FreeBSD version is >= 199701 _and_ < 600006.
6999
7000 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
7001
7002         * scrollbar.c (compute_scrollbar_instance_usage):
7003         Only call device method compute_scrollbar_instance_usage() if it
7004         is defined.
7005
7006 2004-12-05  Vin Shelton <acs@xemacs.org>
7007
7008         * XEmacs 21.4.16 is released
7009
7010 2004-12-04  Vin Shelton  <acs@xemacs.org>
7011
7012         * depend: Regenerated.
7013
7014 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
7015
7016         * regex.c (re_match_2_internal): Map internal to external
7017         registers.  Fixes bug identified by Steve Youngs 2004-09-30
7018         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
7019
7020 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
7021
7022         * buffer.c (Frecord_buffer): Make sure the argument is buffer
7023         to fix a crash.  Also, check the buffer is live and it
7024         really exists in buffer_list.  If the buffer is not in the list,
7025         prepend it.
7026
7027 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
7028
7029         Fix shy groups by implementing recording of all groups for
7030         repetition and backtracking.  Backport from 21.5.
7031         
7032         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
7033         external_to_internal_register, external_to_internal_register_size,
7034         and update comments for re_nsub.
7035
7036         * regex.c (re_opcode_t): Update comments.
7037         (print_compiled_pattern): Ouput external_to_internal_register,
7038         external_to_internal_register_size, and re_ngroups for debugging.
7039         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
7040         (regex_compile): Update header comment.
7041         Ensure that all groups are recorded so that repeat matches and
7042         backtracking work correctly.  Comment related warning for groups >
7043         255.
7044         (re_search_2): Construct map of API indexes (which count only
7045         nonshy groups) to internal register numbers, and keep it updated.
7046
7047 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
7048
7049         * frame-gtk.c (gtk_make_frame_visible):
7050         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
7051         show/hide.  This is what X uses and is prevents previously hidden
7052         widgets from suddenly reappearing.
7053         * gtk-xemacs.c (gtk_xemacs_paint):
7054         * gtk-xemacs.c (gtk_xemacs_draw):
7055         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
7056         drawable.
7057         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
7058         size and location changes so that they can be seen before the next
7059         idle event.  Without this rapid changes to scrollbar properties
7060         are not seen.
7061
7062 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
7063
7064         * console-gtk.h:
7065         * console-gtk.h (struct gtk_frame):
7066         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
7067           Add hash tables track tab_control callback data.
7068           Added #defines for GTK object data names.
7069           Declaration of gtk_widget_to_frame().
7070         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
7071         * frame-gtk.c (gtk_widget_to_frame): New.
7072         * frame-gtk.c (gtk_create_widgets):
7073         * frame-gtk.c (allocate_gtk_frame_struct):
7074         * frame-gtk.c (gtk_mark_frame):
7075         Manage frame callbakc hash tables.
7076         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
7077         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
7078         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
7079         of widget size.
7080         * glyphs-gtk.c (gtk_widget_query_geometry): New
7081         * glyphs-gtk.c (gtk_register_gui_item): New
7082         * glyphs-gtk.c (gtk_add_tab_item): New
7083         * glyphs-gtk.c (gtk_tab_control_callback): New
7084         * glyphs-gtk.c (gtk_tab_control_instantiate): New
7085         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
7086         Use correct list when loading item.
7087         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
7088         Register new methods.
7089         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
7090         default size, for widgets.
7091         * gui-x.c:  Improved comment.
7092         * menubar-gtk.c (__generic_button_callback): Use
7093         gtk_widget_to_frame instead of __get_channel.
7094         * scrollbar-gtk.c:
7095         * ui-gtk.c: Use symbolic names for GTK object data.
7096
7097 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
7098
7099         * s/usg5-4.h (NSIG): Define only inside emacs binary.
7100
7101 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
7102
7103         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
7104
7105 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
7106
7107         * malloc.c (morecore): siz is a long because in some architectures
7108         (eg ia-64) an int cannot hold the address range.  Additional patch
7109         from the SuSe distribution.
7110
7111 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
7112
7113         * emacs.c:
7114         * malloc.c: lim_data is a long because in some architectures
7115         (eg ia-64) an int cannot hold the address range.
7116         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
7117         instead of ulimit() because ulimit() always returns -1.
7118
7119 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
7120
7121         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
7122
7123 2004-06-11  David Kastrup  <dak@gnu.org>
7124
7125         * search.c (match_limit): Don't flag an error if match-data
7126         exceeding the allocated search_regs.num_regs gets requested, just
7127         return Qnil.
7128
7129 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7130
7131         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
7132         replace symbolic color entries with the real colors specified in
7133         xpm-color-symbols, before passing the XPM to gtk.
7134         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
7135         instead of a GTK specific field, so that it is used in by generic
7136         code.
7137
7138 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
7139
7140        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
7141         coredump from deref of NULL ptr (ExtData)
7142
7143 2004-04-19  Jerry James  <james@xemacs.org>
7144
7145         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
7146         VALBITS to compute the location of the sign bit.
7147         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
7148         of VALBITS with EMACS_INT_MAX.
7149         * events.c (Fevent_timestamp): Ditto.
7150         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
7151         compute the halfway point to timestamp wraparound.
7152         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
7153         EMACS_INT_MIN instead of using VALBITS.
7154         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
7155         incorrect number with VALBITS.
7156         * fns.c (Frandom): Correct number of integer bits in docstring.
7157         Use INT_VALBITS instead of VALBITS to compute the denominator.
7158         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
7159         build random numbers.
7160
7161 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7162         * event-gtk.c:
7163         * event-gtk.c (gtk_event_to_emacs_event):
7164         * menubar-gtk.c:
7165         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
7166         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
7167         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
7168         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
7169         * menubar-gtk.c (__activate_menu):
7170         * menubar-gtk.c (convert_underscores):
7171         * menubar-gtk.c (remove_underscores):
7172         * menubar-gtk.c (menu_convert):
7173         * menubar-gtk.c (menu_descriptor_to_widget_1):
7174         * menubar-gtk.c (menu_descriptor_to_widget):
7175         * menubar-gtk.c (menu_can_reuse_widget):
7176         * menubar-gtk.c (menu_create_menubar):
7177         * menubar-gtk.c (gtk_popup_menu):
7178         * menubar-gtk.c (Fgtk_build_xemacs_menu):
7179         Added support for Gtk menu bar and menu item mnemonics.
7180
7181 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7182
7183         * sysdll.c: (dll_function): Added support for finding symbols in
7184         Darwin shared libraries as well in Darwin bundles.
7185         * sysdll.c (image_for_address): New
7186         * sysdll.c (my_find_image): New
7187         * sysdll.c (search_linked_libs): New
7188
7189 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7190
7191         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
7192         return to GTK requires a different API to marshalling data to use
7193         as GTK parameters.
7194         * ui-gtk.c (lisp_to_gtk_ret_type): New.
7195
7196 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
7197
7198         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
7199
7200 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7201
7202         * glyphs.c (process_image_string_instantiator):
7203         (Fset_console_type_image_conversion_list):
7204         Stop GCC from warning about shadowing of `exp'.
7205
7206         * redisplay-x.c (x_output_string): Fix unsigned lossage.
7207
7208 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7209
7210         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
7211
7212 2004-02-03  Vin Shelton  <acs@xemacs.org>
7213
7214         * glyphs.c (image_instance_layout): Remove pointless assertion.
7215         * regex.c (regex_grow_registers): Return type is void.
7216
7217 2004-02-02  Vin Shelton <acs@xemacs.org>
7218
7219         * XEmacs 21.4.15 is released
7220
7221 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
7222
7223         * device-x.c (x_error_handler): Don't call stderr_out
7224
7225 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
7226
7227         * buffer.c (other-buffer): Clarify documentation of order of
7228         arguments for FSF Emacs.
7229
7230 2003-10-11  Olivier Galibert  <galibert@pobox.com>
7231
7232         * window.c (Fdelete_window): Dirty the mirror structure _before_
7233         marking the window deleted.
7234
7235 2003-09-15  Jerry James  <james@xemacs.org>
7236
7237         * event-msw.c (debug_mswin_messages): Conditionally compile
7238         messages missing from the Cygwin headers.
7239
7240 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
7241
7242         * data.c (eq_with_ebola_notice): Fix typo in comment.
7243         (Ftrue_list_p): Improve docstring.
7244
7245 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
7246
7247         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
7248
7249 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
7250
7251         * search.c (trivial_regexp_p): Regexps containing "\{" are
7252         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
7253         Stefan Monnier for suggesting a diagnosis.
7254
7255 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
7256
7257         * elhash.c (make-hash-table): Clarify use of :test #'equal.
7258
7259 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
7260
7261         * search.c (Fsearch_forward):
7262         (Fsearch_backward):
7263         Document negative count.
7264
7265 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
7266
7267         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
7268
7269 2003-09-13  Martin Buchholz  <martin@xemacs.org>
7270
7271         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
7272
7273 2003-09-15  Vin Shelton  <acs@xemacs.org>
7274
7275         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
7276         21.5.
7277
7278 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7279
7280         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
7281         (re_search_2): Match the first byte of Bufbyte, not Emchar.
7282         (re_match_2_internal): Use TRANSLATE instead of
7283         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
7284         non-ASCII char case conversion.
7285
7286 2003-09-08  Mike Sperber  <mike@xemacs.org>
7287
7288         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
7289         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
7290
7291 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
7292
7293        * .gdbinit (pobj): fix printing of symbol name.
7294
7295 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
7296
7297         * frame-x.c (x_layout_widgets): When resizing is about to cause
7298         frame size slip, mark it for redisplay.
7299
7300 2003-08-18  Jerry James  <james@xemacs.org>
7301
7302         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
7303
7304 2003-09-03  Vin Shelton <acs@xemacs.org>
7305
7306         * XEmacs 21.4.14 is released
7307
7308 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
7309
7310         * config.h.in (REGEX_MALLOC): Make it configure'able.
7311
7312 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
7313
7314         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
7315         linking.
7316         * sysdll.c (dll_init):
7317         * sysdll.c (dll_open):
7318         * sysdll.c (dll_close):
7319         * sysdll.c (dll_function):
7320         * sysdll.c (dll_variable):
7321         * sysdll.c (dll_error):
7322         Add support for loading bundles using Darwin/MacOSX
7323         native API.
7324
7325 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
7326
7327         * process.c (start-process-internal): Document coding systems.
7328
7329 2003-07-30  Jerry James  <james@xemacs.org>
7330
7331         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
7332
7333 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
7334
7335         * event-msw.c (mswindows_enqueue_mouse_button_event):
7336         * event-msw.c (mswindows_wnd_proc):
7337           enqueue button event when scrollwheel event isn't handled by 
7338           mswindows_handle_mousewheel_event, such as when the scrollbars
7339           are not showing.
7340
7341 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
7342
7343         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
7344
7345 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
7346
7347         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
7348
7349 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
7350
7351         * regex.c (re_match_2_internal): Fix matching degenerate word
7352         boundaries.
7353
7354 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
7355
7356         * XEmacs 21.4.13 is released
7357
7358 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
7359
7360         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
7361         * lisp.h (<inttypes.h>):
7362         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
7363         the definition.
7364
7365 2003-03-15  Martin Buchholz  <martin@xemacs.org>
7366
7367         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7368         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7369         Result: "temacs can only be run in -batch mode."
7370         Fix: Check xemacs executable candidate for directory-ness.
7371
7372 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7373
7374         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7375           they conflict with <sys/types.h>.
7376
7377 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7378
7379         * database.c: Berkeley DB wants __STDC__ to be defined.
7380
7381 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7382
7383         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7384
7385 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7386
7387         * process-unix.c (unix_send_process): Fix C++ compile error.
7388
7389 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7390
7391         * Added .dylib as an acceptable shared library file extension
7392         * to support MacOSX.
7393
7394 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7395
7396         * EmacsFrameP.h (EmacsFramePart):
7397         Kludge to allow compiling with Motif1, but linking with Motif2.
7398
7399 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7400
7401         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7402
7403
7404 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7405
7406         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7407
7408 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7409
7410         * sysdll.c: Included lisp.h to define needed alloca_array.
7411
7412 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7413
7414         Make XEmacs redisplay 10 times faster.
7415         If, that is, you're using a slow X connection and MoveOpaque.
7416         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7417         Use compress_motion = TRUE.
7418         * EmacsFrame.c (emacsFrameClassRec): 
7419         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7420         * EmacsManager.c (emacsManagerClassRec):
7421         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7422
7423 2003-01-30  Vin Shelton  <acs@xemacs.org>
7424
7425         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7426
7427 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7428
7429         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7430         Patch by Martin Buchholz.
7431
7432 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7433
7434         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7435         Thanks to icc for warning and Martin Buchholz for reporting.
7436
7437 2003-01-29  Vin Shelton <acs@xemacs.org>
7438
7439         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7440
7441         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7442         remember to multiply by the element size.
7443
7444 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7445
7446         * XEmacs 21.4.12 "Portable Code" is released.
7447
7448 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7449
7450         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7451         * s/cygwin.sc: new linker file.
7452
7453 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7454
7455         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7456
7457         * redisplay-x.c (x_output_string): Use X11-specified types.
7458         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7459         * emacs.c (__free_hook): Use typeof with Intel compiler.
7460         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7461
7462 2003-01-08  Andy Piper  <andy@xemacs.org>
7463
7464         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7465         reserve size during unexec().
7466
7467 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7468
7469         * process-unix.c (unix_create_process): Don't let outchannel block.
7470
7471 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7472
7473         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7474         Needed for IsBadReadPtr().
7475
7476 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7477
7478         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7479
7480 2002-12-14  Ben Wing  <ben@xemacs.org>
7481
7482         * callint.c: Declaration error.
7483         * dumper.c (pdump):
7484         * dumper.c (pdump_load): Warning fix.
7485         * process.c: GCPRO error.
7486         * glyphs.c (unmap_subwindow):
7487         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7488         * event-stream.c (maybe_kbd_translate): Wrong argument to
7489         character_to_event().
7490
7491         * alloc.c (garbage_collect_1):
7492         * emacs.c:
7493         * emacs.c (debug_can_access_memory):
7494         * emacs.c (fatal_error_signal):
7495         * emacs.c (mswindows_handle_hardware_exceptions):
7496         * emacs.c (main_1):
7497         * emacs.c (main):
7498         * emacs.c (assert_failed):
7499         * emacs.c (syms_of_emacs):
7500         * lisp.h:
7501         * print.c:
7502         * print.c (std_handle_out_va):
7503         * print.c (write_string_to_stdio_stream):
7504         * print.c (write_fmt_string):
7505         * print.c (printing_badness):
7506         * print.c (printing_major_badness):
7507         * print.c (print_internal):
7508         * print.c (debug_print_no_newline):
7509         * print.c (debug_backtrace):
7510         Be more defensive in handling bad values when printing.  Add code
7511         from trunk involving inhibit_non_essential_printing_operations.
7512         When going down or in debug_print(), don't do external conversion
7513         and such and try really, really hard when printing to avoid core
7514         dumping.  Add force-debugging-signal, debug_break().
7515
7516 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7517
7518         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7519         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7520
7521 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7522
7523         * database.c: Fix open_database. Berkeley DB API has changed in
7524         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7525
7526 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7527
7528         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7529
7530 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7531
7532         * event-Xt.c (Xt_timeout):
7533         (Xt_timeout_callback):
7534         (emacs_Xt_add_timeout):
7535         (emacs_Xt_remove_timeout):
7536         (Xt_timeout_to_emacs_event):
7537         Turn completed_timeouts from a stack into a queue.  Fixes
7538         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7539
7540 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7541
7542         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7543         * emacs.c (main): Assert that mmap'd allocation is disabled.
7544
7545 2002-10-14  Andy Piper  <andy@xemacs.org>
7546
7547         * glyphs-widget.c (layout_query_geometry): add in fiddle
7548         factor. Include border text in width layout calculation.
7549         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7550
7551 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7552
7553         * XEmacs 21.4.10 "Military Intelligence" is released.
7554
7555 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7556
7557         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7558         using the NAS private array SoundFileInfo that no longer exists in
7559         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7560         and earlier.  This is broken for some versions between 1.5a and
7561         1.5f.
7562
7563 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7564
7565         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7566
7567         * emacs.c (shut_down_emacs): Improve crash message.
7568
7569 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7570
7571         * file-coding.c (determine_real_coding_system): Check for coding
7572         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7573         shebangs and Python PEP 263.
7574
7575 2002-10-08  Andy Piper  <andy@xemacs.org>
7576
7577         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7578         if static sizes haven't been set.
7579
7580 2002-08-30  Mike Alexander  <mta@arbortext.com>
7581
7582         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7583         to close a socket.
7584
7585 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7586
7587         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7588
7589 2002-09-20  Mike Sperber <mike@xemacs.org>
7590
7591         (This partially gets back my patch from 2002-07-20 without the
7592         bug.)
7593         * callproc.c (child_setup): Remove Ben's comment noting confusion
7594         over the file descriptors >= 3: close_process_descs() doesn't
7595         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7596         * process-unix.c (unix_create_process): Call
7597         begin_dont_check_for_quit to inhibit unwanted interaction (and
7598         thus breaking of X event synchronicity) in the child.
7599
7600 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7601
7602         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7603         widget.
7604
7605 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7606
7607         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7608         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7609         the xemacs process did not exit, but looped infinitely here.  This
7610         fixes that problem.
7611
7612 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7613
7614         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7615         (find_context): Improve comments.
7616
7617         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7618         (re_match_2): An XCHAR_TABLE operation was missing.
7619
7620         Many of the following changes were inspired by Andy Piper's (now
7621         obsolete) patch to make syntax-table text property lookup optional.
7622
7623         [Documentation]
7624
7625         * syntax.h (top level): Document semantics of syntax flags.
7626         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7627         * syntax.c, syntax.h (top level): Document syntax cache better in
7628         comments.
7629
7630         [Instrument syntax caching (temporary change)]
7631
7632         * syntax.h (enum syntax_cache_statistics_functions, struct
7633         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7634         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7635         * syntax.c (scan_words, Fforward_comment, scan_lists,
7636         Fbackward_prefix_characters):
7637         * font-lock.c (find_context):
7638         Use them to instrument syntax caching. 
7639         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7640         syntax_cache_statistics_function_names): New type and variables.
7641         * syntax.c (update_syntax_cache): Update and report statistics.
7642
7643         [Major syntax cache optimizations]
7644
7645         syntax.c (lookup_syntax_properties): Default off.
7646
7647         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7648         * syntax.c (update_syntax_cache):
7649         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7650
7651         [Minor syntax cache optimizations and code clarifications]
7652
7653         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7654         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7655         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7656         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7657         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7658         (Code clarification.)
7659
7660         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7661         scan_lists): Compute code from syncode, use Boolean macros instead
7662         of redundant masking operations.  (Code clarification; any decent
7663         compiler can do this optimization.)
7664
7665         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7666         for clarity.
7667
7668         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7669         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7670         use F*_single_property_change instead of F*_extent_change.
7671         Currently F*_single_property_change is _much_ less efficient.
7672
7673         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7674         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7675         syntax_cache.object properly, don't leave Qt or Qnil.
7676         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7677         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7678         tests for Qt or Qnil.
7679
7680 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7681
7682         * redisplay.c (point_in_line_start_cache): 
7683         * extents.c (print_extent_1):
7684         Fix warnings.
7685
7686         * extents.c (Fset_extent_property): Document `syntax-table' property.
7687
7688         * extents.h (Fnext_single_property_change): EXFUN it.
7689
7690 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7691
7692         * search.c (clear_unused_search_regs): New static function.
7693         (search_buffer): 
7694         (simple_search): 
7695         (boyer_moore):
7696         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7697         Minor clarifications in comments.
7698
7699         * regex.c (re_match_2_internal): Ensure no stale submatches.
7700
7701 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7702
7703         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7704
7705 2002-08-29  Jerry James  <james@xemacs.org>
7706
7707         * lisp.h: structrures -> structures.
7708
7709 2002-06-03  Andy Piper  <andy@xemacs.org>
7710
7711         * frame.c (frame_conversion_internal): add conversion appropriate
7712         for setting frame dimensions in pixels.
7713
7714         * console.h (struct console_methods): add device-specific widget
7715         layout functions.
7716
7717         * emacs.c (main_1): initialize glyph vars.
7718
7719         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7720         (handle_focus_event_2): new function. Allow focus to
7721         be set to a particular window and widget.
7722         (enqueue_focus_event): new function. Create a
7723         synthetic focus event.
7724         (emacs_Xt_handle_magic_event): call
7725         handle_focus_event_2.
7726
7727         * frame.c (Fset_frame_pixel_height): new function. Allow
7728         pixel-based sizing. Does the right thing on character-oriented
7729         displays.
7730         (Fset_frame_pixel_width): ditto.
7731         (Fset_frame_pixel_size): ditto.
7732         (syms_of_frame): declare.
7733
7734         * general-slots.h: add :vertically-justify and
7735         :horizontally-justify.
7736
7737         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7738         (mswindows_widget_border_width): new function.
7739         (mswindows_combo_box_instantiate): set border widths.
7740         (console_type_create_glyphs_mswindows): declare.
7741
7742         * glyphs-widget.c:
7743         (check_valid_justification): allow vertical and horizontal
7744         justification.
7745         (widget_border_width): new function. Call device methods.
7746         (widget_instance_border_width): ditto.
7747         (logical_unit_height): new function. Determine the height of a
7748         logical-unit. Logical units are intended to provide grid-like
7749         layout for subcontrols in a layout. If the layout is
7750         :vertically-justify top then subcontrols will be positioned on
7751         logical-unit boundaries, thus allowing adjacent subcontrols to
7752         line up.
7753         (widget_logical_unit_height): ditto for widgets.
7754         (redisplay_widget): misc cleanup.
7755         (widget_spacing): new function. Call device specific
7756         methods. Intended to be the default gap between adjacent widgets.
7757         (widget_query_geometry): use new spacing functions to determine
7758         appropriate geometry.
7759         (initialize_widget_image_instance): initialize horizontal and
7760         vertical justification.
7761         (widget_instantiate): use logica-units where appropriate for
7762         sizing large widgets.
7763         (button_query_geometry): use widget_instance_border_width.
7764         (tree_view_query_geometry): ditto.
7765         (tab_control_query_geometry): ditto.
7766         (edit_field_query_geometry): new function.
7767         (layout_update): pick up :justify, :horizontally-justify and
7768         :vertically-justify none of which worked previously. :justify is
7769         used as a fallback for both horizontal and vertical justification.
7770         (layout_query_geometry): use logical units to size appropriately.
7771         (layout_layout): ditto.
7772         (Fwidget_logical_to_character_width): new function. Allow users to
7773         convert from logical units to characters so that frame sizes can
7774         be set appropriately.
7775         (Fwidget_logical_to_character_height): ditto.
7776         (syms_of_glyphs_widget): declare.
7777         (image_instantiator_edit_fields): add edit_field_query_geometry.
7778         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7779         :horizontally-justify.
7780         (specifier_vars_of_glyphs_widget): new function. Declare
7781         Vwidget_border_width which is not yet used.
7782
7783         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7784         (x_widget_border_width): new function.
7785         (x_widget_instantiate): create a sensible name for widgets.
7786         (console_type_create_glyphs_x): declare x_widget_border_width.
7787
7788         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7789         (struct Lisp_Image_Instance): add :vertically-justify and
7790         :horizontally-justify.
7791         (LAYOUT_JUSTIFY_TOP): new.
7792         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7793         (ROUND_UP): new macro. Round argument up to next integral
7794         interval.
7795
7796         * redisplay-output.c (redisplay_output_layout): misc formatting.
7797
7798         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7799
7800 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7801
7802         * XEmacs 21.4.9 "Informed Management" is released.
7803
7804 2002-08-19  Andy Piper  <andy@xemacs.org>
7805
7806         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7807         win32 format.
7808
7809         * realpath.c (xrealpath): normalize drive spec also so that dir
7810         sep chars are not mixed on cygwin.
7811
7812 2002-08-06  Jerry James  <james@xemacs.org>
7813
7814         * window.c (Fsplit_window): Count only half of the divider width
7815         against the left window when splitting horizontally. 
7816
7817 2002-06-24  Andy Piper  <andy@xemacs.org>
7818
7819         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7820         toolbar was cleared.
7821
7822         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7823         function. Split out from mswindows_output_frame_toolbars.
7824         (mswindows_output_frame_toolbars): move clear pieces to
7825         mswindows_output_frame_toolbars.
7826
7827         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7828         out from gtk_output_frame_toolbars.
7829         (gtk_output_frame_toolbars): move clear pieces to
7830         gtk_clear_frame_toolbars.
7831
7832         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7833         the frame is cleared. How this ever worked before is a mystery.
7834         (x_output_frame_toolbars): Only output toolbars.
7835         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7836
7837         * gutter.c (update_gutter_geometry):
7838         Mark frame layout changed.
7839         (update_frame_gutter_geometry, update_frame_gutters):
7840         Respect frame_layout_changed.
7841
7842         * console.h (struct console_methods): add
7843         clear_frame_toolbars_method.
7844
7845         * redisplay.c (redisplay_frame): call
7846         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7847
7848         * toolbar.h: declare update_frame_toolbars_geometry.
7849
7850         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7851         out from update_frame_toolbars.  Call clear_frame_toolbars.
7852         (update_frame_toolbars): only output, do not change geometry.
7853
7854         * redisplay.c: add frame_layout_changed.
7855
7856         * redisplay.h: add frame_layout_changed.
7857         (CLASS_RESET_CHANGED_FLAGS): set it.
7858         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7859         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7860         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7861
7862         * device.h (struct device): add frame_layout_changed.
7863         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7864
7865         * frame.h (struct frame): add frame_layout_changed.
7866         (MARK_FRAME_LAYOUT_CHANGED): new.
7867
7868 2002-06-30  Mike Alexander  <mta@arbortext.com>
7869
7870         * event-msw.c (mswindows_need_event): Don't wait for a new message
7871         if the queue is not empty.  Suggested by Paul Moore.
7872
7873 2002-06-12  Andy Piper  <andy@xemacs.org>
7874
7875         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7876         for printing on accurately.
7877
7878 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7879
7880         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7881         WM_ACTIVATE message. Make sure that the frame is visible if the
7882         window is visible. This seemss to fix the problem where XEmacs
7883         appears to freeze after switching desktops with certain virtual
7884         window managers.
7885         (debug_output_mswin_message): Added code to output message
7886         parameters for WM_WINDOWPOSCHANGED, 
7887         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7888
7889 2002-05-25  Andy Piper  <andy@xemacs.org>
7890
7891         * select-x.c (vars_of_select_x): Fix docstring of
7892         x-selection-strict-motif-ownership
7893
7894 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7895
7896         * keymap.c (get_keymap):
7897         Add comment about do_autoload GCPROs own args.
7898
7899 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7900
7901         * bytecode.c (execute_optimized_program): check_opcode ifdef
7902         ERROR_CHECK_BYTE_CODE.
7903
7904 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7905
7906         Thanks to Ben Wing and Michael Sperber.
7907
7908         * eval.c (Fcommand_execute):
7909         (Feval):
7910         (Ffuncall):
7911         (Fmacroexpand_internal):
7912         (function_argcount):
7913         callint.c (Fcall_interactively):
7914         Add comment about do_autoload GCPROs own args.
7915
7916         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7917
7918         * eval.c (Ffuncall): Extra braces to placate GCC.
7919
7920 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7921
7922         * backtrace.h (grow_specpdl):
7923         (SPECPDL_RESERVE):
7924         * EmacsFrame.c (EmacsFrameSetValues):
7925         * eval.c (grow_specpdl):
7926         * ExternalShell.c (hack_event_masks_1):
7927         * glyphs-x.c (convert_EImage_to_XImage): 
7928         (x_finalize_image_instance):
7929         * ralloc.c (page_size):
7930         (r_alloc_sbrk):
7931         * xgccache.c (gc_cache_hash):
7932         Fix unsigned comparison warnings.
7933
7934 2002-07-29  Jerry James  <james@xemacs.org>
7935
7936         * lread.c (locate_file): Any nonnegative return value indicates
7937         success if MODE is nonnegative.
7938
7939 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7940
7941         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7942         argument. 
7943
7944 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7945
7946         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7947
7948         * dumper.c (pdump_get_indirect_count):
7949         (pdump_scan_by_alignment):
7950         (pdump_dump_root_struct_ptrs):
7951         (pdump_dump_rtables):
7952         (pdump_dump_root_objects):
7953         (pdump):
7954         * nas.c (WaveOpenDataForReading):
7955         * fns.c (print_bit_vector):
7956         * font-lock.c (SINGLE_SYNTAX_STYLE):
7957         * glyphs.c (check_for_ignored_expose):
7958         (find_matching_subwindow):
7959         * glyphs-eimage.c:
7960         * imgproc.c (get_histogram):
7961         * redisplay.c (point_in_line_start_cache):
7962         * redisplay-output.c (redisplay_unmap_subwindows):
7963         * symbols.c (defsymbol_massage_name_1):
7964         (defkeyword_massage_name):
7965         (deferror_massage_name_and_message):
7966         * redisplay-x.c (x_output_string): 
7967         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7968         * frame.h (struct frame):
7969         * filelock.c (current_lock_owner):
7970         * doprnt.c (emacs_doprnt_1):
7971         * lisp.h (struct Lisp_Bit_Vector):
7972         (DO_REALLOC):
7973         Fix warnings.
7974
7975 2002-02-13  Ben Wing  <ben@xemacs.org>
7976
7977         * event-stream.c (reset_key_echo):
7978         * event-stream.c (reset_this_command_keys):
7979         * event-stream.c (execute_command_event):
7980         If console is dead as a result of C-x 5 0, then post-command stuff
7981         needs to be careful and do only non-console-specific stuff.
7982
7983 2002-07-01  Mike Sperber <mike@xemacs.org>
7984
7985         * process-unix.c (unix_send_process): Mark coding_outstream as
7986         non-open upon SIGPIPE.
7987
7988         * event-stream.c (Fnext_event): Reorder switch cases to something
7989         that makes sense.
7990
7991 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7992
7993         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7994         Don't bogusly reinitialize ascii_character property.
7995
7996 2002-07-08  Mike Sperber <mike@xemacs.org>
7997
7998         * process.c (Fstart_process_internal): Do error checking before we
7999         fork off the child, so the child can't muck with the state of the
8000         parent.
8001
8002 2002-07-08  Mike Sperber <mike@xemacs.org>
8003
8004         * ralloc.c (init_ralloc): Allocate properly for pdump.
8005
8006 2002-06-12  Andy Piper  <andy@xemacs.org>
8007
8008         * glyphs.c (query_string_geometry): check the string.
8009
8010         * glyphs-widget.c (widget_logical_unit_height): cope with nil
8011         widget names.
8012
8013 2002-06-17  Jerry James  <james@xemacs.org>
8014
8015         * sysdll.c: Remove RTLD_GLOBAL initialization.
8016         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
8017
8018 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
8019
8020         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
8021
8022 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
8023
8024         * sysdep.c (sys_rename): Make sys_rename work for the case where
8025         Windows rename sets errno to EACCES if target file exists.
8026
8027 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
8028
8029         * device-msw.c (mswindows_handle_page_setup_dialog_box):
8030         Fix detection of metric units to work on Win95
8031
8032 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
8033
8034         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
8035
8036 2002-04-25  Andy Piper  <andy@xemacs.org>
8037
8038         * redisplay.c (create_text_block): Remove extra comment trailer.
8039
8040 2002-04-24  Andy Piper  <andy@xemacs.org>
8041
8042         * redisplay.c (create_text_block): Don't actually add propagation
8043         data if the line ends after we have added a glyph.
8044
8045 2002-04-22  Andy Piper  <andy@xemacs.org>
8046
8047         * extents.c (extent_fragment_update): check for glyphs we have
8048         previously displayed.
8049         * extents.c (print_extent_1): warning removal.
8050         * extents.h: change prototype.
8051         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
8052         widths correctly for wide glyphs.
8053         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
8054         * redisplay.c (prop_type): add PROP_GLYPH.
8055         * redisplay.c (struct prop_block): add glyph type
8056         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
8057         to the propagation data.
8058         * redisplay.c (create_text_block): if there is a glyph in the
8059         propagation data use it to salt extent_fragment_update.
8060         * redisplay.c (create_string_text_block): ditto.
8061
8062 2002-04-13  Nix  <nix@esperi.demon.co.uk>
8063
8064         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
8065         * redisplay-output.c (compare_runes): Compare them.
8066         * redisplay.c: Update copyright date.
8067         * redisplay.c (pos_data): Add need_baseline_computation field.
8068         * redisplay.c (add_glyph_rune): Update ascent, descent, and
8069         need_baseline_computation; zero yoffset. Set max_pixmap_height
8070         for all pixmaps, not just automatically positioned ones.
8071         * redisplay.c (calculate_yoffset): New, compute yoffset values.
8072         * redisplay.c (calculate_baseline): New, compute textual baseline.
8073         * redisplay.c (add_glyph_rune): Call them.
8074         * redisplay.c (create_text_block): Likewise.
8075         * redisplay.c (create_overlay_glyph_block): Likewise.
8076         * redisplay.c (add_margin_runes): Likewise.
8077         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
8078
8079         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
8080         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
8081         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
8082         * redisplay-msw.c (mswindows_output_string): Likewise.
8083         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
8084         * redisplay-gtk.c (gtk_output_display_block): Likewise.
8085         * redisplay-x.c (x_output_display_block): Likewise.
8086
8087 2002-03-28  Ben Wing  <ben@xemacs.org>
8088
8089         * redisplay.c: Fixed bug in redisplay
8090         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
8091         and down of the lines, since they're bigger than the line
8092         size. (It was seen most obviously when there's a horizontal scroll
8093         bar, e.g. do C-h a glyph or something like that.) The problem was
8094         that the glyph-contrib-p setting on glyphs was ignored even if it
8095         was set properly, which it wasn't until now.
8096
8097 2002-04-24  Andy Piper  <andy@xemacs.org>
8098
8099         * lisp.h (Dynarr_end): Fix definition.
8100
8101 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
8102
8103         * redisplay.c (mark_redisplay): Remove call to
8104         update_frame_window_mirror.
8105
8106 2001-11-15  Andy Piper  <andy@xemacs.org>
8107
8108         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
8109         cygwin (again).
8110
8111 2002-02-13  Andy Piper  <andy@xemacs.org>
8112
8113         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
8114         we did in fact enqueue the XM_MAPFRAME event.
8115
8116 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
8117
8118         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
8119         to fix problem switching between virtual desktops under virtuawin
8120         virtual window manager.
8121
8122 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
8123
8124         * event-msw.c: Typo fix.
8125         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
8126         magic XM_MAPFRAME event has been sent.
8127
8128 2001-11-23  Andy Piper  <andy@xemacs.org>
8129
8130         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
8131
8132 2001-11-21  Andy Piper  <andy@xemacs.org>
8133
8134         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
8135         mouse events outside the frame.
8136
8137 2002-03-20  Andy Piper  <andy@xemacs.org>
8138
8139         * menubar-msw.c (mswindows_popup_menu): warning removal.
8140         * dialog-msw.c (dialog_popped_down): ditto.
8141
8142 2001-12-11  Andy Piper  <andy@xemacs.org>
8143
8144         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
8145         * dialog-msw.c (mswindows_make_dialog_box_internal): set
8146         popup_up_p.
8147         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
8148         * menubar-msw.c (mswindows_handle_wm_command): ditto.
8149         * menubar-msw.c (mswindows_popup_menu): ditto.
8150
8151 2001-10-29  Andy Piper  <andy@xemacs.org>
8152
8153         * dialog-msw.c (handle_directory_dialog_box): quit if the user
8154         cancels.
8155
8156 2002-01-03  Andy Piper  <andy@xemacs.org>
8157
8158         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
8159         letters.
8160         (xrealpath): ditto.
8161
8162 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
8163
8164         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
8165         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
8166         * device-msw.c (mswindows_handle_page_setup_dialog_box):
8167         Detect and handle case where machine is set up for metric units
8168
8169 2002-04-02  Andy Piper  <andy@xemacs.org>
8170
8171         * dired-msw.c (mswindows_get_files): 
8172         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
8173         completely handled by XEmacs. Suggested by Thomas Vogler
8174         <mail@thomas-vogler.de>.
8175
8176 2001-11-14  Andy Piper  <andy@xemacs.org>
8177
8178         * nt.c (REG_ROOT): change registry key to XEmacs.
8179
8180 2002-04-27  Andy Piper  <andy@xemacs.org>
8181
8182         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
8183
8184 2002-04-26  Andy Piper  <andy@xemacs.org>
8185
8186         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
8187         behavior.
8188
8189 2002-03-14  Mike Alexander  <mta@arbortext.com>
8190
8191         * event-msw.c (mswindows_unwait_process): New, remove process from
8192         wait list
8193         * process-nt.c (nt_finalize_process_data): Call
8194         mswindows_unwait_process
8195         * console-msw.h: Declare mswindows_unwait_process
8196
8197 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
8198
8199         * editfns.c (Fdecode_time):
8200         (Fformat_time_string):
8201         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
8202         (make_time): Warning elimination (change arg name).
8203
8204 2001-11-24  Andy Piper  <andy@xemacs.org>
8205
8206         * window.c (Fsplit_window): Doc return type.
8207
8208 2002-04-01  Andy Piper  <andy@xemacs.org>
8209
8210         * emacs.c (Fkill_emacs): Only output message box in interactive
8211         mode.
8212
8213 2002-04-26  Andy Piper  <andy@xemacs.org>
8214  
8215         * config.h.in: pull in 21.5.x change to stop alloca warnings under
8216         cygwin.
8217
8218 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
8219
8220         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
8221         bit platform.
8222
8223 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
8224
8225         * XEmacs 21.4.8 "Honest Recruiter" is released.
8226
8227 2002-05-07  Nix  <nix@esperi.demon.co.uk>
8228
8229         Supersedes 2002-04-17 patch.
8230
8231         * process.h (PROCESS_LIVE_P): Use the process status as
8232         evidence of health, not the state of the input stream.
8233         (PROCESS_READABLE_P): Say if the process is readable
8234         from. (It may be dead nonetheless.)
8235         (CHECK_READABLE_PROCESS): Test for that condition.
8236
8237         * process.c (create_process): Use PROCESS_READABLE_P.
8238         (read_process_output, set_process_filter): Likewise.
8239
8240         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
8241         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
8242
8243         This code is #if 0'd, this is not the time to add new functions:
8244
8245         * process.c (Fprocess_readable_p): Report readability status.
8246         * process.c (Qprocess_readable_p): New, associated symbol...
8247         * process.c (syms_of_process): ... initialize it.
8248
8249 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
8250
8251         * XEmacs 21.4.7 "Economic Science" is released.
8252
8253 2002-04-17  Nix  <nix@esperi.demon.co.uk>
8254
8255         * process.h (PROCESS_LIVE_P): Use the process status as
8256         evidence of health, not the state of the input stream.
8257
8258 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
8259
8260         * sysdep.c (sys_siglist): change "signum" to "signal"
8261
8262 2001-04-21  Martin Buchholz  <martin@xemacs.org>
8263
8264         * s/darwin.h: New file.
8265         Thanks to Greg Parker <gparker@cs.stanford.edu>.
8266         
8267 2002-04-23  Andreas Jaeger  <aj@suse.de>
8268
8269         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
8270         which use lib64 for 64-bit libs.
8271         (START_FILES): Likewise.
8272
8273 2002-02-11  Mike Sperber  <mike@xemacs.org>
8274
8275         * device-x.c: 
8276         (x_IO_error_handler):
8277         (x_init_device): Temporarily keep device in static variable
8278         `device_being_initialized' so we can recover gracefully from
8279         internal XOpenDevice failure.  (XOpenDevice is documented to
8280         return NULL on failure, but sometimes calls the IO error handler
8281         instead.)
8282
8283 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
8284
8285         * dired.c (Ffile_name_all_completions): Change documentation --
8286         remove reference to completion-ignored-extensions.
8287         * dired.c (vars_of_dired): Change documentation for
8288         completion-ignored-extensions -- remove reference to
8289         file-name-all-completions.
8290
8291 2002-03-06  Jerry James  <james@xemacs.org>
8292
8293         * emodules.c (emodules_load): Fix multiple loading of same module.
8294
8295 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
8296         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
8297         RTLD_LAZY to avoid incorrect symbol binding when using nested
8298         shared libraries on Solaris.
8299
8300 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
8301
8302         * fileio.c (Ffind_file_name_handler): Improve docstring.
8303
8304 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
8305
8306         * fns.c (Fmapconcat): Improve docstring.
8307
8308 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
8309
8310         * device-gtk.c: Add prototype for
8311         emacs_gtk_selection_clear_event_handle.
8312         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
8313         selection.  Setup signal handler for "selection_clear_event"
8314         (emacs_gtk_selection_clear_event_handle).
8315
8316         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
8317         other applications owning the clipboard (based on
8318         x_handle_selection_clear).
8319
8320 2001-12-23  William M. Perry  <wmperry@gnu.org>
8321
8322         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
8323         
8324 2002-01-04  Martin Buchholz  <martin@xemacs.org>
8325
8326         * keymap.c (define_key_alternate_name): Parenthesize EQ.
8327
8328 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
8329
8330         * XEmacs 21.4.6 "Common Lisp" is released.
8331
8332 2001-12-16  Torsten Duwe  <duwe@caldera.de>
8333
8334         * search.c (Freplace_match): Add missing sub-expression functionality.
8335
8336         * buffer.c (decode_buffer): Add a check for pointer type to
8337         decode_buffer, before gcc's CSE optimization reorders a
8338         dereference in front of the allow_string test.
8339
8340 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
8341
8342         * window.c (window_loop): Fix bug that sometimes prevented
8343         window_loop() from iterating across multiple devices.  Also, at
8344         Ben's request, changed infloop-detecting code to abort() instead
8345         of silently terminating window_loop().
8346
8347 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
8348
8349         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
8350         * editfns.c (make_time): New function.
8351         (Fencode_time): Use it instead of wasteful_word_to_lisp.
8352         * lisp.h (make_time): Prototype and comment it.
8353         * dired.c (wasteful_word_to_lisp): Deprecate.
8354         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8355
8356 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
8357
8358         * fileio.c (auto_save_1): Use current coding system, not
8359         escape-quoted.
8360
8361 2001-11-13  Ben Wing  <ben@xemacs.org>
8362
8363         * window.c:
8364         * window.c (window_truncation_on):
8365         * window.c (syms_of_window):
8366         truncate-partial-width-windows should respect the buffer being
8367         displayed, like other redisplay vars.
8368
8369 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8370
8371         * event-stream.c (Fread_key_sequence): save current buffer.
8372
8373 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8374
8375         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8376
8377 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8378
8379         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8380
8381 2001-10-26  Mike Alexander  <mta@arbortext.com>
8382
8383         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8384
8385 2001-10-25  Andy Piper  <andy@xemacs.org>
8386
8387         * ChangeLog:
8388         * dialog-msw.c (handle_directory_proc): new function.
8389          (handle_directory_dialog_box): new fucntion.
8390          (handle_file_dialog_box): use new directory dialog support.
8391          (mswindows_make_dialog_box_internal): ditto.
8392         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8393         handling.
8394         (mswindows_find_frame): make global.
8395         * fileio.c (Fexpand_file_name): build fix.
8396         * general-slots.h: add Qdirectory.
8397         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8398         handling.
8399         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8400         cygwin not leaving win32 paths unchanged.
8401         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8402         cygwin runtime to do path conversion.
8403         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8404         (syms_of_win32): add new function.
8405         * window.c (window_loop): build fix.
8406
8407 2001-10-15  Andy Piper  <andy@xemacs.org>
8408
8409         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8410
8411 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8412
8413         * XEmacs 21.4.5 "Civil Service" is released.
8414
8415 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8416
8417         * glyphs-x.c: Force buffer-tab highlight update when moving the
8418         buffer, avoiding an ugly black border, used for keyboard focus
8419         indication, on a widget that can never have keyboard focus, the
8420         buffer tab.
8421
8422 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8423
8424         * process-unix.c (unix_open_multicast_group): Remove too much
8425         conversion between host and network byte order.
8426
8427 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8428
8429         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8430         before replacing them.
8431
8432         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8433         operation.
8434
8435         * src/window.c (undedicate_windows): Use it.
8436         * src/window.h: Add prototype.
8437
8438 2001-09-17  Ben Wing  <ben@xemacs.org>
8439
8440         * fileio.c (normalize_filename):
8441         * fileio.c (Fexpand_file_name):
8442         Fix various C++ compile errors in Andy's recent code.
8443         
8444         * callint.c (Fcall_interactively):
8445         * editfns.c (Ftemp_directory):
8446         * editfns.c (Fuser_full_name):
8447         * emacs.c (argmatch):
8448         * lread.c (locate_file_map_suffixes):
8449         * redisplay-x.c (x_ring_bell):
8450         Fix sign-compare warnings.
8451         
8452 2001-09-08  Andy Piper  <andy@xemacs.org>
8453
8454         * fileio.c (normalize_filename): copied from nt.c
8455         * (Ffile_name_directory): enable win32 paths under cygwin.
8456         * (Ffile_name_nondirectory): ditto.
8457         * (directory_file_name): ditto.
8458         * (Fexpand_file_name): ditto.
8459         * (Ffile_truename): ditto.
8460         * (Fsubstitute_in_file_name): ditto.
8461         * (Ffile_name_absolute_p): ditto.
8462         * (Ffile_readable_p): ditto.
8463
8464 2001-09-08  Andy Piper  <andy@xemacs.org>
8465
8466         * device-msw.c (mswindows_finish_init_device): remove dde
8467         initialization.
8468         * device-msw.c (mswindows_init_dde): factor out from
8469         mswindows_finish_init_device()
8470         * device-msw.c (init_mswindows_very_early): new function
8471         initialize but don't enable dde.
8472         * emacs.c (main_1): call init_mswindows_very_early.
8473         * event-msw.c:
8474         * event-msw.c (mswindows_dde_callback): only execute when we are
8475         ready.
8476         * symsinit.h: declare init_mswindows_very_early.
8477
8478 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8479
8480         [sjt: This has been in 21.5 for months with no complaints.]
8481
8482         * console.h (struct console_methods): Added flags member.
8483         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8484         (CONMETH_IMPL_FLAG):
8485         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8486         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8487
8488         * device.c (window_system_pixelated_geometry): Use the above macros.
8489
8490         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8491         implememntation flag.
8492         * device.h (DEVICE_DISPLAY_P): Use it.
8493
8494         * frame.c (delete_frame_internal): Use the above macro.
8495
8496         * redisplay.c (redisplay_device): Use it.
8497         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8498         (redisplay_frame): Ditto.
8499
8500         * device-msw.c (mswindows_device_implementation_flags): Removed.
8501         (msprinter_device_implementation_flags): Removed.
8502         (console_type_create_device_mswindows): Removed references to
8503         implementation_flags methods, set implementation flags here.
8504         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8505
8506         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8507         (console_type_create_device_gtk): Removed method declaration.
8508         Added commented out statement which semantically matches the
8509         commented out statement in the above removed method.
8510
8511 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8512
8513         The attached patch fixes a few warnings. 
8514
8515         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8516         * src/frame-gtk.c: guard against GNOME calls in GTK only
8517         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8518         * src/select-gtk.c: prototype lisp_to_time
8519
8520 2001-06-08  Ben Wing  <ben@xemacs.org>
8521
8522         ------ gc-in-window-procedure fixes ------
8523         
8524         * alloc.c:
8525         * alloc.c (struct post_gc_action):
8526         * alloc.c (register_post_gc_action):
8527         * alloc.c (run_post_gc_actions):
8528         * alloc.c (garbage_collect_1):
8529         Create "post-gc actions", to avoid those dreaded "GC during window
8530         procedure" problems.
8531
8532         * event-msw.c:
8533         Abort, clean and simple, when GC in window procedure.  We want
8534         to flush these puppies out.
8535
8536         * glyphs-msw.c:
8537         * glyphs-msw.c (finalize_destroy_window):
8538         * glyphs-msw.c (mswindows_finalize_image_instance):
8539         Use a post-gc action when destroying subwindows.
8540
8541         * lisp.h:
8542         Declare register_post_gc_action().
8543
8544         * scrollbar-msw.c:
8545         * scrollbar-msw.c (unshow_that_mofo):
8546         Use a post-gc action when unshowing scrollbar windows, if in gc.
8547
8548         * redisplay.c (mark_redisplay):
8549         Add comment about the utter evilness of what's going down here.
8550
8551         ------ cygwin setitimer fixes ------
8552         
8553         * Makefile.in.in (sheap_objs):
8554         * Makefile.in.in (profile_objs):
8555         * Makefile.in.in (objs):
8556         Compile profile.c only when HAVE_SETITIMER.
8557         
8558         * nt.c (mswindows_sigset):
8559         * nt.c (mswindows_sighold):
8560         * nt.c (mswindows_sigrelse):
8561         * nt.c (mswindows_sigpause):
8562         * nt.c (mswindows_raise):
8563         * nt.c (close_file_data):
8564         Style fixes.
8565         
8566         * nt.c:
8567         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8568         
8569         * profile.c:
8570         * profile.c (Fstart_profiling):
8571         * profile.c (Fstop_profiling):
8572         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8573         instead of just plain setitimer().
8574         
8575         * signal.c:
8576         * signal.c (set_one_shot_timer):
8577         * signal.c (alarm):
8578         Define qxe_setitimer() as an encapsulation around setitimer() --
8579         call setitimer() directly unless Cygwin or MS Win, in which case
8580         we use our simulated version in win32.c.
8581         
8582         * systime.h:
8583         * systime.h (struct itimerval):
8584         * systime.h (ITIMER_REAL):
8585         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8586         comment about "qxe" and the policy regarding encapsulation.
8587
8588         * win32.c:
8589         * win32.c (setitimer_helper_proc):
8590         * win32.c (setitimer_helper_period):
8591         * win32.c (setitimer_helper):
8592         * win32.c (mswindows_setitimer):
8593         Move setitimer() emulation here, so Cygwin can use it.
8594         Rename a couple of functions and variables to be longer and more
8595         descriptive.  In setitimer_helper_proc(), send the signal
8596         using either mswindows_raise() or (on Cygwin) kill().  If for
8597         some reason we are still getting lockups, we'll change the kill()
8598         to directly invoke the signal handlers.
8599
8600         ------ windows shell fixes ------
8601         
8602         * callproc.c:
8603         * ntproc.c:
8604         Comments about how these two files must die.
8605
8606         * callproc.c (init_callproc):
8607         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8608         not just COMSPEC. (more correct and closer to FSF.) Don't
8609         force a value for SHELL into the environment. (Comments added
8610         to explain why not.)
8611         
8612         * nt.c (init_user_info):
8613         Don't shove a fabricated SHELL into the environment.  See above.
8614
8615 2001-06-01  Ben Wing  <ben@xemacs.org>
8616
8617         * Makefile.in.in (ldflags):
8618         eliminate that pesky "defaulting to 00401000" warning.
8619         * nt.h:
8620         eliminate warnings.
8621
8622 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8623
8624         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8625         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8626
8627 2001-04-24  Jerry James <james@xemacs.org>
8628
8629         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8630         correct order.
8631
8632 2001-06-01  Ben Wing  <ben@xemacs.org>
8633
8634         * event-msw.c (debug_mswin_messages):
8635         conditionalize the messages that were causing compile errors.
8636         (if only macros could generate #ifdef statements ...)
8637
8638 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8639
8640         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8641
8642 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8643
8644         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8645
8646 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8647
8648         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8649         * process-unix.c (unix_canonicalize_host_name):
8650         sysdep.c (init_system_name):
8651         Use it to conditionally support IPv6 canonicalization.
8652
8653 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8654
8655         * event-msw.c:
8656         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8657
8658 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8659
8660         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8661         attempt is made to scroll when no scroll bar is available.
8662
8663 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8664
8665         * input-method-motif.c (XIM_delete_frame): New callback.
8666         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8667         got deleted from 21.4.3.)
8668
8669 2001-06-01  Ben Wing  <ben@xemacs.org>
8670
8671         * nt.c (mswindows_utime):
8672         * nt.c (close_file_data):
8673         fix off-by-one-indirection error.
8674
8675 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8676
8677         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8678         because set_file_times() now takes Lisp_Object path, instead of
8679         char*.
8680         * nt.c: Include buffer.h.
8681         * nt.c (convert_from_time_t): New.
8682         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8683         not set mtime correctly.
8684         * nt.h: Declare mswindows_utime().
8685         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8686         path, instead of char*.
8687         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8688
8689 2001-05-30  Ben Wing  <ben@xemacs.org>
8690
8691         For 21.4:
8692
8693         (Stephen, just take all event-msw.c patches.  This includes
8694         the "iconify" fix below.)
8695
8696         * event-msw.c:
8697         * event-msw.c (mswindows_dequeue_dispatch_event):
8698         * event-msw.c (assert):
8699         * event-msw.c (emacs_mswindows_quit_p):
8700         * event-msw.c (debug_mswin_messages):
8701         * event-msw.c (debug_output_mswin_message):
8702         * event-msw.c (vars_of_event_mswindows):
8703         Fix yet more problems with C-g handling.
8704         Implement debug-mswindows-events.
8705         
8706 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8707
8708         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8709         
8710 2001-05-23  Ben Wing  <ben@xemacs.org>
8711
8712         * event-msw.c (winsock_writer):
8713         * event-msw.c (winsock_closer):
8714         prior kludgy code was clobbering the buffer, thinking it was
8715         "unused" space to store an unneeded return value; instead, use
8716         the variable we've already got staring us in the face.
8717
8718 2001-05-17  Andy Piper  <andy@xemacs.org>
8719
8720         * sysfile.h: don't assume that file attributes are boolean
8721
8722 2001-05-23  Ben Wing  <ben@xemacs.org>
8723
8724         * device-msw.c (msprinter_init_device):
8725         signal an error rather than crash with an unavailable network
8726         printer (from Mike Alexander).
8727         
8728         * event-msw.c:
8729         * event-msw.c (struct winsock_stream):
8730         * event-msw.c (winsock_writer):
8731         * event-msw.c (winsock_closer):
8732         * event-msw.c (make_winsock_stream_1):
8733         cleanup headers.  fix (hopefully) an error with data corruption
8734         when sending to a network connection.
8735
8736         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8737         to handle the ~user prefix by (a) always assuming we're referencing
8738         ourselves and not even verifying the user -- hence any file with
8739         a tilde as its first char is invalid! (b) if there wasn't a slash
8740         following the filename, the pointer was set *past* the end of
8741         file and we started reading from uninitialized memory.  Now we
8742         simply treat these as files, always.
8743
8744         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8745         
8746 2001-05-19  Ben Wing  <ben@xemacs.org>
8747
8748         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8749
8750         * process-nt.c:
8751         * process-nt.c (vars_of_process_nt):
8752         remove unused mswindows-quote-process-args.  rec for 21.4.
8753         
8754 2001-05-12  Ben Wing  <ben@xemacs.org>
8755
8756         * event-msw.c (mswindows_dde_callback):
8757         * event-msw.c (mswindows_wnd_proc):
8758         eliminate cygwin warnings.
8759
8760 2001-05-06  Ben Wing  <ben@xemacs.org>
8761
8762         * console-msw.h:
8763         * device-msw.c:
8764         * device-msw.c (print_dialog_worker):
8765         * device-msw.c (mswindows_handle_print_dialog_box):
8766         * device-msw.c (syms_of_device_mswindows):
8767         * dialog-msw.c (mswindows_make_dialog_box_internal):
8768         * general-slots.h:
8769         implement printing the selection when it's selected.
8770
8771 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8772
8773         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8774
8775 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8776
8777         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8778         EMACS_INT is signed.
8779
8780 2001-04-15  Michael Lausch  <mla@1012surf.net>
8781
8782         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8783         gtk_widget_request_size() to give scrollbar >0 width for
8784         GTK >1.2.8.
8785
8786 2001-05-30  William M. Perry  <wmperry@gnu.org>
8787
8788         * event-gtk.c: Check for buttons as modifier keys.
8789
8790 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8791
8792         * s\mingw32.h:
8793         Properly find MinGW's <process.h> inside Cygwin's restructured
8794         include directories.  Don't try to include <cygwin/version.h>
8795         since we are dropping support for MinGW in versions of Cygwin
8796         earlier than b21.
8797         * nt.c:
8798         Drop support for MinGW in versions of Cygwin before b21.
8799         * sysdep.c:
8800         Properly find MinGW's <process.h> inside Cygwin's restructured
8801         include directories.
8802         * syswindows.h:
8803         Drop support for MinGW in versions of Cygwin before b21.
8804         * unexcw.c:
8805         Even though a.out.h is no longer detected by configure, allow
8806         MinGW to use it until we figure out how to do the job with Win32.
8807
8808 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8809
8810         * syntax.c (find_start_of_comment):
8811         Fix `unbalanced parentheses' bug when dealing with mixed comment
8812         styles in c++/java/etc. mode
8813
8814 2001-05-29  Mike Alexander  <mta@arbortext.com>
8815
8816         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8817         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8818
8819 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8820
8821         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8822
8823 2001-03-31  Mike Sperber <mike@xemacs.org>
8824
8825         * search.c (Freplace_match): Support FSF-style specification of
8826         match subexpression when applied to a buffer.
8827
8828 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8829
8830         * event-stream.c (is_scrollbar_event): add missing semicolon
8831
8832 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8833
8834         * Makefile.in.in: Use TAR macro instead of hardcoding
8835           tar.  Allows use of GNU tar instead of system tar
8836
8837 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8838
8839         * event-stream.c (is_scrollbar_event): add missing semicolon
8840
8841 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8842
8843         * XEmacs 21.4.3 "Academic Rigor" is released.
8844
8845 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8846
8847         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8848
8849 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8850
8851         * buffer.c (Vcase_fold_search): Remove obsolete
8852           comment about non ASCII case-fold-search.  This
8853           bug has been fixed by case-table changes.
8854
8855 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8856
8857         * event-msw.c: Restore include of events-mod.h.
8858
8859 2001-04-22   zhaoway  <zw@debian.org>
8860
8861         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8862         !HAVE_SCROLLBARS.
8863
8864 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8865
8866         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8867
8868 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8869
8870         * mule-charset.c (Fmake_charset): Add missing else.
8871
8872 2001-04-23  Ben Wing  <ben@xemacs.org>
8873
8874         * event-msw.c (FAKE_MOD_QUIT):
8875         * event-msw.c (mswindows_dequeue_dispatch_event):
8876         * event-msw.c (mswindows_wnd_proc):
8877         * event-msw.c (emacs_mswindows_quit_p):
8878         Get critical quit working.
8879
8880 2001-05-05  Ben Wing  <ben@xemacs.org>
8881
8882         * console-msw.h:
8883         * device-msw.c:
8884         * device-msw.c (mswindows_get_default_margin):
8885         * frame-msw.c (mswindows_size_frame_internal):
8886         * frame-msw.c (msprinter_init_frame_1):
8887         * frame-msw.c (vars_of_frame_mswindows):
8888         Change top/bottom margin defaults to 0.5 inches.
8889
8890 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8891
8892         Fix link error with gcc 3.0 on Linux.
8893         * terminfo.c (UP): Remove.
8894         * terminfo.c (BC): Remove.
8895         * terminfo.c (PC): Remove.
8896         They weren't used, and in any case, these symbols should be
8897         defined in the *library*.
8898
8899 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8900
8901         * s/aix4.h: Fix crash with xlc -O3.
8902         Improve comment explaining how -O3 works.
8903
8904 2001-04-15  Ben Wing  <ben@xemacs.org>
8905
8906         * event-stream.c:
8907         * event-stream.c (Fnext_event):
8908         * event-stream.c (is_scrollbar_event):
8909         * event-stream.c (execute_command_event):
8910         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8911         crash' problem.  His fix introduces other problems.  We filter
8912         out scrollbar events specifically, making them somewhat invisible
8913         to command-building, and not appearing in `this-command-keys'.
8914         More work is still needed (see comments in event-stream.c), but
8915         this fixes all the major problems.
8916
8917 2001-04-20  Ben Wing  <ben@xemacs.org>
8918
8919         * .cvsignore: Added stuff for Windows.
8920
8921 2001-04-28  Ben Wing  <ben@xemacs.org>
8922
8923         * buffer.c (Ferase_buffer):
8924         * editfns.c (buffer_insert1):
8925         * editfns.c (Finsert_before_markers):
8926         * editfns.c (Finsert_string):
8927         * editfns.c (Finsert_char):
8928         * editfns.c (Fdelete_region):
8929         * editfns.c (Fwiden):
8930         * editfns.c (Fnarrow_to_region):
8931         remove bogus lines setting zmacs_region_stays to 0.
8932         
8933 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8934
8935         * process-unix.c (unix_open_network_stream): If connect() fails
8936         invalidate file descriptor after closing it.
8937
8938 2001-03-08  Mike Alexander  <mta@arbortext.com>
8939
8940         * event-msw.c (mswindows_need_event_in_modal_loop):
8941         Don't dispatch a message if we didn't get one.
8942         (mswindows_need_event):
8943         Terminate the correct process when one exits instead of the first
8944         one on Vprocess_list and look for process termination when in
8945         mswindows_protect_modal_loop.
8946
8947 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8948
8949         * XEmacs 21.4.1 "Copyleft" is released.
8950
8951 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8952
8953         * input-method-motif.c (XIM_delete_frame): New callback.
8954         (XIM_init_frame): Register it.
8955
8956 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8957
8958         * XEmacs 21.4.0 "Solid Vapor" is released.
8959
8960 2001-04-15  Ben Wing  <ben@xemacs.org>
8961
8962         * cmdloop.c (call_command_loop):
8963         Fix braino in bit-rotting code.
8964         
8965 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8966
8967         * extents.c (Fset_extent_endpoints): Force creation of extent info
8968         in buffer_or_string.
8969
8970         * extents.c (process_extents_for_insertion_mapper): Correctly
8971         check for open-open zero-length extents.
8972
8973 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8974
8975         * lisp.h: New typedefs Memory_count, Element_count.
8976         * regex.c:
8977         * regex.h:
8978         Sign-compare warning elimination: several unsigned -> signed.
8979         Based on work by Ben Wing <ben@xemacs.org>.
8980
8981 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8982
8983         * XEmacs 21.2.47 "Zephir" is released.
8984
8985 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8986
8987         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8988
8989 2001-04-03  Mike Sperber <mike@xemacs.org>
8990
8991         * search.c: Revert previous patch due because of release.
8992
8993 2001-03-30  Ben Wing  <ben@xemacs.org>
8994
8995         * s\cygwin32.h:
8996         Add missing killpg prototype.
8997
8998         * elhash.c:
8999         Add a comment about fixing problems when a new entry is added
9000         while mapping.
9001
9002         * frame-msw.c (mswindows_init_frame_1):
9003         Fix compile warnings.
9004
9005         * menubar.c (vars_of_menubar):
9006         Provide `menu-accelerator-support' to indicate that we properly
9007         support %_ in menu specifications, so that package code can
9008         conditionalize on this (and remove %_ from menu specifications
9009         on older versions).
9010
9011         * event-msw.c:
9012         * scrollbar-msw.c:
9013         * scrollbar-msw.c (can_scroll):
9014         * scrollbar-msw.h:
9015         Fix handling of mouse wheel under Windows to follow standards --
9016         now scrolls window under pointer, not selected window.
9017
9018 2001-03-31  Mike Sperber <mike@xemacs.org>
9019
9020         * search.c (Freplace_match): Support FSF-style specification of
9021         match subexpression when applied to a buffer.
9022
9023 2001-03-15  Martin Buchholz  <martin@xemacs.org>
9024
9025         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
9026         function to modify KEYMAP, so map over a copy of the hash table.
9027
9028 2001-03-21  Martin Buchholz <martin@xemacs.org>
9029
9030         * XEmacs 21.2.46 "Urania" is released.
9031
9032 2001-03-20  Dan Holmsand  <dan@eyebee.com>
9033
9034         * realpath.c (xrealpath): Make file-truename work with symlinks to
9035         /cygdrive paths on cygwin. Always lowercase drive-letters on
9036         native windows.
9037         (cygwin_readlink): Don't try to find canonical filename unless
9038         file exists.
9039
9040 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
9041
9042         * ChangeLog: Log GTK merge.
9043
9044         * dumper.c:
9045         * select-x.c:
9046         * specifier.c:
9047         * symeval.h:
9048         Revert gratuitous whitespace changes from GTK merge.
9049
9050         * emacs.c: Document end of complex #ifdef @ l. 1495.
9051
9052
9053 2001-03-12  Andy Piper  <andy@xemacs.org>
9054
9055         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
9056         have to do likewise.
9057
9058 2001-03-12  Andy Piper  <andy@xemacs.org>
9059
9060         * sysdep.c: we only support mingw now.
9061
9062 2001-03-09  Andy Piper  <andy@xemacs.org>
9063
9064         * unexcw.c (copy_executable_and_dump_data_section): making approx
9065         overrun a warning only.
9066
9067 2001-03-10  William M. Perry  <wmperry@aventail.com>
9068
9069         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
9070         satisfy Stephen's identical-after-cpp plea.
9071
9072 2001-03-02  Ben Wing  <ben@xemacs.org>
9073
9074         * cmds.c:
9075         * cmds.c (Fforward_char):
9076         * syntax.c:
9077         * window.c:
9078
9079         Augment documentation of the most common motion commands to make
9080         note of the shifted-motion support.
9081         
9082 2001-03-02  Ben Wing  <ben@xemacs.org>
9083
9084         * nt.c (mswindows_fstat):
9085         * nt.c (mswindows_stat):
9086         * search.c (boyer_moore):
9087         Fix compile warnings under Windows.
9088         
9089         * sysdep.c (sys_readdir):
9090         Fix buggy filename-conversion code under Mule.
9091
9092 2001-03-09  William M. Perry  <wmperry@aventail.com>
9093
9094         * Makefile.in.in:
9095         * config.h.in:
9096         * console.c:
9097         * console.h:
9098         * device.c:
9099         * device.h:
9100         * dragdrop.c:
9101         * emacs.c:
9102         * event-stream.c:
9103         * events.c:
9104         * events.h:
9105         * faces.c:
9106         * frame.h:
9107         * general-slots.h:
9108         * glyphs.c:
9109         * gutter.c:
9110         * inline.c:
9111         * lisp.h:
9112         * lrecord.h:
9113         * make-src-depend:
9114         * redisplay-output.c:
9115         * redisplay.c:
9116         * symsinit.h:
9117         * sysfile.h:
9118         * toolbar.c:
9119         * window.c:
9120         The Great GTK Merge.
9121
9122         * ChangeLog.GTK:
9123         * console-gtk.c:
9124         * console-gtk.h:
9125         * device-gtk.c:
9126         * emacs-marshals.c:
9127         * emacs-widget-accessors.c:
9128         * event-gtk.c:
9129         * frame-gtk.c:
9130         * gccache-gtk.c:
9131         * gccache-gtk.h:
9132         * glade.c:
9133         * glyphs-gtk.c:
9134         * glyphs-gtk.h:
9135         * gtk-glue.c:
9136         * gtk-xemacs.c:
9137         * gtk-xemacs.h:
9138         * gui-gtk.c:
9139         * gui-gtk.h:
9140         * menubar-gtk.c:
9141         * native-gtk-toolbar.c:
9142         * objects-gtk.c:
9143         * objects-gtk.h:
9144         * redisplay-gtk.c:
9145         * scrollbar-gtk.c:
9146         * scrollbar-gtk.h:
9147         * select-gtk.c:
9148         * toolbar-gtk.c:
9149         * ui-byhand.c:
9150         * ui-gtk.c:
9151         * ui-gtk.h:
9152         The Great GTK Merge: new files.
9153
9154 2001-02-26  Ben Wing  <ben@xemacs.org>
9155
9156         Reapplied Lstream change.
9157
9158 2001-02-26  Ben Wing  <ben@xemacs.org>
9159
9160         Undid the last change, since it is more controversial than I
9161         thought.  It should be back in at some point soon.
9162         
9163 2001-02-25  Ben Wing  <ben@xemacs.org>
9164
9165         * buffer.c:
9166         * callproc.c (Fold_call_process_internal):
9167         * event-msw.c (ntpipe_slurp_reader):
9168         * event-msw.c (ntpipe_shove_writer):
9169         * event-msw.c (winsock_reader):
9170         * event-msw.c (winsock_writer):
9171         * file-coding.c:
9172         * file-coding.c (detect_eol_type):
9173         * file-coding.c (detect_coding_type):
9174         * file-coding.c (determine_real_coding_system):
9175         * file-coding.c (Fdetect_coding_region):
9176         * file-coding.c (decoding_reader):
9177         * file-coding.c (decoding_writer):
9178         * file-coding.c (mule_decode):
9179         * file-coding.c (Fdecode_coding_region):
9180         * file-coding.c (encoding_reader):
9181         * file-coding.c (encoding_writer):
9182         * file-coding.c (mule_encode):
9183         * file-coding.c (Fencode_coding_region):
9184         * file-coding.c (detect_coding_sjis):
9185         * file-coding.c (decode_coding_sjis):
9186         * file-coding.c (encode_coding_sjis):
9187         * file-coding.c (detect_coding_big5):
9188         * file-coding.c (decode_coding_big5):
9189         * file-coding.c (encode_coding_big5):
9190         * file-coding.c (detect_coding_ucs4):
9191         * file-coding.c (decode_coding_ucs4):
9192         * file-coding.c (encode_coding_ucs4):
9193         * file-coding.c (detect_coding_utf8):
9194         * file-coding.c (decode_coding_utf8):
9195         * file-coding.c (encode_coding_utf8):
9196         * file-coding.c (detect_coding_iso2022):
9197         * file-coding.c (decode_coding_iso2022):
9198         * file-coding.c (encode_coding_iso2022):
9199         * file-coding.c (decode_coding_no_conversion):
9200         * file-coding.c (encode_coding_no_conversion):
9201         * glyphs-x.c (write_lisp_string_to_temp_file):
9202         * gpmevent.c (tty_get_foreign_selection):
9203         * lisp.h:
9204         * lstream.c:
9205         * lstream.c (Lstream_flush_out):
9206         * lstream.c (Lstream_adding):
9207         * lstream.c (Lstream_write_1):
9208         * lstream.c (Lstream_write):
9209         * lstream.c (Lstream_raw_read):
9210         * lstream.c (Lstream_read_more):
9211         * lstream.c (Lstream_read):
9212         * lstream.c (Lstream_unread):
9213         * lstream.c (Lstream_fputc):
9214         * lstream.c (stdio_reader):
9215         * lstream.c (stdio_writer):
9216         * lstream.c (filedesc_reader):
9217         * lstream.c (filedesc_writer):
9218         * lstream.c (lisp_string_reader):
9219         * lstream.c (struct fixed_buffer_stream):
9220         * lstream.c (make_fixed_buffer_input_stream):
9221         * lstream.c (make_fixed_buffer_output_stream):
9222         * lstream.c (fixed_buffer_reader):
9223         * lstream.c (fixed_buffer_writer):
9224         * lstream.c (struct resizing_buffer_stream):
9225         * lstream.c (resizing_buffer_writer):
9226         * lstream.c (dynarr_writer):
9227         * lstream.c (lisp_buffer_reader):
9228         * lstream.c (lisp_buffer_writer):
9229         * lstream.h:
9230         * lstream.h (lstream_implementation):
9231         * lstream.h (struct lstream):
9232         * md5.c (Fmd5):
9233         * process-nt.c (nt_send_process):
9234         * process-unix.c (unix_send_process):
9235         
9236         Correct Lstream lossage due to mixing of signed and unsigned
9237         quantities.  All Lstream uses of size_t and ssize_t are now a
9238         single signed data type Lstream_data_count.  This fixes problems
9239         under Windows with sending large quantities of data to a process,
9240         and may well fix other subtle bugs.
9241
9242 2001-02-23  Martin Buchholz <martin@xemacs.org>
9243
9244         * XEmacs 21.2.45 "Thelxepeia" is released.
9245
9246 2001-02-21  Martin Buchholz  <martin@xemacs.org>
9247
9248         * lisp-union.h (XSETINT): 
9249         (XSETCHAR):
9250         (XSETOBJ): 
9251         Reverse previous change of 2001-02-06.
9252
9253 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
9254
9255         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
9256         buffers.
9257         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9258         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
9259         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
9260         * regex.c (POS_AS_IN_BUFFER): removed
9261         * regex.c (re_search_2):
9262         * regex.c (re_match_2):
9263         Don't use an offset of 1 when calculating buffer positions, since
9264         `BI_BUF_BEGV' does it already.
9265
9266 2001-02-18  Wim Dumon  <wim@easics.be>
9267
9268         * insdel.c (prepare_to_modify_buffer): Also check for
9269         supersession when clash-detection is enabled. 
9270
9271 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
9272
9273         * regex.c (re_match_2_internal):
9274         Convert temp characters from 'const unsigned char' to 're_char'.
9275         Fix crashing bug with extended characters under mule.
9276         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
9277         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
9278         font-lock, pdump, and new syntax-table code.
9279         * syntax.c (find_start_of_comment):
9280         (find_end_of_comment):
9281         (forward-comment):
9282         Fix crashing bugs involving moving beyond end of buffer.
9283         * syntax.c (find_start_of_comment):
9284         Fixed logic to allow proper detection of cases where the same
9285         character is used to end both a two-char comment start and a
9286         two-char comment end sequence. Fixes `(forward-comment -1)'.
9287         * syntax.c (find_start_of_comment):
9288         Return position just past last comment-end character for all cases
9289         (previously was only done for two-char comment-end sequences).
9290         * syntax.c (forward-comment):
9291         Take value returned from `find_end_of_comment', rather than
9292         incrementing it.
9293         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9294         Properly deal with BUFFERP (syntax_cache.object)
9295
9296 2001-02-17  Martin Buchholz  <martin@xemacs.org>
9297
9298         * alloc.c (Fgarbage_collect): 
9299         * alloc.c (make_bit_vector_from_byte_vector):
9300         -Wsign-compare-correctness.
9301
9302 2001-02-16  Martin Buchholz  <martin@xemacs.org>
9303
9304         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
9305         (XSETCHAR): Likewise.
9306         (XSETOBJ): Likewise.
9307
9308 2001-02-15  Martin Buchholz  <martin@xemacs.org>
9309
9310         * mule-canna.c (canna-func-delete_previous): 
9311         Rename to canna-func-delete-previous.
9312
9313 2001-02-14  Martin Buchholz  <martin@xemacs.org>
9314
9315         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
9316
9317 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
9318
9319         * font-lock.c (find_context): Fix C++ compile errors introduced by
9320         recent patch
9321
9322 2001-02-13  Martin Buchholz  <martin@xemacs.org>
9323
9324         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
9325         pragma, but earlier ones barf on the same pragma.
9326
9327 2001-02-06  Mike Sperber <mike@xemacs.org>
9328
9329         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
9330         `configure-mule-lisp-directory'.
9331
9332 2001-02-12  Martin Buchholz  <martin@xemacs.org>
9333
9334         Make sure dump-id.c is compiled in the same way as other .c's.
9335         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
9336         * dump-id.h: Remove.
9337         * emacs.c: Move dump-id.h into dumper.h.
9338         * dumper.h: Move dump-id.h into dumper.h.
9339         * Makefile.in.in:
9340         Use standard .c.o rule for building dump-id.o.
9341         Remove preprocessor flags from link command.
9342         Add dump-id.o to ${otherobjs} if PDUMP.
9343
9344 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
9345
9346         Port FSF 20.7 syntax table improvements.
9347         * syntax.c.
9348         * syntax.h.
9349
9350         Fixups for new syntax table stuff.
9351         * dired.c: Include syntax.c.
9352         (Fdirectory_files): Initialize regex_match_object and
9353         regex_emacs_buffer.
9354         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9355         and Fget_char_property.
9356
9357         Use ported FSF 20.7 syntax table improvements.
9358         * font-lock.c.
9359         * regex.c.
9360         * search.c.
9361         
9362 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9363
9364         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9365         Unixware's enum boolean from sys/types.h.
9366
9367 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9368
9369         Fix support for building with latest Purify.
9370         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9371         (PURIFY_FLAGS): Likewise.
9372
9373 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9374
9375         * fileio.c (lisp_string_set_file_times): New.
9376         * fileio.c (Fcopy_file): Use it.
9377         Fixes bug:
9378         (copy-file filename non-ascii-filename t t)
9379         ==> No such file or directory, non-ascii-filename
9380
9381 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9382
9383         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9384         USHRT_MAX seems clearer than ~0 anyways.
9385
9386 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9387
9388         dumper improvements.  Inspired by Olivier.
9389         * dumper.c (pdump_max_align): New.
9390         * dumper.c (pdump_add_entry): Use pdump_max_align.
9391         * dumper.c (pdump_get_entry_list): Likewise.
9392         * dumper.c (pdump_scan_by_alignment): Likewise.
9393         Don't iterate through unnecessary alignments.
9394         * dumper.c (pdump_file_get): No need to align result of malloc().
9395         * dumper.c (pdump_mallocadr): Remove.  
9396         The result of malloc() is guaranteed to be maximally aligned.
9397         * dumper.c: s/elmt/elt/g;
9398         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9399         * dumper.c (pdump_alert_undump_object): Likewise.
9400         * dumper.c (pdump_align_table): 
9401         Don't support alignments > 64.
9402         Store ALIGNOF's, not shift counts, in table.
9403
9404 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9405
9406         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9407         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9408         * systime.h: Use HAVE_UTIME.
9409         * sysdep.c (struct utimbuf): Remove.
9410         * sysdep.c (set_file_times): Prefer utime() to utimes().
9411         * config.h.in (HAVE_UTIME): New.
9412         * config.h.in (HAVE_UTIME_H): Remove.
9413         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9414
9415 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9416
9417         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9418
9419 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9420
9421         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9422
9423 2001-02-08  Martin Buchholz <martin@xemacs.org>
9424
9425         * XEmacs 21.2.44 "Thalia" is released.
9426
9427 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9428
9429         Fixes crashes in kill-emacs on some systems.
9430         * process-unix.c (unix_kill_child_process):
9431         It's OK for kill() to fail with ESRCH.
9432
9433 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9434
9435         Contortions to make .gdbinit tricks work on most systems.
9436         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9437         * alloc.c (dbg_valmask): Make non-const.
9438         * alloc.c (dbg_typemask): Make non-const.
9439         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9440         * alloc.c (dbg_valbits): Make non-const.
9441         * alloc.c (dbg_gctypebits): Make non-const.
9442         * .gdbinit (decode_object): Make it work with AIX cc.
9443
9444 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9445
9446         * elhash.c (make_general_lisp_hash_table):
9447         Use simpler and more efficient calloc to clear entries.
9448
9449 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9450
9451         * window.c (window_scroll): Work around an AIX C compiler bug.
9452         Fixes 'scroll-up' does nothing problem with xlC.
9453
9454 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9455
9456         * .gdbinit: Remove obsolete comment.
9457
9458 2001-01-31  Mike Alexander  <mta@arbortext.com>
9459
9460         * select.c (Fown_selection_internal): Set owned_p for device
9461         method correctly.
9462
9463 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9464
9465         Port to g++ 2.97.
9466         "not" cannot be used as a macro name as it is an operator in C++
9467         * config.h.in: Stop #defining `not'.
9468         * chartab.c (check_category_char): not ==> not_p
9469         * chartab.h: Likewise.
9470         * regex.c (re_match_2_internal): Likewise.
9471
9472 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9473
9474         * lisp-disunion.h: Fix up comments.
9475
9476 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9477
9478         * keymap.c (define_key_check_and_coerce_keysym):
9479         (syms_of_keymap):
9480         Support mouse-6 and mouse-7 bindings in the obvious way.
9481
9482 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9483
9484         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9485
9486 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9487
9488         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9489         Previous patch missed DEFVAR_INT_MAGIC.
9490         Make sure future DEFVAR_foo use correct types.
9491         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9492         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9493         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9494         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9495         * (DEFVAR_INT): Likewise.
9496         * redisplay.c (vertical_clip): Should be of type Fixnum.
9497         * redisplay.c (horizontal_clip): Likewise.
9498         * lisp.h (dump_add_opaque_int): New.
9499         (dump_add_opaque_fixnum): New.
9500
9501 2001-01-29  Andy Piper  <andy@xemacs.org>
9502
9503         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9504         since they can be eval'ed
9505
9506 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9507
9508         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9509         Oops, XEmacs redefines `class'.  Use `typename' instead.
9510
9511 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9512
9513         * dumper.c: Fix C++ compile errors.
9514
9515 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9516
9517         * tparam.c: Use correct prototypes.
9518
9519 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9520
9521         * sysproc.h: #include util.h for NetBSD's openpty.
9522
9523 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9524
9525         More 64-bit correctness.
9526         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9527         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9528         Fix up comments.
9529         This finally finishes the 64-bit SGI port.
9530         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9531         * symbols.c: Fix up comments and type casts.
9532         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9533         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9534         * symeval.h (Fixnum): New type.
9535         * symeval.h (symbol_value_type): Fix up comment.
9536
9537         * commands.h:
9538         * nt.c:
9539         * emacs.c:
9540         * data.c:
9541         * redisplay.c:
9542         * abbrev.c:
9543         * dired-msw.c:
9544         * event-Xt.c:
9545         * eldap.c:
9546         * window.c:
9547         * sound.c:
9548         * event-stream.c:
9549         * eval.c:
9550         * buffer.c:
9551         * mule-canna.c: A million DEFVAR_INTs here...
9552         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9553         * extents.c:
9554         * cmdloop.c:
9555         * lisp.h:
9556         * select-x.c:
9557         * console-x.h:
9558         * event-msw.c:
9559         * mule-wnnfns.c:
9560         * hpplay.c:
9561         * ralloc.c:
9562         * alloc.c:
9563         * keymap.c:
9564         * profile.c:
9565         s/int/Fixnum/g in DEFVAR_INT declarations.
9566
9567 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9568
9569         Port pdump to SGI alignment-sensitive environment.
9570         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9571         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9572         properly aligned.
9573         Define and use aligned reading and writing macros.
9574         Use buffered stdio instead of posix i/o for faster dumping.
9575         Eliminate kludgy 256 byte space for header.
9576         Read and write from dump file using structs for alignment safety.
9577         * dumper.c (pdump_align_stream): New.
9578         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9579         * dumper.c (PDUMP_READ_ALIGNED): New.
9580         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9581         * dumper.c (pdump_static_Lisp_Object): New struct.
9582         * dumper.c (pdump_static_pointer): New struct.
9583         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9584         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9585         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9586         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9587
9588         * dumper.c (pdump_backtrace):
9589         * dumper.c (pdump_get_indirect_count):
9590         * dumper.c (pdump_register_object):
9591         * dumper.c (pdump_register_struct):
9592         * dumper.c (pdump_reloc_one):
9593         * dumper.c (pdump_scan_by_alignment):
9594         * dumper.c (pdump_dump_from_root_struct_ptrs):
9595         * dumper.c (pdump_dump_opaques):
9596         * dumper.c (pdump_dump_rtables):
9597         * dumper.c (pdump_dump_from_root_objects):
9598         * dumper.c (pdump):
9599         * dumper.c (pdump_load_finish):
9600         Use aligned reading and writing.
9601
9602         * dumper.c (pdump_free): Make static.
9603         * dumper.c (pdump_hFile): Likewise.
9604         * dumper.c (pdump_hMap): Likewise.
9605
9606 2001-01-26  Martin Buchholz <martin@xemacs.org>
9607
9608         * XEmacs 21.2.43 "Terspichore" is released.
9609
9610 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9611
9612         Type fiddling for window_config.saved_windows_count
9613         * window.c (struct window_config): 
9614         Make saved_windows_count member unsigned.
9615         * window.c (sizeof_window_config_for_n_windows): 
9616         Make parameter unsigned.
9617         * window.c (mark_window_config):
9618         * window.c (window_config_equal):
9619         * window.c (free_window_configuration):
9620         * window.c (Fset_window_configuration):
9621         * window.c (count_windows):
9622         * window.c (Fcurrent_window_configuration):
9623         * window.c (reinit_vars_of_window):
9624         Update all callers and users.
9625
9626 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9627
9628         Alignment correctness for flexible arrays.
9629         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9630         Make alignment-correct. Add interesting comments.
9631         * alloc.c (size_vector):
9632         * alloc.c (make_vector_internal):
9633         * alloc.c (make_bit_vector_internal):
9634         * alloc.c (sweep_bit_vectors_1):
9635         * fns.c (size_bit_vector):
9636         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9637         * window.c (sizeof_window_config_for_n_windows): 
9638         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9639
9640 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9641
9642         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9643
9644 2001-01-23  Andy Piper  <andy@xemacs.org>
9645
9646         * select.c (Fown_selection_internal): pass owned_p
9647
9648         * select-msw.c (mswindows_own_selection): New Signature.
9649
9650         * console.h (struct console_methods): add owned_p to
9651         _own_selection.
9652
9653         * select-x.c (x_own_selection): pass owned_p
9654         (hack_motif_clipboard_selection): use owned_p
9655         (vars_of_select_x): new variable -
9656         x_selection_strict_motif_ownership.
9657
9658 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9659
9660         * specifier.h (specifier_data_offset): Remove pointless parens.
9661         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9662
9663 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9664
9665         Make Lisp_Object sizeof methods be alignment-correct.
9666         pdump must restore objects to the same alignment as the C compiler
9667         assumes.  It really matters on SGIs.
9668         * lstream.c (aligned_sizeof_lstream): New.
9669         (sizeof_lstream): Use aligned_sizeof_lstream.
9670         (Lstream_new): Likewise.
9671         * opaque.c (aligned_sizeof_opaque): New.
9672         (sizeof_opaque): Use aligned_sizeof_opaque.
9673         (make_opaque): Likewise.
9674         * specifier.c (aligned_sizeof_specifier): New.
9675         (sizeof_specifier): Use aligned_sizeof_specifier.
9676         (make_specifier_internal): Likewise.
9677
9678 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9679
9680         * lstream.h (struct lstream): Use max_align_t for trailing data.
9681         * specifier.h (struct Lisp_Specifier): Likewise.
9682
9683 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9684
9685         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9686         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9687         (CCL_SUSPEND): Likewise.
9688         (CCL_INVALID_CMD): Likewise.
9689         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9690         (ccl_driver): Likewise.
9691         (CCL_WRITE_CHAR): Macro hygiene.
9692         (CCL_WRITE_STRING): Macro hygiene.
9693
9694 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9695
9696         Port "portable" dumper to SunOS 4 and HP-UX.
9697         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9698         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9699         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9700
9701 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9702
9703         * lisp.h (ALIGNOF): A better definition for C++.
9704
9705 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9706
9707         Macro hygiene.
9708         Fix printf warnings: int format, long int arg.
9709         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9710         (PUSH_FAILURE_POINT): Use correct printf formats.
9711         (POP_FAILURE_POINT): Use correct printf formats.  
9712         Use do {...} while (0)
9713
9714 2001-01-20  Martin Buchholz <martin@xemacs.org>
9715
9716         * XEmacs 21.2.42 "Poseidon" is released.
9717
9718 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9719
9720         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9721
9722 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9723
9724         De-kludgify FIXED_TYPE free list frobbing.
9725         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9726         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9727         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9728         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9729         * alloc.c (LRECORD_FREE_P): New.
9730         * alloc.c (MARK_LRECORD_AS_FREE): New.
9731         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9732         * alloc.c (STRUCT_FREE_P): Deleted.
9733         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9734         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9735         * alloc.c (STRING_CHARS_FREE_P): New.
9736         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9737         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9738         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9739         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9740         * alloc.c (resize_string): Use new definitions.
9741         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9742         * alloc.c (verify_string_chars_integrity): Use new definitions.
9743         * alloc.c (compact_string_chars): Use new definitions.
9744         * alloc.c: Update monster comments.
9745         * lrecord.h (lrecord_type): Add some new lrecord types for
9746         alloc.c's use.
9747
9748 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9749
9750         Improve alignment hackery.
9751         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9752         (max_align_t): Moved from opaque.h - general purpose.
9753         (ALIGN_PTR): Use size_t, not long.
9754         * opaque.h (max_align_t): Move to lisp.h.
9755
9756 2001-01-18  Norbert Koch  <nk@LF.net>
9757
9758         * gui.h: Fix and add prototypes to fix build problems.
9759
9760 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9761
9762         temacs is going away, so `dump-temacs' is now a bad name.
9763         * .dbxrc (dump-temacs): Rename to `dmp'.
9764         * .gdbinit (dump-temacs): Rename to `dmp'.
9765
9766 2001-01-17  Andy Piper  <andy@xemacs.org>
9767
9768         * glyphs.c (print_image_instance): comment to make martin happy.
9769
9770         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9771         change.
9772
9773         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9774         activation.
9775         (mswindows_tab_control_redisplay): warning suppression.
9776
9777         * glyphs-widget.c (widget_update): re-write to cope with updated
9778         items.
9779         (widget_instantiate): use new gui_item functions.
9780         (tab_control_update): deleted.
9781         (progress_gauge_update): deleted.
9782         (image_instantiator_progress_guage): take out update reference.
9783         (image_instantiator_tree_view): ditto.
9784         (image_instantiator_tab_control): ditto.
9785
9786         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9787         Right the new way.
9788         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9789         return whether anything was changed.
9790         (update_gui_item_keywords): as it sounds.
9791
9792         * gui.h: declare widget_gui_parse_item_keywords.
9793
9794         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9795         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9796
9797 2001-01-17  Martin Buchholz <martin@xemacs.org>
9798
9799         * XEmacs 21.2.41 "Polyhymnia" is released.
9800
9801 2001-01-16  Didier Verna  <didier@xemacs.org>
9802
9803         * glyphs.c (image_instantiate): don't use fallbacks when
9804         instantiating a face's background pixmap by inheritance.
9805
9806 2001-01-14  Mike Sperber <mike@xemacs.org>
9807
9808         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9809         Conditionalize accordingly.
9810
9811 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9812
9813         * dumper.c (pdump_file_get): Fix a compiler warning.
9814
9815 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9816
9817         Make Purify happy when pdumping.
9818         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9819         iniitalizing all bits of new lisp object memory.
9820         * symbols.c (Fmake_local_variable): Likewise.
9821         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9822         * symbols.c (Fdefvaralias): Likewise.
9823         * mule-charset.c (vars_of_mule_charset): Likewise.
9824
9825 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9826         Add the `-nd' flag when running pre-dump operations under the debugger.
9827         * .dbxrc (run-temacs): Add `-nd'.
9828         * .dbxrc (update-elc): Likewise.
9829         * .dbxrc (dump-temacs): Likewise.
9830         * .gdbinit (run-temacs): Likewise.
9831         * .gdbinit (check-temacs): Likewise.
9832         * .gdbinit (update-elc): Likewise.
9833         * .gdbinit (dump-temacs): Likewise.
9834
9835 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9836
9837         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9838         export OBJECT_MODE=64
9839         configure --pdump --use-union-type=no
9840         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9841         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9842
9843         * miscplay.c (sndcnv8U_2mono):
9844         Avoid two uses of `++' in the same expression.
9845         Suppresses a GCC warning.
9846
9847 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9848
9849         Make sure future compilers don't miscompile alloc.c.
9850         * alloc.c:
9851         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9852         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9853
9854 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9855
9856         * dumper.c: A little post-pdump-rename comment fixup.
9857
9858 2001-01-09  Jerry James  <james@eecs.ku.edu>
9859
9860         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9861
9862 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9863
9864         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9865         script:
9866         #!/bin/sh
9867         replace_symbol () {
9868           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9869         }
9870
9871         replace_symbol pdump_wire_lists pdump_weak_object_chains
9872         replace_symbol pdump_wire_list dump_add_weak_object_chain
9873
9874         replace_symbol pdump_wires pdump_root_objects
9875         replace_symbol pdump_wire dump_add_root_object
9876
9877         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9878         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9879
9880         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9881         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9882         replace_symbol dumpstructinfo pdump_root_struct_ptr
9883         replace_symbol dumpstruct dump_add_root_struct_ptr
9884
9885         replace_symbol dumpopaque dump_add_opaque
9886         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9887         replace_symbol dumpopaqueinfos pdump_opaques
9888         replace_symbol dumpopaqueinfo pdump_opaque
9889
9890         replace_symbol nb_structdump nb_root_struct_ptrs
9891         replace_symbol nb_opaquedump nb_opaques
9892
9893         replace_symbol align_table pdump_align_table
9894         replace_symbol dump_header pdump_header
9895
9896         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9897         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9898
9899
9900 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9901
9902         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9903         optimizing bytecount_to_charcount().
9904
9905 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9906
9907         * config.h.in:
9908         (HAVE_DLFCN_H): Removed.
9909         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9910
9911 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9912
9913         Portable dumper maintainability improvements.
9914         * alloc.c (staticpro):
9915         * alloc.c (staticpro_nodump):
9916         * alloc.c (garbage_collect_1):
9917         * alloc.c (reinit_alloc_once_early):
9918         * alloc.c (init_alloc_once_early):
9919         * alloc.c: Move dumper functions to alloc.c.
9920         * dumper.c (pdump_backtrace):
9921         * dumper.c (pdump_dump_structs):
9922         * dumper.c (pdump_dump_opaques):
9923         * dumper.c (pdump_dump_rtables):
9924         * dumper.c (pdump_dump_wired):
9925         * dumper.c (pdump):
9926         * dumper.c (pdump_load_check):
9927         * dumper.c (pdump_load_finish):
9928         * dumper.c (pdump_file_unmap):
9929         * dumper.c (pdump_file_get):
9930         * dumper.c (pdump_resource_free):
9931         * dumper.c (pdump_resource_get):
9932         * dumper.c (pdump_file_free):
9933         * dumper.c (pdump_file_try):
9934         * dumper.c (pdump_load):
9935         Remove fixed size limits on staticpro(), staticpro_nodump(),
9936         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9937         Remove custom code for dumping lrecord_implementations_table - use
9938         dumpopaque instead.
9939         Remove (most of the) custom code for dumping staticpros - dump it
9940         like any other dynarr.
9941
9942         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9943         * dumper.c: Moved functions from alloc.c.
9944         * alloc.c (dumpstruct): Moved to dumper.c.
9945         * alloc.c (dumpopaque): Likewise.
9946         * alloc.c (pdump_wire): Likewise.
9947         * alloc.c (pdump_wire_list): Likewise.
9948
9949         * lisp.h (Dynarr_sizeof): New.
9950         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9951         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9952         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9953
9954         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9955         * lisp.h (dumpopaque): ditto.
9956         * lisp.h (pdump_wire): ditto.
9957         * lisp.h (pdump_wire_list): ditto.
9958
9959 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9960
9961         * make-src-depend (PrintPatternDeps):
9962         Use `sort' to make output independent of perl version.
9963
9964 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9965
9966         Port to Netbsd 1.5.
9967         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9968         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9969
9970 2001-01-03  Didier Verna  <didier@xemacs.org>
9971
9972         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9973         that `focus_frame' is alive before thinking of calling
9974         `redisplay_redraw_cursor' on it.
9975
9976 2001-01-08  Martin Buchholz <martin@xemacs.org>
9977
9978         * XEmacs 21.2.40 is released.
9979
9980 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9981
9982         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9983
9984 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9985
9986         * alloc.c (dbg_valmask): Make const.
9987         * alloc.c (dbg_typemask): Make const.
9988         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9989         * alloc.c (dbg_valbits): Make const.
9990         * alloc.c (dbg_gctypebits): Make const.
9991
9992 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9993
9994         * redisplay-x.c (x_bevel_area):
9995         redisplay.h (struct rune):
9996         Typo fixes in comments.
9997
9998 2001-01-05  Andy Piper  <andy@xemacs.org>
9999
10000         * glyphs-x.c (x_redisplay_widget): use size changed for offset
10001         adjustment.
10002
10003         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
10004
10005 2001-01-05  Martin Buchholz  <martin@xemacs.org>
10006
10007         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
10008
10009         * mule-ccl.c (stack_idx_of_map_multiple):
10010         Non const global data must not be initialized!
10011         Found by MIYASHITA Hisashi.
10012
10013 2001-01-02  Andy Piper  <andy@xemacs.org>
10014
10015         * frame.c (change_frame_size): make sure frame size is always
10016         marked as changed.
10017
10018         * glyphs.c (image_instance_layout): minor code reuse.
10019
10020         * window.c (Fcurrent_window_configuration): revert previous
10021         change.
10022
10023 2001-01-02  Martin Buchholz  <martin@xemacs.org>
10024
10025         * glyphs.h:
10026         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
10027
10028 2000-12-31  Andy Piper  <andy@xemacs.org>
10029
10030         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
10031         when widget gets unmapped.
10032
10033         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
10034         function. Make sure widgets losing focus don't just drop it.
10035         (handle_focus_event_1): record the widget with focus.
10036
10037 2000-12-31  Andy Piper  <andy@xemacs.org>
10038
10039         * window.c (allocate_window): use
10040         make_image_instance_cache_hash_table.
10041         (make_dummy_parent): ditto.
10042         (Fset_window_configuration): ditto.
10043
10044         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
10045
10046         * glyphs.c (process_image_string_instantiator): use
10047         INSTANTIATOR_TYPE.
10048         (get_image_instantiator_governing_domain): ditto.
10049         (normalize_image_instantiator): ditto.
10050         (instantiate_image_instantiator): ditto.
10051         (make_image_instance_1): ditto.
10052         (image_instantiate): ditto. Key on glyph *and* instantiator type.
10053         (instantiator_eq_equal): new function for use with instance hash
10054         tables.
10055         (instantiator_eq_hash): ditto.
10056         (make_image_instance_cache_hash_table): create a suitable hash
10057         table for storing image instances.
10058
10059         * elhash.h (hash_table_weakness): new internal weakness type
10060         HASH_TABLE_KEY_CAR_VALUE_WEAK.
10061         declare new functions.
10062
10063         * elhash.c (finish_marking_weak_hash_tables): introduce yet
10064         another weakness type for glyphs.
10065         (make_standard_lisp_hash_table): new function split out from
10066         make_general_lisp_hash_table.
10067         (make_lisp_hash_table): call make_standard_lisp_hash_table.
10068         (hash_table_instantiate): ditto.
10069         (Fmake_hash_table): ditto.
10070
10071 2000-12-31  Martin Buchholz <martin@xemacs.org>
10072
10073         * XEmacs 21.2.39 is released.
10074
10075 2000-12-29  Andy Piper  <andy@xemacs.org>
10076
10077         * menubar.c (menubar_visible_p_changed): signal the frame changed.
10078
10079         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
10080         the frame has changed so that we pick up geometry changes such as
10081         menubar visibility.
10082
10083 2000-12-28  Andy Piper  <andy@xemacs.org>
10084
10085         * lastfile.c (my_ebss): make a char array so we can pad the
10086         bss. Fixes cygwin unexec.
10087
10088         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
10089
10090 2000-12-26  Andy Piper  <andy@xemacs.org>
10091
10092         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
10093         comments and try and be more precise about a non-/SIGIO world.
10094         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
10095         SIGIO.
10096
10097         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
10098         we don't normalize to zero width or height.
10099
10100 2000-12-24  Andy Piper  <andy@xemacs.org>
10101
10102         * Makefile.in.in (ldflags): add -mwindows when appropriate.
10103
10104 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
10105
10106         * s/sco5.h: SCO 5 has pty support.
10107
10108 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
10109
10110         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
10111         input-method-xlib.c contains whole contents of input-method-xfs.c,
10112         so we can use input-method-xlib.c's code for USE_XFONTSET
10113         using #ifdefs.
10114         * input-method-xfs.c: removed.
10115
10116 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
10117
10118         * file-coding.h (enum coding_category_type): reorder enumerators to
10119         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
10120         (now one greater than largest real coding_category_type enumerator).
10121         * file-coding.c (coding_category_symbol, coding_category_by_priority,
10122         coding_category_system, fcd_descriptihon_1, decode_coding_category,
10123         Fcoding_category_list, Fset_coding_priority_list,
10124         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
10125         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
10126
10127 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10128
10129         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
10130         * redisplay-output.c (redisplay_output_window): Clear top of window
10131         when face is changed.
10132         * redisplay-x.c (x_redraw_exposed_window): Call
10133         redisplay_clear_top_of_window.
10134         * redisplay.h: Publish redisplay_clear_top_of_window.
10135
10136 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10137
10138         * buffer.c (Fkill_buffer): Map over all devices.
10139         * window.c (window_loop): Remove UNSHOW_BUFFER code.
10140         (list_windows): New function.
10141         (list_all_windows): Ditto.
10142         (Freplace_buffer_in_windows): Use them.
10143
10144 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
10145
10146         * database.c (berkdb_subtype): Recognize new subtype `queue'.
10147         (Fopen_database): Use `db_create' instead of `db_open'.
10148         (syms_of_database): Initialize Qqueue.
10149
10150 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10151
10152         * buffer.c (common_init_complex_vars_of_buffer): Initialize
10153         buffer_local_face_property.
10154         * buffer.h (struct buffer): New member buffer_local_face_property.
10155         * window.c (Fset_window_buffer):  Mark window's face as changed
10156         when buffer has buffer local face.
10157         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
10158         * objects.c (color_after_change): Set buffer_local_face_property
10159         when locale of face specifier is buffer.
10160         * objects.c (font_after_change): Ditto.
10161         * objects.c (face_boolean_after_change): Ditto.
10162         * glyphs.c (image_after_change): Ditto.
10163
10164 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10165
10166         * nt.c (mswindows_fstat): Report file permissions, volume serial
10167         number, etc. Code adapted from FSF Emacs 20.7.
10168
10169 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10170
10171         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
10172         of stat when we don't have symbolic links, to make sure
10173         mswindows_stat is called on mswindows.
10174
10175 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
10176
10177         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
10178
10179 2000-12-12  Martin Buchholz  <martin@xemacs.org>
10180
10181         * doprnt.c (emacs_doprnt_1): More printing fixes.
10182         Make printing of numbers compatible with libc and FSF Emacs.
10183         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
10184         Use the system printf to do most of the hard work of formatting,
10185         instead of doprnt_1().
10186         Calculate memory to allocate for format string.
10187         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
10188         (doprnt_1): Cleaner code and documentation.
10189
10190 2000-12-01  Jerry James  <james@eecs.ukans.edu>
10191
10192         * Makefile.in.in: Use the loop variable to install headers.
10193
10194 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10195
10196         * window.c (Fsplit_window): Don't invalidate face cache.
10197
10198 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10199
10200         * minibuf.c (Fall_completions): Undo the previous change
10201         which removed checking elements start with space.
10202
10203 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10204
10205         * mule-canna.c: Didier suppression.
10206
10207 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10208
10209         * mule-canna.c: rename static unsigned char buf[] to key_buffer
10210         (warning suppression).  Add English comment translations.
10211
10212 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10213
10214         * unexelfsgi.c (unexec): Better test for mmap failure.
10215
10216 2000-12-05  Martin Buchholz <martin@xemacs.org>
10217
10218         * XEmacs 21.2.38 is released.
10219
10220 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10221
10222         * redisplay.c (bar-cursor): Make a user variable.
10223
10224         * symsinit.h: Add init_postgresql_from_environment.
10225
10226 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10227
10228         * regex.c: Convert to clean C.
10229
10230 2000-12-05  Dan Holmsand  <dan@eyebee.com>
10231
10232         * realpath.c:
10233         Don't #include sysfile.h. Revert to duplicating PATH_MAX
10234         initialization.
10235         (sys_readlink): renamed to system_readlink to avoid conflict with
10236         the other sys_readlink.
10237
10238 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
10239
10240         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
10241
10242 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
10243
10244         * postgresql.c (init_postgresql_from_environment): new function.
10245         (vars_of_postgresql): Move code initializing Lisp variables out and
10246         into init_postgresql_from_environment.
10247         emacs.c (main_1): Call init_postgresql_from_environment if and only
10248         if running a dumped XEmacs.
10249
10250 2000-08-31  Dan Holmsand  <dan@eyebee.com>
10251
10252         * buffer.c: Make find-file-compare-truenames default to true on
10253         windows.
10254
10255         * realpath.c (win32_abs_start):
10256         (cygwin_readlink):
10257         (win32_readlink): New functions.
10258         (xrealpath): Return really real filenames on windows.
10259
10260         * fileio.c (Ffile_truename): Make file-truename work on windows.
10261
10262 2000-11-29  Didier Verna  <didier@xemacs.org>
10263
10264         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
10265         * faces.c (update_face_cachel_data): use it.
10266         * faces.c (add_face_cachel): use it. Complete background pixmap
10267         frobbing in face cache if `update_face_cachel_data' has not done so.
10268
10269 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
10270
10271         * search.c (string_match_1): Don't set last_thing_searched
10272         when search failed.
10273
10274 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
10275
10276         * buffer.c: Include casetab.h
10277         (common_init_complex_vars_of_buffer): Use new case-table object.
10278         * buffer.h: Include casetab.h
10279         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
10280         (DOWNCASE_TABLE_OF): Ditto.
10281         * bufslots.h: Remove char-tables and add case-table.
10282         * casetab.c: Include casetab.h
10283         (CASE_TABLE_P): Removed.
10284         (mark_case_table): New function.
10285         (allocate_case_table): New function.
10286         (Fcase_table_p): Use new case-table.
10287         (case_table_char): New function.
10288         (Fget_case_table): Ditto.
10289         (Fput_case_table): Ditto.
10290         (Fput_case_table_pair): Ditto.
10291         (Fcopy_case_table): Ditto.
10292         (Fcurrent_case_table): Return case-table.
10293         (Fstandard_case_table): Return case-table.
10294         (Fset_case_table): Fix doc-string.
10295         (set_case_table): Use case-table
10296         (syms_of_casetab): DEFSUBR new functions.
10297         (complex_vars_of_casetab): Set up standard case-table.
10298         * casetab.h: New file.
10299         * editfns.c: Include casetab.h
10300         (Fcompare_buffer_substrings): Use case-table.
10301         * inline.c: Include casetab.h
10302         * lisp.h: Remove bogus extern.
10303         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
10304         * search.c: Include casetab.h
10305         (TRANSLATE_ASCII): Removed.
10306         (TRANSLATE): Unconditionally translate character.
10307         (looking_at_1): Use case-table.
10308         (string_match_1): Ditto.
10309         (fast_string_match): Ditto.
10310         (search_command): Ditto.
10311         (search_buffer): Separate boyer_moore.  Check whether
10312         boyer_moore is possible.
10313         (simple_search): New function.
10314         (boyer_moore): Separated from search_buffer. Translate char.
10315
10316 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10317
10318         * regex.c (RE_TR_ASCII): Removed.
10319         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
10320         (PATFETCH): Call PATFETCH_RAW.
10321         (PATFETCH_RAW): Fetch Emchar.
10322         (PATUNFETCH): Decrement charptr.
10323         (GET_BUFFER_SPACE): Rename b to buf_end.
10324         (BUF_PUSH): Ditto.
10325         (BUF_PUSH_2): Ditto.
10326         (BUF_PUSH_3): Ditto.
10327         (EXTEND_BUFFER): Ditto.
10328         (SET_LIST_BIT): Ditto.
10329         (regex_compile): Ditto.  Translate non ASCII char.
10330         (compile_range): Ditto.
10331         (re_search_2): Ditto.
10332         (re_match_2_internal): Compare Emchar.
10333         (bcmp_translate): Ditto.
10334
10335 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
10336
10337         * lisp.h (basic char/int typedefs):  comment improvement.
10338
10339 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
10340
10341         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
10342         unstomp inhibit_site_lisp.  Improve comments.
10343
10344 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
10345
10346         * mule-charset.c (Fcharset_property):  improve type checking, comments.
10347
10348 2000-11-28  Andy Piper  <andy@xemacs.org>
10349
10350         * redisplay-output.c (redisplay_output_subwindow): make sure we do
10351         clipped display for windows in the gutter also.
10352         (redisplay_display_boxes_in_window_p): change semantics of return
10353         codes to be more intuitive.
10354
10355         * gutter.h: declare display_boxes_in_gutter_p.
10356
10357         * gutter.c (display_boxes_in_gutter_p): new function for
10358         redisplay.
10359
10360 2000-11-22  Andy Piper  <andy@xemacs.org>
10361
10362         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10363         autodetect domain.
10364
10365 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10366
10367         * callproc.c (Fold_call_process_internal):
10368         * gpm.c (Freceive_gpm_event):
10369         (tty_get_foreign_selection): Might be just warning supression.
10370         * fileio.c (Fwrite_region_internal):
10371         (Fset_visited_file_modtime):
10372         * keymap.c (event_matches_key_specifier_p):
10373         Initialize GCPROed variable.
10374
10375         * menubar-x.c (command_builder_find_menu_accelerator):
10376         Initialize before use.
10377
10378 2000-11-23  Andy Piper  <andy@xemacs.org>
10379
10380         * unexcw.c (unexec): make the resulting executable executable.
10381
10382 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10383
10384         * doc.c (get_doc_string):
10385         Use size_t, not int, for result of XSTRING_LENGTH.
10386
10387         * cmds.c (Fdelete_char):
10388         * cmds.c (Fpoint_at_eol):
10389         * cmds.c (Fself_insert_command):
10390         Use EMACS_INT, not int, for result of XINT.
10391         Someday, someone will want to insert more than 2**31 identical characters.
10392
10393         * cmds.c (Fdelete_char):
10394         * cmds.c (Fdelete_backward_char):
10395         * syntax.c (Fforward_word):
10396         * syntax.c (Fforward_comment):
10397         Make COUNT argument optional, for consistency with forward-char et al.
10398
10399 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10400
10401         * lisp.h:
10402         * print.c (long_to_string):
10403         Return a useful value: the pointer at end of data written.
10404
10405         * doprnt.c:
10406         Use `static const char * const' for constant strings.
10407         (union printf_arg): Delete `i', `ui' members.
10408         (get_doprnt_args):
10409         (emacs_doprnt_1):
10410         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10411         Do all printf-ing via the `l' specifier.
10412         Use EMACS_INT instead of int.
10413         Optimize.
10414
10415 2000-11-20  Didier Verna  <didier@xemacs.org>
10416
10417         * faces.c (update_face_cachel_data): don't frob the background
10418         pixmap when the window is being created. The face is needed but
10419         does not exist yet.
10420
10421 2000-11-20  Andy Piper  <andy@xemacs.org>
10422
10423         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10424         messing with a debug environment.
10425
10426 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10427
10428         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10429
10430 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10431
10432         * casetab.c (Fcase_table_p): Fix compile error and crash.
10433
10434 2000-11-18  Philip Aston  <philipa@mail.com>
10435
10436         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10437
10438 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10439
10440         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10441         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10442
10443 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10444
10445         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10446         * unexelf.c: Use HAVE_ELF_H.
10447         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10448         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10449         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10450         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10451         for testing.
10452         So this is an unexelfsgi.c from a different line of development.
10453
10454 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10455
10456         * regex.c (RE_TR_ASCII): New function.
10457         (RE_TRANSLATE): Call it.
10458
10459 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10460
10461         * buffer.h (TRT_TABLE_OF): Remove assert.
10462         (IN_TRT_TABLE_DOMAIN): Removed.
10463
10464 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10465
10466         * free-hook.c (log_gcpro):
10467         (show_gcprohist): Add support for GCPRO5.
10468
10469 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10470
10471         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10472
10473 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10474
10475         * symeval.h: Declare flush_all_buffer_local_cache.
10476
10477         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10478         (flush_buffer_local_cache): Added.
10479         (flush_all_buffer_local_cache): Added.
10480
10481         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10482
10483         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10484         (pdump_dump_data): Ditto.
10485         (pdump_reloc_one): Ditto.
10486         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10487         before dumping.
10488
10489
10490 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10491
10492         * buffer.c: Remove if 0'ed entry.
10493         * buffer.h: Rewrite TRT to use char-table.
10494         * bufslots.h: Remove mirror tables.
10495         * casetab.c: Remove mirror tables.
10496         (CASE_TABLE_P): New macro.
10497         (Fcase_table_p): Element of a case table is string or char-table.
10498         (make_mirror_trt_table): Removed.
10499         (set_case_table): Setup char-table from strings for backward
10500         compatibility.
10501         * dired.c (Fdirectory_files):
10502         * dired-msw.c: (mswindows_get_files):
10503         * lisp.h: Change prototype of re_pattern_buffer.
10504         * regex.c: (RE_TRANSLATE): New macro.
10505         (TRANSLATE_P): Ditto.
10506         Change translate to type RE_TRANSLATE_TYPE.
10507         * regex.h: Define RE_TRANSLATE_TYPE
10508         * search.c (TRANSLATE): New macro.
10509         (TRANSLATE_ASCII): New macro.
10510         Translate table is changed to Lisp_Object.
10511         (signal_failure): Inhibit return.
10512
10513 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10514
10515         * device-msw.c:
10516         * eldap.c:
10517         * event-Xt.c:
10518         * event-stream.c:
10519         * print.c:
10520         Do UNGCPRO before return.
10521
10522 2000-11-14  Martin Buchholz <martin@xemacs.org>
10523
10524         * XEmacs 21.2.37 is released.
10525
10526 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10527
10528         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10529         Add comments about discarded return value.
10530
10531 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10532
10533         * callint.c:
10534         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10535
10536 2000-10-27  Andy Piper  <andy@xemacs.org>
10537
10538         * gutter.c (Fset_default_gutter_position): default left and right
10539         gutters to visible.
10540         (calculate_gutter_size): calculate resonable heuristic for left
10541         and right gutter sizes.
10542         (specifier_vars_of_gutter): change left and right gutter sizes to
10543         autodetect.
10544         (calculate_gutter_size_from_display_lines): new function.
10545         (output_gutter): check for resizing on left and right gutters.
10546         (clear_gutter): don't special case top and left gutters.
10547         (specifier_vars_of_gutter): use new signature for
10548         set_specifier_caching.
10549
10550         * glyphs-x.c (x_redisplay_widget): spelling fix.
10551         * glyphs.c (specifier_vars_of_glyphs):
10552         * menubar.c (specifier_vars_of_menubar):
10553         * redisplay.c (specifier_vars_of_redisplay):
10554         * toolbar.c (specifier_vars_of_toolbar):
10555         * window.c (specifier_vars_of_window):
10556         * scrollbar.c (specifier_vars_of_scrollbar):
10557         (complex_vars_of_scrollbar): use new signature for
10558         set_specifier_caching.
10559
10560         * specifier.c (set_specifier_caching): include recompute flag.
10561         (recompute_one_cached_specifier_in_window): always recompute if
10562         flag set.
10563         (recompute_one_cached_specifier_in_frame): ditto.
10564
10565         * specifier.h (struct specifier_caching): add recompute flag.
10566
10567 2000-10-24  Andy Piper  <andy@xemacs.org>
10568
10569         * unexcw.c (copy_executable_and_dump_data_section): add new
10570         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10571         5.0 happy.
10572
10573 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10574
10575         * console-x.h (x_device): New member modifier_release_time.
10576         * event-Xt.c (x_handle_sticky_modifiers):
10577         Bound interval modifier keys are sticky.
10578         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10579         * events.h: extern it.
10580
10581 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10582
10583         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10584
10585 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10586
10587         * event-stream.c (execute_command_event): Preserve current_events
10588         and the like when event is misc-user-event.
10589         Inhibit quit during the call to maybe_echo_keys.
10590
10591 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10592
10593         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10594         symlink when buffer is killed.
10595         (inhibit_clash_detection): New variable.
10596
10597 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10598
10599         * console.c (Fset_input_method): Trigger redisplay on tty.
10600
10601 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10602
10603         * process.c (Fprocess_status): Revert to previous behavior:
10604         (process-status "nosuchprocess") ==> nil
10605
10606 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10607
10608         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10609         Work around another GCC 2.95.2 optimizer bug.
10610
10611 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10612
10613         * process.c (Fget_process): Use LIST_LOOP_2.
10614         (kill_buffer_processes): Use LIST_LOOP_2.
10615
10616         * minibuf.c (Fall_completions):
10617         Delete old non-functional code for FSF fourth argument.
10618
10619         * frame.c (frame_matches_frame_spec):
10620         Renamed from `frame_matches_frametype'.  Update all callers.
10621         (device_matches_device_spec):
10622         Renamed from 'device_matches_console_spec'.  Update all callers.
10623
10624         * doc.c (Fsubstitute_command_keys):
10625         Remove buffer overflow crash.  Small code cleanups.
10626
10627         * casetab.c (check_case_table): Simpler code.
10628
10629         * window.c (Freplace_buffer_in_windows):
10630         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10631         (and similar implementation) as Fdelete_windows_on.
10632         Update all callers.
10633
10634         * alloc.c (Fmake_list):
10635         * alloc.c (make_vector):
10636         * alloc.c (Fmake_vector):
10637         * alloc.c (make_bit_vector):
10638         * alloc.c (Fmake_bit_vector):
10639         * alloc.c (Fbit_vector):
10640         * alloc.c (Fmake_string):
10641         * alloc.c (Fpurecopy):
10642         * alloc.c (Fmemory_limit):
10643         * buffer.c:
10644         * buffer.c (Fget_buffer):
10645         * buffer.c (Fkill_buffer):
10646         * buffer.c (complex_vars_of_buffer):
10647         * bytecode.c (Fcompiled_function_stack_depth):
10648         * callint.c (Fprefix_numeric_value):
10649         * event-stream.c:
10650         * event-stream.c (Fread_key_sequence):
10651         * casetab.c:
10652         * casetab.c (Fcase_table_p):
10653         * casetab.c (check_case_table):
10654         * casetab.c (Fset_case_table):
10655         * casetab.c (Fset_standard_case_table):
10656         * chartab.c:
10657         * chartab.c (Fchar_table_type):
10658         * chartab.c (Freset_char_table):
10659         * chartab.c (Fget_char_table):
10660         * chartab.c (Fget_range_char_table):
10661         * chartab.c (Fput_char_table):
10662         * chartab.c (Fmap_char_table):
10663         * chartab.c (Fcategory_table_p):
10664         * chartab.c (Fcheck_category_at):
10665         * chartab.c (Fchar_in_category_p):
10666         * chartab.c (Fcategory_table):
10667         * chartab.c (Fcopy_category_table):
10668         * chartab.c (Fset_category_table):
10669         * chartab.c (Fcategory_designator_p):
10670         * chartab.c (Fcategory_table_value_p):
10671         * cmds.c (Fdelete_char):
10672         * cmds.c (Fdelete_backward_char):
10673         * cmds.c (Fself_insert_command):
10674         * cmds.c (Fself_insert_internal):
10675         * console.c (Fvalid_console_type_p):
10676         * console.c (Fcdfw_console):
10677         * console.c (Fconsole_type):
10678         * console.c (Fconsole_name):
10679         * console.c (Fconsole_device_list):
10680         * console.c (Fconsole_on_window_system_p):
10681         * data.c:
10682         * data.c (Feq):
10683         * data.c (Fold_eq):
10684         * data.c (Fsubr_interactive):
10685         * data.c (Fchar_to_int):
10686         * data.c (Fint_to_char):
10687         * data.c (Fsetcar):
10688         * data.c (Fsetcdr):
10689         * data.c (Fnumber_to_string):
10690         * data.c (Fstring_to_number):
10691         * data.c (Frem):
10692         * database.c (mark_database):
10693         * database.c (finalize_database):
10694         * database.c (Fdatabase_live_p):
10695         * database.c (Fdatabasep):
10696         * device-x.c (Fx_get_resource):
10697         * device.c (Fdfw_device):
10698         * dired.c:
10699         * dired.c (Ffile_name_completion):
10700         * dired.c (Ffile_name_all_completions):
10701         * dired.c (Fuser_name_completion):
10702         * dired.c (Fuser_name_completion_1):
10703         * dired.c (Fuser_name_all_completions):
10704         * doc.c (Fdocumentation):
10705         * doc.c (Fdocumentation_property):
10706         * doc.c (Fsubstitute_command_keys):
10707         * editfns.c:
10708         * editfns.c (Fchar_to_string):
10709         * editfns.c (Fstring_to_char):
10710         * editfns.c (Ftemp_directory):
10711         * editfns.c (Finsert_char):
10712         * editfns.c (Fbuffer_substring_no_properties):
10713         * editfns.c (Fnarrow_to_region):
10714         * editfns.c (Fchar_equal):
10715         * editfns.c (Fchar_Equal):
10716         * editfns.c (Ftranspose_regions):
10717         * emacs.c (Fdump_emacs):
10718         * eval.c (Fthrow):
10719         * eval.c (Fcommand_execute):
10720         * eval.c (Fautoload):
10721         * eval.c (Fbacktrace):
10722         * eval.c (Fbacktrace_frame):
10723         * events.c:
10724         * events.c (Fcopy_event):
10725         * events.c (Fcharacter_to_event):
10726         * events.c (Fevent_button):
10727         * events.c (Fevent_process):
10728         * extents.c:
10729         * extents.c (Fnext_extent_change):
10730         * extents.c (Fextent_property):
10731         * faces.c (Ffacep):
10732         * faces.c (Fmake_face):
10733         * file-coding.c:
10734         * file-coding.c (Fencode_shift_jis_char):
10735         * file-coding.c (Fencode_big5_char):
10736         * fileio.c (Ffile_name_directory):
10737         * fileio.c (Ffile_name_nondirectory):
10738         * fileio.c (Ffile_name_as_directory):
10739         * fileio.c (Fdirectory_file_name):
10740         * fileio.c (Ffile_truename):
10741         * fileio.c (Fsubstitute_in_file_name):
10742         * fileio.c (Ffile_modes):
10743         * fileio.c (Fset_file_modes):
10744         * fileio.c (Fset_default_file_modes):
10745         * fileio.c (Fverify_visited_file_modtime):
10746         * floatfns.c (Facos):
10747         * floatfns.c (Fasin):
10748         * floatfns.c (Fatan):
10749         * floatfns.c (Fcos):
10750         * floatfns.c (Fsin):
10751         * floatfns.c (Ftan):
10752         * floatfns.c (Fbessel_j0):
10753         * floatfns.c (Fbessel_j1):
10754         * floatfns.c (Fbessel_jn):
10755         * floatfns.c (Fbessel_y0):
10756         * floatfns.c (Fbessel_y1):
10757         * floatfns.c (Fbessel_yn):
10758         * floatfns.c (Ferf):
10759         * floatfns.c (Ferfc):
10760         * floatfns.c (Flog_gamma):
10761         * floatfns.c (Fexp):
10762         * floatfns.c (Fexpt):
10763         * floatfns.c (Flog):
10764         * floatfns.c (Flog10):
10765         * floatfns.c (Fsqrt):
10766         * floatfns.c (Fcube_root):
10767         * floatfns.c (Facosh):
10768         * floatfns.c (Fasinh):
10769         * floatfns.c (Fatanh):
10770         * floatfns.c (Fcosh):
10771         * floatfns.c (Fsinh):
10772         * floatfns.c (Ftanh):
10773         * floatfns.c (Fabs):
10774         * floatfns.c (Ffloat):
10775         * floatfns.c (Flogb):
10776         * floatfns.c (Fceiling):
10777         * floatfns.c (Ffloor):
10778         * floatfns.c (Fround):
10779         * floatfns.c (Ftruncate):
10780         * floatfns.c (Ffceiling):
10781         * floatfns.c (Fffloor):
10782         * floatfns.c (Ffround):
10783         * floatfns.c (Fftruncate):
10784         * fns.c (Fstring_equal):
10785         * fns.c (Fstring_lessp):
10786         * fns.c (concat2):
10787         * fns.c (concat3):
10788         * fns.c (vconcat2):
10789         * fns.c (vconcat3):
10790         * fns.c (Fsubstring):
10791         * fns.c (Fassoc):
10792         * fns.c (Fold_assoc):
10793         * fns.c (assoc_no_quit):
10794         * fns.c (Fassq):
10795         * fns.c (Fold_assq):
10796         * fns.c (assq_no_quit):
10797         * fns.c (Frassoc):
10798         * fns.c (Fold_rassoc):
10799         * fns.c (Frassq):
10800         * fns.c (Fold_rassq):
10801         * fns.c (rassq_no_quit):
10802         * fns.c (Fremassoc):
10803         * fns.c (remassoc_no_quit):
10804         * fns.c (Fremassq):
10805         * fns.c (remassq_no_quit):
10806         * fns.c (Fremrassoc):
10807         * fns.c (Fremrassq):
10808         * fns.c (remrassq_no_quit):
10809         * fns.c (Fsort):
10810         * fns.c (Fplist_get):
10811         * fns.c (Fplist_put):
10812         * fns.c (Fplist_remprop):
10813         * fns.c (Fplist_member):
10814         * fns.c (Flax_plist_get):
10815         * fns.c (Flax_plist_put):
10816         * fns.c (Flax_plist_remprop):
10817         * fns.c (Flax_plist_member):
10818         * fns.c (Fequal):
10819         * fns.c (Fold_equal):
10820         * fns.c (Frequire):
10821         * fns.c (Fbase64_encode_region):
10822         * fns.c (Fbase64_encode_string):
10823         * fns.c (Fbase64_decode_region):
10824         * frame.c:
10825         * frame.c (frame_matches_frame_spec):
10826         * frame.c (device_matches_device_spec):
10827         * frame.c (next_frame):
10828         * frame.c (previous_frame):
10829         * frame.c (Fnext_frame):
10830         * frame.c (Fprevious_frame):
10831         * frame.c (Fframe_property):
10832         * frame.c (Fset_frame_height):
10833         * frame.c (Fset_frame_size):
10834         * frame.h:
10835         * glyphs.c:
10836         * glyphs.c (if):
10837         * glyphs.c (decode_error_behavior_flag):
10838         * glyphs.c (Fmake_image_instance):
10839         * indent.c (Findent_to):
10840         * intl.c (Fignore_defer_gettext):
10841         * keymap.c (Fkeymapp):
10842         * keymap.c (Flookup_key):
10843         * lread.c:
10844         * lread.c (Fload_internal):
10845         * lread.c (Feval_buffer):
10846         * lread.c (Feval_region):
10847         * macros.c (Fexecute_kbd_macro):
10848         * marker.c (set_marker_internal):
10849         * marker.c (Fset_marker):
10850         * marker.c (set_marker_restricted):
10851         * marker.c (Fcopy_marker):
10852         * marker.c (noseeum_copy_marker):
10853         * menubar.c:
10854         * menubar.c (Fpopup_menu):
10855         * minibuf.c:
10856         * mule-charset.c (Fcharset_name):
10857         * mule-charset.c (Fchar_charset):
10858         * mule-charset.c (Fchar_octet):
10859         * mule-charset.c (Fsplit_char):
10860         * mule-wnnfns.c (Fwnn_open):
10861         * mule-wnnfns.c (Fwnn_dict_comment):
10862         * mule-wnnfns.c (Fwnn_quit_henkan):
10863         * mule-wnnfns.c (Fwnn_word_toroku):
10864         * mule-wnnfns.c (Fwnn_word_sakujo):
10865         * mule-wnnfns.c (Fwnn_word_use):
10866         * mule-wnnfns.c (Fwnn_hindo_set):
10867         * objects.c:
10868         * objects.c (Fmake_color_instance):
10869         * objects.c (Fmake_font_instance):
10870         * print.c (Fwrite_char):
10871         * process.c:
10872         * process.c (mark_process):
10873         * process.c (print_process):
10874         * process.c (get_process_from_usid):
10875         * process.c (Fprocessp):
10876         * process.c (Fprocess_live_p):
10877         * process.c (Fget_process):
10878         * process.c (Fget_buffer_process):
10879         * process.c (get_process):
10880         * process.c (Fprocess_id):
10881         * process.c (Fprocess_name):
10882         * process.c (Fprocess_command):
10883         * process.c (init_process_io_handles):
10884         * process.c (start_process_unwind):
10885         * process.c (Fstart_process_internal):
10886         * process.c (Fopen_multicast_group_internal):
10887         * process.c (Fset_process_window_size):
10888         * process.c (read_process_output):
10889         * process.c (send_process):
10890         * process.c (Fprocess_tty_name):
10891         * process.c (Fset_process_buffer):
10892         * process.c (Fprocess_buffer):
10893         * process.c (Fprocess_mark):
10894         * process.c (set_process_filter):
10895         * process.c (Fset_process_filter):
10896         * process.c (Fprocess_filter):
10897         * process.c (Fprocess_send_region):
10898         * process.c (Fprocess_send_string):
10899         * process.c (exec_sentinel):
10900         * process.c (Fset_process_sentinel):
10901         * process.c (Fprocess_sentinel):
10902         * process.c (status_notify):
10903         * process.c (Fprocess_status):
10904         * process.c (Fprocess_exit_status):
10905         * process.c (process_send_signal):
10906         * process.c (Fprocess_send_eof):
10907         * process.c (deactivate_process):
10908         * process.c (remove_process):
10909         * process.c (Fdelete_process):
10910         * process.c (kill_buffer_processes):
10911         * process.c (Fprocess_kill_without_query):
10912         * process.c (Fprocess_kill_without_query_p):
10913         * rangetab.c:
10914         * rangetab.c (Fget_range_table):
10915         * rangetab.c (Fput_range_table):
10916         * rangetab.c (Fremove_range_table):
10917         * rangetab.c (Fclear_range_table):
10918         * search.c:
10919         * search.c (Fskip_chars_forward):
10920         * search.c (Fskip_chars_backward):
10921         * search.c (Fskip_syntax_forward):
10922         * search.c (Fskip_syntax_backward):
10923         * search.c (search_command):
10924         * search.c (Freplace_match):
10925         * search.c (Fregexp_quote):
10926         * select.c (Fown_selection_internal):
10927         * select.c (Fselection_owner_p):
10928         * select.c (Fselection_exists_p):
10929         * select.c (Fget_selection_internal):
10930         * specifier.c:
10931         * symbols.c:
10932         * symbols.c (Fintern):
10933         * symbols.c (Fintern_soft):
10934         * symbols.c (Funintern):
10935         * symbols.c (Fapropos_internal):
10936         * symbols.c (Fset_default):
10937         * syntax.c:
10938         * syntax.c (Fsyntax_table_p):
10939         * syntax.c (Fcopy_syntax_table):
10940         * syntax.c (Fset_syntax_table):
10941         * syntax.c (Fchar_syntax):
10942         * syntax.c (syntax_match):
10943         * syntax.c (Fmatching_paren):
10944         * syntax.c (Fforward_word):
10945         * syntax.c (scan_lists):
10946         * syntax.c (Fscan_lists):
10947         * syntax.c (Fscan_sexps):
10948         * syntax.c (Fparse_partial_sexp):
10949         * toolbar.c (Fcheck_toolbar_button_syntax):
10950         * tooltalk.doc:
10951         * window.c:
10952         * window.c (Fwindowp):
10953         * window.c (Fwindow_live_p):
10954         * window.c (Fwindow_point):
10955         * window.c (Fdelete_window):
10956         * window.c (Fnext_window):
10957         * window.c (Fprevious_window):
10958         * window.c (Fother_window):
10959         * window.c (window_loop):
10960         * window.c (Fget_lru_window):
10961         * window.c (Fsplit_window):
10962         * window.c (Fenlarge_window):
10963         * window.c (Fenlarge_window_pixels):
10964         * window.c (Fshrink_window):
10965         * window.c (Fshrink_window_pixels):
10966         * window.c (change_window_height):
10967         * window.c (Fwindow_configuration_p):
10968         * window.c (Fcurrent_window_configuration):
10969         * window.h:
10970         * casefiddle.c (casify_object):
10971         * casefiddle.c (Fupcase):
10972         * casefiddle.c (Fdowncase):
10973         * casefiddle.c (Fcapitalize):
10974         * casefiddle.c (Fupcase_initials):
10975         * casefiddle.c (casify_region_internal):
10976         * casefiddle.c (casify_region):
10977         * casefiddle.c (Fupcase_region):
10978         * casefiddle.c (Fdowncase_region):
10979         * casefiddle.c (Fcapitalize_region):
10980         * casefiddle.c (Fupcase_initials_region):
10981         * casefiddle.c (Fupcase_word):
10982         * casefiddle.c (Fdowncase_word):
10983         * casefiddle.c (Fcapitalize_word):
10984         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10985         Replace 0 with '\0' when working with bytes.
10986         Replace initial "(" with "\(" in docstrings.
10987
10988 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10989
10990         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10991
10992         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10993
10994 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10995
10996         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10997
10998 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10999
11000         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
11001         correctly.
11002
11003 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
11004
11005         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
11006         (inhibit_auto_save_session): New variable.
11007         (vars_of_fileio): Declare and initialize them.
11008         * fileio.c (Fdo_auto_save): Don't create session file if
11009         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
11010
11011 2000-10-31  Martin Buchholz  <martin@xemacs.org>
11012
11013         * sgiplay.c (play_internal): C++ compilability.
11014         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
11015         * callproc.c (Fold_call_process_internal):
11016         Remove unused vars `env', `first'.
11017         * scrollbar.c (update_scrollbar_instance):
11018         #### unused var `current_window'.
11019         * redisplay-tty.c: Put currently unused vars insert_mode_on,
11020         etc. within #ifdef NOT_YET.
11021         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
11022         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
11023         * specifier.c (specifier_instance):
11024         #### unused var `tag'.
11025         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
11026
11027 2000-10-27  Martin Buchholz  <martin@xemacs.org>
11028
11029         * fns.c (Fbutlast):
11030         * fns.c (list_sort):
11031         * fns.c (Ffillarray):
11032         * fns.c (bytecode_nconc2):
11033         * fns.c (Fnconc):
11034         * fns.c (mapcar1):
11035         * fns.c (Fmapconcat):
11036         Be pedantically 64-bit correct.  For the time when someone will
11037         want to have a list with length > 2**32.
11038
11039         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11040         Work around MIPSpro compiler bug.
11041
11042         * process-unix.c (unix_kill_child_process): Add snarky comment.
11043         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
11044
11045         * config.h.in: Oops, _getpt ==> _getpty
11046
11047 2000-10-26  Martin Buchholz  <martin@xemacs.org>
11048
11049         * config.h.in:
11050         * regex.c:
11051         Use void*, not char*, as return type of alloca().
11052
11053         * alloc.c (free_marker): Side effect inside assert expression!
11054
11055 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
11056
11057         * mule-charset.c (Fset_charset_ccl_program): To check
11058         if the given ccl program is valid, use setup_ccl_program()
11059         instead of CHECK_VECTOR().
11060         (Fmake_charset): Likewise.
11061
11062 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
11063
11064         * faces.c (get_extent_fragment_face_cache_index):
11065         Fix cachel.merged_faces memory leak.
11066
11067 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
11068
11069         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
11070         Reset MSB of octets obtained by DECODE_SJIS
11071         because of the incompatibility with Emacs.
11072         (ccl_driver)<CCL_ENCODE_SJIS>:
11073         Set MSB of octets before passing them to
11074         ENCODE_SJIS because of the incompatibility
11075         with Emacs.
11076
11077 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
11078
11079         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
11080         (DECLARE_LRECORD): Undo the last change.
11081         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
11082
11083 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
11084
11085         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
11086         the implementation to lrecord_implementations_table.
11087
11088 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
11089
11090         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
11091         initial value of `lrecord_type_##c_name' and
11092         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
11093         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
11094         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
11095         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
11096         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
11097
11098 2000-10-17  Martin Buchholz  <martin@xemacs.org>
11099
11100         * miscplay.c (sndcnv8S_2mono):
11101         (sndcnv2monounsigned):
11102         (sndcnvULaw_2linear):
11103         (sndcnv16swap):
11104         Remove implementation-defined behavior.
11105
11106 2000-10-12  Martin Buchholz  <martin@xemacs.org>
11107
11108         * input-method-xlib.c: Warning suppression.
11109
11110 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
11111
11112         * mule-ccl.c: Sync up with Emacs 21.0.90.
11113         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
11114         Do nothing.
11115         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
11116         Likewise.
11117         (ccl_driver[WriteMultibyteChar2]): Bug fix.
11118         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
11119         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
11120         leading char belongs to official 2-dimensional charset.
11121         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
11122         write the given character as is.  Otherwise,
11123         if it is a multibyte char, convert it by
11124         non_ascii_set_charptr_emchar, then write it.
11125         (CCL_WRITE_STRING): Likewise.
11126         (ccl_get_compiled_code): New function.
11127         (setup_ccl_program): When ccl_prog is invalid,
11128         return -1.
11129         (Fregister_code_conversion_map): New function.
11130         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
11131
11132         * mule-ccl.h: Sync up with Emacs 21.0.90.
11133         (Fregister_ccl_program): export it.
11134
11135         * redisplay-msw.c (separate_textual_runs):
11136         If ccl program is not valid, don't do ccl conversion.
11137
11138         * redisplay-x.c (separate_textual_runs): Ditto.
11139
11140         * file-coding.c (Fmake_coding_system):
11141         When type is ccl and value is vector, register it
11142         with a proper symbol.  And checks whether the
11143         given ccl program is valid.
11144         (mule_decode): When calling ccl_driver, if src indicates
11145         NULL pointer, set an empty string instead.
11146         (mule_encode): Likewise.
11147
11148 2000-10-11  Martin Buchholz  <martin@xemacs.org>
11149
11150         The following large batch of changes gets us back to a state of
11151         C++ compilability.  Extbyte is now a char, which means that
11152         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
11153
11154         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
11155
11156         * sound.c (Fplay_sound): Type correctness.
11157
11158         * select-x.c (hack_motif_clipboard_selection): Type correctness.
11159         (x_get_window_property): Type correctness.
11160         (receive_incremental_selection): unsigned char ==> Extbyte
11161         (selection_data_to_lisp_data): unsigned char ==> Extbyte
11162         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
11163         (Fx_store_cutbuffer_internal): Type correctness.
11164
11165         * process-unix.c (try_to_initialize_subtty): Type correctness.
11166
11167         * objects-x.c (x_print_color_instance): Type correctness.
11168         (x_print_font_instance): Type correctness.
11169         (x_list_fonts): SExtbyte ==> Extbyte.
11170         (valid_x_font_name_p): SExtbyte ==> Extbyte.
11171         (x_find_charset_font): SExtbyte ==> Extbyte.
11172         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
11173         (truename_via_XListFonts): SExtbyte ==> Extbyte.
11174         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
11175         Use bufbyte_strcmp.
11176
11177         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
11178         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
11179         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
11180         (BYTE_C0_P): Use bit ops for char-signedness safety.
11181         (BYTE_C1_P): Use bit ops for char-signedness safety.
11182         (CHARSET_BY_LEADING_BYTE):
11183         (CHARSET_BY_ATTRIBUTES):
11184         Always use inline function.
11185         Use type_checking_assert.
11186         Hide chlook.
11187
11188         * mule-charset.c (non_ascii_charptr_copy_char):
11189         Modify to work with both ASCII and non-ASCII characters.
11190         Improve docs and variable names.
11191         Replace over-clever fall-through switch with a simple loop.
11192         (Lstream_get_emchar_1):
11193         Replace over-clever fall-through switch with a simple loop.
11194
11195         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11196         Warning suppression.
11197
11198         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
11199         the return value of Lstream_getc, which could be EOF as well.
11200
11201         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
11202
11203         * lisp.h: Make Extbyte a char, not unsigned char, so that external
11204         APIs can be used on Extbytes without casts.  Risky!
11205         (SExtbyte): Remove.
11206         (UExtbyte): Remove.
11207
11208         * input-method-xlib.c (XIM_init_device):
11209         Use Xlib.h instead of IntrinsicP.h.
11210         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
11211         which will break in X11R7.
11212         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
11213         to call XRegisterIMInstantiateCallback with correct types.
11214
11215         * gui-x.c (button_item_to_widget_value): Type correctness.
11216
11217         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
11218
11219         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
11220         (xbm_instantiate_1): Type correctness.
11221         (BUILD_GLYPH_INST):  Type correctness.
11222
11223         * fileio.c (Fsubstitute_in_file_name): Type correctness.
11224
11225         * file-coding.c:
11226         (decode_coding_sjis):
11227         (decode_coding_big5):
11228         (decode_coding_ucs4):
11229         (decode_coding_utf8):
11230         (decode_coding_iso2022):
11231         (decode_coding_no_conversion):
11232         Make all decoding functions take an Extbyte * arg.
11233         (encode_coding_sjis):
11234         (encode_coding_big5):
11235         (encode_coding_ucs4):
11236         (encode_coding_utf8):
11237         (encode_coding_iso2022):
11238         (encode_coding_no_conversion):
11239         Make all encoding functions take a Bufbyte * arg.
11240         Use size_t instead of unsigned int for memory sizes.
11241         Only cast to unsigned char whenever dereferencing Extbyte *.
11242
11243         * doc.c (unparesseuxify_doc_string): Type correctness.
11244
11245         * console-x.c (split_up_display_spec):
11246         Rewrite without using details of internal string representation.
11247         (x_semi_canonicalize_device_connection): Type correctness.
11248
11249         * config.h.in:
11250         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
11251         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
11252         (HAVE_XFREE386): Removed.
11253
11254         * buffer.h (DEC_CHARPTR): `const' correctness.
11255         (bufbyte_strcmp): New.
11256         (bufbyte_memcmp): New.
11257
11258         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
11259
11260         * buffer.h (XCHAR_OR_CHAR_INT):
11261         Always use inline function.
11262         Remove redundant type checking assert() - XINT will abort quite nicely.
11263
11264 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11265
11266         * search.c (Freplace_match): Set newtext to an empty string.
11267
11268 2000-10-10  Martin Buchholz  <martin@xemacs.org>
11269
11270         * s/decosf1-3.h: Remove #include of stropts.h
11271         * s/ptx.h: Remove #include of stropts.h
11272         * s/usg5-4.h: Remove #include of stropts.h
11273         * sysproc.h:
11274         * config.h.in:
11275         Use stropts.h, not sys/stropts.h.
11276         Use strtio.h, not sys/strtio.h.
11277
11278 2000-10-04  Martin Buchholz <martin@xemacs.org>
11279
11280         * XEmacs 21.2.36 is released.
11281
11282 2000-09-21  Andy Piper  <andy@xemacs.org>
11283
11284         * glyphs-x.c (x_redisplay_widget): make sure non-structural
11285         changes still involve copying the widget tree.
11286         (update_widget_face): make sure a change is register in the widget
11287         tree. Call update_tab_widget_face appropriately.
11288         (update_tab_widget_face): ditto.
11289         (x_tab_control_redisplay): make sure non-structural changes still
11290         involve copying the widget tree.
11291
11292 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
11293
11294         * lread.c (locate_file): Check the path element is non-nil.
11295
11296 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11297
11298         * lisp.h: Warning suppression for SCO compilers.
11299
11300         * redisplay-tty.c (reset_tty_modes): Fix crash.
11301         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
11302
11303 2000-09-27  Martin Buchholz  <martin@xemacs.org>
11304
11305         Big signal/process handling overhaul.  Bugs fixed:
11306         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
11307         M-x comint-kill-subjob should work for both values nil and t of
11308         process-connection-type. It was broken on most platforms.
11309         Testing on Irix and Cygwin still needed.  Other plaforms tested.
11310         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
11311         * process-unix.c: Signal/Process handling overhaul.
11312         (pty_name): make 64 bytes, as `expect' does, for paranoia.
11313         (allocate_pty): Use all available modern methods of allocating
11314         ptys, falling back to old style BSD allocation as a last resort.
11315         Use allegedly more secure Unix98 pty allocation by default.
11316         (allocate_pty_the_old_fashioned_way): New. the last resort.
11317         (unix_create_process): Push ptem, ldterm, ttcompat where
11318         available.  Autoconfiscate.
11319         (try_to_initialize_subtty): New.
11320         (unix_kill_child_process): Proper signal handling for ptys on most
11321         platforms, using special knowledge of AIX, BSD, etc...
11322         (unix_create_process): Always disconnect_controlling_terminal() for
11323         subprocesses, whether using ptys or not.
11324         * process.h: Remove old getpt-dependent PTY code.
11325         * process.c (Fprocess_send_signal): New, obvious generic function.
11326         (decode_signal): New.
11327         (Finterrupt_process):
11328         (Fkill_process):
11329         (Fquit_process):
11330         (Fstop_process):
11331         (Fcontinue_process):
11332         (Fsignal_process): Use decode_signal.
11333         (process_send_signal):
11334         Many docstring corrections.
11335         Allow any signal to be sent to a process object.
11336         * config.h.in: Add symbols for big signal/process overhaul.
11337         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
11338         * sysproc.h: Include process-related headers, where available:
11339         sys/stropts.h sys/strtio.h pty.h libutil.h
11340         * s/irix4-0.h:
11341         * s/irix5-0.h:
11342         * s/cygwin32.h:
11343         * s/gnu.h:
11344         * s/linux.h:
11345         * s/hpux.h:
11346         * s/aix3-1.h:
11347         Remove old S&M pty stuff.
11348         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
11349         * systty.h: Simplify cpp hackery, improve comments.
11350         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
11351
11352         * editfns.c (Fformat_time_string):
11353         Be a little more paranoid with the return value of ctime.
11354
11355         * fileio.c (check_executable):
11356         (check_writable):
11357         Use symbolic constants X_OK, W_OK.
11358
11359         * console-x.c (split_up_display_spec): Fix a warning.
11360
11361 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11362
11363         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11364         * ntproc.c (sys_spawnve): make_string ==> build_string
11365         Small clarity improvements.
11366
11367 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11368
11369         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11370
11371         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11372
11373         * config.h.in (HAVE_STRCASECMP): Remove.
11374
11375 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11376
11377         * redisplay-output.c (redisplay_output_pixmap):
11378         Cleaner and possibly more 64-bit correct code.
11379
11380 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11381
11382         * dumper.c (pdump_load_finish): move restoration of
11383         `noninteractive1' to emacs.c (main_1).
11384         * emacs.c (main_1): protect LISP-visible command-line flags
11385         from pdump_load().
11386
11387 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11388
11389         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11390         DUMP_TARGET instead of literal program names.
11391
11392 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11393
11394         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11395
11396 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11397
11398         * *: Spelling mega-patch
11399
11400 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11401
11402         * fns.c (bad_bad_turtle):
11403         Delete "Eek!" comment, since we fixed the bug to which it refers.
11404
11405 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11406
11407         * alloca.c: Replace REGISTER with register.
11408
11409 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11410
11411         * file-coding.c (ucs_to_char): Use countof.
11412
11413 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11414
11415         * file-coding.c: (ucs_to_char):
11416         (complex_vars_of_file_coding):
11417         Use countof instead of sizeof.
11418         Use CHECK_NATNUM instead of CHECK_INT.
11419
11420         * sysdep.c (strcasecmp): Remove.
11421         * device-x.c (ascii_strcasecmp): New.
11422         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11423         Avoid using non-standard non-portable strcasecmp.
11424
11425 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11426
11427         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11428         * font-lock.c: remove reference to emacsfns.h.
11429         * search.c: small doc improvement.
11430         * event-Xt.c: correct file names in comments.
11431         * console-x.h Correct file names in comments.
11432         * frame.c: Correct file names in comments.
11433         * event-stream.c: remove Energize from comments.
11434
11435 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11436
11437         * symeval.h (DEFERROR_STANDARD):
11438         (DEFERROR):
11439         (DEFSYMBOL):
11440         (DEFSYMBOL_NO_DUMP):
11441         (DEFSYMBOL_MULTIWORD_PREDICATE):
11442         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11443         (DEFKEYWORD):
11444         The construct &##name is not sensible C.
11445         Fixes compilation errors with Unixware native compiler.
11446
11447 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11448
11449         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11450         (next_frame_internal): Removed.  We now just have next_frame.
11451         (next_frame):
11452         Write a simpler and cleaner one-pass algorithm.
11453         Remove called_from_delete_device arg and #ifdefed-out code.
11454         (previous_frame):
11455         Renamed from prev_frame.  Update callers.
11456         Cleaned up to have an analogous implementation to next_frame.
11457         (other_visible_frames_internal): Remove the
11458         called_from_delete_device bogus arg, and hence, remove this
11459         function.  Just use other_visible_frames().
11460
11461         * window.c (Fnext_window):
11462         Prettify docstring.
11463         Since next_frame() is guaranteed to return a frame, remove check
11464         for nil inserted in previous patch.
11465         (Fprevious_window):
11466         Prettify docstring.
11467         Make code look more like Fnext_window.
11468         (window_loop):
11469         Respect the `console' arg when iterating through windows.
11470         Fixes bug: (get-buffer-window buffer t device) not respecting
11471         the `device' arg.
11472         This function needs more work, as others have pointed out.
11473
11474         * frame.h: Rename prev_frame to previous_frame.
11475         device_matches_console_spec no longer takes a `frame' arg.
11476
11477         * s/gnu.h:
11478         * s/linux.h:
11479         * s/hpux.h:
11480         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11481         From "Golubev I. N." <gin@mo.msk.ru>.
11482
11483         * make-src-depend: Fix typo.
11484
11485 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11486
11487         * window.c (Fnext_window):
11488         next_frame() might return nil, not a frame.
11489         Fixes this crash:
11490         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11491
11492         * frame.c (next_frame_internal):
11493         We've passed a frame if we've passed its device.
11494         Fixes this crash:
11495         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11496 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11497
11498 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11499
11500         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11501         Allow option to suppress accelerators in menu/dialog items.
11502         (populate_or_checksum_helper): Pass dialog title through above.
11503
11504 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11505
11506         * event-msw.c (mswindows_key_to_emacs_keysym):
11507         Add "pause" key, fix "menu" key.
11508
11509 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11510
11511         * eval.c (reinit_vars_of_eval):
11512         Increase max_lisp_eval_depth to 1000,
11513         required for thai-xtis.el to byte-compile under some circumstances.
11514
11515 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11516
11517         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11518         From Kenichi Handa.
11519
11520 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11521
11522         * make-src-depend: Make the generated Makefiles smaller.
11523
11524         * s/hpux.h (SETUP_SLAVE_PTY):
11525         Provide a %d in the format string for the errno argument.
11526
11527         * editfns.c (Ftemp_directory):
11528         Warning fix.
11529         Avoid buffer overrun on very long file name.
11530
11531         * input-method-xlib.c (XIM_init_device):
11532         6th parameter of XRegisterIMInstantiateCallback has different
11533         pointer types on different OSes, so simply cast to (void *).
11534
11535         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11536
11537         * sysdll.c (dll_open):
11538         shl_load will hang hard if passed a NULL filename.
11539         Simply return NULL for compatibility with dlopen.
11540         * sysdll.c: Conform to XEmacs coding standards.
11541
11542         * sysdep.c (get_pty_max_bytes):
11543         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11544
11545 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11546
11547         * tooltalk.c: Add #include <syssignal.h>
11548
11549 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11550
11551         * s/hpux.h: Don't use undefined function sigunblock().
11552
11553 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11554
11555         * config.h.in: Add HAVE_BALLOON_HELP.
11556         * emacs.c: Use HAVE_BALLOON_HELP.
11557         * Makefile.in.in (x_objs):
11558         Make Balloon Help conditional on finding shape.h.
11559
11560 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11561
11562         * syntax.c (regex_emacs_buffer_p): New variable.
11563         * syntax.h (regex_emacs_buffer_p): extern.
11564         * search.c (looking_at_1):
11565         (string_match_1):
11566         (fast_string_match):
11567         (search_buffer): Set regex_emacs_buffer_p.
11568         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11569         when before_dot, at_dot, after_dot.
11570
11571 2000-08-23  Andy Piper  <andy@xemacs.org>
11572
11573         * gui-x.c (popup_selection_callback): Only set action_occurred
11574         when we really have an image instance.
11575         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11576
11577 2000-08-23  Andy Piper  <andy@xemacs.org>
11578
11579         * gui-msw.c (mswindows_handle_gui_wm_command): set
11580         action_occurred.
11581         * gui-x.c (popup_selection_callback): ditto.
11582
11583         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11584         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11585         (struct Lisp_Image_Instance): add action_occurred flag.
11586
11587         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11588         (image_instance_changed): ditto.
11589         (reset_frame_subwindow_instance_cache): only unmap windows - do
11590         not remove them from the cache also.
11591
11592         * glyphs-widget.c (tab_control_update): better debug.
11593         (progress_gauge_update): ditto.
11594         (layout_update): ditto.
11595         (layout_instantiate): ditto.
11596         (tab_control_order_only_changed): cope with null pending items.
11597
11598         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11599         debug. Force selection of an item when an action occurred. Cope
11600         with null pending_items.
11601         (mswindows_progress_gauge_redisplay): better debug.
11602         * glyphs-x.c (x_tab_control_redisplay): ditto.
11603
11604         * redisplay.c (redisplay_frame): reset the frame cache if the
11605         frame is garbaged.
11606
11607         * window.c (Fset_window_configuration): potentially re-enable
11608         frame cache reset.
11609         (window_unmap_subwindows): need to finalize instances here since
11610         it is only used in mark_window_as_deleted.
11611
11612 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11613
11614         * nas.c (SndOpenDataForReading):
11615         nas.c (WaveOpenDataForReading):
11616         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11617         Somehow escaped from the 2000-08-14 patch.
11618
11619 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11620
11621         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11622         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11623
11624 2000-08-21  Andy Piper  <andy@xemacs.org>
11625
11626         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11627         window if it is not already displayed.
11628
11629         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11630         it is not already displayed.
11631
11632         * window.c (Fset_window_configuration): don't reset the frame
11633         cache.
11634
11635         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11636         instances from the frame cache if we are actually finalizing them.
11637         (reset_frame_subwindow_instance_cache): reset frame cache only
11638         after unmapping everything.
11639         (map_subwindow): set displayed flag after mapping.
11640
11641 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11642
11643         * data.c (indirect_function):
11644         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11645
11646         * eval.c (function_argcount):
11647         Use original function when signaling errors.
11648
11649 2000-08-18  Andy Piper  <andy@xemacs.org>
11650
11651         * frame.c (delete_frame_internal): use new
11652         free_frame_subwindow_instances name.
11653
11654         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11655         (add_tab_item): make return type correct.
11656         (mswindows_tab_control_instantiate): assert index of tab.
11657         (mswindows_tab_control_redisplay): Re-code to use
11658         gui_item_equal_sans_selected and gui_item_list_find_selected.
11659
11660         * glyphs-widget.c (tab_control_update): Correct comment.
11661
11662         * window.c (window_unmap_subwindows): use new
11663         unmap_subwindow_instance_cache_mapper.
11664         (window_unmap_subwindows_cache_mapper): deleted.
11665         (Fset_window_configuration): comparisons should now be with
11666         EQ. Preserve the subwindow instance cache across configuration
11667         changes.
11668         (allocate_window): ditto.
11669         (make_dummy_parent): ditto.
11670
11671         * glyphs.c (free_frame_subwindow_instances): rename from
11672         free_frame_subwindow_instance_cache. finalize all instances rather
11673         than just those in the display cache.
11674         (finalize_all_subwindow_instances): walk windows unmapping and
11675         finalizing subwindows.
11676         (unmap_subwindow_instance_cache_mapper): moved from
11677         window.c. Allow finalization as well as unmapping.
11678
11679         * gui.c (gui_item_list_find_selected): new function.
11680
11681         * gui.h (gui_item_list_find_selected): declare.
11682
11683         * glyphs-x.c (x_tab_control_redisplay): pick tab
11684         explicitly. Re-code to use gui_item_equal_sans_selected and
11685         gui_item_list_find_selected.
11686
11687         * glyphs-x.h: add lwlib-utils.h
11688
11689         * buffer.c (Frecord_buffer): undo previous change.
11690
11691 2000-08-09  Vin Shelton  <acs@xemacs.org>
11692
11693         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11694         possible.  Create temporary files more securely.  The patch was
11695         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11696         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11697         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11698         for details.
11699
11700 2000-08-07  Ben Wing  <ben@xemacs.org>
11701
11702         * getloadavg.c: remove duplicate (and windows-breaking)
11703         includes of fcntl.h and sys/file.h.
11704
11705         * nt.c: remove duplicate getloadavg() definition.
11706
11707         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11708         encodings.
11709
11710 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11711
11712         * eval.c (function_argcount): If function needs to be autoloaded
11713         actually use the loaded definition.
11714         GCPRO function.
11715
11716 2000-08-05  Ben Wing  <ben@xemacs.org>
11717
11718         * getloadavg.c: add prototype for getloadavg().  remove
11719         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11720         of the code).  remove duplicate header includes.
11721
11722         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11723
11724         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11725         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11726         useful load average.
11727
11728         * alloc.c (reinit_alloc_once_early): removed references to
11729         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11730         the lisp vars are the only things referencing the malloc_sbrk_*
11731         vars, and they were already if 0'd out.  these vars only exist
11732         in the older malloc.c, which is basically unused, and they're
11733         only for informational purposes.
11734
11735         * m\*.h: removed useless VIRT_ADDR_VARIES.
11736
11737         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11738
11739 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11740
11741         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11742         color if the image is a mono pixmap.
11743
11744 2000-07-30  Ben Wing  <ben@xemacs.org>
11745
11746         * Makefile.in.in (release):
11747         Remove stray @.
11748
11749         * buffer.c (directory_is_current_directory):
11750         * dired-msw.c (mswindows_get_files):
11751         * dired.c:
11752         * dired.c (Fdirectory_files):
11753         * dired.c (file_name_completion_stat):
11754         * dired.c (Ffile_attributes):
11755         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11756         preprocessor tricks, to avoid problems on some machines
11757         (e.g. SCO).
11758
11759         * callproc.c (egetenv): GC docs.
11760
11761         * console-msw.h:
11762         * console-msw.h (struct mswindows_dialog_id):
11763         * lrecord.h (lrecord_type):
11764         New object for use with MSW dialogs.
11765
11766         * console.h (struct console_methods):
11767         New enable/disable frame methods, for proper modal dialogs.
11768
11769         * device-msw.c (msprinter_default_printer): Fix to follow
11770         proper Mule conventions.
11771
11772         * device-msw.c:
11773         * device-msw.c (signal_open_printer_error):
11774         * device-msw.c (msprinter_init_device):
11775         * device-msw.c (ensure_not_printing):
11776         * device-msw.c (plist_get_margin):
11777         * device-msw.c (Fmsprinter_select_settings):
11778         * device-msw.c (finalize_devmode):
11779         * device-msw.c (Fmsprinter_settings_despecialize):
11780         * device-msw.c (signal_enum_priner_error):
11781         * extents.c (decode_extent):
11782         * extents.c (decode_map_extents_flags):
11783         * extents.c (decode_extent_at_flag):
11784         * extents.c (Fextent_at):
11785         * extents.c (Fextents_at):
11786         * extents.c (symbol_to_glyph_layout):
11787         [[[[2]]]] Use structured errors.
11788
11789         * dialog-msw.c:
11790         * dialog-msw.c (mswindows_is_dialog_msg):
11791         * dialog-msw.c (mark_mswindows_dialog_id):
11792         * dialog-msw.c (dialog_proc):
11793         * dialog-msw.c (handle_question_dialog_box):
11794         * dialog-msw.c (syms_of_dialog_mswindows):
11795         Define new object to clean up marking; use it as a dialog identifier.
11796         Call new delete-dialog-box-hook.
11797
11798         * dialog-x.c (dbox_selection_callback):
11799         * dialog-x.c (dbox_descriptor_to_widget_value):
11800         * dialog-x.c (x_make_dialog_box_internal):
11801         Call new delete-dialog-box-hook.
11802         Return an id.
11803
11804         * dialog.c:
11805         * dialog.c (syms_of_dialog):
11806         * dialog.c (vars_of_dialog):
11807         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11808
11809         * eval.c:
11810         * eval.c (signal_call_debugger):
11811         when noninteractive, output stack traces on the console instead
11812         of in a (never-seen) buffer.
11813
11814         * eval.c (signal_type_error):
11815         * eval.c (invalid_argument_2):
11816         * lisp.h:
11817         new funs for use w/structured errors.
11818
11819         * event-Xt.c:
11820         * event-Xt.c (x_to_emacs_keysym):
11821         * event-Xt.c (describe_event):
11822         * event-Xt.c (emacs_Xt_event_handler):
11823         * event-Xt.c (vars_of_event_Xt):
11824         * event-msw.c:
11825         * event-msw.c (mswindows_wnd_proc):
11826         * event-msw.c (vars_of_event_mswindows):
11827         rename {x,mswindows}-debug-events to debug-{}-events for
11828         consistency with other debug-foo variables.
11829
11830         * event-stream.c:
11831         document next-event more clearly.
11832
11833         * fileio.c (Ffile_name_directory):
11834         * fileio.c (Ffile_name_nondirectory):
11835         * fileio.c (Funhandled_file_name_directory):
11836         * fileio.c (file_name_as_directory):
11837         * fileio.c (Ffile_name_as_directory):
11838         * fileio.c (directory_file_name):
11839         * fileio.c (Fdirectory_file_name):
11840         * fileio.c (Fmake_temp_name):
11841         * fileio.c (Ffile_truename):
11842         * fileio.c (Fsubstitute_in_file_name):
11843         * fileio.c (expand_and_dir_to_file):
11844         * fileio.c (barf_or_query_if_file_exists):
11845         * fileio.c (check_executable):
11846         * fileio.c (Ffile_exists_p):
11847         * fileio.c (Ffile_writable_p):
11848         * fileio.c (Ffile_directory_p):
11849         * fileio.c (Ffile_regular_p):
11850         * fileio.c (Ffile_modes):
11851         * fileio.c (Ffile_newer_than_file_p):
11852         * fileio.c (Fverify_visited_file_modtime):
11853         * fileio.c (Fset_visited_file_modtime):
11854         * fileio.c (auto_save_1):
11855         (1). (2).
11856         fix up gcpro's.
11857
11858         * frame-msw.c:
11859         * frame-msw.c (mswindows_init_frame_1):
11860         * frame-msw.c (mswindows_enable_frame):
11861         * frame-msw.c (error_frame_unsizable):
11862         * frame-msw.c (msprinter_init_frame_1):
11863         * frame-msw.c (msprinter_init_frame_3):
11864         * frame-msw.c (console_type_create_frame_mswindows):
11865         (2).
11866         implement new enable/disable frame methods.
11867
11868         * frame-x.c:
11869         * frame-x.c (x_enable_frame):
11870         * frame-x.c (console_type_create_frame_x):
11871         implement new enable/disable frame methods.
11872
11873         * frame.c:
11874         * frame.c (Fdisable_frame):
11875         * frame.c (syms_of_frame):
11876         * frame.h (struct frame):
11877         implement new enable/disable frame methods/functions.
11878
11879         * general-slots.h:
11880         add initial-focus.
11881
11882         * glyphs-msw.c (mswindows_widget_instantiate):
11883         comment that initial-focus should be implemented.
11884
11885         * glyphs-widget.c:
11886         * glyphs-widget.c (check_valid_instantiator):
11887         * glyphs-widget.c (check_valid_orientation):
11888         * glyphs-widget.c (check_valid_tab_orientation):
11889         * glyphs-widget.c (check_valid_justification):
11890         * glyphs-widget.c (check_valid_border):
11891         * glyphs-widget.c (check_valid_callback):
11892         * glyphs-widget.c (check_valid_int_or_function):
11893         * glyphs-widget.c (check_valid_string_or_vector):
11894         * glyphs-widget.c (check_valid_item_list_1):
11895         * glyphs-widget.c (widget_validate):
11896         * glyphs-widget.c (combo_box_validate):
11897         * glyphs-widget.c (widget_instantiate):
11898         * glyphs-widget.c (syms_of_glyphs_widget):
11899         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11900         * glyphs-widget.c (image_instantiator_combo_box):
11901         * glyphs-widget.c (image_instantiator_scrollbar):
11902         * glyphs-widget.c (image_instantiator_tab_control):
11903         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11904         (2).
11905         support (unimplemented) keyword initial-focus.
11906         reindent long macros.
11907
11908         * glyphs-x.c (x_redisplay_widget):
11909         * glyphs-x.c (x_button_instantiate):
11910         * glyphs-x.c (x_button_redisplay):
11911         * glyphs-x.c (x_progress_gauge_instantiate):
11912         * glyphs-x.c (x_edit_field_instantiate):
11913         * glyphs-x.c (x_combo_box_instantiate):
11914         * glyphs-x.c (x_tab_control_instantiate):
11915         * glyphs-x.c (x_label_instantiate):
11916         * gui-x.c:
11917         * gui-x.c (button_item_to_widget_value):
11918         * gui-x.c (gui_items_to_widget_values_1):
11919         * gui-x.c (gui_item_children_to_widget_values):
11920         * gui-x.c (gui_items_to_widget_values):
11921         * gui-x.h:
11922         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11923         add new flag to gui-parsing routines to indicate whether
11924         accelerator specs should be supported.
11925
11926         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11927
11928         * glyphs.h (struct Lisp_Image_Instance):
11929         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11930         add initial-focus flag.
11931
11932         * gui.c:
11933         * gui.c (syms_of_gui):
11934         * gui.c (vars_of_gui):
11935         clean up menu-no-selection-hook.
11936
11937         * gui.h:
11938         support delete-dialog-box-hook.
11939
11940         * lread.c (Fload_internal):
11941         * lread.c (locate_file_in_directory_mapper):
11942         (1).
11943
11944         * lrecord.h:
11945         * lrecord.h (struct toolbar_button):
11946         * lrecord.h (syms_of_toolbar):
11947         document how to create a new object.
11948
11949         * menubar-msw.c (mswindows_char_is_accelerator):
11950         may be called on frames w/o menus.
11951
11952         * menubar.c (vars_of_menubar):
11953         clean up :filter docs.
11954
11955         * nt.c (readdir):
11956         * ntproc.c:
11957         (1).
11958
11959         * process-nt.c:
11960         * process-nt.c (validate_signal_number):
11961         * process-nt.c (signal_cannot_launch):
11962         * process-nt.c (nt_create_process):
11963         * process-nt.c (nt_send_process):
11964         * process-nt.c (nt_kill_child_process):
11965         * process-nt.c (nt_open_network_stream):
11966         * process-nt.c (syms_of_process_nt):
11967         (2).
11968         delete quote-handling.  call new lisp code that does it better.
11969
11970         * process-unix.c (connect_to_file_descriptor):
11971         * process-unix.c (allocate_pty):
11972         * process-unix.c (unix_send_process):
11973         * process-unix.c (unix_kill_child_process):
11974         * process-unix.c (unix_open_network_stream):
11975         * process-unix.c (unix_open_multicast_group):
11976         (1). (2).
11977
11978         * process.c:
11979         * process.c (Fstart_process_internal):
11980         (2).  need to canonicalize process path even if absolute.
11981
11982         * select-msw.c (symbol_to_ms_cf):
11983         * select-msw.c (ms_cf_to_symbol):
11984         * select-msw.c (cf_is_autofreed):
11985         * select-msw.c (mswindows_destroy_selection):
11986         * select.c:
11987         * select.c (syms_of_select):
11988         * select.h:
11989         support dibv5, fix bugs. (from Mike Alexander)
11990
11991         * select.c (Fget_selection_internal):
11992         * select.c (select_convert_out):
11993
11994         * sysdep.c:
11995         * sysdep.c (xemacs_stat):
11996         renamed.
11997
11998         * sysdep.c (mkdir):
11999         * sysdep.c (rmdir):
12000         but keep original stat() here because we provide encapsulation
12001         around these funs.
12002
12003         * sysfile.h:
12004         * sysfile.h (fstat):
12005         remove stat garbage.
12006
12007         * syswindows.h:
12008         fix X/MSW conflict.
12009         don't include tchar.h.  it's inappropriate because it makes
12010         compile-time distinctions when we want runtime distinctions.
12011         (we provide our own tchar replacements)
12012
12013         * toolbar.c:
12014         use default object printer for toolbar-button.
12015
12016         * unexcw.c:
12017         make sure we don't encapsulate.
12018
12019         * window.c (vars_of_window):
12020         emphasize that temp-buffer-show-hook is obsolete.
12021
12022 2000-08-05  Martin Buchholz  <martin@xemacs.org>
12023
12024         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
12025         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
12026
12027         * events.c (Fevent_timestamp_lessp):
12028         Not 64-bit clean.  Use EMACS_INT, not int.
12029
12030 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
12031
12032         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
12033         unsigned int and changed the last enum to
12034         lrecord_type_last_built_in_type.
12035         (lrecord_implementations_table): changed prototype to know how
12036         long the array is supposed to be.
12037         (lrecord_type_count): new unsigned int to keep track of the
12038         current number of lisp lrecord types.
12039         (DEFINE_EXTERNAL_LRECORD):
12040         (DECLARE_EXTERNAL_LRECORD): Added these two for external
12041         dynamic-modules to declare new lisp types. They are the same
12042         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
12043         int for each new type, and increment lrecord_type_count by 1.
12044
12045         * alloc.c (lrecord_implementations_table): Changed to reference
12046         lrecord_type_last_built_in_type for the size of the array.
12047         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
12048
12049 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12050
12051         * glyphs.h (check_valid_item_list): Renamed from
12052         check_valid_item_list_1.
12053
12054 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
12055
12056         * select.c (Qselect_coerce): New.
12057         * select.c (Vselection_coercion_alist): New.
12058         * select.c (syms_of_select): Declare.
12059         * select.c (get-selection-internal): Use it.
12060         Use the new select-coerce functionality.
12061
12062         * select.c (select_coerce): New.
12063         * select.h (select_coerce): Declare.
12064         New function to coerce one type of data into another.
12065
12066 2000-08-03  Martin Buchholz  <martin@xemacs.org>
12067
12068         * callproc.c (Fcall_process_internal):
12069         (Fcall_process_internal):
12070         * process-unix.c (unix_create_process):
12071         Save and restore the value of errno, so that error messages are accurate.
12072
12073 2000-08-01  Martin Buchholz  <martin@xemacs.org>
12074
12075         * elhash.c (print_hash_table):
12076         Fix printing of hash tables to also use `key-and-value' instead of `t'.
12077         Prettify docstrings and indentation.
12078
12079 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
12080
12081         * window.c (Fwindow_pixel_edges): Subtract frame border and
12082         gutter size.
12083
12084 2000-07-31  Andy Piper  <andy@xemacs.org>
12085
12086         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
12087         will acknowledge the change.
12088
12089         * glyphs.h: declare tab_control_order_only_changed.
12090
12091         * glyphs-x.c (x_tab_control_redisplay): use
12092         tab_control_order_only_changed.
12093
12094         * glyphs-widget.c (tab_control_order_only_changed): new function.
12095
12096         * glyphs-msw.c (mswindows_tab_control_redisplay): use
12097         tab_control_order_only_changed.
12098
12099         * gui.c (gui_item_equal_sans_selected): new function.
12100         (gui_item_equal): use it.
12101
12102         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
12103         :properties in favor of :items..
12104
12105         * glyphs-widget.c (check_valid_item_list): rename from
12106         check_valid_item_list_1.
12107         (check_valid_item_list_1): renamed.
12108         (combo_box_validate): deprecate :properties in favor of :items.
12109         (widget_instantiate): ditto.
12110         (tab_control_update): ditto.
12111         (image_instantiator_combo_box): ditto.
12112         (image_instantiator_tree_view): ditto.
12113         (image_instantiator_tab_control): ditto.
12114         (layout_post_instantiate): remove dead code.
12115
12116         * print.c (debug_print_no_newline): only write to debugger if in
12117         WIN32_NATIVE.
12118
12119         * elhash.c (Fmake_hash_table): update doc string.
12120
12121         * event-msw.c (mswindows_wnd_proc): don't allow processing of
12122         messages whilst in GC. This at least stops XEmacs crashing but has
12123         the potential for wierd behaviour.
12124
12125 2000-07-31  Martin Buchholz  <martin@xemacs.org>
12126
12127         * config.h.in:
12128         Make existence of s&m files optional.
12129
12130         * s/bsd386.h: Remove HAVE_GETLOADAVG.
12131         * s/freebsd.h: Remove HAVE_GETLOADAVG.
12132         * s/gnu.h: Remove HAVE_GETLOADAVG.
12133         * s/netbsd.h: Remove HAVE_GETLOADAVG.
12134         * s/sol2.h: Remove HAVE_GETLOADAVG.
12135         * lisp.h: Remove getloadavg() declaration.
12136         * fns.c:
12137         Include <sys/loadavg.h> if available.
12138         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
12139         * config.h.in:  Group together getloadavg()-related macros.
12140         Use only configure-time tests to detect getloadavg().
12141
12142 2000-07-30  Martin Buchholz  <martin@xemacs.org>
12143
12144         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
12145
12146 2000-07-25  Andy Piper  <andy@xemacs.org>
12147
12148         * syswindows.h: add tchar.h for native builds.
12149
12150         * frame.c (syms_of_frame): remove set-glyph-image.
12151
12152         * general-slots.h: add Qset_glyph_image.
12153
12154         * glyphs-widget.c (layout_update): add domain arg to
12155         set-glyph-image.
12156         (syms_of_glyphs_widget): remove set-glyph-image.
12157
12158 2000-07-23  Ben Wing  <ben@xemacs.org>
12159
12160         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
12161         Vpopup_frame_list.
12162
12163 2000-07-22  Andy Piper  <andy@xemacs.org>
12164
12165         * symsinit.h: add syms_of_win32().
12166
12167         * gui-msw.c (syms_of_gui_mswindows): remove
12168         Fmswindows_shell_execute.
12169         (Fmswindows_shell_execute): moved to win32.c.
12170
12171         * emacs.c (main_1): add syms_of_win32 ().
12172
12173         * win32.c (init_potentially_nonexistent_functions): rewrite in
12174         compiler-friendly terms.
12175         (Fmswindows_shell_execute): move here from gui-msw.c.
12176         (syms_of_win32): new.
12177
12178         * device-msw.c (Fmswindows_printer_list): clean up args to
12179         EnumPrinters.
12180         Don't include tchar under cygwin or mingw.
12181         (msprinter_default_printer): make cygwin-friendly.
12182
12183 2000-07-21  Andy Piper  <andy@xemacs.org>
12184
12185         * glyphs-widget.c (image_instantiator_tree_view): use tab
12186         control's update function.
12187         (layout_property): new function. Retrieve items.
12188
12189         * glyphs-msw.c (mswindows_tree_view_redisplay): new
12190         function. Re-populate the tree view from the pending items.
12191
12192         * glyphs.c (instantiate_image_instantiator): Make sure the domain
12193         is designated the parent if the domain is an image instance. This
12194         is needed so that dirtiness can be cascade up the hierarchy and
12195         thus for layout children to be redisplayed correctly.
12196         (allocate_image_instance): rename glyph -> parent.
12197
12198         * redisplay.h: change redisplay_output_layout signature.
12199
12200         * redisplay-msw.c (mswindows_output_display_block): use domain
12201         arg.
12202
12203         * redisplay-x.c (x_output_display_block): use domain arg.
12204
12205 2000-07-10  Andy Piper  <andy@xemacs.org>
12206
12207         * window.c (Fset_window_configuration): add comment.
12208
12209         * redisplay-output.c (compare_runes):
12210         (redisplay_output_subwindow): redisplay rather than update subwindow.
12211         (redisplay_output_layout): ditto.
12212
12213         * redisplay-msw.c (mswindows_frame_output_end):
12214         (mswindows_frame_output_end): make defer window pos optional.
12215
12216         * lisp.h: add Flast.
12217
12218         * glyphs.h (struct image_instantiator_methods): add dest_mask top
12219         normalize method. Change update method to be for changed
12220         instantiators. Add redisplay method. Change signature of layout
12221         method.
12222         (struct Lisp_Image_Instance): add instantiator.
12223         (IMAGE_INSTANCE_INSTANTIATOR): new.
12224         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
12225         (XIMAGE_INSTANCE_INSTANTIATOR): new.
12226         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
12227
12228         * glyphs.c:
12229         (find_instantiator_differences): new function.
12230         (Fset_instantiator_property): new convenience function.
12231         (check_image_instance_structure): strictly check for vector
12232         instantiators.
12233         (normalize_image_instantiator): make non-static.
12234         (instantiate_image_instantiator): pass on dest_mask and use new
12235         signatures for image_instance_layout and friends.
12236         (mark_image_instance): mark the instantiator. Mark the subwindow
12237         face not the widget face.
12238         (image_instance_equal): add instantiator.
12239         (image_instance_hash): ditto.
12240         (allocate_image_instance): ditto.
12241         (Fset_image_instance_property): removed.
12242         (Fimage_instance_file_name): ditto.
12243         (Fcolorize_image_instance): ditto.
12244         (image_instance_layout): add offsets to be set.
12245         (update_image_instance): new function. update an image instance
12246         from its changed instantiator.
12247         (inherit_normalize): add dest_mask.
12248         (xbm_normalize): ditto.
12249         (xface_normalize): ditto.
12250         (xpm_normalize): ditto.
12251         (text_update): set_property -> update.
12252         (image_instantiate): use the glyph identity as a hash key, not the
12253         instantiator.
12254         (glyph_width): use new image_instance_layout signature.
12255         (glyph_ascent): ditto.
12256         (glyph_descent): ditto.
12257         (glyph_height): ditto.
12258         (glyph_query_geometry): ressurrect.
12259         (glyph_layout): ditto.
12260         (redisplay_subwindow): update -> redisplay.
12261         (syms_of_glyphs): add Fset_instantiator_property.
12262         (image_instantiator_format_create): set_property -> update.
12263
12264         * glyphs-x.c:
12265         (autodetect_normalize): add dest_maks to signature.
12266         (x_redisplay_subwindow): update -> redisplay.
12267         (x_redisplay_widget): ditto.
12268         (x_button_redisplay): ditto.
12269         (x_progress_gauge_redisplay): ditto.
12270         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
12271         stacking order.
12272         (console_type_create_glyphs_x): update -> redisplay.
12273         (image_instantiator_format_create_glyphs_x): ditto.
12274
12275         * glyphs-widget.c:
12276         (check_valid_instantiator): disallow glyphs in the instantiator,
12277         they must now be vectors.
12278         (check_valid_instantiator_list): ditto.
12279         (glyph_instantiator_to_glyph): use internal symbol rather than
12280         intern.
12281         (widget_update): renamed from widget_set_property. Call cascaded
12282         update methods.
12283         (redisplay_widget): renamed from update_widget.
12284         (widget_layout): image_instance_layout now takes position as well
12285         as size.
12286         (widget_normalize): ditto.
12287         (widget_instantiate): ditto.
12288         (tab_control_query_geometry) ditto.:
12289         (tab_control_update): renamed from tab_control_set_property.
12290         (progress_gauge_update): set_property -> update.
12291         (layout_normalize): rewrite so that child instantiators are
12292         normalized also.
12293         (layout_update): new function. Create glyphs from the normalized
12294         children and cope with any other layout keywords. We do not
12295         instantiate children here that will be take care of by
12296         redisplay_output_layout.
12297         (layout_instantiate): call layout_update and not much else.
12298         (layout_post_instantiate): not sure whether this is needed
12299         anymore.
12300         (layout_query_geometry): query glyph geometry rather than
12301         image_instance geometry.
12302         (layout_layout): set offsets from pass in parameters. Use glyph
12303         geometry and layout functions rather than image instance ones.
12304         (native_layout_layout): ditto.
12305         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
12306         (image_instantiator_widget): set_property -> update.
12307         (image_instantiator_buttons): ditto.
12308         (image_instantiator_progress_guage): ditto.
12309         (image_instantiator_tab_control): ditto.
12310         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
12311         (image_instantiator_layout): add update method.
12312
12313         * glyphs-msw.c (bmp_normalize):
12314         (mswindows_resource_normalize): add dest_mask so that it can be
12315         proprogated by layout_normalize.
12316         (begin_defer_window_pos): make optional because it may not be the
12317         right thing to do and it introduces differences with X.
12318         (mswindows_unmap_subwindow): ditto.
12319         (mswindows_map_subwindow): ditto.
12320         (mswindows_redisplay_subwindow): renamed from
12321         mswindows_update_subwindow.
12322         (mswindows_redisplay_widget): ditto.
12323         (mswindows_button_redisplay): renamed from
12324         mswindows_button_update. Update is now what the instantiation
12325         function does for a changed instantiator.
12326         (mswindows_progress_gauge_instantiate): set the progress value
12327         here if appropriate.
12328         (mswindows_tab_control_redisplay): cope with re-ordering of the
12329         members of the tab widget by simply selecting the new top
12330         widget. This makes things appear ok if you click on a tab.
12331         (mswindows_combo_box_instantiate): image_instance_layout now takes
12332         position as well as size.
12333         (mswindows_progress_gauge_redisplay): renamed from
12334         mswindows_progress_gauge_update.
12335         (console_type_create_glyphs_mswindows): fix update -> redisplay.
12336         (image_instantiator_format_create_glyphs_mswindows): ditto.
12337
12338         * glyphs-eimage.c (jpeg_normalize):
12339         (gif_normalize):
12340         (png_normalize):
12341         (tiff_normalize): add dest_mask so that it can be proprogated by
12342         layout_normalize.
12343
12344         * elhash.c:
12345         (print_hash_table):
12346         (hash_table_weakness_validate):
12347         (decode_hash_table_weakness):
12348         (Fhash_table_weakness):
12349         (Fhash_table_type):
12350         (syms_of_elhash): use Ben's naming scheme for hashtable types..
12351
12352         * console.h (struct console_methods): move update_* to
12353         redisplay_*.
12354
12355 2000-07-20  Ben Wing  <ben@xemacs.org>
12356
12357         * *.[ch] (XSETOBJ): remove unused middle argument.
12358         lisp-disunion.h: correct wrap_object() to one argument.
12359
12360 2000-07-15  Ben Wing  <ben@xemacs.org>
12361
12362         * s/cygwin32.h:
12363         * s/cygwin32.h (CYGWIN_CONV_PATH):
12364         Add missing logb prototype for v1.1.
12365         Use post-b20 names and alias to pre-b20 names when pre-b20.
12366
12367         * s/windowsnt.h: [5].
12368
12369 2000-07-15  Ben Wing  <ben@xemacs.org>
12370
12371         * Makefile.in.in (x_objs):
12372         * Makefile.in.in (sheap_objs):
12373         * Makefile.in.in (objs):
12374         added win32.o, cosmetic cleanups.
12375
12376         * alloc.c (Fmake_byte_code):
12377         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12378         etc. macros which declare their own args now.
12379
12380         * alloc.c (syms_of_alloc):
12381         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12382
12383         * buffer.c:
12384         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12385
12386         * buffer.c (Fget_file_buffer):
12387         Fixed GCPRO problem.
12388
12389         * buffer.c (get_truename_buffer):
12390         Fixed comment about GC checking.
12391
12392         * buffer.c (syms_of_buffer):
12393         Undeclared those dedicated frame funs.
12394         [2].
12395
12396         * buffer.h:
12397         Define convenience macros for internal/external conversions.
12398         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12399         and Qenvironment_variable_encoding for cleaner code.
12400
12401         * bufslots.h:
12402         Remove dedicated-frame; in lisp.
12403
12404         * bytecode.c (funcall_compiled_function):
12405         [1].
12406
12407         * bytecode.c (syms_of_bytecode):
12408         [2].
12409
12410         * console-msw.c:
12411         * console-msw.c (mswindows_show_console): Rewrote.
12412
12413         * console-msw.c (Fmswindows_debugging_output): New.
12414         Sends to OutputDebugString (special MSWin debugger interface).
12415
12416         * console-msw.c (Fmswindows_message_box):
12417         Fixed stupid bugs so it works when called from kill-emacs.
12418
12419         * console-msw.c (syms_of_console_mswindows):
12420         Declare Fmswindows_debugging_output.
12421
12422         * console-msw.h:
12423         New MSWin prototypes.
12424
12425         * console-msw.h (struct mswindows_frame):
12426         New entry last-click-mods for improved button-modifier support.
12427
12428         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12429         New struct entry `popup' with corresponding accessor.
12430
12431         * console-x.c:
12432         * console-x.c (split_up_display_spec):
12433         * console-x.c (get_display_arg_connection):
12434         * console-x.c (x_semi_canonicalize_console_connection):
12435         * console-x.c (x_canonicalize_device_connection):
12436         [[[6]]]: Change char to more specific type.
12437         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12438
12439         * console-x.c (x_semi_canonicalize_console_connection):
12440         * console-x.c (x_canonicalize_device_connection):
12441         [[[9]]]: Fix up error signalling to use new structured error system.
12442
12443         * console-x.h:
12444         [[[4]]]: Define codesys aliases:
12445         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12446         Qx_color_name_encoding, Qx_display_name_encoding.
12447
12448         * console.h (struct console_methods):
12449         New method make_dialog_box_internal supersedes older
12450         popup_dialog_box method.
12451
12452         * data.c:
12453         Define many new errors, part of new structured errors.
12454
12455         * data.c (init_errors_once_early):
12456         * data.c (syms_of_data):
12457         [2].
12458
12459         * device-msw.c (mswindows_init_device):
12460         [[[5]]]: Cleanup to support NT 3.51.
12461
12462         * device-msw.c (decode_devmode): Cleanup.
12463
12464         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12465         * device-msw.c (mswindows_handle_print_dialog_box):
12466         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12467         * device-msw.c (syms_of_device_mswindows):
12468         Delete the dialog box primitives recently introduced by Kirill and
12469         instead interface to general dialog box interface.
12470
12471         * device-x.c:
12472         * device-x.c (compute_x_app_name):
12473         * device-x.c (x_init_device):
12474         * device-x.c (Fx_valid_keysym_name_p):
12475         * device-x.c (Fx_set_font_path):
12476         [6].
12477         [7].
12478
12479         * device.h (wrap_device): New.
12480         First of its kind; meant to replace XSETDEVICE.
12481
12482         * dialog-msw.c: Many file-dialog symbols.
12483
12484         * dialog-msw.c (mswindows_register_popup_frame): New.
12485         * dialog-msw.c (mswindows_is_dialog_msg): New.
12486         For supporting kbd traversal in dialog boxes.
12487
12488         * dialog-msw.c (dialog_proc):
12489         Support hitting ESC in dialogs.
12490
12491         * dialog-msw.c (struct):
12492         Common dialog box errors.
12493
12494         * dialog-msw.c (handle_file_dialog_box): New.
12495         Add file dialog code.
12496
12497         * dialog-msw.c (handle_question_dialog_box):
12498         Redo existing code to support new question dialog syntax.
12499
12500         * dialog-msw.c (console_type_create_dialog_mswindows):
12501         We support new dialog console method.
12502
12503         * dialog-msw.c (syms_of_dialog_mswindows):
12504         * dialog-msw.c (vars_of_dialog_mswindows):
12505         New file dialog symbols, vars.
12506
12507         * dialog-x.c:
12508         * dialog-x.c (maybe_run_dbox_text_callback):
12509         * dialog-x.c (dbox_descriptor_to_widget_value):
12510         * dialog-x.c (x_make_dialog_box_internal):
12511         * dialog-x.c (console_type_create_dialog_x):
12512         Mule-ize entire file.
12513         Redo to support question dialog syntax.
12514         [6].
12515
12516         * dialog.c:
12517         * dialog.c (Fmake_dialog_box_internal):
12518         * dialog.c (syms_of_dialog):
12519         Kill old popup-dialog-box, replace with new primitive.
12520         Just call device method or signal error.
12521
12522         * eldap.c (Fldap_open):
12523         * eldap.c (Fldap_search_basic):
12524         * eldap.c (Fldap_add):
12525         * eldap.c (Fldap_modify):
12526         [1].
12527         [7].
12528
12529         * emacs.c:
12530         * emacs.c (make_arg_list_1):
12531         * emacs.c (make_arg_list):
12532         Mule-ize call to dll_init().
12533         [6].
12534         [8].
12535
12536         * emacs.c (make_argc_argv):
12537         * emacs.c (free_argc_argv):
12538         * emacs.c (init_cmdargs):
12539         * emacs.c (main_1):
12540         * emacs.c (Fkill_emacs):
12541         * emacs.c (Fdump_emacs):
12542         Update comments about what can be used in syms_* etc.
12543         Call init_win32() when necessary.
12544         Fix up MS Win dialog box in kill-buffer to actually work right.
12545         [7].
12546
12547         * eval.c:
12548         * eval.c (For):
12549         * eval.c (Fand):
12550         * eval.c (Fprogn):
12551         * eval.c (Fprog1):
12552         * eval.c (Fprog2):
12553         * eval.c (FletX):
12554         * eval.c (Flet):
12555         * eval.c (condition_case_3):
12556         * eval.c (Feval):
12557         * eval.c (function_argcount):
12558         * eval.c (funcall_lambda):
12559         [1].
12560
12561         * eval.c (type_error): New.
12562         * eval.c (maybe_type_error): New.
12563         * eval.c (continuable_type_error): New.
12564         * eval.c (maybe_continuable_type_error): New.
12565         * eval.c (type_error_with_frob): New.
12566         * eval.c (maybe_type_error_with_frob): New.
12567         * eval.c (continuable_type_error_with_frob): New.
12568         * eval.c (maybe_continuable_type_error_with_frob): New.
12569         New functions for use with structured errors.
12570
12571         * event-Xt.c:
12572         * event-Xt.c (x_event_to_emacs_event):
12573         Buttons are now modifiers too.
12574
12575         * event-Xt.c (emacs_Xt_current_event_timestamp):
12576         Implement new event method.
12577         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12578
12579         * event-msw.c:
12580         * event-msw.c (ntpipe_shove_writer): [5].
12581         * event-msw.c (mswindows_enqueue_mouse_button_event):
12582         * event-msw.c (mswindows_drain_windows_queue):
12583         * event-msw.c (mswindows_wnd_proc): [7].
12584         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12585         * event-msw.c (mswindows_modifier_state):
12586         Throughout: support new button modifiers.
12587
12588         * event-msw.c (emacs_mswindows_current_event_timestamp):
12589         Implement new event method.
12590         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12591
12592         * event-stream.c:
12593         * event-stream.c (event_stream_current_event_timestamp): New.
12594         * event-stream.c (maybe_kbd_translate): New functionality.
12595         * event-stream.c (vars_of_event_stream):
12596         Document new kbd-translate-table functionality.
12597
12598         * event-stream.c (Fcurrent_event_timestamp): New.
12599         New primitive for use in fabricated events.
12600         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12601
12602         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12603
12604         * events.c:
12605         * events.c (Fmake_event):
12606         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12607         [1].
12608         [9].
12609
12610         * events.c (format_event_object): fix gcc warnings.
12611
12612         * events.c (Fevent_timestamp): Document new primitives.
12613
12614         * events.c (TIMESTAMP_HALFSPACE): New.
12615
12616         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12617         comparing timestamps correctly (half-space algorithm).
12618
12619         * events.c (Fevent_modifier_bits): Doc fix.
12620
12621         * events.c (Fevent_modifiers): Major doc addition.
12622         * events.c (event_x_y_pixel_internal): Typo fix.
12623         * events.c (syms_of_events): Declare new primitives.
12624
12625         * events.h:
12626         Update long comment for button modifiers, timestamps.
12627
12628         * events.h (struct event_stream):
12629         New current_event_timestamp method.
12630
12631         * extents.c:
12632         * extents.c (extent_in_region_p):
12633         * extents.c (decode_extent):
12634         * extents.c (Fset_extent_parent):
12635         * extents.c (decode_map_extents_flags):
12636         Fix gcc warnings.
12637         [9].
12638
12639         * extents.c (struct extent_at_arg):
12640         * extents.c (decode_extent_at_flag):
12641         * extents.c (extent_at_mapper):
12642         * extents.c (extent_at_bytind):
12643         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12644         * extents.c (Fextents_at): New primitive. [9].
12645         * extents.c (symbol_to_glyph_layout): [9].
12646         Support new primitive `extents-at'.
12647
12648
12649         * extents.c (get_text_property_bytind):
12650         extent_at_bytind has another arg.
12651         [9].
12652
12653         * extents.c (syms_of_extents): New primitive.
12654
12655         * file-coding.c (Fmake_coding_system): [1].
12656         * file-coding.c (subsidiary_coding_system): fix gcc warning
12657         * file-coding.c (syms_of_file_coding): [2].
12658
12659         * fileio.c (Fexpand_file_name):
12660         * fileio.c (Fsysnetunam):
12661         * fileio.c (Ffile_exists_p):
12662         * fileio.c (Ffile_executable_p):
12663         * fileio.c (Fverify_visited_file_modtime):
12664         Clean up GCPROing.
12665
12666         * fileio.c (syms_of_fileio): [2].
12667
12668         * filelock.c (lock_file_1):
12669         * filelock.c (current_lock_owner):
12670         * filelock.c (lock_if_free):
12671         * filelock.c (lock_file):
12672         * filelock.c (unlock_file):
12673         Clean up GCPROing.
12674
12675         * fns.c (concat): Fix gcc warning.
12676
12677         * fns.c (Fmember):
12678         * fns.c (Fold_member):
12679         * fns.c (Fmemq):
12680         * fns.c (Fold_memq):
12681         * fns.c (memq_no_quit):
12682         * fns.c (Fassoc):
12683         * fns.c (Fold_assoc):
12684         * fns.c (Fassq):
12685         * fns.c (Fold_assq):
12686         * fns.c (assq_no_quit):
12687         * fns.c (Frassoc):
12688         * fns.c (Fold_rassoc):
12689         * fns.c (Frassq):
12690         * fns.c (Fold_rassq):
12691         * fns.c (rassq_no_quit):
12692         * fns.c (Fdelete):
12693         * fns.c (Fold_delete):
12694         * fns.c (Fdelq):
12695         * fns.c (Fold_delq):
12696         * fns.c (delq_no_quit):
12697         * fns.c (Fremassoc):
12698         * fns.c (Fremassq):
12699         * fns.c (remassq_no_quit):
12700         * fns.c (Fremrassoc):
12701         * fns.c (Fremrassq):
12702         * fns.c (remrassq_no_quit):
12703         * fns.c (Freverse):
12704         * fns.c (mapcar1):
12705         [1].
12706
12707         * frame-msw.c (mswindows_init_frame_1):
12708         * frame-msw.c (mswindows_delete_frame):
12709         Register popups with dialog code so keyboard traversing works.
12710
12711         * frame-tty.c (tty_raise_frame_no_select): [1].
12712
12713         * frame-x.c:
12714         * frame-x.c (x_set_frame_text_value):
12715         * frame-x.c (x_set_frame_properties):
12716         * frame-x.c (x_create_widgets):
12717         [7].
12718
12719         * frame.c:
12720         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12721
12722         * frame.h (wrap_frame): New.
12723         Macro like wrap_device.
12724
12725         * general.c:
12726         * general.c (SYMBOL):
12727         * general.c (syms_of_general):
12728         Major reorg.  This is now just a wrapper and symbols themselves
12729         are listed in general-slots.h.
12730
12731         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12732         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12733
12734         * glyphs-msw.c (mswindows_native_layout_instantiate):
12735         Add DS_CONTROL so keyboard traversal will work.
12736
12737         * glyphs-widget.c:
12738         * glyphs-widget.c (syms_of_glyphs_widget):
12739         Move some symbols to general-slots.h.
12740
12741         * glyphs-x.c:
12742         * glyphs-x.c (xbm_instantiate_1):
12743         * glyphs-x.c (x_xbm_instantiate):
12744         * glyphs-x.c (x_xface_instantiate):
12745         * glyphs-x.c (autodetect_instantiate):
12746         * glyphs-x.c (cursor_font_instantiate):
12747         * glyphs-x.c (x_update_widget):
12748         * glyphs-x.c (x_widget_instantiate):
12749         * glyphs.c (bitmap_to_lisp_data):
12750         * glyphs.c (pixmap_to_lisp_data):
12751         [7].
12752
12753         * glyphs.c (syms_of_glyphs):
12754         [2].
12755
12756         * gui-x.c:
12757         * gui-x.c (print_widget_value):
12758         * gui-x.c (menu_separator_style_and_to_external):
12759         * gui-x.c (add_accel_and_to_external):
12760         * gui-x.c (button_item_to_widget_value):
12761         * gui-x.c (gui_items_to_widget_values_1):
12762         * gui-x.c (gui_items_to_widget_values):
12763         * gui-x.c (syms_of_gui_x):
12764         * gui-x.c (vars_of_gui_x):
12765         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12766         [9].
12767
12768         * gui-x.h:
12769         Muleize, prototype changes matching gui-x.c.
12770
12771         * gui.c:
12772         * gui.c (separator_string_p):
12773         * gui.c (gui_item_add_keyval_pair):
12774         * gui.c (make_gui_item_from_keywords_internal):
12775         * gui.c (signal_too_long_error):
12776         * gui.c (parse_gui_item_tree_item):
12777         * gui.c (syms_of_gui):
12778         * gui.c (vars_of_gui):
12779         * gui.h:
12780         menu-no-selection-hook moved here (used by MSWin).
12781         Move some symbols to general-slots.h.
12782         [6].
12783         [9].
12784
12785         * insdel.c (get_buffer_pos_char):
12786         * insdel.c (get_buffer_range_char):
12787         Add GC comments.
12788
12789         * keymap.c (keymap_lookup_directly):
12790         * keymap.c (keymap_store):
12791         * keymap.c (ensure_meta_prefix_char_keymapp):
12792         * keymap.c (describe_map):
12793         * keymap.h:
12794         Support new button modifiers.
12795
12796         * lisp-disunion.h (wrap_object):
12797         * lisp-disunion.h (XSETOBJ):
12798         Rename make_obj to wrap_object.
12799
12800         * lisp-union.h:
12801         * lisp-union.h (make_int):
12802         * lisp-union.h (make_char):
12803         Support wrap_object.
12804
12805         * lisp.h:
12806         * lisp.h (LIST_LOOP):
12807         * lisp.h (EXTERNAL_LIST_LOOP):
12808         * lisp.h (LIST_LOOP_2):
12809         * lisp.h (EXTERNAL_LIST_LOOP_1):
12810         * lisp.h (EXTERNAL_LIST_LOOP_2):
12811         * lisp.h (EXTERNAL_LIST_LOOP_3):
12812         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12813         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12814         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12815         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12816         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12817         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12818         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12819         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12820         * lisp.h (struct Lisp_Symbol):
12821         * lisp.h (maybe_continuable_error_with_frob):
12822         Fix up section comments.
12823         Add new types for char to indicate usage.
12824         Delete symbols auto-generated from general-slots.h.
12825         Add prototypes for structured error functions.
12826         Add long comments describing looping macros and change interface
12827         so that lvalues are automatically declared.
12828         Add NO_DECLARE macro in case callers want to declare lvalues
12829         themselves.
12830
12831         * lread.c (read_syntax_error):
12832         * lread.c (continuable_read_syntax_error):
12833         * lread.c (read_structure):
12834         * lread.c (sequence_reader):
12835         * lread.c (read_list_conser):
12836         * lread.c (read_compiled_function):
12837         Rename syntax_error and continuable_syntax_error to avoid clash
12838         with same-named structured error functions.
12839
12840         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12841         * menubar-msw.c (populate_menu_add_item):
12842         * menubar-msw.c (populate_or_checksum_helper):
12843         [5].
12844         [9].
12845
12846         * menubar-x.c:
12847         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12848         Mule-ize whole file.
12849
12850         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12851
12852         * mule-charset.c (Fmake_charset):
12853         * mule-wnnfns.c (Fwnn_set_param):
12854         [1].
12855
12856         * ntproc.c (create_child):
12857         * ntproc.c (Fwin32_set_current_locale):
12858         Add comments portending doom.
12859
12860         * objects-msw.c:
12861         * objects-msw.c (old_font_enum_callback_2):
12862         * objects-msw.c (font_enum_callback_1):
12863         * objects-msw.c (mswindows_enumerate_fonts):
12864         [5].
12865
12866         * objects-x.c:
12867         * objects-x.c (allocate_nearest_color):
12868         * objects-x.c (x_parse_nearest_color):
12869         * objects-x.c (x_initialize_color_instance):
12870         * objects-x.c (x_print_color_instance):
12871         * objects-x.c (x_finalize_color_instance):
12872         * objects-x.c (x_valid_color_name_p):
12873         * objects-x.c (x_initialize_font_instance):
12874         * objects-x.c (x_print_font_instance):
12875         * objects-x.c (valid_x_font_name_p):
12876         * objects-x.c (truename_via_FONT_prop):
12877         * objects-x.c (truename_via_random_props):
12878         * objects-x.c (truename_via_XListFonts):
12879         * objects-x.c (x_font_truename):
12880         * objects-x.c (x_font_instance_truename):
12881         * objects-x.c (x_font_instance_properties):
12882         * objects-x.c (x_list_fonts):
12883         * objects-x.c (x_find_charset_font):
12884         Mule-ize entire file.
12885         [7].
12886
12887         * objects-x.h:
12888         Mule-verify.
12889
12890         * print.c:
12891         * print.c (std_handle_out_external):
12892         * print.c (debug_print_no_newline):
12893         * print.c (syms_of_print):
12894         Output to all debugger kinds in debug-print.
12895         Fix console-output code under MSWin to actually work.
12896
12897         * process-nt.c (send_signal):
12898         * process-nt.c (nt_create_process):
12899         Use newer Unicode macros.
12900
12901         * process-unix.c (unix_create_process):
12902         * process-unix.c (unix_canonicalize_host_name):
12903         * process-unix.c (unix_open_network_stream):
12904         [7].
12905
12906         * scrollbar-x.c:
12907         Mule-verify.
12908
12909         * search.c (syms_of_search):
12910         [2].
12911
12912         * select-msw.c (mswindows_destroy_selection):
12913         Use LIST_LOOP_2.
12914
12915         * select-x.c (symbol_to_x_atom):
12916         [7].
12917
12918         * select.c (syms_of_select):
12919         [2].
12920
12921         * sound.c (Fplay_sound_file):
12922         [7].
12923
12924         * specifier.c:
12925         * specifier.c (decode_specifier_type):
12926         * specifier.c (Fvalid_specifier_locale_type_p):
12927         * specifier.c (check_valid_locale_or_locale_type):
12928         * specifier.c (decode_locale):
12929         * specifier.c (decode_locale_type):
12930         * specifier.c (decode_locale_list):
12931         * specifier.c (check_valid_domain):
12932         * specifier.c (decode_specifier_tag_set):
12933         * specifier.c (Fcanonicalize_tag_set):
12934         * specifier.c (Fdefine_specifier_tag):
12935         * specifier.c (Fspecifier_tag_predicate):
12936         * specifier.c (check_valid_inst_list):
12937         * specifier.c (check_valid_spec_list):
12938         * specifier.c (decode_how_to_add_specification):
12939         * specifier.c (check_modifiable_specifier):
12940         * specifier.c (specifier_add_spec):
12941         * specifier.c (boolean_validate):
12942         * specifier.c (display_table_validate):
12943         [9].
12944
12945         * specifier.c (syms_of_specifier):
12946         Move some symbols to general-slots.h.
12947         [2].
12948
12949         * symbols.c:
12950         * symbols.c (Fmapatoms):
12951         * symbols.c (Fapropos_internal):
12952         Add GCPROs.
12953
12954         * symbols.c (set_default_buffer_slot_variable):
12955         * symbols.c (set_default_console_slot_variable):
12956         [1].
12957
12958         * symbols.c (defsymbol_massage_name_1):
12959         * symbols.c (defkeyword_massage_name):
12960         * symbols.c (deferror_1):
12961         * symbols.c (deferror):
12962         * symbols.c (deferror_massage_name_and_message):
12963         * symeval.h:
12964         * symeval.h (DEFSYMBOL):
12965         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12966
12967         * symbols.c (syms_of_symbols):
12968         [2].
12969
12970         * symsinit.h:
12971         * symsinit.h (init_win32): New.
12972         Also new is syms_of_dialog_mswindows.
12973
12974         * syswindows.h:
12975         Add new Unicode macros, missing Cygwin wide-char functions,
12976         convenience conversion macros for Qmswindows_tstr, macros for
12977         encapsulating required MSWin <-> Cygwin filename conversions,
12978         prototype for dynamically-extracted (not in NT 3.51) functions.
12979
12980         * toolbar-x.c:
12981         Mule-verify.
12982
12983         * tooltalk.c (Fadd_tooltalk_message_arg):
12984         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12985         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12986         [7].
12987
12988         * tooltalk.c (syms_of_tooltalk):
12989         [2].
12990
12991         * unexnt.c:
12992         * unexnt.c (unexec):
12993         Fix up headers, declaration of unexec() to be more standard.
12994
12995 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12996
12997         * offix.h: Revert change to guard macros - they're used in offix.c!
12998
12999 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13000
13001         * lisp.h: Defsubred Fdelete.
13002
13003         * console-msw.h:  (msprinter_default_printer): Added.
13004
13005         * console-msw.c (msprinter_canonicalize_console_connection):
13006         (msprinter_canonicalize_device_connection): Added.
13007
13008         * device-msw.c (msprinter_default_printer):
13009         (Fmswingows_get_default_printer):
13010         (signal_enum_priner_error):
13011         (Fmswingows_printer_list): Added.
13012
13013 2000-07-19  Martin Buchholz <martin@xemacs.org>
13014
13015         * XEmacs 21.2.35 is released.
13016
13017 2000-07-19  Martin Buchholz  <martin@xemacs.org>
13018
13019         * select-x.c (x_handle_selection_request):
13020         Text selected in xemacs and pasted into xterm failed to appear.
13021         Spelling fixes and cosmetic changes.
13022
13023 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13024
13025         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
13026         XEmacs frame (fix for doubling chars in dialog boxes).
13027
13028 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
13029
13030         * select.c (select_convert_in, select_convert_out):
13031         Don't call intern() every time.
13032
13033         * select.c (Qselect_convert_in, Qselect_convert_out): New.
13034         * select.c (vars_of_select): Initialise them.
13035
13036 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
13037
13038         * select.c (selection-coercible-types): New.
13039
13040         * select.c (own-selection-internal):
13041         * select.c (get-selection-internal):
13042         MULE bug fix - these should default to COMPOUND_TEXT and not
13043         STRING for MULE. I think.
13044
13045         * select.c (select_convert_out): Use selection-coercible-types
13046         to find types that we can attempt to perform coercions on.
13047
13048 2000-07-18  Martin Buchholz  <martin@xemacs.org>
13049
13050         * mule-wnnfns.c:
13051         * mule-canna.c:
13052         Add coding: cookie to identify encoding.
13053
13054         * mule-canna.c (CANNA_mode_keys): make static.
13055         Use proper prototypes, even for functions of no arguments.
13056         Remove external prototype for Fding().
13057
13058         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
13059
13060         * select.c (syms_of_select): Add missing DEFSUBR.
13061
13062 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
13063
13064         * select.c (get_selection_internal, own_selection_internal):
13065         Make the type default to STRING, rather than placing a nil type
13066         into Vselection_alist.
13067
13068 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
13069
13070         * gpmevent.c (tty_selection_exists_p):
13071         * gpmevent.c (tty_own_selection):
13072         Updated parameter lists.
13073
13074 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
13075
13076         * select.h (selection-alist): Removed declaration.
13077
13078         * select.h (get_local_selection):
13079         * select.c (get_local_selection):
13080         Made static.
13081
13082         * select.h (convert_selection): Removed declaration.
13083         * select.c (convert_selection): Removed.
13084         This function belongs in Lisp.
13085
13086         * select.h (select_convert_in): Declare.
13087         * select.h (select_convert_out): Declare.
13088         * select.c (select_convert_in): New.
13089         * select.c (select_convert_out): New.
13090         New conversion functions for other files to call.
13091
13092         * select.h (select_notify_buffer_kill): Declare.
13093         * select.c (select_notify_buffer_kill): New.
13094         New functions that get called from kill-buffer.
13095
13096         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
13097         X-specific lisp code.
13098
13099         * select.h: Declare some of the lisp-visible functions for
13100         external use.
13101
13102         * select.c (clean_local_selection_data): Removed. This was
13103         a disgusting function, and previously should have been in
13104         select-x.c in any case. The functionality is now provided
13105         in select-convert-from-integer (select.el).
13106
13107         * select.c (available-selection-types): Fixed stupidity where
13108         INTEGER and ATOM got added twice. Also add STRING when we see an
13109         extent.
13110
13111         * select.c (get-selection-internal): Removed symbol stripping. No
13112         longer causes conversion when data comes from the internal cache.
13113
13114         * select.c (syms_of_select): Added new functions.
13115
13116         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
13117         error checking - previously this called abort!
13118
13119         * select-x.c (x_own_selection): Changed comment.
13120
13121         * select-x.c (x_handle_selection_request): Use select_convert_out.
13122         Don't mess with selection-alist; it's an internal variable of select.c.
13123
13124         * select-x.c (x_get_foreign_selection): Use select_convert_in.
13125
13126         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
13127         rather than messing with selection-alist.
13128
13129         * select-msw.c (mswindows_get_foreign_selection):
13130         Use TO_INTERNAL_FORMAT rather than hacking.
13131
13132 2000-07-14  Martin Buchholz  <martin@xemacs.org>
13133
13134         * process-unix.c (unix_open_multicast_group):
13135         (unix_open_multicast_group): Remove useless casts.
13136
13137 2000-07-13  Martin Buchholz  <martin@xemacs.org>
13138
13139         * sound.c (Fplay_sound): Fix `unused variable' warning.
13140
13141         * emacs.c (main): Use correct type for _environ on SCO5.
13142
13143 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
13144
13145         * console.h (own_selection_method):
13146         * console.h (selection_exists_p_method):
13147         * console.h (available_selection_types_method): New.
13148         * console.h (register_selection_data_type_method): New.
13149         * console.h (selection_data_type_name): New.
13150
13151         * console-msw.h (mswindows_destroy_selection): Declare it.  New
13152         function & alist to track GlobalAlloc()'d handles that need
13153         releasing when the clipboard data gets replaced or emptied.
13154
13155         * event-msw.c (mswindows_wnd_proc): Call it.
13156
13157         * lisp.h, general.c (Qappend): New symbol representing a
13158         `how-to-add' mode.
13159
13160         * select.c (own-selection-internal):
13161         * select.c (selection-exists-p):
13162         * select.c (available-selection-types): New.
13163         * select.c (register-selection-data-type): New.
13164         * select.c (selection-data-type-name): New.  New functions to deal
13165         with device-specific selection data formats.
13166         * select.c (selection-converter-out-alist): Renamed.
13167         * select.c (selection-converter-in-alist): New.
13168         * select.c (selection-appender-alist): New.  Added new alists.
13169         * select.c (syms_of_select, vars_of_select): Added new symbols &
13170         variables.
13171         * select.c (get_local_selection): Split.
13172         * select.c: Removed spurious type checking - selections may now be
13173         of any type, not just strings.
13174         * select.c (own-selection-internal):
13175
13176         * select.h, select.c (convert_selection): New. Created
13177         convert_selection() function based on get_local_selection().
13178         * select.h, select.c (QCF_*): New symbols representing mswindows
13179         clipboard formats.
13180         * select.h, select.c (Qreplace_all, Qreplace_existing): New
13181         symbols representing `how-to-add' modes.
13182
13183         * select-msw.c (x_sym_p): New.
13184         * select-msw.c (symbol_to_ms_cf): New.
13185         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
13186         symbols & clipboard formats. Can also handle string names.
13187         * select-msw.c (mswindows_own_selection):
13188         * select-msw.c (mswindows_selection_exists_p):
13189         Added `data-type' parameter. Use it.
13190         * select-msw.c (mswindows_available_selection_types): New.
13191         * select-msw.c (mswindows_register_selection_data_type): New.
13192         * select-msw.c (mswindows_selection_data_type_name): New.
13193         * select-msw.c (mswindows_own_selection):
13194         * select-msw.c (mswindows_get_foreign_selection):
13195         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
13196         * select-msw.c (console_create_select_mswindows): Added new methods.
13197         * select-msw.c (mswindows_destroy_selection): New.
13198         * select-msw.c (Vhandle_alist): New list.
13199         * select-msw.c (mswindows_own_selection):
13200
13201         * select-x.c (x_own_selection):
13202         * select-x.c (x_selection_exists_p):
13203         * select-x.c: Added some comments about maybe using new
13204         functionality.
13205         * select-x.c (x_own_selection):
13206
13207         * specifier.c: Remove definition of Qappend (now in general.c)
13208         * specifier.c (syms_of_specifier): Remove Qappend.
13209
13210 2000-07-12  Martin Buchholz  <martin@xemacs.org>
13211
13212         * config.h.in: Add socklen_t.
13213
13214         * s/decosf4-0.h: No special compiler flags needed or desired.
13215         In particular, undefine _BSD for DEC OSF 4.0.
13216
13217 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13218
13219         * redisplay-msw.c (msprinter_frame_output_end): Added.
13220         (console_type_create_redisplay_mswindows): Referred the above.
13221
13222         * frame.c (setup_frame_without_minibuffer): Do not create a
13223         default minibuffer frame on a printer device.
13224
13225         * frame-msw.c (apply_dc_geometry): Added.
13226         (msprinter_start_page):
13227         (msprinter_init_frame_3):
13228         (msprinter_eject_page): Use it.
13229
13230         * console-msw.h (struct msprinter_frame): Added pix_left and top,
13231         and removed residual duplex and orientation properties.
13232
13233 2000-07-11  Martin Buchholz  <martin@xemacs.org>
13234
13235         * eval.c (function_argcount): Work around a DEC CC compiler bug.
13236
13237         * unexalpha.c: Remove system prototypes from C sources!
13238
13239 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
13240
13241         * eval.c: Remove references to M-x edit-options in DEFUNs for
13242         `defvar' and `defconst'.
13243
13244 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13245
13246         * config.h.in: Remove SMART_INCLUDE hackery.
13247
13248         PostgreSQL hacking:
13249         * config.h.in: Don't use SMART_INCLUDE.
13250
13251         * postgresql.h: Include libpq-fe.h here.  Fix typo.
13252         * inline.c: Simply #include "postgresql.h"
13253         * postgresql.c:
13254         - Don't use SMART_INCLUDE
13255         - Use simply "const".
13256         - Use standard doc string conventions.
13257         - Use correct type for result of PQstatus.
13258
13259 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13260
13261         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
13262
13263         C++ compilation changes.
13264         * config.h.in (EXTERN_C): Define.
13265         * config.h.in (not): This is also a C++ keyword.
13266         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
13267         * cm.c: Use EXTERN_C.
13268         * redisplay-tty.c: Use EXTERN_C.
13269         * sysdep.c: Use EXTERN_C.  Remove Gould support.
13270
13271 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13272
13273         * general.c: Remove duplicate definition for Qfunction.
13274
13275 2000-07-08  Ben Wing  <ben@xemacs.org>
13276
13277         * device-msw.c (msprinter_init_device):
13278         * device-msw.c (sync_printer_with_devmode):
13279         * device-msw.c (handle_devmode_changes):
13280         * device-msw.c (print_dialog_worker):
13281         * device-msw.c (Fmsprinter_apply_settings):
13282         * device-msw.c (hash_devmode):
13283         * device-msw.c (Fmsprinter_settings_despecialize):
13284         use Qmswindows_tstr, not Qctext.
13285
13286         * vm-limit.c (check_memory_limits):
13287         avoid infinite loop printing warning messages.
13288
13289 2000-07-05  Craig Lanning  <lanning@scra.org>
13290
13291         * Makefile.in.in: Add support for including the Windows resources
13292         when building with the cygwin and mingw targets.
13293
13294         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
13295         not set or not correct.
13296         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
13297         (init_initial_directory): Don't try to use $PWD on the
13298         WIN32_NATIVE target.
13299
13300         * s\cygwin32.h:
13301         [[Add -mwindows to eliminate console window.]] not required --ben
13302         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13303         (MAIL_USE_POP): removed; now handled by configure.
13304
13305         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
13306         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
13307         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13308         (MAIL_USE_POP): removed; now handled by configure.
13309         (ENCAPSULATE_STAT): from Dan Holmsand, added.
13310         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
13311         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
13312         constant string.
13313         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
13314         up from <winsock.h> via systime.h.
13315         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
13316         (getpagesize): from Dan Holmsand, added.
13317         Added #endif which was left dangling by Ben's mega patch; added
13318         comment to help prevent this in the future.
13319
13320         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
13321
13322 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13323
13324         * console-msw.h (struct mswindows_device): Removed unnecessary
13325         cached device geometry values.
13326         Added update_tick and an accessor macro.
13327         (Lisp_Devmode): Added lrecord declaration.
13328         (struct msprinter_device): Contain devmode as a Lisp object.
13329         Added mswindows_get_selected_frame_hwnd();
13330
13331         * console.h (struct console_methods): Indentation nitpicking.
13332
13333         * device-msw.c (mswindows_init_device): Do not initialize geometry
13334         cache. Initialize update tick.
13335         (mswindows_device_system_metrics): Ask the device for its geometry.
13336         (global_free_2_maybe):
13337         (devmode_to_hglobal):
13338         (handle_printer_changes):
13339         (ensure_not_printing):
13340         (print_dialog_worker):
13341         (Fmsprinter_print_setup_dialog):
13342         (Fmsprinter_print_dialog):
13343         (plist_get_margin):
13344         (plist_set_margin):
13345         (Fmsprinter_page_setup_dialog): Added functions.
13346         (sync_printer_with_devmode):
13347         (handle_devmode_changes):
13348         (Fmsprinter_get_settings):
13349         (Fmsprinter_select_settings):
13350         (Fmsprinter_apply_settings):
13351         (allocate_devmode):
13352         (Fmsprinter_settings_copy):
13353         (Fmsprinter_settings_despecialize):
13354         (print_devmode):
13355         (finalize_devmode):
13356         (equal_devmode):
13357         (hash_devmode): Added functions
13358         (syms_of_device_mswindows): Init devmode lrecord class.
13359
13360         * device.h: Added an exfun for find-device.
13361
13362         * event-msw.c (mswindows_wnd_proc): Do not update the cached
13363         geometry; although, recreate the device compatible DC.
13364
13365         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13366         (msprinter_init_frame_3):
13367         (msprinter_frame_property):
13368         (msprinter_internal_frame_property_p):
13369         (msprinter_frame_properties):
13370         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13371         print job properties (will move to device settings).
13372
13373         * lisp.h: Added symbols.
13374
13375         * general.c (syms_of_general): Declared them.
13376
13377         * hash.c (string_hash): Added.
13378
13379         * lrecord.h (lrecord_type): Added devmode lrecord type.
13380
13381 2000-07-02  Mike Sperber <mike@xemacs.org>
13382
13383         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13384         FreeBSD 4.0.
13385
13386 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13387
13388         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13389         integer.
13390
13391 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13392
13393         * data.c (Fstring_to_number): Don't recognize floating point if
13394         base is not 10.
13395
13396 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13397
13398         * glyphs-widget.c (tab_control_query_geometry):
13399         (widget_query_geometry):
13400         (button_query_geometry):
13401         * glyphs.c (text_query_geometry):
13402         Enforce type correctness.
13403
13404 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13405
13406         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13407         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13408
13409 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13410
13411         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13412         conflicts with gcc's fixincluded version of FOO.h.
13413
13414         * glyphs.h (image_instance_geometry): Remove trailing `,'
13415
13416 2000-06-08  Mike Alexander  <mta@arbortext.com>
13417
13418         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13419         (shove_thread): Don't write the same output twice
13420         (make_ntpipe_output_stream): Increase priority of shove thread
13421         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13422         chance to run
13423         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13424         it.
13425
13426 2000-06-12  Ben Wing  <ben@xemacs.org>
13427
13428         * s\mingw32.h (sigset):
13429         * s\windowsnt.h (sigset):
13430         rename msw_ to mswindows_ for consistency with general convention.
13431
13432 2000-06-12  Ben Wing  <ben@xemacs.org>
13433
13434         * console-msw.c:
13435         * console-msw.c (mswindows_get_console_hwnd):
13436         * console-msw.c (mswindows_ensure_console_allocated):
13437         * console-msw.c (mswindows_hide_console):
13438         * console-msw.c (mswindows_show_console):
13439         * console-msw.c (mswindows_ensure_console_buffered):
13440         * console-msw.c (mswindows_output_console_string):
13441         * console-msw.c (mswindows_windows9x_p):
13442         * console-msw.h:
13443         * device-msw.c (mswindows_get_workspace_coords):
13444         * device-msw.c (mswindows_device_system_metrics):
13445         * dialog-msw.c (mswindows_popup_dialog_box):
13446         * event-msw.c (mswindows_wnd_proc):
13447         * frame-msw.c (mswindows_size_frame_internal):
13448         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13449         * menubar-msw.c (displayable_menu_item):
13450         * menubar-msw.c (mswindows_char_is_accelerator):
13451         * nt.c:
13452         * nt.c (mswindows_sigset):
13453         * nt.c (mswindows_sigrelse):
13454         * nt.c (mswindows_sigpause):
13455         * nt.c (mswindows_raise):
13456         * nt.c (timer_proc):
13457         * ntproc.c:
13458         * ntproc.c (find_child_console):
13459         * ntproc.c (sys_kill):
13460         * print.c:
13461         * print.c (std_handle_out_external):
13462         * process-nt.c (find_child_console):
13463         * process-nt.c (send_signal_the_95_way):
13464         * process-nt.c (ensure_console_window_exists):
13465         * process-nt.c (nt_create_process):
13466         * syssignal.h:
13467         rename msw_ to mswindows_ for consistency with general convention.
13468
13469         * emacs.c:
13470         * dumper.c:
13471         include nt.h, not syswindows.h.
13472
13473         * nt.c (mswindows_fstat):
13474         * nt.c (mswindows_stat):
13475         prefix mswindows_ instead of attempting to directly override the
13476         library functions.  fix declarations.
13477
13478         * nt.h:
13479         include syswindows.h.  move some sysdep.h stuff here.
13480
13481         * ntheap.h:
13482         include syswindows.h, not <windows.h>.
13483
13484         * ntplay.c:
13485         clean up headers.
13486
13487         * sysdep.c:
13488         clean up headers.
13489
13490         * sysdep.c (sys_fstat):
13491         * sysdep.c (sys_stat):
13492         call mswindows versions when appropriate.
13493
13494         * sysdep.h:
13495         move mswin decls to nt.h.
13496
13497         * syswindows.h:
13498         add long comment describing appropriate use of the various windows
13499         headers.
13500
13501 2000-06-11  Ben Wing  <ben@xemacs.org>
13502
13503         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13504
13505 2000-06-10  Ben Wing  <ben@xemacs.org>
13506
13507         * Makefile.in.in (release):
13508         Correction to make sure xemacs.exe always dumped when correct.
13509
13510         * alloca.c:
13511         * balloon_help.c:
13512         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13513
13514         * buffer.c (set_buffer_internal):
13515         [[[[2]]]]: Remove HAVE_FEP code.
13516
13517         * buffer.c (init_initial_directory):
13518         [3].
13519
13520         * bytecode.c:
13521         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13522         individual files.
13523
13524         * callproc.c:
13525         * callproc.c (call_process_cleanup):
13526         * callproc.c (Fold_call_process_internal):
13527         * callproc.c (child_setup):
13528         * callproc.c (getenv_internal):
13529         * callproc.c (init_callproc):
13530         * callproc.c (vars_of_callproc):
13531         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13532         __CYGWIN32__ -> CYGWIN.
13533         DOS_NT -> WIN32_NATIVE.
13534         Remove MSDOS support/references, converting to WIN32_NATIVE
13535           where correct.
13536         __MINGW32__ -> MINGW.
13537         Fix windows.h includes.
13538         Remove bogus HAVE_NTGUI.
13539
13540         * config.h.in:
13541         [2].
13542
13543         * console-msw.c:
13544         mswindows_message_outputted added for use in allowing startup
13545         errors on the console to be seen.
13546
13547         * console-msw.c (msw_ensure_console_allocated):
13548         * console-msw.c (msw_output_console_string):
13549         * console-msw.c (DHEADER):
13550         * console-msw.c (DOPAQUE_DATA):
13551         * console-msw.c (DEVENT):
13552         * console-msw.c (DCONS):
13553         * console-msw.c (DCONSCDR):
13554         * console-msw.c (DSTRING):
13555         * console-msw.c (DVECTOR):
13556         * console-msw.c (DSYMBOL):
13557         * console-msw.c (DSYMNAME):
13558         Fix warnings.
13559
13560         * console-stream.c (stream_init_console):
13561         Fix text/binary problems.
13562
13563         * device-msw.c:
13564         * device-msw.c (mswindows_finish_init_device):
13565         * device-msw.c (mswindows_delete_device):
13566         [1].
13567
13568         * device.c (handle_asynch_device_change):
13569         [3].
13570
13571         * dgif_lib.c:
13572         * dgif_lib.c (DGifOpenFileName):
13573         * dgif_lib.c (DGifOpenFileHandle):
13574         * dgif_lib.c (DGifGetLine):
13575         * dgif_lib.c (DGifGetPixel):
13576         Added config.h/lisp.h, fix up includes.
13577         [1].
13578
13579         * dired-msw.c:
13580         [4].
13581
13582         * dired.c:
13583         * dired.c (file_name_completion):
13584         * dired.c (Ffile_attributes):
13585         * dired.c (syms_of_dired):
13586         [1].
13587
13588         * dumper.c:
13589         * dumper.c (pdump_file_unmap):
13590         * dumper.c (pdump_load):
13591         [1].
13592
13593         * editfns.c:
13594         * editfns.c (Ftemp_directory):
13595         * editfns.c (user_login_name):
13596         * editfns.c (Fuser_real_login_name):
13597         * editfns.c (get_home_directory):
13598         [1].
13599
13600         * elhash.c (finish_marking_weak_hash_tables):
13601         [[[[5]]]]: Fix GCC warnings.
13602
13603         * emacs.c:
13604         * emacs.c (mswindows_handle_hardware_exceptions):
13605         * emacs.c (make_arg_list_1):
13606         * emacs.c (main_1):
13607         * emacs.c (Fkill_emacs):
13608         * emacs.c (Fdump_emacs):
13609         [1].
13610         Fix problems with nested crashes, add long comment.
13611
13612         * event-Xt.c (init_event_Xt_late):
13613         [1].
13614
13615         * event-msw.c:
13616         * event-msw.c (mswindows_dde_callback):
13617         * event-msw.c (mswindows_handle_sticky_modifiers):
13618         * event-msw.c (mswindows_wnd_proc):
13619         [1].
13620         [5].
13621
13622         * events.c (character_to_event):
13623         [1].
13624
13625         * fileio.c:
13626         * fileio.c (Ffile_name_directory):
13627         * fileio.c (Ffile_name_nondirectory):
13628         * fileio.c (directory_file_name):
13629         * fileio.c (Fexpand_file_name):
13630         * fileio.c (Fsubstitute_in_file_name):
13631         * fileio.c (Ffile_name_absolute_p):
13632         * fileio.c (check_executable):
13633         * fileio.c (Ffile_readable_p):
13634         * fileio.c (Ffile_accessible_directory_p):
13635         * fileio.c (Ffile_modes):
13636         * fileio.c (Funix_sync):
13637         * fileio.c (vars_of_fileio):
13638         [1]. [4].
13639
13640         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13641
13642         Expand getdefdir defn.
13643         Fix bogus rename() comment.
13644
13645         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13646         to use standard XEmacs include files, e.g. sysfile.h, rather
13647         than system-specific includes.
13648
13649         * fns.c:
13650         * fns.c (Fsubseq):
13651         [5]. [6].
13652
13653         * frame.c (vars_of_frame):
13654         [1].
13655
13656         * getloadavg.c:
13657         * getloadavg.c (getloadavg):
13658         [1]. [6].
13659         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13660         (We don't use it elsewhere in the code; just add a comment.)
13661
13662         * gif_io.c:
13663         [6].
13664         Add config.h.
13665
13666         * glyphs-msw.c:
13667         * glyphs-msw.c (mswindows_resource_instantiate):
13668         [1].
13669
13670         * glyphs-x.c (x_native_layout_instantiate):
13671         [5].
13672
13673         * gui-msw.c (Fmswindows_shell_execute):
13674         [1].
13675
13676         * insdel.c:
13677         [4].
13678
13679         * lisp.h:
13680         [4]. [5].
13681
13682         * lread.c (locate_file_in_directory_mapper):
13683         [1].
13684
13685         * lstream.c:
13686         [4].
13687
13688         * mem-limits.h:
13689         * mem-limits.h (get_lim_data):
13690         [1].
13691
13692         * menubar-msw.c:
13693         [4].
13694
13695         * ndir.h:
13696         [1].
13697
13698         * nt.c:
13699         * nt.c (getwd):
13700         * nt.c (closedir):
13701         * nt.c (rva_to_section):
13702         * nt.c (mswindows_executable_type):
13703         [1]. [6].
13704         Fix closedir() defn.
13705
13706         * nt.h:
13707         [[[[8]]]]: *_OK defs moved to sysfile.h.
13708
13709         * ntproc.c:
13710         [6]. [7].
13711
13712         * objects-x.c:
13713         [4].
13714
13715         * print.c:
13716         * print.c (std_handle_out_external):
13717         [1]. [4].
13718
13719         * process-nt.c:
13720         * process-nt.c (nt_create_process):
13721         [6].
13722         try to fix process quoting somewhat.
13723
13724         * process-unix.c (unix_create_process):
13725         [1].
13726
13727         * process.c:
13728         * process.c (vars_of_process):
13729         Add Vnull_device.
13730
13731         * process.h:
13732         [1].
13733
13734         * realpath.c:
13735         * realpath.c (xrealpath):
13736         [1].
13737
13738         * redisplay-tty.c (init_tty_for_redisplay):
13739         [3].
13740
13741         * redisplay.c:
13742         [4]. [6].
13743
13744         * scrollbar-msw.c:
13745         [4].
13746
13747         * sheap.c:
13748         * sheap.c (more_static_core):
13749         * sheap.c (report_sheap_usage):
13750         [5]. [6].
13751
13752         * signal.c:
13753         * signal.c (alarm_signal):
13754         [1]. [6].
13755
13756         * sound.c:
13757         [6].
13758
13759         * strftime.c:
13760         * strftime.c (zone_name):
13761         [1]. [5].
13762
13763         * symsinit.h (init_sunpro):
13764         [1].
13765
13766         * syscommctrl.h:
13767         commctrl.h not in Cygwin b20.1.
13768
13769         * sysdep.c:
13770         * sysdep.c (endif):
13771         * sysdep.c (sys_subshell):
13772         * sysdep.c (init_baud_rate):
13773         * sysdep.c (emacs_get_tty):
13774         * sysdep.c (emacs_set_tty):
13775         * sysdep.c (tty_init_sys_modes_on_device):
13776         * sysdep.c (init_system_name):
13777         * sysdep.c (sys_open):
13778         * sysdep.c (interruptible_open):
13779         * sysdep.c (sys_fopen):
13780         * sysdep.c (sys_mkdir):
13781         * sysdep.c (sys_rename):
13782         * sysdep.c (get_process_times_1):
13783         [1]. [6].
13784
13785         * sysdep.h:
13786         [1].
13787
13788         * sysdir.h:
13789         * sysdir.h (DIRENTRY_NONEMPTY):
13790         [1]. [6].
13791
13792         * sysdll.c (dll_init):
13793         * sysdll.h:
13794         [1].
13795
13796         * sysfile.h:
13797         [1]. [6]. [8].
13798         added text/binary defs.
13799
13800         * sysfloat.h:
13801         [1].
13802
13803         * sysproc.h:
13804         * sysproc.h (EDESTADDRREQ):
13805         * sysproc.h (poll_fds_for_input):
13806         [1]. [6].
13807
13808         * syspwd.h:
13809         [6].
13810
13811         * syssignal.h:
13812         [1].
13813
13814         * systime.h:
13815         [1]. [6].
13816
13817         * systty.h:
13818         [1].
13819
13820         * syswindows.h:
13821         [1].
13822         Always define WIN32_LEAN_AND_MEAN.
13823
13824         * unexcw.c (unexec):
13825         [5].
13826
13827         * unexec.c:
13828         * unexec.c (copy_text_and_data):
13829         * unexec.c (adjust_lnnoptrs):
13830         [1].
13831
13832         * unexnt.c:
13833         * unexnt.c (_start):
13834         [1].
13835
13836 2000-06-07  Ben Wing  <ben@xemacs.org>
13837
13838         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13839         was used only as a model.  We've long since extracted any useful
13840         logic or code out of this. (I just did an exhaustive search.)
13841
13842         * s\msdos.h: Removed.
13843
13844         * s\windows95.h: Removed.
13845
13846 2000-06-10  Ben Wing  <ben@xemacs.org>
13847
13848         * s\cygwin32.h:
13849         [1]. [5].
13850         Don't use extern with fun defs.
13851
13852         * s\mingw32.h:
13853         [1]. [7].
13854         Remove nt\inc include.
13855         Remove getdisk, getdefdir. (The former is unused, the latter
13856         expanded in fileio.h.)
13857
13858         * s\windowsnt.h:
13859         * s\windowsnt.h (WIN32_NATIVE):
13860         * s\windowsnt.h (HAVE_STRCASECMP):
13861         [1]. [7].
13862         Add long comment about preprocessor changes.
13863         Remove getdisk, getdefdir. (The former is unused, the latter
13864         expanded in fileio.h.)
13865
13866 2000-06-10  Ben Wing  <ben@xemacs.org>
13867
13868         * m\arm.h:
13869         * m\delta.h:
13870         * m\intel386.h:
13871         * m\sequent.h:
13872         * m\template.h:
13873         * m\windowsnt.h:
13874         [1].
13875         Remove bogus/unused NO_SOCK_SIGIO.
13876
13877 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13878
13879         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13880         not an Emchar.
13881
13882 2000-06-04  Mike Sperber <mike@xemacs.org>
13883
13884         * casetab.c (set_case_table): For `set-standard-case-table',
13885         actually deposit the new case tables where the rest of XEmacs can
13886         see them.
13887
13888 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13889
13890         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13891
13892 2000-06-05  Ben Wing  <ben@xemacs.org>
13893
13894         * callproc.c (child_setup): Don't do close_load_descs() under
13895         MS Windows.  Put in a comment explaining why.
13896
13897 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13898
13899         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13900         Toolkit shell" which breaks `kill-compilation' on Windows NT
13901         native, retaining STDERR handling improvements.
13902
13903 2000-06-01  Andreas Jaeger  <aj@suse.de>
13904
13905         * s/s390.h: Support for S390, based on a patch by Martin
13906         Schwidefsky <schwidefsky@de.ibm.com>.
13907
13908 2000-05-30  Andy Piper  <andy@xemacs.org>
13909
13910         * window.c (allocate_window):
13911         (make_dummy_parent):
13912         (Fset_window_configuration): use new hashtable type.
13913
13914         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13915         (struct image_instantiator_methods):
13916         (struct Lisp_Image_Instance): make instance geometry signed.
13917
13918         * glyphs.c (instantiate_image_instantiator):
13919         (image_instance_query_geometry):
13920         (image_instance_layout):
13921         (image_instance_layout):
13922         (query_string_geometry):
13923         (text_query_geometry):
13924         (image_instantiate):
13925         (image_instantiate):
13926         (cache_subwindow_instance_in_frame_maybe):
13927         (subwindow_query_geometry): make instance geometry signed.
13928
13929         * glyphs-widget.c (widget_query_geometry):
13930         (widget_layout):
13931         (button_query_geometry):
13932         (tree_view_query_geometry):
13933         (tab_control_query_geometry):
13934         (layout_query_geometry):
13935         (layout_layout):
13936         (native_layout_layout): make instance geometry signed.
13937
13938 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13939
13940         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13941         constant.
13942
13943         * general.c (syms_of_general): Add Qfull_assoc symbol.
13944
13945         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13946         correctly.
13947         (decode_weak_list_type): Decode full-assoc type.
13948         (encode_weak_list_type): Encode full-assoc type.
13949         (Fmake_weak_list): Update doc string.
13950
13951 2000-05-30  Andy Piper  <andy@xemacs.org>
13952
13953         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13954
13955         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13956         (decode_hash_table_weakness): ditto.
13957         (Fhash_table_weakness): ditto.
13958         (Fhash_table_type): ditto.
13959         (finish_marking_weak_hash_tables): ditto.
13960         (hash_table_weakness_validate): ditto.
13961         (syms_of_elhash): ditto.
13962
13963 2000-05-28  Martin Buchholz <martin@xemacs.org>
13964
13965         * XEmacs 21.2.34 is released.
13966
13967 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13968
13969         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13970         start cache.
13971         (updating_line_start_cache): Gone.
13972         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13973         generic code to force a minimum of 1 line laid out in the
13974         CMOTION_DISP case.
13975
13976 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13977
13978         * glyphs.c (instantiate_image_instantiator): Check for initialized
13979         height & width no longer special cases IMAGE_NOTHING.
13980         (nothing_instantiate): Set height and width of instance.
13981
13982 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13983
13984         * unexelf.c (unexec): Search for ".data" section.
13985         Initialize new_data2_offset from old_data_index.
13986         Remove redundant check for ElfW.
13987
13988 2000-05-23  Andy Piper  <andy@xemacs.org>
13989
13990         * glyphs.c (get_image_instantiator_governing_domain): allow more
13991         specific domains as the governing domain rather than expecting an
13992         exact match. This fixes problems with layouts.
13993
13994 2000-05-22  Andy Piper  <andy@xemacs.org>
13995
13996         * redisplay-output.c (compare_runes): check for non-images
13997
13998         * glyphs.c (set_glyph_dirty_p): ditto.
13999         (update_glyph_cachel_data): ditto.
14000
14001         * glyphs-widget.c (layout_post_instantiate): ditto.
14002         (layout_post_instantiate): ditto.
14003
14004         * event-msw.c (mswindows_wnd_proc): warning removal.
14005
14006 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
14007
14008         * s\mingw32.h: Added #undef for CLASH_DETECTION.
14009
14010         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
14011
14012         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
14013
14014         * nt.c (rva_to_section): mingw32 needs rva_to_section.
14015         (mswindows_executable_type): mingw32 now has enough headers for
14016         this to work.
14017
14018 2000-05-20  Andy Piper  <andy@xemacs.org>
14019
14020         * console-msw.c (mswindows_output_last_error): ; -> ,
14021
14022 2000-05-12  Andy Piper  <andy@xemacs.org>
14023
14024         * console-msw.c (FROB): compare ints with ints.
14025
14026 2000-05-11  Andy Piper  <andy@xemacs.org>
14027
14028         * glyphs-x.c (x_finalize_image_instance): make minimal build
14029         happy.
14030
14031 2000-05-20  Ben Wing  <ben@xemacs.org>
14032
14033         * event-Xt.c:
14034         * event-Xt.c (vars_of_event_Xt):
14035         move modifier-keys-are-sticky to event-stream.c.
14036
14037         * event-msw.c:
14038         * event-msw.c (mswindows_enqueue_mouse_button_event):
14039         * event-msw.c (key_needs_default_processing_p):
14040         * event-msw.c (XEMSW_LCONTROL):
14041         * event-msw.c (mswindows_handle_sticky_modifiers):
14042         * event-msw.c (FROB):
14043         * event-msw.c (clear_sticky_modifiers):
14044         * event-msw.c (output_modifier_keyboard_state):
14045         * event-msw.c (output_alt_keyboard_state):
14046         * event-msw.c (mswindows_wnd_proc):
14047         * event-msw.c (mswindows_modifier_state):
14048         * event-msw.c (emacs_mswindows_handle_magic_event):
14049         implement sticky modifiers.
14050
14051         * event-stream.c:
14052         * event-stream.c (vars_of_event_stream):
14053         move modifier-keys-are-sticky here.
14054
14055         * lisp.h:
14056         add CHECK_FUNCTION.
14057
14058         * rangetab.c:
14059         implement map-range-table.
14060
14061
14062 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
14063
14064         * redisplay-tty.c (reset_tty_modes):
14065         (tty_redisplay_shutdown): Adjust argument type to
14066         tty_frame_output_end.
14067
14068 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14069
14070         * eval.c (Fbacktrace): Don't output a line with only right
14071         parenthesis.
14072
14073 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
14074
14075         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
14076         (Fpq_reset_poll): Ditto.
14077
14078 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
14079
14080         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
14081
14082 2000-05-16  Ben Wing  <ben@xemacs.org>
14083
14084         * buffer.c:
14085         * buffer.c (dfc_convert_to/from_internal_format):
14086         * buffer.c (reinit_vars_of_buffer):
14087         Fix conversion functions to allow reentrancy.
14088
14089         * console-msw.c:
14090         * console-msw.c (mswindows_output_last_error):
14091         New fun, generally useful -- output a human-readable
14092         version of GetLastError() on the console.
14093
14094         * console-msw.h:
14095         * console-msw.h (struct mswindows_frame):
14096         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
14097
14098         * console-stream.c (stream_output_begin):
14099         * console-stream.c (stream_output_end):
14100         * console-stream.c (stream_output_vertical_divider):
14101         * console-stream.c (stream_clear_region):
14102         * console-stream.c (stream_flash):
14103         * console-stream.c (console_type_create_stream):
14104         Delete blank stream methods, not needed.
14105
14106         * console.h (struct console_methods):
14107         Split begin/end methods into window and frame.
14108
14109         * event-msw.c:
14110         * event-msw.c (mswindows_handle_paint):
14111         * event-msw.c (output_alt_keyboard_state):
14112         * event-msw.c (mswindows_wnd_proc):
14113         * event-msw.c (vars_of_event_mswindows):
14114         Comment about problems with ignored-expose.
14115         Define mswindows-debug-events; not really implemented.
14116
14117         * frame-msw.c (mswindows_init_frame_1):
14118         random cleanups.
14119
14120         * glyphs-msw.c:
14121         * glyphs-msw.c (begin_defer_window_pos):
14122         * glyphs-msw.c (mswindows_unmap_subwindow):
14123         * glyphs-msw.c (mswindows_map_subwindow):
14124         * glyphs-msw.c (mswindows_resize_subwindow):
14125         Use DeferWindowPos to reduce flashing when mapping/unmapping.
14126
14127         * glyphs.c (make_image_instance_1):
14128         Fix crash.
14129
14130         * gutter.c (Fredisplay_gutter_area):
14131         Use new begin/end methods.
14132
14133         * lisp.h (Dynarr_new2):
14134         New creation fun.
14135
14136         * redisplay-msw.c:
14137         * redisplay-msw.c (mswindows_frame_output_begin):
14138         * redisplay-msw.c (mswindows_frame_output_end):
14139         * redisplay-msw.c (console_type_create_redisplay_mswindows):
14140         New begin/end methods -- handle DeferWindowPos.
14141
14142         * redisplay-output.c (redisplay_move_cursor):
14143         * redisplay-output.c (redraw_cursor_in_window):
14144         * redisplay-output.c (redisplay_update_line):
14145         * redisplay-output.c (redisplay_output_window):
14146         New begin/end methods.
14147
14148         * redisplay-tty.c:
14149         * redisplay-tty.c (tty_frame_output_begin):
14150         * redisplay-tty.c (tty_frame_output_end):
14151         * redisplay-tty.c (console_type_create_redisplay_tty):
14152         New begin/end methods.
14153
14154         * redisplay-x.c:
14155         * redisplay-x.c (x_window_output_begin):
14156         * redisplay-x.c (x_window_output_end):
14157         * redisplay-x.c (console_type_create_redisplay_x):
14158         New begin/end methods.
14159
14160         * redisplay.c (redisplay_frame):
14161         * redisplay.c (Fredisplay_echo_area):
14162         New begin/end methods.
14163         use MAYBE_DEVMETH for clear_frame; it may not exist.
14164
14165         * window.h (WINDOW_XFRAME):
14166         WINDOW_XFOO macros -- get locale and decode struct pointer.
14167
14168
14169 2000-05-12  Ben Wing  <ben@xemacs.org>
14170
14171         * emacs.c:
14172         * emacs.c (ensure_no_quitting_from_now_on):
14173         * emacs.c (fatal_error_signal):
14174         * emacs.c (mswindows_handle_hardware_exceptions):
14175         * emacs.c (main):
14176         * emacs.c (Fkill_emacs):
14177         * emacs.c (shut_down_emacs):
14178         * emacs.c (assert_failed):
14179         various improvements in fatal error handling.
14180
14181         * eval.c:
14182         move preparing_for_armageddon to emacs.c.
14183
14184         * lisp.h:
14185         declare fatal_error_in_progress.
14186
14187         * print.c:
14188         * print.c (std_handle_out_external):
14189         * print.c (std_handle_out_va):
14190         * print.c (stderr_out):
14191         * print.c (stdout_out):
14192         use console under mswin when no standard output.
14193         don't do code conversion during fatal error.
14194
14195         * scrollbar.c (Fscrollbar_page_up):
14196         * scrollbar.c (Fscrollbar_page_down):
14197         fix missing else.  reindent.
14198
14199 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
14200
14201         Emergency fix.
14202
14203         * glyphs.h (GLYPH_CACHEL_DESCENT):
14204         (GLYPH_CACHEL_DESCENT):
14205         (GLYPH_CACHEL_DESCENT):
14206         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
14207         used in case these are inline functions.
14208         Use more absurd values to error check.
14209
14210         include window.h for error check functions.
14211
14212 2000-05-11  Ben Wing  <ben@xemacs.org>
14213
14214         * cmdloop.c (Freally_early_error_handler):
14215         Display message box under windows; otherwise, message will disappear
14216         before it can be viewed.
14217
14218         * console-msw.c:
14219         * console-msw.c (Fmswindows_message_box):
14220         * console-msw.c (FROB):
14221         * console-msw.c (syms_of_console_mswindows):
14222         Define new fun `mswindows-message-box'.
14223         #### I will merge this into `popup-dialog-box'; just give me
14224         a bit of time.
14225
14226         * general.c:
14227         * general.c (syms_of_general):
14228         Some new symbols used in `mswindows-message-box'.
14229
14230         * glyphs.c:
14231         * glyphs.c (Fset_image_instance_property):
14232         put warning in this fun.
14233
14234         * glyphs.h:
14235         * glyphs.h (GLYPH_CACHEL_WIDTH):
14236         * glyphs.h (GLYPH_CACHEL_ASCENT):
14237         * glyphs.h (GLYPH_CACHEL):
14238         * glyphs.h (GLYPH_CACHEL_GLYPH):
14239         define error-checking versions to try to catch a bug i've seen --
14240         redisplay gets in an infinite loop because the glyph width of the
14241         continuation glyph is 65535.
14242
14243         * lisp.h:
14244         Extern message-box stuff.
14245
14246         * window.c (allocate_window):
14247         * window.c (make_dummy_parent):
14248         * window.c (Fset_window_configuration):
14249         Use EQUAL not EQ for subwindow caches to make them work a bit
14250         better. (Something is still very broken.)
14251
14252
14253 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14254
14255         * glyphs.c (image_instantiate): Suppress gcc warnings.
14256         (Fmake_image_instance): Fix doc string.
14257         * specifier.c (Fmake_specifier): Ditto.
14258
14259 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
14260
14261         * paths.h.in (PATH_LOCK): Removed.
14262         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
14263         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
14264
14265 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14266
14267         * fns.c (Ffeaturep): Update e-mail address in doc-string.
14268         Document (featurep '(and xemacs 21.02)).
14269
14270 2000-05-09  Ben Wing  <ben@xemacs.org>
14271
14272         * buffer.c (complex_vars_of_buffer):
14273         update modeline-format doc.
14274
14275         * device.h:
14276         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
14277
14278         * emacs.c:
14279         timeline of all released versions of Emacs, for use in creating
14280         authorship comments and in synching up.
14281
14282         * glyphs-widget.c (image_instantiator_buttons):
14283         * glyphs-widget.c (image_instantiator_edit_fields):
14284         * glyphs-widget.c (image_instantiator_combo_box):
14285         * glyphs-widget.c (image_instantiator_scrollbar):
14286         * glyphs-widget.c (image_instantiator_progress_guage):
14287         * glyphs-widget.c (image_instantiator_tree_view):
14288         * glyphs-widget.c (image_instantiator_tab_control):
14289         * glyphs-widget.c (image_instantiator_labels):
14290         * glyphs-widget.c (image_instantiator_layout):
14291         * glyphs-widget.c (image_instantiator_native_layout):
14292         rename decode_domain method to governing_domain.
14293
14294         * glyphs.c:
14295         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
14296         * glyphs.c (add_entry_to_device_ii_format_list):
14297         make sure we don't put an entry more than once into the list.
14298         * glyphs.c (check_instance_cache_mapper):
14299         *************************************************************
14300         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14301         HAVE BEEN GETTING.
14302         *************************************************************
14303         * glyphs.c (get_image_instantiator_governing_domain):
14304         clean up, expand on new concept of governing domain.
14305         * glyphs.c (instantiate_image_instantiator):
14306         * glyphs.c (allocate_image_instance):
14307         use governing_domain instead of cache_domain in naming.
14308         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
14309         * glyphs.c (make_image_instance_1):
14310         * glyphs.c (Fmake_image_instance):
14311         allow for any domain (not just device), and process the
14312         governing domain correctly.  very big doc fix.
14313         * glyphs.c (Fimage_instance_domain):
14314         new primitive, to retrieve the governing domain of an image instance.
14315         * glyphs.c (image_instantiate):
14316         use new governing_domain stuff.  this fixes a crash you could get
14317         by instantiating certain widget glyphs in frame locales. (should
14318         signal an error instead of crashing.)
14319         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
14320         * glyphs.c (Fglyphp): clean up doc.
14321         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
14322         * glyphs.c (syms_of_glyphs):
14323         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
14324         * glyphs.c (image_instantiator_format_create): add some comments about
14325         bogus code.
14326         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
14327         for current-display-table. (Apparently Hrjove implemented in 1998 a
14328         design I wrote up in 1996, but didn't update the doc string.)
14329
14330         * glyphs.h: clean up a doc string.
14331         * glyphs.h (governing_domain):
14332         * glyphs.h (struct image_instantiator_methods):
14333         changes for governing_domain stuff.
14334
14335         * gutter.c:
14336         * gutter.c (Fgutter_specifier_p):
14337         * gutter.c (Fgutter_size_specifier_p):
14338         * gutter.c (Fgutter_visible_specifier_p):
14339         * objects.c:
14340         * objects.c (Fcolor_specifier_p):
14341         * objects.c (Ffont_specifier_p):
14342         * objects.c (Fface_boolean_specifier_p):
14343         doc strings moved to make-*-specifier.
14344
14345         * redisplay.c (add_disp_table_entry_runes_1):
14346         * redisplay.c (generate_fstring_runes):
14347         * redisplay.c (screen):
14348         add random comments and doc strings.
14349
14350         * specifier.c:
14351         * specifier.c (Fmake_specifier):
14352         major overhaul of this doc string.
14353
14354         * specifier.c (Fvalid_specifier_domain_p):
14355         comment about the bogosity of image instances being domains.
14356         * specifier.c (decode_domain):
14357         now non-static, used in glyphs.c.
14358         * specifier.c (specifier_instance):
14359         comment about the bogosity of image instances being domains.
14360         * specifier.c (Fgeneric_specifier_p):
14361         move doc string to make-generic-specifier.
14362         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14363         rebackslashify.
14364
14365         * specifier.h:
14366         * specifier.h (DOMAIN_FRAME):
14367         * specifier.h (DOMAIN_LIVE_P):
14368         * specifier.h (DOMAIN_XDEVICE):
14369         rebackslashify.
14370         add comments about problems with these macros.
14371         prototype for decode_domain.
14372
14373         * toolbar.c:
14374         * toolbar.c (Ftoolbar_specifier_p):
14375         move doc string to `make-toolbar-specifier'.
14376
14377         * window.c (window_unmap_subwindows_cache_mapper):
14378         *************************************************************
14379         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14380         HAVE BEEN GETTING.
14381         *************************************************************
14382
14383 2000-05-09  Andy Piper  <andy@xemacs.org>
14384
14385         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14386
14387         * window.c (Fset_window_configuration): reset the frame subwindow
14388         cache and re-initialize the window subwindow caches.
14389
14390         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14391
14392 2000-05-09  Ben Wing  <ben@xemacs.org>
14393
14394         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14395         DWORD.
14396
14397 2000-04-26  Mike Woolley  <mike@bulsara.com>
14398
14399         * ntheap.c: Changed recreate_heap to limit the amount reserved
14400         for the heap to that which is actually available. Also now
14401         displays a message box (with some dignostics) in the event that
14402         it still can't start.
14403
14404 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14405
14406         * callproc.c (Fold_call_process_internal): GCPRO path
14407
14408 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14409
14410         Patch by Bill Perry.
14411
14412         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14413         back data instead of #ifdef.
14414         (Fscrollbar_page_down): ditto.
14415
14416 2000-05-07  Ben Wing  <ben@xemacs.org>
14417
14418         * buffer.h:
14419         Kludge for defining Qmswindows_tstr.
14420
14421         * nt.c:
14422         * nt.c (open_input_file):
14423         * nt.c (open_output_file):
14424         * nt.c (rva_to_section):
14425         * nt.c (mswindows_executable_type):
14426         Move all memory-mapped-file routines here (some were in unexnt.c,
14427         which is bad because they are used by process-nt.c, and unexnt
14428         won't be around when portable dumping).  Synched the above routines
14429         with FSF 20.6.
14430
14431         * nt.h:
14432         Removed ifdef'd out bogus code.
14433         Fixed some prototypes.
14434
14435         * nt.h (file_data):
14436         * nt.h (OFFSET_TO_RVA):
14437         * nt.h (RVA_TO_OFFSET):
14438         * nt.h (RVA_TO_PTR):
14439         Moved the memory-mapped-file structures, macros and prototypes
14440         here, to parallel nt.c.  ntheap.h should really be removed
14441         entirely, and it's a non-portable-dumper specific file.
14442
14443         * ntheap.h (round_to_next):
14444         Moved the memory-mapped-file structures, macros and prototypes
14445         to nt.h.
14446
14447         * ntproc.c (compare_env):
14448         Moved rva_to_section and mswindows_executable_type to nt.c.
14449         Moved compare_env to process-nt.c.
14450         ntproc.c will die, one day.
14451
14452         * ntproc.c (sys_spawnve):
14453         Account for win32_ -> mswindows_.
14454
14455         * process-nt.c:
14456         * process-nt.c (struct nt_process_data):
14457         * process-nt.c (ensure_console_window_exists):
14458         * process-nt.c (compare_env):
14459         * process-nt.c (nt_create_process):
14460         * process-nt.c (nt_kill_process_by_pid):
14461         * process-nt.c (syms_of_process_nt):
14462         * process-nt.c (vars_of_process_nt):
14463         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14464         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14465         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14466         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14467         Move compare_env here from ntproc.c.
14468
14469         * process.c (Fprocess_send_region):
14470         Takes an optional fourth argument, BUFFER, which should fix some
14471         problems with call-process.
14472
14473         * syscommctrl.h:
14474         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14475
14476         * syswindows.h:
14477         Move ICC_BAR_CLASSES to syscommctrl.h.
14478         Add preliminary macros for MSWindows/Mule.  More to come.
14479
14480         * unexnt.c:
14481         * unexnt.c (unexec):
14482         open_output_file moved to nt.c.
14483
14484
14485 2000-05-05  Andy Piper  <andy@xemacs.org>
14486
14487         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14488         instance from the frame cache also since GC may catch up too late
14489         to make frame deletion sane.
14490
14491 2000-05-04  Andy Piper  <andy@xemacs.org>
14492
14493         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14494         (x_finalize_image_instance): ungcpro on deletion.
14495
14496         * glyphs.c (image_instantiator_format_create): give pointers a
14497         query geometry method so that the geometry is at least set.
14498
14499         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14500         initialize layouts if using widgets.
14501
14502 2000-05-03  Andy Piper  <andy@xemacs.org>
14503
14504         * nt.c: remove bogus reference to sysmmsystem.h
14505
14506         * gui-x.c (popup_selection_callback): fix no selection abort.
14507
14508 2000-05-02  Andy Piper  <andy@xemacs.org>
14509
14510         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14511         (mswindows_widget_instantiate): ditto.
14512
14513         * glyphs-widget.c (initialize_widget_image_instance): initialize
14514         children correctly.
14515         (widget_instantiate): cope with children and items in the same
14516         instance.
14517
14518         * glyphs.c (mark_image_instance): cope with children as a first
14519         class member.
14520         (image_instance_equal): ditto.
14521         (image_instance_hash): ditto.
14522         (image_instance_changed): ditto.
14523
14524 2000-04-30  Andy Piper  <andy@xemacs.org>
14525
14526         * glyphs.c (subwindow_query_geometry): new function. Return some
14527         defaults.
14528         (subwindow_instantiate): don't assign dimensions if none have been
14529         given.
14530         (image_instantiator_format_create): add subwindow_query_geometry.
14531         (print_image_instance): cope with layouts as widgets.
14532
14533 2000-04-29  Andy Piper  <andy@xemacs.org>
14534
14535         * frame.c (delete_frame_internal): call
14536         free_frame_subwindow_instance_cache so that all subwindows are
14537         finalized before their parent.
14538         (mark_frame): remove subwindow_cachels.
14539         (Fmake_frame): remove subwindow_cachel manipulation.
14540         (allocate_frame_core): subwindow_instance_cache is a weak list.
14541         (delete_frame_internal): set subwindow_instance_cache to nil.
14542
14543         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14544         finalization safe.
14545         (mswindows_finalize_image_instance): use the device
14546         not the domain as the domain may have died already.
14547
14548         * glyphs-x.c (x_finalize_image_instance): ditto.
14549         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14550         HEIGHT.
14551
14552         * redisplay-output.c (redisplay_unmap_subwindows): update for
14553         subwindow instance cache as a weak list.
14554         (redisplay_unmap_subwindows_maybe): ditto.
14555         (redisplay_unmap_subwindows_except_us): ditto.
14556
14557         * glyphs.c (unmap_subwindow): error checking will check the domain
14558         so don't deal with it here. Don't use cachels anymore.
14559         (map_subwindow): ditto.
14560         (update_subwindow_cachel_data): remove old accessor names.
14561         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14562         (Fresize_subwindow): don't update cachel.
14563         (mark_subwindow_cachels):
14564         (update_subwindow_cachel_data):
14565         (add_subwindow_cachel):
14566         (get_subwindow_cachel_index):
14567         (update_subwindow_cachel):
14568         (reset_subwindow_cachels):
14569         (mark_subwindow_cachels_as_not_updated): deleted.
14570         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14571         subwindow instance to the frame cache.
14572         (find_matching_subwindow): update for subwindow instance cache as
14573         a weak list.
14574         (update_widget_instances): ditto.
14575         (image_instance_type_to_mask):inlined.
14576         (free_frame_subwindow_instance_cache): new function. finalize all
14577         subwindows that are instantiated.
14578
14579         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14580         of cachel information.
14581         (IMAGE_INSTANCE_DISPLAY_X):
14582         (IMAGE_INSTANCE_DISPLAY_Y):
14583         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14584         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14585         (XIMAGE_INSTANCE_DISPLAY_X):
14586         (XIMAGE_INSTANCE_DISPLAY_Y):
14587         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14588         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14589         remove subwindow_cachel structure and function references.
14590         (image_instance_type_to_mask): inline from glyphs.c
14591
14592         * redisplay.c (redisplay_frame): remove subwindow_cachel
14593         references.
14594
14595         * frame.h (struct frame): remove subwindow_cachels.
14596         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14597
14598         * frameslots.h: add subwindow_instance_cache.
14599
14600         * window.c (replace_window): check subwindow cache of replacement.
14601         (window_unmap_subwindows_cache_mapper):
14602         (window_unmap_subwindows): new functions. Unmap all subwindows
14603         cached on this window.
14604         (mark_window_as_deleted): unmap all subwindows.
14605
14606 2000-04-27  Andy Piper  <andy@xemacs.org>
14607
14608         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14609
14610         * glyphs-widget.c (widget_layout): return something.
14611         (layout_layout): return something. Fail if not initialized.
14612         (layout_query_geometry): ditto.
14613         (image_instantiator_native_layout): new function. Initialized the
14614         native layout type.
14615         (widget_instantiate): don't do layout stuff here.
14616
14617         * glyphs.c (instantiate_image_instantiator): reorded calling or
14618         instantiate and post_instantiate with layout in between.
14619         (image_instance_layout): be more selective about deciding whether
14620         the layout has been done or not.
14621
14622         * glyphs.h (struct image_instantiator_methods): return a value
14623         from layout_method.
14624
14625 2000-04-26  Andy Piper  <andy@xemacs.org>
14626
14627         * glyphs.c (allocate_image_instance): make initial width and
14628         height unspecified. Set initialized to 0.
14629
14630         * syscommctrl.h new file. Encapsulates commctrl.h.
14631
14632         * syswindows.h new file. Encapsulates windows.h.
14633
14634         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14635         * nt.c: ditto.
14636         * console-msw.h: ditto.
14637
14638         * redisplay-tty.c (tty_output_display_block): remove layout references.
14639
14640         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14641         window handle rather than just the frame.
14642
14643         * glyphs.c (mark_image_instance): remove layout references.
14644         (print_image_instance): ditto.
14645         (image_instance_equal): ditto.
14646         (image_instance_hash): ditto.
14647         (decode_image_instance_type): ditto.
14648         (encode_image_instance_type): ditto.
14649         (image_instantiate): ditto.
14650         (allocate_glyph): ditto.
14651         (Fimage_instance_height): ditto.
14652         (Fimage_instance_width): ditto.
14653         (update_subwindow): ditto.
14654
14655         * redisplay-x.c (x_output_display_block): recode for layouts as
14656         widgets.
14657
14658         * redisplay-output.c (redisplay_output_layout): recode for layouts
14659         as widgets.
14660         (compare_runes): remove layout references.
14661
14662         * redisplay-msw.c (mswindows_output_display_block): recode for
14663         layouts as widgets.
14664
14665         * glyphs-widget.c (image_instantiator_layout): remove
14666         layout_possible_dest_types.
14667         (layout_possible_dest_types): deleted.
14668
14669         * glyphs.h (image_instance_type): remove layout references.
14670         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14671         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14672         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14673
14674 2000-04-25  Andy Piper  <andy@xemacs.org>
14675
14676         * glyphs-widget.c (image_instantiator_buttons):
14677         (image_instantiator_edit_fields):
14678         (image_instantiator_combo_box):
14679         (image_instantiator_scrollbar):
14680         (image_instantiator_progress_guage):
14681         (image_instantiator_tree_view):
14682         (image_instantiator_tab_control):
14683         (image_instantiator_labels):
14684         (image_instantiator_layout): call default post_instantiate method.
14685         (widget_post_instantiate): new function. Simply lays out the
14686         widgets.
14687
14688         * glyphs.h (struct image_instantiator_methods): add
14689         post_instantiate method.
14690
14691         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14692         method calls.
14693
14694 2000-04-23  Andy Piper  <andy@xemacs.org>
14695
14696         * glyphs.h (struct image_instantiator_methods): add
14697         decode_domain_method.
14698         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14699         derived from the domain.
14700         (IMAGE_INSTANCE_FRAME): new accessor.
14701         (XIMAGE_INSTANCE_FRAME): ditto.
14702
14703         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14704         instead of _SUBWINDOW_FRAME.
14705         (finalize_image_instance): ditto.
14706         (Fimage_instance_foreground): ditto.
14707         (Fimage_instance_background): ditto.
14708         (image_instantiate): ditto.
14709         (update_subwindow_cachel): ditto.
14710         (update_subwindow): ditto.
14711         (unmap_subwindow): ditto.
14712         (map_subwindow): ditto
14713         (subwindow_instantiate): ditto.
14714         * glyphs-msw.c (mswindows_update_widget): ditto.
14715         (mswindows_progress_gauge_instantiate): ditto.
14716         (mswindows_tab_control_update): ditto.
14717         * glyphs-x.c (x_update_widget): ditto.
14718         (x_widget_instantiate): ditto.
14719         (x_tab_control_instantiate): ditto.
14720         (x_tab_control_update): ditto.
14721         * event-msw.c (mswindows_wnd_proc): ditto
14722
14723         * glyphs-widget.c (image_instantiator_layout): use
14724         subwindow_decode_domain.
14725         (image_instantiator_buttons): ditto.
14726         (image_instantiator_edit_fields): ditto.
14727         (image_instantiator_combo_box): ditto.
14728         (image_instantiator_scrollbar): ditto.
14729         (image_instantiator_progress_guage): ditto.
14730         (image_instantiator_tree_view): ditto.
14731         (image_instantiator_tab_control): ditto.
14732         (image_instantiator_labels): ditto.
14733         (image_instantiator_layout): ditto.
14734
14735         * glyphs.c: add instance error checking to many functions.
14736         (instantiate_image_instantiator): decode device from cache_domain.
14737         (image_instantiate): partially rewrite by using
14738         decode_image_instantiator_domain to determine what domain the
14739         instance needs to be cached in.
14740         (decode_image_instantiator_domain): new function. Determine what
14741         domain the image needs to be cached in.
14742         (check_window_subwindow_cache): new error checking function.
14743         (check_instance_cache_mapper): ditto.
14744         (check_image_instance_structure): ditto.
14745         (subwindow_decode_domain): new function. Encodes a window as a
14746         subwindow's cache domain.
14747         (image_instantiator_format_create): use it for text and
14748         subwindows.
14749
14750 2000-04-21  Andy Piper  <andy@xemacs.org>
14751
14752         * glyphs.c (image_instance_device): new function.
14753         (image_instance_frame): new function.
14754         (image_instance_window): new function.
14755         (image_instance_live_p): new function.
14756
14757         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14758         cache to nil.
14759
14760         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14761         (IMAGE_INSTANCE_DOMAIN): new accessor.
14762         (XIMAGE_INSTANCE_DOMAIN): ditto.
14763
14764         * glyphs-x.c (x_finalize_image_instance): device->domain.
14765
14766         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14767         (mswindows_finalize_image_instance): ditto.
14768
14769         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14770         (gif_instantiate): ditto.
14771         (png_instantiate): ditto.
14772         (tiff_instantiate): ditto.
14773
14774         * glyphs.c (instantiate_image_instantiator): use domain rather
14775         than device.
14776         (mark_image_instance): device -> domain.
14777         (print_image_instance): ditto.
14778         (finalize_image_instance): ditto.
14779         (image_instance_equal): ditto.
14780         (allocate_image_instance): ditto.
14781         (Fcolorize_image_instance): ditto.
14782         (query_string_geometry): ditto.
14783         (image_instantiate): ditto
14784         (query_string_font): ditto.
14785         (image_instantiate): ditto.
14786         (update_subwindow): ditto.
14787         (unmap_subwindow): ditto.
14788         (map_subwindow): ditto.
14789         (subwindow_instantiate): ditto.
14790
14791         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14792         (DOMAIN_FRAME): ditto.
14793         (DOMAIN_WINDOW): ditto.
14794         (DOMAIN_LIVE_P): ditto.
14795         (XDOMAIN_DEVICE): ditto.
14796         (XDOMAIN_FRAME): ditto.
14797         (XDOMAIN_WINDOW): ditto.
14798
14799         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14800         a valid specifier domain.
14801
14802 2000-04-19  Andy Piper  <andy@xemacs.org>
14803
14804         * glyphs-widget.c (syms_of_glyphs_widget): remove
14805         widget-callback-current-channel.
14806         (vars_of_glyphs_widget): ditto.
14807         * glyphs.h: ditto
14808
14809         * gui.c (get_gui_callback): revert to previous behaviour.
14810
14811 2000-04-18  Andy Piper  <andy@xemacs.org>
14812
14813         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14814         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14815         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14816
14817         * glyphs.c (image_instance_equal): add margin_width.
14818         (image_instance_hash): ditto.
14819
14820         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14821         (layout_query_geometry): ditto.
14822         (layout_layout): ditto.
14823         (syms_of_glyphs_widget): add margin-width.
14824         (image_instantiator_layout): allow margin-width.
14825
14826         * glyphs.c (update_widget_instances): make a normal function.
14827         (syms_of_glyphs): remove Qupdate_widget_instances.
14828         * glyphs.h: ditto.
14829
14830         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14831         so that we don't corrupt ideas about the last event or
14832         command. Remove widget-callback-current-channel fiddling.
14833         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14834
14835 2000-05-01  Martin Buchholz <martin@xemacs.org>
14836
14837         * XEmacs 21.2.33 is released.
14838
14839 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14840
14841         * make-src-depend: Allow dots in header file name.
14842
14843 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14844
14845         * mule-charset.h (struct charset_lookup): Add
14846         next_allocated_1_byte_leading_byte and
14847         next_allocated_2_byte_leading_byte.
14848         * mule-charset.c: Move above two variables so that those values
14849         will be dumped.
14850
14851 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14852
14853         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14854         when string length is zero.
14855         (find_charsets_in_emchar_string): Ditto.
14856
14857 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14858
14859         * lisp.h: extern Qdialog and Qmenubar.
14860
14861         * gui-x.c: added events.h.
14862                 also fixed typo which made the file uncompilable.
14863
14864         * general.c: Added Qmenubar and Qdialog
14865
14866 2000-04-28  Ben Wing  <ben@xemacs.org>
14867
14868         * frame-msw.c (mswindows_init_frame_1):
14869         * frame-msw.c (mswindows_mark_frame):
14870         * event-msw.c (mswindows_enqueue_dispatch_event):
14871         * console-msw.h:
14872         * console-msw.h (struct mswindows_frame):
14873         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14874         there are now three hash tables for callbacks.
14875         mswindows_enqueue_dispatch_event is no longer static.
14876
14877         * dialog-x.c (maybe_run_dbox_text_callback):
14878         * dialog-x.c (dbox_descriptor_to_widget_value):
14879         switch to new cons3 form for callbacks.
14880
14881         * glyphs-msw.c (mswindows_register_gui_item):
14882         * glyphs-msw.c (mswindows_widget_instantiate):
14883         * glyphs-msw.c (add_tree_item):
14884         * glyphs-msw.c (add_tab_item):
14885         new image instance parameter, so it can be passed to callback-ex.
14886         respect :callback-ex as well as :callback.
14887
14888         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14889         add :callback-ex.
14890
14891         * glyphs.c (print_image_instance):
14892         prettify, e.g. now prints widget type.
14893
14894         * gui-x.h:
14895         certain funs have new image instance parameter.
14896
14897         * gui.c:
14898         * gui.c (get_gui_callback):
14899         * gui.c (gui_item_add_keyval_pair):
14900         * gui.c (gui_item_init):
14901         * gui.c (gui_add_item_keywords_to_plist):
14902         * gui.c (mark_gui_item):
14903         * gui.c (gui_item_hash):
14904         * gui.c (gui_item_equal):
14905         * gui.c (copy_gui_item):
14906         * gui.c (syms_of_gui):
14907         recognize callback-ex in a number of places.
14908         also, fix the annoying "can't get out of yes-no dialog" bug.
14909
14910         * gui.h:
14911         * gui.h (struct Lisp_Gui_Item):
14912         recognize callback-ex in a number of places.
14913
14914         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14915         new parameter in button_item_to_widget_value.
14916
14917         * glyphs-x.c (x_update_widget):
14918         * glyphs-x.c (x_button_instantiate):
14919         * glyphs-x.c (x_button_update):
14920         * glyphs-x.c (x_progress_gauge_instantiate):
14921         * glyphs-x.c (x_edit_field_instantiate):
14922         * glyphs-x.c (x_combo_box_instantiate):
14923         * glyphs-x.c (x_tab_control_instantiate):
14924         * glyphs-x.c (x_label_instantiate):
14925         new image instance parameter in various places.
14926
14927         * event-Xt.c:
14928         * event-Xt.c (enqueue_Xt_dispatch_event):
14929         this fun gets exported.
14930
14931         * gui-msw.c:
14932         * gui-msw.c (mswindows_handle_gui_wm_command):
14933         handle both :callback and :callback-ex, and generate our own
14934         event because it's one of the callback-ex arguments.
14935
14936         * gui-x.c:
14937         * gui-x.c (popup_selection_callback):
14938         handle both :callback and :callback-ex, and generate our own
14939         event because it's one of the callback-ex arguments.
14940         * gui-x.c (button_item_to_widget_value):
14941         * gui-x.c (gui_items_to_widget_values_1):
14942         * gui-x.c (gui_item_children_to_widget_values):
14943         * gui-x.c (gui_items_to_widget_values):
14944         new image instance parameter in various places.
14945
14946         * fns.c (Freplace_list):
14947         fix small typo in doc string.
14948
14949         * lisp.h:
14950         declare enqueue_Xt_dispatch_event.
14951
14952 2000-04-28  Ben Wing  <ben@xemacs.org>
14953
14954         * buffer.c:
14955         * buffer.c (Frecord_buffer):
14956         * buffer.c (syms_of_buffer):
14957         delete record-buffer-hook.
14958
14959         * fns.c:
14960         * fns.c (Freplace_list):
14961         * fns.c (syms_of_fns):
14962         new primitive replace-list.
14963
14964         * frameslots.h:
14965         slot for old buffer-alist.
14966
14967         * lisp.h:
14968         exfun replace-list.
14969
14970         * redisplay.c:
14971         * redisplay.c (redisplay_frame):
14972         * redisplay.c (syms_of_redisplay):
14973         * redisplay.c (vars_of_redisplay):
14974         new hook buffer-list-changed-hook.
14975         call it.
14976
14977 2000-04-27  Ben Wing  <ben@xemacs.org>
14978
14979         * extents.h: extern in_modeline_generation.
14980
14981         * redisplay.c (generate_formatted_string_db): set
14982         in_modeline_generation.
14983
14984         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14985         flags if in modeline generation.  otherwise frame-modified-tick
14986         is ticked far too often.
14987         Declare in_modeline_generation.
14988
14989 2000-04-26  Ben Wing  <ben@xemacs.org>
14990
14991         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14992         option.
14993         (vars_of_emacs): add quick-build as an error-checking option.
14994         A bit kludgy, but there doesn't seem much point in creating
14995         a real var for this.
14996
14997         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14998
14999 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15000
15001         * redisplay.h (struct display_line): Add a new variable,
15002         line_continuation.
15003
15004         * redisplay.c (create_text_block): Set dl->line_continuation if
15005         the line continues.
15006         (create_string_text_block): Ditto.
15007         (regenerate_window_incrementally): Use line_continuation instead
15008         of searching continuation glyph.
15009         (add_margin_runes): Call add_glyph_rune.
15010         (add_glyph_rune): Handle margin glyph.
15011
15012 2000-04-20  Martin Buchholz  <martin@xemacs.org>
15013
15014         * filelock.c (fill_in_lock_file_name):
15015         ANSIfy.
15016         Check for IS_ANY_SEP instead of '/'.
15017         (lock_file_1):
15018         Avoid generating gratuitous garbage.  Call user_login_name() directly.
15019         Never check errno without first seeing that system call failed.
15020         (unlock_file): Add GCPRO.
15021         (Flock_buffer): Fix docstring.
15022         (Ffile_locked_p): Fix docstring.  Add GCPRO.
15023
15024 2000-04-19  Martin Buchholz  <martin@xemacs.org>
15025
15026         * sysdep.c (get_pty_max_bytes):
15027         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
15028         strings longer than 252 bytes.
15029
15030         * md5.c: Unconditionally include ANSI header <limits.h>
15031
15032         * glyphs-x.c (convert_EImage_to_XImage):
15033         * lisp-union.h (union Lisp_Object):
15034         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
15035
15036 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
15037
15038         * filelock.c (current_lock_owner): Remove unused variable o, p.
15039
15040 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
15041
15042         * callint.c: Remove multiply defined symbol Qlet
15043         (syms_of_callint): ditto.
15044
15045 2000-04-14  Andy Piper  <andy@xemacs.org>
15046
15047         * general.c (syms_of_general): add last-command, this-command, let
15048         and funcall.
15049
15050         * lisp.h: declare various symbols.
15051
15052         * glyphs.h: declare Qwidget_callback_current_channel;
15053
15054         * glyphs-widget.c (syms_of_glyphs_widget): add
15055         Qgui_callback_current_channel.
15056         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
15057
15058         * gui-msw.c (mswindows_handle_gui_wm_command): bind
15059         widget-callback-current-channel when invoking the interactive
15060         arg. Also bind last-command and next-command when invoking the
15061         widget updates.
15062         * gui-x.c (popup_selection_callback): ditto.
15063
15064         * gui.c (get_gui_callback): massage args so that we are always
15065         calling eval. This allows us to add our own variable bindings
15066         outside.
15067
15068         * glyphs-x.c (x_button_instantiate): use
15069         gui_items_to_widget_values since this is GC safe.
15070         (x_progress_gauge_instantiate): ditto.
15071         (x_edit_field_instantiate): ditto.
15072         (x_label_instantiate): ditto.
15073
15074         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
15075         (emacs_Xt_event_widget_focus_out): new function
15076         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
15077         focus.
15078         (emacs_Xt_event_add_widget_actions): new function. add focus
15079         functions as actions.
15080         (init_event_Xt_late): use it.
15081
15082 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
15083
15084         * event-stream.c (Fdispatch_event): Doc fix.
15085
15086 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
15087
15088         * postgresql.c: Remove all references to PQsetenv*.
15089
15090         * postgresql.h: Remove references to PGsetenvHandler object.
15091         * lrecord.h (lrecord_type): Ditto.
15092
15093 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15094
15095         * glyphs-msw.h (struct mswindows_image_instance_data): Added
15096         real_heigh and real_width members, and accessor macros for these.
15097
15098         * glyphs-msw.c (init_image_instance_geometry): New function.
15099         (init_image_instance_from_dibitmap): Use it.
15100         (mswindows_resource_instantiate): Use it.
15101         (init_image_instance_from_xbm_inline): Use it.
15102         (mswindows_initialize_image_instance_mask): Use real bitmap
15103         geometry.
15104         (mswindows_create_resized_bitmap): Ditto.
15105         (mswindows_create_resized_mask): Ditto.
15106
15107         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
15108         and bitmap to their surface size.
15109
15110 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
15111
15112         * process-unix.c (unix_send_process): Guard against process MIA
15113         after Faccept_process_output.
15114
15115 2000-04-11  Ben Wing  <ben@xemacs.org>
15116
15117         * eval.c (unbind_to_hairy): fix brokenness introduced by
15118         nanosecond speed improvements.
15119
15120 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
15121
15122         * sunplay.c (init_device): To play sounds correctly, the device
15123         apparently needs to be initialized at least once by XEmacs.  Make
15124         it so.
15125
15126 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15127
15128         * redisplay.c (add_margin_runes): Add text image glyph
15129           handling.
15130
15131 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
15132
15133         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
15134         gcc is newer than 2.5.
15135
15136 2000-04-06  Colin Rafferty  <colin@xemacs.org>
15137
15138         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
15139
15140         * fns.c (size_bit_vector):
15141         * alloc.c (size_vector):
15142         (make_vector_internal):
15143         (make_bit_vector_internal):
15144         (sweep_bit_vectors_1):
15145         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
15146
15147 2000-04-06  Andy Piper  <andy@xemacs.org>
15148
15149         * gmalloc.c (malloc): undo previous change.
15150         (malloc): ditto.
15151         (free): ditto.
15152         (realloc): ditto.
15153
15154 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
15155
15156         * line-number.c (buffer_line_number): Revert to former version.
15157
15158 2000-04-06  Andy Piper  <andy@xemacs.org>
15159
15160         * gmalloc.c (malloc): add error checking.
15161         (malloc): ditto.
15162         (free): ditto.
15163         (realloc): ditto.
15164
15165         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
15166         button_item_to_widget_value arg.
15167
15168         * glyphs-x.c (x_button_instantiate): add extra
15169         button_item_to_widget_value arg.
15170         (x_progress_gauge_instantiate): ditto.
15171         (x_edit_field_instantiate): ditto.
15172         (x_label_instantiate): ditto.
15173
15174         * gui-x.c (gui_items_to_widget_values_1): add extra
15175         button_item_to_widget_value arg.
15176         (button_item_to_widget_value): add extra menu_item_p arg.
15177
15178         * gui-x.h: change signature of button_item_to_widget_value.
15179
15180         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
15181         button_item_to_widget_value arg.
15182
15183 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
15184
15185         * buffer.h (struct buffer): auto_save_modified should be long.
15186
15187 2000-04-05  Andy Piper  <andy@xemacs.org>
15188
15189         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
15190         type.
15191         (button_query_geometry): give a little more room so that athena
15192         buttons fit.
15193
15194 2000-04-05  Andy Piper  <andy@xemacs.org>
15195
15196         * faces.c (complex_vars_of_faces): The widget face should inherit
15197         the font of the gui-element face.
15198
15199 2000-04-04  Andy Piper  <andy@xemacs.org>
15200
15201         * glyphs-x.c (x_button_update): new function. unconditionally
15202         update a button's state when the instance is dirty.
15203         (image_instantiator_format_create_glyphs_x): add x_button_update.
15204         (x_widget_instantiate): remove old resize cruft.
15205
15206 2000-04-02  Andy Piper  <andy@xemacs.org>
15207
15208         * frame.c (change_frame_size_1): The introduction of gutters means
15209         that we need to allow 0 as a potential frame dimension.
15210
15211 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15212
15213         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
15214         image glyph if allow_cursor.
15215         (add_hscroll_rune): Don't allow cursor to border glyph.
15216         (create_text_block): Ditto.
15217
15218         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
15219         text not in buffer.
15220         (redisplay_output_layout): Call ensure_face_cachel_complete for
15221         text image glyph.
15222
15223
15224 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15225
15226         * redisplay.c (add_glyph_rune): Adding text image as text runes.
15227
15228         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
15229         not in buffer
15230
15231         * redisplay-tty.c (tty_output_display_block): Delete the routine
15232         for text image glyph
15233         * redisplay-x.c (x_output_display_block): ditto
15234         * redisplay-msw.c (mswindows_output_display_block): ditto
15235
15236 2000-02-02  Mike Alexander  <mta@arbortext.com>
15237
15238         Note: Some of these were committed by accident as part of other
15239         patches.
15240
15241         * regex.c (regex_compile): Avoid compiler warnings.
15242
15243         * ntproc.c (sys_spawnve): Avoid compiler warnings.
15244
15245         * nt.h: Declare term_ntproc correctly.
15246
15247         * nt.c: Remove incorrect declaration of get_home_directory which
15248         is declared correctly in lisp.h.
15249
15250         * keymap.c (get_keyelt): Avoid compiler warnings.
15251         (raw_lookup_key_mapper): Avoid compiler warnings.
15252
15253         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
15254
15255         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
15256
15257         * filemode.c (mode_string): Avoid compiler warnings.
15258
15259         * file-coding.c (Fcoding_system_aliasee): Add return statement to
15260         avoid warning.
15261
15262         * events-mod.h: Undef some things that winuser.h defines differently.
15263
15264         * data.c (Faset): Avoid compiler warnings.
15265
15266         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
15267
15268 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15269
15270         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
15271         Fall through to simple beep on error.
15272         Replace "extern" by real header file.
15273
15274         * linuxplay.c: Use nativesound.h
15275         (play_sound_data): Return error code. Be less verbose on error.
15276
15277         * sunplay.c: Use nativesound.h
15278         (play_sound_data): Return error code. Be less verbose on error.
15279
15280         * ntplay.c: Use nativesound.h
15281         (play_sound_data): Return fake error code
15282
15283         * sgiplay.c: Use nativesound.h
15284         (play_sound_data): Return error code
15285
15286         * hpplay.c: Use nativesound.h, partially implement
15287         new error code. Break compilation until finished.
15288         (play_sound_data): error code.
15289
15290         * nativesound.h (play_sound_file):
15291           (play_sound_data): Prototype in new header.
15292
15293 2000-03-31  Andy Piper  <andy@xemacs.org>
15294
15295         * glyphs-widget.c: (button_query_geometry): new function. Adjust
15296         for toggle and radio buttons.
15297         (image_instantiator_buttons): use it.
15298
15299 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15300
15301         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
15302         (x_update_horizontal_scrollbar_callback): Return if no mirror was
15303         found. Scrollbar event probably belonged to some old config.
15304
15305 2000-03-31  Andy Piper  <andy@xemacs.org>
15306
15307         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
15308         than 1.
15309         (initialize_widget_image_instance): default layout to
15310         LAYOUT_HORIZONTAL rather than 0.
15311         (widget_instantiate): reverse the item list at the end rather than
15312         every iteration.
15313         (layout_layout): re-code for the border text at the front of the
15314         item list rather than at the end.
15315         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
15316         provided by the user.
15317         (widget_query_geometry): comment.
15318
15319 2000-03-30  Andy Piper  <andy@xemacs.org>
15320
15321         * glyphs-widget.c (image_instantiator_layout): allow standard
15322         widget keywords in layouts.
15323
15324         * gutter.c (output_gutter): cope with nil gutter contents.
15325
15326         * frame.c (Fset_frame_properties): add gutter docs.
15327
15328 2000-03-29  Andy Piper  <andy@xemacs.org>
15329
15330         * toolbar-msw.c (TBSTYLE_FLAT): add.
15331         (mswindows_output_toolbar): minor fiddling.
15332
15333 2000-03-29  Andy Piper  <andy@xemacs.org>
15334
15335         * gutter.c (output_gutter): force gutter size recalculation if
15336         what we are trying to display won't fit.
15337         (update_gutter_geometry): new function. A per-gutter version of
15338         update_frame_gutter_geometry.
15339         (update_frame_gutter_geometry): use it.
15340         (redraw_exposed_gutter): add extra debugging output.
15341
15342 2000-03-28  Mike Alexander  <mta@arbortext.com>
15343
15344         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
15345         (pdump_file_unmap): Implement it on Windows
15346         (pdump_file_get): Save alocated handles for pdump_file_unmap
15347
15348 2000-03-28  Andy Piper  <andy@xemacs.org>
15349
15350         * gui.c (get_gui_callback): treat Quit specially.
15351
15352 2000-03-27  Andy Piper  <andy@xemacs.org>
15353
15354         * glyphs.c (image_instantiate): be careful to check in the same
15355         way we assigned.
15356
15357 2000-03-27  Didier Verna  <didier@xemacs.org>
15358
15359         * config.h.in: define the proper SMART_INCLUDE macro.
15360         handle renaming of `foo_h_path' to `foo_h_file'.
15361
15362         * database.c: ditto.
15363
15364         * emacs.c: ditto.
15365
15366         * linuxplay.c: ditto.
15367
15368         * terminfo.c: ditto.
15369
15370         * tooltalk.h: ditto.
15371
15372 2000-03-27  Andy Piper  <andy@xemacs.org>
15373
15374         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15375         gets updated whenever the face might have changed.
15376
15377 2000-03-26  Mike Alexander  <mta@arbortext.com>
15378
15379         * dumper.c (pdump_resource_free): Fix the comment.
15380
15381 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15382
15383         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15384
15385 2000-03-22  Mike Alexander  <mta@arbortext.com>
15386
15387         * dumper.c: Include Windows headers on Windows
15388         (pdump_resource_free): Add a body to the function
15389         (pdump_load): exe_name -> exe_path and add some comments.
15390
15391 2000-03-25  Mike Alexander  <mta@arbortext.com>
15392
15393         * gui.c (copy_gui_item_tree): Return a value in all cases
15394
15395 2000-03-21  Didier Verna  <didier@xemacs.org>
15396
15397         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15398         lwlib/config.h.in.
15399         (SMART_INCLUDE): new macro.
15400         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15401         the proper location.
15402
15403         * postgresql.c: use it.
15404
15405         * inline.c: ditto.
15406
15407 2000-03-24  Andy Piper  <andy@xemacs.org>
15408
15409         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15410         do this.
15411
15412 2000-03-24  Andy Piper  <andy@xemacs.org>
15413
15414         * redisplay-output.c (compare_runes): use image_instance_changed
15415         to detect changes. Do not depend on glyphs_changed, only depend on
15416         dirtiness.
15417          (redisplay_output_layout): add debug messages.
15418         (compare_runes): ditto.
15419
15420         * glyphs.h: declare new functions.
15421         (struct Lisp_Image_Instance): remove percent and associated
15422         accessors.
15423
15424         * gui.h: declare new copying functions.
15425
15426         * gui.c (copy_gui_item_tree): new function.
15427         (copy_gui_item): new function.
15428         (gui_item_id_hash): revert to standard hash.
15429         (gui_item_hash): ditto.
15430         (gui_item_hash_internal): deleted.
15431         (mark_gui_item): mark value.
15432         (gui_item_add_keyval_pair): add value.
15433         (gui_item_init): ditto.
15434         (gui_add_item_keywords_to_plist): ditto.
15435         (gui_item_equal): ditto.
15436         (syms_of_gui): add Q_value.
15437
15438         * glyphs-x.c (x_progress_gauge_update): use pending items and
15439         value for setting the state.
15440         (x_update_widget): don't set items from pending here.
15441
15442         * glyphs-widget.c (update_widget): update items here.
15443         (progress_gauge_set_property): use items for storing value. Put
15444         new value in pending items.
15445
15446         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15447         items for new value. Convert percent -> value.
15448         (mswindows_tab_control_update): don't update items here.
15449
15450         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15451         (update_subwindow): ditto.
15452         (image_instance_changed): new function. Compare hash values and
15453         past and present widget items.
15454         (image_instantiate): We more careful about where we instantiate
15455         things.
15456         (image_instantiate): add error checking.
15457
15458         * gutter.c (syms_of_gutter): use -hook.
15459
15460 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15461
15462         * console-tty.c (Fset_console_tty_input_coding_system): Use
15463         Qkeyboard.
15464         (Fset_console_tty_output_coding_system): Use Qterminal.
15465         (tty_init_console): Use Qkeyboard and Qterminal.
15466
15467 2000-03-21  Ben Wing  <ben@xemacs.org>
15468
15469         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15470         From Mike Alexander <mta@arbortext.com>.
15471
15472 2000-03-21  Ben Wing  <ben@xemacs.org>
15473
15474         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15475         process brokenness.  Proper implementation to come.
15476         * callproc.c:
15477         Rename call-process-internal to old-call-process-internal.
15478         New impl. in process.el.
15479
15480 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15481
15482         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15483
15484 2000-03-20  Andy Piper  <andy@xemacs.org>
15485
15486         * glyphs.c (full_list_hash): make hashes of the same elements in
15487         different orders return different values.
15488
15489 2000-03-20  Martin Buchholz <martin@xemacs.org>
15490
15491         * XEmacs 21.2.32 is released.
15492
15493 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15494
15495         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15496         (DFC_MALLOC_USE_CONVERTED_DATA):
15497         Add aliasing-safe casts to allow use with char* or unsigned char*
15498         lvalues.
15499
15500         * eldap.c (Fldap_open):
15501         (Fldap_search_basic):
15502         (Fldap_add):
15503         (Fldap_modify):
15504         Make C++-compilable.
15505         Make sure GCPRO'ed variables are initialized.
15506         Use temp variables to avoid repeated calls to Flength.
15507
15508 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15509
15510         * sysfile.h:
15511         Make sure PATH_MAX is always defined.
15512         Include limits.h for PATH_MAX.
15513         Deprecate use of MAXPATHLEN.
15514
15515 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15516
15517         * emacs.c: Add reinit_vars_of_fileio.
15518         * symsinit.h: Add reinit_vars_of_fileio.
15519         * fileio.c (reinit_vars_of_fileio): New.
15520         * fileio.c (Fmake_temp_name):
15521         Initialize temp_name random number from microseconds to make
15522         collisions even less likely.  Initialize always at process startup
15523         time.  (make-temp-name) used to return the same file name twice in
15524         a row when PDUMP.
15525         Random stylistic fiddling.
15526         Comment fixes.
15527
15528 2000-03-20  Andy Piper  <andy@xemacs.org>
15529
15530         * glyphs.c (image_instantiate): allow text glyphs to be
15531         instantiated in the minibuffer window.
15532
15533 2000-03-19  Andy Piper  <andy@xemacs.org>
15534
15535         * glyphs.c (image_instance_hash): be careful about which items we
15536         hash on.
15537
15538         * glyphs-widget.c (tab_control_set_property): record into pending
15539         items rather than the actual items.
15540
15541         * glyphs-x.c (x_update_widget): use pending items to update with.
15542
15543         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15544         to update with.
15545
15546         * glyphs.c (mark_image_instance): mark pending items.
15547
15548         * window.c (Fset_window_configuration): record the buffer.
15549         (Fselect_window): totally revert previous change which breaks many
15550         things.
15551
15552 2000-03-18  Andy Piper  <andy@xemacs.org>
15553
15554         * glyphs-msw.c (mswindows_tab_control_update): force selected
15555         item.
15556
15557         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15558         window domain cache, otherwise we get inconsistencies at
15559         startup. There is something fishy at startup which can lead to the
15560         minibuffer being the selected window when the gutter content is
15561         instantiated.
15562
15563         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15564         gcpros.
15565         (parse_gui_item_tree_children): ditto.
15566         (parse_gui_item_tree_item): ditto.
15567
15568         * glyphs.c (Fupdate_widget_instances): return something.
15569
15570 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15571
15572         * window.c (Fselect_window): Undo 2000-03-17 change.
15573
15574 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15575
15576         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15577         against v7.0 libraries.  Insta-coredump city until the postgres
15578         folks fix it.
15579
15580 2000-03-17  Andy Piper  <andy@xemacs.org>
15581
15582         * faces.c (complex_vars_of_faces): don't give the widget face an
15583         inherited background pixmap.
15584
15585         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15586         selected item.
15587
15588         * event-stream.c (Fdispatch_non_command_events): return something.
15589
15590         * gutter.c (output_gutter): use widget face.
15591         (clear_gutter): ditto.
15592
15593         * NEWS: adjust again.
15594
15595         * window.c (Fselect_window): make sure this runs to completion to
15596         avoid oddities with Fset_window_configuration.
15597         (Fcurrent_window_configuration): in general do not save the
15598         minibuffer as the selected window.
15599
15600         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15601
15602 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15603
15604         * emacs.c (Frunning_temacs_p): Revert previous patch.
15605         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15606
15607 2000-03-16  Andy Piper  <andy@xemacs.org>
15608
15609         * glyphs-x.c (x_tab_control_update): if no widget values then
15610         return.
15611
15612         * NEWS: update for new features.
15613
15614         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15615         synthetic event to the native system.
15616         (reinit_vars_of_event_Xt): set force_event_pending to
15617         emacs_Xt_force_event_pending.
15618
15619         * events.h (struct event_stream): add force_event_pending.
15620
15621         * specifier.c (recompute_one_cached_specifier_in_window): add
15622         comment.
15623
15624         * redisplay.c (redisplay_frame): don't call
15625         update_frame_subwindows. Reset subwindow cachels when
15626         subwindows_changed, removing this was an optimization too far.
15627
15628         * redisplay-output.c (compare_runes): reorganize so that we catch
15629         glyph changes when we want them. Set optimize_output when this
15630         would help layouts.
15631         (redisplay_output_layout): remove frame_really_changed, use
15632         optimize_output instead.
15633
15634         * redisplay-msw.c (mswindows_output_display_block): reset
15635         optimize_output after outputting a glyph.
15636         * redisplay-x.c (x_output_display_block): ditto.
15637         * redisplay-tty.c (tty_output_display_block): ditto.
15638
15639         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15640         functions.
15641         (gutter_specs_changed): do specific gutter positions.
15642         (top_gutter_specs_changed): new function. Only update the
15643         specified gutter specs.
15644         (bottom_gutter_specs_changed): ditto.
15645         (left_gutter_specs_changed): ditto.
15646         (right_gutter_specs_changed): ditto.
15647
15648         * gui.c (gui_item_hash_internal): new function, does a real hash.
15649         (gui_item_id_hash): use it.
15650         (gui_item_hash): hash the eval'ed gui_item.
15651
15652         * gui-x.c (popup_selection_callback): send an eval event to call
15653         Fupdate_widget_instances.
15654
15655         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15656         to call Fupdate_widget_instances.
15657
15658         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15659         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15660
15661         * glyphs.c: (update_frame_subwindows): deleted.
15662         (Fupdate_widget_instances): new function for updating the dirty
15663         state of widgets that might have changed.
15664         (syms_of_glyphs): add Qupdate_widget_instances.
15665         (full_list_hash): hash a list completely.
15666         (image_instance_hash): use it for items and properties.
15667
15668         * frame-msw.c (mswindows_size_frame_internal): remove unused
15669         variable.
15670
15671         * faces.h (struct face_cachel): fix comment.
15672
15673         * event-stream.c (Fdispatch_non_command_events): new
15674         function. Process non-command events, forcing an event cycle
15675         beforehand.
15676         (syms_of_event_stream): declare.
15677         (event_stream_force_event_pending): new function. Force an event
15678         on the native event queue so that an event cycle will occur next
15679         time we check.
15680
15681         * event-msw.c:
15682         (struct ntpipe_shove_stream):
15683         (mswindows_enqueue_dispatch_event):
15684         (mswindows_dequeue_dispatch_event):
15685         (mswindows_cancel_dispatch_event):
15686         (mswindows_pump_outstanding_events):
15687         (mswindows_drain_windows_queue):
15688         (mswindows_handle_paint):
15689         (mswindows_wnd_proc):
15690         (mswindows_key_to_emacs_keysym):
15691         (get_process_input_waitable):
15692         (emacs_mswindows_delete_stream_pair): re-indent file.
15693         (mswindows_need_event): do not process further fds if the windows
15694         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15695         fixes the 100% cpu problem.
15696         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15697
15698 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15699
15700         * alloc.h: New.
15701         * dumper.h: New.
15702         * dumper.c: New.
15703
15704         * emacs.c: Moved dump file searching to dumper.c.
15705         (Frunning_temacs_p): Fixed.
15706
15707         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15708         last_lrecord_type_index_assigned.
15709
15710 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15711
15712         * symsinit.h: Added reinit parameter to init_console_stream
15713         declaration.
15714
15715         * lisp.h: Added file parameter to pdump_load declaration.
15716
15717         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15718         support.  Added dump file searching.
15719
15720         * config.h.in: Added EMACS_PROGNAME.
15721
15722         * console-stream.c (init_console_stream): Fix reinitialisation
15723         when running from temacs.
15724
15725         * alloc.c (pdump): Add id support.
15726         (pdump_load): Add file parameter and signature/id support.
15727
15728         * Makefile.in.in: Add full pdump support.
15729
15730 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15731
15732         * postgresql.c: Update documentation to reflect latest code
15733         status.
15734         (print_result): Show tuple counts in printed representation when
15735         appropriate.
15736         (Fpq_put_nbytes): MULE-ize.
15737         (Fpq_get_line_async): Ditto.
15738
15739 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15740
15741         * postgresql.c (Fpq_lo_import): Fix return value.
15742         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15743
15744 2000-03-13  Ben Wing  <ben@xemacs.org>
15745
15746         * alloc.c (pdump_load):
15747         Fix compile warning under mswin.
15748
15749 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15750
15751         * postgresql.c: Mule-ization, bug fixes.
15752         Use PG_CODING to encapsulate coding system name changes.
15753         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15754         (pg-coding-system): Create.
15755
15756         (Fpq_conn_defaults): Mule-ize.
15757         (Fpq_connectdb): Mule-ize & bug fix.
15758         (Fpq_connect_start): Mule-ize.
15759         (Fpq_set_client_encoding): Mule-ize.
15760         (Fpq_finish): Document `DEAD' connection status.
15761         (Fpq_clear): Ditto.
15762         (Fpq_pgconn): Mule-ize.
15763         (Fpq_exec): Mule-ize & bug fix.
15764         (Fpq_send_query): Ditto.
15765         (Fpq_get_result): Ditto.
15766         (Fpq_res_status): Mule-ize.
15767         (Fpq_result_error_message): Mule-ize.
15768         (Fpq_ntuples): fix comments.
15769         (Fpq_fname): Mule-ize.
15770         (Fpq_fnumber): Mule-ize.
15771         (Fpq_ftype): fix comments.
15772         (Fpq_get_value): Mule-ize.
15773         (Fpq_cmd_status): Ditto.
15774         (Fpq_cmd_tuples): Ditto.
15775         (Fpq_oid_value): Ditto.
15776         (Fpq_notifies): Ditto.
15777         (Fpq_lo_import): Ditto.
15778         (Fpq_lo_export): Ditto.
15779         (Fpq_get_line): Ditto.
15780         (Fpq_put_line): Mule-ize and bug fix.
15781         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15782
15783 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15784
15785         * postgresql.c (vars_of_postgresql): Mule-ize.
15786         (Fpq_conn_defaults): Ditto.
15787
15788 2000-03-12  Ben Wing  <ben@xemacs.org>
15789
15790         * alloc.c (Fmake_byte_code):
15791         * alloc.c (debug_string_purity_print):
15792         * alloc.c (pdump_backtrace):
15793         * alloc.c (pdump_get_indirect_count):
15794         * alloc.c (pdump_register_sub):
15795         * alloc.c (pdump_register_object):
15796         * alloc.c (pdump_register_struct):
15797         * alloc.c (pdump_dump_data):
15798         * alloc.c (pdump_reloc_one):
15799         Minor cleanups.
15800
15801         * console-msw.c:
15802         * console-msw.c (GetConsoleHwnd):
15803         * console-msw.c (msw_hide_console):
15804         * console-msw.c (msw_show_console):
15805         * console-msw.c (msw_ensure_console_buffered):
15806         * console-msw.c (msw_output_console_string):
15807         * console-msw.c (console_type_create_mswindows):
15808
15809         a) Added functions to manipulate the console window for use with
15810         shell support.
15811
15812         b) Added support for writing text to the console, which is now
15813         used under Windows when xemacs is not being run non-interactively,
15814         to write text that would otherwise be destined for stdout because
15815         under these circumstances, text written to stdout tends to
15816         disappear and not be seen.
15817
15818         * console-msw.h:
15819         * event-Xt.c:
15820         * event-Xt.c (x_event_to_emacs_event):
15821         * event-Xt.c (describe_event_window):
15822         * events-mod.h (XEMACS_MOD_CONTROL):
15823         * events.c:
15824         * events.c (Fmake_event):
15825         * events.c (character_to_event):
15826         * events.c (event_to_character):
15827         * events.c (format_event_object):
15828         * events.c (Fevent_modifiers):
15829         * events.h:
15830         * events.h (struct key_data):
15831         * events.h (struct button_data):
15832         * events.h (struct misc_user_data):
15833         * frame-x.c (Fcde_start_drag_internal):
15834         * frame-x.c (Foffix_start_drag_internal):
15835         * gpmevent.c (Freceive_gpm_event):
15836         * keymap.c:
15837         * keymap.c (bucky_sym_to_bucky_bit):
15838         * keymap.c (control_meta_superify):
15839         * keymap.c (make_key_description):
15840         * keymap.c (keymap_lookup_directly):
15841         * keymap.c (create_bucky_submap):
15842         * keymap.c (keymap_store):
15843         * keymap.c (define_key_check_and_coerce_keysym):
15844         * keymap.c (define_key_parser):
15845         * keymap.c (define_key_alternate_name):
15846         * keymap.c (Fdefine_key):
15847         * keymap.c (raw_lookup_key_mapper):
15848         * keymap.c (struct map_keymap_unsorted_closure):
15849         * keymap.c (map_keymap_unsorted_mapper):
15850         * keymap.c (map_keymap_sort_predicate):
15851         * keymap.c (map_keymap_sorted):
15852         * keymap.c (accessible_keymaps_mapper_1):
15853         * keymap.c (where_is_recursive_mapper):
15854         * keymap.c (describe_map_mapper):
15855         * keymap.c (describe_map_sort_predicate):
15856         * keymap.c (describe_map):
15857         * keymap.c (complex_vars_of_keymap):
15858         And a number of other files, the key modifier preprocessor
15859         constants that xemacs uses have names that conflict with constants
15860         defined under MS Windows for other purposes, so they were renamed
15861         to begin with the prefix XEMACS_. The variables that hold such
15862         modifiers were changed to consistently be of type int to fix
15863         various compile warnings.
15864
15865         * console.c (complex_vars_of_console):
15866         * device.c:
15867         * device-msw.c:
15868         * device-msw.c (mswindows_finish_init_device):
15869         * device-msw.c (msw_get_workspace_coords):
15870         * device-msw.c (mswindows_device_system_metrics):
15871         and various other files, added support for a new
15872         device property called offset-workspace which returns the position
15873         of the upper left corner of the workspace area and goes along with
15874         the existing size-workspace property.
15875
15876         * dialog-msw.c:
15877         * dialog-msw.c (push_bufbyte_string_as_unicode):
15878         * dialog-msw.c (mswindows_popup_dialog_box):
15879         Added support for XEmacs-style accelerator specifications in
15880         button text.  Note: I didn't add support for this under X Windows,
15881         and somebody needs to do this.
15882
15883         * dialog.c:
15884         * dialog.c (Fpopup_dialog_box):
15885         Documented the support for accelerators that was just mentioned.
15886
15887         editfns.c (get_home_directory): Changed behavior under Windows
15888         when HOME not defined; former behavior was irretrievably broken.
15889
15890         * emacs.c:
15891         * emacs.c (main_1):
15892         * emacs.c (main):
15893         * minibuf.c (clear_echo_area_internal):
15894         * minibuf.c (echo_area_append):
15895         * print.c:
15896         * print.c (std_handle_out_external):
15897         * print.c (std_handle_out_va):
15898         * print.c (fatal):
15899         * print.c (write_string_to_stdio_stream):
15900         * print.c (output_string):
15901         * print.c (debug_print):
15902         * print.c (debug_backtrace):
15903         * print.c (debug_short_backtrace):
15904         Cleaned up the code that prints text to stdout so that this can be
15905         changed to output into a console window instead under MS Windows,
15906         as described above.
15907
15908         * eval.c:
15909         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15910         * eval.c (internal_catch):
15911         * eval.c (unwind_to_catch):
15912         * eval.c (throw_or_bomb_out):
15913         * eval.c (condition_case_1):
15914         * eval.c (signal_1):
15915         * eval.c (check_error_state_sanity):
15916         * eval.c (call_with_suspended_errors_1):
15917         * eval.c (call_with_suspended_errors):
15918         * eval.c (reinit_vars_of_eval):
15919         Added code to catch throw loops and check for a pesky bug that may
15920         be gone now.
15921
15922         * event-msw.c:
15923         * event-msw.c (key_needs_default_processing_p):
15924         * event-msw.c (mswindows_wnd_proc):
15925         * event-msw.c (mswindows_modifier_state):
15926         * event-msw.c (emacs_mswindows_quit_p):
15927         * event-msw.c (vars_of_event_mswindows):
15928         a) Added support for using the alt key to select menu items as is
15929         standard under MS Windows.  This is controlled using the variable
15930         menu-accelerator-enabled, just like under X Windows.  There is an
15931         option on the options menu to turn this support on.  I really
15932         think that it should be on by default under Windows, but I'm not
15933         going to make this change yet.
15934
15935         b)  Added support for dynamic display size changes under Windows.
15936
15937         * event-stream.c:
15938         * event-stream.c (maybe_echo_keys):
15939         * event-stream.c (Fnext_event):
15940         * event-stream.c (command_builder_find_leaf):
15941         * event-stream.c (lookup_command_event):
15942         * event-stream.c (execute_command_event):
15943         * event-stream.c (pre_command_hook):
15944         * event-stream.c (post_command_hook):
15945         * event-stream.c (syms_of_event_stream):
15946         * event-stream.c (vars_of_event_stream):
15947         * event-stream.c (complex_vars_of_event_stream):
15948         * events.h (struct command_builder):
15949
15950         a) Tried to clean up a little bit the horribly written x-specific
15951         accelerator code that crept into this file.  I moved this code
15952         into menubar-x.c where it belongs. I also needed to move the
15953         command builder structure into the file events.h because it is
15954         accessed directly by this accelerator code.  What I didn't do, but
15955         which should be done at some point, is to properly abstract this
15956         code using device methods instead of the kludgy way that it
15957         currently hooks into the event code.
15958
15959         b) Added the lisp variables this-command-properties and
15960         last-command- properties, which should be used to synchronize two
15961         adjacent commands in preference to playing games with the variable
15962         this-command, which is typically what happens.
15963
15964         c) Added some slightly nasty code to hook into the lisp support
15965         for shifted- motion-key selection.  This is actually necessary for
15966         somewhat complicated reasons, which are described in
15967         simple.el. (NB: I think the proper thing would be to have the code
15968         that calls the pre and post command hooks also call out to generic
15969         lisp functions in simple.el, where all built-in stuff could be
15970         added.  I will think about this more.)
15971
15972         * event-unixoid.c (poll_fds_for_input):
15973         * lread.c (readchar):
15974         * redisplay-tty.c (tty_clear_frame):
15975         * redisplay-x.c (x_get_gc):
15976         * signal.c (interrupt_signal):
15977         And a whole bunch of other files: fixed up places that printed
15978         directly to stderr to instead call the function stderr_out so that
15979         the changes I made under Windows work correctly.
15980
15981         * filemode.c (mode_string):
15982         Warning fixes.
15983
15984         * frame-msw.c:
15985         * frame-msw.c (mswindows_size_frame_internal):
15986         Fixed the computation of frame size and position to keep the frame
15987         within the workspace area, rather than within the physical
15988         dimensions of the screen, so that the frame doesn't overlap window
15989         manager decorations, such as the start menu and toolbar, typically
15990         at the bottom of the screen.
15991
15992         * frame.c (vars_of_frame):
15993         Changed the default frame title format under MS Windows to consist
15994         of buffername-XEmacs, which is standard under MS Windows.  I think
15995         it might be a good idea to change this everywhere because I think
15996         it is superior to the current frame title format, but this is the
15997         kind of change that is likely to cause some people to get annoyed,
15998         so I'm not making it.
15999
16000         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
16001
16002         * gui-msw.c (mswindows_handle_gui_wm_command):
16003         Fixed compile warnings.
16004
16005         * gui-x.c:
16006         * gui-x.c (strdup_and_add_accel):
16007         * gui-x.c (button_item_to_widget_value):
16008         * gui-x.h:
16009         Added code to automatically put an accelerator onto the beginning
16010         of menu items that don't have one as is now the standard, and is
16011         described more later.  Also fixed things so that the menu item
16012         name can be an evaluated expression, again a new standard.
16013
16014         * gui.c:
16015         * gui.c (gui_item_add_keyval_pair):
16016         * gui.c (make_gui_item_from_keywords_internal):
16017         * gui.c (gui_add_item_keywords_to_plist):
16018         * gui.c (gui_item_accelerator):
16019         * gui.c (gui_name_accelerator):
16020         * gui.c (gui_item_included_p):
16021         * gui.c (gui_item_display_flush_left):
16022         * gui.c (gui_item_display_flush_right):
16023         * gui.c (parse_gui_item_tree_item):
16024         * gui.c (parse_gui_item_tree_children):
16025         * gui.c (parse_gui_item_tree_list):
16026         Mule-ized.  Cleanup.  GCPRO addition.
16027
16028         * line-number.c (buffer_line_number):
16029         * lisp.h:
16030         * lisp.h (EMACS_INT_MAX):
16031         Added the manifest constant EMACS_INT_MIN corresponding to the
16032         existing constant EMACS_INT_MAX.  This is partially to fix compile
16033         warnings under Windows, and partly for cleanliness.
16034
16035         * menubar-msw.c:
16036         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
16037         * menubar-msw.c (msw_translate_menu_or_dialog_item):
16038         * menubar-msw.c (displayable_menu_item):
16039         * menubar-msw.c (populate_menu_add_item):
16040         * menubar-msw.c (populate_or_checksum_helper):
16041         * menubar-msw.c (populate_menu):
16042         * menubar-msw.c (update_frame_menubar_maybe):
16043         * menubar-msw.c (prune_menubar):
16044         * menubar-msw.c (msw_char_is_accelerator):
16045         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
16046         * menubar-msw.c (mswindows_handle_wm_command):
16047         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
16048         * menubar-msw.c (mswindows_handle_wm_initmenu):
16049         * menubar-msw.c (mswindows_update_frame_menubars):
16050         * menubar-msw.c (mswindows_free_frame_menubars):
16051         * menubar-msw.c (mswindows_popup_menu):
16052         Fixed a bug in handling accelerators where an extra character
16053         would be displayed in the menu item.  Also generalized the
16054         function displayable_menu_item because it is now used by the
16055         dialog box code as well.  And finally, added code in the functions
16056         that create the menubar to extract a list of accelerators for the
16057         top level menubar, which is used in the event code to determine
16058         whether a particular alt-key combination should be used to invoke
16059         a menu item, or should be passed through to access the standard
16060         XEmacs keymap binding for this key combination.
16061
16062         Much needed GCPROing.
16063
16064         * menubar-x.c:
16065         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
16066         * menubar-x.c (menu_item_descriptor_to_widget_value):
16067         * menubar-x.c (restore_in_menu_callback):
16068         * menubar-x.c (x_popup_menu):
16069         * menubar-x.c (menu_move_up):
16070         * menubar-x.c (menu_move_down):
16071         * menubar-x.c (menu_move_left):
16072         * menubar-x.c (menu_move_right):
16073         * menubar-x.c (menu_select_item):
16074         * menubar-x.c (command_builder_operate_menu_accelerator):
16075         * menubar-x.c (menu_accelerator_junk_on_error):
16076         * menubar-x.c (command_builder_find_menu_accelerator):
16077         * menubar-x.c (Faccelerate_menu):
16078         * menubar.h:
16079         Moved a whole bunch of code here that was previously in
16080         event-stream.c as described above.  There is also code connected
16081         to the new standard of adding an accelerator to the beginning of
16082         menu items that don't have one as described above and below.
16083
16084         * menubar.c:
16085         * menubar.c (menu_parse_submenu_keywords):
16086         * menubar.c (Fmenu_find_real_submenu):
16087         * menubar.c (Fnormalize_menu_item_name):
16088         * menubar.c (syms_of_menubar):
16089         * menubar.c (vars_of_menubar):
16090         * menubar.c (complex_vars_of_menubar):
16091
16092         a) Cleaned up a bunch of documentation and improved it.
16093
16094         b) XEmacs now automatically adds an accelerator onto the beginning
16095         of any menu items that don't have one.  I did this because there
16096         will inevitably be some menu items on the main menubar that don't
16097         have accelerators on them because the package that adds that
16098         particular menu item hasn't yet been fixed up to have accelerators
16099         in them and it looked rather strange to have some items with and
16100         some items without accelerators, especially since even in items
16101         without accelerators, you can, at least under windows, still
16102         access the item through an accelerator corresponding to the first
16103         character in the item's name.  If people don't like this behavior,
16104         I can add a variable to turn it off optionally, but I'm not sure
16105         this is a good idea because we really do need to have accelerators
16106         on all of the menu items, and if a package doesn't like the
16107         accelerators being put on the first character, then it should put
16108         the accelerators where they belong.
16109
16110         c) I made a behavior change, which is that the descriptor that
16111         specifies the text of the menu item, which formerly was just a
16112         string, can now also be an evaluated expression.  This makes this
16113         descriptor parallel with all of the others, which could also be
16114         evaluated expressions.  This also obviates the need for the
16115         keyword :label, which was previously listed in the documentation
16116         as unimplemented, and which was for the same purpose.
16117
16118         d) GCPROing.
16119
16120         * ntproc.c:
16121         * ntproc.c (new_child):
16122         * ntproc.c (sys_spawnve):
16123         * ntproc.c (find_child_console):
16124         * ntproc.c (sys_kill):
16125         Fixed compile warnings.  By the way, this file should really go
16126         away entirely, and this will happen as soon as Kirill makes his
16127         final round of process cleanups, which affect the function
16128         call-process.
16129
16130         * process-nt.c:
16131         * process-nt.c (struct nt_process_data):
16132         * process-nt.c (find_process_from_pid):
16133         * process-nt.c (send_signal_the_nt_way):
16134         * process-nt.c (enable_child_signals):
16135         * process-nt.c (find_child_console):
16136         * process-nt.c (send_signal_the_95_way):
16137         * process-nt.c (nt_finalize_process_data):
16138         * process-nt.c (ensure_console_window_exists):
16139         * process-nt.c (nt_create_process):
16140         * process-nt.c (nt_kill_child_process):
16141         * process-nt.c (nt_kill_process_by_pid):
16142         * process-nt.c (nt_open_network_stream):
16143         * process-nt.c (vars_of_process_nt):
16144         Copied over code from Emacs 20.5 to correctly send signals to sub-
16145         processes under Windows 95.  Also added code to automatically
16146         create and hide console window when a sub-process is created under
16147         Windows 95, which obviates the need for the separate runemacs.exe
16148         executable, and finally implemented some variables that were
16149         implemented in Emacs 20.5, but previously not in XEmacs.  These
16150         include mswindows- start-process-share-console and
16151         mswindows-start-process-inherit-error-mode. (Both of these only
16152         apply to Windows 95.)
16153
16154         * regex.c (regex_compile): Fixed a compile warning.
16155
16156         * select-msw.c:
16157         * select-msw.c (mswindows_own_selection):
16158         * select-msw.c (mswindows_get_foreign_selection):
16159         * select-msw.c (mswindows_disown_selection):
16160         * select-msw.c (console_type_create_select_mswindows):
16161         * select-msw.c (syms_of_select_mswindows):
16162         Cleaned up the file and implemented the device method
16163         selection_exists_p, which had accidentally been left out.  Also
16164         removed four lisp functions that were remnants from before the
16165         time when the selection code was properly device abstracted.
16166         These functions are no longer needed because there are generic
16167         equivalents, and because they were added recently and don't exist
16168         in FSF Emacs, I don't think there's any problem with just deleting
16169         them.
16170
16171         * sysdep.c:
16172         * sysdep.c (sys_subshell):
16173         Fixed a compile warning, although in this case there's probably
16174         something wrong with this code, and it ought to be looked into
16175         more thoroughly by somebody who understands it.
16176
16177         * window.c:
16178         * window.c (Fwindow_text_area_height):
16179         * window.c (Fwindow_width):
16180         * window.c (Fwindow_full_width):
16181         * window.c (Fwindow_pixel_width):
16182         * window.c (debug_print_window):
16183         * window.c (syms_of_window):
16184         Added functions window-text-area-height and window-full-width,
16185         which are functions for returning various width and height
16186         characteristics of a window. (One of these functions is necessary
16187         for making the file dialog box work correctly, and the other one
16188         was added for completeness.)  Also added a table to the
16189         documentation for window-height which describes the entire scheme
16190         for accessing width and height characteristics of a window.
16191
16192 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16193
16194         * nt.c (fstat): Added a comment for another problem with
16195         non-encapsulated [f]stat(), reported by Adrian Aichner
16196         <aichner@ecf.teradyne.com>.
16197
16198 2000-03-11  Andy Piper  <andy@xemacs.org>
16199
16200         * window.c (make_dummy_parent): initialize subwindow instance
16201         cache.
16202         (Fset_window_configuration): zero extent_modiff.
16203
16204 2000-03-10  Andy Piper  <andy@xemacs.org>
16205
16206         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
16207         more changes can be triggered.
16208         (Fredisplay_frame): ditto.
16209         (Fredraw_device): ditto.
16210         (Fredisplay_device): ditto.
16211         (redisplay_frame): make non-static.
16212         (redisplay_frame): call update_frame_gutter_geometry outside of
16213         display proper.
16214
16215         * gutter.h: declare update_frame_gutter_geometry.
16216
16217         * redisplay.h: declare redisplay_frame.
16218
16219         * gutter.c (update_frame_gutter_geometry): move geometry changes
16220         in update_frame_gutters here. Geometry changes can only occur
16221         outside of redisplay.
16222         (update_frame_gutters): remove geometry change code.
16223         (Fredisplay_gutter_area): make sure that we are in display when we
16224         update and that we have flushed any size changes.
16225
16226 2000-03-11  Andy Piper  <andy@xemacs.org>
16227
16228         * alloc.c (pdump_dump_data): remove i & count shadows.
16229
16230 2000-02-27  Mike Alexander  <mta@arbortext.com>
16231
16232         * sysdep.h: Declare pdump_read_file
16233
16234         * sysdep.c (pdump_read_file): New function
16235
16236         * alloc.c (pdump_load): Call pdump_read_file to get the portable
16237         dump data
16238
16239 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
16240
16241         * lrecord.h: add `lrecord_type_pgsetenv'.
16242
16243 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
16244
16245         * symsinit.h: declare (vars|syms)_of* functions.
16246         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
16247
16248 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
16249
16250         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
16251
16252         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
16253         GCCs.
16254
16255         * emacs.c (main_1): Call postgres initialization code.
16256
16257         * postgresql.h: New file.  PostgreSQL RDBMS support.
16258         * postgresql.c: New file.
16259
16260 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
16261
16262         * redisplay-output.c (redisplay_output_display_block): Disable
16263         redundant code.
16264
16265 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16266
16267         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
16268         (Fcanna_henkan_next): Ditto.
16269         (Fcanna_bunsetu_henkou): Ditto.
16270         (Fcanna_henkan_kakutei): Ditto.
16271         (Fcanna_henkan_end): Ditto.
16272         (Fcanna_henkan_quit): Ditto.
16273         (Fcanna_henkan_next): Set retun value correctly.
16274         (c2mu): Use unsigned char instead of signed char.
16275
16276 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16277
16278         * emacs.c (main_1): Always call syms_of_gui.
16279         * inline.c: include gui.h
16280
16281 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16282
16283         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
16284         converted to Lisp_Object.
16285         (Qtop_bottom): New variable.
16286         (syms_of_redisplay): Initialize it.
16287         * redisplay.h (Vvisible_bell): Ditto.
16288         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
16289         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
16290         only flash top and bottom.
16291
16292 2000-03-08  Andy Piper  <andy@xemacs.org>
16293
16294         * buffer.c (Frename_buffer): record new buffer name the right way.
16295
16296 2000-03-08  Andy Piper  <andy@xemacs.org>
16297
16298         * glyphs.c (update_subwindow): increase hash depth so that widget
16299         items get picked up properly.
16300
16301         * redisplay-output.c (compare_runes): increase hash depth so that
16302         widget items get picked up properly.
16303
16304 2000-03-08  Andy Piper  <andy@xemacs.org>
16305
16306         * gutter.c (output_gutter): add some debug.
16307
16308         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
16309         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
16310         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
16311
16312         * redisplay-output.c (compare_runes): use display_hash to
16313         determine if glyphs really are not the same.
16314
16315         * glyphs.c (update_subwindow): check display_hash to see if
16316         anything really needs to be updated. If not then do
16317         nothing. Record the display_hash after updating.
16318         (image_instance_equal): compare the image_instance face also.
16319
16320 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
16321
16322         * redisplay.h: Fix comment style.
16323
16324 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16325
16326         * consle-msw.h (struct mswindows_frame):
16327         Added new member paint_pending to indicate whether a WM_PAINT
16328         magic event has been queued for this frame.
16329
16330         * event-msw.c (mswindows_drain_windows_queue):
16331         Don't queue a WM_PAINT magic event if one is already queued.
16332         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
16333
16334         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
16335
16336 2000-03-07  Didier Verna  <didier@xemacs.org>
16337
16338         * dired.c: #include `regex.h' after `sysfile.h'.
16339
16340 2000-03-06  Martin Buchholz  <martin@xemacs.org>
16341
16342         * sound.c (init_nas_sound): Fix compiler warning.
16343
16344         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
16345         (FREE_STRUCT_P):
16346         (MARK_STRUCT_AS_FREE):
16347         (MARK_STRUCT_AS_NOT_FREE):
16348         Make `gcc -fstrict-aliasing' work properly.
16349
16350 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16351
16352         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16353         (mswindows_delete_device): Call CoUnnitialize().
16354
16355         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16356
16357 2000-02-25    <CraigL@DyCon.com>
16358
16359         * process-nt.c: MinGW now has <shellapi.h>, but still needs
16360         <errno.h>.
16361
16362         * sysdep.c: This extern declaration for environ prevents MinGW
16363         from finding the variable in CRTDLL.DLL.
16364
16365         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16366         windows headers.
16367         (SHGFI_EXETYPE): ..
16368         (WM_MOUSEWHEEL): ..
16369         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16370         definitions.
16371         (MMRESULT): Removed, now defined in cygwin's windows headers.
16372         (TIMECAPS): ..
16373         (uid_t,gid_t,pid_t,ssize_t): ..
16374         (_timeb): Removed, MinGW defines both _timeb and timeb.
16375         (HAVE_H_ERRNO): Added.
16376         (HAVE_TZNAME): Added, configure is not detecting this.
16377
16378 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16379
16380         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16381         * syntax.c (syntax_match): Use it.
16382
16383         * cmds.c: Import auto-fill-chars from FSF Emacs.
16384         (Vauto_fill_chars): New variables.
16385         (internal_self_insert): Check Vauto_fill_chars.
16386         (vars_of_cmds):
16387         Declare auto-fill-chars as a Lisp variable and initialize it.
16388
16389 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16390
16391         * fileio.c (Fmake_symbolic_link):
16392         (Ffile_symlink_p):
16393         Run handlers even if local machine doesn't have symlinks.
16394
16395 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16396
16397         * event-msw.c (mswindows_drain_windows_queue):
16398         Don't generate paint magic events for non-XEmacs frames.
16399
16400 2000-03-05  Andy Piper  <andy@xemacs.org>
16401
16402         * redisplay.c (redisplay_frame): generate_displayable_area and
16403         friends assumes that we are not in GC, we therefore have to make
16404         sure that this doesn't happen.
16405
16406         * gutter.c (calculate_gutter_size): generate_displayable_area
16407         assumes that we are not in GC, we therefore have to make sure that
16408         this doesn't happen.
16409
16410 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16411
16412         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16413
16414 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16415
16416         * redisplay.c (regenerate_window): Make sure we set a sane value
16417         for end_pos even if we jump out of the loop.
16418         (regenerate_window): Answer Ben's question :-).
16419         (start_end_of_last_line): Add may_error argument.
16420         (start_of_last_line):
16421         (end_of_last_line): Pass may_error = 0.
16422         (end_of_last_line_may_error): New function.
16423         (pixel_to_glyph_translation): Use it, so we don't crash in
16424         event_to_glyph.
16425
16426 2000-03-04  Andy Piper  <andy@xemacs.org>
16427
16428         * window.h (struct window): add gutter_extent_modiff.
16429
16430         * window.c (allocate_window): zero out gutter_extent_modiff.
16431
16432         * redisplay.h: declare sync_display_line_structs.
16433
16434         * redisplay.c (add_glyph_rune): add a better comment.
16435
16436         * redisplay-output.c (sync_display_line_structs): made non-static.
16437         (compare_runes): remove unneccesary glyph cachel access.
16438
16439         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16440
16441         * gutter.c (output_gutter): don't output the gutter if extent
16442         changes only involve extents in buffers. use 4 sets of display
16443         lines.
16444         (gutter_extent_signal_changed_region_maybe): new function. Mark
16445         extents in gutters as changed.
16446         (update_frame_gutters): use 4 sets of display lines.
16447         (reset_gutter_display_lines): ditto.
16448         (free_frame_gutters): ditto.
16449         (redraw_exposed_gutter): force output of gutters.
16450
16451         * frame.h (struct frame): add 4 sets of gutter display lines.
16452
16453         * extents.c: (extent_changed_for_redisplay): signal changes to
16454         extents in strings in the gutter as well as extents in buffers.
16455
16456 2000-03-02  Andy Piper  <andy@xemacs.org>
16457
16458         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16459
16460         * frame.c (Fmake_frame): make sure the gutters get initialized
16461         after the frame is visible.
16462         (set_frame_selected_window): re-arrange compilation macros a
16463         little.
16464         (change_frame_size_1): mark gutters changed.
16465
16466         * device.c (Fset_device_class): mark gutters changed.
16467
16468 2000-03-01  Andy Piper  <andy@xemacs.org>
16469
16470         * window.c (window_top_frame_gutter_height): deleted.
16471         (window_bottom_frame_gutter_height): ditto.
16472         (window_left_frame_gutter_height): ditto.
16473         (window_right_frame_gutter_height): ditto.
16474         (window_top_gutter_height): don't use them.
16475         (window_bottom_gutter_height): ditto.
16476         (window_left_gutter_width): ditto.
16477         (window_right_gutter_width): ditto.
16478         (Fsplit_window): ditto.
16479         (Fwindow_pixel_edges): don't use border dimensions here.
16480
16481         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16482         (update_scrollbar_instance): ditto.
16483
16484         * redisplay.c (generate_modeline): don't take gutters into account.
16485         (generate_modeline): ditto.
16486         (redisplay_frame): small gutter display optimization.
16487
16488         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16489
16490         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16491         gutters into account.
16492
16493         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16494         for window position and type.
16495
16496         * gutter.c (get_gutter_coords): fix for frame gutters.
16497         (update_frame_gutters): update frame geometry if the gutters have
16498         changed.
16499         (init_frame_gutters): record current gutter geometries.
16500
16501         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16502         var.
16503         (mswindows_widget_instantiate): ditto.
16504
16505         * frame.h (struct frame): add current_gutter_bounds.
16506
16507         * frame.c (change_frame_size_1): position window and minibuffer
16508         appropriately taking into account the frame gutters.
16509
16510         * frame-x.c: (x_initialize_frame_size): take into account the
16511         frame gutters.
16512
16513 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16514
16515         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16516
16517 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16518
16519         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16520
16521 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16522
16523         * file-coding.c (reset_decoding_stream): Clear previous
16524         detection state when autodetect.
16525
16526 2000-02-29  Didier Verna  <didier@xemacs.org>
16527
16528         * extents.c (set_extent_glyph_1): don't require extents to be
16529         attached.
16530
16531 2000-02-27  Andy Piper  <andy@xemacs.org>
16532
16533         * gutter.c (Fset_default_gutter_position): don't default left and
16534         right gutter visibility to t.
16535         (Fset_default_gutter_position): run
16536         default-gutter-position-changed-hook.
16537         (syms_of_gutter): add default-gutter-position-changed-hook.
16538
16539 2000-02-26  Andy Piper  <andy@xemacs.org>
16540
16541         * specifier.c (Fmake_specifier): add gutter references.
16542
16543         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16544
16545         * lisp.h: declare Fvalid_plist_p.
16546
16547         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16548         as changed.
16549         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16550         well as its visibility so that it gets reconstructed.
16551         (construct_window_gutter_spec): new function. Construct a string
16552         to be displayed in the gutter from a plist of strings. Take care
16553         to only use elements that are declared as visible.
16554         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16555         WINDOW_GUTTER.
16556         (gutter_validate): allow plists of strings in the specifier.
16557         (gutter_specs_changed): construct the real_gutter from the gutter
16558         specs using construct_window_gutter_spec.
16559         (gutter_visible_validate): gutter-visible is a new specifier type.
16560         (Fgutter_visible_specifier_p): new function for the new specifier.
16561         (syms_of_gutter): declare gutter-visible and
16562         Fgutter_visible_specifier_p.
16563         (specifier_type_create_gutter): intitalize new gutter-visible
16564         specifier.
16565         (reinit_specifier_type_create_gutter): ditto.
16566         (specifier_vars_of_gutter): use new specifier type for gutter
16567         visibility.
16568         (init_frame_gutters): construct real_gutter correctly.
16569         (Fgutter_specifier_p): beef up documentation.
16570         (Fgutter_size_specifier_p): ditto.
16571
16572         * winslots.h: add real_gutter slots.
16573
16574 2000-02-25  Andy Piper  <andy@xemacs.org>
16575
16576         * device-msw.c: Be kind to older cygwin versions. From Raymond
16577         Toy <toy@rtp.ericsson.se>.
16578
16579         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16580         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16581
16582 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16583
16584         * elhash.c (MARK_OBJ): Practice macro hygiene.
16585
16586 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16587
16588         * miscplay.c: s/__inline__/inline/g;
16589         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16590         (get_device_compdc): INLINE ==> static inline
16591         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16592         find -name '*.h' | \
16593         xargs global-replace \
16594         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16595
16596 2000-02-25  Andy Piper  <andy@xemacs.org>
16597
16598         * window.c (window_top_frame_gutter_height): new function.
16599         (window_top_window_gutter_height): ditto.
16600         (window_top_gutter_height): use them.
16601         (window_bottom_frame_gutter_height): new function.
16602         (window_bottom_window_gutter_height): ditto.
16603         (window_bottom_gutter_height): use them.
16604         (window_left_window_gutter_width): new function.
16605         (window_left_frame_gutter_width): ditto.
16606         (window_left_gutter_width): use them.
16607         (window_right_window_gutter_width): new function.
16608         (window_right_frame_gutter_width): ditto.
16609         (window_right_gutter_width): use them.
16610         (window_pixel_height): new function. calulate window pixel height
16611         with frame gutter involvement.
16612         (Fsplit_window): calculate new sizes taking frame gutters into
16613         account.
16614         (window_char_height_to_pixel_height): don't include frame gutters.
16615         (window_char_height): use window_pixel_height.
16616         (window_pixheight): rename from window_pixel_height.
16617         (change_window_height): use it.
16618         (window_pixel_height_to_char_height): don't include frame gutters.
16619         (window_char_width_to_pixel_width): ditto.
16620
16621 2000-02-25  Andy Piper  <andy@xemacs.org>
16622
16623         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16624         if it is.
16625
16626 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16627
16628         * alloc.c (staticpro):
16629         (staticpro_nodump):
16630         (dumpstruct):
16631         (dumpopaque):
16632         (pdump_wire):
16633         (pdump_wire_list):
16634         (compact_string_chars):
16635         (pdump_dump_wired):
16636         Convert:  if (foo) abort();  ==>  assert (! foo);
16637
16638         * eldap.c (Fldap_search_basic):
16639         (Fldap_add):
16640         (Fldap_modify):
16641         (Fldap_delete):
16642         Fix compiler warnings, and possible crashes if (random) return
16643         value were to be used.
16644
16645 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16646
16647         * device-msw.c: Workaround ResetDC failure.
16648
16649         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16650         applying a devmode.
16651
16652         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16653         (mswindows_text_width): Do not start printer page.
16654
16655         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16656
16657         * glyphs-msw.c: Added image methods to msprinter console and
16658         msprinter-specific image instantiation.
16659
16660 2000-02-20  Mike Alexander  <mta@arbortext.com>
16661
16662         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16663         to avoid crashes when selection-sets-clipboard is on
16664         (mswindows_own_selection): ditto
16665
16666 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16667
16668         * glyphs-msw.c:
16669         * redisplay-msw.c (get_frame_dc):
16670         (get_frame_compdc):
16671         * console-msw.h:
16672         * device-msw.c (mswindows_init_device):
16673         (mswindows_delete_device):
16674         (msprinter_init_device):
16675         (msprinter_delete_device):
16676         * frame-msw.c (mswindows_init_frame_1):
16677         (mswindows_delete_frame):
16678         (msprinter_init_frame_3):
16679         (msprinter_delete_frame): Move compatible DC to device object from
16680         frame object, for both mswindows and msprinter. Only one at a time
16681         is needed, it is a real waste to have one per frame!
16682
16683 2000-02-23  Andy Piper  <andy@xemacs.org>
16684
16685         * glyphs.c: add dynamic width and height elements.
16686         (image_instance_equal): ditto.
16687
16688         * glyphs-widget.c (widget_query_geometry): calculate width and
16689         height dynamically if required.
16690         (initialize_widget_image_instance): initialize dynamic dimensions.
16691         (widget_instantiate): pick-up dynamic dimensions.
16692
16693         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16694         dynamic determination. Add appropriate macros.
16695
16696         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16697         dimensions safe.
16698         (WINDOW_GUTTER_SIZE): ditto.
16699         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16700
16701         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16702         inline.
16703         (get_frame_dc): ditto.
16704
16705         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16706         here.
16707
16708 2000-02-23  Martin Buchholz <martin@xemacs.org>
16709
16710         * XEmacs 21.2.31 is released.
16711
16712 2000-02-22  Ben Wing <ben@xemacs.org>
16713
16714         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16715
16716 2000-02-22  Andy Piper  <andy@xemacs.org>
16717
16718         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16719
16720 2000-02-21  Mike Sperber <mike@xemacs.org>
16721
16722         * .dbxrc:
16723         * .gdbinit:
16724         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16725         variables.
16726
16727 2000-02-21  Mike Sperber <mike@xemacs.org>
16728
16729         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16730
16731 2000-02-21  Martin Buchholz <martin@xemacs.org>
16732
16733         * XEmacs 21.2.30 is released.
16734
16735 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16736
16737         Performance hacking.
16738         * *.c (syms_of_*):
16739         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16740         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16741         * emacs.c (main_1):
16742         * lisp.h (DEFUN):
16743         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16744         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16745         * symeval.h (DEFVAR_SYMVAL_FWD):
16746         * symbols.c (guts_of_unbound_marker):
16747         Make all c_readonly objects also lisp_readonly and marked for life.
16748         * lrecord.h (struct lrecord_implementation):
16749         Document flags better.
16750         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16751         * lrecord.h (DECLARE_LRECORD):
16752         * lrecord.h (XSETRECORD):
16753         * lrecord.h (RECORDP):
16754         * lrecord.h (RECORD_TYPEP):
16755         * lrecord.h (RECORD_MARKER): New.
16756         * lrecord.h (error_check_*):
16757         * lrecord.h (CONCHECK_NONRECORD):
16758         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16759         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16760         * lrecord.h (set_lheader_implementation):
16761         * lrecord.h (enum lrecord_type): New.
16762         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16763         * alloc.c (disksave_object_finalization_1):
16764         * alloc.c (mark_object):
16765         * alloc.c (lrecord_type_index):
16766         * alloc.c (tick_lcrecord_stats):
16767         * alloc.c (Fgarbage_collect):
16768         * alloc.c (init_alloc_once_early):
16769         * alloc.c (pdump_load):
16770         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16771         * alloc.c (lrecord_type_index): Delete.
16772         Make lisp object type indexes be constant.
16773           Makes (byte-compile) 5% faster.
16774         Put all marker functions into their own array.
16775           Makes (garbage-collect) 5% faster.
16776         Optimize SYMBOL_VALUE_MAGIC_P.
16777           Makes (byte-compile) 2-3% faster.
16778         * config.h.in (gc_checking_assert): New.
16779         * alloc.c: Use gc_checking_assert().
16780         * .dbxrc: Make compatible with new object type implementation.
16781         * .gdbinit: Make compatible with new object type implementation.
16782         * alloc.c: Delete all symbols defined only for debugging, such as
16783         Lisp_Type_Vector and lrecord_charset.
16784
16785 2000-02-21  Andy Piper  <andy@xemacs.org>
16786
16787         * gui-msw.c (Fmswindows_shell_execute): fix file location
16788         problems.
16789
16790         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16791         unshowing so that set_window_buffer doesn't undo
16792         kill_buffer_hook's hard work.
16793
16794         * glyphs-widget.c (tab_control_query_geometry): don't count the
16795         first item when calculating geometry.
16796
16797         * glyphs.c (map_subwindow): remove redundant code.
16798         (update_frame_subwindows): be more circumspect about when to
16799         update subwindows.
16800
16801         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16802         when items haven't changed. Update faces if faces have changed as
16803         well as just the widget face.
16804         (x_tab_control_update): Update faces if faces have changed as well
16805         as just the widget face.
16806
16807 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16808
16809         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16810         registration.
16811         (build_syscolor_string): Use mswindows_color_to_string to try to
16812         get a named color.
16813         (mswindows_device_system_metrics): Reverse the foreground and
16814         background colors so that they match the documentation.
16815
16816         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16817         they match the default Windows palette.
16818         (mswindows_color_to_string): New function.
16819
16820 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16821
16822         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16823
16824 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16825
16826         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16827         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16828
16829         * symbols.c (init_symbols_once_early): Removed obsolete
16830         DATA_SEG_BITS related kludge.
16831         (defvar_magic): Ditto.
16832
16833         * malloc.c: Removed obsolete DATA_SEG_BITS
16834         * ralloc.c: Ditto.
16835         * mem-limits.h: Ditto.
16836
16837         * Makefile.in.in: Removed obsolete HAVE_SHM
16838         * emacs.c: Ditto.
16839
16840 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16841
16842         *  device-msw.c (mswindows_delete_device): Free DDE string
16843         handles.
16844
16845 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16846
16847         * keymap.c (get_keyelt):
16848         * unexnt.c (unexec):
16849         * vm-limit.c (memory_warnings):
16850         * ntheap.c (recreate_heap):
16851         * ntheap.h (UNINIT_PTR):
16852         * select-msw.c (Fmswindows_get_clipboard):
16853         (Fmswindows_set_clipboard):
16854         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16855         * objects-msw.c:
16856         * menubar-msw.c (displayable_menu_item):
16857         * glyphs-msw.c:
16858         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16859         * sysdep.c (sys_subshell):
16860         * process-nt.c (nt_create_process):
16861         * nt.c (normalize_filename):
16862         (dostounix_filename):
16863         (unixtodos_filename):
16864         * ntproc.c (win32_executable_type):
16865         * ntplay.c (play_sound_data_1):
16866         (play_sound_file):
16867         * editfns.c (get_home_directory):
16868         * event-msw.c (struct winsock_stream):
16869         (mswindows_dde_callback):
16870         * device-msw.c (msprinter_init_device):
16871         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16872
16873         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16874         mswindows_clear_toolbar were swapped!
16875
16876         * objects-msw.c:(colormap_t):
16877         (fontmap_t):
16878         * emacs.c (struct standard_args): Fixed const jumble.
16879
16880         * glyphs-widget.c (update_widget): Fixed comparison notation.
16881
16882         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16883
16884         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16885         __declspec(noreturn) syntax.
16886
16887 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16888
16889         * eldap.c (Fldap_open):
16890         (Fldap_search_basic):
16891         (Fldap_add):
16892         (Fldap_modify):
16893         Use new coding system conversion macros.
16894
16895 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16896
16897         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16898
16899 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16900
16901         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16902         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16903
16904         * eldap.c (Qadd, Qreplace): New constant symbols
16905         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16906         interruptions by XEmacs signals
16907         Remove unnecessary calls to slow_down_interrupts and
16908         speed_up_interrupts
16909         (Fldap_search_basic): Renamed from Fldap_search_internal
16910         Added new optional parameter VERBOSE that triggers the
16911         display of progress messages
16912         Remove unnecessary calls to slow_down_interrupts and
16913         speed_up_interrupts
16914         LDAP result code analysis rewritten
16915         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16916         (syms_of_eldap): Define the new symbols and functions
16917
16918
16919 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16920
16921         * realpath.c: Determine PATH_MAX maximally portably.
16922
16923         * insdel.c (bytecount_to_charcount): Optimize.
16924         The function used to be optimized for entirely ASCII sequences.
16925         Now it is optimized for successive characters from the same
16926         charset.  This also wins big for _mostly_ ASCII sequences.
16927
16928         * fileio.c (Ffile_truename): convert return from realpath() using
16929         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16930         - Rewrite GCPROing slightly.
16931
16932         * sysdep.c (sys_open): Do filename conversion, like all other
16933         sys_* functions.  Fixes bug:
16934         (let ((file-name-coding-system 'iso-8859-2))
16935            (write-region x y latin2-name))
16936         ==> writes filename using internal encoding.
16937
16938 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16939
16940         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16941         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16942         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16943         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16944         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16945         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16946         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16947         (CONST_IF_NOT_DEBUG): Delete.
16948         * alloc.c (this_one_is_unmarkable): Delete.
16949         (mark_object): Don't check for this_one_is_unmarkable. Use the
16950         c_readonly flag instead.
16951         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16952
16953 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16954
16955         * event-msw.c (mswindows_drain_windows_queue):
16956         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16957         away redundant repaint events.
16958
16959 2000-02-17  Andy Piper  <andy@xemacs.org>
16960
16961         * redisplay.h: declare mark_redisplay_structs.
16962
16963         * redisplay.c (redisplay_window):
16964         (redisplay_frame): don't check subwindows_state_changed.
16965         (mark_redisplay): mark gutters here.
16966
16967         * glyphs.c: (instantiate_image_instantiator): always layout if we
16968         haven't done so already.
16969         (allocate_image_instance): don't mark as dirty.
16970         (update_subwindow): bind inhibit_quit.
16971
16972         * gutter.c (mark_gutters): new function.
16973
16974         * glyphs-x.c (x_update_widget): Always resize to get round a
16975         widget bug.
16976
16977         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16978         breaking absolutely everything.
16979
16980         * gutter.h: declare mark_gutters.
16981
16982 2000-02-16  Martin Buchholz <martin@xemacs.org>
16983
16984         * XEmacs 21.2.29 is released.
16985
16986 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16987
16988         * fns.c (size_bit_vector): Fix computation of the size.
16989
16990 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16991
16992         * *.[ch]: Change CONST to const globally.
16993         find -name '*.[ch]' | \
16994         xargs global-replace \
16995         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16996         - Remove vestigial references to CONST_IS_LOSING
16997
16998 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16999
17000         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
17001         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
17002         events instead of dispatching them directly.
17003         (mswindows_handle_paint): New function to do repainting.
17004         (mswindows_wnd_proc):
17005         (emacs_mswindows_handle_magic_event): Call above function.
17006
17007 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
17008
17009         * objects-msw.c (mswindows_create_font_variant): Return the new
17010         font handle.
17011         (initialize_font_instance): Get font metrics from the underlined
17012         variant of the font to cope with the case where the underlined
17013         font has a bigger descent.
17014
17015 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17016
17017         * gui.c (gui_item_accelerator): Return the first underlined
17018         character in item name.
17019
17020 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17021
17022         * lisp.h: Added Qprinter.
17023
17024         * general.c (syms_of_general): Initialized it.
17025
17026         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
17027         (get_frame_dc):
17028         (get_frame_compdc): Made inline.
17029
17030         * console.h (struct console_methods): Added eject_page method.
17031
17032         * frame.h: Added FRAME_DISPLAY_P and friends.
17033         Aligned backslahes in many macros in more readable fashion.
17034         Added page_number to struct frame, and an accessor macro
17035         for it.
17036
17037         * defice.h: Added DEVICE_DISPLAY_P and friends.
17038
17039         * device.c (Fdevice_printer_p): Used these.
17040
17041         * frame.c (allocate_frame_core): Initialize page number.
17042         (Fprint_job_page_number):
17043         (Fprint_job_eject_page): Implemented.
17044
17045         * frame-msw.c (msprinter_eject_page): Added method.
17046         (msprinter_start_page): Added.
17047
17048         * window.c (Fwindow_truncated_p): Fixed docstring.
17049         (Fwindow_last_line_visible_height): Implemented.
17050
17051 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
17052
17053         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
17054
17055 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17056
17057         * syntax.c (scan_words): Always advance at least one character.
17058
17059 2000-02-13  Andy Piper  <andy@xemacs.org>
17060
17061         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
17062         to make sure the glyph is in the cachels.
17063
17064         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
17065         global image instance flag.
17066         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
17067         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
17068
17069         * glyphs.c (allocate_image_instance): set dirty bits correctly.
17070         (Fset_image_instance_property): mark layout as changed.
17071         (invalidate_glyph_geometry_maybe): mark layout as changed.
17072         (glyph_width): use new NEEDS_LAYOUT macro.
17073         (glyph_ascent): ditto.
17074         (glyph_descent): ditto.
17075         (glyph_height): ditto.
17076         (image_instance_layout): mark layout as clean after laying out.
17077         (update_subwindow): don't mark layout as clean here.
17078
17079         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
17080         should no longer be needed.
17081
17082         * glyphs-x.c (x_update_widget): sanitize asserts.
17083         (x_finalize_image_instance): sanitize assignment to widgets.
17084
17085         * glyphs-widget.c (widget_instantiate): don't need to clear the
17086         layout flag here.
17087
17088 2000-02-13  Martin Buchholz  <martin@xemacs.org>
17089
17090         * sysdep.c (getcwd): Use standard prototype.
17091         * sysdep.h (getcwd): Use standard prototype.
17092
17093         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
17094         (sequence, start, end).
17095         Remove redundant type checking.
17096         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
17097         view of `caller-protects') to avoid a crash where the real fix was
17098         found elsewhere.
17099
17100 2000-02-12  Martin Buchholz  <martin@xemacs.org>
17101
17102         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
17103
17104         * s/sol2.h: Remove feature macro initialization.
17105
17106         * alloc.c (alloc_lcrecord): Add more type checking assertions.
17107         (vector_hash): New.  Code from internal_hash.
17108         * lrecord.h:
17109         Fix up allocation subsystem comments.
17110
17111         * config.h.in: Add __EXTENSIONS__ for Solaris.
17112
17113         * systime.h (EMACS_GETTIMEOFDAY): New.
17114         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
17115         Remove Solaris-specific code.
17116         Use void* for the (ignored) second arg for gettimeofday().
17117
17118         * elhash.c (hash_table_hash): Implement it, finally.
17119         * elhash.c:  Use hashcode_t.
17120
17121         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
17122         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
17123
17124         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
17125         * fns.c (size_bit_vector):
17126         * alloc.c (size_vector):
17127         (make_vector_internal):
17128         (make_bit_vector_internal):
17129         (sweep_bit_vectors_1):
17130         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
17131
17132 2000-02-10  Martin Buchholz  <martin@xemacs.org>
17133
17134         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
17135         Include strings.h to avoid warnings for bzero and strcasecmp.
17136
17137 2000-02-10  Olivier Galibert  <galibert@pobox.com>
17138
17139         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
17140         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
17141
17142         * fns.c (size_bit_vector): New.  Declare bit vectors as a
17143         sequence.
17144
17145 2000-02-10  Olivier Galibert  <galibert@pobox.com>
17146
17147         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
17148         use a value field instead.
17149         (symbol_value_forward_forward): Use value field.
17150         (DEFVAR_SYMVAL_FWD): Use value field.
17151         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
17152         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
17153         (DEFVAR_CONST_INT): Ditto.
17154         (DEFVAR_BOOL): Ditto.
17155         (DEFVAR_CONST_BOOL): Ditto.
17156         (DEFVAR_INT_MAGIC): Ditto.
17157         (DEFVAR_BOOL_MAGIC): Ditto.
17158
17159         * symbols.c (guts_of_unbound_marker): Use value field.
17160         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
17161         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
17162
17163         * lisp.h: Declare dumpopaque and noninteractive1.
17164
17165         * alloc.c (dumpopaque): Added.
17166         (pdump_dump_opaquevec): Added.
17167         (pdump): Call pdump_dump_opaquevec to dump opaque data.
17168         (pdump_load): Reload opaque data.  Sync noninteractive1 with
17169         noninteractive.
17170
17171 2000-02-10  Andy Piper  <andy@xemacs.org>
17172
17173         * glyphs.c (image_instance_layout): if the size changes, mark it
17174         as such.
17175
17176         * redisplay-output.c (redisplay_output_layout): Update the
17177         subwindow here.
17178         (redisplay_output_subwindow): ditto.
17179
17180         * glyphs.c (update_subwindow): make sure we reset flags for
17181         layouts as well as everything else.
17182
17183         * glyphs-widget.c (layout_layout): don't need to set the instances
17184         dimensions here.
17185
17186 2000-02-09  Martin Buchholz  <martin@xemacs.org>
17187
17188         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
17189         not HAVE_DLOPEN, which is a lower-level thing.
17190
17191         * .cvsignore: Ignore gmon.out
17192
17193 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
17194
17195         * .cvsignore: Ignore portable dumper xemacs.dmp file
17196
17197 2000-02-09  Andy Piper  <andy@xemacs.org>
17198
17199         * redisplay-output.c (redisplay_output_layout): be more clever
17200         about when we output based on the changed flags.
17201
17202         * glyphs.h (struct image_instantiator_methods): add update_method.
17203         (struct Lisp_Image_Instance): add changed flags. Declare new
17204         macros for manipulating them.
17205
17206         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
17207         (image_instance_parent_glyph): find an image_instance's parent
17208         glyph or image_instance.
17209         (image_instance_layout): mark the size as changed.
17210         (set_image_instance_dirty_p): new function. mark an image
17211         instance, plus all of its parents, as dirty.
17212         (Fset_image_instance_property): use it.
17213         (Fglyph_animated_timeout_handler): use it.
17214         (update_subwindow): call update_widget and device methods for
17215         update_subwindow. Mark all changed flags as clean.
17216         (Fresize_subwindow): mark size as changed.
17217
17218         * glyphs-x.c (x_finalize_image_instance): try and detect gc
17219         failures.
17220         (x_update_subwindow): only resize subwindows here.
17221         (x_update_widget): new function. Update all changed properties of
17222         a widget.
17223         (x_resize_subwindow): deleted.
17224         (x_widget_set_property): deleted.
17225         (x_progress_gauge_set_property): deleted.
17226         (x_progress_gauge_update): new function. Implement recorded
17227         changes.
17228         (x_tab_control_update): ditto.
17229         (x_tab_control_set_property): deleted.
17230         (console_type_create_glyphs_x): declare new functions.
17231         (image_instantiator_format_create_glyphs_x): ditto.
17232
17233         * glyphs-widget.c (widget_set_property): mark text changed.
17234         (update_widget): new function. Update properties of a widget.
17235         (widget_instantiate): for layouts make sure we set their
17236         children's parent correctly.
17237         (tab_control_set_property): new function. Record changes that will
17238         take place under redisplay's control.
17239         (progress_gauge_set_property): ditto.
17240         (image_instantiator_progress_guage): declare new functions.
17241         (image_instantiator_tab_control): ditto.
17242
17243         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
17244         now.
17245         (mswindows_update_widget): new function. Update all properties on
17246         a widget that have changed.
17247         (mswindows_button_update): new function. Update a button's set
17248         state.
17249         (mswindows_tab_control_update): new function. Update the items in
17250         a tab.
17251         (mswindows_tab_control_set_property): deleted.
17252         (mswindows_progress_gauge_update): new function. Update the
17253         progress gauge's progress.
17254         (mswindows_widget_set_property): deleted. This is all done
17255         asynchronously now.
17256         (mswindows_progress_gauge_set_property): ditto.
17257         (console_type_create_glyphs_mswindows): declare new methods.
17258         (image_instantiator_format_create_glyphs_mswindows): ditto.
17259
17260         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
17261         (msprinter_set_frame_properties): ditto.
17262
17263         * console.h (struct console_methods): Add update_widget_method.
17264
17265 2000-02-09  Andy Piper  <andy@xemacs.org>
17266
17267         * gui-msw.c (Fmswindows_shell_execute): Make
17268         mswindows-shell-execute industrial strength.
17269
17270 2000-02-08  Martin Buchholz  <martin@xemacs.org>
17271
17272         * lrecord.h: Make macro argument `props' match member function `plist'.
17273         * fns.c (Fget):
17274         * fns.c (Fput):
17275         * fns.c (Fremprop):
17276         * fns.c (Fobject_plist):
17277         * alloc.c:
17278         * symbols.c:
17279         Object property list frobbing cleanup.
17280         - Allow any lisp object (compared with `eq'), not just symbols, as
17281           keys in object plists.
17282         - Move symbol plist frobbing into symbols.c, where it belongs.
17283         - Move string plist frobbing into alloc.c, where it belongs.
17284         - Everything's an lrecord now, so no need to test for symbolp, etc.
17285         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
17286
17287         * extents.c: Reorder code to remove declarations.
17288
17289         * frame.h (store_in_alist): Remove useless declaration.
17290
17291 2000-02-07  Martin Buchholz  <martin@xemacs.org>
17292
17293         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
17294         * config.h.in: Add HAVE_XCONVERTCASE.
17295
17296 2000-02-07  Andy Piper  <andy@xemacs.org>
17297
17298         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
17299         it breaks many things.
17300
17301 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
17302
17303         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
17304         actually can start a common comment type.
17305         * src/syntax.h (SYNTAX_END_P): ditto for end.
17306
17307 2000-02-07  Martin Buchholz <martin@xemacs.org>
17308
17309         * XEmacs 21.2.28 is released.
17310
17311 2000-02-06  Martin Buchholz  <martin@xemacs.org>
17312
17313         * event-Xt.c (x_keysym_to_character): New.
17314         (maybe_define_x_key_as_self_inserting_character): New.
17315         (x_has_keysym): New.
17316         Auto-define all keys on the keyboard as self-insert-key.
17317
17318 2000-02-02  Martin Buchholz  <martin@xemacs.org>
17319
17320         * menubar.c (vars_of_menubar): A small code simplification.
17321
17322         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
17323
17324         * ExternalShell.c:
17325         * ExternalClient.c:
17326         * EmacsShell-sub.c:
17327         * EmacsManager.c:
17328         * EmacsFrame.c:
17329         Use consistent style for specifying X resources.
17330
17331         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
17332         This makes (dontusethis-set-symbol-value-handler) actually usable.
17333
17334         * lrecord.h (lrecord_decription_type):
17335         * alloc.c (pdump_register_sub):
17336         (pdump_dump_data):
17337         (pdump_reloc_one):
17338         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
17339         Comply with XEmacs coding style.
17340         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
17341         args, and XD_LISP_OBJECT_ARRAY with 3 args.
17342
17343         * keymap.c (Faccessible_keymaps):
17344         Make (accessible-keymaps map "\C-h") do the Right Thing.
17345         Make (accessible-keymaps map []) do the Right Thing.
17346         Make (accessible-keymaps map "") do the Right Thing.
17347         (check_keymap_definition_loop): New function.
17348         (keymap_store_internal): Keep luser from shooting self in foot,
17349           via (define-key ctl-x-4-map "p" global-map).
17350         Remove fullness slot from struct Lisp_Keymap, since hash tables
17351         are now reliable.
17352         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17353
17354 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17355
17356         * redisplay.c (init_redisplay): Fix small memory leak.
17357         * elhash.h:
17358         * elhash.c (pdump_reorganize_hash_table):
17359         Rename from reorganize_hash_table. Change prototype.
17360         Reuse the original memory for hentries.  Save 100k.
17361         * alloc.c (PDUMP_READ): new macro.
17362         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17363         * alloc.c: No need to #ifndef before #undef.
17364
17365         * print.c: Allow debug_print() to print readably by modifying
17366         debug_print_readably.  Use consistent variable names.
17367
17368         * .dbxrc: Try to get things to work even if stopped in a function
17369         without source available by explicitly specifying source files.
17370 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17371
17372         * unexnt.c (_start): Removed bogus code which caused loading heap
17373         from differrent executable file.
17374         Removed bogus assignment to _fmode, which caused inconsistencies.
17375
17376 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17377
17378         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17379         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17380         Do not preliminary `#define signal sigset'.
17381
17382         * systime.h: Do not prototype environ on windows nt and cygwin,
17383         this conflicts with system header.
17384
17385         * syssignal.h: Use correct define for WINDOWSNT
17386
17387         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17388         with system header.
17389
17390         * sysdep.c (near start of file): Fixed commentary and rearranged
17391         ifdefs in readable order.
17392         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17393         (start_of_text):
17394         (end_of_text):
17395         (end_of_data): Do not compile in if using PDUMP.
17396
17397         * symsinit.h: Prototyped vars_of_nt().
17398
17399         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17400         (find_child_console): Use it.
17401         (sys_kill): Use it.
17402
17403         * ntheap.h: Do not extern os_subtype.
17404
17405         * ntheap.c (cache_system_info): Do not cache unneeded:
17406         nt_major_version, nt_minor_version and os_subtype.
17407         (recreate_heap): Do not compile in when PDUMPing.
17408
17409         * nt.c (geteuid and friends): Use the new varibale
17410         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17411         (init_user_info): Removed the above mentioned hackery.
17412         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17413         stat has been fixed in the C runtime.
17414         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17415
17416         * file-coding.c (struct file_coding_dump): Do not define
17417         ucs_to_mule_table in the struct if not MULE.
17418         (struct struct lrecord_description fcd_description_1): Do not dump
17419         the above.
17420
17421         * emacs.c (main_1): Call vars_of_nt().
17422         (right before Fdump_emacs_data): Don't need lastfile if using both
17423         portabe dumper and system malloc.
17424
17425         * alloc.c (Fmemory_limit): Conditionalized out.
17426         (pdump): Use OPEN_BINARY for the portable dump file.
17427         (pdump_load): Ditto.
17428
17429 2000-02-02  Mike Alexander  <mta@arbortext.com>
17430
17431         * nt.c (convert_time): Set tm_isdst before calling mktime and
17432         avoid calling it at all if the compiler supports 64 bit integers.
17433         Also initialize utc_base_ft before using it.
17434
17435 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17436
17437         * frame.c (change_frame_size_1): Take f->internal_border_width
17438         into consideration when calculating the width of the frame.
17439
17440 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17441
17442         * window.c (frame_min_height):
17443         (frame_size_valid_p):
17444         (frame_pixsize_valid_p): Added.
17445         (check_frame_size): Generalized.
17446
17447         * window.h: Prototyped the above.
17448
17449         * lisp.h:
17450         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17451         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17452         Deleted Vwin32_* and Vbinary_process_* unused variables.
17453
17454         * device-msw.c (msprinter_init_device): Do not get printer font
17455         list; Added DEVMODE functions.
17456
17457         * frame-msw.c: Added lots of printer code.
17458
17459         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17460         general.c.
17461
17462         * console-msw.h: Added more msprinter device private slots.
17463
17464 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17465
17466         * event-msw.c (key_needs_default_processing_p): Added.
17467         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17468
17469 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17470
17471         * glyphs.c (image_instance_layout): Mark image instance as clean
17472         after layout.
17473         (glyph_dirty_p): Removed redundant function.
17474         (invalidate_glyph_geometry_maybe): Added.
17475         (update_glyph_cachel_data): Call it.
17476
17477         * glyphs.h: Prototyped it.
17478
17479         * redisplay.c (add_glyph_rune): Call it.
17480         (redisplay_window): Reset glyphs cachels when frame faces have
17481         changed, thus forcing recomputation of built-in border glyphs.
17482
17483 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17484
17485         * Makefile.in.in: Make portable dumper and purify play well together.
17486         Add imperfect, but better than nothing, support for pdump.
17487         Remove xemacs.dmp when temacs is re-generated.
17488         Don't ignore errors when dumping xemacs.
17489
17490         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17491
17492 2000-01-28  Andy Piper  <andy@xemacs.org>
17493
17494         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17495         (setup_normal_frame): ditto.
17496         (setup_frame_without_minibuffer): ditto.
17497         (setup_minibuffer_frame): ditto.
17498         (delete_frame_internal): ditto.
17499         (Fmake_frame_invisible): ditto.
17500         (Ficonify_frame): ditto.
17501
17502         * window.h: change Fset_window_buffer signature.
17503
17504         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17505         (Fset_window_buffer): allow recording of buffer if the window is
17506         the selected window.
17507         (window_loop): Use new Fset_window signature.
17508
17509 2000-01-23  Daniel Pittman  <daniel@danann.net>
17510
17511         * config.h.in: Added template for `HAVE_ATHENA_3D'
17512
17513 2000-01-29  Andy Piper  <andy@xemacs.org>
17514
17515         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17516
17517         * gutter.c (output_gutter): Don't output if the window isn't live.
17518
17519 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17520
17521         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17522         of 01/12/00: Moved SetFocus back here where it belongs.
17523
17524 2000-01-23  Andy Piper  <andy@xemacs.org>
17525
17526         * s/cygwin32.h: declare printer things.
17527
17528 2000-01-26  Andy Piper  <andy@xemacs.org>
17529
17530         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17531         Alexander.
17532
17533 2000-01-24  Andy Piper  <andy@xemacs.org>
17534
17535         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17536         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17537
17538         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17539
17540         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17541
17542         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17543
17544         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17545         (mswindows_output_display_block): Avoid local shadows.
17546
17547         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17548         (mswindows_enqueue_mouse_button_event): ditto.
17549         (mswindows_handle_gui_wm_command): remove declaration.
17550
17551         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17552         warnings.
17553
17554         * console-msw.h: Avoid shadows.
17555         (mswindows_get_toolbar_button_text):
17556         (emacs_mswindows_create_stream_pair):
17557         (emacs_mswindows_delete_stream_pair):
17558         (mswindows_handle_toolbar_wm_command): declare.
17559
17560         * device-msw.c (build_syscolor_string): Avoid shadows.
17561
17562 2000-01-23  Andy Piper  <andy@xemacs.org>
17563
17564         * glyphs-widget.c (widget_instantiate): reverse the items for
17565         layouts so that children are in the expected order.
17566
17567 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17568
17569         * ralloc.c: safe_bcopy ==> memmove
17570         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17571         * s/msdos.h: Remove BCOPY macros.
17572         * insdel.c (gap_right): Remove BCOPY conditional code.
17573         * insdel.c (gap_left): Remove BCOPY conditional code.
17574         XEmacs demands a working ANSI C compiler - hence memmove.
17575
17576         * regex.c (regex_compile): Remove accidental use of trigraphs.
17577
17578 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17579
17580         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17581         event timestamp.
17582
17583 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17584
17585         * event-msw.c (mswindows_drain_windows_queue): Added the
17586         parameter.
17587         (mswindows_need_event): Commented the call to
17588         mswindows_drain_windows_queue().
17589         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17590         only.
17591
17592         * console-msw.h: Moved a few function prototypes here from
17593         event-msw.c.
17594
17595         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17596         parameter from unsigned short to unsigned long.
17597         (Fmswindows_shell_execute): Added return value.
17598
17599 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17600
17601         * sysdep.c (init_system_name):
17602           process-unix.c (unix_canonicalized_host_name):
17603         Don't call freeaddrinfo() if getaddrinfo() fails.
17604
17605         * process-unix.c (unix_open_unix_network_stream):
17606         Moved the code to get a port # into address loop.
17607
17608 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17609
17610         * buffer.c (reinit_vars_of_buffer):
17611         The right place to initialize conversion_in_dynarr and
17612         conversion_out_dynarr.
17613
17614         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17615
17616         * process-unix.c (unix_canonicalize_host_name): Muleize.
17617         (unix_open_network_stream): Muleize.
17618
17619         * buffer.h: Fix up prototypes for ralloc.c functions.
17620
17621 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17622         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17623         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17624                 instead of gethostbyname()
17625         * process-unix.c: In unix_canonicalize_host_name() and
17626                 unix_open_network_stream(), add code to use getaddrinfo()
17627                 instead of gethostbyname().
17628
17629 2000-01-27  Daniel Pittman <daniel@danann.net>
17630
17631         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17632         libs when built with flat Athena.
17633
17634 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17635
17636         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17637         Use coding standards for function prototypes.
17638
17639 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17640
17641         * dialog-msw.c (push_lisp_string_as_unicode):
17642         * doc.c (unparesseuxify_doc_string):
17643         * dired.c (Fuser_name_completion_1):
17644         * dired.c (Fuser_name_all_completions):
17645         * dired.c (free_user_cache):
17646         * dired.c (user_name_completion):
17647         * console-x.c (get_display_arg_connection):
17648         * minibuf.c (clear_echo_area_internal):
17649         * minibuf.c (echo_area_append):
17650         * eldap.c (Fldap_open):
17651         * eldap.c (Fldap_search_internal):
17652         * frame-x.c (x_set_frame_text_value):
17653         * frame-x.c (x_set_frame_properties):
17654         * frame-x.c (x_create_widgets):
17655         * redisplay-tty.c (term_get_fkeys_1):
17656         * objects-x.c (x_parse_nearest_color):
17657         * objects-x.c (x_valid_color_name_p):
17658         * objects-x.c (x_initialize_font_instance):
17659         * objects-x.c (x_list_fonts):
17660         * objects-x.c (x_find_charset_font):
17661         * tooltalk.c (Fadd_tooltalk_message_arg):
17662         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17663         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17664         * process-unix.c (unix_create_process):
17665         * ntproc.c (sys_spawnve):
17666         * sound.c (Fplay_sound_file):
17667         * sound.c (Fplay_sound):
17668         * buffer.c (init_initial_directory):
17669         * buffer.c (init_buffer):
17670         * editfns.c (init_editfns):
17671         * editfns.c (Ftemp_directory):
17672         * editfns.c (Fuser_full_name):
17673         * editfns.c (uncache_home_directory):
17674         * editfns.c (get_home_directory):
17675         * editfns.c (Fuser_home_directory):
17676         * editfns.c (Fformat_time_string):
17677         * editfns.c (Fcurrent_time_string):
17678         * gui-x.c (button_item_to_widget_value):
17679         * database.c (Fopen_database):
17680         * event-Xt.c (x_to_emacs_keysym):
17681         * event-Xt.c (x_event_to_emacs_event):
17682         * event-Xt.c (describe_event_window):
17683         * event-msw.c (mswindows_wnd_proc):
17684         * glyphs-eimage.c (jpeg_instantiate):
17685         * glyphs-eimage.c (gif_instantiate):
17686         * glyphs-eimage.c (png_instantiate):
17687         * glyphs-eimage.c (tiff_instantiate):
17688         * glyphs-x.c (xbm_instantiate_1):
17689         * glyphs-x.c (x_xbm_instantiate):
17690         * glyphs-x.c (x_xface_instantiate):
17691         * glyphs-x.c (autodetect_instantiate):
17692         * glyphs-x.c (cursor_font_instantiate):
17693         * glyphs-x.c (x_widget_instantiate):
17694         * glyphs-x.c (x_widget_set_property):
17695         * glyphs-x.c (x_widget_property):
17696         * glyphs-x.c (BUILD_GLYPH_INST):
17697         * print.c (write_string_to_stdio_stream):
17698         * print.c (output_string):
17699         * print.c (Falternate_debugging_output):
17700         * print.c (Fexternal_debugging_output):
17701         * glyphs-msw.c (extract_xpm_color_names):
17702         * glyphs-msw.c (mswindows_xpm_instantiate):
17703         * glyphs-msw.c (bmp_instantiate):
17704         * glyphs-msw.c (resource_name_to_resource):
17705         * glyphs-msw.c (mswindows_resource_instantiate):
17706         * glyphs-msw.c (xbm_instantiate_1):
17707         * glyphs-msw.c (mswindows_xbm_instantiate):
17708         * glyphs-msw.c (mswindows_xface_instantiate):
17709         * glyphs-msw.c (mswindows_widget_instantiate):
17710         * glyphs-msw.c (add_tree_item):
17711         * glyphs-msw.c (add_tab_item):
17712         * glyphs-msw.c (mswindows_combo_box_instantiate):
17713         * glyphs-msw.c (mswindows_widget_property):
17714         * glyphs-msw.c (mswindows_combo_box_property):
17715         * glyphs-msw.c (mswindows_widget_set_property):
17716         * console.c (stuff_buffered_input):
17717         * objects-msw.c (mswindows_initialize_color_instance):
17718         * objects-msw.c (mswindows_valid_color_name_p):
17719         * objects-msw.c (mswindows_list_fonts):
17720         * objects-msw.c (mswindows_font_instance_truename):
17721         * bytecode.c (optimize_compiled_function):
17722         * select-x.c (symbol_to_x_atom):
17723         * select-x.c (x_atom_to_symbol):
17724         * select-x.c (hack_motif_clipboard_selection):
17725         * select-x.c (selection_data_to_lisp_data):
17726         * select-x.c (lisp_data_to_selection_data):
17727         * select-x.c (Fx_get_cutbuffer_internal):
17728         * select-x.c (Fx_store_cutbuffer_internal):
17729         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17730         * buffer.h (TO_INTERNAL_FORMAT): New function.
17731         * emacs.c (make_arg_list_1):
17732         * emacs.c (make_argc_argv):
17733         * emacs.c (main_1):
17734         * emacs.c (Fdump_emacs):
17735         * emacs.c (split_string_by_emchar_1):
17736         * file-coding.h:
17737         * lisp.h:
17738         * lstream.h:
17739         * symsinit.h:
17740         * device-x.c (x_init_device):
17741         * device-x.c (Fx_valid_keysym_name_p):
17742         * device-x.c (Fx_get_font_path):
17743         * device-x.c (Fx_set_font_path):
17744         * glyphs.c (bitmap_to_lisp_data):
17745         * glyphs.c (pixmap_to_lisp_data):
17746         * alloc.c (make_ext_string): Use coding system arguments.  Update
17747         all callers.
17748         * alloc.c (build_string):
17749         * callproc.c (child_setup):
17750         * callproc.c (init_callproc):
17751         * fileio.c (lisp_strerror):
17752         * fileio.c (directory_file_name):
17753         * fileio.c (Fexpand_file_name):
17754         * fileio.c (Ffile_truename):
17755         * fileio.c (Fsysnetunam):
17756         * fileio.c (Fdo_auto_save):
17757         * sysdep.c (sys_readdir):
17758         * tests.c: New file.  Allow adding C tests.
17759         Replace GET_* macros with a more comprehensible and flexible
17760         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17761         Modify all calls.
17762         Any coding system can be used to do format conversion.
17763         Eliminate enum external_data_format.
17764         Eliminate convert_to_external_format.
17765         Eliminate convert_to_internal_format.
17766         Make sure file-name, keyboard, terminal, and ctext are always
17767         defined as coding systems or aliases.  Make
17768         file-name-coding-system, terminal-coding-system, and
17769         keyboard-coding-system magical variables that are equivalent to
17770         defining the corresponding coding system aliases.
17771
17772         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17773         * file-coding.c (Fcoding_system_alias_p): New function.
17774         * file-coding.c (Fcoding_system_aliasee): New function.
17775         * file-coding.c (append_suffix_to_symbol): New function.
17776         * file-coding.c (dangling_coding_system_alias_p): New function.
17777         * file-coding.c (Ffind_coding_system):
17778         * file-coding.c (Fcopy_coding_system):
17779         * file-coding.c (encode_coding_no_conversion):
17780         * file-coding.c (syms_of_file_coding):
17781         * file-coding.c (vars_of_file_coding):
17782         Rewrite coding system alias code.
17783         Allow nested aliases, like symbolic links.
17784         Allow redefinition of coding system aliases.
17785         Prevent existence of dangling coding system aliases.
17786
17787         * dired.c (Fuser_name_completion_1):
17788         * dired.c (Fuser_name_all_completions):
17789         A crash would happen if user did QUIT in the middle of building
17790         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17791
17792         * lisp.h:
17793         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17794
17795         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17796         an unsigned char *.  Update all callers.
17797
17798 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17799
17800         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17801
17802 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17803
17804         * elhash.c (hentry_description): Use more portable definition.
17805         (resize_hash_table): Initialize new hentries using
17806         xnew_array_and_zero, thereby simplifying the code.
17807
17808         * mule-charset.c (make_charset): Make sure entire object is
17809         initialized, to avoid Purify warnings.
17810
17811         * alloc.c (resize_string): Fix unlikely crash with big strings.
17812
17813 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17814
17815         * realpath.c (xrealpath):
17816         Don't call getwd().
17817
17818 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17819
17820         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17821
17822 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17823
17824         * unexelfsgi.c (unexec): Change the way we decide which segment
17825         should be extended.
17826
17827         Assumption that .bss section should be outside the PT_LOADable
17828         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17829         it's present) is inside the 'data' segment. This would fail the
17830         test which was used to find a segment to grow and cover new
17831         heap. Instead of this assumption, I created another one - on IRIX
17832         the segment to grow should start below .bss and it's address
17833         should extent above the end of .bss. Once this segment is
17834         identified, it's grown to accommodate the new heap and new
17835         zero-length .bss section is added at the end of .data2.
17836
17837 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17838
17839         * eval.c (Feval): Wrong number of arguments should use original
17840         function, not the indirect_function version of it.
17841
17842 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17843
17844         * glyphs-x.c (x_button_instantiate): Don't add image if
17845         it is not a pixmap.
17846         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17847         is relative.
17848
17849 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17850
17851         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17852         declaration.
17853         (DEFVAR_INT_MAGIC): Ditto.
17854         (DEFVAR_BOOL_MAGIC): Ditto.
17855         * glyphs.h: Reindent backslash.
17856
17857 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17858
17859         * glyphs-widget.c (layout_query_geometry):
17860         (layout_layout): Use correct types for gheight, gwidth.
17861
17862 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17863
17864         * EmacsManager.c (QueryGeometry): Purified.
17865
17866 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17867
17868         * alloc.c (make_float): Make sure entire object is initialized, to
17869         avoid Purify warnings.
17870         (pdump_register_sub): Remove useless assignment.
17871         (pdump): Use xmalloc, not malloc.
17872         (pdump_load): Use xmalloc, not malloc.
17873
17874 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17875
17876         * callproc.c:
17877         * dired-msw.c:
17878         * fileio.c:
17879         * process-nt.c:
17880         * redisplay-msw.c:
17881         * sysdep.c: Removed redundant #include <windows.h>
17882
17883 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17884
17885         * frame.c (delete_frame_internal): Do not delete device when its
17886         implementation so declares.
17887         (delete_frame_internal): Set device selected frame to nil when
17888         last frame goes away.
17889
17890         * device-msw.c (msprinter_device_system_metrics): Implemented.
17891         (mswindows_device_system_metrics): Added 'device-dpi property.
17892
17893         * device.c: (Fdevice_printer_p): Added.
17894         Added 'offset-workspace device metric.
17895
17896         * console.h (device_metrics): Declared DM_offset_workspace.
17897
17898 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17899
17900         * fileio.c (Ffile_truename): Remove pointless and confusing
17901         initialization of elen.
17902
17903         * glyphs-widget.c: Compiler warning fixes.
17904
17905 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17906
17907         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17908         instead of a Lisp_Object as argument to make it consistent with
17909         the other LIVE_P macros.
17910         (CHECK_LIVE_PROCESS): New macro.
17911
17912         * process.c: Declare Qprocess_live_p.
17913         (Fprocess_live_p): New function.
17914         (create_process): Use PROCESS_LIVE_P.
17915         (read_process_output): Ditto.
17916         (set_process_filter): Ditto.
17917         (Fdelete_process): Ditto.
17918         (kill_buffer_processes): Ditto
17919         (process_send_signal): Use CHECK_LIVE_PROCESS.
17920         (Fprocess_input_coding_system): Check whether process is still
17921         alive (fix PR#1061).
17922         (Fprocess_output_coding_system): Ditto.
17923         (Fprocess_coding_system): Ditto.
17924         (Fset_process_input_coding_system): Ditto.
17925         (Fset_process_output_coding_system): Ditto.
17926
17927 2000-01-23  Andy Piper  <andy@xemacs.org>
17928
17929         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17930         layout and widget.
17931
17932         * glyphs.c (mark_image_instance): take into account changed
17933         image_instance format.
17934         (image_instance_equal): ditto.
17935         (image_instance_hash): ditto.
17936
17937         * glyphs-widget.c (widget_instantiate): Incorporate layout
17938         instantiation here. Delay layout of the layout until later.
17939         (layout_instantiate): deleted.
17940         (layout_query_geometry): new function. get the geometry of a
17941         layout.
17942         (layout_layout): layout a layout dynamically.
17943         (image_instantiator_widget): New function - splitting up
17944         image_instantiator_format_create_glyphs_widget for netwinder
17945         compilation.
17946         (image_instantiator_buttons):
17947         (image_instantiator_edit_fields):
17948         (image_instantiator_combo_box):
17949         (image_instantiator_scrollbar):
17950         (image_instantiator_progress_guage):
17951         (image_instantiator_tree_view):
17952         (image_instantiator_tab_control):
17953         (image_instantiator_labels):
17954         (image_instantiator_layout): ditto.
17955         (image_instantiator_format_create_glyphs_widget): Call preceding
17956         functions.
17957
17958 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17959
17960         * process.c (Fset_process_coding_system):
17961         * device-x.c (Fx_keysym_hash_table):
17962         Docstring fixes.
17963
17964         * lstream.c (Lstream_write): Return documented value, not 0.
17965
17966         * fileio.c (directory_file_name):
17967         (Fsubstitute_in_file_name):
17968         (Fsubstitute_insert_file_contents_internal):
17969         (Fwrite_region_internal):
17970         * emacs.c:
17971         * sysdep.c:
17972         * getloadavg.c:
17973         * systty.h:
17974         Remove vestigial APOLLO-conditional code.
17975
17976 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17977
17978         * getpagesize.h: Add guard macros.
17979         * libsst.h: Add guard macros.
17980         * libst.h: Add guard macros.
17981         * line-number.h: Add guard macros.
17982         * ndir.h: Add guard macros.
17983         * sysfloat.h: Add guard macros.
17984         * sysfile.h: Add guard macros.
17985         * sysproc.h: Add guard macros.
17986         * syswait.h: Add guard macros.
17987         * xintrinsic.h: Add guard macros.
17988         * xintrinsicp.h: Add guard macros.
17989         * xmmanager.h: Add guard macros.
17990         * xmmanagerp.h: Add guard macros.
17991         * xmprimitive.h: Add guard macros.
17992         * xmu.h: Add guard macros.
17993         * gpmevent.h: Add copyright statement. Add guard macros.
17994         * miscplay.h: Add guard macros.
17995         * *.h: Use consistent C-standards-approved guard macro names.
17996
17997         * opaque.c (make_opaque): Switch parameter order.
17998         * opaque.h (make_opaque): Switch parameter order.
17999         Update all callers.
18000         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
18001
18002         * config.h.in (type_checking_assert): Added.
18003         (bufpos_checking_assert): Added.
18004
18005 2000-01-21  Martin Buchholz  <martin@xemacs.org>
18006
18007         * alloc.c: Harmless pdump changes.
18008         - Use countof().
18009         - spell alignment correctly.
18010         * sysdep.c: Use countof()
18011
18012 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18013
18014         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
18015         initially_selected_for_input() console method, default to 0.
18016         (semi_canonicalize_console_connection): Try to delegate to
18017         canonicalize_console_connection if no such console method.
18018         (canonicalize_console_connection): Vice versa.
18019         (print_console): Do not print nil connection.
18020
18021         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
18022         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
18023         (XDEVIMPF_FRAMELESS_OK): Added.
18024         (CONSOLE_INHERITS_METHOD): Added.
18025
18026         * console-msw.c (mswindows_canonicalize_console_connection):
18027         Added.
18028         (mswindows_canonicalize_device_connection): Added.
18029
18030         * console-msw.h (struct msprinter_device): Added this struct and
18031         accessor macros.
18032         (mswindows_device): Made fontlist a lisp object.
18033
18034         * device.c (semi_canonicalize_device_connection):  Try to delegate
18035         to canonicalize_device_connection if no such console method.
18036         (canonicalize_device_connection): Vice versa.
18037         (print_device): Do not print nil connection.
18038
18039         * device-msw.c (mswindows_init_device): Call InitCommonControls
18040         when have widgets.
18041         (mswindows_delete_device): Removed fontlist deallocation.
18042         (mswindows_mark_device): Added.
18043
18044         * events.c (event_equal): Added abort() at unreached code.
18045         (event_hash): Ditto.
18046
18047         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
18048         fallback tags of Windows devices.
18049
18050         * general.c (syms_of_general): Initialized Qmsprinter.
18051
18052         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
18053         of fallback tags of Windows devices.
18054
18055         * lisp.h: Declared Qmsprinter.
18056
18057         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
18058         of strings.
18059         (mswindows_list_fonts): Ditto.
18060         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
18061         that it can be used by both mswindows and msprinter devices.
18062         (initialize_font_instance): Added.
18063         (mswindows_initialize_font_instance): Use it.
18064         (msprinter_initialize_font_instance): Added.
18065
18066         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
18067         and implementation flags check.
18068         (redisplay_without_hooks): Changed the call to the above.
18069         (Fredraw_device): Ditto.
18070         (Fredisplay_device): Ditto.
18071
18072         * redisplay-msw.c (get_frame_dc): Implemented.
18073         (get_frame_compdc): Implemented.
18074         (many functions): Use the two functions above to get device
18075         contexts, ether for a window or a printer.
18076
18077 2000-01-21  Olivier Galibert  <galibert@pobox.com>
18078
18079         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
18080         initialization here.
18081         (init_symbols_once_early): Call it.
18082         * emacs.c (main_1): Call it.
18083         * symsinit.h: Declare it.
18084
18085 2000-01-19  Olivier Galibert  <galibert@pobox.com>
18086
18087         * alloc.c: Use a lrecord_header * in the backtrace instead of a
18088         Lisp_Object.
18089         (pdump_backtrace): Ditto.
18090         (pdump_register_object): Ditto.  Cleanup use of the pointers.
18091         (pdump_get_entry): Abort if trying to register a null pointer.
18092         (pdump_dump_data): Cleanup types when relocating.
18093         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
18094         (pdump_dump_rtables): Remove bad casts.
18095         (pdump_load): Cleanup relocation w.r.t union type.  Use a
18096         Lisp_Object instead of a EMACS_INT for the hashtable
18097         reorganization.
18098
18099 2000-01-20  Martin Buchholz  <martin@xemacs.org>
18100
18101         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
18102
18103         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
18104
18105         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
18106
18107         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
18108
18109 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18110
18111         * faces.h (FACE_STRIKETHRU_P): Added.
18112
18113         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
18114         of font variants.
18115
18116         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
18117         (mswindows_set_dc_font): New function, aware of font variants,
18118         separated from mswindows_update_dc.
18119
18120         * objects-msw.h (struct mswindows_font_instance_data): Added
18121         definition.
18122
18123         * objects-msw.c (mswindows_finalize_font_instance): Delete all
18124         cached fonts and the data structure.
18125         (mswindows_initialize_font_instance): Added creation of font data
18126         structure.
18127         (mswindows_print_font_instance): Print at least something.
18128         (mswindows_create_font_variant): Implemented.
18129         (mswindows_get_hfont): Implemented.
18130
18131 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
18132
18133         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
18134         prototyping problem with msvc.
18135
18136         * emacs.c (main_1): added syms_of_gui_mswindows() call
18137
18138         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
18139         syms_of_gui_mswindows() function
18140
18141         * symsinit.h: added the prototype for syms_of_gui_mswindows()
18142
18143 2000-01-18  Martin Buchholz <martin@xemacs.org>
18144
18145         * XEmacs 21.2.27 is released.
18146
18147 2000-01-18  Martin Buchholz  <martin@xemacs.org>
18148
18149         * glyphs-eimage.c (struct tiff_error_struct):
18150         (tiff_error_func):
18151         (tiff_warning_func):
18152         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
18153
18154         * unexmips.c:
18155         * unexhp9k3.c:
18156         * unexfreebsd.c:
18157         * unexec.c: Remove vestigial Lucid C code.
18158         * unexalpha.c:
18159         * unexaix.c:
18160         * termcap.c:
18161         * libsst.c: Ansify.
18162         Remove declarations of errno and strerror().
18163
18164         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
18165
18166         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
18167
18168 2000-01-16  Martin Buchholz  <martin@xemacs.org>
18169
18170         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
18171         Optimize.
18172
18173 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18174
18175         * md5.c:
18176         * file-coding.c:
18177         * file-coding.h:
18178         Change enum eol_type to eol_type_t.
18179
18180 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18181
18182         * gui.c (get_gui_callback): Check cons before accessing car.
18183
18184 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18185
18186         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
18187         (XSETSPECIFIER_TYPE): Ditto.
18188
18189 2000-01-17  Didier Verna  <didier@xemacs.org>
18190
18191         * redisplay.c (generate_fstring_runes): compute string size in
18192         characters, not bytes.
18193
18194 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18195
18196         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
18197
18198 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
18199
18200         * print.c (print_error_message): Call print_prepare().
18201
18202 2000-01-14  Martin Buchholz  <martin@xemacs.org>
18203
18204         * .dbxrc: Renamed from dbxrc.
18205
18206         * events.c (event_to_character):
18207         Use `assert (foo)' instead of `if (!foo) abort()'
18208
18209         * .gdbinit (xtype): Add documentation.
18210         * .gdbinit (check-temacs): New function.
18211         * .gdbinit (check-xemacs): New function.
18212         * dbxrc (check-xemacs): New function.
18213         * dbxrc (check-xemacs): New function.
18214
18215 2000-01-14  Andy Piper  <andy@xemacs.org>
18216
18217         * glyphs-widget.c (widget_query_geometry): Make sure that we
18218         calculate default dimensions correctly.
18219
18220 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18221
18222         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
18223
18224         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
18225         pdump_wire'd variable.
18226
18227         * emacs.c: (main_1): Conditionalized calls to
18228         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
18229
18230 2000-01-13  Martin Buchholz  <martin@xemacs.org>
18231
18232         * window.c (Fset_window_configuration):
18233         * sysdep.c (_start):
18234         * input-method-motif.c (res):
18235         * event-Xt.c (Xt_process_to_emacs_event):
18236         Simple compiler warning fixes.
18237
18238         * bytecode.c (funcall_compiled_function): Use the original
18239         function symbol on the backtrace list in preference to the
18240         compiled_function object in error messages.
18241
18242 2000-01-13  Andy Piper  <andy@xemacs.org>
18243
18244         * glyphs-x.c (update_widget_face): Make sure we update the widget
18245         background as well as foreground.
18246
18247 2000-01-13  Andy Piper  <andy@xemacs.org>
18248
18249         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
18250         fields to subwindow.
18251         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
18252         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
18253         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18254         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18255
18256         * glyphs-widget.c (check_valid_tab_orientation): new function.
18257         (initialize_widget_image_instance): zero orientation and
18258         justification.
18259         (widget_instantiate): pick up orientation.
18260         (tab_control_query_geometry): return appropriate values for
18261         vertical tabs.
18262
18263         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
18264         appropriate creation flags for left, right and bottom tabs.
18265
18266         * s/cygwin32.h: add tab definitions.
18267
18268 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18269
18270         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
18271         frame upon hiding a subwindow.
18272         (mswindows_button_instantiate): Changed the push button style to
18273         BS_PUSHBUTTON.
18274         (mswindows_button_instantiate): Removed button BS_NOTIFY
18275         style.
18276         (mswindows_button_instantiate): Removed redundant check for
18277         a disabled gui item.
18278         (mswindows_button_instantiate): Made use of WS_TABSTOP
18279         consistent: "operable" controls (edit, button, tree, scroll) have
18280         this style, "display-only" ones (static, progress gauge) do
18281         not. This style is currently ignored by XEmacs though. Also,
18282         removed the WS_EX_CONTROLPARENT style - it is not for children,
18283         it is for their parents!
18284         (mswindows_edit_field_instantiate): Ditto.
18285         (mswindows_progress_gauge_instantiate): Ditto.
18286         (mswindows_tree_view_instantiate): Ditto.
18287         (mswindows_tab_control_instantiate): Ditto.
18288         (mswindows_scrollbar_instantiate): Ditto.
18289         (mswindows_combo_box_instantiate): Ditto.
18290         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
18291         style to the "clip" window.
18292         (mswindows_button_instantiate): Removed compilation warning by
18293         equally typing terms of the ?: operator.
18294
18295 2000-01-12  Didier Verna  <didier@xemacs.org>
18296
18297         * redisplay.c (generate_fstring_runes): new parameter holding the
18298         last modeline-format extent.
18299         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
18300         extent, fill the glyph block with it.
18301         (generate_fstring_runes): handle these parameters.
18302         (generate_formatted_string_db): ditto.
18303
18304         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
18305         glyphs'extents in the modeline.
18306
18307 1999-01-11  Mike Woolley  <mike@bulsara.com>
18308
18309         * ntheap.c: Reduced the reserved heap space from 1Gb down to
18310         256Mb, as a workaround for the non-starting problem many people
18311         have experienced.
18312
18313 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18314
18315         * console-tty.c (Fset_console_tty_output_coding_system):
18316         Force redrawing tty frame.
18317
18318 2000-01-10  Didier Verna  <didier@xemacs.org>
18319
18320         * redisplay.c (generate_fstring_runes): fix size computation bug.
18321
18322 2000-01-09  William M. Perry <wmperry@aventail.com>
18323
18324         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
18325
18326 2000-01-09  Andy Piper  <andy@xemacs.org>
18327
18328         * glyphs-msw.c: index -> i to avoid shadows.
18329         (xbm_create_bitmap_from_data): make static.
18330         (check_valid_string_or_int): deleted.
18331         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
18332
18333         * glyphs-x.c (x_update_subwindow): remove unused args.
18334
18335         * glyphs.c (glyph_image_instance): return the thing. Don't set the
18336         back pointer - this is done in allocate_image_instance.
18337         (query_string_font): return Qnil to make the compiler happy.
18338         (unmap_subwindow): set to ~0 to make the compiler happy.
18339         (glyph_query_geometry): comment out until used.
18340         (glyph_layout): ditto.
18341
18342 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18343
18344         * insdel.c (signal_after_change): Remove extraneous unbind_to().