Merge branch 'master' into single-inheritance.
[chise/xemacs-chise.git-] / src / ChangeLog
1 2016-11-17  MORIOKA Tomohiko  <tomo.git@chise.org>
2
3         * chartab.h: Undefine `USE_CONCORD_OBJECT_SYSTEM' to avoid the
4         Concord Object System.
5
6 2016-11-16  MORIOKA Tomohiko  <tomo.git@chise.org>
7
8         * chartab.c (Fput_char_attribute): Use single-inheritance format
9         for character definitions; namely a value of `<-subsumptive' or
10         `<-denotational' must be a character instead of a list of
11         characters.
12
13 2016-11-17  MORIOKA Tomohiko  <tomo.git@chise.org>
14
15         * chartab.h (USE_CONCORD_OBJECT_SYSTEM): New macro; use it instead
16         of `HAVE_LIBCHISE' to detect to use Concord Object System.
17         (USE_CONCORD_OBJECT_SYSTEM_TO_COMPOSE): New macro.
18
19         * text-coding.c: Use `USE_CONCORD_OBJECT_SYSTEM_TO_COMPOSE'
20         instead of `HAVE_LIBCHISE' to detect to use Concord Object System
21         for character composing.
22
23         * mule-charset.c (charset_code_point): Use
24         `USE_CONCORD_OBJECT_SYSTEM' instead of `HAVE_LIBCHISE' to detect
25         to use Concord Object System.
26
27 2016-11-16  MORIOKA Tomohiko  <tomo.git@chise.org>
28
29         * chartab.c: Use `USE_CONCORD_OBJECT_SYSTEM' instead of
30         `HAVE_LIBCHISE' to detect to use Concord Object System.
31
32 2016-07-23  MORIOKA Tomohiko  <tomo.git@chise.org>
33
34         * text-coding.c (Fmake_coding_system): Accept property
35         `charset-g3' for CODESYS_UTF8.
36         (char_encode_utf8): Refer `charset-g3'.
37
38 2015-11-25  MORIOKA Tomohiko  <tomo.git@chise.org>
39
40         * chartab.c (Fchar_feature): When argument ATTRIBUTE is a CCS and
41         whose name is =>FOO, don't try to find =FOO; fix problem when
42         argument ATTRIBUTE is ==>FOO.
43
44 2013-05-19  MORIOKA Tomohiko  <tomo.git@chise.org>
45
46         * text-coding.c (COMPOSE_ADD_CHAR): Use
47         `concord_object_get_attribute' instead of
48         `concord_object_get_feature_value'.
49
50         * chartab.c (char_table_get_db_cos): Use
51         `concord_object_get_attribute' instead of
52         `concord_object_get_feature_value'.
53
54 2013-05-02  MORIOKA Tomohiko  <tomo.git@chise.org>
55
56         * chartab.h (get_char_id_table_ce): Use
57         `load_char_attribute_maybe_cos' instead of
58         `load_char_attribute_maybe'.
59
60         * chartab.c (load_char_attribute_maybe_cos): Return NULL instead
61         of Qunbound as the default value.
62
63 2013-05-01  MORIOKA Tomohiko  <tomo.git@chise.org>
64
65         * chartab.h (load_char_attribute_maybe_cos): New prototype when
66         HAVE_LIBCHISE is defined.
67         (get_char_id_table_ce): New inline function when HAVE_LIBCHISE is
68         defined.
69
70         * mule-charset.c (charset_code_point): Use `get_char_id_table_ce'
71         instead of `get_char_id_table' when HAVE_LIBCHISE is defined.
72         (load_char_decoding_entry_maybe): Don't use
73         `decoding_table_put_char' to avoid GC.
74
75         * text-coding.c (concord_setup_env_maybe): Abolished.
76         (COMPOSE_ADD_CHAR): Use `open_chise_data_source_maybe' instead of
77         `concord_setup_env_maybe'.
78
79 2013-05-01  MORIOKA Tomohiko  <tomo.git@chise.org>
80
81         * chartab.c (open_chise_data_source_maybe): New implementation;
82         don't use `build_string' and `Fexpand_file_name' to avoid GC.
83         (char_table_get_db_cos): New function when HAVE_LIBCHISE is
84         defined.
85         (load_char_attribute_maybe_cos): Likewise.
86
87 2013-04-23  MORIOKA Tomohiko  <tomo.git@chise.org>
88
89         * text-coding.c (struct decoding_stream): Use COS_object instead
90         of Lisp_Object for `combining_table' if HAVE_LIBCHISE is defined.
91         (reset_decoding_stream): Likewise.
92         (COMPOSE_FLUSH_CHARS): Likewise.
93         (concord_setup_env_maybe): New function.
94         (COMPOSE_ADD_CHAR): Use COS API for `str->combining_table' if
95         HAVE_LIBCHISE is defined.
96
97 2013-02-16  MORIOKA Tomohiko  <tomo.git@chise.org>
98
99         * chartab.c (find_char_feature_in_family): New implementation;
100         don't support multiple parents; support non-list mother.
101
102 2012-06-11  MORIOKA Tomohiko  <tomo.git@chise.org>
103
104         * text-coding.c (Qenable_decomposition): New variable in XEmacs
105         CHISE.
106         (Fmake_coding_system): Add new property `enable-decomposition' in
107         XEmacs CHISE.
108         (char_encode_utf8): Don't decompose character if
109         CODING_SYSTEM_ENABLE_DECOMPOSITION (str->codesys) is false.
110         (syms_of_file_coding): Add new symbol `enable-decomposition' in
111         XEmacs CHISE.
112         (complex_vars_of_file_coding): Define new coding-system-property
113         `enable-decomposition' in XEmacs CHISE.
114
115         * file-coding.h (struct Lisp_Coding_System): Add
116         `enable_decomposition' in XEmacs CHISE.
117         (CODING_SYSTEM_ENABLE_DECOMPOSITION): New macro in XEmacs CHISE.
118         (XCODING_SYSTEM_ENABLE_DECOMPOSITION): New macro in XEmacs CHISE.
119
120 2012-02-17  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
121
122         * text-coding.c (DECODE_ADD_UCS_CHAR): Add `static'.
123
124 2012-02-11  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
125
126         * text-coding.c (DECODE_ADD_UCS_CHAR): Don't use `INLINE_HEADER'.
127
128         * chartab.c (UINT8_DECODE): Don't use `INLINE_HEADER'.
129         (UINT16_DECODE): Ditto.
130
131         * glyphs-eimage.c (png_instantiate):
132         - Use `png_get_image_height (png_ptr, info_ptr)' instead of
133           `info_ptr->height'.
134         - Use `png_get_image_width (png_ptr, info_ptr)' instead of
135           `info_ptr->width'.
136         - Use `png_get_color_type(png_ptr, info_ptr)' instead of
137           `info_ptr->color_type'.
138         - Use `png_get_bit_depth(png_ptr, info_ptr)' instead of
139           `info_ptr->bit_depth'.
140
141 2011-07-20  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
142
143         * mule-charset.c (charset_code_point): If nil is specified as a
144         feature-value, don't find in mother and return -1.
145
146 2011-07-22  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
147
148         * chartab.c (Fput_char_attribute): Accept nil as a value of
149         CCS-feature [it means that specified object does not have
150         code-point of the CCS-feature].
151
152 2011-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
153
154         * mule-charset.c (complex_vars_of_mule_charset): Use "jisx0208"
155         instead of "jisx0208\\.1990" as the X-registry of `=jis-x0208'.
156
157 2011-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
158
159         * text-coding.c (char_encode_as_entity_reference): Don't use
160         `DECODE_CHAR' to detect isolated characters.
161
162         * mule-charset.c (charset_code_point): Change the third argument
163         `defined_only' to `accepted_mode'; `accepted_mode' can be
164         CHAR_ISOLATED_ONLY, CHAR_ALL or CHAR_DEFINED_ONLY.
165
166         * char-ucs.h (CHAR_ISOLATED_ONLY): New macro.
167         (CHAR_ALL): New macro.
168         (CHAR_DEFINED_ONLY): New macro.
169
170 2011-03-14  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
171
172         * chartab.c (Fchar_feature_base_name_eq): New function when
173         UTF2000 is enabled.
174         (Fput_char_attribute): Use `Fchar_feature_base_name_eq'.
175         (syms_of_chartab): Add new builtin function
176         `char-feature-base-name=' when UTF2000 is enabled.
177
178 2011-02-17  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
179
180         * text-coding.c (Vdecomposition_feature_list): New variable when
181         UTF2000 is defined.
182         (char_encode_utf8): Refer variable `decomposition-feature-list'
183         instead of `=decomposition' feature.
184         (vars_of_file_coding): Add new variable
185         `decomposition-feature-list' when UTF2000 is defined.
186
187 2011-02-16  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
188
189         * chartab.c (Fput_char_attribute): Support `=decomposition@FOO' as
190         `=decomposition' feature.
191
192 2011-02-12  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
193
194         * mule-charset.c (Fmake_charset): Fix problem for 94^n or 96^n
195         coded-charsets with builtin characters.
196
197 2011-02-09  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
198
199         * text-coding.c (Qrep_decomposition): New extern.
200         (char_encode_utf8): Try to encode as combing sequence (or IVS).
201
202 2011-01-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
203
204         * concord.c (Fconcord_genre_ds): Add "#ifdef HAVE_LIBCHISE" ...
205         "#endif" for code to refer Vchise_system_db_directory.
206
207 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
208
209         * concord.c (Fconcord_object_put): Use `member' instead of `memq'.
210         (Fconcord_object_adjoin): New function.
211         (Fconcord_object_adjoinX): New function.
212         (syms_of_concord): Defsubred `Fconcord_object_adjoin' and
213         `Fconcord_object_adjoinX'.
214
215 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
216
217         * concord.c:
218         - Include "elconcord.h".
219         - Move EXFUNs for `Fconcord_decode_object', `Fconcord_object_put'
220           and `Fconcord_object_get' to elconcord.h.
221         (Lisp_CONCORD_DS): Moved to elconcord.h.
222         (struct Lisp_CONCORD_DS): Ditto.
223         (XCONCORD_DS): Ditto.
224         (XSET_CONCORD_DS): Ditto.
225         (CONCORD_DS_P): Ditto.
226         (CHECK_CONCORD_DS): Ditto.
227         (CONCHECK_CONCORD_DS): Ditto.
228         (Lisp_CONCORD_Object): Ditto.
229         (struct Lisp_CONCORD_Object): Ditto.
230         (XCONCORD_OBJECT): Ditto.
231         (XSET_CONCORD_OBJECT): Ditto.
232         (CONCORD_OBJECT_P): Ditto.
233         (CHECK_CONCORD_OBJECT): Ditto.
234         (CONCHECK_CONCORD_OBJECT): Ditto.
235         (CONCORD_OBJECT_GENRE): Ditto.
236         (CONCORD_OBJECT_ID): Ditto.
237         (XCONCORD_OBJECT_ID): Ditto.
238         (XCONCORD_OBJECT_GENRE): Ditto.
239         (concord_object_equal): New function.
240         (LRECORD_IMPLEMENTATION of "concord_object"): Use
241         `concord_object_equal'.
242
243         * elconcord.h: New file.
244
245 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
246
247         * concord.c (print_concord_object): Use readable form even if
248         `print-readably' is nil.
249
250 2010-11-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
251
252         * concord.c (print_concord_object): Don't display location of
253         data-source when `print-readably' is nil.
254
255 2010-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
256
257         * concord.c (Fconcord_genre_ds): Use Vchise_system_db_directory as
258         the default location of data-source.
259         (complex_vars_of_concord): Use Vchise_system_db_directory to
260         assign genre `character' and `feature'.
261
262         * chartab.h (Vchise_system_db_directory): New extern when
263         HAVE_CONCORD is defined.
264
265 2010-09-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
266
267         * concord.c: Include <chise.h> if HAVE_LIBCHISE is defined.
268         (Qcharacter): New variable when HAVE_LIBCHISE is defined.
269         (Qfeature): Ditto.
270         (Fconcord_object_genre): New function.
271         (syms_of_concord):
272         - Add new builtin symbols `character' and `feature' when
273           HAVE_LIBCHISE is defined.
274         - Add Add new builtin function `concord-object-genre'.  
275         (complex_vars_of_concord): New function; assign genres `character'
276         and `feature' when HAVE_LIBCHISE is defined.
277
278 2010-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
279
280         * emacs.c (main_1): Call `complex_vars_of_concord' when
281         HAVE_CONCORD is defined.
282
283         * symsinit.h (complex_vars_of_concord): New prototype.
284
285 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
286
287         * chartab.c (allocate_character): Add `static'.
288
289 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
290
291         * chartab.c (allocate_character): New function.
292         (Fdefine_char): Use allocate_character().
293
294 2010-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
295
296         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.25
297         (ÅŒkawara).
298
299 2010-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
300
301         * chartab.c (save_uint8_byte_table): Fixed problem when a property
302         is unloaded.
303         (save_uint16_byte_table): Likewise.
304
305 2010-02-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
306
307         * chartab.c (Fchar_feature_property): New function when LIBCHISE
308         is enabled.
309         (Fput_char_feature_property): Likewise.
310         (syms_of_chartab): Add new builtin functions
311         `char-feature-property' and `put-char-feature-property' when
312         LIBCHISE is enabled.
313
314 2009-04-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
315
316         * mule-charset.c (Fmake_charset): Add DOC-string of 'iso-ir and
317         '=>iso-ir.
318         (Fcharset_property): Regard '=>iso-ir as same as `iso_ir.
319
320 2009-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
321
322         * mule-charset.c (Qto_iso_ir): New variable for XEmacs CHISE.
323         (make_charset): Add new argument `iso_ir'.
324         (Fmake_charset): Add new property `=>iso-ir' in XEmacs CHISE.
325         (Fmake_reverse_direction_charset): Copy CHARSET_ISO_IR(cs) in
326         XEmacs CHISE.
327         (Fcharset_property): Support `iso-ir' in XEmacs CHISE.
328         (syms_of_mule_charset): Add new builtin symbol `=>iso-ir' in
329         XEmacs CHISE.
330         (complex_vars_of_mule_charset): Specify argument `iso_ir' of
331         function `make_charset'.
332
333         * char-ucs.h (LEADING_BYTE_*): Enclose negative value with ( ).
334         (struct Lisp_Charset): Add new member `iso_ir'.
335         (CHARSET_ISO_IR): New macro.
336
337 2009-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
338
339         * mule-charset.c (Fdecode_char): Fix problem when decoding GR
340         code-point by GL charset.
341
342 2008-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
343
344         * concord.c (concord_id_validate): New function.
345         (structure_type_create_concord): Use `concord_id_validate' instead
346         of `concord_name_validate' to accept integer and character as =id.
347
348 2008-09-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
349
350         * concord.c (func_for_each_object): Fix bug about GC-protection.
351
352 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
353
354         * concord.c (Fconcord_object_put): Check argument FEATURE is a
355         symbol.
356
357 2008-09-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
358
359         * text-coding.c (struct decoding_stream): Add new member
360         `bom_flag' in XEmacs CHISE.
361         (reset_decoding_stream): Ignore U+FEFF in the beginning of stream
362         in XEmacs CHISE.
363
364 2008-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
365
366         * mule-charset.c: Move definition of `=jis-x0208@1978' to
367         lisp/mule/mule-conf.el.
368
369 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
370
371         * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
372         (make_charset): Add new argument `partial'.
373         (Fmake_charset): Add new property 'partial in XEmacs CHISE.
374         (Fmake_reverse_direction_charset): Modify for `make_charset'.
375         (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
376         CHISE.
377         (complex_vars_of_mule_charset): Modify for `make_charset'; specify
378         `=jis-x0208' as a partial coded-charset.
379
380 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
381
382         * text-coding.c (decode_add_er_char): Fix problem when a character
383         represented by an entity-reference is not defined.
384
385 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
386
387         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
388         Qrep_*.
389
390 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
391
392         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
393         (Kasagi).
394
395 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
396
397         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
398         is a relation feature.
399
400 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
401
402         * chartab.c (syms_of_chartab): Define
403         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
404
405         * chartab.h (Q_denotational): New extern when UTF2000 or
406         HAVE_CONCORD is defined.
407         (Q_denotational_from): Likewise.
408         (Q_subsumptive): Likewise.
409         (Q_subsumptive_from): Likewise.
410
411 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
412
413         * concord.c (concord_object_put): New function.
414         (Fconcord_object_put): Use `concord_object_put'.
415
416 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
417
418         * concord.c (Fconcord_define_object): New function.
419         (syms_of_concord): Add new builtin function
420         `concord-define-object'.
421
422 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
423
424         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
425         (Kamo).
426
427 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
428
429         * concord.c: Add EXFUN for Fconcord_object_get.
430         (Vconcord_genre_object_hash_table): New variable.
431         (concord_genre_cache_get_object): New function.
432         (concord_genre_cache_put_object): New function.
433         (Fconcord_make_object): Use object cache; put object-ID into `=id'
434         feature.
435         (Fconcord_object_put): Call `concord_index_sync' after
436         `concord_index_strid_put_obj'.
437         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
438
439 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
440
441         * concord.c (Fconcord_decode_object): Do GCPRO for
442         Fconcord_make_object.
443         (func_for_each_object): Likewise; do GCPRO for
444         for_each_object_closure->function.
445         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
446         for_each_object_closure->function, for_each_object_closure->genre,
447         for_each_object_closure->ds and for_each_object_closure->ret.
448         (concord_object_validate): Do GCPRO for Fconcord_make_object.
449
450 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
451
452         * concord.c: Add EXFUNs for Fconcord_decode_object and
453         Fconcord_object_put.
454         (Fconcord_make_object): Change order of arguments.
455         (Fconcord_decode_object): Modify for Fconcord_make_object.
456         (func_for_each_object): Likewise.
457         (concord_object_validate): Likewise.
458         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
459
460 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
461
462         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
463
464 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
465
466         * concord.c (Fconcord_decode_object): Try to use readable print
467         form as a key of Concord-index.
468         (Fconcord_object_get): Try to use readable print form as an ID of
469         Concord-object.
470         (Fconcord_object_put): Try to use readable print form as an ID of
471         Concord-object and a feature value.
472         (Fconcord_object_spec): Try to use readable print form as an ID of
473         Concord-object.
474
475 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
476
477         * concord.c (print_concord_object): Support readable form.
478
479 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
480
481         * emacs.c (main_1): Call `structure_type_create_concord' when
482         HAVE_CONCORD is defined.
483
484         * symsinit.h (structure_type_create_concord): New prototype.
485
486         * concord.c (Qconcord_object): New variable.
487         (Qgenre): Likewise.
488         (Q_id): Likewise.
489         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
490         for directory.
491         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
492         char*> for genre-name.
493         (Fconcord_feature_list): Likewise.
494         (Fconcord_make_object): Likewise.
495         (Fconcord_decode_object): Likewise; use <char*> instead of
496         <unsigned char*> for feature_name and strid.
497         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
498         c_obj and feature_name.
499         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
500         char*> for c_value.
501         (struct closure_for_object_spec): Use <char*> instead of <unsigned
502         char*> for member `object_id'.
503         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
504         char*> for feature-name.
505         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
506         for c_obj.
507         (func_for_each_object): Cast to avoid warnings.
508         (Fconcord_foreach_object_in_feature): Use <char*> instead of
509         <unsigned char*> for genre_name and feature_name.
510         (concord_name_validate): New function.
511         (concord_object_validate): Likewise.
512         (concord_object_instantiate): Likewise.
513         (syms_of_concord): Add new builtin symbols `concord-object',
514         `genre' and `=id'.
515         (structure_type_create_concord): New function.
516
517 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
518
519         * concord.c (Vconcord_ds_hash_table): New variable.
520         (Vconcord_genre_hash_table): New variable.
521         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
522         (Fconcord_ds_directory): New function.
523         (Fconcord_assign_genre): New function.
524         (Fconcord_genre_directory): New function.
525         (Fconcord_genre_ds): New function.
526         (Fconcord_feature_list): Allow to omit `ds'.
527         (Fconcord_make_object): Likewise.
528         (Fconcord_decode_object): Likewise.
529         (Fconcord_foreach_object_in_feature): Likewise.
530         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
531         Fconcord_assign_genre, Fconcord_genre_directory and
532         Fconcord_genre_ds.
533         (vars_of_concord): Setup Vconcord_ds_hash_table and
534         Vconcord_genre_hash_table.
535
536 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
537
538         * concord.c (struct closure_for_each_object): Add new member
539         `ret'.
540         (func_for_each_object): Setup the return value to
541         `for_each_object_closure->ret'.
542         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
543         returns the value instead of Qt.
544
545 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
546
547         * concord.c: New file.
548
549 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
550
551         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
552         `lrecord_type_concord_object'.
553
554 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
555
556         * symsinit.h (syms_of_concord): New prototype.
557         (vars_of_concord): New prototype.
558
559         * emacs.c (main_1): Setup symbols and variable about concord if
560         HAVE_CONCORD is defined.
561
562         * config.h.in (HAVE_CONCORD): New macro.
563
564 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
565
566         * chartab.c (Fput_char_attribute): For each character relation
567         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
568
569 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
570
571         * chartab.c (Fput_char_attribute): Use
572         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
573         calling `put_char_composition'.
574
575 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
576
577         * chartab.c (Q_halfwidth_of): New variable.
578         (put_char_composition): Return `<-halfwidth' instead of
579         `=decomposition' for compatibility mapping to single character
580         tagged `narrow'.
581         (Fput_char_attribute): Convert char-specs in value of
582         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
583         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
584         for `<-halfwidth'.
585         (syms_of_chartab): Add new symbol `<-halfwidth'.
586
587 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
588
589         * chartab.c (put_char_composition): Return
590         `<-formed@{isolated|initial|medial|final}' for compatibility
591         mapping to single character tagged
592         `{isolated|initial|medial|final}'.
593
594 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
595
596         * chartab.c (Q_compat_of): Deleted.
597         (put_char_composition): Return `<-FOO' for compatibility mapping
598         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
599         of `symbol_name (XSYMBOL(...))'.
600         (Fput_char_attribute): Convert char-specs in value of
601         `{<-|->}font[^*]*' to characters and put reverse links.
602         (Fsave_char_attribute_table): Don't refer Q_compat_of.
603         (syms_of_chartab): Delete builtin symbol `<-compat'.
604
605 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
606
607         * chartab.c (Q_circled_of): New variable.
608         (put_char_composition): Return `<-circled' instead of
609         `=decomposition' for compatibility mapping to single character
610         tagged `circle'.
611         (Fput_char_attribute): Convert char-specs in value of
612         `{<-|->}circled[^*]*' to characters and put reverse links.
613         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
614         for `<-circled'.
615         (syms_of_chartab): Add new symbol `<-circled'.
616
617 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
618
619         * chartab.c (Qto_decomposition_at_circled): New variable.
620         (put_char_composition): Return `=>decomposition@circled' instead
621         of `=decomposition' for compatibility decomposition mapping tagged
622         `circle'.
623         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
624
625 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
626
627         * chartab.c (Q_subscript_of): New variable.
628         (put_char_composition): Return `<-subscript' instead of
629         `=decomposition' for compatibility mapping to single character
630         tagged `sub'.
631         (Fput_char_attribute): Convert char-specs in value of
632         `{<-|->}subscript[^*]*' to characters and put reverse links.
633         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
634         for `<-subscript'.
635         (syms_of_chartab): Add new symbol `<-subscript'.
636
637 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
638
639         * chartab.c (Q_superscript_of): New variable.
640         (put_char_composition): Return `<-superscript' instead of
641         `=decomposition' for compatibility mapping to single character
642         tagged `super'.
643         (Fput_char_attribute): Convert char-specs in value of
644         `{<-|->}superscript[^*]*' to characters and put reverse links.
645         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
646         for `<-superscript'.
647         (syms_of_chartab): Add new symbol `<-superscript'.
648
649 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
650
651         * chartab.c (Qto_decomposition_at_compat): Deleted.
652         (Qto_decomposition_at_superscript): New variable.
653         (put_char_composition): Use `=>decomposition@superscript' instead
654         of `=decomposition' for compatibility decomposition mapping tagged
655         `super'.
656         (Fput_char_attribute): Fix condition about `put_char_composition'.
657         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
658         add news symbol `=>decomposition@superscript'.
659
660 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
661
662         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
663         for compatibility decomposition mapping tagged FOO.
664         (Fput_char_attribute): Modify for `put_char_composition'.
665
666 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
667
668         * chartab.c (Qto_decomposition_at_compat): New variable.
669         (Q_compat_of): Renamed from `Q_compatibility_of'.
670         (put_char_composition): Rename `Q_compatibility_of' to
671         `Q_compat_of'; return `=>decomposition@compat' for compatibility
672         decomposition mapping.
673         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
674         `Q_compat_of'.
675         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
676         `<-compatibility' to `<-compat'.
677
678 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
679
680         * chartab.c (Q_compatibility_of): New variable.
681         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
682         object is proved to be a cons cell; return `<-compatibility' if
683         the first element of argument `value' is `compat'.
684         (Fput_char_attribute): Eliminate the first value if
685         `put_char_composition' returns `<-compatibility'.
686         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
687         for `<-compatibility'.
688         (syms_of_chartab): Add new symbol `<-compatibility'.
689
690 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
691
692         * chartab.c (Q_canonical): New variable.
693         (put_char_composition): Return a feature name: return
694         `->canonical' if argument `value' specifies single character.
695         (Fput_char_attribute): Use `put_char_composition' to determine
696         feature name for `=decomposition' or `->denotational'.
697         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
698         for `->canonical'.
699         (syms_of_chartab): Add new symbol `->canonical'.
700
701 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
702
703         * chartab.c (Qmap_decomposition): New variable.
704         (Fput_char_attribute): Convert `->decomposition' to
705         `=decomposition'.
706         (syms_of_chartab): Add new symbol `=decomposition'.
707
708 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
709
710         * chartab.c (Fget_range_char_table): Fix serious problem when
711         `range' is nil.
712
713 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
714
715         * chartab.c (char_table_get_db): Use `read_from_c_string'.
716
717 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
718
719         * lread.c (read_from_c_string): New function.
720
721         * lisp.h (read_from_c_string): New prototype.
722
723 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
724
725         * chartab.c (Fput_char_attribute): Convert char-specs in value of
726         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
727         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
728         for `{<-|->}Oracle-Bones[^*]*'.
729
730 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
731
732         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
733         (Kizu).
734
735 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
736
737         * text-coding.c (Qccs_priority_list): New variable in XEmacs
738         CHISE.
739         (Fmake_coding_system): Support new property `ccs-priority-list' in
740         XEmacs CHISE.
741         (Fcoding_system_property): Likewise.
742         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
743         Vdefault_coded_charset_priority_list in XEmacs CHISE.
744         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
745         XEmacs CHISE.
746         (complex_vars_of_file_coding): Define new coding-system-property
747         `ccs-priority-list' in XEmacs CHISE.
748
749         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
750
751 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
752
753         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
754         changed to normal function.
755         (encode_char_2): Likewise.
756
757         * mule-charset.c (decoding_table_put_char): Copied from
758         char-ucs.h; changed to normal function.
759         (encode_char_2): Likewise.
760
761 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
762
763         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
764         New extern.
765         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
766         (encode_char_2_search_children): New inline function.
767         (encode_char_2): Refer
768         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
769         and use `encode_char_2_search_children'.
770
771 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
772
773         * mule-charset.c
774         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
775         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
776         (vars_of_mule_charset): Add new variable
777         `display-coded-charset-priority-use-inheritance' and
778         `display-coded-charset-priority-use-hierarchy-order'.
779
780 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
781
782         * char-ucs.h (Q_subsumptive): New extern.
783         (Q_denotational): Likewise.
784         (encode_char_2): Search children specified by `->subsumptive' and
785         `->denotational'.
786
787 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
788
789         * mule-charset.c (complex_vars_of_mule_charset): Modify the
790         X-registry of `ucs-bmp'.
791
792 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
793
794         * chartab.c (char-variants): Refer `->subsumptive',
795         `->denotational' and `->identical' as same as `->ucs-unified'.
796
797 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
798
799         * chartab.c (Fput_char_attribute): Convert char-specs in value of
800         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
801         links.
802
803 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
804
805         * text-coding.c: Add EXFUN for `Fregexp_quote'.
806         (decode_add_er_char): Fix problem about infinite loop when a CCS
807         specified in `coded-charset-entity-reference-alist' is not
808         existed.
809
810 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
811
812         * mule-charset.c (syms_of_mule_charset): Rename
813         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
814
815 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
816
817         * fns.c (simplify_char_spec): Don't allocate new character-object
818         if specified char_spec does not have any CCS-features.
819
820         * chartab.h: Add EXFUN for Fdefine_char.
821
822         * chartab.c: Delete EXFUN for Fdefine_char.
823
824 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
825
826         * fns.c (simplify_char_spec): Use Fdefine_char instead of
827         Ffind_char for char-spec.
828
829 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
830
831         * lisp-disunion.h (XCHARVAL): Fix condition about
832         SIZEOF_EMACS_INT.
833
834 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
835
836         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
837         <int> for `code'.
838         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
839         point; use <Emchar> instead of <int> for character-id.
840
841 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
842
843         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
844         (make_char): Likewise.
845         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
846         environment.
847         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
848         instead of <int> as the type of return value; use <Lisp_Object>
849         instead of <Emchar> as the type of argument.
850         (XCHARVAL[macro version]): Cast the result into <Emchar>.
851
852         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
853         syntaxcode> instead of <int>.
854
855 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
856
857         * chartab.c (put_char_composition): Use DECODE_CHAR to get
858         character corresponding with UCS code point.
859         (Fput_char_attribute): Likewise.
860
861         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
862         character in the UCS decoding-table if the char-id is not equal to
863         the UCS code point.
864
865 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
866
867         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
868         for aliases; write `description'; write
869         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
870         not 0.
871
872 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
873
874         * chartab.c (Fsave_char_attribute_table): Don't use
875         `save_charset_properties'.
876
877         * mule-charset.c (Fsave_charset_properties): Renamed from
878         `save_charset_properties' and changed to Lisp function again;
879         write property `type' as `CCS'; write properties `final-byte' and
880         `mother' if they exists.
881         (syms_of_mule_charset): Revive builtin function
882         `save-charset-properties' when HAVE_LIBCHISE is defined.
883
884 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
885
886         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
887         instead of Vexec_directory.
888         (char_attribute_system_db_file): Likewise.
889
890 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
891
892         * chartab.c (Fsave_char_attribute_table): Use
893         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
894         defined.
895
896         * mule-charset.c (save_charset_properties): Renamed from
897         `Fsave_charset_properties'; changed to non-Lisp function.
898         (syms_of_mule_charset): Abolish builtin function
899         `save-charset-properties'.
900
901 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
902
903         * mule-charset.c (Fsave_charset_properties): New function when
904         HAVE_LIBCHISE is defined.
905         (syms_of_mule_charset): Add new builtin function
906         `save-charset-properties' when HAVE_LIBCHISE is defined.
907
908 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
909
910         * chartab.c (Fput_char_attribute): Convert char-specs in value of
911         `{<-|->}ancient[^*]*' to characters and put reverse links.
912         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
913         for `{<-|->}ancient[^*]*'.
914
915 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
916
917         * chartab.c (Fput_char_attribute): Convert char-specs in value of
918         `{<-|->}original[^*]*' to characters and put reverse links.
919         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
920         for `{<-|->}original[^*]*'.
921
922 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
923
924         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
925
926 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
927
928         * mule-charset.c (Qsystem_char_id): New variable.
929
930         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
931         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
932
933 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
934
935         * chartab.c (Fput_char_attribute): When processing a reference of
936         a character, put into the end of the reversed reference of each
937         target character.
938
939 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
940
941         * chartab.c (Q_same): Deleted.
942         (Q_same_of): Deleted.
943         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
944         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
945         for `{<-|->}same'.
946         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
947
948 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
949
950         * chartab.c (Q_vulgar): Deleted.
951         (Q_vulgar_of): Deleted.
952         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
953         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
954         for `{<-|->}vulgar'.
955         (syms_of_chartab): Don't define `{<-|->}vulgar'.
956
957 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
958
959         * chartab.c (Fput_char_attribute): Convert char-specs in value of
960         `{<-|->}wrong[^*]*' to characters and put reverse links.
961         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
962         for `{<-|->}wrong[^*]*'.
963
964 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
965
966         * chartab.c (Q_vulgar): New variable.
967         (Q_vulgar_of): New variable.
968         (Fput_char_attribute): Convert char-specs in value of
969         `{->|<-}vulgar' to characters and put reverse links.
970         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
971         for `{->|<-}vulgar'.
972         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
973
974 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
975
976         * text-coding.c (decode_add_er_char): Must to quote prefix string
977         as regexp.
978
979 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
980
981         * mule-charset.c (put_char_ccs_code_point): Store characters of
982         =ucs whose code_points >= 0xF0000.
983
984 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
985
986         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
987         CHISE.
988         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
989         CHISE.
990         (complex_vars_of_mule_charset): Add new coded-charset
991         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
992         builtin characters over 0xEFFFF.
993
994         * chartab.c (syms_of_chartab): Don't define symbol
995         `system-char-id' in every case.
996
997         * char-ucs.h (Qsystem_char_id): New extern variable.
998         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
999
1000 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1001
1002         * text-coding.c (char_encode_utf8): Try to use entity-references
1003         for U-000F0000 ...  U-0010FFFF.
1004
1005 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1006
1007         * text-coding.c (ER_BUF_SIZE): New macro.
1008         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
1009         `er_buf'.
1010         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
1011         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
1012
1013 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1014
1015         * chartab.c (find_char_feature_in_family): New function.
1016         (Fchar_feature): Use `find_char_feature_in_family' with
1017         `->identical', `<-subsumptive' and `<-denotational'.
1018
1019 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1020
1021         * text-coding.c (char_encode_as_entity_reference): Allow prefix
1022         within 8 characters; fix infinite loop.
1023
1024 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1025
1026         * chartab.c (Q_same): New variable.
1027         (Q_same_of): New variable.
1028         (Fput_char_attribute): Convert char-specs in value of
1029         `{->|<-}same' to characters and put reverse links.
1030         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
1031         for `{->|<-}same'.
1032         (syms_of_chartab): Add new symbols `{->|<-}same'.
1033
1034 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1035
1036         * chartab.c (Q_component): New variable.
1037         (Q_component_of): Likewise.
1038         (Fput_char_attribute): Convert char-specs in value of
1039         `{->|<-}ideographic-component-forms' to characters and put reverse
1040         links.
1041         (syms_of_chartab): Add new symbols
1042         `{->|<-}ideographic-component-forms'.
1043
1044 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1045
1046         * chartab.c (Q_identical): New variable.
1047         (Q_identical_from): New variable.
1048         (Fchar_feature): Regard `->identical' as a feature to find
1049         ancestors.
1050         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
1051         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
1052         for `{->|<-}identical'.
1053         (syms_of_chartab): Add new symbols `{->|<-}identical'.
1054
1055 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1056
1057         * char-ucs.h (encode_char_2): New inline function.
1058         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
1059
1060 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1061
1062         * chartab.c (Fput_char_attribute): Convert char-specs to
1063         characters in value of `ideographic-structure'.
1064         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
1065         for `{<-|->}simplified(@...)'.
1066         (Fdefine_char): Try to use predefined character's id.
1067
1068 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1069
1070         * fns.c (simplify_char_spec): Try to convert builtin chars to
1071         defined chars.
1072
1073 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1074
1075         * chartab.c (Fput_char_attribute): Convert char-specs in value of
1076         `<-simplified[^*]*' to characters and put reverse links.
1077
1078 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1079
1080         * chartab.c (Q_subsumptive): Renamed from Q_unified.
1081         (Q_subsumptive_from): Renamed from Q_unified_from.
1082         (Fchar_feature): Use `Q_subsumptive_from' instead of
1083         `Q_unified_from'.
1084         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
1085         `Q_unified'.
1086         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
1087         `<-unified' to `<-subsumptive'.
1088
1089 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1090
1091         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
1092         inheritance itself; fix typo; stop recursive search if cyclic
1093         inheritance is found.
1094
1095 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1096
1097         * chartab.c (Q_denotational): New variable.
1098         (Q_denotational_from): New variable.
1099         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
1100         (put_char_attribute): New function.
1101         (Fput_char_attribute): Use `put_char_attribute'; regard
1102         `->denotational' and `<-denotational' as same as `->unified' and
1103         `<-unified'.
1104         (syms_of_chartab): Add new symbols `->denotational' and
1105         `<-denotational'.
1106
1107 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1108
1109         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
1110         `Fget_char_attribute'.
1111         (Fchar_variants): Likewise.
1112         (get_char_table): Likewise.
1113         (Fchar_feature): New function.
1114         (put_char_composition): Use `Fchar_feature' instead of
1115         `Fget_char_attribute'.
1116         (Fput_char_attribute): Likewise; don't put the target character
1117         into its `->unified' value.
1118         (syms_of_chartab): Add new builtin function `char-feature'.
1119
1120 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1121
1122         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
1123         `Fget_char_attribute'.
1124         (char_encode_utf8): Likewise.
1125
1126         * chartab.h: Add an EXFUN for `Fchar_feature'.
1127
1128 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1129
1130         * chartab.c (Vnext_defined_char_id): New variable.
1131         (Fput_char_attribute): Accept characters in `->unified'.
1132         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
1133         new characters which are not related with builtin char-id ranges.
1134         (vars_of_chartab): Add new variable `next-defined-char-id'.
1135
1136 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1137
1138         * chartab.c (Q_unified): New variable.
1139         (Q_unified_from): New variable.
1140         (Fput_char_attribute): Add code for `->unified'.
1141         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
1142         XEmacs CHISE.
1143
1144 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1145
1146         * mule-charset.c (decode_ccs_conversion): New function.
1147         (decode_defined_char): Use `decode_ccs_conversion'.
1148         (decode_builtin_char): Likewise.
1149
1150 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1151
1152         * char-ucs.h: Change some charset-ids of private coded-charsets.
1153
1154 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1155
1156         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
1157         (char_encode_as_entity_reference): Likewise.
1158         (decode_coding_big5): Modify for `decode_defined_char' and
1159         `DECODE_CHAR'.
1160         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
1161         avoid compiler warning.
1162         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
1163
1164         * mule-charset.c (decode_defined_char): Add new argument
1165         `without_inheritance'.
1166         (Fdecode_char): Add new optional argument `without_inheritance'.
1167         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1168
1169         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
1170         (simplify_char_spec): Likewise.
1171
1172         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
1173         setting.
1174
1175         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
1176         (map_char_table): Likewise.
1177         (Fdefine_char): Use `Fdecode_char' without inheritance.
1178         (Ffind_char): Modify for `Fdecode_char'.
1179
1180         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
1181
1182         * char-ucs.h (decode_defined_char): Add new argument
1183         `without_inheritance'.
1184         (DECODE_CHAR): Likewise.
1185         (MAKE_CHAR): Modify for `DECODE_CHAR'.
1186
1187 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1188
1189         * chartab.c (Vchise_system_db_directory): New variable.
1190         (vars_of_chartab): Add new variable `chise-system-db-directory'.
1191
1192 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1193
1194         * chartab.c: EXFUN `Fmount_char_attribute_table'.
1195         (print_chartab_range): Don't define when `UTF2000' is defined.
1196         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
1197         `CHISE_DS_open'.
1198
1199 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1200
1201         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
1202         and optional argument `rehash' is specified, call
1203         `open_chise_data_source_maybe' before
1204         `chise_ds_foreach_char_feature_name' is called.
1205
1206 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1207
1208         * chartab.c (char_attribute_list_reset_map_func): New function
1209         when HAVE_LIBCHISE is defined.
1210         (Fchar_attribute_list): Add new optional argument `rehash' when
1211         HAVE_LIBCHISE is defined.
1212         (open_chise_data_source_maybe): Use "chise-db" instead of
1213         "char-db".
1214         (char_attribute_system_db_file): Likewise.
1215         (Fload_char_attribute_table): Use
1216         `chise_feature_foreach_char_with_value' instead of
1217         `chise_char_feature_value_iterate'.
1218
1219 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1220
1221         * chartab.c (Vchise_db_directory): New variable.
1222         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
1223
1224 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1225
1226         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
1227         instead of HAVE_CHISE to specify using with libchise.
1228
1229         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
1230
1231         * chartab.h: Don't use HAVE_CHISE_CLIENT.
1232
1233         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
1234         defined or HAVE_LIBCHISE_LIBCHISE is defined.
1235         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
1236         is defined.
1237         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
1238         HAVE_CHISE to specify using with libchise.
1239         (syms_of_chartab): Don't define symbol `system-char-id' when
1240         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
1241
1242 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1243
1244         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1245         specify CHISE DB support.
1246         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
1247         of `char_attribute_system_db_file' to check feature DB file.
1248
1249         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
1250         HAVE_CHISE_CLIENT to specify CHISE DB support.
1251
1252         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1253         specify CHISE DB support.
1254         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
1255         not defined.
1256         (Freset_char_attribute_table): Use `chise_feature_setup_db'
1257         instead of `char_attribute_system_db_file' to check feature DB
1258         file.
1259
1260 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1261
1262         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
1263         `HAVE_CHISE_CLIENT'.
1264
1265 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1266
1267         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
1268         (Fsave_charset_mapping_table): Don't use
1269         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1270
1271         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
1272         (HAVE_LIBCHISE): New macro.
1273
1274         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
1275
1276         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
1277         (Fsave_char_attribute_table): Don't use
1278         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1279
1280 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1281
1282         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
1283         defined.
1284         (save_uint16_byte_table): Likewise.
1285         (save_byte_table): Likewise.
1286         (char_table_get_db): Use `chise_ds_load_char_feature_value'
1287         instead of `chise_char_load_feature_value'.
1288         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
1289
1290 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1291
1292         * chartab.h (struct Lisp_Char_Table): Delete member
1293         `feature_table' if CHISE is defined.
1294
1295         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
1296         (Fcopy_char_table): Likewise.
1297         (char_table_open_db_maybe): Likewise.
1298         (char_table_close_db_maybe): Likewise.
1299         (char_table_get_db): Likewise.
1300         (Fmount_char_attribute_table): Likewise.
1301         (Fload_char_attribute_table): Likewise.
1302
1303 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1304
1305         * mule-charset.c (load_char_decoding_entry_maybe): Use
1306         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
1307         `chise_ccs_decode'.
1308
1309 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1310
1311         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
1312         instead of `chise_open_data_source'.
1313         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
1314         `chise_ds_close'.
1315
1316 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1317
1318         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
1319         instead of `chise_ds_open_feature_table'.
1320         (char_table_close_db_maybe): Don't use `chise_ft_close'.
1321
1322 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1323
1324         * mule-charset.c (Fsave_charset_mapping_table): Use
1325         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
1326         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
1327         `chise_ccs_sync' instead of `chise_ccst_close'.
1328         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
1329
1330         * chartab.c (open_chise_data_source_maybe): Modify for
1331         `chise_open_data_source'.
1332         (char_table_open_db_maybe): Modify for
1333         `chise_ds_open_feature_table'.
1334
1335 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1336
1337         * mule-charset.c (load_char_decoding_entry_maybe): Use
1338         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
1339         `chise_ccst_close'.
1340
1341 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1342
1343         * mule-charset.c (Fsave_charset_mapping_table): Use
1344         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
1345         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
1346         `chise_dt_put_char' and `chise_dt_close'.
1347         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
1348         `chise_ccs_decode' and `chise_ccst_close' instead of
1349         `chise_ds_open_decoding_table', `chise_dt_get_char' and
1350         `chise_dt_close'.
1351
1352         * chartab.c (char_table_get_db): Use
1353         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
1354         (load_char_attribute_table_map_func): Modify for
1355         `chise_char_feature_value_iterate'.
1356         (Fload_char_attribute_table): Use
1357         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
1358
1359 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1360
1361         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
1362
1363 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1364
1365         * chartab.c (put_char_table): Modify for inherited coded-charsets
1366         in XEmacs CHISE.
1367
1368 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1369
1370         * chartab.c (Fput_char_table_map_function): Fixed.
1371         (word_boundary_p): Don't check charset in XEmacs CHISE.
1372
1373 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1374
1375         * mule-charset.c (Fsave_charset_mapping_table): Use
1376         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1377         instead of `chise_open_decoding_table'; refer
1378         `default_chise_data_source'; use `chise_dt_close' instead of
1379         `chise_close_decoding_table'.
1380         (load_char_decoding_entry_maybe): Likewise.
1381
1382         * chartab.c (default_chise_data_source): New variable when `CHISE'
1383         is defined.
1384         (Fcopy_char_table): `ct->ds' is deleted.
1385         (open_chise_data_source_maybe): New function.
1386         (Fclose_char_data_source): New function.
1387         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1388         use `chise_ds_open_feature_table' instead of
1389         `chise_open_feature_table'.
1390         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1391         `chise_close_feature_table'; `cit->ds' is deleted.
1392         (syms_of_chartab): Add new builtin function
1393         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1394
1395         * chartab.h (default_chise_data_source): New extern variable.
1396         (open_chise_data_source_maybe): New prototype.
1397         (struct Lisp_Char_Table): Delete `ds'.
1398
1399 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1400
1401         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1402         `CHISE' is defined.
1403
1404 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1405
1406         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1407         not defined; add code for non-libchise setting.
1408         (char_table_close_db_maybe): Likewise.
1409         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1410         defined.
1411         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1412         even if `CHISE' is not defined.
1413         (Freset_char_attribute_table): Likewise.
1414         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1415         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1416         `char_table_get_db'.
1417         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1418         `char_table_close_db_maybe' even if `CHISE' is not defined.
1419
1420 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1421
1422         * chartab.c (char_table_open_db_maybe): New function.
1423         (char_table_close_db_maybe): New function.
1424         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1425         (Freset_char_attribute_table): Likewise.
1426         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1427         `char_table_close_db_maybe'.
1428         (Fload_char_attribute_table): Likewise.
1429
1430 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1431
1432         * chartab.c: Don't include <chise.h> because it is included in
1433         chartab.h.
1434         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1435         defined.
1436         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1437         `CHISE' is defined.
1438         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1439         `CHISE' is defined.
1440         (Fclose_char_attribute_table): Close `ct->feature_table' and
1441         `ct->ds' when `CHISE' is defined.
1442         (Freset_char_attribute_table): Likewise.
1443         (load_char_attribute_maybe): Use `cit->ds' and
1444         `cit->feature_table' when `CHISE' is defined.
1445         (Fload_char_attribute_table): Likewise.
1446
1447         * chartab.h: Include <chise.h> when `CHISE' is defined.
1448         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1449         when `CHISE' is defined.
1450
1451 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1452
1453         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1454         is defined.
1455         (char_table_description): Likewise.
1456         (Fmake_char_table): Likewise.
1457         (Fcopy_char_table): Likewise.
1458         (Fmount_char_attribute_table): Likewise.
1459         (Fclose_char_attribute_table): Likewise.
1460         (Freset_char_attribute_table): Likewise.
1461         (load_char_attribute_maybe): Likewise.
1462         (Fload_char_attribute_table): Likewise.
1463
1464         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1465         defined.
1466
1467 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1468
1469         * chartab.c (load_char_attribute_table_map_func): New function
1470         when CHISE is defined.
1471         (Qload_char_attribute_table_map_function): Don't define when CHISE
1472         is defined.
1473         (Fload_char_attribute_table_map_function): Likewise.
1474         (Fload_char_attribute_table): Use libchise when `CHISE' is
1475         defined.
1476         (syms_of_chartab): Don't define
1477         `load-char-attribute-table-map-function' when CHISE is defined.
1478
1479 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1480
1481         * chartab.c: Include <chise.h> when `CHISE' is defined.
1482         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1483
1484 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1485
1486         * mule-charset.c (charset_code_point): Fix problem when searching
1487         in mother CCS fails with `defined_only' mode.
1488
1489 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1490
1491         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1492         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1493         (put_char_composition): Likewise.
1494         (Fput_char_attribute): Likewise.
1495         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1496
1497 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1498
1499         * chartab.c (Q_ucs): Deleted.
1500         (Fput_char_attribute): Don't refer `->ucs'.
1501         (Fdefine_char): Likewise.
1502         (Ffind_char): Likewise.
1503         (syms_of_chartab): Delete `->ucs'.
1504
1505 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1506
1507         * mule-charset.c (Qmap_cns11643_2): Renamed from
1508         `Qchinese_cns11643_2'.
1509         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1510         `chinese-cns11643-2'.
1511         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1512         `=cns11643-2'.
1513
1514 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1515
1516         * mule-charset.c (Qmap_cns11643_1): Renamed from
1517         `Qchinese_cns11643_1'.
1518         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1519         `chinese-cns11643-1'.
1520         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1521         `=cns11643-1'.
1522
1523 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1524
1525         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1526         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1527         `chinese-gb12345'.
1528         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1529         `=gb12345'.
1530
1531 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1532
1533         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1534         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1535         `chinese-gb2312'.
1536         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1537         `=gb2312'.
1538
1539 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1540
1541         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1542         (syms_of_mule_charset): Add new symbol `=big5' instead of
1543         `chinese-big5'.
1544         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1545
1546 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1547
1548         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1549         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1550         `korean-ksc5601'.
1551         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1552         `=ks-x1001'.
1553
1554 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1555
1556         * mule-charset.c (Qmap_jis_x0212): Renamed from
1557         `Qjapanese_jisx0212'.
1558         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1559         `japanese-jisx0212'.
1560         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1561         `=jis-x0212'.
1562
1563 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1564
1565         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1566         `Qjapanese_jisx0208'.
1567         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1568         of `japanese-jisx0208'.
1569         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1570         `=jis-x0208-1983'.
1571
1572 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1573
1574         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1575         `Qjapanese_jisx0208_1978'.
1576         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1577         of `japanese-jisx0208-1978'.
1578         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1579         `=jis-x0208-1978'.
1580
1581 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1582
1583         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1584         only for XEmacs CHISE.
1585
1586 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1587
1588         * char-ucs.h: Compact non-ISO-IR charset-ids.
1589         (LEADING_BYTE_UCS): Changed to -177.
1590         (LEADING_BYTE_CONTROL_1): Changed to -77.
1591         (LEADING_BYTE_UCS_BMP): Changed to -176.
1592         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1593
1594 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1595
1596         * mule-charset.c (Qiso_ir): New variable.
1597         (Fmake_charset): Recognise new property `iso-ir'.
1598         (syms_of_mule_charset): Add new symbol `iso-ir'.
1599
1600 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1601
1602         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1603         n to -n; charset-id of non ISO-IR sets are changed to positive
1604         numbers.
1605
1606 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1607
1608         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1609         for &MCS-XXXXXXXX; values.
1610
1611 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1612
1613         * mule.c (Vxemacs_chise_version): Renamed from
1614         `Vutf_2000_version'.
1615         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1616         `utf-2000-version' as an alias for `xemacs-chise-version'.
1617
1618 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1619
1620         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1621         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1622         defined.
1623
1624         * config.h.in (CHISE): New macro.
1625
1626 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1627
1628         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1629         of `ucs'.
1630         (Qmap_ucs): New variable.
1631         (syms_of_mule_charset): Add new symbol `=ucs'.
1632         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1633
1634         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1635         (simplify_char_spec): Likewise.
1636
1637         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1638
1639         * char-ucs.h (Qmap_ucs): New extern variable.
1640
1641 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1642
1643         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1644         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1645         don't define it when UTF2000 is not defined.
1646         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1647         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1648         when UTF2000 is not defined.
1649         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1650         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1651
1652 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1653
1654         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1655
1656         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1657         (Qucs_gb): Deleted.
1658         (syms_of_mule_charset): Delete `ucs-gb'.
1659         (complex_vars_of_mule_charset): Likewise.
1660
1661 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1662
1663         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1664
1665         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1666         (Qucs_cns): Deleted.
1667         (syms_of_mule_charset): Delete `ucs-cns'.
1668         (complex_vars_of_mule_charset): Likewise.
1669
1670 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1671
1672         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1673
1674         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1675         (Qucs_jis): Deleted.
1676         (syms_of_mule_charset): Delete `ucs-jis'.
1677         (complex_vars_of_mule_charset): Likewise.
1678
1679 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1680
1681         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1682
1683         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1684         (Qucs_ks): Deleted.
1685         (syms_of_mule_charset): Delete `ucs-ks'.
1686         (complex_vars_of_mule_charset): Likewise.
1687
1688 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1689
1690         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1691         (Qideograph_daikanwa_2): Deleted.
1692         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1693         (complex_vars_of_mule_charset): Likewise.
1694
1695         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1696         (LEADING_BYTE_DAIKANWA_1): Deleted.
1697         (LEADING_BYTE_DAIKANWA_2): Deleted.
1698         (MIN_CHAR_DAIKANWA): Deleted.
1699         (MAX_CHAR_DAIKANWA): Deleted.
1700
1701 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1702
1703         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1704         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1705         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1706
1707         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1708         (Vcharset_ideograph_daikanwa): Deleted.
1709         (Qideograph_hanziku_{1..12}): Deleted.
1710         (Qideograph_daikanwa): Deleted.
1711         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1712         Vcharset_ideograph_daikanwa.
1713         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1714         `ideograph-hanziku-{1..12}'.
1715         (complex_vars_of_mule_charset): Likewise.
1716
1717 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1718
1719         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1720
1721         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1722         (Qideograph_gt_pj_{1..11}): Deleted.
1723         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1724         (complex_vars_of_mule_charset): Likewise.
1725
1726 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1727
1728         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1729         (Vcharset_ideograph_gt): Deleted.
1730         (Qucs_big5): Deleted.
1731         (Qideograph_gt): Deleted.
1732         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1733         `ideograph-gt'.
1734         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1735         and `ideograph-gt'.
1736
1737         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1738         (LEADING_BYTE_GT): Deleted.
1739         (MIN_CHAR_GT): Deleted.
1740         (MAX_CHAR_GT): Deleted.
1741
1742 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1743
1744         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1745
1746 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1747
1748         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1749         (save_uint16_byte_table): Likewise.
1750         (save_byte_table): Likewise; convert values by it.
1751         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1752         for `ideographic-structure'.
1753         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1754         as the filter for `ideographic-structure'.
1755
1756 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1757
1758         * chartab.c (put_char_composition): New function.
1759         (Fput_char_attribute): Use `put_char_composition'; use
1760         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1761
1762         * fns.c (simplify_char_spec): New function.
1763         (char_ref_simplify_spec): New function.
1764         (Fchar_refs_simplify_char_specs): New function.
1765         (syms_of_fns): Add new builtin function
1766         `char-refs-simplify-char-specs'.
1767
1768 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1769
1770         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1771         (Qideograph_cbeta): Deleted.
1772         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1773         (complex_vars_of_mule_charset): Likewise.
1774
1775         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1776         (MIN_CHAR_CBETA): Comment out.
1777         (MAX_CHAR_CBETA): Likewise.
1778
1779 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1780
1781         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1782         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1783         CHISE client feature.
1784
1785 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1786
1787         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1788
1789 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1790
1791         * mule-charset.c (charset_lookup_description_1): Use
1792         `NUM_LEADING_BYTES' in UTF-2000.
1793
1794 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1795
1796         * char-ucs.h (GC_CHARSETP): Deleted.
1797
1798 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1799
1800         * char-ucs.h (MAX_CHAR_GT): Updated.
1801
1802 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1803
1804         * text-coding.c: Sync with XEmacs 21.4.10.
1805
1806 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1807
1808         * mule-charset.c (Vcharset_china3_jef): Deleted.
1809         (Qchina3_jef): Deleted.
1810         (syms_of_mule_charset): Don't define `china3-jef'.
1811         (complex_vars_of_mule_charset): Likewise.
1812
1813         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1814         (MIN_CHAR_CHINA3_JEF): Comment out.
1815         (MAX_CHAR_CHINA3_JEF): Comment out.
1816
1817 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1818
1819         * mule-charset.c (Vcharset_ucs_gb): New variable.
1820         (Qucs_gb): New variable.
1821         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1822         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1823
1824         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1825
1826 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1827
1828         * mule-charset.c (charset_code_point): if a coded-charset has a
1829         final-byte, don't inherit the builtin range of the mother CCS.
1830
1831 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1832
1833         * mule-charset.c (charset_code_point): Fix problem about
1834         inheritance.
1835
1836 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1837
1838         * mule-charset.c (decode_builtin_char): Reorganized.
1839
1840 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1841
1842         * text-coding.c (char_encode_as_entity_reference): Modify for
1843         `charset_code_point'.
1844         (char_encode_shift_jis): Likewise.
1845         (char_encode_big5): Likewise.
1846         (char_encode_utf8): Likewise.
1847         (char_encode_iso2022): Likewise.
1848
1849         * mule-charset.c (charset_code_point): Add new argument
1850         `defined_only'.
1851         (Fencode_char): Add new optional argument `defined_only'.
1852
1853         * chartab.c (put_char_table): Modify for `charset_code_point'.
1854
1855         * char-ucs.h (charset_code_point): Add new argument
1856         `defined_only'.
1857         (encode_char_1): Modify for `charset_code_point'.
1858
1859 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1860
1861         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1862         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1863
1864 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1865
1866         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1867         (Qjis_x0208): Likewise.
1868         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1869         XCHARSET_FINAL(charset).
1870         (charset_code_point): Modify condition for final-byte based
1871         builtin-chars.
1872         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1873         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1874         in UTF-2000; specify `=jis-x0208' as the mother of
1875         `japanese-jisx0208-1978', `japanese-jisx0208' and
1876         `japanese-jisx0208-1990' in UTF-2000.
1877
1878 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1879
1880         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1881
1882 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1883
1884         * text-coding.c (decode_coding_utf16): Support UTF-16.
1885         (char_encode_utf16): Fixed.
1886
1887 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1888
1889         * text-coding.c (Qutf16): New variable in MULE.
1890         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1891         (Fcoding_system_type): Add `utf-16' in MULE.
1892         (struct detection_state): Add a structure for utf16 in MULE.
1893         (detect_coding_type): Setup st->utf16.mask in MULE.
1894         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1895         MULE.
1896         (reset_encoding_stream): Use `char_encode_utf16' and
1897         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1898         (detect_coding_utf16): New function [incomplete].
1899         (decode_coding_utf16): New function [support only UCS-2].
1900         (char_encode_utf16): New function.
1901         (char_finish_utf16): New function.
1902         (syms_of_file_coding): Add new symbol `utf-16'; setup
1903         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1904
1905         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1906         UTF-2000.
1907         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1908         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1909
1910 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1911
1912         * chartab.c (put_char_table): When a charset is specified as a
1913         range in UTF-2000, don't support builtin characters.
1914
1915 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1916
1917         * mule-charset.c (decode_defined_char): Don't refer external
1918         database if Qunbound or Qnil are found.
1919         (Fsave_charset_mapping_table): Don't define it if
1920         HAVE_CHISE_CLIENT is not defined.
1921         (Freset_charset_mapping_table): New function.
1922         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1923         found in external database.
1924         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1925         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1926         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1927
1928 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1929
1930         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1931         not.
1932
1933 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1934
1935         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1936         Q_lowercase, Q_uppercase in UTF-2000.
1937
1938         * chartab.c (get_char_table): Add special code for the standard
1939         case table to use character attribute `->downcase' and
1940         `->uppercase' for case operations in UTF-2000.
1941
1942         * casetab.c (Qflippedcase): New variable in UTF-2000.
1943         (Q_lowercase): Likewise.
1944         (Q_uppercase): Likewise.
1945         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1946         and `->uppercase' in UTF-2000.
1947         (complex_vars_of_casetab): Assign attribute name `downcase' to
1948         downcase and CANON table of Vstandard_case_table in UTF-2000;
1949         assign attribute name `flippedcase' to upcase and EQV table of
1950         Vstandard_case_table in UTF-2000.
1951
1952 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1953
1954         * text-coding.c (decode_add_er_char): Support isolated-chars.
1955         (char_encode_as_entity_reference): Likewise.
1956
1957 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1958
1959         * emacs.c (Vutf_2000_lisp_directory): New variable.
1960         (Vconfigure_utf_2000_lisp_directory): Likewise.
1961         (complex_vars_of_emacs): Add new variable
1962         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1963
1964 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1965
1966         * char-ucs.h (DECODE_CHAR): Delete special code for
1967         `chinese-big5-1' and `chinese-big5-2'.
1968
1969         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1970         (Qbig5_2): Likewise.
1971         (decode_defined_char): Support CONVERSION_BIG5_1 and
1972         CONVERSION_BIG5_2.
1973         (decode_builtin_char): Likewise.
1974         (charset_code_point): Likewise.
1975         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1976         'conversion in UTF-2000.
1977         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1978         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1979         `chinese-big5-2' as children of `chinese-big5'.
1980
1981         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1982         (CONVERSION_BIG5_2): New macro.
1983
1984 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1985
1986         * text-coding.c (char_encode_big5): Support entity-reference.
1987
1988 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1989
1990         * text-coding.c (char_encode_as_entity_reference): New function.
1991         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1992
1993 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1994
1995         * text-coding.c (decode_coding_big5): Support entity-reference
1996         decoding feature.
1997
1998 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1999
2000         * text-coding.c (allocate_coding_system): Initialize initial
2001         charsets for CODESYS_UTF8.
2002         (Fmake_coding_system): Accept charset-g0, charset-g1 and
2003         charset-g2 for CODESYS_UTF8.
2004         (decode_coding_utf8): Use charset-g0.
2005         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
2006         to force variants to map to UCS.
2007
2008 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2009
2010         * text-coding.c (Qutf_8_mcs): New variable.
2011         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
2012         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
2013         instead of `utf-8' in UTF-2000.
2014
2015 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2016
2017         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
2018         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
2019         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
2020         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
2021         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
2022         CONVERSION_96x96x96x96 are introduced.
2023         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
2024         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
2025         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
2026
2027         * char-ucs.h (CONVERSION_94): New macro.
2028         (CONVERSION_96): New macro.
2029         (CONVERSION_94x94): New macro.
2030         (CONVERSION_96x96): New macro.
2031         (CONVERSION_94x94x94): New macro.
2032         (CONVERSION_96x96x96): New macro.
2033         (CONVERSION_94x94x94x60): New macro.
2034         (CONVERSION_94x94x94x94): New macro.
2035         (CONVERSION_96x96x96x96): New macro.
2036
2037 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2038
2039         * chartab.c (Vcharacter_variant_table): Deleted.
2040         (Fchar_variants): Use character-attribute `->ucs-variants' instead
2041         of `Vcharacter_variant_table'.
2042         (Fput_char_attribute): Likewise.
2043         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
2044         (complex_vars_of_chartab): Likewise.
2045
2046 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2047
2048         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
2049
2050         * fns.c (Qideographic_structure): New variable.
2051         (Qkeyword_char): New variable.
2052         (ids_format_unit): New function.
2053         (Fideographic_structure_to_ids): New function.
2054         (syms_of_fns): Add new symbols `ideographic-structure' and
2055         `:char'; add new builtin function `ideographic-structure-to-ids'.
2056
2057         * data.c (Fchar_ref_p): New function.
2058         (syms_of_data): Add new builtin function `char-ref-p'.
2059
2060         * chartab.h: Add an EXFUN for `Ffind_char'.
2061
2062 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2063
2064         * text-coding.c (Vcharacter_composition_table): Deleted.
2065         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
2066         in every UTF-2000.
2067
2068         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
2069         UTF-2000.
2070         (Vcharacter_composition_table): Deleted.
2071         (Fget_composite_char): Use the implementation for external-DB
2072         support in every UTF-2000.
2073         (Fput_char_attribute): Likewise.
2074         (char_attribute_system_db_file): Don't define if external-DB
2075         feature is not available.
2076         (Fsave_char_attribute_table): Likewise.
2077         (Fmount_char_attribute_table): Likewise.
2078         (Fclose_char_attribute_table): Likewise.
2079         (Freset_char_attribute_table): Likewise.
2080         (Fload_char_attribute_table): Likewise.
2081         (syms_of_chartab): Don't define `save-char-attribute-table',
2082         `mount-char-attribute-table', `reset-char-attribute-table',
2083         `close-char-attribute-table' and `load-char-attribute-table' if
2084         external-DB feature is not available.
2085         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
2086
2087 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2088
2089         * text-coding.c (Qcomposition): Add extern if external-DB feature
2090         is supported.
2091         (Vcharacter_composition_table): Don't add extern if external-DB
2092         feature is supported.
2093         (COMPOSE_ADD_CHAR): Modify for new data-representation of
2094         character composition rule if external-DB feature is supported.
2095
2096         * chartab.c (Vcharacter_composition_table): Don't define if
2097         external-DB feature is supported.
2098         (Qcomposition): New variable.
2099         (Fget_composite_char): New implementation for external-DB support.
2100         (Fput_char_attribute): Use `composition' property of each
2101         character instead of `Vcharacter_composition_table' to store
2102         character-composition rules if external-DB feature is supported.
2103         (syms_of_chartab): Add new symbol `composition'.
2104         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
2105         external-DB feature is supported.
2106
2107 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2108
2109         * chartab.c (Vchar_db_stingy_mode): New variable.
2110         (load_char_attribute_maybe): Close database if
2111         Vchar_db_stingy_mode is not NIL.
2112         (Fload_char_attribute_table_map_function): Use
2113         `get_char_id_table_0' instead of `get_char_id_table'.
2114         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
2115
2116         * chartab.h (get_char_id_table_0): New inline function.
2117         (get_char_id_table): Use `get_char_id_table_0'.
2118
2119 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2120
2121         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
2122         and `COMPOSE_ADD_CHAR'.
2123         (decode_coding_iso2022): Use `decode_flush_er_chars'.
2124
2125 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2126
2127         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
2128         instead of `DECODE_ADD_UCS_CHAR'.
2129         (COMPOSE_ADD_CHAR): Likewise.
2130
2131 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2132
2133         * text-coding.c (decode_flush_er_chars): New inline function.
2134         (decode_add_er_char): New function.
2135         (decode_coding_utf8): Use `decode_flush_er_chars' and
2136         `decode_add_er_char'.
2137
2138 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2139
2140         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
2141         done before `decode_output_utf8_partial_char'.
2142
2143         * mule-charset.c (complex_vars_of_mule_charset): Specify
2144         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
2145         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
2146
2147 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2148
2149         * mule-charset.c (decode_defined_char): New function; search
2150         mother.
2151         (decode_builtin_char): Don't search mother if
2152         XCHARSET_MAX_CODE(charset) == 0.
2153         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
2154         == 0 even if code >= XCHARSET_MAX_CODE(charset).
2155         (Fdecode_char): Use `decode_defined_char' instead of
2156         `DECODE_DEFINED_CHAR'.
2157         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
2158         mother of `Vcharset_ucs_jis'.
2159
2160         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
2161         instead of `DECODE_DEFINED_CHAR'.
2162
2163         * char-ucs.h (decode_defined_char): Renamed from
2164         `DECODE_DEFINED_CHAR'; changed to normal function.
2165         (DECODE_CHAR): Use `decode_defined_char' instead of
2166         `DECODE_DEFINED_CHAR'.
2167
2168         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
2169
2170 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2171
2172         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
2173
2174         * text-coding.c (Vcoded_charset_entity_reference_alist): New
2175         variable.
2176         (Quse_entity_reference): New variable.
2177         (Qd): New variable.
2178         (Qx): New variable.
2179         (QX): New variable.
2180         (coding_system_description): Add description for
2181         `ccs_priority_list'.
2182         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
2183         (allocate_coding_system): Initialize `ccs_priority_list' in
2184         UTF-2000.
2185         (Fmake_coding_system): Add description about
2186         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
2187         (codesys).
2188         (Fcoding_system_property): Accept `disable-composition' and
2189         `use-entity-reference' in UTF-2000.
2190         (struct decoding_stream): Add new member `er_counter' and `er_buf'
2191         in UTF-2000.
2192         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
2193         (decode_coding_utf8): Decode entity-reference if
2194         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
2195         (char_encode_utf8): Encode non-Unicode characters as
2196         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
2197         (str->codesys).
2198         (syms_of_file_coding): Add new symbols `use-entity-reference',
2199         `d', `x', `X'.
2200         (vars_of_file_coding): Add new variable
2201         `coded-charset-entity-reference-alist'.
2202         (complex_vars_of_file_coding): Declare `disable-composition' and
2203         `use-entity-reference' to be coding-system-properties in UTF-2000.
2204
2205         * file-coding.h (struct Lisp_Coding_System): Add new member
2206         `use_entity_reference' and `ccs_priority_list'.
2207         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2208         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
2209         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2210
2211 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2212
2213         * chartab.c (save_uint8_byte_table): Don't clear the table.
2214         (save_uint16_byte_table): Likewise.
2215         (save_byte_table): Likewise.
2216         (Fmount_char_attribute_table): New function.
2217         (syms_of_chartab): Add new builtin function
2218         `mount-char-attribute-table'.
2219
2220 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2221
2222         * mule-charset.c (Fsave_charset_mapping_table): Open database as
2223         "w+" mode.
2224         (load_char_decoding_entry_maybe): Open database as read-only mode.
2225
2226         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
2227         open database as "w+" mode.
2228         (load_char_attribute_maybe): Open database as read-only mode.
2229         (Fload_char_attribute_table): Likewise.
2230
2231 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2232
2233         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
2234         (char_table_description): Delete member `db_file'.
2235         (Fmake_char_table): Don't refer `ct->db_file'.
2236         (Fcopy_char_table): Likewise.
2237         (Fsave_char_attribute_table): Likewise.
2238         (Fclose_char_attribute_table): Likewise.
2239         (Freset_char_attribute_table): Likewise.
2240         (load_char_attribute_maybe): Likewise.
2241         (Fload_char_attribute_table): Likewise.
2242
2243         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
2244
2245 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2246
2247         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
2248         (Fsave_char_attribute_table): Don't check `ct->db_file' if
2249         `ct->db' is living.
2250         (load_char_attribute_maybe): Likewise.
2251         (Fload_char_attribute_table): Likewise.
2252
2253 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2254
2255         * chartab.c (Fclose_char_attribute_table): Set Qnil on
2256         `ct->db_file' unconditionally.
2257
2258 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2259
2260         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
2261         UTF-2000.
2262         (char_table_description): Add description for `db_file' and `db'
2263         in UTF-2000.
2264         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
2265         UTF-2000.
2266         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
2267         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
2268         (Fclose_char_attribute_table): New function.
2269         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
2270         (load_char_attribute_maybe): Change interface; use `cit->db_file'
2271         and `cit->db'.
2272         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
2273         (syms_of_chartab): Add new builtin function
2274         `Fclose_char_attribute_table'.
2275
2276 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2277
2278         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
2279         `db' in UTF-2000.
2280         (load_char_attribute_maybe): Change interface.
2281         (get_char_id_table): Modify for `load_char_attribute_maybe'.
2282
2283 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2284
2285         * database.h: Add an EXFUN for `Fdatabase_live_p'.
2286
2287 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2288
2289         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
2290         instead of `DECODE_CHAR' for mother; don't use special code for
2291         chinese-big5 to use code space of chinese-big5-1 and
2292         chinese-big5-2.
2293         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
2294         `MAX_CHAR_BIG5_CDP' for chinese-big5.
2295
2296         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
2297         (MAX_CHAR_BIG5_CDP): Revival.
2298
2299 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2300
2301         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
2302         the XLFD registry-encoding name of `chinese-big5'.
2303
2304 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2305
2306         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
2307         (Qchinese_big5_cdp): Deleted.
2308         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
2309         (complex_vars_of_mule_charset): Delete coded-charset
2310         `chinese-big5-cdp'.
2311
2312         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
2313         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
2314         `CHARSET_ID_OFFSET - n' for private CCS.
2315         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
2316         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
2317         of `MIN_LEADING_BYTE'.
2318         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
2319         `(CHARSET_ID_OFFSET - 97)'.
2320         (MIN_CHAR_BIG5_CDP): Deleted.
2321         (MAX_CHAR_BIG5_CDP): Deleted.
2322
2323 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2324
2325         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
2326
2327 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2328
2329         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
2330         (vars_of_mule): Add new variable `utf-2000-version' [moved from
2331         chartab.c].
2332
2333         * chartab.c (Vutf_2000_version): Moved to mule.c.
2334         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
2335
2336 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2337
2338         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
2339         when HAVE_CHISE_CLIENT is not defined.
2340
2341         * mule.c (vars_of_mule): Provide feature `chise' when
2342         HAVE_CHISE_CLIENT is defined.
2343
2344 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2345
2346         * config.h.in (UTF2000): Add comment.
2347         (HAVE_CHISE_CLIENT): New macro.
2348
2349 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2350
2351         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
2352         CONSP.
2353         (Fput_char_attribute): Likewise.
2354         (char_attribute_system_db_file): Encode file-name of attribute.
2355         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
2356         the initial value.
2357
2358 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2359
2360         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
2361         (Fsave_charset_mapping_table): Use
2362         `char_attribute_system_db_file'.
2363         (load_char_decoding_entry_maybe): Likewise.
2364
2365         * chartab.h (Qsystem_char_id): New external variable.
2366         (char_attribute_system_db_file): New prototype.
2367
2368         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2369         (char_attribute_system_db_file): New function.
2370         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2371         (Freset_char_attribute_table): Likewise.
2372         (load_char_attribute_maybe): Likewise.
2373         (Fload_char_attribute_table): Likewise.
2374         (syms_of_chartab): Add new symbol `system-char-id'.
2375
2376 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2377
2378         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2379         `XCHARSET_GRAPHIC(ccs)'.
2380
2381 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2382
2383         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2384
2385 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2386
2387         * chartab.c (Q_ucs_variants): New variable.
2388         (syms_of_chartab): Add new symbol `->ucs-variants'.
2389         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2390         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2391         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2392
2393         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2394
2395         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2396         `HAVE_DATABASE' is defined.
2397         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2398         `HAVE_DATABASE' is defined.
2399
2400 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2401
2402         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2403         attribute-table.
2404         (Freset_char_attribute_table): New function.
2405         (syms_of_chartab): Add new builtin function
2406         `reset-char-attribute-table'.
2407
2408 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2409
2410         * chartab.c (load_char_attribute_maybe): Don't make directories.
2411
2412 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2413
2414         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2415
2416         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2417         for decoding-table.
2418
2419 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2420
2421         * mule-charset.c (Fsave_charset_mapping_table): Use
2422         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2423
2424         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2425         instead of `XCHARSET_CHARS'.
2426
2427 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2428
2429         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2430         (XCHARSET_BYTE_SIZE): Likewise.
2431
2432         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2433         mule-charset.c].
2434         (XCHARSET_BYTE_SIZE): Likewise.
2435
2436 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2437
2438         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2439         data-directory to store database.
2440         (Fsave_char_attribute_table): Likewise.
2441         (load_char_attribute_maybe): Likewise.
2442         (Fload_char_attribute_table): Likewise.
2443
2444 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2445
2446         * mule-charset.c (Fsave_charset_mapping_table): New function.
2447         (syms_of_mule_charset): Add new builtin function
2448         `save-charset-mapping-table'.
2449
2450 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2451
2452         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2453         (get_ccs_octet_table): New inline function.
2454         (put_ccs_octet_table): Likewise.
2455         (decoding_table_put_char): Use `get_ccs_octet_table' and
2456         `put_ccs_octet_table'.
2457         (decoding_table_remove_char): Use `decoding_table_put_char'.
2458         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2459
2460         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2461         into encoding_table.
2462         (make_charset): Use Qunbound instead Qnil as initial value of
2463         decoding_table.
2464
2465 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2466
2467         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2468         element is Qunloaded.
2469         (map_over_uint16_byte_table): Likewise.
2470         (map_over_byte_table): Likewise.
2471         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2472         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2473         database support, load encoding-table of the specified
2474         coded-charset if it is not loaded yet.
2475         (save_uint8_byte_table): New function of UTF-2000 with external
2476         database support.
2477         (save_uint16_byte_table): Likewise.
2478         (save_byte_table): Likewise.
2479         (Fput_char_attribute): Don't store value into external database
2480         even if the external database feature is supported in UTF-2000;
2481         set `attribute' as name of char-table if the external database
2482         feature is supported.
2483         (Fsave_char_attribute_table): New function in UTF-2000.
2484         (syms_of_chartab): Add new builtin function
2485         `save-char-attribute-table' in UTF-2000.
2486
2487 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2488
2489         * chartab.c (char_attribute_table_to_put): New variable in
2490         UTF-2000.
2491         (Qput_char_table_map_function): Likewise.
2492         (value_to_put): Likewise.
2493         (Fput_char_table_map_function): New function in UTF-2000.
2494         (put_char_table): Use `Fmap_char_attribute' for
2495         CHARTAB_RANGE_CHARSET in UTF-2000.
2496         (Fput_char_attribute): Store symbol instead of string in
2497         `XCHAR_TABLE_NAME (table)'.
2498         (load_char_attribute_maybe): Likewise.
2499         (syms_of_chartab): Add new symbol/function
2500         `put-char-table-map-function'.
2501
2502 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2503
2504         * database.h: Add new EXFUN for `Fmap_database'.
2505
2506         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2507         (syms_of_database): Likewise.
2508
2509         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2510         UTF-2000.
2511         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2512         (XCHAR_TABLE_UNLOADED): Likewise.
2513
2514         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2515         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2516         HAVE_DATABASE is defined.
2517         (char_attribute_table_to_load): New variable of UTF-2000 with
2518         external database support.
2519         (Qload_char_attribute_table_map_function): Likewise.
2520         (Fload_char_attribute_table_map_function): New function of
2521         UTF-2000 with external database support.
2522         (Fload_char_attribute_table): New function of UTF-2000.
2523         (Fmap_char_attribute): Call Fload_char_attribute_table if
2524         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2525         (syms_of_chartab): Add new symbol and function
2526         `load-char-attribute-table-map-function' in UTF-2000 with external
2527         database support; add new function `load-char-attribute-table' in
2528         UTF-2000.
2529
2530 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2531
2532         * chartab.h (load_char_attribute_maybe): New prototype for
2533         UTF-2000 with DATABASE support.
2534         (get_char_id_table): Use `load_char_attribute_maybe' if
2535         HAVE_DATABASE is defined.
2536
2537         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2538         with DATABASE support.
2539
2540 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2541
2542         * chartab.c (Fput_char_attribute): Use S-expression as key of
2543         external database.
2544
2545         * chartab.h (get_char_id_table): Use S-expression as key of
2546         external database.
2547
2548 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2549
2550         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2551         if an element is not loaded, load the corresponding attributes
2552         from an external database.
2553         (map_over_uint16_byte_table): Likewise.
2554         (map_over_byte_table): Likewise.
2555         (map_char_table): Modify for `map_over_uint8_byte_table',
2556         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2557         element is not loaded, load the corresponding attributes from an
2558         external database.
2559         (Fput_char_attribute): Change initial values to Qunloaded.
2560
2561         * chartab.h (get_char_id_table): If a character attribute is not
2562         loaded and the attribute value is not found in an external
2563         database, store Qunbound as the attribute value.
2564
2565 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2566
2567         * chartab.c (BT_UINT8_unloaded): New macro.
2568         (UINT8_VALUE_P): Accept Qunloaded.
2569         (UINT8_ENCODE): Likewise.
2570         (UINT8_DECODE): Likewise.
2571         (BT_UINT16_unloaded): New macro.
2572         (UINT16_VALUE_P): Accept Qunloaded.
2573         (UINT16_ENCODE): Likewise.
2574         (UINT16_DECODE): Likewise.
2575         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2576         BT_UINT16_unloaded.
2577         (mark_char_table): Mark `ct->name' in UTF-2000.
2578         (char_table_description): Add `name' in UTF-2000.
2579         (Fmake_char_table): Initialize `ct->name'.
2580         (Fcopy_char_table): Copy `ct->name'.
2581         (Fput_char_attribute): Store value into an external database if
2582         HAVE_DATABASE is defined.
2583
2584         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2585         UTF-2000.
2586         (CHAR_TABLE_NAME): New macro in UTF-2000.
2587         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2588         (get_char_id_table): Try to read an external database if Qunloaded
2589         is stored in a table.
2590
2591         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2592         Qunloaded.
2593
2594 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2595
2596         * database.h: Add EXFUN definitions for Fopen_database,
2597         Fput_database, Fget_database and Fclose_database.
2598
2599         * data.c (Qunloaded): New variable in UTF-2000.
2600
2601         * lisp.h (Qunloaded): New variable in UTF-2000.
2602
2603 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2604
2605         * mule-charset.c (put_char_ccs_code_point): Modify for
2606         `decoding_table_remove_char' and `decoding_table_put_char'.
2607         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2608
2609         * char-ucs.h (decoding_table_remove_char): Change arguments to
2610         hide decoding_table vector.
2611         (decoding_table_put_char): Likewise.
2612
2613 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2614
2615         * mule-charset.c (decoding_table_remove_char): Moved to
2616         char-ucs.h.
2617         (decoding_table_put_char): Likewise.
2618
2619         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2620         from mule-charset.c].
2621         (decoding_table_remove_char): New inline function [moved from
2622         mule-charset.c].
2623         (decoding_table_put_char): Likewise.
2624
2625 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2626
2627         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2628         extension.
2629
2630 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2631
2632         * mule-charset.c (decode_builtin_char): Support mother charsets.
2633
2634 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2635
2636         * mule-charset.c (Q94x94x60): New variable.
2637         (charset_code_point): Support conversion `94x94x60'.
2638         (Fmake_charset): Likewise.
2639         (syms_of_mule_charset): Add new symbol `94x94x60'.
2640
2641         * char-ucs.h (CONVERSION_94x94x60): New macro.
2642
2643 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2644
2645         * mule-charset.c (charset_code_point): Unify code about
2646         `code-offset'.
2647
2648 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2649
2650         * mule-charset.c (charset_code_point): Merge code about builtin
2651         characters into code about mother charsets; don't use
2652         `range_charset_code_point'.
2653         (range_charset_code_point): Deleted.
2654
2655 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2656
2657         * mule-charset.c (Qcode_offset): New variable.
2658         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2659         `max-code'; accept new property `code-offset'.
2660         (syms_of_mule_charset): Add new symbol `code-offset'.
2661
2662 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2663
2664         * mule-charset.c (range_charset_code_point): Fixed.
2665
2666 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2667
2668         * mule-charset.c (decode_builtin_char): Change semantics of
2669         code-offset of coded-charset.
2670         (charset_code_point): Likewise.
2671         (range_charset_code_point): Likewise.
2672         (complex_vars_of_mule_charset): Modify for the change.
2673
2674 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2675
2676         * mule-charset.c (Fencode_char): Reverse arguments.
2677
2678         * mule-charset.c (charset_code_point): Fixed.
2679
2680 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2681
2682         * mule-charset.c (Vcharset_mojikyo): Deleted.
2683         (Vcharset_mojikyo_2022_1): Deleted.
2684         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2685         (Qmin_code): New variable in UTF-2000.
2686         (Qmax_code): Likewise.
2687         (Qmother): Likewise.
2688         (Qconversion): Likewise.
2689         (Q94x60): Likewise.
2690         (Qmojikyo): Deleted.
2691         (Qmojikyo_2022_1): Deleted.
2692         (Qmojikyo_pj_{1..22}): Deleted.
2693         (mark_charset): Mark `cs->mother'.
2694         (charset_description): Add description for `mother'.
2695         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2696         new arguments `mother' and `conversion'; use
2697         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2698         (charset_code_point): Moved from char-ucs.h; support `mother'
2699         charset feature.
2700         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2701         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2702         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2703         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2704         allow 2 as the value of `graphic' in UTF-2000; add new properties
2705         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2706         require `final' in UTF-2000; modify for `make_charset'.
2707         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2708         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2709         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2710         (Fencode_char): New function.
2711         (syms_of_mule_charset): Add new builtin function `encode-char' in
2712         UTF-2000; add new symbols `min-code', `max-code', `mother',
2713         `conversion' and `94x60'; delete symbols `mojikyo',
2714         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2715         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2716         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2717         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2718
2719         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2720         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2721
2722         * char-ucs.h (Vcharset_mojikyo): Deleted.
2723         (Vcharset_mojikyo_2022_1): Deleted.
2724         (LEADING_BYTE_MOJIKYO): Deleted.
2725         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2726         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2727         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2728         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2729         add new member `mother'; add new member `conversion'.
2730         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2731         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2732         (CHARSET_MOTHER): New macro.
2733         (CHARSET_CONVERSION): New macro.
2734         (CONVERSION_IDENTICAL): New macro.
2735         (CONVERSION_94x60): New macro.
2736         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2737         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2738         (XCHARSET_MOTHER): New macro.
2739         (XCHARSET_CONVERSION): New macro.
2740         (MIN_CHAR_MOJIKYO): Deleted.
2741         (MAX_CHAR_MOJIKYO): Deleted.
2742         (DECODE_MOJIKYO_2022): Deleted.
2743         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2744         (charset_code_point): Changed to non-inline function.
2745         (encode_char_1): Use `charset_code_point'.
2746         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2747
2748 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2749
2750         * lread.c (read_compiled_function): Fix prototype.
2751         (read_vector): Likewise.
2752
2753 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2754
2755         * lrecord.h (struct lrecord_header): Delete `older'.
2756         (set_lheader_implementation): Delete code for `older'.
2757         (set_lheader_older_implementation): Deleted.
2758         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2759         (OLDER_RECORD_P): Deleted.
2760         (OLDER_RECORD_HEADER_P): Deleted.
2761         (alloc_older_lcrecord): Deleted.
2762         (alloc_older_lcrecord_type): Deleted.
2763
2764         * alloc.c (all_older_lcrecords): Deleted.
2765         (alloc_older_lcrecord): Deleted.
2766         (disksave_object_finalization_1): Delete code for older objects.
2767         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2768         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2769
2770 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2771
2772         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2773         instead of `make_older_vector'.
2774         (put_char_ccs_code_point): Likewise.
2775         (mark_charset): Mark `cs->decoding_table'.
2776         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2777
2778         * lisp.h (make_older_vector): Deleted.
2779         (make_vector_newer): Deleted.
2780
2781         * config.h.in (HAVE_GGC): Deleted.
2782
2783         * alloc.c (make_older_vector): Deleted.
2784         (make_vector_newer_1): Deleted.
2785         (make_vector_newer): Deleted.
2786
2787 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2788
2789         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2790         (Qideograph_daikanwa_2): New variable.
2791         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2792         (complex_vars_of_mule_charset): Add new coded-charset
2793         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2794         `LEADING_BYTE_DAIKANWA'.
2795
2796         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2797         (LEADING_BYTE_DAIKANWA_1): New macro.
2798         (LEADING_BYTE_DAIKANWA_2): New macro.
2799         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2800
2801 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2802
2803         * mule-charset.c (complex_vars_of_mule_charset): Change
2804         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2805         the second revised version.
2806
2807 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2808
2809         * mule-charset.c (Vcharset_ucs_smp): New variable.
2810         (Vcharset_ucs_sip): New variable.
2811         (Qucs_smp): New variable.
2812         (Qucs_sip): New variable.
2813         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2814         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2815         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2816         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2817         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2818         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2819
2820         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2821         (LEADING_BYTE_UCS_SIP): New macro.
2822         (MIN_CHAR_SMP): New macro.
2823         (MAX_CHAR_SMP): New macro.
2824         (MIN_CHAR_SIP): New macro.
2825         (MAX_CHAR_SIP): New macro.
2826
2827 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2828
2829         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2830         utf-2000.
2831
2832 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2833
2834         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2835         value; don't store value into `encoding_table' of `Lisp_Charset'.
2836         (mark_charset): `encoding_table' was deleted.
2837         (charset_description): Likewise.
2838         (make_charset): Likewise.
2839         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2840         `put_char_ccs_code_point'.
2841
2842         * chartab.h (Fput_char_attribute): New EXFUN.
2843
2844         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2845         is unified with normal symbol space.
2846         (Fget_char_attribute): Likewise.
2847         (Fput_char_attribute): Likewise; behavior of
2848         `put_char_ccs_code_point' is changed.
2849
2850         * char-ucs.h: Include "elhash.h".
2851         (Vchar_attribute_hash_table): New external variable.
2852         (struct Lisp_Charset): Delete `encoding_table'.
2853         (CHARSET_ENCODING_TABLE): New implementation; refer
2854         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2855         `Lisp_Charset'.
2856
2857 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2858
2859         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2860         (cs) == 0.
2861
2862 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2863
2864         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2865         `chinese-big5'.
2866
2867 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2868
2869         * chartab.c (uint8_byte_table_description): New constant.
2870         (uint8-byte-table): Use `uint8_byte_table_description'.
2871         (uint16_byte_table_description): New constant.
2872         (uint16-byte-table): Use `uint16_byte_table_description'.
2873
2874 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2875
2876         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2877         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2878
2879 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2880
2881         * mule-charset.c (Vcharset_ucs_ks): New variable.
2882         (Qucs_ks): New variable.
2883         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2884         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2885
2886         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2887
2888 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2889
2890         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2891         (Fdecode_char): Likewise.
2892
2893         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2894         chartab.h.
2895         (Fdefine_char): Modify for Fdecode_char.
2896         (Ffind_char): Likewise.
2897
2898         * mule-charset.c (Fdecode_char): Add new optional argument
2899         `defined-only'.
2900         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2901
2902 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2903
2904         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2905         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2906         (allocate_coding_system): Initialize initial-charsets of
2907         CODESYS_BIG5 in XEmacs UTF-2000.
2908         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2909         CODESYS_BIG5 in XEmacs UTF-2000.
2910         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2911         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2912
2913         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2914         variables.
2915         (Qideograph_hanziku_{1 .. 12}): Likewise.
2916         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2917         .. 12}'.
2918         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2919         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2920         `ideograph-hanziku-{1 .. 12}'.
2921
2922         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2923         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2924         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2925         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2926         (DECODE_DEFINED_CHAR): New inline function.
2927         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2928
2929 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2930
2931         * mule-charset.c (Vcharset_china3_jef): Renamed from
2932         `Vcharset_japanese_jef_china3'.
2933         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2934         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2935         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2936         (syms_of_mule_charset): Rename `china3-jef' from
2937         `japanese-jef-china3'.
2938         (complex_vars_of_mule_charset): Likewise; rename
2939         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2940
2941         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2942         `LEADING_BYTE_JEF_CHINA3'.
2943         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2944         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2945
2946 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2947
2948         * mule-charset.c (encode_builtin_char_1): Comment out special code
2949         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2950
2951         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2952         (MAX_CHAR_MOJIKYO_0): Comment out.
2953         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2954         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2955         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2956         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2957
2958 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2959
2960         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2961         (Qideograph_cbeta): New variable.
2962         (encode_builtin_char_1): Comment out special code for
2963         coded-charset `mojikyo' and `japanese-jef-china3'.
2964         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2965         (complex_vars_of_mule_charset): Add new coded-charset
2966         `ideograph-cbeta'.
2967
2968         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2969         (MIN_CHAR_CBETA): New macro.
2970         (MAX_CHAR_CBETA): New macro.
2971
2972 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2973
2974         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2975         (LEADING_BYTE_JEF_CHINA3): New macro.
2976         (MIN_CHAR_JEF_CHINA3): New macro.
2977         (MAX_CHAR_JEF_CHINA3): Likewise.
2978         (DECODE_CHAR): Fixed.
2979
2980 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2981
2982         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2983         (Qjapanese_jef_china3): New variable.
2984         (encode_builtin_char_1): Support `japanese-jef-china3'.
2985         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2986         (complex_vars_of_mule_charset): Add new coded-charset
2987         `japanese-jef-china3'.
2988
2989 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2990
2991         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2992         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2993         94^4, 96^3, 96^4, 128^n and 256^n set.
2994         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2995         (map_char_table): Likewise.
2996
2997 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2998
2999         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
3000         UTF-2000.
3001
3002 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3003
3004         * chartab.h (get_char_id_table): New inline function.
3005
3006         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
3007         function.
3008
3009 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3010
3011         * chartab.h (decode_char_table_range): New prototype in XEmacs
3012         UTF-2000.
3013         (put_char_id_table): New inline function in XEmacs UTF-2000.
3014
3015         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
3016         function.
3017         (decode_char_table_range): Delete static declaration in XEmacs
3018         UTF-2000.
3019
3020 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3021
3022         * chartab.c (put_char_id_table): Use `put_char_table'.
3023
3024 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3025
3026         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
3027         (map_over_uint16_byte_table): Likewise.
3028         (map_over_byte_table): Likewise.
3029         (map_char_table): Modify for `map_over_uint8_byte_table',
3030         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
3031         UTF-2000.
3032
3033 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3034
3035         * chartab.c (struct map_char_table_for_charset_arg): New
3036         structure.
3037         (map_char_table_for_charset_fun): New function.
3038         (map_char_table): Use `map_char_table' for encoding_table of
3039         `range->charset'.
3040
3041 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3042
3043         * chartab.c (map_char_table): Check a character is found in
3044         range->charset instead of non default value is defined in
3045         char-table when range is CHARTAB_RANGE_ROW.
3046
3047 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3048
3049         * chartab.c (map_char_id_table): Deleted.
3050         (Fmap_char_attribute): Use `map_char_table' instead of
3051         `map_char_id_table'.
3052
3053 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3054
3055         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
3056         UTF-2000.
3057         (update_syntax_table): Deleted in XEmacs UTF-2000.
3058
3059         * syntax.c (find_defun_start): Use `syntax_table' instead of
3060         `mirror_syntax_table' in XEmacs UTF-2000.
3061         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
3062         UTF-2000.
3063         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
3064         XEmacs UTF-2000.
3065         (Fmatching_paren): Likewise.
3066         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
3067         in XEmacs UTF-2000.
3068         (find_start_of_comment): Likewise.
3069         (find_end_of_comment): Likewise.
3070         (Fforward_comment): Likewise.
3071         (scan_lists): Likewise.
3072         (char_quoted): Likewise.
3073         (Fbackward_prefix_chars): Likewise.
3074         (scan_sexps_forward): Likewise.
3075         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
3076         (update_syntax_table): Likewise.
3077
3078         * search.c (skip_chars): Use `syntax_table' instead of
3079         `mirror_syntax_table' in XEmacs UTF-2000.
3080         (wordify): Likewise.
3081         (Freplace_match): Likewise.
3082
3083         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
3084         `mirror_syntax_table' in XEmacs UTF-2000.
3085         (WORDCHAR_P_UNSAFE): Likewise.
3086         (re_match_2_internal): Likewise.
3087
3088         * font-lock.c (find_context): Use `buf->syntax_table' instead of
3089         `buf->mirror_syntax_table' in XEmacs UTF-2000.
3090
3091         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
3092         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
3093
3094         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
3095         XEmacs UTF-2000.
3096
3097         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
3098         UTF-2000.
3099         (print_char_table): Print `default_value' in XEmacs UTF-2000.
3100         (char_table_description): Delete `mirror_table' in XEmacs
3101         UTF-2000.
3102         (fill_char_table): Don't call `update_syntax_table' in XEmacs
3103         UTF-2000.
3104         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
3105         (Fcopy_char_table): Likewise.
3106         (put_char_table): Don't call `update_syntax_table' in XEmacs
3107         UTF-2000.
3108
3109         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
3110         `buf->mirror_syntax_table' in XEmacs UTF-2000.
3111         (casify_region_internal): Likewise.
3112
3113         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
3114
3115         * buffer.c (common_init_complex_vars_of_buffer): Don't use
3116         `mirror_syntax_table' in XEmacs UTF-2000.
3117
3118         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
3119         `buf->mirror_syntax_table' in XEmacs UTF-2000.
3120         (Fexpand_abbrev): Likewise.
3121
3122 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3123
3124         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
3125
3126 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3127
3128         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
3129         (map_over_uint16_byte_table): Likewise.
3130         (map_over_byte_table): Likewise.
3131         (get_char_id_table): Refer `cit->default_value'.
3132         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
3133         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
3134         of character-id ranges.
3135         (mark_char_table): Mark `ct->default_value'.
3136         (char_table_description): Add `default_value'.
3137         (fill_char_table): Use `default_value'.
3138         (decode_char_table_range): Decode `nil' as
3139         `CHARTAB_RANGE_DEFAULT'.
3140         (get_char_id_table): Refer `cit->default_value'.
3141         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
3142         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
3143         temporary hack; check value of char-table is bound or not.
3144         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
3145
3146         * chartab.h (struct Lisp_Char_Table): Add new member
3147         `default_value' in XEmacs UTF-2000.
3148         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
3149         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
3150         UTF-2000.
3151
3152 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3153
3154         * chartab.h (Lisp_Char_ID_Table): Deleted.
3155
3156         * chartab.c (char_table_description): Fix typo.
3157         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
3158         `Lisp_Char_ID_Table'.
3159
3160 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3161
3162         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
3163         `CHAR_ID_TABLE_P'.
3164
3165         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
3166         `CHAR_ID_TABLE_P'.
3167
3168         * chartab.h (XCHAR_ID_TABLE): Deleted.
3169         (XSETCHAR_ID_TABLE): Deleted.
3170         (CHAR_ID_TABLE_P): Deleted.
3171
3172         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
3173         `CHAR_ID_TABLE_P'.
3174         (Fget_composite_char): Likewise.
3175         (put_char_table): Likewise.
3176         (add_char_attribute_alist_mapper): Fixed.
3177         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
3178         `CHAR_ID_TABLE_P'.
3179         (Fget_char_attribute): Likewise.
3180         (Fget_char_attribute): Likewise.
3181         (Fmap_char_attribute): Likewise.
3182
3183         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
3184         `CHAR_ID_TABLE_P'.
3185         (encode_char_1): Likewise.
3186
3187 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3188
3189         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
3190         `XCHAR_ID_TABLE'.
3191
3192         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
3193         instead of `XCHAR_ID_TABLE'.
3194         (remove_char_ccs): Likewise.
3195
3196         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
3197         `XCHAR_ID_TABLE'.
3198         (Fget_composite_char): Likewise.
3199         (Fchar_variants): Likewise.
3200         (put_char_table): Likewise.
3201         (add_char_attribute_alist_mapper): Likewise.
3202         (Fchar_attribute_alist): Likewise.
3203         (Fget_char_attribute): Likewise.
3204         (Fput_char_attribute): Likewise.
3205         (Fmap_char_attribute): Likewise.
3206         (Fmap_char_attribute): Likewise.
3207
3208         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
3209         `XCHAR_ID_TABLE'.
3210         (encode_char_1): Likewise.
3211
3212 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3213
3214         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
3215         `Lisp_Char_ID_Table'.
3216         (mark_char_id_table): Deleted.
3217         (print_char_id_table): Likewise.
3218         (char_id_table_equal): Likewise.
3219         (char_id_table_hash): Likewise.
3220         (char_id_table_description): Likewise.
3221         (char_id_table): Likewise.
3222         (make_char_id_table): Use `Fmake_char_table' and
3223         `fill_char_table'.
3224         (get_char_id_table): Use `Lisp_Char_Table' instead of
3225         `Lisp_Char_ID_Table'.
3226         (put_char_id_table): Likewise.
3227         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
3228         `XCHAR_ID_TABLE'.
3229         (Fremove_char_attribute): Likewise.
3230         (syms_of_chartab): Don't define type `char-id-table'.
3231
3232         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
3233         (char_id_table): Likewise.
3234         (GC_CHAR_ID_TABLE_P): Likewise.
3235         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
3236         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
3237         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
3238         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
3239         (get_char_id_table): Use `Lisp_Char_Table' instead of
3240         `Lisp_Char_ID_Table'.
3241         (put_char_id_table_0): Likewise.
3242         (put_char_id_table): Likewise.
3243
3244 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3245
3246         * chartab.h: Lisp_Byte_Table related codes are moved from
3247         chartab.h.
3248
3249         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
3250
3251 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3252
3253         * chartab.h: Don't include "chartab.h".
3254         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
3255         (Lisp_Char_ID_Table): Likewise.
3256         (char_id_table): Likewise.
3257         (XCHAR_ID_TABLE): Likewise.
3258         (XSETCHAR_ID_TABLE): Likewise.
3259         (CHAR_ID_TABLE_P): Likewise.
3260         (GC_CHAR_ID_TABLE_P): Likewise.
3261         (get_char_id_table): Likewise.
3262
3263         * char-ucs.h: Include "chartab.h".
3264         (struct Lisp_Char_ID_Table): Moved to chartab.h.
3265         (Lisp_Char_ID_Table): Likewise.
3266         (char_id_table): Likewise.
3267         (XCHAR_ID_TABLE): Likewise.
3268         (XSETCHAR_ID_TABLE): Likewise.
3269         (CHAR_ID_TABLE_P): Likewise.
3270         (GC_CHAR_ID_TABLE_P): Likewise.
3271         (get_char_id_table): Likewise.
3272
3273 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3274
3275         * chartab.c (copy_uint8_byte_table): New function.
3276         (copy_uint16_byte_table): New function.
3277         (copy_byte_table): New function.
3278         (map_over_uint8_byte_table): Modify to avoid huge numbers of
3279         characters to call.
3280         (map_over_uint16_byte_table): Likewise.
3281         (map_over_byte_table): Likewise.
3282         (get_byte_table): Move prototype to chartab.h.
3283         (put_byte_table): Likewise.
3284         (put_char_id_table_0): Moved to chartab.h.
3285         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
3286         (char_table_entry_equal): Likewise.
3287         (char_table_entry_hash): Likewise.
3288         (char_table_entry_description): Likewise.
3289         (char_table_entry): Likewise.
3290         (make_char_table_entry): Likewise.
3291         (copy_char_table_entry): Likewise.
3292         (get_non_ascii_char_table_value): Likewise.
3293         (map_over_charset_ascii): Likewise.
3294         (map_over_charset_control_1): Likewise.
3295         (map_over_charset_row): Likewise.
3296         (map_over_other_charset): Likewise.
3297         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
3298         (print_char_table): Likewise.
3299         (char_table_equal): Likewise.
3300         (char_table_hash): Likewise.
3301         (char_table_description): Likewise.
3302         (fill_char_table): Likewise.
3303         (Fcopy_char_table): Likewise.
3304         (get_char_table): Likewise.
3305         (Fget_range_char_table): Likewise.
3306         (put_char_table): Likewise.
3307         (map_char_table): Likewise.
3308         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
3309         UTF-2000.
3310
3311 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3312
3313         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
3314         `Vauto_fill_chars' in XEmacs UTF-2000.
3315
3316         * chartab.h (get_byte_table): New prototype [moved from
3317         chartab.c].
3318         (put_byte_table): Likewise [moved from chartab.c].
3319         (put_char_id_table_0): New inline function [moved from chartab.c].
3320         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
3321         (Lisp_Char_Table_Entry): Likewise.
3322         (char_table_entry): Likewise.
3323         (XCHAR_TABLE_ENTRY): Likewise.
3324         (XSETCHAR_TABLE_ENTRY): Likewise.
3325         (CHAR_TABLE_ENTRYP): Likewise.
3326         (CHECK_CHAR_TABLE_ENTRY): Likewise.
3327         (NUM_ASCII_CHARS): Likewise.
3328         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
3329         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
3330
3331 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3332
3333         * chartab.c (get_char_id_table): Change interface.
3334         (put_char_id_table_0): New function.
3335         (put_char_id_table): Change interface; new implementation.
3336         (Fget_composite_char): Modify for interface change of
3337         `get_char_id_table'.
3338         (Fchar_variants): Likewise.
3339         (add_char_attribute_alist_mapper): Likewise.
3340         (Fchar_attribute_alist): Likewise.
3341         (Fget_char_attribute): Likewise.
3342         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
3343         as same as character as the first argument like `put-char-table';
3344         modify for interface change of `put_char_id_table'.
3345         (Fremove_char_attribute): Modify for interface change of
3346         `put_char_id_table'.
3347
3348 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3349
3350         * text-coding.c: Sync up with XEmacs 21.2.41.
3351         (COMPOSE_ADD_CHAR): Modify for interface change of
3352         `get_char_id_table'.
3353
3354         * mule-charset.c (put_char_ccs_code_point): Modify for interface
3355         change of `put_char_id_table'.
3356         (remove_char_ccs): Likewise.
3357
3358         * chartab.h (put_char_id_table): Change interface.
3359
3360         * char-ucs.h (get_char_id_table): Change interface.
3361         (charset_code_point): Modify for interface change of
3362         `get_char_id_table'.
3363         (encode_char_1): Likewise.
3364
3365 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3366
3367         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3368         argument `ccs'.
3369         (map_over_uint16_byte_table): Likewise.
3370         (map_over_byte_table): Likewise.
3371         (map_char_id_table): Add new argument `range' like
3372         `map_char_table'.
3373         (Fmap_char_attribute): Add new argument `range' like
3374         `Fmap_char_table'.
3375
3376 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3377
3378         * chartab.c (map_over_uint8_byte_table): Change interface of
3379         mapping function to use struct chartab_range instead of Emchar.
3380         (map_over_uint16_byte_table): Likewise.
3381         (map_over_byte_table): Likewise.
3382         (map_char_id_table): Likewise.
3383         (struct slow_map_char_id_table_arg): Deleted.
3384         (slow_map_char_id_table_fun): Deleted.
3385         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3386         function `slow_map_char_table_fun' instead of struct
3387         `slow_map_char_id_table_arg' and function
3388         `slow_map_char_id_table_fun'.
3389
3390 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3391
3392         * mule-charset.c: Move char-it-table related codes to chartab.c.
3393         (Vutf_2000_version): Moved to chartab.c.
3394         (Fdefine_char): Likewise.
3395         (Ffind_char): Likewise.
3396         (syms_of_mule_charset): Move types `uint8-byte-table',
3397         `uint16-byte-table', `byte-table' and `char-id-table' to
3398         chartab.c; move functions `char_attribute_list,
3399         `find_char_attribute_table, `char_attribute_alist,
3400         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3401         `map_char_attribute, `define_char, `find_char, `char_variants and
3402         `get_composite_char to chartab.c; move symbols `=>ucs',
3403         `->decomposition', `compat', `isolated', `initial', `medial',
3404         `final', `vertical', `noBreak', `fraction', `super', `sub',
3405         `circle', `square', `wide', `narrow', `small' and `font' to
3406         chartab.c.
3407         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3408         setting codes for `Vcharacter_composition_table' and
3409         `Vcharacter_variant_table' to chartab.c.
3410         (complex_vars_of_mule_charset): Move setting code for
3411         `Vchar_attribute_hash_table' to chartab.c.
3412
3413         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3414         (make_char_id_table): New prototype.
3415         (put_char_id_table): Likewise.
3416         (Fget_char_attribute): Likewise.
3417
3418         * chartab.c: Move char-id-table related code from mule-charset.c.
3419         (Vutf_2000_version): Moved from mule-charset.c.
3420
3421         * char-ucs.h (Qucs): New external variable.
3422         (put_char_ccs_code_point): New prototype.
3423         (remove_char_ccs): Likewise.
3424
3425 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3426
3427         * mule-charset.c (Vcharset_ucs_jis): New variable.
3428         (Qucs_jis): Likewise.
3429         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3430         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3431
3432         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3433
3434 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3435
3436         * mule-charset.c (map_over_uint8_byte_table): New function.
3437         (map_over_uint16_byte_table): Likewise.
3438         (map_over_byte_table): Likewise.
3439         (map_char_id_table): Likewise.
3440         (slow_map_char_id_table_fun): Likewise.
3441         (Fmap_char_attribute): Likewise.
3442         (syms_of_mule_charset): Add new function `map-char-attribute'.
3443
3444 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3445
3446         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3447         (syms_of_mule_charset): Add new function `find-char'.
3448
3449 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3450
3451         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3452         XEmacs UTF-2000.
3453         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3454         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3455         XEmacs UTF-2000.
3456         (complex_vars_of_mule_charset): Add new coded-charset
3457         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3458         `ideograph-gt-pj-*'.
3459
3460         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3461
3462 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3463
3464         * mule-charset.c (encode_builtin_char_1): Purge codes about
3465         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3466         {MIN|MAX}_CHAR_HEBREW.
3467         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3468         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3469
3470         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3471         (MAX_CHAR_GREEK): Purged.
3472         (MIN_CHAR_CYRILLIC): Purged.
3473         (MAX_CHAR_CYRILLIC): Purged.
3474         (MIN_CHAR_HEBREW): Commented out.
3475         (MAX_CHAR_HEBREW): Likewise.
3476
3477 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3478
3479         * mule-charset.c (Qto_ucs): New variable.
3480         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3481         (Fdefine_char): Likewise.
3482         (syms_of_mule_charset): Add new symbol `=>ucs'.
3483
3484 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3485
3486         * mule-charset.c (Fdecode_char): Fixed.
3487
3488 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3489
3490         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3491         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3492         "tcvn5712-1".
3493
3494 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3495
3496         * mule-charset.c (Vcharset_ucs_big5): New variable.
3497         (Qucs_big5): Likewise.
3498         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3499         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3500
3501         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3502
3503 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3504
3505         * mule-charset.c (decode_builtin_char): Check Big5 code range
3506         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3507
3508 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3509
3510         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3511         (Qchinese_gb12345): Likewise.
3512         (Fdecode_builtin_char): Fixed.
3513         (syms_of_mule_charset): Add `chinese-gb12345'.
3514         (complex_vars_of_mule_charset): Add coded-charset
3515         `chinese-gb12345'.
3516
3517         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3518         (LEADING_BYTE_CHINESE_GB12345): New macro.
3519
3520 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3521
3522         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3523         and `latin-viscii-upper' for `latin-viscii'.
3524
3525 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3526
3527         * mule-charset.c (Fdecode_builtin_char): Comment out
3528         regularization code for ISO-IR GR representation.
3529
3530 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3531
3532         * mule-charset.c (decode_builtin_char): New function; renamed from
3533         `make_builtin_char'; return -1 instead of signal.
3534         (Fdecode_builtin_char): Use `decode_builtin_char'.
3535
3536         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3537         `make_builtin_char'.
3538         (DECODE_CHAR): Use `decode_builtin_char' instead of
3539         `make_builtin_char'; use mapping table of `chinese-big5' for
3540         `chinese-big5-{1,2}'.
3541
3542 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3543
3544         * text-coding.c (char_encode_big5): New function.
3545         (char_finish_big5): Likewise.
3546         (reset_encoding_stream): Use `char_encode_big5' and
3547         `char_finish_big5' for CODESYS_BIG5.
3548         (mule_encode): Don't use `encode_coding_big5'.
3549         (encode_coding_big5): Deleted.
3550
3551 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3552
3553         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3554         0x81- in XEmacs UTF-2000.
3555         (detect_coding_big5): Likewise.
3556
3557 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3558
3559         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3560         generate character-id if the CCS property does not have
3561         corresponding predefined character.
3562         (make_builtin_char): Return -1 if corresponding predefined
3563         character is not found.
3564         (Fdecode_char): Return nil if corresponding character is not
3565         found.
3566         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3567         don't map to builtin ucs space.
3568
3569 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3570
3571         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3572         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3573
3574 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3575
3576         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3577         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3578         (Qideograph_gt): Likewise.
3579         (Qideograph_gt_pj_{1..11}): Likewise.
3580         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3581         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3582         `ideograph-gt-pj-11'.
3583         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3584         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3585         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3586
3587         * char-ucs.h (LEADING_BYTE_GT): New macro.
3588         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3589         (MIN_CHAR_GT): Likewise.
3590         (MAX_CHAR_GT): Likewise.
3591
3592 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3593
3594         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3595         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3596
3597         * doprnt.c (unsigned_int_converters): Add `c'.
3598         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3599
3600         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3601         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3602         `MIN_CHAR_MOJIKYO'.
3603         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3604         (MAX_CHAR_MOJIKYO_0): New macro.
3605         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3606
3607 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3608
3609         * mule-charset.c (Fdefine_char): Delete cemented out code.
3610         (encode_builtin_char_1): Modify for new allocation of builtin
3611         Mojikyo characters.
3612
3613         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3614
3615 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3616
3617         * mule-charset.c (Vcharset_ucs_cns): New variable.
3618         (Qucs_cns): New variable.
3619         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3620         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3621
3622 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3623
3624         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3625
3626 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3627
3628         * search.c (search_buffer): Make `charset_base_code' as
3629         character-id >> 6 to eliminate the corresponding last byte in
3630         UTF-8 representation [I'm not sure it is right thing].
3631         (boyer_moore): Likewise.
3632
3633 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3634
3635         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3636         representation in MULE.
3637
3638 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3639
3640         * text-coding.c (Fmake_coding_system): Use
3641         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3642         `EXTERNAL_PROPERTY_LIST_LOOP'.
3643
3644 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3645
3646         * text-coding.c (decode_output_utf8_partial_char): New function.
3647         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3648
3649 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3650
3651         * text-coding.c (decode_coding_utf8): Output original byte
3652         sequence if it is broken; change order of conditions.
3653
3654         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3655         of conditions.
3656
3657         * mb-multibyte.h (BYTE_ASCII_P):
3658         Use bit ops for char-signedness safety.
3659         (BYTE_C0_P): Use bit ops for char-signedness safety.
3660         (BYTE_C1_P): Use bit ops for char-signedness safety.
3661
3662         * character.h: (XCHAR_OR_CHAR_INT):
3663         Always use inline function.
3664         Remove redundant type checking assert() - XINT will abort quite
3665         nicely.
3666
3667 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3668
3669         * text-coding.c: (Fencode_shift_jis_char):
3670         (Fencode_big5_char):
3671         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3672         Replace 0 with '\0' when working with bytes.
3673         Replace initial "(" with "\(" in docstrings.
3674
3675         (Fmake_coding_system):
3676         When type is ccl and value is vector, register it with a proper
3677         symbol.  And checks whether the given ccl program is valid.
3678         (mule_decode): When calling ccl_driver, if src indicates
3679         NULL pointer, set an empty string instead.
3680         (mule_encode): Likewise.
3681
3682         (detect_eol_type):
3683         (detect_coding_sjis):
3684         (decode_coding_sjis):
3685         (detect_coding_big5):
3686         (decode_coding_big5):
3687         (detect_coding_ucs4):
3688         (decode_coding_ucs4):
3689         (detect_coding_utf8):
3690         (decode_coding_utf8):
3691         (detect_coding_iso2022):
3692         (decode_coding_iso2022):
3693         (decode_coding_no_conversion):
3694         (mule_decode):
3695         Make all detecting and decoding functions take an Extbyte * arg.
3696         (text_encode_generic):
3697         (encode_coding_big5):
3698         (encode_coding_no_conversion):
3699         (mule_encode):
3700         Make all encoding functions take a Bufbyte * arg.
3701         Use size_t instead of unsigned int for memory sizes.
3702         Only cast to unsigned char whenever dereferencing Extbyte *.
3703
3704         (struct lrecord_description fcd_description_1): Use countof.
3705         (complex_vars_of_file_coding):
3706         Use countof instead of sizeof.
3707         Use CHECK_NATNUM instead of CHECK_INT.
3708
3709 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3710
3711         * mule-charset.c (Fget_char_attribute): Add new optional argument
3712         `default-value'.
3713         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3714         (remove_char_ccs): Likewise.
3715
3716 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3717
3718         * text-coding.c (char_encode_shift_jis): New implementation in
3719         UTF-2000.
3720         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3721         ...)'.
3722
3723         * mule-charset.c (Vcharset_chinese_big5): New variable in
3724         UTF-2000.
3725         (Qchinese_big5): New variable in UTF-2000.
3726         (BIG5_SAME_ROW): New macro in UTF-2000.
3727         (make_builtin_char): Use builtin characters of
3728         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3729         characters of `Vcharset_chinese_big5'.
3730         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3731         (complex_vars_of_mule_charset): Add new coded-charset
3732         `chinese-big5' in UTF-2000.
3733
3734         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3735         (Vcharset_chinese_big5): New external variable declaration.
3736         (Vcharset_japanese_jisx0208_1990): Likewise.
3737
3738 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3739
3740         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3741         function.
3742         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3743
3744 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3745
3746         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3747         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3748         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3749         `mojikyo-pj-*'.
3750
3751 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3752
3753         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3754
3755 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3756
3757         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3758         to 0.17.
3759
3760 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3761
3762         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3763         for `CHARSET_BY_ATTRIBUTES'.
3764         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3765         `CHARSET_BY_ATTRIBUTES'.
3766
3767         * text-coding.c (struct decoding_stream): Rename member `CH' to
3768         `CPOS'.
3769         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3770         (decode_coding_sjis): Likewise.
3771         (decode_coding_big5): Likewise.
3772         (decode_coding_ucs4): Likewise.
3773         (decode_coding_utf8): Likewise.
3774         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3775         `CHARSET_BY_ATTRIBUTES'.
3776         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3777         `str->counter'; decode 3, 4 bytes sets.
3778         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3779         sets.
3780         (decode_coding_no_conversion): Use `str->cpos' instead of
3781         `str->ch'.
3782
3783         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3784         (Qmojikyo_2022_1): New variable.
3785         (make_charset): Don't use `CHARSET_TYPE_*'.
3786         (range_charset_code_point): Support coded-charset
3787         `mojikyo-2022-1'.
3788         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3789         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3790         `CHARSET_BY_ATTRIBUTES'.
3791         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3792         `CHARSET_BY_ATTRIBUTES'.
3793         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3794         (complex_vars_of_mule_charset): Add new coded-charset
3795         `mojikyo-2022-1'.
3796
3797         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3798         interface; changed to inline function.
3799
3800         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3801         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3802         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3803         (CHARSET_TYPE_94): Deleted.
3804         (CHARSET_TYPE_94X94): Deleted.
3805         (CHARSET_TYPE_96): Deleted.
3806         (CHARSET_TYPE_96X96): Deleted.
3807         (CHARSET_TYPE_128): Deleted.
3808         (CHARSET_TYPE_128X128): Deleted.
3809         (CHARSET_TYPE_256): Deleted.
3810         (CHARSET_TYPE_256X256): Deleted.
3811         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3812         to inline function.
3813         (DECODE_MOJIKYO_2022): New inline function.
3814         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3815         `Vcharset_mojikyo_2022_1'.
3816
3817 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3818
3819         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3820         instead of `EQ'.
3821         (put_byte_table): Likewise.
3822         (char_id_table_equal): Use `get_byte_table' [new implementation].
3823
3824 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3825
3826         * mule-charset.c: Include <limits.h> in UTF-2000.
3827         (BT_UINT8_MIN): New macro in UTF-2000.
3828         (BT_UINT8_MAX): New macro in UTF-2000.
3829         (BT_UINT8_t): New macro in UTF-2000.
3830         (BT_UINT8_nil): New macro in UTF-2000.
3831         (BT_UINT8_unbound): New macro in UTF-2000.
3832         (INT_UINT8_P): New inline function in UTF-2000.
3833         (UINT8_VALUE_P): New inline function in UTF-2000.
3834         (UINT8_ENCODE): New inline function in UTF-2000.
3835         (UINT8_DECODE): New inline function in UTF-2000.
3836         (mark_uint8_byte_table): New function in UTF-2000.
3837         (print_uint8_byte_table): New function in UTF-2000.
3838         (uint8_byte_table_equal): New function in UTF-2000.
3839         (uint8_byte_table_hash): New function in UTF-2000.
3840         (make_uint8_byte_table): New function in UTF-2000.
3841         (uint8_byte_table_same_value_p): New function in UTF-2000.
3842         (BT_UINT16_MIN): New macro in UTF-2000.
3843         (BT_UINT16_MAX): New macro in UTF-2000.
3844         (BT_UINT16_t): New macro in UTF-2000.
3845         (BT_UINT16_nil): New macro in UTF-2000.
3846         (BT_UINT16_unbound): New macro in UTF-2000.
3847         (INT_UINT16_P): New inline function in UTF-2000.
3848         (UINT16_VALUE_P): New inline function in UTF-2000.
3849         (UINT16_ENCODE): New inline function in UTF-2000.
3850         (UINT16_DECODE): New inline function in UTF-2000.
3851         (UINT8_TO_UINT16): New inline function in UTF-2000.
3852         (mark_uint16_byte_table): New function in UTF-2000.
3853         (print_uint16_byte_table): New function in UTF-2000.
3854         (uint16_byte_table_equal): New function in UTF-2000.
3855         (uint16_byte_table_hash): New function in UTF-2000.
3856         (make_uint16_byte_table): New function in UTF-2000.
3857         (uint16_byte_table_same_value_p): New function in UTF-2000.
3858         (print_byte_table): New function in UTF-2000.
3859         (byte-table): Use `print_byte_table' as printer.
3860         (make_byte_table): Delete second argument `older'.
3861         (byte_table_same_value_p): New function in UTF-2000.
3862         (copy_byte_table): Deleted.
3863         (get_byte_table): New function in UTF-2000.
3864         (put_byte_table): New function in UTF-2000.
3865         (print_char_id_table): New function in UTF-2000.
3866         (char-id-table): Use `print_char_id_table' as printer.
3867         (make_char_id_table): Delete second argument `older'.
3868         (get_char_id_table): Use `get_byte_table [new implementation].
3869         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3870         implementation].
3871         (Ffind_char_attribute_table): New function in UTF-2000.
3872         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3873         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3874         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3875         (syms_of_mule_charset): Add new function
3876         `find-char-attribute-table' in UTF-2000.
3877
3878         * lrecord.h (enum lrecord_type): Add
3879         `lrecord_type_uint16_byte_table' and
3880         `lrecord_type_uint8_byte_table'.
3881
3882         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3883         (Lisp_Uint8_Byte_Table): New type.
3884         (XUINT8_BYTE_TABLE): New macro.
3885         (XSETUINT8_BYTE_TABLE): New macro.
3886         (UINT8_BYTE_TABLE_P): New macro.
3887         (GC_UINT8_BYTE_TABLE_P): New macro.
3888         (struct Lisp_Uint16_Byte_Table): New structure.
3889         (Lisp_Uint16_Byte_Table): New type.
3890         (XUINT16_BYTE_TABLE): New macro.
3891         (XSETUINT16_BYTE_TABLE): New macro.
3892         (UINT16_BYTE_TABLE_P): New macro.
3893         (GC_UINT16_BYTE_TABLE_P): New macro.
3894
3895 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3896
3897         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3898         (Vcharacter_ideographic_strokes_table): Deleted.
3899         (Vcharacter_total_strokes_table): Deleted.
3900         (Vcharacter_morohashi_daikanwa_table): Deleted.
3901         (Vcharacter_decomposition_table): Deleted.
3902         (Qname): Deleted because it is duplicated.
3903         (Qideographic_radical): Deleted.
3904         (Qideographic_strokes): Deleted.
3905         (Qtotal_strokes): Deleted.
3906         (Qmorohashi_daikanwa): Deleted.
3907         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3908         `ideographic-radical', `ideographic-strokes', `total-strokes',
3909         `morohashi-daikanwa' and `->decomposition'.
3910         (Fget_char_attribute): Likewise.
3911         (Fput_char_attribute): Likewise; use `make-vector' instead of
3912         `make_older_vector' for `->decomposition' value.
3913         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3914         `ideograph-daikanwa'.
3915         (syms_of_mule_charset): Delete builtin symbols `name',
3916         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3917         `morohashi-daikanwa'.
3918         (vars_of_mule_charset): Don't setup
3919         `Vcharacter_ideographic_radical_table',
3920         `Vcharacter_ideographic_strokes_table',
3921         `Vcharacter_total_strokes_table',
3922         `Vcharacter_morohashi_daikanwa_table' and
3923         `Vcharacter_decomposition_table'.
3924
3925 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3926
3927         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3928         `make_older_vector', `make_vector_newer_1' and
3929         `make_vector_newer'.
3930
3931         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3932         `make_older_vector' and `make_vector_newer'.
3933
3934         * config.h.in (HAVE_GGC): New macro.
3935
3936 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3937
3938         * mule-charset.c (struct char_attribute_list_closure): New
3939         structure in UTF-2000.
3940         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3941         (Fchar_attribute_list): Likewise.
3942         (Fset_charset_mapping_table): Use `make_vector_newer'.
3943         (Fdecode_builtin_char): New function in UTF-2000.
3944         (syms_of_mule_charset): Add new function `char-attribute-list' and
3945         `decode-builtin-char' in UTF-2000.
3946
3947         * lisp.h (make_vector_newer): New prototype.
3948
3949         * alloc.c (make_vector_newer_1): New function.
3950         (make_vector_newer): New function.
3951
3952 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3953
3954         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3955         50100)'.
3956
3957 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3958
3959         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3960         (Vcharacter_attribute_table): Deleted.
3961         (Vcharacter_name_table): Deleted.
3962         (put_char_attribute): Deleted.
3963         (remove_char_attribute): Deleted.
3964         (struct char_attribute_alist_closure): New structure.
3965         (add_char_attribute_alist_mapper): New function.
3966         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3967         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3968         (Fget_char_attribute): Likewise.
3969         (Fput_char_attribute): Likewise.
3970         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3971         of `remove_char_attribute'.
3972         (Fdefine_char): Return character.
3973         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3974         and `Vcharacter_name_table'.
3975         (complex_vars_of_mule_charset): Likewise
3976         `Vchar_attribute_hash_table'.
3977
3978 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3979
3980         * character.h (CHARC_CHARSET): New macro.
3981         (CHARC_CHARSET_ID): New macro.
3982         (CHARC_CODE_POINT): New macro.
3983         (CHARC_COLUMNS): New macro.
3984         (CHARC_TO_CHAR): New inline function.
3985         (CHARC_EQ): New inline function.
3986         (CHARC_ASCII_EQ): New inline function.
3987         (CHARC_IS_SPACE): New inline function.
3988         (ASCII_TO_CHARC): New inline function.
3989
3990         * char-ucs.h (encode_char_2): Deleted.
3991         (ENCODE_CHAR): Use `encode_char_1' again.
3992         (breakup_char_1): Likewise.
3993         (CHAR_TO_CHARC): New inline function.
3994
3995         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3996
3997 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3998
3999         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
4000         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
4001         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
4002         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
4003         (create_string_text_block): Use `CHARC_ASCII_EQ' and
4004         `CHARC_IS_SPACE'.
4005         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
4006
4007         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
4008         `CHARC_CODE_POINT'.
4009         (x_output_display_block): Use `CHARC_CHARSET' and
4010         `CHARC_ASCII_EQ'.
4011
4012         * redisplay-tty.c (tty_output_display_block): Use
4013         `CHARC_ASCII_EQ'.
4014         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
4015
4016         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
4017
4018         * insdel.c (find_charsets_in_charc_string): Use
4019         `CHARC_CHARSET_ID'.
4020         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
4021         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
4022         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
4023         (convert_charc_string_into_malloced_string): Likewise.
4024
4025 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4026
4027         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
4028         instead of <Emchar_dynarr *> for buf; use
4029         `convert_bufbyte_string_into_charc_dynarr' instead of
4030         `convert_bufbyte_string_into_emchar_dynarr'; use
4031         `find_charsets_in_charc_string' instead of
4032         `find_charsets_in_emchar_string'.
4033
4034         * redisplay.h:
4035         - Include "character.h".
4036         (struct rune): New member `cglyph'; delete member `chr'.
4037
4038         * redisplay.c (redisplay_text_width_charc_string): New function;
4039         delete `redisplay_text_width_emchar_string'.
4040         (rtw_charc_dynarr): New variable; renamed from
4041         `rtw_emchar_dynarr'.
4042         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
4043         `rtw_emchar_dynarr'; use
4044         `convert_bufbyte_string_into_charc_dynarr' instead of
4045         `convert_bufbyte_string_into_emchar_dynarr'; use
4046         `redisplay_text_width_charc_string' instead of
4047         `redisplay_text_width_emchar_string'.
4048         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
4049         instead of `rtw_emchar_dynarr'; use
4050         `convert_bufbyte_string_into_charc_dynarr' instead of
4051         `convert_bufbyte_string_into_emchar_dynarr'.
4052         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
4053         `redisplay_text_width_charc_string' instead of
4054         `redisplay_text_width_emchar_string'.
4055         (create_text_block): Modify for <struct rune> change.
4056         (generate_formatted_string_db): Likewise.
4057         (create_string_text_block): Likewise.
4058         (pixel_to_glyph_translation): Likewise.
4059
4060         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
4061         instead of <const Emchar *>.
4062         (x_text_width): Likewise.
4063         (x_output_display_block): Use <Charc_dynarr *> instead
4064         <Emchar_dynarr *>; modify for <structure rune> change.
4065         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
4066         *>.
4067
4068         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
4069         <const Emchar *>; use `charc_string_displayed_columns' instead of
4070         `emchar_string_displayed_columns'.
4071         (tty_output_display_block): Use <Charc_dynarr *> instead of
4072         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
4073         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
4074         (tty_output_charc_dynarr_dynarr): New variable; renamed from
4075         `tty_output_emchar_dynarr_dynarr'.
4076         (tty_output_charc_dynarr): New function; delete
4077         `tty_output_charc_dynarr'.
4078
4079         * redisplay-output.c (compare_runes): Modify for `struct rune'.
4080         (redisplay_output_layout): Use <Charc_dynarr *> instead of
4081         <Emchar_dynarr *> for buf; use
4082         `convert_bufbyte_string_into_charc_dynarr' instead of
4083         `convert_bufbyte_string_into_emchar_dynarr'.
4084
4085         * frame.c (title_string_charc_dynarr): New variable; renamed from
4086         `title_string_emchar_dynarr'.
4087         (generate_title_string): Use `title_string_charc_dynarr' instead
4088         of `title_string_emchar_dynarr'; use
4089         `convert_charc_string_into_malloced_string' instead of
4090         `convert_emchar_string_into_malloced_string'.
4091         (init_frame): Use `title_string_charc_dynarr' instead of
4092         `title_string_emchar_dynarr'.
4093
4094         * console.h:
4095         - Include "character.h".
4096         (struct console_methods): Use <const Charc *> instead of <const
4097         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
4098         <Emchar_dynarr *> in output_string_method.
4099
4100         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
4101         <Emchar_dynarr *>.
4102
4103         * console-stream.c (stream_text_width): Use <const Charc *>
4104         instead of <const Emchar *>.
4105
4106         * character.h (Charc_dynarr): New type.
4107
4108         * char-ucs.h (structure Charc): New structure; define new type
4109         `Charc'.
4110
4111         * char-lb.h (DECODE_CHAR): New inline function.
4112         (encode_char_1): New inline function.
4113         (ENCODE_CHAR): New macro.
4114         (structure Charc): New structure; define new type `Charc'.
4115
4116         * char-1byte.h (Vcharset_control_1): New macro.
4117         (Vcharset_latin_iso8859_1): New macro.
4118         (DECODE_CHAR): New inline function.
4119         (encode_char_1): New inline function.
4120         (ENCODE_CHAR): New macro.
4121         (structure Charc): New structure; define new type `Charc'.
4122
4123         * insdel.c (find_charsets_in_charc_string): New function; delete
4124         `find_charsets_in_emchar_string'.
4125         (charc_string_displayed_columns): New function; delete
4126         `emchar_string_displayed_columns'.
4127         (convert_bufbyte_string_into_charc_dynarr): New function; delete
4128         `convert_bufbyte_string_into_emchar_dynarr'.
4129         (convert_charc_string_into_bufbyte_dynarr): New function; delete
4130         `convert_charc_string_into_bufbyte_dynarr'.
4131         (convert_charc_string_into_malloced_string): New function; delete
4132         `convert_charc_string_into_malloced_string'.
4133
4134         * buffer.h (find_charsets_in_charc_string): New prototype; delete
4135         `find_charsets_in_emchar_string'.
4136         (charc_string_displayed_columns): New prototype; delete
4137         `emchar_string_displayed_columns'.
4138         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
4139         `convert_charc_string_into_bufbyte_dynarr'.
4140         (convert_charc_string_into_malloced_string): New prototype; delete
4141         `convert_charc_string_into_malloced_string'.
4142
4143 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4144
4145         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
4146
4147 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4148
4149         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
4150
4151         * char-ucs.h: Use <short> for <Charset_ID>.
4152
4153         * mule-charset.h, char-1byte.h: Use <unsigned char> for
4154         <Charset_ID>.
4155
4156 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4157
4158         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4159         to 0.16.
4160
4161 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4162
4163         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
4164         variable.
4165         (Qmorohashi_daikanwa): New variable.
4166         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
4167         for `morohashi-daikanwa' attribute.
4168         (Fget_char_attribute): Likewise.
4169         (Fput_char_attribute): Likewise.
4170         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
4171         has the same value of `ideograph-daikanwa'.
4172         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
4173         (vars_of_mule_charset): Setup
4174         `Vcharacter_morohashi_daikanwa_table'.
4175
4176 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4177
4178         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
4179         attributes.
4180         (add_charset_to_list_mapper): Add `key' instead of
4181         `XCHARSET_NAME (value)' to return aliases.
4182
4183 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4184
4185         * mule-charset.c (Vcharacter_ideographic_radical_table): New
4186         variable.
4187         (Vcharacter_ideographic_strokes_table): New variable.
4188         (Qideographic_radical): New variable.
4189         (Qideographic_strokes): New variable.
4190         (Fchar_attribute_alist): Use
4191         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
4192         attribute; use `Vcharacter_ideographic_strokes_table' for
4193         `ideographic-strokes' attribute.
4194         (Fget_char_attribute): Likewise.
4195         (Fput_char_attribute): Likewise.
4196         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
4197         `ideographic-strokes'.
4198         (vars_of_mule_charset): Setup
4199         `Vcharacter_ideographic_radical_table' and
4200         `Vcharacter_ideographic_strokes_table'.
4201
4202 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4203
4204         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
4205         (Qtotal_strokes): New variable.
4206         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
4207         `total-strokes' attribute.
4208         (Fget_char_attribute): Likewise.
4209         (Fput_char_attribute): Likewise.
4210         (syms_of_mule_charset): Add new symbol `total-strokes'.
4211         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
4212
4213 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4214
4215         * mule-charset.c (Vcharacter_decomposition_table): New variable.
4216         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
4217         are found.
4218         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
4219         `->decomposition' attribute.
4220         (Fput_char_attribute): Likewise.
4221         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
4222
4223 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4224
4225         * mule-charset.c (decoding_table_check_elements): New function.
4226         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
4227
4228 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4229
4230         * mule-charset.c (Fset_charset_mapping_table): Use
4231         `put_char_ccs_code_point'.
4232
4233 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4234
4235         * mule-charset.c (decoding_table_put_char): New inline function.
4236         (put_char_ccs_code_point): Use `decoding_table_put_char'.
4237
4238 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4239
4240         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
4241         (XCHARSET_BYTE_SIZE): New macro.
4242         (decoding_table_remove_char): New inline function.
4243         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
4244         `decoding_table_remove_char'.
4245         (remove_char_ccs): Use `decoding_table_remove_char'.
4246         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
4247
4248 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4249
4250         * mule-charset.c (Vcharacter_name_table): New variable.
4251         (Qname): New variable.
4252         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
4253         attribute.
4254         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
4255         `Vcharacter_name_table' for `name' attribute.
4256         (Fremove_char_attribute): Use function `remove_char_ccs'.
4257         (put_char_ccs_code_point): New function.
4258         (remove_char_ccs): New function.
4259         (syms_of_mule_charset): Add new symbol `name'.
4260         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
4261
4262 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4263
4264         * mule-charset.c (make_byte_table): Add new argument `older'.
4265         (make_char_id_table): Likewise.
4266         (copy_char_id_table): Comment out because it is not used.
4267         (put_char_id_table): Modify for `make_byte_table'.
4268         (Fput_char_attribute): Make encoding_table as older object;
4269         inherit older bit of `Vcharacter_composition_table'.
4270         (mark_charset): Don't mark `cs->encoding_table'.
4271         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
4272         normal object; make `Vcharacter_composition_table' as an older
4273         object; delete staticpro for `Vcharacter_composition_table'; make
4274         `Vcharacter_variant_table' as a normal object.
4275
4276         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
4277         (mark_object): Don't check older object in UTF-2000.
4278
4279         * lrecord.h (struct lrecord_header): Add new member `older' in
4280         UTF-2000.
4281         (set_lheader_implementation): Setup `SLI_header->older' in
4282         UTF-2000.
4283         (set_lheader_older_implementation): New macro in UTF-2000.
4284         (OLDER_RECORD_P): New macro in UTF-2000.
4285         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
4286         (alloc_older_lcrecord): New prototype in UTF-2000.
4287         (alloc_older_lcrecord_type): New macro in UTF-2000.
4288
4289 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4290
4291         * mule-charset.c (byte_table_description): Use
4292         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
4293         (char_id_table_description): Delete bogus `, 1'.
4294         (Fget_char_attribute): Refer encoding_table of each coded-charset
4295         to get value of coded-charset attribute of a character.
4296         (Fput_char_attribute): Use `make_older_vector' instead of
4297         `make_vector'; use encoding_table of each coded-charset to store
4298         value of coded-charset attribute of a character.
4299         (Fremove_char_attribute): Use encoding_table of each coded-charset
4300         to store value of coded-charset attribute of a character.
4301         (mark_charset): Mark `cs->encoding_table'; don't mark
4302         `cs->decoding_table'.
4303         (charset_description): Add description of new member
4304         `encoding_table'.
4305         (make_charset): Initialize `encoding_table'.
4306
4307         * char-ucs.h (struct Lisp_Charset): Add new member
4308         `encoding_table'.
4309         (CHARSET_ENCODING_TABLE): New macro.
4310         (XCHARSET_ENCODING_TABLE): New macro.
4311         (charset_code_point): New implementation.
4312         (encode_char_1): Likewise.
4313
4314         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
4315         (disksave_object_finalization_1): Call finalizers of
4316         `all_older_lcrecords' in UTF-2000.
4317         (make_older_vector): New function in UTF-2000.
4318         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
4319         UTF-2000.
4320
4321         * lisp.h (make_older_vector): New prototype in UTF-2000.
4322
4323 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4324
4325         * lrecord.h (enum lrecord_type): Rename
4326         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
4327
4328         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
4329         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
4330         `get_char_code_table'.
4331
4332         * mule-charset.c (mark_char_id_table): Renamed from
4333         `mark_char_code_table'.
4334         (char_id_table_equal): Renamed from `char_code_table_equal'.
4335         (char_id_table_hash): Renamed from `char_code_table_hash'.
4336         (make_char_id_table): Renamed from `make_char_code_table'.
4337         (copy_char_id_table): Renamed from `copy_char_code_table'.
4338         (get_char_id_table): Renamed from `get_char_code_table'.
4339         (put_char_id_table): Renamed from `put_char_code_table'.
4340         (to_char_id): Renamed from `to_char_code'.
4341
4342         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
4343         `Lisp_Char_Code_Table'.
4344         (char_id_table): Renamed from `char_code_table'.
4345         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
4346         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
4347         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
4348         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
4349         (get_char_id_table): Renamed from `get_char_code_table'.
4350
4351 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4352
4353         * lrecord.h (enum lrecord_type): Rename
4354         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
4355
4356         * mule-charset.c (mark_byte_table): Renamed from
4357         `mark_char_byte_table'.
4358         (byte_table_equal): Renamed from `char_byte_table_equal'.
4359         (byte_table_hash): Renamed from `byte_table_hash'.
4360         (make_byte_table): Renamed from `make_byte_table'.
4361         (copy_byte_table): Renamed from `copy_char_byte_table'.
4362
4363         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4364         `Lisp_Char_Byte_Table'.
4365         (byte_table): Renamed from `char_byte_table'.
4366         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4367         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4368         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4369         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4370
4371 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4372
4373         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4374         (dfc_convert_to_internal_format): Likewise.
4375         
4376         * text-coding.c (Fcoding_system_canonical_name_p): New function.
4377         * text-coding.c (Fcoding_system_alias_p): New function.
4378         * text-coding.c (Fcoding_system_aliasee): New function.
4379         * text-coding.c (append_suffix_to_symbol): New function.
4380         * text-coding.c (dangling_coding_system_alias_p): New function.
4381         * text-coding.c (Ffind_coding_system):
4382         * text-coding.c (Fcopy_coding_system):
4383         * text-coding.c (encode_coding_no_conversion):
4384         * text-coding.c (syms_of_file_coding):
4385         * text-coding.c (vars_of_file_coding):
4386         Rewrite coding system alias code.
4387         Allow nested aliases, like symbolic links.
4388         Allow redefinition of coding system aliases.
4389         Prevent existence of dangling coding system aliases.
4390         Eliminate convert_to_external_format.
4391         Eliminate convert_to_internal_format.
4392         
4393         * text-coding.c: Change enum eol_type to eol_type_t.
4394
4395 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4396
4397         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4398         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4399
4400         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4401         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4402
4403 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4404
4405         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4406         `ideograph-daikanwa'.
4407
4408         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4409         (Vcharset_ucs_bmp): Likewise.
4410         (Vcharset_mojikyo): Add new extern variable definition.
4411         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4412         (Vcharset_latin_iso8859_3): Likewise.
4413         (Vcharset_latin_iso8859_4): Likewise.
4414         (Vcharset_latin_iso8859_9): Likewise.
4415         (Vcharset_latin_viscii_lower): Likewise.
4416         (Vcharset_latin_viscii_upper): Likewise.
4417         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4418         `mojikyo' code-point is used to decode.
4419         (encode_char_2): New function [to convert `mojikyo' code-point to
4420         Mojikyo font encoding].
4421         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4422         (breakup_char_1): Likewise.
4423         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4424
4425 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4426
4427         * text-coding.c (Fmake_coding_system): Add document about
4428         `disable-composition' property.
4429
4430 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4431
4432         * text-coding.c (Qdisable_composition): New variable; delete
4433         `Qcomposite'.
4434         (Fmake_coding_system): Add new property `disable-composite';
4435         delete property `composite'.
4436         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4437         instead of `!CODING_SYSTEM_COMPOSITE'.
4438         (syms_of_file_coding): Add new symbol `disable-composition';
4439         delete symbol `composite'.
4440
4441         * file-coding.h (struct Lisp_Coding_System): Add
4442         `disable_composition'; delete `enable_composition'.
4443         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4444         `CODING_SYSTEM_COMPOSITE'.
4445         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4446         `XCODING_SYSTEM_COMPOSITE'.
4447
4448 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4449
4450         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4451         to 0.15.
4452
4453 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4454
4455         * text-coding.c (Qcomposite): New variable.
4456         (Fmake_coding_system): Add new property `composite'.
4457         (struct decoding_stream): Add `combined_char_count',
4458         `combined_chars' and `combining_table' in UTF-2000.
4459         (COMPOSE_FLUSH_CHARS): New macro.
4460         (COMPOSE_ADD_CHAR): New macro.
4461         (reset_decoding_stream): Reset `str->combined_char_count' and
4462         `str->combining_table' in UTF-2000.
4463         (decode_coding_iso2022): Modify for character-decomposition.
4464         (syms_of_file_coding): Add new symbol `composite'.
4465
4466 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4467
4468         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4469         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4470         of `Vcharacter_composition_table' if `->decomposition' property
4471         has only 1 element.
4472         (Qlatin_tcvn5712): New variable.
4473         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4474         (complex_vars_of_mule_charset): Add new coded-charset
4475         `latin-tcvn5712'.
4476
4477         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4478
4479 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4480
4481         * file-coding.h (struct Lisp_Coding_System): Add
4482         `enable_composition'.
4483         (CODING_SYSTEM_COMPOSITE): New macro.
4484         (XCODING_SYSTEM_COMPOSITE): New macro.
4485
4486 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4487
4488         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4489
4490 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4491
4492         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4493         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4494
4495 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4496
4497         * mule-charset.c (Vcharset_mojikyo): New variable.
4498         (Fdefine_char): Don't use coded-charset which does not have
4499         non-builtin character range to allocate character-id.
4500         (Qmojikyo): New variable.
4501         (syms_of_mule_charset): Add new symbol `mojikyo'.
4502         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4503
4504         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4505         (LEADING_BYTE_MOJIKYO): New macro.
4506         (MIN_CHAR_MOJIKYO): New macro.
4507         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4508         (MAX_CHAR_MOJIKYO): New macro.
4509
4510 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4511
4512         * mule-charset.c (remove_char_attribute): Fixed.
4513
4514 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4515
4516         * mule-charset.c (remove_char_attribute): New function.
4517         (Fremove_char_attribute): New function.
4518         (encode_builtin_char_1): Comment out builtin-support for
4519         greek-iso8859-7 and cyrillic-iso8859-5.
4520         (Fdecode_char): Check `code' is an integer.
4521         (syms_of_mule_charset): Add `remove-char-attribute'.
4522         (MIN_CHAR_GREEK): Deleted.
4523         (MAX_CHAR_GREEK): Likewise.
4524         (MIN_CHAR_CYRILLIC): Likewise.
4525         (MAX_CHAR_CYRILLIC): Likewise.
4526         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4527         MAX_CHAR_GREEK for `greek-iso8859-7'.
4528
4529         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4530         (MAX_CHAR_GREEK): Likewise.
4531         (MIN_CHAR_CYRILLIC): Likewise.
4532         (MAX_CHAR_CYRILLIC): Likewise.
4533
4534 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4535
4536         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4537         format is used without `ucs' property.
4538         (Fdecode_char): Fix problem with GR representation.
4539         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4540         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4541
4542 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4543
4544         * mule-charset.c (make_builtin_char): New function.
4545         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4546         (Fset_charset_mapping_table): Modify for new representation of
4547         code-point.
4548         (Fdecode_char): New function.
4549         (syms_of_mule_charset): Add new builtin function `decode-char' in
4550         UTF-2000.
4551
4552         * char-ucs.h (make_builtin_char): New prototype.
4553         (DECODE_CHAR): New inline function.
4554         (MAKE_CHAR): Use `DECODE_CHAR'.
4555
4556 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4557
4558         * text-coding.c (parse_charset_conversion_specs): Use
4559         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4560         `XCHARSET_TYPE'.
4561         (iso2022_designate): Likewise.
4562
4563         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4564         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4565
4566         * mule-charset.c (Vcharset_ucs): New variable.
4567         (print_charset): Change design; use `CHARSET_CHARS' and
4568         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4569         (make_charset): Change signature to specify `chars' and
4570         `dimension' instead of `type'.
4571         (range_charset_code_point): Modify for 256^n-set.
4572         (encode_builtin_char_1): Encode as `ucs' in default.
4573         (Fmake_charset): Modify for `make_charset'.
4574         (Fmake_reverse_direction_charset): Likewise.
4575         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4576         UTF-2000.
4577         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4578         for `make_charset'.
4579
4580         * char-ucs.h (Vcharset_ucs): New variable.
4581         (LEADING_BYTE_UCS): New macro.
4582         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4583         and `chars' to `unsigned short' from `unsigned int'.
4584         (CHARSET_TYPE): Deleted.
4585         (XCHARSET_TYPE): Deleted.
4586
4587 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4588
4589         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4590
4591         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4592         (ENCODE_CHAR): New macro.
4593
4594 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4595
4596         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4597         to 0.14 (Kawachi-Katakami).
4598
4599 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4600
4601         * text-coding.c (char_encode_shift_jis): Modify for
4602         `charset_code_point'.
4603         (char_encode_iso2022): Likewise.
4604
4605         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4606         (integer) instead of list of <Lisp_Object>s (integers) as the
4607         format of code-point of a coded-charset.
4608         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4609         (encode_builtin_char_1): New function; delete
4610         `split_builtin_char'.
4611         (charset_code_point): Return <int> instead of <Lisp_Object>.
4612         (Fsplit_char): Don't use `SPLIT_CHAR'.
4613
4614         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4615         prototype for `split_builtin_char'.
4616         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4617         (charset_code_point): Likewise.
4618         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4619         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4620
4621 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4622
4623         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4624         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4625
4626 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4627
4628         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4629
4630         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4631         (MAX_CHAR_OBS_94x94): Deleted.
4632
4633 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4634
4635         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4636
4637         * char-ucs.h (MAX_CHAR_BMP): New macro.
4638
4639 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4640
4641         * text-coding.c: Sync with r21-2-24.
4642
4643 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4644
4645         * file-coding.c: Modify for UTF-2000.
4646
4647 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4648
4649         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4650         to 0.13 (Takaida).
4651
4652 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4653
4654         * mule-charset.c (split_builtin_char): Delete builtin support for
4655         `katakana-jisx0201'.
4656         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4657         BMP area in builtin representation.
4658
4659         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4660         `Vcharset_katakana_jisx0201'.
4661
4662 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4663
4664         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4665         (Qisolated): New variable.
4666         (Qinitial): New variable.
4667         (Qmedial): New variable.
4668         (Qfinal): New variable.
4669         (Qvertical): New variable.
4670         (Qsmall): New variable.
4671         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4672         `Qvertical' and `Qsmall'.
4673         (Qmojikyo_pj_[1 .. 21]): New variable.
4674         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4675         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4676         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4677         .. 21]'.
4678
4679 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4680
4681         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4682         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4683         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4684
4685 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4686
4687         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4688         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4689         BMP.
4690         (Qjapanese_jisx0208_1990): New variable.
4691         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4692         (complex_vars_of_mule_charset): Add new coded-charset
4693         `japanese-jisx0208-1990'.
4694
4695         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4696         (MIN_CHAR_JIS_X0208_1990): New macro.
4697         (MAX_CHAR_JIS_X0208_1990): New macro.
4698
4699 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4700
4701         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4702         coded-charset is not found.
4703
4704 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4705
4706         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4707         (Fdefine_char): Use `Fmake_char'.
4708
4709 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4710
4711         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4712         (Vcharset_hiragana_jisx0208): Deleted.
4713         (Vcharset_katakana_jisx0208): Deleted.
4714         (Qideograph_daikanwa): New variable.
4715         (Qhiragana_jisx0208): Deleted.
4716         (Qkatakana_jisx0208): Deleted.
4717         (split_builtin_char): Split `ideograph-daikanwa'.
4718         (Fsplit_char): New implementation for UTF-2000.
4719         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4720         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4721         (complex_vars_of_mule_charset): Add new coded-charset
4722         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4723         `katakana-jisx0208'.
4724
4725         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4726         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4727         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4728         (MIN_CHAR_DAIKANWA): New macro.
4729         (MAX_CHAR_DAIKANWA): New macro.
4730
4731 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4732
4733         * data.c (Fstring_to_number): Don't recognize floating point if
4734         base is not 10.
4735
4736 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4737
4738         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4739
4740 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4741
4742         * mule-charset.c (Qsquare): New variable.
4743         (to_char_code): Add `Qsquare'.
4744         (syms_of_mule_charset): Add new symbol `square'.
4745
4746 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4747
4748         * mule-charset.c (Qcircle): New variable.
4749         (to_char_code): Add `Qcircle'.
4750         (syms_of_mule_charset): Add new symbol `circle'.
4751
4752 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4753
4754         * mule-charset.c (Qfont): New variable.
4755         (to_char_code): Add `Qfont'.
4756         (syms_of_mule_charset): Add new symbol `font'.
4757
4758 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4759
4760         * mule-charset.c (Qsub): New variable.
4761         (to_char_code): Add `Qsub'.
4762         (syms_of_mule_charset): Add new symbol `sub'.
4763
4764 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4765
4766         * mule-charset.c (Fput_char_attribute): Convert each element of
4767         VALUE to GL position if ATTRIBUTE is a GR-set,
4768
4769 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4770
4771         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4772         coded-charset is a GR-set.
4773
4774 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4775
4776         * mule-charset.c (Fput_char_attribute): Check each element of
4777         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4778
4779 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4780
4781         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4782         UTF-2000.
4783         (Qethiopic_ucs): New variable in UTF-2000.
4784         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4785         (complex_vars_of_mule_charset): Add new coded-charset
4786         `ethiopic-ucs' in UTF-2000.
4787
4788         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4789         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4790         9)'.
4791         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4792         10)'.
4793         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4794
4795 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4796
4797         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4798         `ascii'.
4799
4800 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4801
4802         * mule-charset.c (Vcharacter_variant_table): New variable.
4803         (Q_ucs): New variable.
4804         (Fchar_variants): New function.
4805         (Fput_char_attribute): Register `->ucs' value to
4806         `Vcharacter_variant_table'.
4807         (syms_of_mule_charset): Add new function `char-variants' and new
4808         symbol `->ucs'.
4809         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4810
4811 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4812
4813         * mule-charset.c (get_char_code_table): Allow negative character
4814         code.
4815         (put_char_code_table): Likewise.
4816         (Vcharacter_composition_table): New variable.
4817         (Q_decomposition): New variable.
4818         (Qwide): New variable.
4819         (Qnarrow): New variable.
4820         (Qcompat): New variable.
4821         (QnoBreak): New variable.
4822         (Qsuper): New variable.
4823         (Qfraction): New variable.
4824         (to_char_code): New function.
4825         (Fget_composite_char): New function.
4826         (Fput_char_attribute): Register `->decomposition' value to
4827         `Vcharacter_composition_table'.
4828         (syms_of_mule_charset): Add new function `get-composite-char', new
4829         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4830         `super' and `fraction'.
4831         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4832
4833 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4834
4835         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4836         character; copy the return value.
4837
4838 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4839
4840         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4841
4842         * mule-charset.c (range_charset_code_point): Must use make_int.
4843         (split_builtin_char): New function.
4844
4845 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4846
4847         * mule-charset.c (char_byte_table): Change name from
4848         "char-code-table" to "char-byte-table".
4849         (mark_char_code_table): New function.
4850         (char_code_table_equal): New function.
4851         (char_code_table_hash): New function.
4852         (char_code_table_description): New constant.
4853         (char_code_table): New type.
4854         (make_char_code_table): New function.
4855         (copy_char_code_table): New function.
4856         (get_char_code_table): Modify for `char_code_table' type.
4857         (put_char_code_table): Likewise.
4858         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4859         (Kashiwara).
4860
4861         * char-ucs.h (char_code_table): New type.
4862         (XCHAR_CODE_TABLE): New macro.
4863         (XSETCHAR_CODE_TABLE): New macro.
4864         (CHAR_CODE_TABLE_P): New macro.
4865         (GC_CHAR_CODE_TABLE_P): New macro.
4866         (struct Lisp_Char_Code_Table): New structure.
4867
4868 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4869
4870         * mule-charset.c (Fmake_charset): Setup byte_offset for
4871         {94|96}^n-set.
4872
4873 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4874
4875         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4876         character.
4877
4878 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4879
4880         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4881         is found.
4882
4883 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4884
4885         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4886         charset, it is regarded as a charset.
4887         (put_char_attribute): New function in UTF-2000.
4888         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4889         charset, mapping-table of the charset is modified.
4890         (Fdefine_char): New function in UTF-2000.
4891         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4892         `Fput_char_attribute'.
4893         (syms_of_mule_charset): Add new function `define-char' and new
4894         symbol `ucs' in UTF-2000.
4895         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4896
4897 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4898
4899         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4900         non-UTF-2000 configuration.
4901
4902 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4903
4904         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4905         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4906
4907         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4908         deleted.
4909         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4910         (Fset_charset_mapping_table): Likewise.
4911
4912         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4913         (CHARSET_ENCODING_TABLE): Delete.
4914         (XCHARSET_ENCODING_TABLE): Delete.
4915         (charset_code_point): New interface.
4916
4917 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4918
4919         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4920         instead of `charset_get_byte1' and `charset_get_byte2'.
4921
4922         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4923         (charset_get_byte2): Deleted.
4924
4925 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4926
4927         * char-ucs.h (SPLIT_CHAR): New inline function.
4928         (breakup_char_1): Use `SPLIT_CHAR'.
4929
4930         * mule-charset.c (range_charset_code_point): New function.
4931         (charset_code_point): New function.
4932
4933         * char-ucs.h (range_charset_code_point): New interface.
4934         (breakup_char_1): Use `range_charset_code_point'.
4935
4936 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4937
4938         * mule-charset.c (Fmake_charset): Delete unused local variable
4939         `code_offset'.
4940
4941         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4942         (breakup_char_1): Find a charset and code-point in
4943         `Vcharacter_attribute_table'.
4944
4945 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4946
4947         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4948         to 0.10 (Yao).
4949
4950 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4951
4952         * mule-charset.c (Vcharacter_attribute_table): New variable.
4953         (Fchar_attribute_alist): New function.
4954         (Fget_char_attribute): New function.
4955         (Fput_char_attribute): New function.
4956         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4957         too.
4958         (syms_of_mule_charset): Add new function `char-attribute-alist',
4959         `get-char-attribute' and `put-char-attribute'.
4960         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4961
4962 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4963
4964         * mule-charset.c (Fmake_charset): Just use
4965         `get_unallocated_leading_byte'.
4966
4967         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4968         sets; don't use final-byte based number for private sets.
4969
4970 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4971
4972         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4973         integer.
4974
4975 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4976
4977         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4978         to 0.9.
4979
4980 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4981
4982         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4983         of `CHAR_LEADING_BYTE' in UTF-2000.
4984
4985         * insdel.c (find_charsets_in_bufbyte_string): Use
4986         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4987         (find_charsets_in_emchar_string): Likewise.
4988
4989         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4990         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4991
4992         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4993         (CHAR_CHARSET_ID): New macro.
4994
4995 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4996
4997         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4998         charset-id - MIN_LEADING_BYTE.
4999         (put_char_table): Likewise.
5000
5001 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5002
5003         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
5004         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
5005         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
5006         (CHARSET_ID_OFFSET): New macro.
5007         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
5008         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
5009         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
5010         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
5011         4).
5012         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
5013         5).
5014         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
5015         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
5016         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
5017         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
5018         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
5019
5020 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5021
5022         * mule-charset.c (next_allocated_leading_byte): New variable in
5023         UTF-2000.
5024         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
5025         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
5026         (get_unallocated_leading_byte): Simply use
5027         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
5028         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
5029         UTF-2000.
5030
5031         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
5032         (MAX_LEADING_BYTE_PRIVATE): New macro.
5033         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
5034         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
5035
5036 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5037
5038         * mule-charset.c (Fmake_charset): Allocate final-byte based
5039         charset-id for 94-set, 96-set and 94x94-set.
5040
5041 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5042
5043         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
5044         ambiguous `else'.
5045         (Fmake_charset): Likewise.
5046         (complex_vars_of_mule_charset): Modify the font registry of
5047         `ucs-bmp' not to match `Ethiopic-Unicode'.
5048
5049 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5050
5051         * mule-charset.c (complex_vars_of_mule_charset): Add font
5052         registory of `ucs-bmp'.
5053
5054 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5055
5056         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
5057         coded-charsets in `default-coded-charset-priority-list' when
5058         breaking up a character.
5059
5060         * mule-charset.c (Vcharset_latin_viscii): New variable.
5061         (Qlatin_viscii): New variable.
5062         (make_charset): Don't use `decoding_table'.
5063         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
5064         byte_offset.
5065         (Fset_charset_mapping_table): New implementation.
5066         (syms_of_mule_charset): Add new symbol `latin-viscii'.
5067         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
5068         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
5069         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
5070         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
5071         charset `latin_viscii'.
5072
5073         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
5074         (CHARSET_TYPE_94X94): Change to 1 from 2.
5075         (CHARSET_TYPE_96): Change to 2 from 1.
5076         (CHARSET_TYPE_128): New macro.
5077         (CHARSET_TYPE_128X128): Change to 5 from 4.
5078         (CHARSET_TYPE_256): New macro.
5079         (CHARSET_TYPE_256X256): Change to 7 from 5.
5080         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
5081
5082 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5083
5084         * text-coding.c (char_encode_shift_jis): Refer
5085         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
5086         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
5087
5088         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
5089         (char_byte_table_equal): New function in UTF-2000.
5090         (char_byte_table_hash): New function in UTF-2000.
5091         (char_byte_table_description): New constant in UTF-2000.
5092         (char_byte_table): New type in UTF-2000.
5093         (make_char_byte_table): New function in UTF-2000.
5094         (copy_char_byte_table): New function in UTF-2000.
5095         (make_char_code_table): New macro in UTF-2000.
5096         (get_char_code_table): New function in UTF-2000.
5097         (put_char_code_table): New function in UTF-2000.
5098         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
5099         (charset_description): Add setting in UTF-2000.
5100         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
5101         `CHARSET_TO_BYTE1_TABLE(cs)'.
5102         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
5103         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
5104         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
5105         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
5106         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
5107         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
5108         `CHARSET_TO_BYTE2_TABLE(cs)'.
5109
5110         * char-ucs.h (char_byte_table): New type.
5111         (XCHAR_BYTE_TABLE): New macro.
5112         (XSETCHAR_BYTE_TABLE): New macro.
5113         (CHAR_BYTE_TABLE_P): New macro.
5114         (GC_CHAR_BYTE_TABLE_P): New macro.
5115         (struct Lisp_Char_Byte_Table): New structure.
5116         (get_char_code_table): New interface.
5117         (Emchar_to_byte_table): Deleted.
5118         (get_byte_from_character_table): Deleted.
5119         (struct Lisp_Charset): Add `encoding_table'; delete
5120         `to_byte1_table' and `to_byte2_table'.
5121         (CHARSET_ENCODING_TABLE): New macro.
5122         (CHARSET_TO_BYTE1_TABLE): Deleted.
5123         (CHARSET_TO_BYTE2_TABLE): Deleted.
5124         (XCHARSET_ENCODING_TABLE): New macro.
5125         (XCHARSET_TO_BYTE1_TABLE): Deleted.
5126         (XCHARSET_TO_BYTE2_TABLE): Deleted.
5127
5128 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5129
5130         * mule-charset.c (syms_of_mule_charset): Delete charset alias
5131         `vietnamese-viscii-*'.
5132
5133 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5134
5135         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
5136         (Qvietnamese_viscii_upper): New variable.
5137         (Fdefine_charset_alias): New function.
5138         (syms_of_mule_charset): Add new function `define-charset-alias'.
5139         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
5140         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
5141         `latin-viscii-*'.
5142
5143 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
5144
5145         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
5146         (MAX_CHAR_OBS_94x94): New macro.
5147         (breakup_char_1): Support obsolete XEmacs-UCS private code space
5148         for 94x94 sets.
5149
5150         * mule-charset.c (put_byte_from_character_table): Change unit size
5151         from 128 to 256.
5152         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
5153         not defined.
5154         (Fmake_reverse_direction_charset): Modify dummy argument of
5155         `make_charset' for non-UTF-2000 environment.
5156
5157 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5158
5159         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
5160
5161         * mule-charset.c (destroy_byte_from_character_table): New macro.
5162         (latin_jisx0201_to_ucs): Deleted.
5163         (latin_iso8859_2_to_ucs): Deleted.
5164         (latin_iso8859_3_to_ucs): Deleted.
5165         (latin_iso8859_4_to_ucs): Deleted.
5166         (latin_iso8859_9_to_ucs): Deleted.
5167         (latin_viscii_lower_to_ucs): Deleted.
5168         (latin_viscii_upper_to_ucs): Deleted.
5169         (mark_charset): Mark `cs->decoding_table'.
5170         (Fcharset_mapping_table): Fix DOC-string.
5171         (Fset_charset_mapping_table): New function.
5172         (syms_of_mule_charset): Add nwe function
5173         `set-charset-mapping-table'.
5174         (complex_vars_of_mule_charset): Don't setup and use
5175         `latin_*_to_ucs'.
5176
5177 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5178
5179         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
5180         charset.
5181
5182 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5183
5184         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
5185         (Vcharset_katakana_jisx0208): New variable.
5186         (Qhiragana_jisx0208): New variable.
5187         (Qkatakana_jisx0208): New variable.
5188         (make_charset): Add new argument `byte_offset'.
5189         (charset_get_byte1): Modify for new coded-charset definition; use
5190         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5191         `XCHARSET_BYTE_OFFSET'.
5192         (Fmake_charset): Modify for `make_charset'.
5193         (Fmake_reverse_direction_charset): Likewise.
5194         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
5195         `katakana-jisx0208'.
5196         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
5197         `.'  in font registry of charset `katakana-jisx0201',
5198         `latin-jisx0201', `vietnamese-viscii-lower' and
5199         `vietnamese-viscii-upper'; modify DOC-string of charset
5200         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
5201         registry of charset `japanese-jisx0208' not to use font for JIS
5202         X0208:1990; add new charset `hiragana-jisx0208' and
5203         `katakana-jisx0208'.
5204
5205         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
5206         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
5207         (struct Lisp_Charset): Add `byte_offset'.
5208         (CHARSET_BYTE_OFFSET): New macro.
5209         (XCHARSET_UCS_MIN): New macro.
5210         (XCHARSET_UCS_MAX): New macro.
5211         (XCHARSET_CODE_OFFSET): New macro.
5212         (XCHARSET_BYTE_OFFSET): New macro.
5213         (MIN_CHAR_HIRAGANA): New macro.
5214         (MAX_CHAR_HIRAGANA): New macro.
5215         (MIN_CHAR_KATAKANA): New macro.
5216         (MAX_CHAR_KATAKANA): New macro.
5217         (MAKE_CHAR): Modify for new coded-charset definition; use
5218         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5219         `XCHARSET_BYTE_OFFSET'.
5220
5221 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5222
5223         * mule-charset.c (CHAR96): Deleted.
5224         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
5225         <Lisp_Object>.
5226         (latin_iso8859_2_to_ucs): Likewise.
5227         (latin_iso8859_3_to_ucs): Likewise.
5228         (latin_iso8859_4_to_ucs): Likewise.
5229         (latin_iso8859_9_to_ucs): Likewise.
5230         (latin_viscii_lower_to_ucs): Likewise.
5231         (latin_viscii_upper_to_ucs): Likewise.
5232         (latin_tcvn5712_to_ucs): Commented out.
5233         (make_charset): Change type of argument `decoding_table' from
5234         <Emchar*> to <Lisp_Object> [vector of characters].
5235         (Fmake_charset): Modify for `make_charset'.
5236         (Fmake_reverse_direction_charset): Likewise.
5237         (Fcharset_mapping_table): New function in UTF-2000.
5238         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
5239         UTF-2000.
5240         (complex_vars_of_mule_charset): Modify for type change of
5241         `*_to_ucs'; modify for `make_charset'.
5242
5243         * char-ucs.h (struct Lisp_Charset): Change type of
5244         `decoding_table' from <Emchar*> to <Lisp_Object>.
5245         (MAKE_CHAR): Modify for new specification of `decoding_table'.
5246
5247 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
5248
5249         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
5250         error with non-UTF-2000-Mule.
5251
5252 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
5253
5254         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
5255         in lisp again].
5256         (Vcharset_chinese_cns11643_4): Likewise.
5257         (Vcharset_chinese_cns11643_5): Likewise.
5258         (Vcharset_chinese_cns11643_6): Likewise.
5259         (Vcharset_chinese_cns11643_7): Likewise.
5260         (Qchinese_cns11643_3): Likewise.
5261         (Qchinese_cns11643_4): Likewise.
5262         (Qchinese_cns11643_5): Likewise.
5263         (Qchinese_cns11643_6): Likewise.
5264         (Qchinese_cns11643_7): Likewise.
5265         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
5266         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5267         and `chinese-cns11643-7' to lisp/mule/chinese.el.
5268         (complex_vars_of_mule_charset): Likewise.
5269
5270 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
5271
5272         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
5273         96-set.
5274         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
5275         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
5276
5277 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5278
5279         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
5280         0xFF60.
5281         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
5282         (breakup_char_1): Likewise.
5283
5284         * text-coding.c (char_encode_iso2022): Keep designated charsets if
5285         one of them includes the specified character.
5286
5287 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5288
5289         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
5290
5291 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5292
5293         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
5294
5295 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5296
5297         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
5298         definition for non-UTF-2000 Mule.
5299         (latin_iso8859_3_to_ucs): Likewise.
5300         (latin_iso8859_4_to_ucs): Likewise.
5301         (latin_iso8859_9_to_ucs): Likewise.
5302         (latin_jisx0201_to_ucs): Likewise.
5303         (MIN_CHAR_THAI): Likewise.
5304         (MAX_CHAR_THAI): Likewise.
5305         (MIN_CHAR_GREEK): Likewise.
5306         (MAX_CHAR_GREEK): Likewise.
5307         (MIN_CHAR_HEBREW): Likewise.
5308         (MAX_CHAR_HEBREW): Likewise.
5309         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
5310         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
5311         (MIN_CHAR_CYRILLIC): Likewise.
5312         (MAX_CHAR_CYRILLIC): Likewise.
5313
5314 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5315
5316         * char-ucs.h (breakup_char_1): Use
5317         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
5318         thai-tis620 and katakana-jisx0201 area.
5319
5320 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5321
5322         * char-ucs.h (breakup_char_1): Use
5323         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
5324         area.
5325
5326         * text-coding.c (reset_encoding_stream): Fixed.
5327         (char_encode_ucs4): Delete `& 255'.
5328
5329         * char-ucs.h (breakup_char_1): Use
5330         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
5331
5332 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5333
5334         * file-coding.c (Fmake_coding_system): Don't set up
5335         `codesys->fixed.size'.
5336         (encode_coding_no_conversion): Don't refer
5337         `str->codesys->fixed.size'.
5338
5339 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5340
5341         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
5342         (latin_a_char_to_byte1): Deleted.
5343         (latin_a_char_to_byte2): Deleted.
5344
5345 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5346
5347         * mule-charset.c (make_charset): Add new argument `ucs_min',
5348         `ucs_max' and `code_offset'.
5349         (charset_get_byte1): New implementation [delete specific charset
5350         depended implementations].
5351         (Fmake_charset): Modify for `make_charset'.
5352         (Fmake_reverse_direction_charset): Likewise.
5353         (complex_vars_of_mule_charset): Likewise.
5354
5355         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
5356         `code_offset'.
5357         (CHARSET_UCS_MIN): New macro.
5358         (CHARSET_UCS_MAX): New macro.
5359         (CHARSET_CODE_OFFSET): New macro.
5360         (MAKE_CHAR): Delete charset depended definitions [except
5361         katakana-jisx0201].
5362
5363 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
5364
5365         * char-ucs.h (breakup_char_1): Use
5366         `Vdefault_coded_charset_priority_list' for C0-Controls,
5367         Basic-Latin, C1-Controls and Latin-1-Supplement area.
5368
5369 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5370
5371         * char-ucs.h (charset_get_byte1): New function.
5372         (XCHARSET_GET_BYTE1): Deleted.
5373         (charset_get_byte2): New function.
5374         (XCHARSET_GET_BYTE2): Deleted.
5375         (Vdefault_coded_charset_priority_list): New external variable.
5376         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5377         `Vdefault_preferred_coded_charset_list'.
5378
5379         * mule-charset.c (charset_get_byte1): New function.
5380         (charset_get_byte2): New function.
5381         (Vdefault_coded_charset_priority_list): New variable.
5382         (vars_of_mule_charset): Add new variable
5383         `default-coded-charset-priority-list'.
5384
5385 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5386
5387         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5388         (XCHARSET_GET_BYTE2): New inline function.
5389         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5390         `XCHARSET_GET_BYTE2'.
5391
5392 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5393
5394         * mule-charset.c (make_charset): Initialize
5395         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5396         NULL if table is not defined.
5397
5398 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5399
5400         * text-coding.c (char_encode_shift_jis): Use
5401         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5402         `ucs_to_latin_jisx0201'.
5403
5404         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5405         (ucs_to_latin_iso8859_2): Deleted.
5406         (ucs_to_latin_iso8859_3): Deleted.
5407         (ucs_to_latin_iso8859_4): Deleted.
5408         (ucs_to_latin_iso8859_9): Deleted.
5409         (ucs_to_latin_viscii_lower): Deleted.
5410         (ucs_to_latin_viscii_upper): Deleted.
5411         (ucs_to_latin_tcvn5712): Deleted.
5412         (make_charset): Add new argument `decoding_table'; set up
5413         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5414         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5415         `decoding_table' is defined in UTF-2000.
5416         (Fmake_charset): Modify for `make_charset'.
5417         (Fmake_reverse_direction_charset): Likewise.
5418         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5419         and `GENERATE_96_SET'.
5420
5421         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5422         (ucs_to_latin_jisx0201): Deleted.
5423         (latin_iso8859_2_to_ucs): Deleted.
5424         (ucs_to_latin_iso8859_2): Deleted.
5425         (latin_iso8859_3_to_ucs): Deleted.
5426         (ucs_to_latin_iso8859_3): Deleted.
5427         (latin_iso8859_4_to_ucs): Deleted.
5428         (ucs_to_latin_iso8859_4): Deleted.
5429         (latin_iso8859_9_to_ucs): Deleted.
5430         (ucs_to_latin_iso8859_9): Deleted.
5431         (latin_viscii_lower_to_ucs): Deleted.
5432         (ucs_to_latin_viscii_lower): Deleted.
5433         (latin_viscii_upper_to_ucs): Deleted.
5434         (ucs_to_latin_viscii_upper): Deleted.
5435         (struct Lisp_Charset): Renamed `encoding_table' to
5436         `to_byte1_table'; add `to_byte2_table'.
5437         (CHARSET_DECODING_TABLE): New macro.
5438         (CHARSET_TO_BYTE1_TABLE): New macro.
5439         (CHARSET_TO_BYTE2_TABLE): New macro.
5440         (XCHARSET_DECODING_TABLE): New macro.
5441         (XCHARSET_TO_BYTE1_TABLE): New macro.
5442         (XCHARSET_TO_BYTE2_TABLE): New macro.
5443         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5444         tables.
5445         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5446         don't use `ucs_to_*' tables.
5447
5448 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5449
5450         * text-coding.c (Fmake_coding_system): Don't set up
5451         `codesys->fixed.size'.
5452         (encode_coding_no_conversion): Use `if' instead of `switch'.
5453
5454         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5455
5456 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5457
5458         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5459         (Fmake_charset): Modify for `make_charset'.
5460         (Fmake_reverse_direction_charset): Likewise.
5461         (complex_vars_of_mule_charset): Likewise.
5462
5463 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5464
5465         * text-coding.c (char_encode_shift_jis): Use table
5466         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5467
5468 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5469
5470         * text-coding.c (text_encode_generic): Use `if' instead of
5471         `switch'.
5472         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5473         decode JIS-Latin.
5474
5475 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5476
5477         * text-coding.c (encode_coding_sjis): Deleted.
5478         (char_encode_shift_jis): New function.
5479         (char_finish_shift_jis): New function.
5480         (reset_encoding_stream): Set up `encode_char' and `finish' for
5481         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5482         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5483         (char_encode_utf8): Treat `eol_type'.
5484
5485 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5486
5487         * file-coding.c (decode_coding_iso2022): Use
5488         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5489
5490 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5491
5492         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5493         to 0.7 (Hirano).
5494
5495 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5496
5497         * char-lb.h (CHAR_COLUMNS): New macro.
5498
5499 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5500
5501         * text-coding.c (char_encode_ucs4): New function.
5502         (char_finish_ucs4): New function.
5503         (encode_coding_ucs4): Deleted.
5504         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5505         (text_encode_generic): Delete local variable `charset' and `half'.
5506         (ucs_to_mule_table): Deleted.
5507         (mule_to_ucs_table): Deleted.
5508         (Fset_ucs_char): Deleted.
5509         (ucs_to_char): Deleted.
5510         (Fucs_char): Deleted.
5511         (Fset_char_ucs): Deleted.
5512         (Fchar_ucs): Deleted.
5513         (decode_ucs4): Deleted.
5514         (mule_char_to_ucs4): Deleted.
5515         (encode_ucs4): Deleted.
5516         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5517         (decode_coding_utf8): Likewise.
5518         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5519         (char_encode_iso2022): Fixed.
5520         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5521         `Fset_char_ucs' and `Fchar_ucs'.
5522         (complex_vars_of_file_coding): Don't initialize
5523         `ucs_to_mule_table'.
5524
5525         * objects-tty.c (tty_initialize_font_instance): Don't use
5526         `XCHARSET_COLUMNS'.
5527
5528         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5529         UTF-2000.
5530
5531         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5532         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5533
5534         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5535         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5536         (emchar_string_displayed_columns): Likewise.
5537
5538         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5539         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5540         (string_column_at_point): Likewise.
5541         (Fmove_to_column): Likewise.
5542
5543         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5544         `encoding_table' and `decoding_table'.
5545         (CHARSET_REP_BYTES): Deleted.
5546         (XCHARSET_REP_BYTES): Deleted.
5547         (XCHARSET_COLUMNS): Deleted.
5548         (CHAR_COLUMNS): New macro.
5549         (lookup_composite_char): Deleted unconditionally.
5550         (composite_char_string): Likewise.
5551
5552 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5553
5554         * char-ucs.h (Emchar_to_byte_table): New type.
5555         (get_byte_from_character_table): New function interface.
5556         (Vcharset_latin_jisx0201): New variable.
5557         (latin_jisx0201_to_ucs): New variable.
5558         (ucs_to_latin_jisx0201): New variable.
5559         (Vcharset_latin_iso8859_2): New variable.
5560         (latin_iso8859_2_to_ucs): New variable.
5561         (ucs_to_latin_iso8859_2): New variable.
5562         (Vcharset_latin_iso8859_3): New variable.
5563         (latin_iso8859_3_to_ucs): New variable.
5564         (ucs_to_latin_iso8859_3): New variable.
5565         (Vcharset_latin_iso8859_4): New variable.
5566         (latin_iso8859_4_to_ucs): New variable.
5567         (ucs_to_latin_iso8859_4): New variable.
5568         (Vcharset_latin_iso8859_9): New variable.
5569         (latin_iso8859_9_to_ucs): New variable.
5570         (ucs_to_latin_iso8859_9): New variable.
5571         (Vcharset_latin_viscii_lower): New variable.
5572         (latin_viscii_lower_to_ucs): New variable.
5573         (ucs_to_latin_viscii_lower): New variable.
5574         (Vcharset_latin_viscii_upper): New variable.
5575         (latin_viscii_upper_to_ucs): New variable.
5576         (ucs_to_latin_viscii_upper): New variable.
5577         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5578         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5579         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5580         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5581         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5582         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5583         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5584         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5585         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5586         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5587
5588         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5589         (Vcharset_latin_viscii_upper): New variable.
5590         (make_byte_from_character_table): New function.
5591         (put_byte_from_character_table): New function.
5592         (get_byte_from_character_table): New function.
5593         (CHAR96): New macro.
5594         (ucs_to_latin_jisx0201): New variable.
5595         (latin_jisx0201_to_ucs): New variable.
5596         (ucs_to_latin_iso8859_2): New variable.
5597         (latin_iso8859_2_to_ucs): New variable.
5598         (ucs_to_latin_iso8859_3): New variable.
5599         (latin_iso8859_3_to_ucs): New variable.
5600         (ucs_to_latin_iso8859_4): New variable.
5601         (latin_iso8859_4_to_ucs): New variable.
5602         (ucs_to_latin_iso8859_9): New variable.
5603         (latin_iso8859_9_to_ucs): New variable.
5604         (ucs_to_latin_viscii_lower): New variable.
5605         (latin_viscii_lower_to_ucs): New variable.
5606         (ucs_to_latin_viscii_upper): New variable.
5607         (latin_viscii_upper_to_ucs): New variable.
5608         (ucs_to_latin_tcvn5712): New variable.
5609         (latin_tcvn5712_to_ucs): New variable.
5610         (Qlatin_viscii_lower): New variable.
5611         (Qlatin_viscii_upper): New variable.
5612         (syms_of_mule_charset): Set up new symbol
5613         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5614         (complex_vars_of_mule_charset): Set up new charset
5615         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5616         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5617         `ucs_to_<CHARSET>' tables.
5618
5619 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5620
5621         * text-coding.c: New file.
5622
5623 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5624
5625         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5626
5627         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5628         (MAKE_CHAR): Modify for `ucs-bmp'.
5629         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5630         non-MULE characters of BMP.
5631
5632 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5633
5634         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5635         to 0.6.
5636
5637 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5638
5639         * lstream.h:
5640         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5641         - Include character.h for `CHAR_ASCII_P'.
5642
5643         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5644
5645         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5646         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5647
5648         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5649         (BYTE_C0_P): Likewise.
5650         (BYTE_C1_P): Likewise.
5651         (Lstream_get_emchar_1): Likewise.
5652         (Lstream_fput_emchar): Likewise.
5653         (Lstream_funget_emchar): Likewise.
5654         (copy_internal_to_external): Likewise.
5655         (copy_external_to_internal): Likewise.
5656
5657         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5658         (BYTE_C0_P): Likewise.
5659         (BYTE_C1_P): Likewise.
5660         (Lstream_get_emchar_1): Likewise.
5661         (Lstream_fput_emchar): Likewise.
5662         (Lstream_funget_emchar): Likewise.
5663         (copy_internal_to_external): Likewise.
5664         (copy_external_to_internal): Likewise.
5665
5666         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5667         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5668
5669         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5670         (BYTE_ASCII_P): Moved to mb-1byte.h.
5671
5672 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5673
5674         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5675
5676         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5677         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5678         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5679         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5680         (VALIDATE_CHARPTR_FORWARD): Likewise.
5681         (simple_charptr_emchar): Moved to mb-multibyte.h.
5682         (simple_set_charptr_emchar): Likewise.
5683         (simple_charptr_copy_char): Likewise.
5684         (non_ascii_charptr_emchar): Likewise.
5685         (non_ascii_set_charptr_emchar): Likewise.
5686         (non_ascii_charptr_copy_char): Likewise.
5687         (charptr_emchar): Moved to mb-*byte.h.
5688         (set_charptr_emchar): Likewise.
5689         (charptr_copy_char): Likewise.
5690
5691         * mb-1byte.h, mb-multibyte.h: New files.
5692
5693 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5694
5695         * mb-utf-8.h (MULTIBYTE): New macro.
5696         (MAX_EMCHAR_LEN): Moved from buffer.h.
5697         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5698
5699         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5700
5701         * mb-lb.h, multibyte.h: New files.
5702
5703         * char-1byte.h (Charset_ID): Moved from buffer.h.
5704         (MIN_LEADING_BYTE): Likewise.
5705         (LEADING_BYTE_ASCII): Likewise.
5706         (NUM_LEADING_BYTES): Likewise.
5707         (CHARSETP): Likewise.
5708         (CHARSET_BY_LEADING_BYTE): Likewise.
5709         (XCHARSET_LEADING_BYTE): Likewise.
5710         (XCHARSET_GRAPHIC): Likewise.
5711         (XCHARSET_COLUMNS): Likewise.
5712         (XCHARSET_DIMENSION): Likewise.
5713         (CHAR_CHARSET): Likewise.
5714         (CHAR_LEADING_BYTE): Likewise.
5715         (BREAKUP_CHAR): Likewise.
5716         (Vcharset_ascii): Likewise.
5717
5718         * buffer.h: Include multibyte.h unconditionally.
5719         (VALID_CHARPTR_P): Moved to multibyte.h.
5720         (ASSERT_VALID_CHARPTR): Likewise.
5721         (REAL_INC_CHARPTR): Likewise.
5722         (REAL_INC_CHARBYTIND): Likewise.
5723         (REAL_DEC_CHARPTR): Likewise.
5724         (INC_CHARPTR): Likewise.
5725         (INC_CHARBYTIND): Likewise.
5726         (DEC_CHARPTR): Likewise.
5727         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5728         (VALIDATE_CHARPTR_FORWARD): Likewise.
5729         (charptr_n_addr): Likewise.
5730         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5731         (simple_charptr_emchar): Moved to multibyte.h.
5732         (simple_set_charptr_emchar): Likewise.
5733         (simple_charptr_copy_char): Likewise.
5734         (non_ascii_charptr_emchar): Likewise.
5735         (non_ascii_set_charptr_emchar): Likewise.
5736         (non_ascii_charptr_copy_char): Likewise.
5737         (charptr_emchar): Likewise.
5738         (set_charptr_emchar): Likewise.
5739         (charptr_copy_char): Likewise.
5740         (charptr_emchar_n): Likewise.
5741         (Charset_ID): Moved to char-1byte.h.
5742         (Vcharset_ascii): Likewise.
5743         (CHAR_CHARSET): Likewise.
5744         (CHAR_LEADING_BYTE): Likewise.
5745         (LEADING_BYTE_ASCII): Likewise.
5746         (NUM_LEADING_BYTES): Likewise.
5747         (MIN_LEADING_BYTE): Likewise.
5748         (CHARSETP): Likewise.
5749         (CHARSET_BY_LEADING_BYTE): Likewise.
5750         (XCHARSET_LEADING_BYTE): Likewise.
5751         (XCHARSET_GRAPHIC): Likewise.
5752         (XCHARSET_COLUMNS): Likewise.
5753         (XCHARSET_DIMENSION): Likewise.
5754         (BREAKUP_CHAR): Likewise.
5755
5756 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5757
5758         * character.h: Add document about interface for characters.
5759
5760         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5761         (MAKE_CHAR): Delete comment about
5762         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5763         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5764         (BREAKUP_CHAR): Modify name of arguments.
5765         (CHAR_CHARSET): Modify name of argument.
5766
5767         * buffer.h: Delete document about Emchar accessors.
5768
5769 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5770
5771         * character.h (CHAR_INTP): Moved from buffer.h
5772         (CHAR_OR_CHAR_INTP): Likewise.
5773         (XCHAR_OR_CHAR_INT): Likewise.
5774         (CHECK_CHAR_COERCE_INT): Likewise.
5775
5776         * buffer.h (CHAR_INTP): Moved to character.h
5777         (CHAR_OR_CHAR_INTP): Likewise.
5778         (XCHAR_OR_CHAR_INT): Likewise.
5779         (CHECK_CHAR_COERCE_INT): Likewise.
5780
5781 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5782
5783         * character.h:
5784         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5785         - Include char-1byte.h, char-lb.h or char-ucs.h.
5786
5787         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5788
5789         * buffer.h: Include character unconditionally.
5790         (valid_char_p): Moved to char-*.h.
5791         (non_ascii_valid_char_p): Moved to char-lb.h.
5792
5793         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5794
5795 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5796
5797         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5798         in UTF-2000 because it is not ported yet and not to use
5799         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5800         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5801         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5802
5803         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5804         (CHAR_ASCII_P): Moved from character.h.
5805
5806         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5807         (CHAR_ASCII_P): Likewise.
5808         (CHAR_FIELD1_MASK): Deleted.
5809         (CHAR_FIELD2_MASK): Deleted.
5810         (CHAR_FIELD3_MASK): Deleted.
5811         (MAX_CHAR_BASIC_LATIN): New macro.
5812         (CHAR_FIELD1): Deleted.
5813         (CHAR_FIELD2_INTERNAL): Deleted.
5814         (CHAR_FIELD3_INTERNAL): Deleted.
5815         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5816         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5817         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5818         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5819         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5820         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5821         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5822         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5823         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5824         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5825         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5826         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5827         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5828         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5829         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5830         (MIN_CHAR_COMPOSITION): Deleted.
5831         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5832         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5833
5834 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5835
5836         * buffer.h: Include mb-utf-8.h in UTF-2000.
5837
5838         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5839
5840         * mb-utf-8.h: New file.
5841
5842 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5843
5844         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5845         instead of `int'.
5846
5847         * mule-charset.h, buffer.h (Charset_ID): New type.
5848
5849 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5850
5851         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5852         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5853         instead of `MULE_CHAR_PRIVATE_OFFSET',
5854         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5855         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5856         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5857
5858         * character.h (Vcharset_japanese_jisx0212): New variable
5859         definition.
5860
5861 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5862
5863         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5864         (charset_by_attributes): Delete array about direction.
5865         (latin_a_char_to_charset): New variable in UTF-2000.
5866         (latin_a_char_to_byte1): New variable in UTF-2000.
5867         (latin_a_char_to_byte2): New variable in UTF-2000.
5868         (Qucs_bmp): New variable.
5869         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5870         `Bufbyte'.
5871         (next_allocated_2_byte_leading_byte): Likewise.
5872         (non_ascii_set_charptr_emchar): Likewise.
5873         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5874         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5875         `charset_by_attributes'.
5876         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5877         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5878         and `CHARSET_BY_LEADING_BYTE'.
5879         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5880         `utf-2000-version' to `vars_of_mule_charset'.
5881         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5882         define `leading-code-private-11' in UTF-2000; move setting of
5883         `utf-2000-version' from `syms_of_mule_charset'.
5884         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5885         UTF-2000.
5886
5887         * character.h (Charset_ID): New type.
5888         (LEADING_BYTE_UCS_BMP): New macro.
5889         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5890         (CHARSET_ID_OFFSET_94): New macro.
5891         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5892         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5893         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5894         final-byte.
5895         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5896         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5897         (CHARSET_ID_OFFSET_96): New macro.
5898         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5899         CHARSET_ID_OFFSET_96 and final-byte.
5900         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5901         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5902         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5903         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5904         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5905         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5906         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5907         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5908         (LEADING_BYTE_THAI_TIS620): Likewise.
5909         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5910         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5911         (CHARSET_ID_OFFSET_94x94): New macro.
5912         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5913         CHARSET_ID_OFFSET_94x94 and final-byte.
5914         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5915         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5916         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5917         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5918         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5919         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5920         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5921         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5922         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5923         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5924         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5925         (CHARSET_TYPE_128X128): New macro.
5926         (CHARSET_TYPE_256X256): New macro.
5927         (XCHARSET_PRIVATE_P): Delete unconditionally.
5928         (charset_by_attributes): Delete array about direction.
5929         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5930         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5931         (MIN_CHAR_94): New macro.
5932         (MAX_CHAR_94): New macro.
5933         (MIN_CHAR_96): New macro.
5934         (MAX_CHAR_96): New macro.
5935         (MIN_CHAR_94x94): New macro.
5936         (MAX_CHAR_94x94): New macro.
5937         (MIN_CHAR_96x96): New macro.
5938         (MAX_CHAR_96x96): New macro.
5939         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5940         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5941         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5942         - 32)'.
5943         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5944         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5945         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5946         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5947         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5948         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5949         `XCHARSET_LEADING_BYTE' to make code-point.
5950         (latin_a_char_to_charset): New variable.
5951         (latin_a_char_to_byte1): New variable.
5952         (latin_a_char_to_byte2): New variable.
5953         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5954         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5955         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5956
5957         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5958         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5959         (find_charsets_in_emchar_string): Likewise.
5960         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5961
5962         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5963         `int'.
5964         (decode_coding_iso2022): Likewise.
5965
5966         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5967         of `unsigned char'.
5968
5969         * redisplay.c (redisplay_text_width_emchar_string): Use
5970         `Charset_ID' instead of `unsigned char'.
5971         (redisplay_frame_text_width_string): Likewise.
5972
5973         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5974         `unsigned char'.
5975
5976         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5977         instead of `unsigned char'.
5978         (face_cachel_charset_font_metric_info): Likewise.
5979
5980         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5981         (get_non_ascii_char_table_value): Likewise.
5982         (get_char_table): Likewise.
5983         (put_char_table): Likewise.
5984         (map_over_other_charset): Likewise.
5985         (map_char_table): Likewise.
5986
5987         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5988         instead of `unsigned char'.
5989
5990 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5991
5992         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5993         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5994
5995         * mule-charset.c (leading_code_private_11): Don't define in
5996         UTF-2000.
5997
5998         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5999         in UTF-2000 because it is not ported yet and not to use
6000         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
6001
6002 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
6003
6004         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
6005
6006 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
6007
6008         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
6009         in UTF-2000.
6010
6011         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
6012         of unsigned char to store leading-byte.
6013
6014         * chartab.c (get_non_ascii_char_table_value): Don't use
6015         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
6016
6017         * file-coding.c (encode_coding_big5): Delete bogus implementation
6018         in UTF2000.
6019
6020         * character.h (LEADING_BYTE_*): Delete definition for
6021         non-UTF-2000.
6022         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
6023         (LEADING_BYTE_PREFIX_P): Deleted.
6024         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
6025         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
6026         (BUFBYTE_LEADING_BYTE_P): Deleted.
6027         (CHARSET_PRIVATE_P): Deleted unconditionally.
6028         (rep_bytes_by_first_byte): Deleted unconditionally.
6029         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
6030         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
6031         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
6032         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
6033         (CHAR_FIELD2): Deleted.
6034         (CHAR_FIELD3): Deleted.
6035         (MAKE_CHAR): Delete definition for non-UTF-2000.
6036         (BREAKUP_CHAR_1_UNSAFE): Deleted.
6037         (breakup_char_1): New implementation.
6038         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
6039         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
6040
6041 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
6042
6043         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
6044         condition.
6045
6046 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
6047
6048         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
6049         (CHARSET_PRIVATE_P): Likewise.
6050         (XCHARSET_PRIVATE_P): Likewise.
6051         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
6052
6053         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
6054         UTF2000.
6055         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
6056
6057 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
6058
6059         * character.h (LEADING_BYTE_*): Changed in UTF2000.
6060         (NUM_LEADING_BYTES): Changed from 128 to 256.
6061         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
6062         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
6063         UTF2000.
6064         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
6065
6066         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
6067         UTF2000.
6068         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
6069         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
6070         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
6071         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
6072         (Qchinese_cns11643_3): New variable in UTF2000.
6073         (Qchinese_cns11643_4): New variable in UTF2000.
6074         (Qchinese_cns11643_5): New variable in UTF2000.
6075         (Qchinese_cns11643_6): New variable in UTF2000.
6076         (Qchinese_cns11643_7): New variable in UTF2000.
6077         (syms_of_mule_charset): Define `chinese-cns11643-3',
6078         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
6079         and `chinese-cns11643-7' in UTF2000.
6080         (vars_of_mule_charset): Initialize
6081         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
6082         + 1 in UTF2000.
6083         (complex_vars_of_mule_charset): Setup charset
6084         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
6085         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
6086
6087 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
6088
6089         * mule-charset.c: Move setting for `leading-code-private-11' from
6090         `syms_of_mule_charset' to `vars_of_mule_charset'.
6091
6092 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
6093
6094         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
6095         and `NUM_LEADING_BYTES' in assert.
6096
6097 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
6098
6099         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
6100         instead of 128.
6101         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
6102         `NUM_LEADING_BYTES' instead of 128.
6103
6104 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
6105
6106         * mule-charset.h (charset_by_leading_byte): Use
6107         `NUM_LEADING_BYTES' instead of 128.
6108         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
6109
6110         * mule-charset.c (charset_by_leading_byte): Use
6111         `NUM_LEADING_BYTES' instead of 128.
6112         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
6113
6114         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
6115         128.
6116
6117 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
6118
6119         * mule-charset.c (syms_of_mule_charset): Update to
6120         0.4 (Shin-Imamiya).
6121
6122 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
6123
6124         * file-coding.c (encode_coding_sjis): New implementation for
6125         UTF2000.  (decode_coding_sjis): Ditto.
6126
6127 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
6128
6129         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
6130         Don't define in UTF2000.
6131
6132         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
6133         defined.
6134
6135         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
6136         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
6137         MULE.
6138
6139 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
6140
6141         * config.h.in (CHAR_IS_UCS4): New macro.
6142
6143         * mule-charset.c (rep_bytes_by_first_byte): Modify for
6144         conventional MULE representation.
6145         (syms_of_mule_charset): Update to 0.3 (Imamiya).
6146
6147         * mule-charset.h: Reverted to original.
6148
6149         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
6150         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
6151         "mule-charset.h" if CHAR_IS_UCS4 is defined.
6152
6153         * character.h: New file.
6154
6155         * file-coding.c (Fmake_coding_system): Set 1 to
6156         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
6157         defined.
6158         (encode_coding_no_conversion): New implementation for UTF2000.
6159
6160         * file-coding.h (struct Lisp_Coding_System): Add new member
6161         `fixed.size'.
6162
6163 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
6164
6165         * file-coding.c (decode_coding_iso2022): Code-point arguments of
6166         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
6167         (encode_coding_iso2022): New implementation for UTF2000.
6168
6169 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6170
6171         * mule-canna.c (c2mu): New implementation for UTF2000.
6172         (m2c): Likewise.
6173
6174 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6175
6176         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
6177
6178 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6179
6180         * file-coding.c (reset_encoding_stream): Set 0 to
6181         `str->iso2022.current_char_boundary' in UTF2000.
6182         (encode_utf8): Don't define in UTF2000.
6183         (encode_coding_utf8): New implementation for UTF-8 representation
6184         of UTF2000.
6185         (complex_vars_of_file_coding): Define coding-system `utf-8'.
6186
6187 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6188
6189         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
6190
6191         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
6192         UTF2000.
6193         (REP_BYTES_BY_FIRST_BYTE): Likewise.
6194
6195         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
6196
6197         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
6198         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
6199         as UTF-8 in UTF2000.
6200         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
6201         (non_ascii_valid_char_p): Don't define in UTF2000.
6202         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
6203         (Lstream_get_emchar_1): Likewise.
6204         (utf-2000-version): New variable in UTF2000.
6205
6206         * lread.c (read_escape): Add new reader `u'.
6207
6208         * insdel.c (three_to_one_table): Don't define in UTF2000.
6209         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
6210         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6211         UTF2000.
6212         (bytind_to_bufpos_func): Likewise.
6213         (buffer_mule_signal_inserted_region): Likewise.
6214         (vars_of_insdel): Don't initialize `three_to_one_table'.
6215         (init_buffer_text): Use `buf->text->mule_size' instead of
6216         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6217         UTF2000.
6218
6219         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
6220         UTF-8 representation in UTF2000.
6221         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
6222         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
6223         (decode_coding_iso2022): Don't define local variable `lb' in
6224         UTF2000; don't use LEADING_BYTE in UTF2000; use
6225         `DECODE_ADD_UCS_CHAR' in UTF2000.
6226         (convert_to_external_format): Decode as UTF-8 in UTF2000.
6227
6228         * config.h.in (UTF2000): New macro.
6229
6230         * buffer.h (struct buffer_text): Add new member `mule_size' and
6231         don't add `mule_shifter' and `mule_three_p' in UTF2000.
6232         (valid_char_p): Return always 1 in UTF2000.
6233         (MAX_EMCHAR_LEN): 6 in UTF2000.
6234         (three_to_one_table): Don't define in UTF2000.
6235         (real_bufpos_to_bytind): Modify for UTF-8 representation in
6236         UTF2000.
6237         (real_bytind_to_bufpos): Likewise.
6238
6239         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
6240
6241 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
6242
6243         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
6244         representation change.
6245         (Vutf_2000_version): New variable.
6246         (leading_code_private_11): New variable.
6247         (syms_of_mule_charset): Add new variables `utf-2000-version' and
6248         `leading-code-private-11'.
6249
6250         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
6251         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
6252         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
6253         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
6254         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
6255         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
6256         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
6257         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
6258         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
6259         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
6260         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
6261         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
6262         (MIN_CHAR_GREEK): New macro.
6263         (MAX_CHAR_GREEK): New macro.
6264         (MIN_CHAR_CYRILLIC): New macro.
6265         (MAX_CHAR_CYRILLIC): New macro.
6266         (MIN_CHAR_HEBREW): New macro.
6267         (MAX_CHAR_HEBREW): New macro.
6268         (MIN_CHAR_THAI): New macro.
6269         (MAX_CHAR_THAI): New macro.
6270         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
6271         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
6272         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
6273         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
6274         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
6275         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
6276         (CHAR_FIELD2): New inline function.
6277         (CHAR_FIELD3): New inline function.
6278         (MULE_CHAR_PRIVATE_OFFSET): New macro.
6279         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
6280         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
6281         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
6282         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
6283         (MIN_CHAR_COMPOSITION): Likewise.
6284         (CHAR_LEADING_BYTE): Modified for character representation change.
6285         (MAKE_CHAR): Likewise.
6286
6287         * lisp.h (Vcharset_latin_iso8859_1): New variable.
6288         (Vcharset_greek_iso8859_7): Likewise.
6289         (Vcharset_cyrillic_iso8859_5): Likewise.
6290         (Vcharset_hebrew_iso8859_8): Likewise.
6291         (Vcharset_thai_tis620): Likewise.
6292         (Vcharset_katakana_jisx0201): Likewise.
6293
6294 2008-12-28  Vin Shelton  <acs@xemacs.org>
6295
6296         * XEmacs 21.4.22 is released
6297
6298 2008-12-27  Vin Shelton  <acs@xemacs.org>
6299
6300         * syswindows.h: Don't define wide character interfaces for Cygwin
6301         1.7 and up.
6302
6303 2008-03-05  Dominique Quatravaux  <domq@cpan.org>
6304
6305         * glyphs-gtk.c: Fixed compilation under gcc 4.x.
6306
6307 2008-11-01  Stephen J. Turnbull  <stephen@xemacs.org>
6308
6309         * regex.c (re_search_2): Fix at_dot by changing charpos to bytepos.
6310         From Julian Bradfield <18654.1143.304851.782755@krk.inf.ed.ac.uk>.
6311
6312 2008-12-25  Vin Shelton  <acs@xemacs.org>
6313
6314         * mule-ccl.c (ccl_driver): Fix off-by-one error.
6315         By Julian Bradfield in
6316         <18691.16568.526264.972026@krk.inf.ed.ac.uk>.
6317
6318         * mule-ccl.c (ccl_driver): 
6319
6320 2007-10-07  Vin Shelton  <acs@xemacs.org>
6321
6322         * XEmacs 21.4.21 is released
6323
6324 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
6325
6326         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
6327
6328 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
6329
6330         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
6331         (png_instantiate): Initialize setjmp_buffer early, and avoid
6332         recursive entry to error handler.
6333
6334 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
6335
6336         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
6337         a typo fix.
6338
6339 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
6340
6341         * event-Xt.c (x_reset_modifier_mapping):
6342         * event-gtk.c (gtk_reset_modifier_mapping):
6343         Zero out the device's modifier map once we've freed it, to prevent
6344         a double free on a re-entrant call. 
6345
6346 2007-05-17  Vin Shelton  <acs@xemacs.org>
6347
6348         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
6349         64-bit linux.  Patch from Hans de Graaff.
6350
6351 2007-05-02  Vin Shelton  <acs@xemacs.org>
6352
6353         * dumper.c (pdump): Don't close pdump_fd (already closed by
6354         fclose() call.  Patch from Steve Higham.
6355         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
6356         already closed.  Patch inspired by Steve Higham.
6357
6358 2007-05-01  Vin Shelton  <acs@xemacs.org>
6359
6360         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
6361         (mswindows_fstat): Ditto.
6362         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
6363
6364 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
6365
6366         * postgresql.c: Update Steve Baur's email address by his request.
6367         * postgresql.h: Ditto.
6368
6369 2007-01-04  Vin Shelton  <acs@xemacs.org>
6370
6371         * fileio.c (check_writable): Check old-style readonly bit only for
6372         non-directories.
6373
6374 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
6375
6376         * src/fileio.c (check_writable): 
6377         Cope with the fact that the read-only attribute trumps Windows NTFS
6378         ACLS.
6379
6380
6381 2006-12-09  Vin Shelton  <acs@xemacs.org>
6382
6383         * XEmacs 21.4.20 is released
6384
6385 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
6386
6387         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
6388         relocated the definitions to be used sooner in file.
6389         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6390         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6391         overflow.
6392
6393 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
6394
6395         * sound.c (init_native_sound):
6396         Only X11 and GTK devices can possibly not be on the console of the
6397         associated machine. Fixes a crash when init_native_sound is called
6398         on a msprinter device. 
6399
6400 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
6401
6402         * buffer.c (buffer-file-name): Document invariant.
6403         (buffer-file-truename): Sync wording to buffer-file-name.
6404         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6405         and discussion.
6406
6407 2006-11-19  Benson Margulies  <benson@dchbk.us>
6408
6409         * fileio.c: Add code to use full Win32 API to check for write
6410         access.  Win32 has the general design policy that you aren't
6411         supposed to ask this question, since security checks change
6412         depending on asynchronous processes.  Nonetheless, there is a way,
6413         by acting as if we are a server doing interpretive access
6414         control.
6415
6416 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6417
6418         * bytecode.c: Use xnew_array instead of alloca.
6419
6420 2006-07-04  Vin Shelton  <acs@xemacs.org>
6421
6422         * redisplay-msw.c: Fix tiny, but crucial typo.
6423
6424 2006-06-22  Jerry James  <james@xemacs.org>
6425
6426         * EmacsShell-sub.c (ChangeManaged):
6427         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6428         NULL.
6429         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6430         checking if it is NULL.  Also fix a memory leak.
6431         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6432         dereference it, not the other way around.
6433         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6434         overflow check.
6435         * dumper.c (pdump_register_struct): Ditto.
6436         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6437         to (short) warnpath overflow warnpath.
6438         * extents.c (detach_all_extents): Call extent_list_delete_all with
6439         a non-NULL parameter only.
6440         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6441         NULL width and height.
6442         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6443         xic before checking if they are NULL.
6444         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6445         allocated array.
6446         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6447         * nas.c (Err): Fix a memory leak.
6448         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6449         Don't create the buffer if there is nothing to do.
6450         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6451         * redisplay-output.c (redisplay_output_layout): Ditto.
6452         * redisplay-tty.c (tty_output_display_block): Ditto.
6453         * redisplay-x.c (x_output_display_block): Ditto.
6454         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6455         dereference instance->scrollbar_data if it is NULL.
6456         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6457         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6458         for sb->scrollbar_data.
6459         * sound.c (init_native_sound): Avoid a buffer overflow by
6460         allocating a buffer with the appropriate size.
6461
6462 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6463
6464         * EmacsShell-sub.c (RootGeometryManager):
6465         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6466         Based on a suggestion by Francois L'Archeveque.
6467
6468 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6469
6470         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6471         current values found in GNU Emacs.
6472
6473 2006-03-17  Vin Shelton  <acs@xemacs.org>
6474
6475         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6476         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6477
6478         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6479         'hex_initialized' because it conflicts with 'initialized' in
6480         lisp.h.
6481
6482 2006-01-28  Vin Shelton  <acs@xemacs.org>
6483
6484         * XEmacs 21.4.19 is released
6485
6486 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6487
6488         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6489
6490 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6491
6492         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6493         5000 to INT_MAX.
6494
6495 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6496
6497         * database.c: Suppress compiler warning under Cygwin.
6498         * database.c: Removed __FreeBSD__ check, should be handled by
6499         HAVE_U_xxx_T defines.
6500
6501 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6502
6503         * console.c (stuff_buffered_input): Compile body only if
6504         HAVE_TTY.
6505
6506 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6507
6508         * callproc.c: #include sysdir.h, so that any appropriate Mule
6509         magic happens with the chdir() call when calling a subprocess. 
6510
6511 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6512
6513         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6514         * mule-ccl.c: Check that a character set exists before using it
6515         to create a character. 
6516
6517 2005-12-06  Vin Shelton  <acs@xemacs.org>
6518
6519         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6520         to INT_MAX.
6521
6522 2005-12-03  Vin Shelton <acs@xemacs.org>
6523
6524         * XEmacs 21.4.18 is released
6525
6526 2005-11-27  Kean Johnston <kean@armory.com>
6527
6528         * redisplay-tty.c (set_tty_modes):
6529         (reset_tty_modes): disable auto-margins if the terminal supports
6530         them.
6531         (init_tty_for_redisplay): fix cursor shape.
6532
6533 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6534
6535         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6536         for control-1 characters properly, both when reading multibyte
6537         characters and writing them. 
6538
6539 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6540
6541         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6542         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6543         were seeing with incremental selection transfer failing. 
6544
6545 2005-11-26  Vin Shelton  <acs@xemacs.org>
6546
6547         * callproc.c (Fold_call_process_internal): Create the buffer if it
6548         does not already exist.  The original patch came from Ben Wing in
6549         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6550
6551 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6552
6553         * callproc.c: Process-related docstring improvements spurred by
6554         Norbert Koch.
6555
6556 2005-11-25  Vin Shelton  <acs@xemacs.org>
6557
6558         * depend: Regenerated.
6559
6560 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6561
6562         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6563         says it clashes with a global with the same name.
6564
6565 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6566
6567         * sysdll.c (dll_open): Under MacOS X return NULL under the
6568         filename is NULL.  Fixes problems finding local symbols under 10.4
6569         (Tiger)
6570
6571 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6572         
6573         * config.h.in: New HAVE_U_INT*_T defines.
6574         
6575         * database.c: Only use u_int*_t typedefs if not already
6576         defined.
6577
6578 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6579
6580         * src/process-unix.c (unix_open_network_stream): moved
6581           'portbuf' buffer out of an inner block as it is used in the
6582           entire function. With gcc4, the stack may get corrupted
6583           after leaving this block. This patches adjusts the size of
6584           the used buffer also; static '128' bytes are far too much
6585           currently and might not suffice for future architectures
6586           (e.g. for 512 bit ones ;)). Instead of, use only the really
6587           required space (max octets * ln(256)/ln(10) chars + space
6588           for '\0' and the sign)
6589
6590 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6591
6592         * callproc.c: Include sysdir.h, so any necessary Mule processing
6593         is done on the current directory name before starting a new
6594         process.
6595
6596 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6597
6598         * chartab.c (Fchar_table_p):
6599         (Fget_range_char_table):
6600         (Fput_char_table):
6601         (Fmap_char_table):
6602         Describe range representation and fix typo.
6603
6604 2005-02-12  Vin Shelton  <acs@xemacs.org>
6605
6606         * emacs.c (shut_down_emacs): Advise users to send email to the
6607         xemacs-beta list instead of crashes@xemacs.org.
6608
6609 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6610
6611         * process-unix.c (unix_send_process): Flush the last chunk, even
6612         when the pipe is blocked.
6613
6614 2005-02-06  Vin Shelton <acs@xemacs.org>
6615
6616         * XEmacs 21.4.17 is released
6617
6618 2005-01-31  Ben Wing  <ben@xemacs.org>
6619
6620         * emacs.c:
6621         Define assert_failed() always.
6622         * lisp.h:
6623         Always define ABORT().
6624
6625 2005-01-25  Ben Wing  <ben@xemacs.org>
6626
6627         * Makefile.in.in:
6628         * Makefile.in.in (%.o):
6629         Don't compile executable as Windows (-mwindows) under Cygwin.
6630         Semi-recent changes to Cygwin's executable-startup handling make
6631         it impossible to access the TTY this way.
6632
6633         Don't use special linker file under Cygwin (cygwin.sc) except
6634         when non-PDUMP (even in this case it is highly questionable); you
6635         get errors like
6636
6637       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6638    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6639
6640 2005-01-29  Ben Wing  <ben@xemacs.org>
6641
6642         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6643
6644         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6645
6646 2005-01-29  Ben Wing  <ben@xemacs.org>
6647
6648         * bytecode.c (optimize_compiled_function):
6649         * print.c (FROB):
6650         * print.c (long_to_string):
6651         Add casts to avoid warning.
6652         
6653         * glyphs-eimage.c:
6654         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6655         #### The better solution is to move the TIFF and JPEG code to
6656         different files.
6657         
6658         * glyphs-msw.c (mswindows_xbm_instantiate):
6659         Define __STDC__ to avoid problems with compface.h.
6660         
6661         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6662         * EmacsShell-sub.c:
6663         * EmacsShell-sub.c (ABORT):
6664         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6665         * EmacsShell-sub.c (RootGeometryManager):
6666         * EmacsShell.c:
6667         * EmacsShell.c (ABORT):
6668         * EmacsShell.c (EmacsShellUpdateSizeHints):
6669         * alloc.c (free_lcrecord):
6670         * alloca.c (i00afunc):
6671         * buffer.c (delete_from_buffer_alist):
6672         * buffer.c (MARKED_SLOT):
6673         * bytecode.c (execute_rare_opcode):
6674         * bytecode.c (optimize_byte_code):
6675         * bytecode.c (Ffetch_bytecode):
6676         * chartab.c (char_table_type_to_symbol):
6677         * chartab.c (Freset_char_table):
6678         * chartab.c (decode_char_table_range):
6679         * chartab.c (Fget_range_char_table):
6680         * chartab.c (check_valid_char_table_value):
6681         * chartab.c (map_char_table):
6682         * chartab.c (slow_map_char_table_fun):
6683         * chartab.c (chartab_instantiate):
6684         * cm.c (cmcheckmagic):
6685         * console-msw.c (DHEADER):
6686         * console.c (MARKED_SLOT):
6687         * data.c (finish_marking_weak_lists):
6688         * data.c (encode_weak_list_type):
6689         * debug.h (DASSERT):
6690         * device-gtk.c (gtk_init_device):
6691         * device-msw.c (mswindows_get_default_margin):
6692         * device-tty.c (tty_init_device):
6693         * device-x.c (get_device_from_display):
6694         * device-x.c (x_get_visual_depth):
6695         * doprnt.c (parse_doprnt_spec):
6696         * doprnt.c (get_doprnt_args):
6697         * dumper.c (pdump_get_indirect_count):
6698         * dumper.c (pdump_register_sub):
6699         * dumper.c (pdump_register_object):
6700         * dumper.c (pdump_register_struct):
6701         * dumper.c (pdump_dump_data):
6702         * dumper.c (pdump_reloc_one):
6703         * elhash.c (print_hash_table):
6704         * elhash.c (make_standard_lisp_hash_table):
6705         * elhash.c (hash_table_instantiate):
6706         * emacs.c:
6707         * emacs.c (Fforce_debugging_signal):
6708         * emacs.c (sort_args):
6709         * emacs.c (main):
6710         * emacs.c (assert_failed):
6711         * eval.c (throw_or_bomb_out):
6712         * eval.c (signal_1):
6713         * eval.c (Fsignal):
6714         * event-Xt.c:
6715         * event-Xt.c (emacs_Xt_mapping_action):
6716         * event-Xt.c (Xt_process_to_emacs_event):
6717         * event-msw.c:
6718         * event-stream.c (check_event_stream_ok):
6719         * event-stream.c (Fadd_timeout):
6720         * event-stream.c (Fadd_async_timeout):
6721         * event-stream.c (Fdiscard_input):
6722         * event-stream.c (execute_internal_event):
6723         * event-stream.c (Frecent_keys):
6724         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6725         * event-stream.c (lookup_command_event):
6726         * event-unixoid.c (poll_fds_for_input):
6727         * events.c:
6728         * events.c (mark_event):
6729         * events.c (event_equal):
6730         * events.c (event_hash):
6731         * events.c (Fmake_event):
6732         * events.c (Fdeallocate_event):
6733         * events.c (event_chain_find_previous):
6734         * events.c (event_to_character):
6735         * events.c (format_event_object):
6736         * events.c (Fevent_type):
6737         * events.c (event_pixel_translation):
6738         * events.c (Fevent_properties):
6739         * extents.c (extent_in_region_p):
6740         * extents.c (print_extent):
6741         * extents.c (process_extents_for_insertion_mapper):
6742         * extents.c (report_extent_modification_mapper):
6743         * extents.c (glyph_layout_to_symbol):
6744         * faces.c (face_validate):
6745         * file-coding.c (eol_type_to_symbol):
6746         * file-coding.c (subsidiary_coding_system):
6747         * file-coding.c (Fcoding_system_type):
6748         * file-coding.c (Fcoding_system_property):
6749         * file-coding.c (mule_decode):
6750         * file-coding.c (mule_encode):
6751         * file-coding.c (encode_coding_ucs4):
6752         * file-coding.c (encode_coding_utf8):
6753         * file-coding.c (parse_iso2022_esc):
6754         * file-coding.c (encode_coding_iso2022):
6755         * fileio.c:
6756         * fns.c (concat):
6757         * fns.c (Fsubseq):
6758         * fns.c (mapcar1):
6759         * fns.c (Fbase64_encode_region):
6760         * fns.c (Fbase64_encode_string):
6761         * fns.c (Fbase64_decode_region):
6762         * fns.c (Fbase64_decode_string):
6763         * font-lock.c (find_context):
6764         * font-lock.c (context_to_symbol):
6765         * frame-gtk.c (gtk_set_frame_pointer):
6766         * frame-gtk.c (gtk_update_frame_external_traits):
6767         * frame-x.c (x_wm_mark_shell_size_user_specified):
6768         * frame-x.c (x_wm_mark_shell_position_user_specified):
6769         * frame-x.c (x_wm_set_shell_iconic_p):
6770         * frame-x.c (x_wm_set_cell_size):
6771         * frame-x.c (x_wm_set_variable_size):
6772         * frame-x.c (x_wm_store_class_hints):
6773         * frame-x.c (x_wm_maybe_store_wm_command):
6774         * frame-x.c (x_initialize_frame_size):
6775         * frame-x.c (x_update_frame_external_traits):
6776         * frame.c:
6777         * frame.c (delete_frame_internal):
6778         * frame.c (mouse_pixel_position_1):
6779         * frame.c (change_frame_size_1):
6780         * free-hook.c (check_free):
6781         * free-hook.c (check_realloc):
6782         * free-hook.c (note_block_input):
6783         * free-hook.c (log_gcpro):
6784         * gccache-gtk.c (gc_cache_lookup):
6785         * glyphs-eimage.c (tiff_memory_write):
6786         * glyphs-gtk.c (gtk_finalize_image_instance):
6787         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6788         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6789         * glyphs-gtk.c (gtk_xpm_instantiate):
6790         * glyphs-gtk.c (gtk_unmap_subwindow):
6791         * glyphs-gtk.c (gtk_map_subwindow):
6792         * glyphs-gtk.c (gtk_button_redisplay):
6793         * glyphs-msw.c:
6794         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6795         * glyphs-x.c (init_image_instance_from_xbm_inline):
6796         * glyphs-x.c (extract_xpm_color_names):
6797         * glyphs-x.c (x_xpm_instantiate):
6798         * glyphs.c (get_image_instantiator_governing_domain):
6799         * glyphs.c (print_image_instance):
6800         * glyphs.c (image_instance_equal):
6801         * glyphs.c (image_instance_hash):
6802         * glyphs.c (encode_image_instance_type):
6803         * glyphs.c (make_image_instance_1):
6804         * glyphs.c (inherit_instantiate):
6805         * glyphs.c (image_instantiate):
6806         * glyphs.c (allocate_glyph):
6807         * glyphs.c (Fglyph_type):
6808         * glyphs.c (redisplay_subwindow):
6809         * glyphs.c (display_table_entry):
6810         * gtk-glue.c (xemacs_list_to_gtklist):
6811         * gtk-glue.c (xemacs_gtklist_to_list):
6812         * gtk-glue.c (xemacs_list_to_array):
6813         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6814         * gutter.c (gutter_was_visible):
6815         * gutter.c (get_gutter_coords):
6816         * input-method-xlib.c (get_XIM_input):
6817         * insdel.c (bufpos_to_bytind_func):
6818         * insdel.c (bytind_to_bufpos_func):
6819         * insdel.c (move_gap):
6820         * intl.c (x_get_composed_input):
6821         * keymap.c (keymap_lookup_directly):
6822         * keymap.c (keymap_delete_inverse_internal):
6823         * keymap.c (ensure_meta_prefix_char_keymapp):
6824         * keymap.c (accessible_keymaps_mapper_1):
6825         * keymap.c (where_is_recursive_mapper):
6826         * lisp.h:
6827         * lisp.h (ABORT):
6828         * lread.c (read_atom):
6829         * lstream.c (Lstream_delete):
6830         * lstream.c (make_lisp_buffer_stream_1):
6831         * macros.c (pop_kbd_macro_event):
6832         * malloc.c (malloc):
6833         * malloc.c (free):
6834         * marker.c (bi_marker_position):
6835         * marker.c (set_bi_marker_position):
6836         * menubar-gtk.c (menu_descriptor_to_widget_1):
6837         * menubar-msw.c (prune_menubar):
6838         * menubar-x.c (set_frame_menubar):
6839         * mule-charset.c (get_unallocated_leading_byte):
6840         * mule-charset.h (CHAR_LEADING_BYTE):
6841         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6842         * nt.c (init_environment):
6843         * nt.c (generate_inode_val):
6844         * ntproc.c (delete_child):
6845         * ntproc.c (_sys_read_ahead):
6846         * ntproc.c (create_child):
6847         * objects.c (color_instantiate):
6848         * objects.c (font_instantiate):
6849         * objects.c (face_boolean_instantiate):
6850         * print.c (printing_major_badness):
6851         * process-nt.c (nt_send_process):
6852         * process-unix.c (unix_send_process):
6853         * process.c (get_process):
6854         * ralloc.c (obtain):
6855         * ralloc.c (relinquish):
6856         * ralloc.c (relocate_blocs):
6857         * ralloc.c (resize_bloc):
6858         * ralloc.c (r_alloc_free):
6859         * ralloc.c (r_re_alloc):
6860         * ralloc.c (r_alloc_thaw):
6861         * ralloc.c (init_ralloc):
6862         * ralloc.c (Free_Addr_Block):
6863         * ralloc.c (r_alloc):
6864         * redisplay-gtk.c (gtk_output_display_block):
6865         * redisplay-msw.c (mswindows_output_display_block):
6866         * redisplay-output.c (get_next_display_block):
6867         * redisplay-output.c (get_cursor_size_and_location):
6868         * redisplay-output.c (redisplay_output_layout):
6869         * redisplay-output.c (redisplay_clear_region):
6870         * redisplay-tty.c (tty_output_display_block):
6871         * redisplay-x.c (x_output_display_block):
6872         * redisplay.c (add_propagation_runes):
6873         * redisplay.c (add_glyph_rune):
6874         * redisplay.c (create_text_block):
6875         * redisplay.c (add_margin_runes):
6876         * redisplay.c (create_left_glyph_block):
6877         * redisplay.c (create_right_glyph_block):
6878         * redisplay.c (create_string_text_block):
6879         * redisplay.c (regenerate_window):
6880         * redisplay.c (REGEN_INC_FIND_START_END):
6881         * redisplay.c (redisplay_frame):
6882         * redisplay.c (point_in_line_start_cache):
6883         * regex.c:
6884         * regex.c (ABORT):
6885         * regex.c (re_compile_fastmap):
6886         * regex.c (re_match_2_internal):
6887         * regex.c (regerror):
6888         * scrollbar-gtk.c (gtk_scrollbar_loop):
6889         * scrollbar-gtk.c (scrollbar_cb):
6890         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6891         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6892         * scrollbar-x.c (x_update_scrollbar_instance_status):
6893         * scrollbar-x.c (x_scrollbar_loop):
6894         * scrollbar-x.c (x_update_frame_scrollbars):
6895         * search.c (search_command):
6896         * search.c (Fmatch_data):
6897         * select-x.c (motif_clipboard_cb):
6898         * signal.c (interrupt_signal):
6899         * specifier.c (specifier_add_spec):
6900         * specifier.c (specifier_instance_from_inst_list):
6901         * specifier.c (specifier_instance):
6902         * specifier.h:
6903         * specifier.h (struct specifier_methods):
6904         * strftime.c (add_num_time_t):
6905         * sunplay.c (init_device):
6906         * symbols.c (Fsetplist):
6907         * symbols.c (do_symval_forwarding):
6908         * symbols.c (store_symval_forwarding):
6909         * symbols.c (Fset):
6910         * symbols.c (Fbuilt_in_variable_type):
6911         * symbols.c (decode_magic_handler_type):
6912         * symbols.c (handler_type_from_function_symbol):
6913         * syntax.c (update_syntax_cache):
6914         * sysdep.c (init_baud_rate):
6915         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6916         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6917         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6918         * toolbar.c (get_toolbar_coords):
6919         * ui-gtk.c (build_gtk_boxed):
6920         * ui-gtk.c (describe_gtk_arg):
6921         * ui-gtk.c (gtk_type_to_lisp):
6922         * ui-gtk.c (lisp_to_gtk_type):
6923         * ui-gtk.c (lisp_to_gtk_ret_type):
6924         * ui-gtk.c (lisp_to_flag):
6925         * unexnt.c (read_in_bss):
6926         * unexnt.c (map_in_heap):
6927         * window.c (real_window):
6928         * window.c (window_display_lines):
6929         * window.c (window_display_buffer):
6930         * window.c (set_window_display_buffer):
6931         * window.c (window_modeline_height):
6932         * window.c (unshow_buffer):
6933         * window.c (window_loop):
6934         * window.c (Fget_lru_window):
6935         * window.c (Fsplit_window):
6936         * window.c (Fset_window_configuration):
6937         * window.c (saved_window_index):
6938         * xgccache.c (gc_cache_lookup):
6939         abort() -> ABORT().  Eliminate preprocessor games with abort()
6940         since it creates huge problems in VC7, solvable only by including
6941         massive amounts of files in every compile (and not worth it).
6942
6943         * sysdep.c:
6944         * sysproc.h:
6945         Inclusion of process.h does not need to be before lisp.h any more.
6946         Move later and remove comment about abort().
6947
6948 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6949
6950         * regex.c (re_match_2_internal):
6951         Correctly initialize loop which clears uninitialized registers.
6952
6953 2005-01-28  Vin Shelton  <acs@xemacs.org>
6954
6955         * sheap.c (more_static_core): Applied Ben's version of the long
6956         string patch.
6957
6958 2005-01-24  Vin Shelton  <acs@xemacs.org>
6959
6960         * sheap.c (more_static_core): Reformatted printf string so
6961         gcc-3.3.3 will compile this on Cygwin.
6962
6963 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6964
6965         * console.c (function_key_map): Reference `key-binding'.
6966
6967         * keymap.c (Vkey_translation_map): Improve docstring.
6968
6969 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6970
6971         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6972         * window.c (window_loop): [fix] Take into account
6973         `allow-deletion-of-last-visible-frame' variable.
6974         * window.c (replace-buffer-in-windows): Ditto.
6975
6976 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6977
6978         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6979
6980 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6981
6982         * event-gtk.c: Recognise AltGr as a valid modifier.
6983
6984 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6985
6986         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6987
6988 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6989
6990         Fix backreference bug caught by test suite.
6991
6992         * regex.c (regex_compile):
6993         Make backref duplicate internal register.
6994
6995 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6996
6997         Documentation, code clarification, and warning suppression.
6998         
6999         * regex.c (regex_compile):
7000         Improve comments.
7001         (re_match_2_internal):
7002         Improve comments and avoid redundant braces.  [Most of the big hunk
7003         at l. 4710 is indentation; use diff -w to see the real changes.]
7004         (alt_match_null_string_p):
7005         (common_op_match_null_string_p):
7006         Avoid shadowing global on Mac OS X 10.4, at least.
7007
7008 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
7009
7010         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
7011         introduced with shy groups fix).  [Already applied, probably
7012         with the second "fix shy groups" patch of 2004-10-07.] 
7013
7014 2005-01-10  Steve Youngs  <steve@sxemacs.org>
7015
7016         From Andrey Slusar <anrays@gmail.com>:
7017
7018         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
7019
7020 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
7021
7022         * Makefile (RECURSIVE_MAKE): Removed.
7023         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
7024         handling parallel builds.
7025
7026 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
7027
7028         * Makefile.in.in: Enable support for parallel builds.
7029
7030 2005-01-09  Steve Youngs  <steve@sxemacs.org>
7031
7032         From Andrey Slusar <anrays@gmail.com>:
7033
7034         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
7035         FreeBSD version is >= 199701 _and_ < 600006.
7036
7037 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
7038
7039         * scrollbar.c (compute_scrollbar_instance_usage):
7040         Only call device method compute_scrollbar_instance_usage() if it
7041         is defined.
7042
7043 2004-12-05  Vin Shelton <acs@xemacs.org>
7044
7045         * XEmacs 21.4.16 is released
7046
7047 2004-12-04  Vin Shelton  <acs@xemacs.org>
7048
7049         * depend: Regenerated.
7050
7051 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
7052
7053         * regex.c (re_match_2_internal): Map internal to external
7054         registers.  Fixes bug identified by Steve Youngs 2004-09-30
7055         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
7056
7057 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
7058
7059         * buffer.c (Frecord_buffer): Make sure the argument is buffer
7060         to fix a crash.  Also, check the buffer is live and it
7061         really exists in buffer_list.  If the buffer is not in the list,
7062         prepend it.
7063
7064 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
7065
7066         Fix shy groups by implementing recording of all groups for
7067         repetition and backtracking.  Backport from 21.5.
7068         
7069         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
7070         external_to_internal_register, external_to_internal_register_size,
7071         and update comments for re_nsub.
7072
7073         * regex.c (re_opcode_t): Update comments.
7074         (print_compiled_pattern): Ouput external_to_internal_register,
7075         external_to_internal_register_size, and re_ngroups for debugging.
7076         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
7077         (regex_compile): Update header comment.
7078         Ensure that all groups are recorded so that repeat matches and
7079         backtracking work correctly.  Comment related warning for groups >
7080         255.
7081         (re_search_2): Construct map of API indexes (which count only
7082         nonshy groups) to internal register numbers, and keep it updated.
7083
7084 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
7085
7086         * frame-gtk.c (gtk_make_frame_visible):
7087         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
7088         show/hide.  This is what X uses and is prevents previously hidden
7089         widgets from suddenly reappearing.
7090         * gtk-xemacs.c (gtk_xemacs_paint):
7091         * gtk-xemacs.c (gtk_xemacs_draw):
7092         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
7093         drawable.
7094         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
7095         size and location changes so that they can be seen before the next
7096         idle event.  Without this rapid changes to scrollbar properties
7097         are not seen.
7098
7099 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
7100
7101         * console-gtk.h:
7102         * console-gtk.h (struct gtk_frame):
7103         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
7104           Add hash tables track tab_control callback data.
7105           Added #defines for GTK object data names.
7106           Declaration of gtk_widget_to_frame().
7107         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
7108         * frame-gtk.c (gtk_widget_to_frame): New.
7109         * frame-gtk.c (gtk_create_widgets):
7110         * frame-gtk.c (allocate_gtk_frame_struct):
7111         * frame-gtk.c (gtk_mark_frame):
7112         Manage frame callbakc hash tables.
7113         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
7114         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
7115         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
7116         of widget size.
7117         * glyphs-gtk.c (gtk_widget_query_geometry): New
7118         * glyphs-gtk.c (gtk_register_gui_item): New
7119         * glyphs-gtk.c (gtk_add_tab_item): New
7120         * glyphs-gtk.c (gtk_tab_control_callback): New
7121         * glyphs-gtk.c (gtk_tab_control_instantiate): New
7122         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
7123         Use correct list when loading item.
7124         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
7125         Register new methods.
7126         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
7127         default size, for widgets.
7128         * gui-x.c:  Improved comment.
7129         * menubar-gtk.c (__generic_button_callback): Use
7130         gtk_widget_to_frame instead of __get_channel.
7131         * scrollbar-gtk.c:
7132         * ui-gtk.c: Use symbolic names for GTK object data.
7133
7134 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
7135
7136         * s/usg5-4.h (NSIG): Define only inside emacs binary.
7137
7138 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
7139
7140         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
7141
7142 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
7143
7144         * malloc.c (morecore): siz is a long because in some architectures
7145         (eg ia-64) an int cannot hold the address range.  Additional patch
7146         from the SuSe distribution.
7147
7148 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
7149
7150         * emacs.c:
7151         * malloc.c: lim_data is a long because in some architectures
7152         (eg ia-64) an int cannot hold the address range.
7153         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
7154         instead of ulimit() because ulimit() always returns -1.
7155
7156 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
7157
7158         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
7159
7160 2004-06-11  David Kastrup  <dak@gnu.org>
7161
7162         * search.c (match_limit): Don't flag an error if match-data
7163         exceeding the allocated search_regs.num_regs gets requested, just
7164         return Qnil.
7165
7166 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7167
7168         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
7169         replace symbolic color entries with the real colors specified in
7170         xpm-color-symbols, before passing the XPM to gtk.
7171         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
7172         instead of a GTK specific field, so that it is used in by generic
7173         code.
7174
7175 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
7176
7177        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
7178         coredump from deref of NULL ptr (ExtData)
7179
7180 2004-04-19  Jerry James  <james@xemacs.org>
7181
7182         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
7183         VALBITS to compute the location of the sign bit.
7184         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
7185         of VALBITS with EMACS_INT_MAX.
7186         * events.c (Fevent_timestamp): Ditto.
7187         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
7188         compute the halfway point to timestamp wraparound.
7189         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
7190         EMACS_INT_MIN instead of using VALBITS.
7191         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
7192         incorrect number with VALBITS.
7193         * fns.c (Frandom): Correct number of integer bits in docstring.
7194         Use INT_VALBITS instead of VALBITS to compute the denominator.
7195         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
7196         build random numbers.
7197
7198 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7199         * event-gtk.c:
7200         * event-gtk.c (gtk_event_to_emacs_event):
7201         * menubar-gtk.c:
7202         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
7203         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
7204         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
7205         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
7206         * menubar-gtk.c (__activate_menu):
7207         * menubar-gtk.c (convert_underscores):
7208         * menubar-gtk.c (remove_underscores):
7209         * menubar-gtk.c (menu_convert):
7210         * menubar-gtk.c (menu_descriptor_to_widget_1):
7211         * menubar-gtk.c (menu_descriptor_to_widget):
7212         * menubar-gtk.c (menu_can_reuse_widget):
7213         * menubar-gtk.c (menu_create_menubar):
7214         * menubar-gtk.c (gtk_popup_menu):
7215         * menubar-gtk.c (Fgtk_build_xemacs_menu):
7216         Added support for Gtk menu bar and menu item mnemonics.
7217
7218 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7219
7220         * sysdll.c: (dll_function): Added support for finding symbols in
7221         Darwin shared libraries as well in Darwin bundles.
7222         * sysdll.c (image_for_address): New
7223         * sysdll.c (my_find_image): New
7224         * sysdll.c (search_linked_libs): New
7225
7226 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7227
7228         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
7229         return to GTK requires a different API to marshalling data to use
7230         as GTK parameters.
7231         * ui-gtk.c (lisp_to_gtk_ret_type): New.
7232
7233 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
7234
7235         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
7236
7237 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7238
7239         * glyphs.c (process_image_string_instantiator):
7240         (Fset_console_type_image_conversion_list):
7241         Stop GCC from warning about shadowing of `exp'.
7242
7243         * redisplay-x.c (x_output_string): Fix unsigned lossage.
7244
7245 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7246
7247         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
7248
7249 2004-02-03  Vin Shelton  <acs@xemacs.org>
7250
7251         * glyphs.c (image_instance_layout): Remove pointless assertion.
7252         * regex.c (regex_grow_registers): Return type is void.
7253
7254 2004-02-02  Vin Shelton <acs@xemacs.org>
7255
7256         * XEmacs 21.4.15 is released
7257
7258 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
7259
7260         * device-x.c (x_error_handler): Don't call stderr_out
7261
7262 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
7263
7264         * buffer.c (other-buffer): Clarify documentation of order of
7265         arguments for FSF Emacs.
7266
7267 2003-10-11  Olivier Galibert  <galibert@pobox.com>
7268
7269         * window.c (Fdelete_window): Dirty the mirror structure _before_
7270         marking the window deleted.
7271
7272 2003-09-15  Jerry James  <james@xemacs.org>
7273
7274         * event-msw.c (debug_mswin_messages): Conditionally compile
7275         messages missing from the Cygwin headers.
7276
7277 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
7278
7279         * data.c (eq_with_ebola_notice): Fix typo in comment.
7280         (Ftrue_list_p): Improve docstring.
7281
7282 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
7283
7284         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
7285
7286 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
7287
7288         * search.c (trivial_regexp_p): Regexps containing "\{" are
7289         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
7290         Stefan Monnier for suggesting a diagnosis.
7291
7292 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
7293
7294         * elhash.c (make-hash-table): Clarify use of :test #'equal.
7295
7296 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
7297
7298         * search.c (Fsearch_forward):
7299         (Fsearch_backward):
7300         Document negative count.
7301
7302 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
7303
7304         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
7305
7306 2003-09-13  Martin Buchholz  <martin@xemacs.org>
7307
7308         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
7309
7310 2003-09-15  Vin Shelton  <acs@xemacs.org>
7311
7312         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
7313         21.5.
7314
7315 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7316
7317         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
7318         (re_search_2): Match the first byte of Bufbyte, not Emchar.
7319         (re_match_2_internal): Use TRANSLATE instead of
7320         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
7321         non-ASCII char case conversion.
7322
7323 2003-09-08  Mike Sperber  <mike@xemacs.org>
7324
7325         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
7326         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
7327
7328 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
7329
7330        * .gdbinit (pobj): fix printing of symbol name.
7331
7332 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
7333
7334         * frame-x.c (x_layout_widgets): When resizing is about to cause
7335         frame size slip, mark it for redisplay.
7336
7337 2003-08-18  Jerry James  <james@xemacs.org>
7338
7339         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
7340
7341 2003-09-03  Vin Shelton <acs@xemacs.org>
7342
7343         * XEmacs 21.4.14 is released
7344
7345 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
7346
7347         * config.h.in (REGEX_MALLOC): Make it configure'able.
7348
7349 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
7350
7351         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
7352         linking.
7353         * sysdll.c (dll_init):
7354         * sysdll.c (dll_open):
7355         * sysdll.c (dll_close):
7356         * sysdll.c (dll_function):
7357         * sysdll.c (dll_variable):
7358         * sysdll.c (dll_error):
7359         Add support for loading bundles using Darwin/MacOSX
7360         native API.
7361
7362 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
7363
7364         * process.c (start-process-internal): Document coding systems.
7365
7366 2003-07-30  Jerry James  <james@xemacs.org>
7367
7368         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
7369
7370 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
7371
7372         * event-msw.c (mswindows_enqueue_mouse_button_event):
7373         * event-msw.c (mswindows_wnd_proc):
7374           enqueue button event when scrollwheel event isn't handled by 
7375           mswindows_handle_mousewheel_event, such as when the scrollbars
7376           are not showing.
7377
7378 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
7379
7380         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
7381
7382 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
7383
7384         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
7385
7386 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
7387
7388         * regex.c (re_match_2_internal): Fix matching degenerate word
7389         boundaries.
7390
7391 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
7392
7393         * XEmacs 21.4.13 is released
7394
7395 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
7396
7397         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
7398         * lisp.h (<inttypes.h>):
7399         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
7400         the definition.
7401
7402 2003-03-15  Martin Buchholz  <martin@xemacs.org>
7403
7404         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7405         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7406         Result: "temacs can only be run in -batch mode."
7407         Fix: Check xemacs executable candidate for directory-ness.
7408
7409 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7410
7411         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7412           they conflict with <sys/types.h>.
7413
7414 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7415
7416         * database.c: Berkeley DB wants __STDC__ to be defined.
7417
7418 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7419
7420         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7421
7422 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7423
7424         * process-unix.c (unix_send_process): Fix C++ compile error.
7425
7426 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7427
7428         * Added .dylib as an acceptable shared library file extension
7429         * to support MacOSX.
7430
7431 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7432
7433         * EmacsFrameP.h (EmacsFramePart):
7434         Kludge to allow compiling with Motif1, but linking with Motif2.
7435
7436 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7437
7438         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7439
7440
7441 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7442
7443         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7444
7445 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7446
7447         * sysdll.c: Included lisp.h to define needed alloca_array.
7448
7449 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7450
7451         Make XEmacs redisplay 10 times faster.
7452         If, that is, you're using a slow X connection and MoveOpaque.
7453         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7454         Use compress_motion = TRUE.
7455         * EmacsFrame.c (emacsFrameClassRec): 
7456         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7457         * EmacsManager.c (emacsManagerClassRec):
7458         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7459
7460 2003-01-30  Vin Shelton  <acs@xemacs.org>
7461
7462         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7463
7464 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7465
7466         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7467         Patch by Martin Buchholz.
7468
7469 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7470
7471         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7472         Thanks to icc for warning and Martin Buchholz for reporting.
7473
7474 2003-01-29  Vin Shelton <acs@xemacs.org>
7475
7476         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7477
7478         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7479         remember to multiply by the element size.
7480
7481 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7482
7483         * XEmacs 21.4.12 "Portable Code" is released.
7484
7485 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7486
7487         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7488         * s/cygwin.sc: new linker file.
7489
7490 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7491
7492         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7493
7494         * redisplay-x.c (x_output_string): Use X11-specified types.
7495         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7496         * emacs.c (__free_hook): Use typeof with Intel compiler.
7497         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7498
7499 2003-01-08  Andy Piper  <andy@xemacs.org>
7500
7501         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7502         reserve size during unexec().
7503
7504 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7505
7506         * process-unix.c (unix_create_process): Don't let outchannel block.
7507
7508 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7509
7510         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7511         Needed for IsBadReadPtr().
7512
7513 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7514
7515         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7516
7517 2002-12-14  Ben Wing  <ben@xemacs.org>
7518
7519         * callint.c: Declaration error.
7520         * dumper.c (pdump):
7521         * dumper.c (pdump_load): Warning fix.
7522         * process.c: GCPRO error.
7523         * glyphs.c (unmap_subwindow):
7524         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7525         * event-stream.c (maybe_kbd_translate): Wrong argument to
7526         character_to_event().
7527
7528         * alloc.c (garbage_collect_1):
7529         * emacs.c:
7530         * emacs.c (debug_can_access_memory):
7531         * emacs.c (fatal_error_signal):
7532         * emacs.c (mswindows_handle_hardware_exceptions):
7533         * emacs.c (main_1):
7534         * emacs.c (main):
7535         * emacs.c (assert_failed):
7536         * emacs.c (syms_of_emacs):
7537         * lisp.h:
7538         * print.c:
7539         * print.c (std_handle_out_va):
7540         * print.c (write_string_to_stdio_stream):
7541         * print.c (write_fmt_string):
7542         * print.c (printing_badness):
7543         * print.c (printing_major_badness):
7544         * print.c (print_internal):
7545         * print.c (debug_print_no_newline):
7546         * print.c (debug_backtrace):
7547         Be more defensive in handling bad values when printing.  Add code
7548         from trunk involving inhibit_non_essential_printing_operations.
7549         When going down or in debug_print(), don't do external conversion
7550         and such and try really, really hard when printing to avoid core
7551         dumping.  Add force-debugging-signal, debug_break().
7552
7553 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7554
7555         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7556         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7557
7558 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7559
7560         * database.c: Fix open_database. Berkeley DB API has changed in
7561         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7562
7563 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7564
7565         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7566
7567 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7568
7569         * event-Xt.c (Xt_timeout):
7570         (Xt_timeout_callback):
7571         (emacs_Xt_add_timeout):
7572         (emacs_Xt_remove_timeout):
7573         (Xt_timeout_to_emacs_event):
7574         Turn completed_timeouts from a stack into a queue.  Fixes
7575         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7576
7577 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7578
7579         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7580         * emacs.c (main): Assert that mmap'd allocation is disabled.
7581
7582 2002-10-14  Andy Piper  <andy@xemacs.org>
7583
7584         * glyphs-widget.c (layout_query_geometry): add in fiddle
7585         factor. Include border text in width layout calculation.
7586         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7587
7588 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7589
7590         * XEmacs 21.4.10 "Military Intelligence" is released.
7591
7592 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7593
7594         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7595         using the NAS private array SoundFileInfo that no longer exists in
7596         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7597         and earlier.  This is broken for some versions between 1.5a and
7598         1.5f.
7599
7600 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7601
7602         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7603
7604         * emacs.c (shut_down_emacs): Improve crash message.
7605
7606 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7607
7608         * file-coding.c (determine_real_coding_system): Check for coding
7609         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7610         shebangs and Python PEP 263.
7611
7612 2002-10-08  Andy Piper  <andy@xemacs.org>
7613
7614         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7615         if static sizes haven't been set.
7616
7617 2002-08-30  Mike Alexander  <mta@arbortext.com>
7618
7619         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7620         to close a socket.
7621
7622 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7623
7624         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7625
7626 2002-09-20  Mike Sperber <mike@xemacs.org>
7627
7628         (This partially gets back my patch from 2002-07-20 without the
7629         bug.)
7630         * callproc.c (child_setup): Remove Ben's comment noting confusion
7631         over the file descriptors >= 3: close_process_descs() doesn't
7632         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7633         * process-unix.c (unix_create_process): Call
7634         begin_dont_check_for_quit to inhibit unwanted interaction (and
7635         thus breaking of X event synchronicity) in the child.
7636
7637 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7638
7639         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7640         widget.
7641
7642 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7643
7644         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7645         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7646         the xemacs process did not exit, but looped infinitely here.  This
7647         fixes that problem.
7648
7649 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7650
7651         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7652         (find_context): Improve comments.
7653
7654         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7655         (re_match_2): An XCHAR_TABLE operation was missing.
7656
7657         Many of the following changes were inspired by Andy Piper's (now
7658         obsolete) patch to make syntax-table text property lookup optional.
7659
7660         [Documentation]
7661
7662         * syntax.h (top level): Document semantics of syntax flags.
7663         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7664         * syntax.c, syntax.h (top level): Document syntax cache better in
7665         comments.
7666
7667         [Instrument syntax caching (temporary change)]
7668
7669         * syntax.h (enum syntax_cache_statistics_functions, struct
7670         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7671         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7672         * syntax.c (scan_words, Fforward_comment, scan_lists,
7673         Fbackward_prefix_characters):
7674         * font-lock.c (find_context):
7675         Use them to instrument syntax caching. 
7676         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7677         syntax_cache_statistics_function_names): New type and variables.
7678         * syntax.c (update_syntax_cache): Update and report statistics.
7679
7680         [Major syntax cache optimizations]
7681
7682         syntax.c (lookup_syntax_properties): Default off.
7683
7684         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7685         * syntax.c (update_syntax_cache):
7686         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7687
7688         [Minor syntax cache optimizations and code clarifications]
7689
7690         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7691         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7692         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7693         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7694         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7695         (Code clarification.)
7696
7697         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7698         scan_lists): Compute code from syncode, use Boolean macros instead
7699         of redundant masking operations.  (Code clarification; any decent
7700         compiler can do this optimization.)
7701
7702         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7703         for clarity.
7704
7705         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7706         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7707         use F*_single_property_change instead of F*_extent_change.
7708         Currently F*_single_property_change is _much_ less efficient.
7709
7710         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7711         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7712         syntax_cache.object properly, don't leave Qt or Qnil.
7713         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7714         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7715         tests for Qt or Qnil.
7716
7717 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7718
7719         * redisplay.c (point_in_line_start_cache): 
7720         * extents.c (print_extent_1):
7721         Fix warnings.
7722
7723         * extents.c (Fset_extent_property): Document `syntax-table' property.
7724
7725         * extents.h (Fnext_single_property_change): EXFUN it.
7726
7727 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7728
7729         * search.c (clear_unused_search_regs): New static function.
7730         (search_buffer): 
7731         (simple_search): 
7732         (boyer_moore):
7733         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7734         Minor clarifications in comments.
7735
7736         * regex.c (re_match_2_internal): Ensure no stale submatches.
7737
7738 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7739
7740         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7741
7742 2002-08-29  Jerry James  <james@xemacs.org>
7743
7744         * lisp.h: structrures -> structures.
7745
7746 2002-06-03  Andy Piper  <andy@xemacs.org>
7747
7748         * frame.c (frame_conversion_internal): add conversion appropriate
7749         for setting frame dimensions in pixels.
7750
7751         * console.h (struct console_methods): add device-specific widget
7752         layout functions.
7753
7754         * emacs.c (main_1): initialize glyph vars.
7755
7756         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7757         (handle_focus_event_2): new function. Allow focus to
7758         be set to a particular window and widget.
7759         (enqueue_focus_event): new function. Create a
7760         synthetic focus event.
7761         (emacs_Xt_handle_magic_event): call
7762         handle_focus_event_2.
7763
7764         * frame.c (Fset_frame_pixel_height): new function. Allow
7765         pixel-based sizing. Does the right thing on character-oriented
7766         displays.
7767         (Fset_frame_pixel_width): ditto.
7768         (Fset_frame_pixel_size): ditto.
7769         (syms_of_frame): declare.
7770
7771         * general-slots.h: add :vertically-justify and
7772         :horizontally-justify.
7773
7774         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7775         (mswindows_widget_border_width): new function.
7776         (mswindows_combo_box_instantiate): set border widths.
7777         (console_type_create_glyphs_mswindows): declare.
7778
7779         * glyphs-widget.c:
7780         (check_valid_justification): allow vertical and horizontal
7781         justification.
7782         (widget_border_width): new function. Call device methods.
7783         (widget_instance_border_width): ditto.
7784         (logical_unit_height): new function. Determine the height of a
7785         logical-unit. Logical units are intended to provide grid-like
7786         layout for subcontrols in a layout. If the layout is
7787         :vertically-justify top then subcontrols will be positioned on
7788         logical-unit boundaries, thus allowing adjacent subcontrols to
7789         line up.
7790         (widget_logical_unit_height): ditto for widgets.
7791         (redisplay_widget): misc cleanup.
7792         (widget_spacing): new function. Call device specific
7793         methods. Intended to be the default gap between adjacent widgets.
7794         (widget_query_geometry): use new spacing functions to determine
7795         appropriate geometry.
7796         (initialize_widget_image_instance): initialize horizontal and
7797         vertical justification.
7798         (widget_instantiate): use logica-units where appropriate for
7799         sizing large widgets.
7800         (button_query_geometry): use widget_instance_border_width.
7801         (tree_view_query_geometry): ditto.
7802         (tab_control_query_geometry): ditto.
7803         (edit_field_query_geometry): new function.
7804         (layout_update): pick up :justify, :horizontally-justify and
7805         :vertically-justify none of which worked previously. :justify is
7806         used as a fallback for both horizontal and vertical justification.
7807         (layout_query_geometry): use logical units to size appropriately.
7808         (layout_layout): ditto.
7809         (Fwidget_logical_to_character_width): new function. Allow users to
7810         convert from logical units to characters so that frame sizes can
7811         be set appropriately.
7812         (Fwidget_logical_to_character_height): ditto.
7813         (syms_of_glyphs_widget): declare.
7814         (image_instantiator_edit_fields): add edit_field_query_geometry.
7815         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7816         :horizontally-justify.
7817         (specifier_vars_of_glyphs_widget): new function. Declare
7818         Vwidget_border_width which is not yet used.
7819
7820         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7821         (x_widget_border_width): new function.
7822         (x_widget_instantiate): create a sensible name for widgets.
7823         (console_type_create_glyphs_x): declare x_widget_border_width.
7824
7825         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7826         (struct Lisp_Image_Instance): add :vertically-justify and
7827         :horizontally-justify.
7828         (LAYOUT_JUSTIFY_TOP): new.
7829         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7830         (ROUND_UP): new macro. Round argument up to next integral
7831         interval.
7832
7833         * redisplay-output.c (redisplay_output_layout): misc formatting.
7834
7835         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7836
7837 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7838
7839         * XEmacs 21.4.9 "Informed Management" is released.
7840
7841 2002-08-19  Andy Piper  <andy@xemacs.org>
7842
7843         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7844         win32 format.
7845
7846         * realpath.c (xrealpath): normalize drive spec also so that dir
7847         sep chars are not mixed on cygwin.
7848
7849 2002-08-06  Jerry James  <james@xemacs.org>
7850
7851         * window.c (Fsplit_window): Count only half of the divider width
7852         against the left window when splitting horizontally. 
7853
7854 2002-06-24  Andy Piper  <andy@xemacs.org>
7855
7856         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7857         toolbar was cleared.
7858
7859         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7860         function. Split out from mswindows_output_frame_toolbars.
7861         (mswindows_output_frame_toolbars): move clear pieces to
7862         mswindows_output_frame_toolbars.
7863
7864         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7865         out from gtk_output_frame_toolbars.
7866         (gtk_output_frame_toolbars): move clear pieces to
7867         gtk_clear_frame_toolbars.
7868
7869         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7870         the frame is cleared. How this ever worked before is a mystery.
7871         (x_output_frame_toolbars): Only output toolbars.
7872         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7873
7874         * gutter.c (update_gutter_geometry):
7875         Mark frame layout changed.
7876         (update_frame_gutter_geometry, update_frame_gutters):
7877         Respect frame_layout_changed.
7878
7879         * console.h (struct console_methods): add
7880         clear_frame_toolbars_method.
7881
7882         * redisplay.c (redisplay_frame): call
7883         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7884
7885         * toolbar.h: declare update_frame_toolbars_geometry.
7886
7887         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7888         out from update_frame_toolbars.  Call clear_frame_toolbars.
7889         (update_frame_toolbars): only output, do not change geometry.
7890
7891         * redisplay.c: add frame_layout_changed.
7892
7893         * redisplay.h: add frame_layout_changed.
7894         (CLASS_RESET_CHANGED_FLAGS): set it.
7895         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7896         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7897         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7898
7899         * device.h (struct device): add frame_layout_changed.
7900         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7901
7902         * frame.h (struct frame): add frame_layout_changed.
7903         (MARK_FRAME_LAYOUT_CHANGED): new.
7904
7905 2002-06-30  Mike Alexander  <mta@arbortext.com>
7906
7907         * event-msw.c (mswindows_need_event): Don't wait for a new message
7908         if the queue is not empty.  Suggested by Paul Moore.
7909
7910 2002-06-12  Andy Piper  <andy@xemacs.org>
7911
7912         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7913         for printing on accurately.
7914
7915 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7916
7917         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7918         WM_ACTIVATE message. Make sure that the frame is visible if the
7919         window is visible. This seemss to fix the problem where XEmacs
7920         appears to freeze after switching desktops with certain virtual
7921         window managers.
7922         (debug_output_mswin_message): Added code to output message
7923         parameters for WM_WINDOWPOSCHANGED, 
7924         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7925
7926 2002-05-25  Andy Piper  <andy@xemacs.org>
7927
7928         * select-x.c (vars_of_select_x): Fix docstring of
7929         x-selection-strict-motif-ownership
7930
7931 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7932
7933         * keymap.c (get_keymap):
7934         Add comment about do_autoload GCPROs own args.
7935
7936 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7937
7938         * bytecode.c (execute_optimized_program): check_opcode ifdef
7939         ERROR_CHECK_BYTE_CODE.
7940
7941 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7942
7943         Thanks to Ben Wing and Michael Sperber.
7944
7945         * eval.c (Fcommand_execute):
7946         (Feval):
7947         (Ffuncall):
7948         (Fmacroexpand_internal):
7949         (function_argcount):
7950         callint.c (Fcall_interactively):
7951         Add comment about do_autoload GCPROs own args.
7952
7953         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7954
7955         * eval.c (Ffuncall): Extra braces to placate GCC.
7956
7957 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7958
7959         * backtrace.h (grow_specpdl):
7960         (SPECPDL_RESERVE):
7961         * EmacsFrame.c (EmacsFrameSetValues):
7962         * eval.c (grow_specpdl):
7963         * ExternalShell.c (hack_event_masks_1):
7964         * glyphs-x.c (convert_EImage_to_XImage): 
7965         (x_finalize_image_instance):
7966         * ralloc.c (page_size):
7967         (r_alloc_sbrk):
7968         * xgccache.c (gc_cache_hash):
7969         Fix unsigned comparison warnings.
7970
7971 2002-07-29  Jerry James  <james@xemacs.org>
7972
7973         * lread.c (locate_file): Any nonnegative return value indicates
7974         success if MODE is nonnegative.
7975
7976 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7977
7978         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7979         argument. 
7980
7981 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7982
7983         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7984
7985         * dumper.c (pdump_get_indirect_count):
7986         (pdump_scan_by_alignment):
7987         (pdump_dump_root_struct_ptrs):
7988         (pdump_dump_rtables):
7989         (pdump_dump_root_objects):
7990         (pdump):
7991         * nas.c (WaveOpenDataForReading):
7992         * fns.c (print_bit_vector):
7993         * font-lock.c (SINGLE_SYNTAX_STYLE):
7994         * glyphs.c (check_for_ignored_expose):
7995         (find_matching_subwindow):
7996         * glyphs-eimage.c:
7997         * imgproc.c (get_histogram):
7998         * redisplay.c (point_in_line_start_cache):
7999         * redisplay-output.c (redisplay_unmap_subwindows):
8000         * symbols.c (defsymbol_massage_name_1):
8001         (defkeyword_massage_name):
8002         (deferror_massage_name_and_message):
8003         * redisplay-x.c (x_output_string): 
8004         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
8005         * frame.h (struct frame):
8006         * filelock.c (current_lock_owner):
8007         * doprnt.c (emacs_doprnt_1):
8008         * lisp.h (struct Lisp_Bit_Vector):
8009         (DO_REALLOC):
8010         Fix warnings.
8011
8012 2002-02-13  Ben Wing  <ben@xemacs.org>
8013
8014         * event-stream.c (reset_key_echo):
8015         * event-stream.c (reset_this_command_keys):
8016         * event-stream.c (execute_command_event):
8017         If console is dead as a result of C-x 5 0, then post-command stuff
8018         needs to be careful and do only non-console-specific stuff.
8019
8020 2002-07-01  Mike Sperber <mike@xemacs.org>
8021
8022         * process-unix.c (unix_send_process): Mark coding_outstream as
8023         non-open upon SIGPIPE.
8024
8025         * event-stream.c (Fnext_event): Reorder switch cases to something
8026         that makes sense.
8027
8028 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
8029
8030         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
8031         Don't bogusly reinitialize ascii_character property.
8032
8033 2002-07-08  Mike Sperber <mike@xemacs.org>
8034
8035         * process.c (Fstart_process_internal): Do error checking before we
8036         fork off the child, so the child can't muck with the state of the
8037         parent.
8038
8039 2002-07-08  Mike Sperber <mike@xemacs.org>
8040
8041         * ralloc.c (init_ralloc): Allocate properly for pdump.
8042
8043 2002-06-12  Andy Piper  <andy@xemacs.org>
8044
8045         * glyphs.c (query_string_geometry): check the string.
8046
8047         * glyphs-widget.c (widget_logical_unit_height): cope with nil
8048         widget names.
8049
8050 2002-06-17  Jerry James  <james@xemacs.org>
8051
8052         * sysdll.c: Remove RTLD_GLOBAL initialization.
8053         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
8054
8055 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
8056
8057         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
8058
8059 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
8060
8061         * sysdep.c (sys_rename): Make sys_rename work for the case where
8062         Windows rename sets errno to EACCES if target file exists.
8063
8064 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
8065
8066         * device-msw.c (mswindows_handle_page_setup_dialog_box):
8067         Fix detection of metric units to work on Win95
8068
8069 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
8070
8071         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
8072
8073 2002-04-25  Andy Piper  <andy@xemacs.org>
8074
8075         * redisplay.c (create_text_block): Remove extra comment trailer.
8076
8077 2002-04-24  Andy Piper  <andy@xemacs.org>
8078
8079         * redisplay.c (create_text_block): Don't actually add propagation
8080         data if the line ends after we have added a glyph.
8081
8082 2002-04-22  Andy Piper  <andy@xemacs.org>
8083
8084         * extents.c (extent_fragment_update): check for glyphs we have
8085         previously displayed.
8086         * extents.c (print_extent_1): warning removal.
8087         * extents.h: change prototype.
8088         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
8089         widths correctly for wide glyphs.
8090         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
8091         * redisplay.c (prop_type): add PROP_GLYPH.
8092         * redisplay.c (struct prop_block): add glyph type
8093         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
8094         to the propagation data.
8095         * redisplay.c (create_text_block): if there is a glyph in the
8096         propagation data use it to salt extent_fragment_update.
8097         * redisplay.c (create_string_text_block): ditto.
8098
8099 2002-04-13  Nix  <nix@esperi.demon.co.uk>
8100
8101         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
8102         * redisplay-output.c (compare_runes): Compare them.
8103         * redisplay.c: Update copyright date.
8104         * redisplay.c (pos_data): Add need_baseline_computation field.
8105         * redisplay.c (add_glyph_rune): Update ascent, descent, and
8106         need_baseline_computation; zero yoffset. Set max_pixmap_height
8107         for all pixmaps, not just automatically positioned ones.
8108         * redisplay.c (calculate_yoffset): New, compute yoffset values.
8109         * redisplay.c (calculate_baseline): New, compute textual baseline.
8110         * redisplay.c (add_glyph_rune): Call them.
8111         * redisplay.c (create_text_block): Likewise.
8112         * redisplay.c (create_overlay_glyph_block): Likewise.
8113         * redisplay.c (add_margin_runes): Likewise.
8114         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
8115
8116         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
8117         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
8118         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
8119         * redisplay-msw.c (mswindows_output_string): Likewise.
8120         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
8121         * redisplay-gtk.c (gtk_output_display_block): Likewise.
8122         * redisplay-x.c (x_output_display_block): Likewise.
8123
8124 2002-03-28  Ben Wing  <ben@xemacs.org>
8125
8126         * redisplay.c: Fixed bug in redisplay
8127         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
8128         and down of the lines, since they're bigger than the line
8129         size. (It was seen most obviously when there's a horizontal scroll
8130         bar, e.g. do C-h a glyph or something like that.) The problem was
8131         that the glyph-contrib-p setting on glyphs was ignored even if it
8132         was set properly, which it wasn't until now.
8133
8134 2002-04-24  Andy Piper  <andy@xemacs.org>
8135
8136         * lisp.h (Dynarr_end): Fix definition.
8137
8138 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
8139
8140         * redisplay.c (mark_redisplay): Remove call to
8141         update_frame_window_mirror.
8142
8143 2001-11-15  Andy Piper  <andy@xemacs.org>
8144
8145         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
8146         cygwin (again).
8147
8148 2002-02-13  Andy Piper  <andy@xemacs.org>
8149
8150         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
8151         we did in fact enqueue the XM_MAPFRAME event.
8152
8153 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
8154
8155         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
8156         to fix problem switching between virtual desktops under virtuawin
8157         virtual window manager.
8158
8159 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
8160
8161         * event-msw.c: Typo fix.
8162         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
8163         magic XM_MAPFRAME event has been sent.
8164
8165 2001-11-23  Andy Piper  <andy@xemacs.org>
8166
8167         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
8168
8169 2001-11-21  Andy Piper  <andy@xemacs.org>
8170
8171         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
8172         mouse events outside the frame.
8173
8174 2002-03-20  Andy Piper  <andy@xemacs.org>
8175
8176         * menubar-msw.c (mswindows_popup_menu): warning removal.
8177         * dialog-msw.c (dialog_popped_down): ditto.
8178
8179 2001-12-11  Andy Piper  <andy@xemacs.org>
8180
8181         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
8182         * dialog-msw.c (mswindows_make_dialog_box_internal): set
8183         popup_up_p.
8184         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
8185         * menubar-msw.c (mswindows_handle_wm_command): ditto.
8186         * menubar-msw.c (mswindows_popup_menu): ditto.
8187
8188 2001-10-29  Andy Piper  <andy@xemacs.org>
8189
8190         * dialog-msw.c (handle_directory_dialog_box): quit if the user
8191         cancels.
8192
8193 2002-01-03  Andy Piper  <andy@xemacs.org>
8194
8195         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
8196         letters.
8197         (xrealpath): ditto.
8198
8199 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
8200
8201         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
8202         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
8203         * device-msw.c (mswindows_handle_page_setup_dialog_box):
8204         Detect and handle case where machine is set up for metric units
8205
8206 2002-04-02  Andy Piper  <andy@xemacs.org>
8207
8208         * dired-msw.c (mswindows_get_files): 
8209         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
8210         completely handled by XEmacs. Suggested by Thomas Vogler
8211         <mail@thomas-vogler.de>.
8212
8213 2001-11-14  Andy Piper  <andy@xemacs.org>
8214
8215         * nt.c (REG_ROOT): change registry key to XEmacs.
8216
8217 2002-04-27  Andy Piper  <andy@xemacs.org>
8218
8219         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
8220
8221 2002-04-26  Andy Piper  <andy@xemacs.org>
8222
8223         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
8224         behavior.
8225
8226 2002-03-14  Mike Alexander  <mta@arbortext.com>
8227
8228         * event-msw.c (mswindows_unwait_process): New, remove process from
8229         wait list
8230         * process-nt.c (nt_finalize_process_data): Call
8231         mswindows_unwait_process
8232         * console-msw.h: Declare mswindows_unwait_process
8233
8234 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
8235
8236         * editfns.c (Fdecode_time):
8237         (Fformat_time_string):
8238         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
8239         (make_time): Warning elimination (change arg name).
8240
8241 2001-11-24  Andy Piper  <andy@xemacs.org>
8242
8243         * window.c (Fsplit_window): Doc return type.
8244
8245 2002-04-01  Andy Piper  <andy@xemacs.org>
8246
8247         * emacs.c (Fkill_emacs): Only output message box in interactive
8248         mode.
8249
8250 2002-04-26  Andy Piper  <andy@xemacs.org>
8251  
8252         * config.h.in: pull in 21.5.x change to stop alloca warnings under
8253         cygwin.
8254
8255 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
8256
8257         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
8258         bit platform.
8259
8260 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
8261
8262         * XEmacs 21.4.8 "Honest Recruiter" is released.
8263
8264 2002-05-07  Nix  <nix@esperi.demon.co.uk>
8265
8266         Supersedes 2002-04-17 patch.
8267
8268         * process.h (PROCESS_LIVE_P): Use the process status as
8269         evidence of health, not the state of the input stream.
8270         (PROCESS_READABLE_P): Say if the process is readable
8271         from. (It may be dead nonetheless.)
8272         (CHECK_READABLE_PROCESS): Test for that condition.
8273
8274         * process.c (create_process): Use PROCESS_READABLE_P.
8275         (read_process_output, set_process_filter): Likewise.
8276
8277         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
8278         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
8279
8280         This code is #if 0'd, this is not the time to add new functions:
8281
8282         * process.c (Fprocess_readable_p): Report readability status.
8283         * process.c (Qprocess_readable_p): New, associated symbol...
8284         * process.c (syms_of_process): ... initialize it.
8285
8286 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
8287
8288         * XEmacs 21.4.7 "Economic Science" is released.
8289
8290 2002-04-17  Nix  <nix@esperi.demon.co.uk>
8291
8292         * process.h (PROCESS_LIVE_P): Use the process status as
8293         evidence of health, not the state of the input stream.
8294
8295 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
8296
8297         * sysdep.c (sys_siglist): change "signum" to "signal"
8298
8299 2001-04-21  Martin Buchholz  <martin@xemacs.org>
8300
8301         * s/darwin.h: New file.
8302         Thanks to Greg Parker <gparker@cs.stanford.edu>.
8303         
8304 2002-04-23  Andreas Jaeger  <aj@suse.de>
8305
8306         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
8307         which use lib64 for 64-bit libs.
8308         (START_FILES): Likewise.
8309
8310 2002-02-11  Mike Sperber  <mike@xemacs.org>
8311
8312         * device-x.c: 
8313         (x_IO_error_handler):
8314         (x_init_device): Temporarily keep device in static variable
8315         `device_being_initialized' so we can recover gracefully from
8316         internal XOpenDevice failure.  (XOpenDevice is documented to
8317         return NULL on failure, but sometimes calls the IO error handler
8318         instead.)
8319
8320 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
8321
8322         * dired.c (Ffile_name_all_completions): Change documentation --
8323         remove reference to completion-ignored-extensions.
8324         * dired.c (vars_of_dired): Change documentation for
8325         completion-ignored-extensions -- remove reference to
8326         file-name-all-completions.
8327
8328 2002-03-06  Jerry James  <james@xemacs.org>
8329
8330         * emodules.c (emodules_load): Fix multiple loading of same module.
8331
8332 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
8333         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
8334         RTLD_LAZY to avoid incorrect symbol binding when using nested
8335         shared libraries on Solaris.
8336
8337 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
8338
8339         * fileio.c (Ffind_file_name_handler): Improve docstring.
8340
8341 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
8342
8343         * fns.c (Fmapconcat): Improve docstring.
8344
8345 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
8346
8347         * device-gtk.c: Add prototype for
8348         emacs_gtk_selection_clear_event_handle.
8349         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
8350         selection.  Setup signal handler for "selection_clear_event"
8351         (emacs_gtk_selection_clear_event_handle).
8352
8353         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
8354         other applications owning the clipboard (based on
8355         x_handle_selection_clear).
8356
8357 2001-12-23  William M. Perry  <wmperry@gnu.org>
8358
8359         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
8360         
8361 2002-01-04  Martin Buchholz  <martin@xemacs.org>
8362
8363         * keymap.c (define_key_alternate_name): Parenthesize EQ.
8364
8365 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
8366
8367         * XEmacs 21.4.6 "Common Lisp" is released.
8368
8369 2001-12-16  Torsten Duwe  <duwe@caldera.de>
8370
8371         * search.c (Freplace_match): Add missing sub-expression functionality.
8372
8373         * buffer.c (decode_buffer): Add a check for pointer type to
8374         decode_buffer, before gcc's CSE optimization reorders a
8375         dereference in front of the allow_string test.
8376
8377 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
8378
8379         * window.c (window_loop): Fix bug that sometimes prevented
8380         window_loop() from iterating across multiple devices.  Also, at
8381         Ben's request, changed infloop-detecting code to abort() instead
8382         of silently terminating window_loop().
8383
8384 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
8385
8386         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
8387         * editfns.c (make_time): New function.
8388         (Fencode_time): Use it instead of wasteful_word_to_lisp.
8389         * lisp.h (make_time): Prototype and comment it.
8390         * dired.c (wasteful_word_to_lisp): Deprecate.
8391         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8392
8393 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
8394
8395         * fileio.c (auto_save_1): Use current coding system, not
8396         escape-quoted.
8397
8398 2001-11-13  Ben Wing  <ben@xemacs.org>
8399
8400         * window.c:
8401         * window.c (window_truncation_on):
8402         * window.c (syms_of_window):
8403         truncate-partial-width-windows should respect the buffer being
8404         displayed, like other redisplay vars.
8405
8406 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8407
8408         * event-stream.c (Fread_key_sequence): save current buffer.
8409
8410 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8411
8412         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8413
8414 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8415
8416         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8417
8418 2001-10-26  Mike Alexander  <mta@arbortext.com>
8419
8420         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8421
8422 2001-10-25  Andy Piper  <andy@xemacs.org>
8423
8424         * ChangeLog:
8425         * dialog-msw.c (handle_directory_proc): new function.
8426          (handle_directory_dialog_box): new fucntion.
8427          (handle_file_dialog_box): use new directory dialog support.
8428          (mswindows_make_dialog_box_internal): ditto.
8429         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8430         handling.
8431         (mswindows_find_frame): make global.
8432         * fileio.c (Fexpand_file_name): build fix.
8433         * general-slots.h: add Qdirectory.
8434         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8435         handling.
8436         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8437         cygwin not leaving win32 paths unchanged.
8438         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8439         cygwin runtime to do path conversion.
8440         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8441         (syms_of_win32): add new function.
8442         * window.c (window_loop): build fix.
8443
8444 2001-10-15  Andy Piper  <andy@xemacs.org>
8445
8446         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8447
8448 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8449
8450         * XEmacs 21.4.5 "Civil Service" is released.
8451
8452 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8453
8454         * glyphs-x.c: Force buffer-tab highlight update when moving the
8455         buffer, avoiding an ugly black border, used for keyboard focus
8456         indication, on a widget that can never have keyboard focus, the
8457         buffer tab.
8458
8459 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8460
8461         * process-unix.c (unix_open_multicast_group): Remove too much
8462         conversion between host and network byte order.
8463
8464 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8465
8466         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8467         before replacing them.
8468
8469         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8470         operation.
8471
8472         * src/window.c (undedicate_windows): Use it.
8473         * src/window.h: Add prototype.
8474
8475 2001-09-17  Ben Wing  <ben@xemacs.org>
8476
8477         * fileio.c (normalize_filename):
8478         * fileio.c (Fexpand_file_name):
8479         Fix various C++ compile errors in Andy's recent code.
8480         
8481         * callint.c (Fcall_interactively):
8482         * editfns.c (Ftemp_directory):
8483         * editfns.c (Fuser_full_name):
8484         * emacs.c (argmatch):
8485         * lread.c (locate_file_map_suffixes):
8486         * redisplay-x.c (x_ring_bell):
8487         Fix sign-compare warnings.
8488         
8489 2001-09-08  Andy Piper  <andy@xemacs.org>
8490
8491         * fileio.c (normalize_filename): copied from nt.c
8492         * (Ffile_name_directory): enable win32 paths under cygwin.
8493         * (Ffile_name_nondirectory): ditto.
8494         * (directory_file_name): ditto.
8495         * (Fexpand_file_name): ditto.
8496         * (Ffile_truename): ditto.
8497         * (Fsubstitute_in_file_name): ditto.
8498         * (Ffile_name_absolute_p): ditto.
8499         * (Ffile_readable_p): ditto.
8500
8501 2001-09-08  Andy Piper  <andy@xemacs.org>
8502
8503         * device-msw.c (mswindows_finish_init_device): remove dde
8504         initialization.
8505         * device-msw.c (mswindows_init_dde): factor out from
8506         mswindows_finish_init_device()
8507         * device-msw.c (init_mswindows_very_early): new function
8508         initialize but don't enable dde.
8509         * emacs.c (main_1): call init_mswindows_very_early.
8510         * event-msw.c:
8511         * event-msw.c (mswindows_dde_callback): only execute when we are
8512         ready.
8513         * symsinit.h: declare init_mswindows_very_early.
8514
8515 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8516
8517         [sjt: This has been in 21.5 for months with no complaints.]
8518
8519         * console.h (struct console_methods): Added flags member.
8520         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8521         (CONMETH_IMPL_FLAG):
8522         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8523         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8524
8525         * device.c (window_system_pixelated_geometry): Use the above macros.
8526
8527         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8528         implememntation flag.
8529         * device.h (DEVICE_DISPLAY_P): Use it.
8530
8531         * frame.c (delete_frame_internal): Use the above macro.
8532
8533         * redisplay.c (redisplay_device): Use it.
8534         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8535         (redisplay_frame): Ditto.
8536
8537         * device-msw.c (mswindows_device_implementation_flags): Removed.
8538         (msprinter_device_implementation_flags): Removed.
8539         (console_type_create_device_mswindows): Removed references to
8540         implementation_flags methods, set implementation flags here.
8541         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8542
8543         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8544         (console_type_create_device_gtk): Removed method declaration.
8545         Added commented out statement which semantically matches the
8546         commented out statement in the above removed method.
8547
8548 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8549
8550         The attached patch fixes a few warnings. 
8551
8552         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8553         * src/frame-gtk.c: guard against GNOME calls in GTK only
8554         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8555         * src/select-gtk.c: prototype lisp_to_time
8556
8557 2001-06-08  Ben Wing  <ben@xemacs.org>
8558
8559         ------ gc-in-window-procedure fixes ------
8560         
8561         * alloc.c:
8562         * alloc.c (struct post_gc_action):
8563         * alloc.c (register_post_gc_action):
8564         * alloc.c (run_post_gc_actions):
8565         * alloc.c (garbage_collect_1):
8566         Create "post-gc actions", to avoid those dreaded "GC during window
8567         procedure" problems.
8568
8569         * event-msw.c:
8570         Abort, clean and simple, when GC in window procedure.  We want
8571         to flush these puppies out.
8572
8573         * glyphs-msw.c:
8574         * glyphs-msw.c (finalize_destroy_window):
8575         * glyphs-msw.c (mswindows_finalize_image_instance):
8576         Use a post-gc action when destroying subwindows.
8577
8578         * lisp.h:
8579         Declare register_post_gc_action().
8580
8581         * scrollbar-msw.c:
8582         * scrollbar-msw.c (unshow_that_mofo):
8583         Use a post-gc action when unshowing scrollbar windows, if in gc.
8584
8585         * redisplay.c (mark_redisplay):
8586         Add comment about the utter evilness of what's going down here.
8587
8588         ------ cygwin setitimer fixes ------
8589         
8590         * Makefile.in.in (sheap_objs):
8591         * Makefile.in.in (profile_objs):
8592         * Makefile.in.in (objs):
8593         Compile profile.c only when HAVE_SETITIMER.
8594         
8595         * nt.c (mswindows_sigset):
8596         * nt.c (mswindows_sighold):
8597         * nt.c (mswindows_sigrelse):
8598         * nt.c (mswindows_sigpause):
8599         * nt.c (mswindows_raise):
8600         * nt.c (close_file_data):
8601         Style fixes.
8602         
8603         * nt.c:
8604         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8605         
8606         * profile.c:
8607         * profile.c (Fstart_profiling):
8608         * profile.c (Fstop_profiling):
8609         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8610         instead of just plain setitimer().
8611         
8612         * signal.c:
8613         * signal.c (set_one_shot_timer):
8614         * signal.c (alarm):
8615         Define qxe_setitimer() as an encapsulation around setitimer() --
8616         call setitimer() directly unless Cygwin or MS Win, in which case
8617         we use our simulated version in win32.c.
8618         
8619         * systime.h:
8620         * systime.h (struct itimerval):
8621         * systime.h (ITIMER_REAL):
8622         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8623         comment about "qxe" and the policy regarding encapsulation.
8624
8625         * win32.c:
8626         * win32.c (setitimer_helper_proc):
8627         * win32.c (setitimer_helper_period):
8628         * win32.c (setitimer_helper):
8629         * win32.c (mswindows_setitimer):
8630         Move setitimer() emulation here, so Cygwin can use it.
8631         Rename a couple of functions and variables to be longer and more
8632         descriptive.  In setitimer_helper_proc(), send the signal
8633         using either mswindows_raise() or (on Cygwin) kill().  If for
8634         some reason we are still getting lockups, we'll change the kill()
8635         to directly invoke the signal handlers.
8636
8637         ------ windows shell fixes ------
8638         
8639         * callproc.c:
8640         * ntproc.c:
8641         Comments about how these two files must die.
8642
8643         * callproc.c (init_callproc):
8644         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8645         not just COMSPEC. (more correct and closer to FSF.) Don't
8646         force a value for SHELL into the environment. (Comments added
8647         to explain why not.)
8648         
8649         * nt.c (init_user_info):
8650         Don't shove a fabricated SHELL into the environment.  See above.
8651
8652 2001-06-01  Ben Wing  <ben@xemacs.org>
8653
8654         * Makefile.in.in (ldflags):
8655         eliminate that pesky "defaulting to 00401000" warning.
8656         * nt.h:
8657         eliminate warnings.
8658
8659 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8660
8661         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8662         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8663
8664 2001-04-24  Jerry James <james@xemacs.org>
8665
8666         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8667         correct order.
8668
8669 2001-06-01  Ben Wing  <ben@xemacs.org>
8670
8671         * event-msw.c (debug_mswin_messages):
8672         conditionalize the messages that were causing compile errors.
8673         (if only macros could generate #ifdef statements ...)
8674
8675 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8676
8677         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8678
8679 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8680
8681         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8682
8683 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8684
8685         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8686         * process-unix.c (unix_canonicalize_host_name):
8687         sysdep.c (init_system_name):
8688         Use it to conditionally support IPv6 canonicalization.
8689
8690 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8691
8692         * event-msw.c:
8693         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8694
8695 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8696
8697         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8698         attempt is made to scroll when no scroll bar is available.
8699
8700 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8701
8702         * input-method-motif.c (XIM_delete_frame): New callback.
8703         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8704         got deleted from 21.4.3.)
8705
8706 2001-06-01  Ben Wing  <ben@xemacs.org>
8707
8708         * nt.c (mswindows_utime):
8709         * nt.c (close_file_data):
8710         fix off-by-one-indirection error.
8711
8712 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8713
8714         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8715         because set_file_times() now takes Lisp_Object path, instead of
8716         char*.
8717         * nt.c: Include buffer.h.
8718         * nt.c (convert_from_time_t): New.
8719         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8720         not set mtime correctly.
8721         * nt.h: Declare mswindows_utime().
8722         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8723         path, instead of char*.
8724         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8725
8726 2001-05-30  Ben Wing  <ben@xemacs.org>
8727
8728         For 21.4:
8729
8730         (Stephen, just take all event-msw.c patches.  This includes
8731         the "iconify" fix below.)
8732
8733         * event-msw.c:
8734         * event-msw.c (mswindows_dequeue_dispatch_event):
8735         * event-msw.c (assert):
8736         * event-msw.c (emacs_mswindows_quit_p):
8737         * event-msw.c (debug_mswin_messages):
8738         * event-msw.c (debug_output_mswin_message):
8739         * event-msw.c (vars_of_event_mswindows):
8740         Fix yet more problems with C-g handling.
8741         Implement debug-mswindows-events.
8742         
8743 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8744
8745         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8746         
8747 2001-05-23  Ben Wing  <ben@xemacs.org>
8748
8749         * event-msw.c (winsock_writer):
8750         * event-msw.c (winsock_closer):
8751         prior kludgy code was clobbering the buffer, thinking it was
8752         "unused" space to store an unneeded return value; instead, use
8753         the variable we've already got staring us in the face.
8754
8755 2001-05-17  Andy Piper  <andy@xemacs.org>
8756
8757         * sysfile.h: don't assume that file attributes are boolean
8758
8759 2001-05-23  Ben Wing  <ben@xemacs.org>
8760
8761         * device-msw.c (msprinter_init_device):
8762         signal an error rather than crash with an unavailable network
8763         printer (from Mike Alexander).
8764         
8765         * event-msw.c:
8766         * event-msw.c (struct winsock_stream):
8767         * event-msw.c (winsock_writer):
8768         * event-msw.c (winsock_closer):
8769         * event-msw.c (make_winsock_stream_1):
8770         cleanup headers.  fix (hopefully) an error with data corruption
8771         when sending to a network connection.
8772
8773         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8774         to handle the ~user prefix by (a) always assuming we're referencing
8775         ourselves and not even verifying the user -- hence any file with
8776         a tilde as its first char is invalid! (b) if there wasn't a slash
8777         following the filename, the pointer was set *past* the end of
8778         file and we started reading from uninitialized memory.  Now we
8779         simply treat these as files, always.
8780
8781         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8782         
8783 2001-05-19  Ben Wing  <ben@xemacs.org>
8784
8785         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8786
8787         * process-nt.c:
8788         * process-nt.c (vars_of_process_nt):
8789         remove unused mswindows-quote-process-args.  rec for 21.4.
8790         
8791 2001-05-12  Ben Wing  <ben@xemacs.org>
8792
8793         * event-msw.c (mswindows_dde_callback):
8794         * event-msw.c (mswindows_wnd_proc):
8795         eliminate cygwin warnings.
8796
8797 2001-05-06  Ben Wing  <ben@xemacs.org>
8798
8799         * console-msw.h:
8800         * device-msw.c:
8801         * device-msw.c (print_dialog_worker):
8802         * device-msw.c (mswindows_handle_print_dialog_box):
8803         * device-msw.c (syms_of_device_mswindows):
8804         * dialog-msw.c (mswindows_make_dialog_box_internal):
8805         * general-slots.h:
8806         implement printing the selection when it's selected.
8807
8808 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8809
8810         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8811
8812 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8813
8814         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8815         EMACS_INT is signed.
8816
8817 2001-04-15  Michael Lausch  <mla@1012surf.net>
8818
8819         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8820         gtk_widget_request_size() to give scrollbar >0 width for
8821         GTK >1.2.8.
8822
8823 2001-05-30  William M. Perry  <wmperry@gnu.org>
8824
8825         * event-gtk.c: Check for buttons as modifier keys.
8826
8827 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8828
8829         * s\mingw32.h:
8830         Properly find MinGW's <process.h> inside Cygwin's restructured
8831         include directories.  Don't try to include <cygwin/version.h>
8832         since we are dropping support for MinGW in versions of Cygwin
8833         earlier than b21.
8834         * nt.c:
8835         Drop support for MinGW in versions of Cygwin before b21.
8836         * sysdep.c:
8837         Properly find MinGW's <process.h> inside Cygwin's restructured
8838         include directories.
8839         * syswindows.h:
8840         Drop support for MinGW in versions of Cygwin before b21.
8841         * unexcw.c:
8842         Even though a.out.h is no longer detected by configure, allow
8843         MinGW to use it until we figure out how to do the job with Win32.
8844
8845 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8846
8847         * syntax.c (find_start_of_comment):
8848         Fix `unbalanced parentheses' bug when dealing with mixed comment
8849         styles in c++/java/etc. mode
8850
8851 2001-05-29  Mike Alexander  <mta@arbortext.com>
8852
8853         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8854         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8855
8856 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8857
8858         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8859
8860 2001-03-31  Mike Sperber <mike@xemacs.org>
8861
8862         * search.c (Freplace_match): Support FSF-style specification of
8863         match subexpression when applied to a buffer.
8864
8865 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8866
8867         * event-stream.c (is_scrollbar_event): add missing semicolon
8868
8869 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8870
8871         * Makefile.in.in: Use TAR macro instead of hardcoding
8872           tar.  Allows use of GNU tar instead of system tar
8873
8874 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8875
8876         * event-stream.c (is_scrollbar_event): add missing semicolon
8877
8878 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8879
8880         * XEmacs 21.4.3 "Academic Rigor" is released.
8881
8882 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8883
8884         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8885
8886 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8887
8888         * buffer.c (Vcase_fold_search): Remove obsolete
8889           comment about non ASCII case-fold-search.  This
8890           bug has been fixed by case-table changes.
8891
8892 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8893
8894         * event-msw.c: Restore include of events-mod.h.
8895
8896 2001-04-22   zhaoway  <zw@debian.org>
8897
8898         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8899         !HAVE_SCROLLBARS.
8900
8901 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8902
8903         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8904
8905 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8906
8907         * mule-charset.c (Fmake_charset): Add missing else.
8908
8909 2001-04-23  Ben Wing  <ben@xemacs.org>
8910
8911         * event-msw.c (FAKE_MOD_QUIT):
8912         * event-msw.c (mswindows_dequeue_dispatch_event):
8913         * event-msw.c (mswindows_wnd_proc):
8914         * event-msw.c (emacs_mswindows_quit_p):
8915         Get critical quit working.
8916
8917 2001-05-05  Ben Wing  <ben@xemacs.org>
8918
8919         * console-msw.h:
8920         * device-msw.c:
8921         * device-msw.c (mswindows_get_default_margin):
8922         * frame-msw.c (mswindows_size_frame_internal):
8923         * frame-msw.c (msprinter_init_frame_1):
8924         * frame-msw.c (vars_of_frame_mswindows):
8925         Change top/bottom margin defaults to 0.5 inches.
8926
8927 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8928
8929         Fix link error with gcc 3.0 on Linux.
8930         * terminfo.c (UP): Remove.
8931         * terminfo.c (BC): Remove.
8932         * terminfo.c (PC): Remove.
8933         They weren't used, and in any case, these symbols should be
8934         defined in the *library*.
8935
8936 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8937
8938         * s/aix4.h: Fix crash with xlc -O3.
8939         Improve comment explaining how -O3 works.
8940
8941 2001-04-15  Ben Wing  <ben@xemacs.org>
8942
8943         * event-stream.c:
8944         * event-stream.c (Fnext_event):
8945         * event-stream.c (is_scrollbar_event):
8946         * event-stream.c (execute_command_event):
8947         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8948         crash' problem.  His fix introduces other problems.  We filter
8949         out scrollbar events specifically, making them somewhat invisible
8950         to command-building, and not appearing in `this-command-keys'.
8951         More work is still needed (see comments in event-stream.c), but
8952         this fixes all the major problems.
8953
8954 2001-04-20  Ben Wing  <ben@xemacs.org>
8955
8956         * .cvsignore: Added stuff for Windows.
8957
8958 2001-04-28  Ben Wing  <ben@xemacs.org>
8959
8960         * buffer.c (Ferase_buffer):
8961         * editfns.c (buffer_insert1):
8962         * editfns.c (Finsert_before_markers):
8963         * editfns.c (Finsert_string):
8964         * editfns.c (Finsert_char):
8965         * editfns.c (Fdelete_region):
8966         * editfns.c (Fwiden):
8967         * editfns.c (Fnarrow_to_region):
8968         remove bogus lines setting zmacs_region_stays to 0.
8969         
8970 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8971
8972         * process-unix.c (unix_open_network_stream): If connect() fails
8973         invalidate file descriptor after closing it.
8974
8975 2001-03-08  Mike Alexander  <mta@arbortext.com>
8976
8977         * event-msw.c (mswindows_need_event_in_modal_loop):
8978         Don't dispatch a message if we didn't get one.
8979         (mswindows_need_event):
8980         Terminate the correct process when one exits instead of the first
8981         one on Vprocess_list and look for process termination when in
8982         mswindows_protect_modal_loop.
8983
8984 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8985
8986         * XEmacs 21.4.1 "Copyleft" is released.
8987
8988 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8989
8990         * input-method-motif.c (XIM_delete_frame): New callback.
8991         (XIM_init_frame): Register it.
8992
8993 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8994
8995         * XEmacs 21.4.0 "Solid Vapor" is released.
8996
8997 2001-04-15  Ben Wing  <ben@xemacs.org>
8998
8999         * cmdloop.c (call_command_loop):
9000         Fix braino in bit-rotting code.
9001         
9002 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
9003
9004         * extents.c (Fset_extent_endpoints): Force creation of extent info
9005         in buffer_or_string.
9006
9007         * extents.c (process_extents_for_insertion_mapper): Correctly
9008         check for open-open zero-length extents.
9009
9010 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
9011
9012         * lisp.h: New typedefs Memory_count, Element_count.
9013         * regex.c:
9014         * regex.h:
9015         Sign-compare warning elimination: several unsigned -> signed.
9016         Based on work by Ben Wing <ben@xemacs.org>.
9017
9018 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
9019
9020         * XEmacs 21.2.47 "Zephir" is released.
9021
9022 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
9023
9024         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
9025
9026 2001-04-03  Mike Sperber <mike@xemacs.org>
9027
9028         * search.c: Revert previous patch due because of release.
9029
9030 2001-03-30  Ben Wing  <ben@xemacs.org>
9031
9032         * s\cygwin32.h:
9033         Add missing killpg prototype.
9034
9035         * elhash.c:
9036         Add a comment about fixing problems when a new entry is added
9037         while mapping.
9038
9039         * frame-msw.c (mswindows_init_frame_1):
9040         Fix compile warnings.
9041
9042         * menubar.c (vars_of_menubar):
9043         Provide `menu-accelerator-support' to indicate that we properly
9044         support %_ in menu specifications, so that package code can
9045         conditionalize on this (and remove %_ from menu specifications
9046         on older versions).
9047
9048         * event-msw.c:
9049         * scrollbar-msw.c:
9050         * scrollbar-msw.c (can_scroll):
9051         * scrollbar-msw.h:
9052         Fix handling of mouse wheel under Windows to follow standards --
9053         now scrolls window under pointer, not selected window.
9054
9055 2001-03-31  Mike Sperber <mike@xemacs.org>
9056
9057         * search.c (Freplace_match): Support FSF-style specification of
9058         match subexpression when applied to a buffer.
9059
9060 2001-03-15  Martin Buchholz  <martin@xemacs.org>
9061
9062         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
9063         function to modify KEYMAP, so map over a copy of the hash table.
9064
9065 2001-03-21  Martin Buchholz <martin@xemacs.org>
9066
9067         * XEmacs 21.2.46 "Urania" is released.
9068
9069 2001-03-20  Dan Holmsand  <dan@eyebee.com>
9070
9071         * realpath.c (xrealpath): Make file-truename work with symlinks to
9072         /cygdrive paths on cygwin. Always lowercase drive-letters on
9073         native windows.
9074         (cygwin_readlink): Don't try to find canonical filename unless
9075         file exists.
9076
9077 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
9078
9079         * ChangeLog: Log GTK merge.
9080
9081         * dumper.c:
9082         * select-x.c:
9083         * specifier.c:
9084         * symeval.h:
9085         Revert gratuitous whitespace changes from GTK merge.
9086
9087         * emacs.c: Document end of complex #ifdef @ l. 1495.
9088
9089
9090 2001-03-12  Andy Piper  <andy@xemacs.org>
9091
9092         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
9093         have to do likewise.
9094
9095 2001-03-12  Andy Piper  <andy@xemacs.org>
9096
9097         * sysdep.c: we only support mingw now.
9098
9099 2001-03-09  Andy Piper  <andy@xemacs.org>
9100
9101         * unexcw.c (copy_executable_and_dump_data_section): making approx
9102         overrun a warning only.
9103
9104 2001-03-10  William M. Perry  <wmperry@aventail.com>
9105
9106         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
9107         satisfy Stephen's identical-after-cpp plea.
9108
9109 2001-03-02  Ben Wing  <ben@xemacs.org>
9110
9111         * cmds.c:
9112         * cmds.c (Fforward_char):
9113         * syntax.c:
9114         * window.c:
9115
9116         Augment documentation of the most common motion commands to make
9117         note of the shifted-motion support.
9118         
9119 2001-03-02  Ben Wing  <ben@xemacs.org>
9120
9121         * nt.c (mswindows_fstat):
9122         * nt.c (mswindows_stat):
9123         * search.c (boyer_moore):
9124         Fix compile warnings under Windows.
9125         
9126         * sysdep.c (sys_readdir):
9127         Fix buggy filename-conversion code under Mule.
9128
9129 2001-03-09  William M. Perry  <wmperry@aventail.com>
9130
9131         * Makefile.in.in:
9132         * config.h.in:
9133         * console.c:
9134         * console.h:
9135         * device.c:
9136         * device.h:
9137         * dragdrop.c:
9138         * emacs.c:
9139         * event-stream.c:
9140         * events.c:
9141         * events.h:
9142         * faces.c:
9143         * frame.h:
9144         * general-slots.h:
9145         * glyphs.c:
9146         * gutter.c:
9147         * inline.c:
9148         * lisp.h:
9149         * lrecord.h:
9150         * make-src-depend:
9151         * redisplay-output.c:
9152         * redisplay.c:
9153         * symsinit.h:
9154         * sysfile.h:
9155         * toolbar.c:
9156         * window.c:
9157         The Great GTK Merge.
9158
9159         * ChangeLog.GTK:
9160         * console-gtk.c:
9161         * console-gtk.h:
9162         * device-gtk.c:
9163         * emacs-marshals.c:
9164         * emacs-widget-accessors.c:
9165         * event-gtk.c:
9166         * frame-gtk.c:
9167         * gccache-gtk.c:
9168         * gccache-gtk.h:
9169         * glade.c:
9170         * glyphs-gtk.c:
9171         * glyphs-gtk.h:
9172         * gtk-glue.c:
9173         * gtk-xemacs.c:
9174         * gtk-xemacs.h:
9175         * gui-gtk.c:
9176         * gui-gtk.h:
9177         * menubar-gtk.c:
9178         * native-gtk-toolbar.c:
9179         * objects-gtk.c:
9180         * objects-gtk.h:
9181         * redisplay-gtk.c:
9182         * scrollbar-gtk.c:
9183         * scrollbar-gtk.h:
9184         * select-gtk.c:
9185         * toolbar-gtk.c:
9186         * ui-byhand.c:
9187         * ui-gtk.c:
9188         * ui-gtk.h:
9189         The Great GTK Merge: new files.
9190
9191 2001-02-26  Ben Wing  <ben@xemacs.org>
9192
9193         Reapplied Lstream change.
9194
9195 2001-02-26  Ben Wing  <ben@xemacs.org>
9196
9197         Undid the last change, since it is more controversial than I
9198         thought.  It should be back in at some point soon.
9199         
9200 2001-02-25  Ben Wing  <ben@xemacs.org>
9201
9202         * buffer.c:
9203         * callproc.c (Fold_call_process_internal):
9204         * event-msw.c (ntpipe_slurp_reader):
9205         * event-msw.c (ntpipe_shove_writer):
9206         * event-msw.c (winsock_reader):
9207         * event-msw.c (winsock_writer):
9208         * file-coding.c:
9209         * file-coding.c (detect_eol_type):
9210         * file-coding.c (detect_coding_type):
9211         * file-coding.c (determine_real_coding_system):
9212         * file-coding.c (Fdetect_coding_region):
9213         * file-coding.c (decoding_reader):
9214         * file-coding.c (decoding_writer):
9215         * file-coding.c (mule_decode):
9216         * file-coding.c (Fdecode_coding_region):
9217         * file-coding.c (encoding_reader):
9218         * file-coding.c (encoding_writer):
9219         * file-coding.c (mule_encode):
9220         * file-coding.c (Fencode_coding_region):
9221         * file-coding.c (detect_coding_sjis):
9222         * file-coding.c (decode_coding_sjis):
9223         * file-coding.c (encode_coding_sjis):
9224         * file-coding.c (detect_coding_big5):
9225         * file-coding.c (decode_coding_big5):
9226         * file-coding.c (encode_coding_big5):
9227         * file-coding.c (detect_coding_ucs4):
9228         * file-coding.c (decode_coding_ucs4):
9229         * file-coding.c (encode_coding_ucs4):
9230         * file-coding.c (detect_coding_utf8):
9231         * file-coding.c (decode_coding_utf8):
9232         * file-coding.c (encode_coding_utf8):
9233         * file-coding.c (detect_coding_iso2022):
9234         * file-coding.c (decode_coding_iso2022):
9235         * file-coding.c (encode_coding_iso2022):
9236         * file-coding.c (decode_coding_no_conversion):
9237         * file-coding.c (encode_coding_no_conversion):
9238         * glyphs-x.c (write_lisp_string_to_temp_file):
9239         * gpmevent.c (tty_get_foreign_selection):
9240         * lisp.h:
9241         * lstream.c:
9242         * lstream.c (Lstream_flush_out):
9243         * lstream.c (Lstream_adding):
9244         * lstream.c (Lstream_write_1):
9245         * lstream.c (Lstream_write):
9246         * lstream.c (Lstream_raw_read):
9247         * lstream.c (Lstream_read_more):
9248         * lstream.c (Lstream_read):
9249         * lstream.c (Lstream_unread):
9250         * lstream.c (Lstream_fputc):
9251         * lstream.c (stdio_reader):
9252         * lstream.c (stdio_writer):
9253         * lstream.c (filedesc_reader):
9254         * lstream.c (filedesc_writer):
9255         * lstream.c (lisp_string_reader):
9256         * lstream.c (struct fixed_buffer_stream):
9257         * lstream.c (make_fixed_buffer_input_stream):
9258         * lstream.c (make_fixed_buffer_output_stream):
9259         * lstream.c (fixed_buffer_reader):
9260         * lstream.c (fixed_buffer_writer):
9261         * lstream.c (struct resizing_buffer_stream):
9262         * lstream.c (resizing_buffer_writer):
9263         * lstream.c (dynarr_writer):
9264         * lstream.c (lisp_buffer_reader):
9265         * lstream.c (lisp_buffer_writer):
9266         * lstream.h:
9267         * lstream.h (lstream_implementation):
9268         * lstream.h (struct lstream):
9269         * md5.c (Fmd5):
9270         * process-nt.c (nt_send_process):
9271         * process-unix.c (unix_send_process):
9272         
9273         Correct Lstream lossage due to mixing of signed and unsigned
9274         quantities.  All Lstream uses of size_t and ssize_t are now a
9275         single signed data type Lstream_data_count.  This fixes problems
9276         under Windows with sending large quantities of data to a process,
9277         and may well fix other subtle bugs.
9278
9279 2001-02-23  Martin Buchholz <martin@xemacs.org>
9280
9281         * XEmacs 21.2.45 "Thelxepeia" is released.
9282
9283 2001-02-21  Martin Buchholz  <martin@xemacs.org>
9284
9285         * lisp-union.h (XSETINT): 
9286         (XSETCHAR):
9287         (XSETOBJ): 
9288         Reverse previous change of 2001-02-06.
9289
9290 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
9291
9292         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
9293         buffers.
9294         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9295         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
9296         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
9297         * regex.c (POS_AS_IN_BUFFER): removed
9298         * regex.c (re_search_2):
9299         * regex.c (re_match_2):
9300         Don't use an offset of 1 when calculating buffer positions, since
9301         `BI_BUF_BEGV' does it already.
9302
9303 2001-02-18  Wim Dumon  <wim@easics.be>
9304
9305         * insdel.c (prepare_to_modify_buffer): Also check for
9306         supersession when clash-detection is enabled. 
9307
9308 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
9309
9310         * regex.c (re_match_2_internal):
9311         Convert temp characters from 'const unsigned char' to 're_char'.
9312         Fix crashing bug with extended characters under mule.
9313         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
9314         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
9315         font-lock, pdump, and new syntax-table code.
9316         * syntax.c (find_start_of_comment):
9317         (find_end_of_comment):
9318         (forward-comment):
9319         Fix crashing bugs involving moving beyond end of buffer.
9320         * syntax.c (find_start_of_comment):
9321         Fixed logic to allow proper detection of cases where the same
9322         character is used to end both a two-char comment start and a
9323         two-char comment end sequence. Fixes `(forward-comment -1)'.
9324         * syntax.c (find_start_of_comment):
9325         Return position just past last comment-end character for all cases
9326         (previously was only done for two-char comment-end sequences).
9327         * syntax.c (forward-comment):
9328         Take value returned from `find_end_of_comment', rather than
9329         incrementing it.
9330         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9331         Properly deal with BUFFERP (syntax_cache.object)
9332
9333 2001-02-17  Martin Buchholz  <martin@xemacs.org>
9334
9335         * alloc.c (Fgarbage_collect): 
9336         * alloc.c (make_bit_vector_from_byte_vector):
9337         -Wsign-compare-correctness.
9338
9339 2001-02-16  Martin Buchholz  <martin@xemacs.org>
9340
9341         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
9342         (XSETCHAR): Likewise.
9343         (XSETOBJ): Likewise.
9344
9345 2001-02-15  Martin Buchholz  <martin@xemacs.org>
9346
9347         * mule-canna.c (canna-func-delete_previous): 
9348         Rename to canna-func-delete-previous.
9349
9350 2001-02-14  Martin Buchholz  <martin@xemacs.org>
9351
9352         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
9353
9354 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
9355
9356         * font-lock.c (find_context): Fix C++ compile errors introduced by
9357         recent patch
9358
9359 2001-02-13  Martin Buchholz  <martin@xemacs.org>
9360
9361         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
9362         pragma, but earlier ones barf on the same pragma.
9363
9364 2001-02-06  Mike Sperber <mike@xemacs.org>
9365
9366         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
9367         `configure-mule-lisp-directory'.
9368
9369 2001-02-12  Martin Buchholz  <martin@xemacs.org>
9370
9371         Make sure dump-id.c is compiled in the same way as other .c's.
9372         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
9373         * dump-id.h: Remove.
9374         * emacs.c: Move dump-id.h into dumper.h.
9375         * dumper.h: Move dump-id.h into dumper.h.
9376         * Makefile.in.in:
9377         Use standard .c.o rule for building dump-id.o.
9378         Remove preprocessor flags from link command.
9379         Add dump-id.o to ${otherobjs} if PDUMP.
9380
9381 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
9382
9383         Port FSF 20.7 syntax table improvements.
9384         * syntax.c.
9385         * syntax.h.
9386
9387         Fixups for new syntax table stuff.
9388         * dired.c: Include syntax.c.
9389         (Fdirectory_files): Initialize regex_match_object and
9390         regex_emacs_buffer.
9391         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9392         and Fget_char_property.
9393
9394         Use ported FSF 20.7 syntax table improvements.
9395         * font-lock.c.
9396         * regex.c.
9397         * search.c.
9398         
9399 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9400
9401         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9402         Unixware's enum boolean from sys/types.h.
9403
9404 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9405
9406         Fix support for building with latest Purify.
9407         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9408         (PURIFY_FLAGS): Likewise.
9409
9410 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9411
9412         * fileio.c (lisp_string_set_file_times): New.
9413         * fileio.c (Fcopy_file): Use it.
9414         Fixes bug:
9415         (copy-file filename non-ascii-filename t t)
9416         ==> No such file or directory, non-ascii-filename
9417
9418 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9419
9420         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9421         USHRT_MAX seems clearer than ~0 anyways.
9422
9423 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9424
9425         dumper improvements.  Inspired by Olivier.
9426         * dumper.c (pdump_max_align): New.
9427         * dumper.c (pdump_add_entry): Use pdump_max_align.
9428         * dumper.c (pdump_get_entry_list): Likewise.
9429         * dumper.c (pdump_scan_by_alignment): Likewise.
9430         Don't iterate through unnecessary alignments.
9431         * dumper.c (pdump_file_get): No need to align result of malloc().
9432         * dumper.c (pdump_mallocadr): Remove.  
9433         The result of malloc() is guaranteed to be maximally aligned.
9434         * dumper.c: s/elmt/elt/g;
9435         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9436         * dumper.c (pdump_alert_undump_object): Likewise.
9437         * dumper.c (pdump_align_table): 
9438         Don't support alignments > 64.
9439         Store ALIGNOF's, not shift counts, in table.
9440
9441 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9442
9443         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9444         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9445         * systime.h: Use HAVE_UTIME.
9446         * sysdep.c (struct utimbuf): Remove.
9447         * sysdep.c (set_file_times): Prefer utime() to utimes().
9448         * config.h.in (HAVE_UTIME): New.
9449         * config.h.in (HAVE_UTIME_H): Remove.
9450         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9451
9452 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9453
9454         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9455
9456 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9457
9458         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9459
9460 2001-02-08  Martin Buchholz <martin@xemacs.org>
9461
9462         * XEmacs 21.2.44 "Thalia" is released.
9463
9464 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9465
9466         Fixes crashes in kill-emacs on some systems.
9467         * process-unix.c (unix_kill_child_process):
9468         It's OK for kill() to fail with ESRCH.
9469
9470 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9471
9472         Contortions to make .gdbinit tricks work on most systems.
9473         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9474         * alloc.c (dbg_valmask): Make non-const.
9475         * alloc.c (dbg_typemask): Make non-const.
9476         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9477         * alloc.c (dbg_valbits): Make non-const.
9478         * alloc.c (dbg_gctypebits): Make non-const.
9479         * .gdbinit (decode_object): Make it work with AIX cc.
9480
9481 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9482
9483         * elhash.c (make_general_lisp_hash_table):
9484         Use simpler and more efficient calloc to clear entries.
9485
9486 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9487
9488         * window.c (window_scroll): Work around an AIX C compiler bug.
9489         Fixes 'scroll-up' does nothing problem with xlC.
9490
9491 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9492
9493         * .gdbinit: Remove obsolete comment.
9494
9495 2001-01-31  Mike Alexander  <mta@arbortext.com>
9496
9497         * select.c (Fown_selection_internal): Set owned_p for device
9498         method correctly.
9499
9500 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9501
9502         Port to g++ 2.97.
9503         "not" cannot be used as a macro name as it is an operator in C++
9504         * config.h.in: Stop #defining `not'.
9505         * chartab.c (check_category_char): not ==> not_p
9506         * chartab.h: Likewise.
9507         * regex.c (re_match_2_internal): Likewise.
9508
9509 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9510
9511         * lisp-disunion.h: Fix up comments.
9512
9513 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9514
9515         * keymap.c (define_key_check_and_coerce_keysym):
9516         (syms_of_keymap):
9517         Support mouse-6 and mouse-7 bindings in the obvious way.
9518
9519 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9520
9521         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9522
9523 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9524
9525         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9526         Previous patch missed DEFVAR_INT_MAGIC.
9527         Make sure future DEFVAR_foo use correct types.
9528         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9529         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9530         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9531         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9532         * (DEFVAR_INT): Likewise.
9533         * redisplay.c (vertical_clip): Should be of type Fixnum.
9534         * redisplay.c (horizontal_clip): Likewise.
9535         * lisp.h (dump_add_opaque_int): New.
9536         (dump_add_opaque_fixnum): New.
9537
9538 2001-01-29  Andy Piper  <andy@xemacs.org>
9539
9540         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9541         since they can be eval'ed
9542
9543 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9544
9545         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9546         Oops, XEmacs redefines `class'.  Use `typename' instead.
9547
9548 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9549
9550         * dumper.c: Fix C++ compile errors.
9551
9552 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9553
9554         * tparam.c: Use correct prototypes.
9555
9556 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9557
9558         * sysproc.h: #include util.h for NetBSD's openpty.
9559
9560 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9561
9562         More 64-bit correctness.
9563         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9564         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9565         Fix up comments.
9566         This finally finishes the 64-bit SGI port.
9567         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9568         * symbols.c: Fix up comments and type casts.
9569         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9570         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9571         * symeval.h (Fixnum): New type.
9572         * symeval.h (symbol_value_type): Fix up comment.
9573
9574         * commands.h:
9575         * nt.c:
9576         * emacs.c:
9577         * data.c:
9578         * redisplay.c:
9579         * abbrev.c:
9580         * dired-msw.c:
9581         * event-Xt.c:
9582         * eldap.c:
9583         * window.c:
9584         * sound.c:
9585         * event-stream.c:
9586         * eval.c:
9587         * buffer.c:
9588         * mule-canna.c: A million DEFVAR_INTs here...
9589         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9590         * extents.c:
9591         * cmdloop.c:
9592         * lisp.h:
9593         * select-x.c:
9594         * console-x.h:
9595         * event-msw.c:
9596         * mule-wnnfns.c:
9597         * hpplay.c:
9598         * ralloc.c:
9599         * alloc.c:
9600         * keymap.c:
9601         * profile.c:
9602         s/int/Fixnum/g in DEFVAR_INT declarations.
9603
9604 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9605
9606         Port pdump to SGI alignment-sensitive environment.
9607         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9608         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9609         properly aligned.
9610         Define and use aligned reading and writing macros.
9611         Use buffered stdio instead of posix i/o for faster dumping.
9612         Eliminate kludgy 256 byte space for header.
9613         Read and write from dump file using structs for alignment safety.
9614         * dumper.c (pdump_align_stream): New.
9615         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9616         * dumper.c (PDUMP_READ_ALIGNED): New.
9617         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9618         * dumper.c (pdump_static_Lisp_Object): New struct.
9619         * dumper.c (pdump_static_pointer): New struct.
9620         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9621         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9622         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9623         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9624
9625         * dumper.c (pdump_backtrace):
9626         * dumper.c (pdump_get_indirect_count):
9627         * dumper.c (pdump_register_object):
9628         * dumper.c (pdump_register_struct):
9629         * dumper.c (pdump_reloc_one):
9630         * dumper.c (pdump_scan_by_alignment):
9631         * dumper.c (pdump_dump_from_root_struct_ptrs):
9632         * dumper.c (pdump_dump_opaques):
9633         * dumper.c (pdump_dump_rtables):
9634         * dumper.c (pdump_dump_from_root_objects):
9635         * dumper.c (pdump):
9636         * dumper.c (pdump_load_finish):
9637         Use aligned reading and writing.
9638
9639         * dumper.c (pdump_free): Make static.
9640         * dumper.c (pdump_hFile): Likewise.
9641         * dumper.c (pdump_hMap): Likewise.
9642
9643 2001-01-26  Martin Buchholz <martin@xemacs.org>
9644
9645         * XEmacs 21.2.43 "Terspichore" is released.
9646
9647 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9648
9649         Type fiddling for window_config.saved_windows_count
9650         * window.c (struct window_config): 
9651         Make saved_windows_count member unsigned.
9652         * window.c (sizeof_window_config_for_n_windows): 
9653         Make parameter unsigned.
9654         * window.c (mark_window_config):
9655         * window.c (window_config_equal):
9656         * window.c (free_window_configuration):
9657         * window.c (Fset_window_configuration):
9658         * window.c (count_windows):
9659         * window.c (Fcurrent_window_configuration):
9660         * window.c (reinit_vars_of_window):
9661         Update all callers and users.
9662
9663 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9664
9665         Alignment correctness for flexible arrays.
9666         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9667         Make alignment-correct. Add interesting comments.
9668         * alloc.c (size_vector):
9669         * alloc.c (make_vector_internal):
9670         * alloc.c (make_bit_vector_internal):
9671         * alloc.c (sweep_bit_vectors_1):
9672         * fns.c (size_bit_vector):
9673         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9674         * window.c (sizeof_window_config_for_n_windows): 
9675         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9676
9677 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9678
9679         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9680
9681 2001-01-23  Andy Piper  <andy@xemacs.org>
9682
9683         * select.c (Fown_selection_internal): pass owned_p
9684
9685         * select-msw.c (mswindows_own_selection): New Signature.
9686
9687         * console.h (struct console_methods): add owned_p to
9688         _own_selection.
9689
9690         * select-x.c (x_own_selection): pass owned_p
9691         (hack_motif_clipboard_selection): use owned_p
9692         (vars_of_select_x): new variable -
9693         x_selection_strict_motif_ownership.
9694
9695 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9696
9697         * specifier.h (specifier_data_offset): Remove pointless parens.
9698         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9699
9700 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9701
9702         Make Lisp_Object sizeof methods be alignment-correct.
9703         pdump must restore objects to the same alignment as the C compiler
9704         assumes.  It really matters on SGIs.
9705         * lstream.c (aligned_sizeof_lstream): New.
9706         (sizeof_lstream): Use aligned_sizeof_lstream.
9707         (Lstream_new): Likewise.
9708         * opaque.c (aligned_sizeof_opaque): New.
9709         (sizeof_opaque): Use aligned_sizeof_opaque.
9710         (make_opaque): Likewise.
9711         * specifier.c (aligned_sizeof_specifier): New.
9712         (sizeof_specifier): Use aligned_sizeof_specifier.
9713         (make_specifier_internal): Likewise.
9714
9715 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9716
9717         * lstream.h (struct lstream): Use max_align_t for trailing data.
9718         * specifier.h (struct Lisp_Specifier): Likewise.
9719
9720 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9721
9722         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9723         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9724         (CCL_SUSPEND): Likewise.
9725         (CCL_INVALID_CMD): Likewise.
9726         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9727         (ccl_driver): Likewise.
9728         (CCL_WRITE_CHAR): Macro hygiene.
9729         (CCL_WRITE_STRING): Macro hygiene.
9730
9731 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9732
9733         Port "portable" dumper to SunOS 4 and HP-UX.
9734         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9735         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9736         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9737
9738 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9739
9740         * lisp.h (ALIGNOF): A better definition for C++.
9741
9742 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9743
9744         Macro hygiene.
9745         Fix printf warnings: int format, long int arg.
9746         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9747         (PUSH_FAILURE_POINT): Use correct printf formats.
9748         (POP_FAILURE_POINT): Use correct printf formats.  
9749         Use do {...} while (0)
9750
9751 2001-01-20  Martin Buchholz <martin@xemacs.org>
9752
9753         * XEmacs 21.2.42 "Poseidon" is released.
9754
9755 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9756
9757         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9758
9759 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9760
9761         De-kludgify FIXED_TYPE free list frobbing.
9762         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9763         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9764         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9765         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9766         * alloc.c (LRECORD_FREE_P): New.
9767         * alloc.c (MARK_LRECORD_AS_FREE): New.
9768         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9769         * alloc.c (STRUCT_FREE_P): Deleted.
9770         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9771         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9772         * alloc.c (STRING_CHARS_FREE_P): New.
9773         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9774         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9775         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9776         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9777         * alloc.c (resize_string): Use new definitions.
9778         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9779         * alloc.c (verify_string_chars_integrity): Use new definitions.
9780         * alloc.c (compact_string_chars): Use new definitions.
9781         * alloc.c: Update monster comments.
9782         * lrecord.h (lrecord_type): Add some new lrecord types for
9783         alloc.c's use.
9784
9785 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9786
9787         Improve alignment hackery.
9788         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9789         (max_align_t): Moved from opaque.h - general purpose.
9790         (ALIGN_PTR): Use size_t, not long.
9791         * opaque.h (max_align_t): Move to lisp.h.
9792
9793 2001-01-18  Norbert Koch  <nk@LF.net>
9794
9795         * gui.h: Fix and add prototypes to fix build problems.
9796
9797 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9798
9799         temacs is going away, so `dump-temacs' is now a bad name.
9800         * .dbxrc (dump-temacs): Rename to `dmp'.
9801         * .gdbinit (dump-temacs): Rename to `dmp'.
9802
9803 2001-01-17  Andy Piper  <andy@xemacs.org>
9804
9805         * glyphs.c (print_image_instance): comment to make martin happy.
9806
9807         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9808         change.
9809
9810         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9811         activation.
9812         (mswindows_tab_control_redisplay): warning suppression.
9813
9814         * glyphs-widget.c (widget_update): re-write to cope with updated
9815         items.
9816         (widget_instantiate): use new gui_item functions.
9817         (tab_control_update): deleted.
9818         (progress_gauge_update): deleted.
9819         (image_instantiator_progress_guage): take out update reference.
9820         (image_instantiator_tree_view): ditto.
9821         (image_instantiator_tab_control): ditto.
9822
9823         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9824         Right the new way.
9825         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9826         return whether anything was changed.
9827         (update_gui_item_keywords): as it sounds.
9828
9829         * gui.h: declare widget_gui_parse_item_keywords.
9830
9831         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9832         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9833
9834 2001-01-17  Martin Buchholz <martin@xemacs.org>
9835
9836         * XEmacs 21.2.41 "Polyhymnia" is released.
9837
9838 2001-01-16  Didier Verna  <didier@xemacs.org>
9839
9840         * glyphs.c (image_instantiate): don't use fallbacks when
9841         instantiating a face's background pixmap by inheritance.
9842
9843 2001-01-14  Mike Sperber <mike@xemacs.org>
9844
9845         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9846         Conditionalize accordingly.
9847
9848 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9849
9850         * dumper.c (pdump_file_get): Fix a compiler warning.
9851
9852 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9853
9854         Make Purify happy when pdumping.
9855         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9856         iniitalizing all bits of new lisp object memory.
9857         * symbols.c (Fmake_local_variable): Likewise.
9858         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9859         * symbols.c (Fdefvaralias): Likewise.
9860         * mule-charset.c (vars_of_mule_charset): Likewise.
9861
9862 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9863         Add the `-nd' flag when running pre-dump operations under the debugger.
9864         * .dbxrc (run-temacs): Add `-nd'.
9865         * .dbxrc (update-elc): Likewise.
9866         * .dbxrc (dump-temacs): Likewise.
9867         * .gdbinit (run-temacs): Likewise.
9868         * .gdbinit (check-temacs): Likewise.
9869         * .gdbinit (update-elc): Likewise.
9870         * .gdbinit (dump-temacs): Likewise.
9871
9872 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9873
9874         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9875         export OBJECT_MODE=64
9876         configure --pdump --use-union-type=no
9877         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9878         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9879
9880         * miscplay.c (sndcnv8U_2mono):
9881         Avoid two uses of `++' in the same expression.
9882         Suppresses a GCC warning.
9883
9884 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9885
9886         Make sure future compilers don't miscompile alloc.c.
9887         * alloc.c:
9888         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9889         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9890
9891 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9892
9893         * dumper.c: A little post-pdump-rename comment fixup.
9894
9895 2001-01-09  Jerry James  <james@eecs.ku.edu>
9896
9897         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9898
9899 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9900
9901         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9902         script:
9903         #!/bin/sh
9904         replace_symbol () {
9905           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9906         }
9907
9908         replace_symbol pdump_wire_lists pdump_weak_object_chains
9909         replace_symbol pdump_wire_list dump_add_weak_object_chain
9910
9911         replace_symbol pdump_wires pdump_root_objects
9912         replace_symbol pdump_wire dump_add_root_object
9913
9914         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9915         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9916
9917         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9918         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9919         replace_symbol dumpstructinfo pdump_root_struct_ptr
9920         replace_symbol dumpstruct dump_add_root_struct_ptr
9921
9922         replace_symbol dumpopaque dump_add_opaque
9923         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9924         replace_symbol dumpopaqueinfos pdump_opaques
9925         replace_symbol dumpopaqueinfo pdump_opaque
9926
9927         replace_symbol nb_structdump nb_root_struct_ptrs
9928         replace_symbol nb_opaquedump nb_opaques
9929
9930         replace_symbol align_table pdump_align_table
9931         replace_symbol dump_header pdump_header
9932
9933         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9934         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9935
9936
9937 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9938
9939         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9940         optimizing bytecount_to_charcount().
9941
9942 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9943
9944         * config.h.in:
9945         (HAVE_DLFCN_H): Removed.
9946         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9947
9948 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9949
9950         Portable dumper maintainability improvements.
9951         * alloc.c (staticpro):
9952         * alloc.c (staticpro_nodump):
9953         * alloc.c (garbage_collect_1):
9954         * alloc.c (reinit_alloc_once_early):
9955         * alloc.c (init_alloc_once_early):
9956         * alloc.c: Move dumper functions to alloc.c.
9957         * dumper.c (pdump_backtrace):
9958         * dumper.c (pdump_dump_structs):
9959         * dumper.c (pdump_dump_opaques):
9960         * dumper.c (pdump_dump_rtables):
9961         * dumper.c (pdump_dump_wired):
9962         * dumper.c (pdump):
9963         * dumper.c (pdump_load_check):
9964         * dumper.c (pdump_load_finish):
9965         * dumper.c (pdump_file_unmap):
9966         * dumper.c (pdump_file_get):
9967         * dumper.c (pdump_resource_free):
9968         * dumper.c (pdump_resource_get):
9969         * dumper.c (pdump_file_free):
9970         * dumper.c (pdump_file_try):
9971         * dumper.c (pdump_load):
9972         Remove fixed size limits on staticpro(), staticpro_nodump(),
9973         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9974         Remove custom code for dumping lrecord_implementations_table - use
9975         dumpopaque instead.
9976         Remove (most of the) custom code for dumping staticpros - dump it
9977         like any other dynarr.
9978
9979         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9980         * dumper.c: Moved functions from alloc.c.
9981         * alloc.c (dumpstruct): Moved to dumper.c.
9982         * alloc.c (dumpopaque): Likewise.
9983         * alloc.c (pdump_wire): Likewise.
9984         * alloc.c (pdump_wire_list): Likewise.
9985
9986         * lisp.h (Dynarr_sizeof): New.
9987         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9988         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9989         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9990
9991         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9992         * lisp.h (dumpopaque): ditto.
9993         * lisp.h (pdump_wire): ditto.
9994         * lisp.h (pdump_wire_list): ditto.
9995
9996 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9997
9998         * make-src-depend (PrintPatternDeps):
9999         Use `sort' to make output independent of perl version.
10000
10001 2001-01-08  Martin Buchholz  <martin@xemacs.org>
10002
10003         Port to Netbsd 1.5.
10004         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
10005         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
10006
10007 2001-01-03  Didier Verna  <didier@xemacs.org>
10008
10009         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
10010         that `focus_frame' is alive before thinking of calling
10011         `redisplay_redraw_cursor' on it.
10012
10013 2001-01-08  Martin Buchholz <martin@xemacs.org>
10014
10015         * XEmacs 21.2.40 is released.
10016
10017 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
10018
10019         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
10020
10021 2001-01-06  Martin Buchholz  <martin@xemacs.org>
10022
10023         * alloc.c (dbg_valmask): Make const.
10024         * alloc.c (dbg_typemask): Make const.
10025         * alloc.c (dbg_USE_UNION_TYPE): Make const.
10026         * alloc.c (dbg_valbits): Make const.
10027         * alloc.c (dbg_gctypebits): Make const.
10028
10029 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
10030
10031         * redisplay-x.c (x_bevel_area):
10032         redisplay.h (struct rune):
10033         Typo fixes in comments.
10034
10035 2001-01-05  Andy Piper  <andy@xemacs.org>
10036
10037         * glyphs-x.c (x_redisplay_widget): use size changed for offset
10038         adjustment.
10039
10040         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
10041
10042 2001-01-05  Martin Buchholz  <martin@xemacs.org>
10043
10044         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
10045
10046         * mule-ccl.c (stack_idx_of_map_multiple):
10047         Non const global data must not be initialized!
10048         Found by MIYASHITA Hisashi.
10049
10050 2001-01-02  Andy Piper  <andy@xemacs.org>
10051
10052         * frame.c (change_frame_size): make sure frame size is always
10053         marked as changed.
10054
10055         * glyphs.c (image_instance_layout): minor code reuse.
10056
10057         * window.c (Fcurrent_window_configuration): revert previous
10058         change.
10059
10060 2001-01-02  Martin Buchholz  <martin@xemacs.org>
10061
10062         * glyphs.h:
10063         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
10064
10065 2000-12-31  Andy Piper  <andy@xemacs.org>
10066
10067         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
10068         when widget gets unmapped.
10069
10070         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
10071         function. Make sure widgets losing focus don't just drop it.
10072         (handle_focus_event_1): record the widget with focus.
10073
10074 2000-12-31  Andy Piper  <andy@xemacs.org>
10075
10076         * window.c (allocate_window): use
10077         make_image_instance_cache_hash_table.
10078         (make_dummy_parent): ditto.
10079         (Fset_window_configuration): ditto.
10080
10081         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
10082
10083         * glyphs.c (process_image_string_instantiator): use
10084         INSTANTIATOR_TYPE.
10085         (get_image_instantiator_governing_domain): ditto.
10086         (normalize_image_instantiator): ditto.
10087         (instantiate_image_instantiator): ditto.
10088         (make_image_instance_1): ditto.
10089         (image_instantiate): ditto. Key on glyph *and* instantiator type.
10090         (instantiator_eq_equal): new function for use with instance hash
10091         tables.
10092         (instantiator_eq_hash): ditto.
10093         (make_image_instance_cache_hash_table): create a suitable hash
10094         table for storing image instances.
10095
10096         * elhash.h (hash_table_weakness): new internal weakness type
10097         HASH_TABLE_KEY_CAR_VALUE_WEAK.
10098         declare new functions.
10099
10100         * elhash.c (finish_marking_weak_hash_tables): introduce yet
10101         another weakness type for glyphs.
10102         (make_standard_lisp_hash_table): new function split out from
10103         make_general_lisp_hash_table.
10104         (make_lisp_hash_table): call make_standard_lisp_hash_table.
10105         (hash_table_instantiate): ditto.
10106         (Fmake_hash_table): ditto.
10107
10108 2000-12-31  Martin Buchholz <martin@xemacs.org>
10109
10110         * XEmacs 21.2.39 is released.
10111
10112 2000-12-29  Andy Piper  <andy@xemacs.org>
10113
10114         * menubar.c (menubar_visible_p_changed): signal the frame changed.
10115
10116         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
10117         the frame has changed so that we pick up geometry changes such as
10118         menubar visibility.
10119
10120 2000-12-28  Andy Piper  <andy@xemacs.org>
10121
10122         * lastfile.c (my_ebss): make a char array so we can pad the
10123         bss. Fixes cygwin unexec.
10124
10125         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
10126
10127 2000-12-26  Andy Piper  <andy@xemacs.org>
10128
10129         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
10130         comments and try and be more precise about a non-/SIGIO world.
10131         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
10132         SIGIO.
10133
10134         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
10135         we don't normalize to zero width or height.
10136
10137 2000-12-24  Andy Piper  <andy@xemacs.org>
10138
10139         * Makefile.in.in (ldflags): add -mwindows when appropriate.
10140
10141 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
10142
10143         * s/sco5.h: SCO 5 has pty support.
10144
10145 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
10146
10147         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
10148         input-method-xlib.c contains whole contents of input-method-xfs.c,
10149         so we can use input-method-xlib.c's code for USE_XFONTSET
10150         using #ifdefs.
10151         * input-method-xfs.c: removed.
10152
10153 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
10154
10155         * file-coding.h (enum coding_category_type): reorder enumerators to
10156         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
10157         (now one greater than largest real coding_category_type enumerator).
10158         * file-coding.c (coding_category_symbol, coding_category_by_priority,
10159         coding_category_system, fcd_descriptihon_1, decode_coding_category,
10160         Fcoding_category_list, Fset_coding_priority_list,
10161         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
10162         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
10163
10164 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10165
10166         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
10167         * redisplay-output.c (redisplay_output_window): Clear top of window
10168         when face is changed.
10169         * redisplay-x.c (x_redraw_exposed_window): Call
10170         redisplay_clear_top_of_window.
10171         * redisplay.h: Publish redisplay_clear_top_of_window.
10172
10173 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10174
10175         * buffer.c (Fkill_buffer): Map over all devices.
10176         * window.c (window_loop): Remove UNSHOW_BUFFER code.
10177         (list_windows): New function.
10178         (list_all_windows): Ditto.
10179         (Freplace_buffer_in_windows): Use them.
10180
10181 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
10182
10183         * database.c (berkdb_subtype): Recognize new subtype `queue'.
10184         (Fopen_database): Use `db_create' instead of `db_open'.
10185         (syms_of_database): Initialize Qqueue.
10186
10187 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10188
10189         * buffer.c (common_init_complex_vars_of_buffer): Initialize
10190         buffer_local_face_property.
10191         * buffer.h (struct buffer): New member buffer_local_face_property.
10192         * window.c (Fset_window_buffer):  Mark window's face as changed
10193         when buffer has buffer local face.
10194         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
10195         * objects.c (color_after_change): Set buffer_local_face_property
10196         when locale of face specifier is buffer.
10197         * objects.c (font_after_change): Ditto.
10198         * objects.c (face_boolean_after_change): Ditto.
10199         * glyphs.c (image_after_change): Ditto.
10200
10201 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10202
10203         * nt.c (mswindows_fstat): Report file permissions, volume serial
10204         number, etc. Code adapted from FSF Emacs 20.7.
10205
10206 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10207
10208         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
10209         of stat when we don't have symbolic links, to make sure
10210         mswindows_stat is called on mswindows.
10211
10212 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
10213
10214         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
10215
10216 2000-12-12  Martin Buchholz  <martin@xemacs.org>
10217
10218         * doprnt.c (emacs_doprnt_1): More printing fixes.
10219         Make printing of numbers compatible with libc and FSF Emacs.
10220         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
10221         Use the system printf to do most of the hard work of formatting,
10222         instead of doprnt_1().
10223         Calculate memory to allocate for format string.
10224         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
10225         (doprnt_1): Cleaner code and documentation.
10226
10227 2000-12-01  Jerry James  <james@eecs.ukans.edu>
10228
10229         * Makefile.in.in: Use the loop variable to install headers.
10230
10231 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10232
10233         * window.c (Fsplit_window): Don't invalidate face cache.
10234
10235 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10236
10237         * minibuf.c (Fall_completions): Undo the previous change
10238         which removed checking elements start with space.
10239
10240 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10241
10242         * mule-canna.c: Didier suppression.
10243
10244 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10245
10246         * mule-canna.c: rename static unsigned char buf[] to key_buffer
10247         (warning suppression).  Add English comment translations.
10248
10249 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10250
10251         * unexelfsgi.c (unexec): Better test for mmap failure.
10252
10253 2000-12-05  Martin Buchholz <martin@xemacs.org>
10254
10255         * XEmacs 21.2.38 is released.
10256
10257 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10258
10259         * redisplay.c (bar-cursor): Make a user variable.
10260
10261         * symsinit.h: Add init_postgresql_from_environment.
10262
10263 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10264
10265         * regex.c: Convert to clean C.
10266
10267 2000-12-05  Dan Holmsand  <dan@eyebee.com>
10268
10269         * realpath.c:
10270         Don't #include sysfile.h. Revert to duplicating PATH_MAX
10271         initialization.
10272         (sys_readlink): renamed to system_readlink to avoid conflict with
10273         the other sys_readlink.
10274
10275 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
10276
10277         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
10278
10279 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
10280
10281         * postgresql.c (init_postgresql_from_environment): new function.
10282         (vars_of_postgresql): Move code initializing Lisp variables out and
10283         into init_postgresql_from_environment.
10284         emacs.c (main_1): Call init_postgresql_from_environment if and only
10285         if running a dumped XEmacs.
10286
10287 2000-08-31  Dan Holmsand  <dan@eyebee.com>
10288
10289         * buffer.c: Make find-file-compare-truenames default to true on
10290         windows.
10291
10292         * realpath.c (win32_abs_start):
10293         (cygwin_readlink):
10294         (win32_readlink): New functions.
10295         (xrealpath): Return really real filenames on windows.
10296
10297         * fileio.c (Ffile_truename): Make file-truename work on windows.
10298
10299 2000-11-29  Didier Verna  <didier@xemacs.org>
10300
10301         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
10302         * faces.c (update_face_cachel_data): use it.
10303         * faces.c (add_face_cachel): use it. Complete background pixmap
10304         frobbing in face cache if `update_face_cachel_data' has not done so.
10305
10306 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
10307
10308         * search.c (string_match_1): Don't set last_thing_searched
10309         when search failed.
10310
10311 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
10312
10313         * buffer.c: Include casetab.h
10314         (common_init_complex_vars_of_buffer): Use new case-table object.
10315         * buffer.h: Include casetab.h
10316         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
10317         (DOWNCASE_TABLE_OF): Ditto.
10318         * bufslots.h: Remove char-tables and add case-table.
10319         * casetab.c: Include casetab.h
10320         (CASE_TABLE_P): Removed.
10321         (mark_case_table): New function.
10322         (allocate_case_table): New function.
10323         (Fcase_table_p): Use new case-table.
10324         (case_table_char): New function.
10325         (Fget_case_table): Ditto.
10326         (Fput_case_table): Ditto.
10327         (Fput_case_table_pair): Ditto.
10328         (Fcopy_case_table): Ditto.
10329         (Fcurrent_case_table): Return case-table.
10330         (Fstandard_case_table): Return case-table.
10331         (Fset_case_table): Fix doc-string.
10332         (set_case_table): Use case-table
10333         (syms_of_casetab): DEFSUBR new functions.
10334         (complex_vars_of_casetab): Set up standard case-table.
10335         * casetab.h: New file.
10336         * editfns.c: Include casetab.h
10337         (Fcompare_buffer_substrings): Use case-table.
10338         * inline.c: Include casetab.h
10339         * lisp.h: Remove bogus extern.
10340         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
10341         * search.c: Include casetab.h
10342         (TRANSLATE_ASCII): Removed.
10343         (TRANSLATE): Unconditionally translate character.
10344         (looking_at_1): Use case-table.
10345         (string_match_1): Ditto.
10346         (fast_string_match): Ditto.
10347         (search_command): Ditto.
10348         (search_buffer): Separate boyer_moore.  Check whether
10349         boyer_moore is possible.
10350         (simple_search): New function.
10351         (boyer_moore): Separated from search_buffer. Translate char.
10352
10353 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10354
10355         * regex.c (RE_TR_ASCII): Removed.
10356         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
10357         (PATFETCH): Call PATFETCH_RAW.
10358         (PATFETCH_RAW): Fetch Emchar.
10359         (PATUNFETCH): Decrement charptr.
10360         (GET_BUFFER_SPACE): Rename b to buf_end.
10361         (BUF_PUSH): Ditto.
10362         (BUF_PUSH_2): Ditto.
10363         (BUF_PUSH_3): Ditto.
10364         (EXTEND_BUFFER): Ditto.
10365         (SET_LIST_BIT): Ditto.
10366         (regex_compile): Ditto.  Translate non ASCII char.
10367         (compile_range): Ditto.
10368         (re_search_2): Ditto.
10369         (re_match_2_internal): Compare Emchar.
10370         (bcmp_translate): Ditto.
10371
10372 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
10373
10374         * lisp.h (basic char/int typedefs):  comment improvement.
10375
10376 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
10377
10378         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
10379         unstomp inhibit_site_lisp.  Improve comments.
10380
10381 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
10382
10383         * mule-charset.c (Fcharset_property):  improve type checking, comments.
10384
10385 2000-11-28  Andy Piper  <andy@xemacs.org>
10386
10387         * redisplay-output.c (redisplay_output_subwindow): make sure we do
10388         clipped display for windows in the gutter also.
10389         (redisplay_display_boxes_in_window_p): change semantics of return
10390         codes to be more intuitive.
10391
10392         * gutter.h: declare display_boxes_in_gutter_p.
10393
10394         * gutter.c (display_boxes_in_gutter_p): new function for
10395         redisplay.
10396
10397 2000-11-22  Andy Piper  <andy@xemacs.org>
10398
10399         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10400         autodetect domain.
10401
10402 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10403
10404         * callproc.c (Fold_call_process_internal):
10405         * gpm.c (Freceive_gpm_event):
10406         (tty_get_foreign_selection): Might be just warning supression.
10407         * fileio.c (Fwrite_region_internal):
10408         (Fset_visited_file_modtime):
10409         * keymap.c (event_matches_key_specifier_p):
10410         Initialize GCPROed variable.
10411
10412         * menubar-x.c (command_builder_find_menu_accelerator):
10413         Initialize before use.
10414
10415 2000-11-23  Andy Piper  <andy@xemacs.org>
10416
10417         * unexcw.c (unexec): make the resulting executable executable.
10418
10419 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10420
10421         * doc.c (get_doc_string):
10422         Use size_t, not int, for result of XSTRING_LENGTH.
10423
10424         * cmds.c (Fdelete_char):
10425         * cmds.c (Fpoint_at_eol):
10426         * cmds.c (Fself_insert_command):
10427         Use EMACS_INT, not int, for result of XINT.
10428         Someday, someone will want to insert more than 2**31 identical characters.
10429
10430         * cmds.c (Fdelete_char):
10431         * cmds.c (Fdelete_backward_char):
10432         * syntax.c (Fforward_word):
10433         * syntax.c (Fforward_comment):
10434         Make COUNT argument optional, for consistency with forward-char et al.
10435
10436 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10437
10438         * lisp.h:
10439         * print.c (long_to_string):
10440         Return a useful value: the pointer at end of data written.
10441
10442         * doprnt.c:
10443         Use `static const char * const' for constant strings.
10444         (union printf_arg): Delete `i', `ui' members.
10445         (get_doprnt_args):
10446         (emacs_doprnt_1):
10447         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10448         Do all printf-ing via the `l' specifier.
10449         Use EMACS_INT instead of int.
10450         Optimize.
10451
10452 2000-11-20  Didier Verna  <didier@xemacs.org>
10453
10454         * faces.c (update_face_cachel_data): don't frob the background
10455         pixmap when the window is being created. The face is needed but
10456         does not exist yet.
10457
10458 2000-11-20  Andy Piper  <andy@xemacs.org>
10459
10460         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10461         messing with a debug environment.
10462
10463 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10464
10465         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10466
10467 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10468
10469         * casetab.c (Fcase_table_p): Fix compile error and crash.
10470
10471 2000-11-18  Philip Aston  <philipa@mail.com>
10472
10473         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10474
10475 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10476
10477         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10478         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10479
10480 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10481
10482         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10483         * unexelf.c: Use HAVE_ELF_H.
10484         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10485         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10486         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10487         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10488         for testing.
10489         So this is an unexelfsgi.c from a different line of development.
10490
10491 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10492
10493         * regex.c (RE_TR_ASCII): New function.
10494         (RE_TRANSLATE): Call it.
10495
10496 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10497
10498         * buffer.h (TRT_TABLE_OF): Remove assert.
10499         (IN_TRT_TABLE_DOMAIN): Removed.
10500
10501 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10502
10503         * free-hook.c (log_gcpro):
10504         (show_gcprohist): Add support for GCPRO5.
10505
10506 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10507
10508         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10509
10510 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10511
10512         * symeval.h: Declare flush_all_buffer_local_cache.
10513
10514         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10515         (flush_buffer_local_cache): Added.
10516         (flush_all_buffer_local_cache): Added.
10517
10518         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10519
10520         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10521         (pdump_dump_data): Ditto.
10522         (pdump_reloc_one): Ditto.
10523         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10524         before dumping.
10525
10526
10527 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10528
10529         * buffer.c: Remove if 0'ed entry.
10530         * buffer.h: Rewrite TRT to use char-table.
10531         * bufslots.h: Remove mirror tables.
10532         * casetab.c: Remove mirror tables.
10533         (CASE_TABLE_P): New macro.
10534         (Fcase_table_p): Element of a case table is string or char-table.
10535         (make_mirror_trt_table): Removed.
10536         (set_case_table): Setup char-table from strings for backward
10537         compatibility.
10538         * dired.c (Fdirectory_files):
10539         * dired-msw.c: (mswindows_get_files):
10540         * lisp.h: Change prototype of re_pattern_buffer.
10541         * regex.c: (RE_TRANSLATE): New macro.
10542         (TRANSLATE_P): Ditto.
10543         Change translate to type RE_TRANSLATE_TYPE.
10544         * regex.h: Define RE_TRANSLATE_TYPE
10545         * search.c (TRANSLATE): New macro.
10546         (TRANSLATE_ASCII): New macro.
10547         Translate table is changed to Lisp_Object.
10548         (signal_failure): Inhibit return.
10549
10550 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10551
10552         * device-msw.c:
10553         * eldap.c:
10554         * event-Xt.c:
10555         * event-stream.c:
10556         * print.c:
10557         Do UNGCPRO before return.
10558
10559 2000-11-14  Martin Buchholz <martin@xemacs.org>
10560
10561         * XEmacs 21.2.37 is released.
10562
10563 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10564
10565         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10566         Add comments about discarded return value.
10567
10568 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10569
10570         * callint.c:
10571         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10572
10573 2000-10-27  Andy Piper  <andy@xemacs.org>
10574
10575         * gutter.c (Fset_default_gutter_position): default left and right
10576         gutters to visible.
10577         (calculate_gutter_size): calculate resonable heuristic for left
10578         and right gutter sizes.
10579         (specifier_vars_of_gutter): change left and right gutter sizes to
10580         autodetect.
10581         (calculate_gutter_size_from_display_lines): new function.
10582         (output_gutter): check for resizing on left and right gutters.
10583         (clear_gutter): don't special case top and left gutters.
10584         (specifier_vars_of_gutter): use new signature for
10585         set_specifier_caching.
10586
10587         * glyphs-x.c (x_redisplay_widget): spelling fix.
10588         * glyphs.c (specifier_vars_of_glyphs):
10589         * menubar.c (specifier_vars_of_menubar):
10590         * redisplay.c (specifier_vars_of_redisplay):
10591         * toolbar.c (specifier_vars_of_toolbar):
10592         * window.c (specifier_vars_of_window):
10593         * scrollbar.c (specifier_vars_of_scrollbar):
10594         (complex_vars_of_scrollbar): use new signature for
10595         set_specifier_caching.
10596
10597         * specifier.c (set_specifier_caching): include recompute flag.
10598         (recompute_one_cached_specifier_in_window): always recompute if
10599         flag set.
10600         (recompute_one_cached_specifier_in_frame): ditto.
10601
10602         * specifier.h (struct specifier_caching): add recompute flag.
10603
10604 2000-10-24  Andy Piper  <andy@xemacs.org>
10605
10606         * unexcw.c (copy_executable_and_dump_data_section): add new
10607         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10608         5.0 happy.
10609
10610 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10611
10612         * console-x.h (x_device): New member modifier_release_time.
10613         * event-Xt.c (x_handle_sticky_modifiers):
10614         Bound interval modifier keys are sticky.
10615         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10616         * events.h: extern it.
10617
10618 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10619
10620         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10621
10622 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10623
10624         * event-stream.c (execute_command_event): Preserve current_events
10625         and the like when event is misc-user-event.
10626         Inhibit quit during the call to maybe_echo_keys.
10627
10628 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10629
10630         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10631         symlink when buffer is killed.
10632         (inhibit_clash_detection): New variable.
10633
10634 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10635
10636         * console.c (Fset_input_method): Trigger redisplay on tty.
10637
10638 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10639
10640         * process.c (Fprocess_status): Revert to previous behavior:
10641         (process-status "nosuchprocess") ==> nil
10642
10643 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10644
10645         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10646         Work around another GCC 2.95.2 optimizer bug.
10647
10648 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10649
10650         * process.c (Fget_process): Use LIST_LOOP_2.
10651         (kill_buffer_processes): Use LIST_LOOP_2.
10652
10653         * minibuf.c (Fall_completions):
10654         Delete old non-functional code for FSF fourth argument.
10655
10656         * frame.c (frame_matches_frame_spec):
10657         Renamed from `frame_matches_frametype'.  Update all callers.
10658         (device_matches_device_spec):
10659         Renamed from 'device_matches_console_spec'.  Update all callers.
10660
10661         * doc.c (Fsubstitute_command_keys):
10662         Remove buffer overflow crash.  Small code cleanups.
10663
10664         * casetab.c (check_case_table): Simpler code.
10665
10666         * window.c (Freplace_buffer_in_windows):
10667         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10668         (and similar implementation) as Fdelete_windows_on.
10669         Update all callers.
10670
10671         * alloc.c (Fmake_list):
10672         * alloc.c (make_vector):
10673         * alloc.c (Fmake_vector):
10674         * alloc.c (make_bit_vector):
10675         * alloc.c (Fmake_bit_vector):
10676         * alloc.c (Fbit_vector):
10677         * alloc.c (Fmake_string):
10678         * alloc.c (Fpurecopy):
10679         * alloc.c (Fmemory_limit):
10680         * buffer.c:
10681         * buffer.c (Fget_buffer):
10682         * buffer.c (Fkill_buffer):
10683         * buffer.c (complex_vars_of_buffer):
10684         * bytecode.c (Fcompiled_function_stack_depth):
10685         * callint.c (Fprefix_numeric_value):
10686         * event-stream.c:
10687         * event-stream.c (Fread_key_sequence):
10688         * casetab.c:
10689         * casetab.c (Fcase_table_p):
10690         * casetab.c (check_case_table):
10691         * casetab.c (Fset_case_table):
10692         * casetab.c (Fset_standard_case_table):
10693         * chartab.c:
10694         * chartab.c (Fchar_table_type):
10695         * chartab.c (Freset_char_table):
10696         * chartab.c (Fget_char_table):
10697         * chartab.c (Fget_range_char_table):
10698         * chartab.c (Fput_char_table):
10699         * chartab.c (Fmap_char_table):
10700         * chartab.c (Fcategory_table_p):
10701         * chartab.c (Fcheck_category_at):
10702         * chartab.c (Fchar_in_category_p):
10703         * chartab.c (Fcategory_table):
10704         * chartab.c (Fcopy_category_table):
10705         * chartab.c (Fset_category_table):
10706         * chartab.c (Fcategory_designator_p):
10707         * chartab.c (Fcategory_table_value_p):
10708         * cmds.c (Fdelete_char):
10709         * cmds.c (Fdelete_backward_char):
10710         * cmds.c (Fself_insert_command):
10711         * cmds.c (Fself_insert_internal):
10712         * console.c (Fvalid_console_type_p):
10713         * console.c (Fcdfw_console):
10714         * console.c (Fconsole_type):
10715         * console.c (Fconsole_name):
10716         * console.c (Fconsole_device_list):
10717         * console.c (Fconsole_on_window_system_p):
10718         * data.c:
10719         * data.c (Feq):
10720         * data.c (Fold_eq):
10721         * data.c (Fsubr_interactive):
10722         * data.c (Fchar_to_int):
10723         * data.c (Fint_to_char):
10724         * data.c (Fsetcar):
10725         * data.c (Fsetcdr):
10726         * data.c (Fnumber_to_string):
10727         * data.c (Fstring_to_number):
10728         * data.c (Frem):
10729         * database.c (mark_database):
10730         * database.c (finalize_database):
10731         * database.c (Fdatabase_live_p):
10732         * database.c (Fdatabasep):
10733         * device-x.c (Fx_get_resource):
10734         * device.c (Fdfw_device):
10735         * dired.c:
10736         * dired.c (Ffile_name_completion):
10737         * dired.c (Ffile_name_all_completions):
10738         * dired.c (Fuser_name_completion):
10739         * dired.c (Fuser_name_completion_1):
10740         * dired.c (Fuser_name_all_completions):
10741         * doc.c (Fdocumentation):
10742         * doc.c (Fdocumentation_property):
10743         * doc.c (Fsubstitute_command_keys):
10744         * editfns.c:
10745         * editfns.c (Fchar_to_string):
10746         * editfns.c (Fstring_to_char):
10747         * editfns.c (Ftemp_directory):
10748         * editfns.c (Finsert_char):
10749         * editfns.c (Fbuffer_substring_no_properties):
10750         * editfns.c (Fnarrow_to_region):
10751         * editfns.c (Fchar_equal):
10752         * editfns.c (Fchar_Equal):
10753         * editfns.c (Ftranspose_regions):
10754         * emacs.c (Fdump_emacs):
10755         * eval.c (Fthrow):
10756         * eval.c (Fcommand_execute):
10757         * eval.c (Fautoload):
10758         * eval.c (Fbacktrace):
10759         * eval.c (Fbacktrace_frame):
10760         * events.c:
10761         * events.c (Fcopy_event):
10762         * events.c (Fcharacter_to_event):
10763         * events.c (Fevent_button):
10764         * events.c (Fevent_process):
10765         * extents.c:
10766         * extents.c (Fnext_extent_change):
10767         * extents.c (Fextent_property):
10768         * faces.c (Ffacep):
10769         * faces.c (Fmake_face):
10770         * file-coding.c:
10771         * file-coding.c (Fencode_shift_jis_char):
10772         * file-coding.c (Fencode_big5_char):
10773         * fileio.c (Ffile_name_directory):
10774         * fileio.c (Ffile_name_nondirectory):
10775         * fileio.c (Ffile_name_as_directory):
10776         * fileio.c (Fdirectory_file_name):
10777         * fileio.c (Ffile_truename):
10778         * fileio.c (Fsubstitute_in_file_name):
10779         * fileio.c (Ffile_modes):
10780         * fileio.c (Fset_file_modes):
10781         * fileio.c (Fset_default_file_modes):
10782         * fileio.c (Fverify_visited_file_modtime):
10783         * floatfns.c (Facos):
10784         * floatfns.c (Fasin):
10785         * floatfns.c (Fatan):
10786         * floatfns.c (Fcos):
10787         * floatfns.c (Fsin):
10788         * floatfns.c (Ftan):
10789         * floatfns.c (Fbessel_j0):
10790         * floatfns.c (Fbessel_j1):
10791         * floatfns.c (Fbessel_jn):
10792         * floatfns.c (Fbessel_y0):
10793         * floatfns.c (Fbessel_y1):
10794         * floatfns.c (Fbessel_yn):
10795         * floatfns.c (Ferf):
10796         * floatfns.c (Ferfc):
10797         * floatfns.c (Flog_gamma):
10798         * floatfns.c (Fexp):
10799         * floatfns.c (Fexpt):
10800         * floatfns.c (Flog):
10801         * floatfns.c (Flog10):
10802         * floatfns.c (Fsqrt):
10803         * floatfns.c (Fcube_root):
10804         * floatfns.c (Facosh):
10805         * floatfns.c (Fasinh):
10806         * floatfns.c (Fatanh):
10807         * floatfns.c (Fcosh):
10808         * floatfns.c (Fsinh):
10809         * floatfns.c (Ftanh):
10810         * floatfns.c (Fabs):
10811         * floatfns.c (Ffloat):
10812         * floatfns.c (Flogb):
10813         * floatfns.c (Fceiling):
10814         * floatfns.c (Ffloor):
10815         * floatfns.c (Fround):
10816         * floatfns.c (Ftruncate):
10817         * floatfns.c (Ffceiling):
10818         * floatfns.c (Fffloor):
10819         * floatfns.c (Ffround):
10820         * floatfns.c (Fftruncate):
10821         * fns.c (Fstring_equal):
10822         * fns.c (Fstring_lessp):
10823         * fns.c (concat2):
10824         * fns.c (concat3):
10825         * fns.c (vconcat2):
10826         * fns.c (vconcat3):
10827         * fns.c (Fsubstring):
10828         * fns.c (Fassoc):
10829         * fns.c (Fold_assoc):
10830         * fns.c (assoc_no_quit):
10831         * fns.c (Fassq):
10832         * fns.c (Fold_assq):
10833         * fns.c (assq_no_quit):
10834         * fns.c (Frassoc):
10835         * fns.c (Fold_rassoc):
10836         * fns.c (Frassq):
10837         * fns.c (Fold_rassq):
10838         * fns.c (rassq_no_quit):
10839         * fns.c (Fremassoc):
10840         * fns.c (remassoc_no_quit):
10841         * fns.c (Fremassq):
10842         * fns.c (remassq_no_quit):
10843         * fns.c (Fremrassoc):
10844         * fns.c (Fremrassq):
10845         * fns.c (remrassq_no_quit):
10846         * fns.c (Fsort):
10847         * fns.c (Fplist_get):
10848         * fns.c (Fplist_put):
10849         * fns.c (Fplist_remprop):
10850         * fns.c (Fplist_member):
10851         * fns.c (Flax_plist_get):
10852         * fns.c (Flax_plist_put):
10853         * fns.c (Flax_plist_remprop):
10854         * fns.c (Flax_plist_member):
10855         * fns.c (Fequal):
10856         * fns.c (Fold_equal):
10857         * fns.c (Frequire):
10858         * fns.c (Fbase64_encode_region):
10859         * fns.c (Fbase64_encode_string):
10860         * fns.c (Fbase64_decode_region):
10861         * frame.c:
10862         * frame.c (frame_matches_frame_spec):
10863         * frame.c (device_matches_device_spec):
10864         * frame.c (next_frame):
10865         * frame.c (previous_frame):
10866         * frame.c (Fnext_frame):
10867         * frame.c (Fprevious_frame):
10868         * frame.c (Fframe_property):
10869         * frame.c (Fset_frame_height):
10870         * frame.c (Fset_frame_size):
10871         * frame.h:
10872         * glyphs.c:
10873         * glyphs.c (if):
10874         * glyphs.c (decode_error_behavior_flag):
10875         * glyphs.c (Fmake_image_instance):
10876         * indent.c (Findent_to):
10877         * intl.c (Fignore_defer_gettext):
10878         * keymap.c (Fkeymapp):
10879         * keymap.c (Flookup_key):
10880         * lread.c:
10881         * lread.c (Fload_internal):
10882         * lread.c (Feval_buffer):
10883         * lread.c (Feval_region):
10884         * macros.c (Fexecute_kbd_macro):
10885         * marker.c (set_marker_internal):
10886         * marker.c (Fset_marker):
10887         * marker.c (set_marker_restricted):
10888         * marker.c (Fcopy_marker):
10889         * marker.c (noseeum_copy_marker):
10890         * menubar.c:
10891         * menubar.c (Fpopup_menu):
10892         * minibuf.c:
10893         * mule-charset.c (Fcharset_name):
10894         * mule-charset.c (Fchar_charset):
10895         * mule-charset.c (Fchar_octet):
10896         * mule-charset.c (Fsplit_char):
10897         * mule-wnnfns.c (Fwnn_open):
10898         * mule-wnnfns.c (Fwnn_dict_comment):
10899         * mule-wnnfns.c (Fwnn_quit_henkan):
10900         * mule-wnnfns.c (Fwnn_word_toroku):
10901         * mule-wnnfns.c (Fwnn_word_sakujo):
10902         * mule-wnnfns.c (Fwnn_word_use):
10903         * mule-wnnfns.c (Fwnn_hindo_set):
10904         * objects.c:
10905         * objects.c (Fmake_color_instance):
10906         * objects.c (Fmake_font_instance):
10907         * print.c (Fwrite_char):
10908         * process.c:
10909         * process.c (mark_process):
10910         * process.c (print_process):
10911         * process.c (get_process_from_usid):
10912         * process.c (Fprocessp):
10913         * process.c (Fprocess_live_p):
10914         * process.c (Fget_process):
10915         * process.c (Fget_buffer_process):
10916         * process.c (get_process):
10917         * process.c (Fprocess_id):
10918         * process.c (Fprocess_name):
10919         * process.c (Fprocess_command):
10920         * process.c (init_process_io_handles):
10921         * process.c (start_process_unwind):
10922         * process.c (Fstart_process_internal):
10923         * process.c (Fopen_multicast_group_internal):
10924         * process.c (Fset_process_window_size):
10925         * process.c (read_process_output):
10926         * process.c (send_process):
10927         * process.c (Fprocess_tty_name):
10928         * process.c (Fset_process_buffer):
10929         * process.c (Fprocess_buffer):
10930         * process.c (Fprocess_mark):
10931         * process.c (set_process_filter):
10932         * process.c (Fset_process_filter):
10933         * process.c (Fprocess_filter):
10934         * process.c (Fprocess_send_region):
10935         * process.c (Fprocess_send_string):
10936         * process.c (exec_sentinel):
10937         * process.c (Fset_process_sentinel):
10938         * process.c (Fprocess_sentinel):
10939         * process.c (status_notify):
10940         * process.c (Fprocess_status):
10941         * process.c (Fprocess_exit_status):
10942         * process.c (process_send_signal):
10943         * process.c (Fprocess_send_eof):
10944         * process.c (deactivate_process):
10945         * process.c (remove_process):
10946         * process.c (Fdelete_process):
10947         * process.c (kill_buffer_processes):
10948         * process.c (Fprocess_kill_without_query):
10949         * process.c (Fprocess_kill_without_query_p):
10950         * rangetab.c:
10951         * rangetab.c (Fget_range_table):
10952         * rangetab.c (Fput_range_table):
10953         * rangetab.c (Fremove_range_table):
10954         * rangetab.c (Fclear_range_table):
10955         * search.c:
10956         * search.c (Fskip_chars_forward):
10957         * search.c (Fskip_chars_backward):
10958         * search.c (Fskip_syntax_forward):
10959         * search.c (Fskip_syntax_backward):
10960         * search.c (search_command):
10961         * search.c (Freplace_match):
10962         * search.c (Fregexp_quote):
10963         * select.c (Fown_selection_internal):
10964         * select.c (Fselection_owner_p):
10965         * select.c (Fselection_exists_p):
10966         * select.c (Fget_selection_internal):
10967         * specifier.c:
10968         * symbols.c:
10969         * symbols.c (Fintern):
10970         * symbols.c (Fintern_soft):
10971         * symbols.c (Funintern):
10972         * symbols.c (Fapropos_internal):
10973         * symbols.c (Fset_default):
10974         * syntax.c:
10975         * syntax.c (Fsyntax_table_p):
10976         * syntax.c (Fcopy_syntax_table):
10977         * syntax.c (Fset_syntax_table):
10978         * syntax.c (Fchar_syntax):
10979         * syntax.c (syntax_match):
10980         * syntax.c (Fmatching_paren):
10981         * syntax.c (Fforward_word):
10982         * syntax.c (scan_lists):
10983         * syntax.c (Fscan_lists):
10984         * syntax.c (Fscan_sexps):
10985         * syntax.c (Fparse_partial_sexp):
10986         * toolbar.c (Fcheck_toolbar_button_syntax):
10987         * tooltalk.doc:
10988         * window.c:
10989         * window.c (Fwindowp):
10990         * window.c (Fwindow_live_p):
10991         * window.c (Fwindow_point):
10992         * window.c (Fdelete_window):
10993         * window.c (Fnext_window):
10994         * window.c (Fprevious_window):
10995         * window.c (Fother_window):
10996         * window.c (window_loop):
10997         * window.c (Fget_lru_window):
10998         * window.c (Fsplit_window):
10999         * window.c (Fenlarge_window):
11000         * window.c (Fenlarge_window_pixels):
11001         * window.c (Fshrink_window):
11002         * window.c (Fshrink_window_pixels):
11003         * window.c (change_window_height):
11004         * window.c (Fwindow_configuration_p):
11005         * window.c (Fcurrent_window_configuration):
11006         * window.h:
11007         * casefiddle.c (casify_object):
11008         * casefiddle.c (Fupcase):
11009         * casefiddle.c (Fdowncase):
11010         * casefiddle.c (Fcapitalize):
11011         * casefiddle.c (Fupcase_initials):
11012         * casefiddle.c (casify_region_internal):
11013         * casefiddle.c (casify_region):
11014         * casefiddle.c (Fupcase_region):
11015         * casefiddle.c (Fdowncase_region):
11016         * casefiddle.c (Fcapitalize_region):
11017         * casefiddle.c (Fupcase_initials_region):
11018         * casefiddle.c (Fupcase_word):
11019         * casefiddle.c (Fdowncase_word):
11020         * casefiddle.c (Fcapitalize_word):
11021         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
11022         Replace 0 with '\0' when working with bytes.
11023         Replace initial "(" with "\(" in docstrings.
11024
11025 2000-11-01  Martin Buchholz  <martin@xemacs.org>
11026
11027         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
11028
11029         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
11030
11031 2000-10-31  Martin Buchholz  <martin@xemacs.org>
11032
11033         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
11034
11035 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
11036
11037         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
11038         correctly.
11039
11040 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
11041
11042         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
11043         (inhibit_auto_save_session): New variable.
11044         (vars_of_fileio): Declare and initialize them.
11045         * fileio.c (Fdo_auto_save): Don't create session file if
11046         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
11047
11048 2000-10-31  Martin Buchholz  <martin@xemacs.org>
11049
11050         * sgiplay.c (play_internal): C++ compilability.
11051         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
11052         * callproc.c (Fold_call_process_internal):
11053         Remove unused vars `env', `first'.
11054         * scrollbar.c (update_scrollbar_instance):
11055         #### unused var `current_window'.
11056         * redisplay-tty.c: Put currently unused vars insert_mode_on,
11057         etc. within #ifdef NOT_YET.
11058         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
11059         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
11060         * specifier.c (specifier_instance):
11061         #### unused var `tag'.
11062         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
11063
11064 2000-10-27  Martin Buchholz  <martin@xemacs.org>
11065
11066         * fns.c (Fbutlast):
11067         * fns.c (list_sort):
11068         * fns.c (Ffillarray):
11069         * fns.c (bytecode_nconc2):
11070         * fns.c (Fnconc):
11071         * fns.c (mapcar1):
11072         * fns.c (Fmapconcat):
11073         Be pedantically 64-bit correct.  For the time when someone will
11074         want to have a list with length > 2**32.
11075
11076         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11077         Work around MIPSpro compiler bug.
11078
11079         * process-unix.c (unix_kill_child_process): Add snarky comment.
11080         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
11081
11082         * config.h.in: Oops, _getpt ==> _getpty
11083
11084 2000-10-26  Martin Buchholz  <martin@xemacs.org>
11085
11086         * config.h.in:
11087         * regex.c:
11088         Use void*, not char*, as return type of alloca().
11089
11090         * alloc.c (free_marker): Side effect inside assert expression!
11091
11092 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
11093
11094         * mule-charset.c (Fset_charset_ccl_program): To check
11095         if the given ccl program is valid, use setup_ccl_program()
11096         instead of CHECK_VECTOR().
11097         (Fmake_charset): Likewise.
11098
11099 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
11100
11101         * faces.c (get_extent_fragment_face_cache_index):
11102         Fix cachel.merged_faces memory leak.
11103
11104 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
11105
11106         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
11107         Reset MSB of octets obtained by DECODE_SJIS
11108         because of the incompatibility with Emacs.
11109         (ccl_driver)<CCL_ENCODE_SJIS>:
11110         Set MSB of octets before passing them to
11111         ENCODE_SJIS because of the incompatibility
11112         with Emacs.
11113
11114 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
11115
11116         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
11117         (DECLARE_LRECORD): Undo the last change.
11118         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
11119
11120 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
11121
11122         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
11123         the implementation to lrecord_implementations_table.
11124
11125 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
11126
11127         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
11128         initial value of `lrecord_type_##c_name' and
11129         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
11130         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
11131         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
11132         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
11133         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
11134
11135 2000-10-17  Martin Buchholz  <martin@xemacs.org>
11136
11137         * miscplay.c (sndcnv8S_2mono):
11138         (sndcnv2monounsigned):
11139         (sndcnvULaw_2linear):
11140         (sndcnv16swap):
11141         Remove implementation-defined behavior.
11142
11143 2000-10-12  Martin Buchholz  <martin@xemacs.org>
11144
11145         * input-method-xlib.c: Warning suppression.
11146
11147 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
11148
11149         * mule-ccl.c: Sync up with Emacs 21.0.90.
11150         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
11151         Do nothing.
11152         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
11153         Likewise.
11154         (ccl_driver[WriteMultibyteChar2]): Bug fix.
11155         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
11156         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
11157         leading char belongs to official 2-dimensional charset.
11158         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
11159         write the given character as is.  Otherwise,
11160         if it is a multibyte char, convert it by
11161         non_ascii_set_charptr_emchar, then write it.
11162         (CCL_WRITE_STRING): Likewise.
11163         (ccl_get_compiled_code): New function.
11164         (setup_ccl_program): When ccl_prog is invalid,
11165         return -1.
11166         (Fregister_code_conversion_map): New function.
11167         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
11168
11169         * mule-ccl.h: Sync up with Emacs 21.0.90.
11170         (Fregister_ccl_program): export it.
11171
11172         * redisplay-msw.c (separate_textual_runs):
11173         If ccl program is not valid, don't do ccl conversion.
11174
11175         * redisplay-x.c (separate_textual_runs): Ditto.
11176
11177         * file-coding.c (Fmake_coding_system):
11178         When type is ccl and value is vector, register it
11179         with a proper symbol.  And checks whether the
11180         given ccl program is valid.
11181         (mule_decode): When calling ccl_driver, if src indicates
11182         NULL pointer, set an empty string instead.
11183         (mule_encode): Likewise.
11184
11185 2000-10-11  Martin Buchholz  <martin@xemacs.org>
11186
11187         The following large batch of changes gets us back to a state of
11188         C++ compilability.  Extbyte is now a char, which means that
11189         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
11190
11191         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
11192
11193         * sound.c (Fplay_sound): Type correctness.
11194
11195         * select-x.c (hack_motif_clipboard_selection): Type correctness.
11196         (x_get_window_property): Type correctness.
11197         (receive_incremental_selection): unsigned char ==> Extbyte
11198         (selection_data_to_lisp_data): unsigned char ==> Extbyte
11199         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
11200         (Fx_store_cutbuffer_internal): Type correctness.
11201
11202         * process-unix.c (try_to_initialize_subtty): Type correctness.
11203
11204         * objects-x.c (x_print_color_instance): Type correctness.
11205         (x_print_font_instance): Type correctness.
11206         (x_list_fonts): SExtbyte ==> Extbyte.
11207         (valid_x_font_name_p): SExtbyte ==> Extbyte.
11208         (x_find_charset_font): SExtbyte ==> Extbyte.
11209         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
11210         (truename_via_XListFonts): SExtbyte ==> Extbyte.
11211         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
11212         Use bufbyte_strcmp.
11213
11214         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
11215         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
11216         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
11217         (BYTE_C0_P): Use bit ops for char-signedness safety.
11218         (BYTE_C1_P): Use bit ops for char-signedness safety.
11219         (CHARSET_BY_LEADING_BYTE):
11220         (CHARSET_BY_ATTRIBUTES):
11221         Always use inline function.
11222         Use type_checking_assert.
11223         Hide chlook.
11224
11225         * mule-charset.c (non_ascii_charptr_copy_char):
11226         Modify to work with both ASCII and non-ASCII characters.
11227         Improve docs and variable names.
11228         Replace over-clever fall-through switch with a simple loop.
11229         (Lstream_get_emchar_1):
11230         Replace over-clever fall-through switch with a simple loop.
11231
11232         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11233         Warning suppression.
11234
11235         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
11236         the return value of Lstream_getc, which could be EOF as well.
11237
11238         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
11239
11240         * lisp.h: Make Extbyte a char, not unsigned char, so that external
11241         APIs can be used on Extbytes without casts.  Risky!
11242         (SExtbyte): Remove.
11243         (UExtbyte): Remove.
11244
11245         * input-method-xlib.c (XIM_init_device):
11246         Use Xlib.h instead of IntrinsicP.h.
11247         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
11248         which will break in X11R7.
11249         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
11250         to call XRegisterIMInstantiateCallback with correct types.
11251
11252         * gui-x.c (button_item_to_widget_value): Type correctness.
11253
11254         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
11255
11256         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
11257         (xbm_instantiate_1): Type correctness.
11258         (BUILD_GLYPH_INST):  Type correctness.
11259
11260         * fileio.c (Fsubstitute_in_file_name): Type correctness.
11261
11262         * file-coding.c:
11263         (decode_coding_sjis):
11264         (decode_coding_big5):
11265         (decode_coding_ucs4):
11266         (decode_coding_utf8):
11267         (decode_coding_iso2022):
11268         (decode_coding_no_conversion):
11269         Make all decoding functions take an Extbyte * arg.
11270         (encode_coding_sjis):
11271         (encode_coding_big5):
11272         (encode_coding_ucs4):
11273         (encode_coding_utf8):
11274         (encode_coding_iso2022):
11275         (encode_coding_no_conversion):
11276         Make all encoding functions take a Bufbyte * arg.
11277         Use size_t instead of unsigned int for memory sizes.
11278         Only cast to unsigned char whenever dereferencing Extbyte *.
11279
11280         * doc.c (unparesseuxify_doc_string): Type correctness.
11281
11282         * console-x.c (split_up_display_spec):
11283         Rewrite without using details of internal string representation.
11284         (x_semi_canonicalize_device_connection): Type correctness.
11285
11286         * config.h.in:
11287         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
11288         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
11289         (HAVE_XFREE386): Removed.
11290
11291         * buffer.h (DEC_CHARPTR): `const' correctness.
11292         (bufbyte_strcmp): New.
11293         (bufbyte_memcmp): New.
11294
11295         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
11296
11297         * buffer.h (XCHAR_OR_CHAR_INT):
11298         Always use inline function.
11299         Remove redundant type checking assert() - XINT will abort quite nicely.
11300
11301 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11302
11303         * search.c (Freplace_match): Set newtext to an empty string.
11304
11305 2000-10-10  Martin Buchholz  <martin@xemacs.org>
11306
11307         * s/decosf1-3.h: Remove #include of stropts.h
11308         * s/ptx.h: Remove #include of stropts.h
11309         * s/usg5-4.h: Remove #include of stropts.h
11310         * sysproc.h:
11311         * config.h.in:
11312         Use stropts.h, not sys/stropts.h.
11313         Use strtio.h, not sys/strtio.h.
11314
11315 2000-10-04  Martin Buchholz <martin@xemacs.org>
11316
11317         * XEmacs 21.2.36 is released.
11318
11319 2000-09-21  Andy Piper  <andy@xemacs.org>
11320
11321         * glyphs-x.c (x_redisplay_widget): make sure non-structural
11322         changes still involve copying the widget tree.
11323         (update_widget_face): make sure a change is register in the widget
11324         tree. Call update_tab_widget_face appropriately.
11325         (update_tab_widget_face): ditto.
11326         (x_tab_control_redisplay): make sure non-structural changes still
11327         involve copying the widget tree.
11328
11329 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
11330
11331         * lread.c (locate_file): Check the path element is non-nil.
11332
11333 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11334
11335         * lisp.h: Warning suppression for SCO compilers.
11336
11337         * redisplay-tty.c (reset_tty_modes): Fix crash.
11338         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
11339
11340 2000-09-27  Martin Buchholz  <martin@xemacs.org>
11341
11342         Big signal/process handling overhaul.  Bugs fixed:
11343         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
11344         M-x comint-kill-subjob should work for both values nil and t of
11345         process-connection-type. It was broken on most platforms.
11346         Testing on Irix and Cygwin still needed.  Other plaforms tested.
11347         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
11348         * process-unix.c: Signal/Process handling overhaul.
11349         (pty_name): make 64 bytes, as `expect' does, for paranoia.
11350         (allocate_pty): Use all available modern methods of allocating
11351         ptys, falling back to old style BSD allocation as a last resort.
11352         Use allegedly more secure Unix98 pty allocation by default.
11353         (allocate_pty_the_old_fashioned_way): New. the last resort.
11354         (unix_create_process): Push ptem, ldterm, ttcompat where
11355         available.  Autoconfiscate.
11356         (try_to_initialize_subtty): New.
11357         (unix_kill_child_process): Proper signal handling for ptys on most
11358         platforms, using special knowledge of AIX, BSD, etc...
11359         (unix_create_process): Always disconnect_controlling_terminal() for
11360         subprocesses, whether using ptys or not.
11361         * process.h: Remove old getpt-dependent PTY code.
11362         * process.c (Fprocess_send_signal): New, obvious generic function.
11363         (decode_signal): New.
11364         (Finterrupt_process):
11365         (Fkill_process):
11366         (Fquit_process):
11367         (Fstop_process):
11368         (Fcontinue_process):
11369         (Fsignal_process): Use decode_signal.
11370         (process_send_signal):
11371         Many docstring corrections.
11372         Allow any signal to be sent to a process object.
11373         * config.h.in: Add symbols for big signal/process overhaul.
11374         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
11375         * sysproc.h: Include process-related headers, where available:
11376         sys/stropts.h sys/strtio.h pty.h libutil.h
11377         * s/irix4-0.h:
11378         * s/irix5-0.h:
11379         * s/cygwin32.h:
11380         * s/gnu.h:
11381         * s/linux.h:
11382         * s/hpux.h:
11383         * s/aix3-1.h:
11384         Remove old S&M pty stuff.
11385         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
11386         * systty.h: Simplify cpp hackery, improve comments.
11387         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
11388
11389         * editfns.c (Fformat_time_string):
11390         Be a little more paranoid with the return value of ctime.
11391
11392         * fileio.c (check_executable):
11393         (check_writable):
11394         Use symbolic constants X_OK, W_OK.
11395
11396         * console-x.c (split_up_display_spec): Fix a warning.
11397
11398 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11399
11400         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11401         * ntproc.c (sys_spawnve): make_string ==> build_string
11402         Small clarity improvements.
11403
11404 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11405
11406         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11407
11408         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11409
11410         * config.h.in (HAVE_STRCASECMP): Remove.
11411
11412 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11413
11414         * redisplay-output.c (redisplay_output_pixmap):
11415         Cleaner and possibly more 64-bit correct code.
11416
11417 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11418
11419         * dumper.c (pdump_load_finish): move restoration of
11420         `noninteractive1' to emacs.c (main_1).
11421         * emacs.c (main_1): protect LISP-visible command-line flags
11422         from pdump_load().
11423
11424 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11425
11426         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11427         DUMP_TARGET instead of literal program names.
11428
11429 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11430
11431         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11432
11433 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11434
11435         * *: Spelling mega-patch
11436
11437 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11438
11439         * fns.c (bad_bad_turtle):
11440         Delete "Eek!" comment, since we fixed the bug to which it refers.
11441
11442 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11443
11444         * alloca.c: Replace REGISTER with register.
11445
11446 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11447
11448         * file-coding.c (ucs_to_char): Use countof.
11449
11450 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11451
11452         * file-coding.c: (ucs_to_char):
11453         (complex_vars_of_file_coding):
11454         Use countof instead of sizeof.
11455         Use CHECK_NATNUM instead of CHECK_INT.
11456
11457         * sysdep.c (strcasecmp): Remove.
11458         * device-x.c (ascii_strcasecmp): New.
11459         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11460         Avoid using non-standard non-portable strcasecmp.
11461
11462 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11463
11464         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11465         * font-lock.c: remove reference to emacsfns.h.
11466         * search.c: small doc improvement.
11467         * event-Xt.c: correct file names in comments.
11468         * console-x.h Correct file names in comments.
11469         * frame.c: Correct file names in comments.
11470         * event-stream.c: remove Energize from comments.
11471
11472 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11473
11474         * symeval.h (DEFERROR_STANDARD):
11475         (DEFERROR):
11476         (DEFSYMBOL):
11477         (DEFSYMBOL_NO_DUMP):
11478         (DEFSYMBOL_MULTIWORD_PREDICATE):
11479         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11480         (DEFKEYWORD):
11481         The construct &##name is not sensible C.
11482         Fixes compilation errors with Unixware native compiler.
11483
11484 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11485
11486         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11487         (next_frame_internal): Removed.  We now just have next_frame.
11488         (next_frame):
11489         Write a simpler and cleaner one-pass algorithm.
11490         Remove called_from_delete_device arg and #ifdefed-out code.
11491         (previous_frame):
11492         Renamed from prev_frame.  Update callers.
11493         Cleaned up to have an analogous implementation to next_frame.
11494         (other_visible_frames_internal): Remove the
11495         called_from_delete_device bogus arg, and hence, remove this
11496         function.  Just use other_visible_frames().
11497
11498         * window.c (Fnext_window):
11499         Prettify docstring.
11500         Since next_frame() is guaranteed to return a frame, remove check
11501         for nil inserted in previous patch.
11502         (Fprevious_window):
11503         Prettify docstring.
11504         Make code look more like Fnext_window.
11505         (window_loop):
11506         Respect the `console' arg when iterating through windows.
11507         Fixes bug: (get-buffer-window buffer t device) not respecting
11508         the `device' arg.
11509         This function needs more work, as others have pointed out.
11510
11511         * frame.h: Rename prev_frame to previous_frame.
11512         device_matches_console_spec no longer takes a `frame' arg.
11513
11514         * s/gnu.h:
11515         * s/linux.h:
11516         * s/hpux.h:
11517         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11518         From "Golubev I. N." <gin@mo.msk.ru>.
11519
11520         * make-src-depend: Fix typo.
11521
11522 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11523
11524         * window.c (Fnext_window):
11525         next_frame() might return nil, not a frame.
11526         Fixes this crash:
11527         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11528
11529         * frame.c (next_frame_internal):
11530         We've passed a frame if we've passed its device.
11531         Fixes this crash:
11532         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11533 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11534
11535 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11536
11537         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11538         Allow option to suppress accelerators in menu/dialog items.
11539         (populate_or_checksum_helper): Pass dialog title through above.
11540
11541 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11542
11543         * event-msw.c (mswindows_key_to_emacs_keysym):
11544         Add "pause" key, fix "menu" key.
11545
11546 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11547
11548         * eval.c (reinit_vars_of_eval):
11549         Increase max_lisp_eval_depth to 1000,
11550         required for thai-xtis.el to byte-compile under some circumstances.
11551
11552 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11553
11554         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11555         From Kenichi Handa.
11556
11557 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11558
11559         * make-src-depend: Make the generated Makefiles smaller.
11560
11561         * s/hpux.h (SETUP_SLAVE_PTY):
11562         Provide a %d in the format string for the errno argument.
11563
11564         * editfns.c (Ftemp_directory):
11565         Warning fix.
11566         Avoid buffer overrun on very long file name.
11567
11568         * input-method-xlib.c (XIM_init_device):
11569         6th parameter of XRegisterIMInstantiateCallback has different
11570         pointer types on different OSes, so simply cast to (void *).
11571
11572         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11573
11574         * sysdll.c (dll_open):
11575         shl_load will hang hard if passed a NULL filename.
11576         Simply return NULL for compatibility with dlopen.
11577         * sysdll.c: Conform to XEmacs coding standards.
11578
11579         * sysdep.c (get_pty_max_bytes):
11580         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11581
11582 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11583
11584         * tooltalk.c: Add #include <syssignal.h>
11585
11586 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11587
11588         * s/hpux.h: Don't use undefined function sigunblock().
11589
11590 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11591
11592         * config.h.in: Add HAVE_BALLOON_HELP.
11593         * emacs.c: Use HAVE_BALLOON_HELP.
11594         * Makefile.in.in (x_objs):
11595         Make Balloon Help conditional on finding shape.h.
11596
11597 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11598
11599         * syntax.c (regex_emacs_buffer_p): New variable.
11600         * syntax.h (regex_emacs_buffer_p): extern.
11601         * search.c (looking_at_1):
11602         (string_match_1):
11603         (fast_string_match):
11604         (search_buffer): Set regex_emacs_buffer_p.
11605         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11606         when before_dot, at_dot, after_dot.
11607
11608 2000-08-23  Andy Piper  <andy@xemacs.org>
11609
11610         * gui-x.c (popup_selection_callback): Only set action_occurred
11611         when we really have an image instance.
11612         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11613
11614 2000-08-23  Andy Piper  <andy@xemacs.org>
11615
11616         * gui-msw.c (mswindows_handle_gui_wm_command): set
11617         action_occurred.
11618         * gui-x.c (popup_selection_callback): ditto.
11619
11620         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11621         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11622         (struct Lisp_Image_Instance): add action_occurred flag.
11623
11624         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11625         (image_instance_changed): ditto.
11626         (reset_frame_subwindow_instance_cache): only unmap windows - do
11627         not remove them from the cache also.
11628
11629         * glyphs-widget.c (tab_control_update): better debug.
11630         (progress_gauge_update): ditto.
11631         (layout_update): ditto.
11632         (layout_instantiate): ditto.
11633         (tab_control_order_only_changed): cope with null pending items.
11634
11635         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11636         debug. Force selection of an item when an action occurred. Cope
11637         with null pending_items.
11638         (mswindows_progress_gauge_redisplay): better debug.
11639         * glyphs-x.c (x_tab_control_redisplay): ditto.
11640
11641         * redisplay.c (redisplay_frame): reset the frame cache if the
11642         frame is garbaged.
11643
11644         * window.c (Fset_window_configuration): potentially re-enable
11645         frame cache reset.
11646         (window_unmap_subwindows): need to finalize instances here since
11647         it is only used in mark_window_as_deleted.
11648
11649 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11650
11651         * nas.c (SndOpenDataForReading):
11652         nas.c (WaveOpenDataForReading):
11653         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11654         Somehow escaped from the 2000-08-14 patch.
11655
11656 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11657
11658         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11659         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11660
11661 2000-08-21  Andy Piper  <andy@xemacs.org>
11662
11663         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11664         window if it is not already displayed.
11665
11666         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11667         it is not already displayed.
11668
11669         * window.c (Fset_window_configuration): don't reset the frame
11670         cache.
11671
11672         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11673         instances from the frame cache if we are actually finalizing them.
11674         (reset_frame_subwindow_instance_cache): reset frame cache only
11675         after unmapping everything.
11676         (map_subwindow): set displayed flag after mapping.
11677
11678 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11679
11680         * data.c (indirect_function):
11681         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11682
11683         * eval.c (function_argcount):
11684         Use original function when signaling errors.
11685
11686 2000-08-18  Andy Piper  <andy@xemacs.org>
11687
11688         * frame.c (delete_frame_internal): use new
11689         free_frame_subwindow_instances name.
11690
11691         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11692         (add_tab_item): make return type correct.
11693         (mswindows_tab_control_instantiate): assert index of tab.
11694         (mswindows_tab_control_redisplay): Re-code to use
11695         gui_item_equal_sans_selected and gui_item_list_find_selected.
11696
11697         * glyphs-widget.c (tab_control_update): Correct comment.
11698
11699         * window.c (window_unmap_subwindows): use new
11700         unmap_subwindow_instance_cache_mapper.
11701         (window_unmap_subwindows_cache_mapper): deleted.
11702         (Fset_window_configuration): comparisons should now be with
11703         EQ. Preserve the subwindow instance cache across configuration
11704         changes.
11705         (allocate_window): ditto.
11706         (make_dummy_parent): ditto.
11707
11708         * glyphs.c (free_frame_subwindow_instances): rename from
11709         free_frame_subwindow_instance_cache. finalize all instances rather
11710         than just those in the display cache.
11711         (finalize_all_subwindow_instances): walk windows unmapping and
11712         finalizing subwindows.
11713         (unmap_subwindow_instance_cache_mapper): moved from
11714         window.c. Allow finalization as well as unmapping.
11715
11716         * gui.c (gui_item_list_find_selected): new function.
11717
11718         * gui.h (gui_item_list_find_selected): declare.
11719
11720         * glyphs-x.c (x_tab_control_redisplay): pick tab
11721         explicitly. Re-code to use gui_item_equal_sans_selected and
11722         gui_item_list_find_selected.
11723
11724         * glyphs-x.h: add lwlib-utils.h
11725
11726         * buffer.c (Frecord_buffer): undo previous change.
11727
11728 2000-08-09  Vin Shelton  <acs@xemacs.org>
11729
11730         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11731         possible.  Create temporary files more securely.  The patch was
11732         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11733         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11734         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11735         for details.
11736
11737 2000-08-07  Ben Wing  <ben@xemacs.org>
11738
11739         * getloadavg.c: remove duplicate (and windows-breaking)
11740         includes of fcntl.h and sys/file.h.
11741
11742         * nt.c: remove duplicate getloadavg() definition.
11743
11744         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11745         encodings.
11746
11747 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11748
11749         * eval.c (function_argcount): If function needs to be autoloaded
11750         actually use the loaded definition.
11751         GCPRO function.
11752
11753 2000-08-05  Ben Wing  <ben@xemacs.org>
11754
11755         * getloadavg.c: add prototype for getloadavg().  remove
11756         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11757         of the code).  remove duplicate header includes.
11758
11759         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11760
11761         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11762         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11763         useful load average.
11764
11765         * alloc.c (reinit_alloc_once_early): removed references to
11766         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11767         the lisp vars are the only things referencing the malloc_sbrk_*
11768         vars, and they were already if 0'd out.  these vars only exist
11769         in the older malloc.c, which is basically unused, and they're
11770         only for informational purposes.
11771
11772         * m\*.h: removed useless VIRT_ADDR_VARIES.
11773
11774         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11775
11776 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11777
11778         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11779         color if the image is a mono pixmap.
11780
11781 2000-07-30  Ben Wing  <ben@xemacs.org>
11782
11783         * Makefile.in.in (release):
11784         Remove stray @.
11785
11786         * buffer.c (directory_is_current_directory):
11787         * dired-msw.c (mswindows_get_files):
11788         * dired.c:
11789         * dired.c (Fdirectory_files):
11790         * dired.c (file_name_completion_stat):
11791         * dired.c (Ffile_attributes):
11792         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11793         preprocessor tricks, to avoid problems on some machines
11794         (e.g. SCO).
11795
11796         * callproc.c (egetenv): GC docs.
11797
11798         * console-msw.h:
11799         * console-msw.h (struct mswindows_dialog_id):
11800         * lrecord.h (lrecord_type):
11801         New object for use with MSW dialogs.
11802
11803         * console.h (struct console_methods):
11804         New enable/disable frame methods, for proper modal dialogs.
11805
11806         * device-msw.c (msprinter_default_printer): Fix to follow
11807         proper Mule conventions.
11808
11809         * device-msw.c:
11810         * device-msw.c (signal_open_printer_error):
11811         * device-msw.c (msprinter_init_device):
11812         * device-msw.c (ensure_not_printing):
11813         * device-msw.c (plist_get_margin):
11814         * device-msw.c (Fmsprinter_select_settings):
11815         * device-msw.c (finalize_devmode):
11816         * device-msw.c (Fmsprinter_settings_despecialize):
11817         * device-msw.c (signal_enum_priner_error):
11818         * extents.c (decode_extent):
11819         * extents.c (decode_map_extents_flags):
11820         * extents.c (decode_extent_at_flag):
11821         * extents.c (Fextent_at):
11822         * extents.c (Fextents_at):
11823         * extents.c (symbol_to_glyph_layout):
11824         [[[[2]]]] Use structured errors.
11825
11826         * dialog-msw.c:
11827         * dialog-msw.c (mswindows_is_dialog_msg):
11828         * dialog-msw.c (mark_mswindows_dialog_id):
11829         * dialog-msw.c (dialog_proc):
11830         * dialog-msw.c (handle_question_dialog_box):
11831         * dialog-msw.c (syms_of_dialog_mswindows):
11832         Define new object to clean up marking; use it as a dialog identifier.
11833         Call new delete-dialog-box-hook.
11834
11835         * dialog-x.c (dbox_selection_callback):
11836         * dialog-x.c (dbox_descriptor_to_widget_value):
11837         * dialog-x.c (x_make_dialog_box_internal):
11838         Call new delete-dialog-box-hook.
11839         Return an id.
11840
11841         * dialog.c:
11842         * dialog.c (syms_of_dialog):
11843         * dialog.c (vars_of_dialog):
11844         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11845
11846         * eval.c:
11847         * eval.c (signal_call_debugger):
11848         when noninteractive, output stack traces on the console instead
11849         of in a (never-seen) buffer.
11850
11851         * eval.c (signal_type_error):
11852         * eval.c (invalid_argument_2):
11853         * lisp.h:
11854         new funs for use w/structured errors.
11855
11856         * event-Xt.c:
11857         * event-Xt.c (x_to_emacs_keysym):
11858         * event-Xt.c (describe_event):
11859         * event-Xt.c (emacs_Xt_event_handler):
11860         * event-Xt.c (vars_of_event_Xt):
11861         * event-msw.c:
11862         * event-msw.c (mswindows_wnd_proc):
11863         * event-msw.c (vars_of_event_mswindows):
11864         rename {x,mswindows}-debug-events to debug-{}-events for
11865         consistency with other debug-foo variables.
11866
11867         * event-stream.c:
11868         document next-event more clearly.
11869
11870         * fileio.c (Ffile_name_directory):
11871         * fileio.c (Ffile_name_nondirectory):
11872         * fileio.c (Funhandled_file_name_directory):
11873         * fileio.c (file_name_as_directory):
11874         * fileio.c (Ffile_name_as_directory):
11875         * fileio.c (directory_file_name):
11876         * fileio.c (Fdirectory_file_name):
11877         * fileio.c (Fmake_temp_name):
11878         * fileio.c (Ffile_truename):
11879         * fileio.c (Fsubstitute_in_file_name):
11880         * fileio.c (expand_and_dir_to_file):
11881         * fileio.c (barf_or_query_if_file_exists):
11882         * fileio.c (check_executable):
11883         * fileio.c (Ffile_exists_p):
11884         * fileio.c (Ffile_writable_p):
11885         * fileio.c (Ffile_directory_p):
11886         * fileio.c (Ffile_regular_p):
11887         * fileio.c (Ffile_modes):
11888         * fileio.c (Ffile_newer_than_file_p):
11889         * fileio.c (Fverify_visited_file_modtime):
11890         * fileio.c (Fset_visited_file_modtime):
11891         * fileio.c (auto_save_1):
11892         (1). (2).
11893         fix up gcpro's.
11894
11895         * frame-msw.c:
11896         * frame-msw.c (mswindows_init_frame_1):
11897         * frame-msw.c (mswindows_enable_frame):
11898         * frame-msw.c (error_frame_unsizable):
11899         * frame-msw.c (msprinter_init_frame_1):
11900         * frame-msw.c (msprinter_init_frame_3):
11901         * frame-msw.c (console_type_create_frame_mswindows):
11902         (2).
11903         implement new enable/disable frame methods.
11904
11905         * frame-x.c:
11906         * frame-x.c (x_enable_frame):
11907         * frame-x.c (console_type_create_frame_x):
11908         implement new enable/disable frame methods.
11909
11910         * frame.c:
11911         * frame.c (Fdisable_frame):
11912         * frame.c (syms_of_frame):
11913         * frame.h (struct frame):
11914         implement new enable/disable frame methods/functions.
11915
11916         * general-slots.h:
11917         add initial-focus.
11918
11919         * glyphs-msw.c (mswindows_widget_instantiate):
11920         comment that initial-focus should be implemented.
11921
11922         * glyphs-widget.c:
11923         * glyphs-widget.c (check_valid_instantiator):
11924         * glyphs-widget.c (check_valid_orientation):
11925         * glyphs-widget.c (check_valid_tab_orientation):
11926         * glyphs-widget.c (check_valid_justification):
11927         * glyphs-widget.c (check_valid_border):
11928         * glyphs-widget.c (check_valid_callback):
11929         * glyphs-widget.c (check_valid_int_or_function):
11930         * glyphs-widget.c (check_valid_string_or_vector):
11931         * glyphs-widget.c (check_valid_item_list_1):
11932         * glyphs-widget.c (widget_validate):
11933         * glyphs-widget.c (combo_box_validate):
11934         * glyphs-widget.c (widget_instantiate):
11935         * glyphs-widget.c (syms_of_glyphs_widget):
11936         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11937         * glyphs-widget.c (image_instantiator_combo_box):
11938         * glyphs-widget.c (image_instantiator_scrollbar):
11939         * glyphs-widget.c (image_instantiator_tab_control):
11940         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11941         (2).
11942         support (unimplemented) keyword initial-focus.
11943         reindent long macros.
11944
11945         * glyphs-x.c (x_redisplay_widget):
11946         * glyphs-x.c (x_button_instantiate):
11947         * glyphs-x.c (x_button_redisplay):
11948         * glyphs-x.c (x_progress_gauge_instantiate):
11949         * glyphs-x.c (x_edit_field_instantiate):
11950         * glyphs-x.c (x_combo_box_instantiate):
11951         * glyphs-x.c (x_tab_control_instantiate):
11952         * glyphs-x.c (x_label_instantiate):
11953         * gui-x.c:
11954         * gui-x.c (button_item_to_widget_value):
11955         * gui-x.c (gui_items_to_widget_values_1):
11956         * gui-x.c (gui_item_children_to_widget_values):
11957         * gui-x.c (gui_items_to_widget_values):
11958         * gui-x.h:
11959         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11960         add new flag to gui-parsing routines to indicate whether
11961         accelerator specs should be supported.
11962
11963         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11964
11965         * glyphs.h (struct Lisp_Image_Instance):
11966         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11967         add initial-focus flag.
11968
11969         * gui.c:
11970         * gui.c (syms_of_gui):
11971         * gui.c (vars_of_gui):
11972         clean up menu-no-selection-hook.
11973
11974         * gui.h:
11975         support delete-dialog-box-hook.
11976
11977         * lread.c (Fload_internal):
11978         * lread.c (locate_file_in_directory_mapper):
11979         (1).
11980
11981         * lrecord.h:
11982         * lrecord.h (struct toolbar_button):
11983         * lrecord.h (syms_of_toolbar):
11984         document how to create a new object.
11985
11986         * menubar-msw.c (mswindows_char_is_accelerator):
11987         may be called on frames w/o menus.
11988
11989         * menubar.c (vars_of_menubar):
11990         clean up :filter docs.
11991
11992         * nt.c (readdir):
11993         * ntproc.c:
11994         (1).
11995
11996         * process-nt.c:
11997         * process-nt.c (validate_signal_number):
11998         * process-nt.c (signal_cannot_launch):
11999         * process-nt.c (nt_create_process):
12000         * process-nt.c (nt_send_process):
12001         * process-nt.c (nt_kill_child_process):
12002         * process-nt.c (nt_open_network_stream):
12003         * process-nt.c (syms_of_process_nt):
12004         (2).
12005         delete quote-handling.  call new lisp code that does it better.
12006
12007         * process-unix.c (connect_to_file_descriptor):
12008         * process-unix.c (allocate_pty):
12009         * process-unix.c (unix_send_process):
12010         * process-unix.c (unix_kill_child_process):
12011         * process-unix.c (unix_open_network_stream):
12012         * process-unix.c (unix_open_multicast_group):
12013         (1). (2).
12014
12015         * process.c:
12016         * process.c (Fstart_process_internal):
12017         (2).  need to canonicalize process path even if absolute.
12018
12019         * select-msw.c (symbol_to_ms_cf):
12020         * select-msw.c (ms_cf_to_symbol):
12021         * select-msw.c (cf_is_autofreed):
12022         * select-msw.c (mswindows_destroy_selection):
12023         * select.c:
12024         * select.c (syms_of_select):
12025         * select.h:
12026         support dibv5, fix bugs. (from Mike Alexander)
12027
12028         * select.c (Fget_selection_internal):
12029         * select.c (select_convert_out):
12030
12031         * sysdep.c:
12032         * sysdep.c (xemacs_stat):
12033         renamed.
12034
12035         * sysdep.c (mkdir):
12036         * sysdep.c (rmdir):
12037         but keep original stat() here because we provide encapsulation
12038         around these funs.
12039
12040         * sysfile.h:
12041         * sysfile.h (fstat):
12042         remove stat garbage.
12043
12044         * syswindows.h:
12045         fix X/MSW conflict.
12046         don't include tchar.h.  it's inappropriate because it makes
12047         compile-time distinctions when we want runtime distinctions.
12048         (we provide our own tchar replacements)
12049
12050         * toolbar.c:
12051         use default object printer for toolbar-button.
12052
12053         * unexcw.c:
12054         make sure we don't encapsulate.
12055
12056         * window.c (vars_of_window):
12057         emphasize that temp-buffer-show-hook is obsolete.
12058
12059 2000-08-05  Martin Buchholz  <martin@xemacs.org>
12060
12061         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
12062         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
12063
12064         * events.c (Fevent_timestamp_lessp):
12065         Not 64-bit clean.  Use EMACS_INT, not int.
12066
12067 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
12068
12069         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
12070         unsigned int and changed the last enum to
12071         lrecord_type_last_built_in_type.
12072         (lrecord_implementations_table): changed prototype to know how
12073         long the array is supposed to be.
12074         (lrecord_type_count): new unsigned int to keep track of the
12075         current number of lisp lrecord types.
12076         (DEFINE_EXTERNAL_LRECORD):
12077         (DECLARE_EXTERNAL_LRECORD): Added these two for external
12078         dynamic-modules to declare new lisp types. They are the same
12079         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
12080         int for each new type, and increment lrecord_type_count by 1.
12081
12082         * alloc.c (lrecord_implementations_table): Changed to reference
12083         lrecord_type_last_built_in_type for the size of the array.
12084         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
12085
12086 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12087
12088         * glyphs.h (check_valid_item_list): Renamed from
12089         check_valid_item_list_1.
12090
12091 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
12092
12093         * select.c (Qselect_coerce): New.
12094         * select.c (Vselection_coercion_alist): New.
12095         * select.c (syms_of_select): Declare.
12096         * select.c (get-selection-internal): Use it.
12097         Use the new select-coerce functionality.
12098
12099         * select.c (select_coerce): New.
12100         * select.h (select_coerce): Declare.
12101         New function to coerce one type of data into another.
12102
12103 2000-08-03  Martin Buchholz  <martin@xemacs.org>
12104
12105         * callproc.c (Fcall_process_internal):
12106         (Fcall_process_internal):
12107         * process-unix.c (unix_create_process):
12108         Save and restore the value of errno, so that error messages are accurate.
12109
12110 2000-08-01  Martin Buchholz  <martin@xemacs.org>
12111
12112         * elhash.c (print_hash_table):
12113         Fix printing of hash tables to also use `key-and-value' instead of `t'.
12114         Prettify docstrings and indentation.
12115
12116 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
12117
12118         * window.c (Fwindow_pixel_edges): Subtract frame border and
12119         gutter size.
12120
12121 2000-07-31  Andy Piper  <andy@xemacs.org>
12122
12123         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
12124         will acknowledge the change.
12125
12126         * glyphs.h: declare tab_control_order_only_changed.
12127
12128         * glyphs-x.c (x_tab_control_redisplay): use
12129         tab_control_order_only_changed.
12130
12131         * glyphs-widget.c (tab_control_order_only_changed): new function.
12132
12133         * glyphs-msw.c (mswindows_tab_control_redisplay): use
12134         tab_control_order_only_changed.
12135
12136         * gui.c (gui_item_equal_sans_selected): new function.
12137         (gui_item_equal): use it.
12138
12139         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
12140         :properties in favor of :items..
12141
12142         * glyphs-widget.c (check_valid_item_list): rename from
12143         check_valid_item_list_1.
12144         (check_valid_item_list_1): renamed.
12145         (combo_box_validate): deprecate :properties in favor of :items.
12146         (widget_instantiate): ditto.
12147         (tab_control_update): ditto.
12148         (image_instantiator_combo_box): ditto.
12149         (image_instantiator_tree_view): ditto.
12150         (image_instantiator_tab_control): ditto.
12151         (layout_post_instantiate): remove dead code.
12152
12153         * print.c (debug_print_no_newline): only write to debugger if in
12154         WIN32_NATIVE.
12155
12156         * elhash.c (Fmake_hash_table): update doc string.
12157
12158         * event-msw.c (mswindows_wnd_proc): don't allow processing of
12159         messages whilst in GC. This at least stops XEmacs crashing but has
12160         the potential for wierd behaviour.
12161
12162 2000-07-31  Martin Buchholz  <martin@xemacs.org>
12163
12164         * config.h.in:
12165         Make existence of s&m files optional.
12166
12167         * s/bsd386.h: Remove HAVE_GETLOADAVG.
12168         * s/freebsd.h: Remove HAVE_GETLOADAVG.
12169         * s/gnu.h: Remove HAVE_GETLOADAVG.
12170         * s/netbsd.h: Remove HAVE_GETLOADAVG.
12171         * s/sol2.h: Remove HAVE_GETLOADAVG.
12172         * lisp.h: Remove getloadavg() declaration.
12173         * fns.c:
12174         Include <sys/loadavg.h> if available.
12175         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
12176         * config.h.in:  Group together getloadavg()-related macros.
12177         Use only configure-time tests to detect getloadavg().
12178
12179 2000-07-30  Martin Buchholz  <martin@xemacs.org>
12180
12181         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
12182
12183 2000-07-25  Andy Piper  <andy@xemacs.org>
12184
12185         * syswindows.h: add tchar.h for native builds.
12186
12187         * frame.c (syms_of_frame): remove set-glyph-image.
12188
12189         * general-slots.h: add Qset_glyph_image.
12190
12191         * glyphs-widget.c (layout_update): add domain arg to
12192         set-glyph-image.
12193         (syms_of_glyphs_widget): remove set-glyph-image.
12194
12195 2000-07-23  Ben Wing  <ben@xemacs.org>
12196
12197         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
12198         Vpopup_frame_list.
12199
12200 2000-07-22  Andy Piper  <andy@xemacs.org>
12201
12202         * symsinit.h: add syms_of_win32().
12203
12204         * gui-msw.c (syms_of_gui_mswindows): remove
12205         Fmswindows_shell_execute.
12206         (Fmswindows_shell_execute): moved to win32.c.
12207
12208         * emacs.c (main_1): add syms_of_win32 ().
12209
12210         * win32.c (init_potentially_nonexistent_functions): rewrite in
12211         compiler-friendly terms.
12212         (Fmswindows_shell_execute): move here from gui-msw.c.
12213         (syms_of_win32): new.
12214
12215         * device-msw.c (Fmswindows_printer_list): clean up args to
12216         EnumPrinters.
12217         Don't include tchar under cygwin or mingw.
12218         (msprinter_default_printer): make cygwin-friendly.
12219
12220 2000-07-21  Andy Piper  <andy@xemacs.org>
12221
12222         * glyphs-widget.c (image_instantiator_tree_view): use tab
12223         control's update function.
12224         (layout_property): new function. Retrieve items.
12225
12226         * glyphs-msw.c (mswindows_tree_view_redisplay): new
12227         function. Re-populate the tree view from the pending items.
12228
12229         * glyphs.c (instantiate_image_instantiator): Make sure the domain
12230         is designated the parent if the domain is an image instance. This
12231         is needed so that dirtiness can be cascade up the hierarchy and
12232         thus for layout children to be redisplayed correctly.
12233         (allocate_image_instance): rename glyph -> parent.
12234
12235         * redisplay.h: change redisplay_output_layout signature.
12236
12237         * redisplay-msw.c (mswindows_output_display_block): use domain
12238         arg.
12239
12240         * redisplay-x.c (x_output_display_block): use domain arg.
12241
12242 2000-07-10  Andy Piper  <andy@xemacs.org>
12243
12244         * window.c (Fset_window_configuration): add comment.
12245
12246         * redisplay-output.c (compare_runes):
12247         (redisplay_output_subwindow): redisplay rather than update subwindow.
12248         (redisplay_output_layout): ditto.
12249
12250         * redisplay-msw.c (mswindows_frame_output_end):
12251         (mswindows_frame_output_end): make defer window pos optional.
12252
12253         * lisp.h: add Flast.
12254
12255         * glyphs.h (struct image_instantiator_methods): add dest_mask top
12256         normalize method. Change update method to be for changed
12257         instantiators. Add redisplay method. Change signature of layout
12258         method.
12259         (struct Lisp_Image_Instance): add instantiator.
12260         (IMAGE_INSTANCE_INSTANTIATOR): new.
12261         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
12262         (XIMAGE_INSTANCE_INSTANTIATOR): new.
12263         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
12264
12265         * glyphs.c:
12266         (find_instantiator_differences): new function.
12267         (Fset_instantiator_property): new convenience function.
12268         (check_image_instance_structure): strictly check for vector
12269         instantiators.
12270         (normalize_image_instantiator): make non-static.
12271         (instantiate_image_instantiator): pass on dest_mask and use new
12272         signatures for image_instance_layout and friends.
12273         (mark_image_instance): mark the instantiator. Mark the subwindow
12274         face not the widget face.
12275         (image_instance_equal): add instantiator.
12276         (image_instance_hash): ditto.
12277         (allocate_image_instance): ditto.
12278         (Fset_image_instance_property): removed.
12279         (Fimage_instance_file_name): ditto.
12280         (Fcolorize_image_instance): ditto.
12281         (image_instance_layout): add offsets to be set.
12282         (update_image_instance): new function. update an image instance
12283         from its changed instantiator.
12284         (inherit_normalize): add dest_mask.
12285         (xbm_normalize): ditto.
12286         (xface_normalize): ditto.
12287         (xpm_normalize): ditto.
12288         (text_update): set_property -> update.
12289         (image_instantiate): use the glyph identity as a hash key, not the
12290         instantiator.
12291         (glyph_width): use new image_instance_layout signature.
12292         (glyph_ascent): ditto.
12293         (glyph_descent): ditto.
12294         (glyph_height): ditto.
12295         (glyph_query_geometry): ressurrect.
12296         (glyph_layout): ditto.
12297         (redisplay_subwindow): update -> redisplay.
12298         (syms_of_glyphs): add Fset_instantiator_property.
12299         (image_instantiator_format_create): set_property -> update.
12300
12301         * glyphs-x.c:
12302         (autodetect_normalize): add dest_maks to signature.
12303         (x_redisplay_subwindow): update -> redisplay.
12304         (x_redisplay_widget): ditto.
12305         (x_button_redisplay): ditto.
12306         (x_progress_gauge_redisplay): ditto.
12307         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
12308         stacking order.
12309         (console_type_create_glyphs_x): update -> redisplay.
12310         (image_instantiator_format_create_glyphs_x): ditto.
12311
12312         * glyphs-widget.c:
12313         (check_valid_instantiator): disallow glyphs in the instantiator,
12314         they must now be vectors.
12315         (check_valid_instantiator_list): ditto.
12316         (glyph_instantiator_to_glyph): use internal symbol rather than
12317         intern.
12318         (widget_update): renamed from widget_set_property. Call cascaded
12319         update methods.
12320         (redisplay_widget): renamed from update_widget.
12321         (widget_layout): image_instance_layout now takes position as well
12322         as size.
12323         (widget_normalize): ditto.
12324         (widget_instantiate): ditto.
12325         (tab_control_query_geometry) ditto.:
12326         (tab_control_update): renamed from tab_control_set_property.
12327         (progress_gauge_update): set_property -> update.
12328         (layout_normalize): rewrite so that child instantiators are
12329         normalized also.
12330         (layout_update): new function. Create glyphs from the normalized
12331         children and cope with any other layout keywords. We do not
12332         instantiate children here that will be take care of by
12333         redisplay_output_layout.
12334         (layout_instantiate): call layout_update and not much else.
12335         (layout_post_instantiate): not sure whether this is needed
12336         anymore.
12337         (layout_query_geometry): query glyph geometry rather than
12338         image_instance geometry.
12339         (layout_layout): set offsets from pass in parameters. Use glyph
12340         geometry and layout functions rather than image instance ones.
12341         (native_layout_layout): ditto.
12342         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
12343         (image_instantiator_widget): set_property -> update.
12344         (image_instantiator_buttons): ditto.
12345         (image_instantiator_progress_guage): ditto.
12346         (image_instantiator_tab_control): ditto.
12347         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
12348         (image_instantiator_layout): add update method.
12349
12350         * glyphs-msw.c (bmp_normalize):
12351         (mswindows_resource_normalize): add dest_mask so that it can be
12352         proprogated by layout_normalize.
12353         (begin_defer_window_pos): make optional because it may not be the
12354         right thing to do and it introduces differences with X.
12355         (mswindows_unmap_subwindow): ditto.
12356         (mswindows_map_subwindow): ditto.
12357         (mswindows_redisplay_subwindow): renamed from
12358         mswindows_update_subwindow.
12359         (mswindows_redisplay_widget): ditto.
12360         (mswindows_button_redisplay): renamed from
12361         mswindows_button_update. Update is now what the instantiation
12362         function does for a changed instantiator.
12363         (mswindows_progress_gauge_instantiate): set the progress value
12364         here if appropriate.
12365         (mswindows_tab_control_redisplay): cope with re-ordering of the
12366         members of the tab widget by simply selecting the new top
12367         widget. This makes things appear ok if you click on a tab.
12368         (mswindows_combo_box_instantiate): image_instance_layout now takes
12369         position as well as size.
12370         (mswindows_progress_gauge_redisplay): renamed from
12371         mswindows_progress_gauge_update.
12372         (console_type_create_glyphs_mswindows): fix update -> redisplay.
12373         (image_instantiator_format_create_glyphs_mswindows): ditto.
12374
12375         * glyphs-eimage.c (jpeg_normalize):
12376         (gif_normalize):
12377         (png_normalize):
12378         (tiff_normalize): add dest_mask so that it can be proprogated by
12379         layout_normalize.
12380
12381         * elhash.c:
12382         (print_hash_table):
12383         (hash_table_weakness_validate):
12384         (decode_hash_table_weakness):
12385         (Fhash_table_weakness):
12386         (Fhash_table_type):
12387         (syms_of_elhash): use Ben's naming scheme for hashtable types..
12388
12389         * console.h (struct console_methods): move update_* to
12390         redisplay_*.
12391
12392 2000-07-20  Ben Wing  <ben@xemacs.org>
12393
12394         * *.[ch] (XSETOBJ): remove unused middle argument.
12395         lisp-disunion.h: correct wrap_object() to one argument.
12396
12397 2000-07-15  Ben Wing  <ben@xemacs.org>
12398
12399         * s/cygwin32.h:
12400         * s/cygwin32.h (CYGWIN_CONV_PATH):
12401         Add missing logb prototype for v1.1.
12402         Use post-b20 names and alias to pre-b20 names when pre-b20.
12403
12404         * s/windowsnt.h: [5].
12405
12406 2000-07-15  Ben Wing  <ben@xemacs.org>
12407
12408         * Makefile.in.in (x_objs):
12409         * Makefile.in.in (sheap_objs):
12410         * Makefile.in.in (objs):
12411         added win32.o, cosmetic cleanups.
12412
12413         * alloc.c (Fmake_byte_code):
12414         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12415         etc. macros which declare their own args now.
12416
12417         * alloc.c (syms_of_alloc):
12418         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12419
12420         * buffer.c:
12421         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12422
12423         * buffer.c (Fget_file_buffer):
12424         Fixed GCPRO problem.
12425
12426         * buffer.c (get_truename_buffer):
12427         Fixed comment about GC checking.
12428
12429         * buffer.c (syms_of_buffer):
12430         Undeclared those dedicated frame funs.
12431         [2].
12432
12433         * buffer.h:
12434         Define convenience macros for internal/external conversions.
12435         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12436         and Qenvironment_variable_encoding for cleaner code.
12437
12438         * bufslots.h:
12439         Remove dedicated-frame; in lisp.
12440
12441         * bytecode.c (funcall_compiled_function):
12442         [1].
12443
12444         * bytecode.c (syms_of_bytecode):
12445         [2].
12446
12447         * console-msw.c:
12448         * console-msw.c (mswindows_show_console): Rewrote.
12449
12450         * console-msw.c (Fmswindows_debugging_output): New.
12451         Sends to OutputDebugString (special MSWin debugger interface).
12452
12453         * console-msw.c (Fmswindows_message_box):
12454         Fixed stupid bugs so it works when called from kill-emacs.
12455
12456         * console-msw.c (syms_of_console_mswindows):
12457         Declare Fmswindows_debugging_output.
12458
12459         * console-msw.h:
12460         New MSWin prototypes.
12461
12462         * console-msw.h (struct mswindows_frame):
12463         New entry last-click-mods for improved button-modifier support.
12464
12465         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12466         New struct entry `popup' with corresponding accessor.
12467
12468         * console-x.c:
12469         * console-x.c (split_up_display_spec):
12470         * console-x.c (get_display_arg_connection):
12471         * console-x.c (x_semi_canonicalize_console_connection):
12472         * console-x.c (x_canonicalize_device_connection):
12473         [[[6]]]: Change char to more specific type.
12474         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12475
12476         * console-x.c (x_semi_canonicalize_console_connection):
12477         * console-x.c (x_canonicalize_device_connection):
12478         [[[9]]]: Fix up error signalling to use new structured error system.
12479
12480         * console-x.h:
12481         [[[4]]]: Define codesys aliases:
12482         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12483         Qx_color_name_encoding, Qx_display_name_encoding.
12484
12485         * console.h (struct console_methods):
12486         New method make_dialog_box_internal supersedes older
12487         popup_dialog_box method.
12488
12489         * data.c:
12490         Define many new errors, part of new structured errors.
12491
12492         * data.c (init_errors_once_early):
12493         * data.c (syms_of_data):
12494         [2].
12495
12496         * device-msw.c (mswindows_init_device):
12497         [[[5]]]: Cleanup to support NT 3.51.
12498
12499         * device-msw.c (decode_devmode): Cleanup.
12500
12501         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12502         * device-msw.c (mswindows_handle_print_dialog_box):
12503         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12504         * device-msw.c (syms_of_device_mswindows):
12505         Delete the dialog box primitives recently introduced by Kirill and
12506         instead interface to general dialog box interface.
12507
12508         * device-x.c:
12509         * device-x.c (compute_x_app_name):
12510         * device-x.c (x_init_device):
12511         * device-x.c (Fx_valid_keysym_name_p):
12512         * device-x.c (Fx_set_font_path):
12513         [6].
12514         [7].
12515
12516         * device.h (wrap_device): New.
12517         First of its kind; meant to replace XSETDEVICE.
12518
12519         * dialog-msw.c: Many file-dialog symbols.
12520
12521         * dialog-msw.c (mswindows_register_popup_frame): New.
12522         * dialog-msw.c (mswindows_is_dialog_msg): New.
12523         For supporting kbd traversal in dialog boxes.
12524
12525         * dialog-msw.c (dialog_proc):
12526         Support hitting ESC in dialogs.
12527
12528         * dialog-msw.c (struct):
12529         Common dialog box errors.
12530
12531         * dialog-msw.c (handle_file_dialog_box): New.
12532         Add file dialog code.
12533
12534         * dialog-msw.c (handle_question_dialog_box):
12535         Redo existing code to support new question dialog syntax.
12536
12537         * dialog-msw.c (console_type_create_dialog_mswindows):
12538         We support new dialog console method.
12539
12540         * dialog-msw.c (syms_of_dialog_mswindows):
12541         * dialog-msw.c (vars_of_dialog_mswindows):
12542         New file dialog symbols, vars.
12543
12544         * dialog-x.c:
12545         * dialog-x.c (maybe_run_dbox_text_callback):
12546         * dialog-x.c (dbox_descriptor_to_widget_value):
12547         * dialog-x.c (x_make_dialog_box_internal):
12548         * dialog-x.c (console_type_create_dialog_x):
12549         Mule-ize entire file.
12550         Redo to support question dialog syntax.
12551         [6].
12552
12553         * dialog.c:
12554         * dialog.c (Fmake_dialog_box_internal):
12555         * dialog.c (syms_of_dialog):
12556         Kill old popup-dialog-box, replace with new primitive.
12557         Just call device method or signal error.
12558
12559         * eldap.c (Fldap_open):
12560         * eldap.c (Fldap_search_basic):
12561         * eldap.c (Fldap_add):
12562         * eldap.c (Fldap_modify):
12563         [1].
12564         [7].
12565
12566         * emacs.c:
12567         * emacs.c (make_arg_list_1):
12568         * emacs.c (make_arg_list):
12569         Mule-ize call to dll_init().
12570         [6].
12571         [8].
12572
12573         * emacs.c (make_argc_argv):
12574         * emacs.c (free_argc_argv):
12575         * emacs.c (init_cmdargs):
12576         * emacs.c (main_1):
12577         * emacs.c (Fkill_emacs):
12578         * emacs.c (Fdump_emacs):
12579         Update comments about what can be used in syms_* etc.
12580         Call init_win32() when necessary.
12581         Fix up MS Win dialog box in kill-buffer to actually work right.
12582         [7].
12583
12584         * eval.c:
12585         * eval.c (For):
12586         * eval.c (Fand):
12587         * eval.c (Fprogn):
12588         * eval.c (Fprog1):
12589         * eval.c (Fprog2):
12590         * eval.c (FletX):
12591         * eval.c (Flet):
12592         * eval.c (condition_case_3):
12593         * eval.c (Feval):
12594         * eval.c (function_argcount):
12595         * eval.c (funcall_lambda):
12596         [1].
12597
12598         * eval.c (type_error): New.
12599         * eval.c (maybe_type_error): New.
12600         * eval.c (continuable_type_error): New.
12601         * eval.c (maybe_continuable_type_error): New.
12602         * eval.c (type_error_with_frob): New.
12603         * eval.c (maybe_type_error_with_frob): New.
12604         * eval.c (continuable_type_error_with_frob): New.
12605         * eval.c (maybe_continuable_type_error_with_frob): New.
12606         New functions for use with structured errors.
12607
12608         * event-Xt.c:
12609         * event-Xt.c (x_event_to_emacs_event):
12610         Buttons are now modifiers too.
12611
12612         * event-Xt.c (emacs_Xt_current_event_timestamp):
12613         Implement new event method.
12614         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12615
12616         * event-msw.c:
12617         * event-msw.c (ntpipe_shove_writer): [5].
12618         * event-msw.c (mswindows_enqueue_mouse_button_event):
12619         * event-msw.c (mswindows_drain_windows_queue):
12620         * event-msw.c (mswindows_wnd_proc): [7].
12621         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12622         * event-msw.c (mswindows_modifier_state):
12623         Throughout: support new button modifiers.
12624
12625         * event-msw.c (emacs_mswindows_current_event_timestamp):
12626         Implement new event method.
12627         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12628
12629         * event-stream.c:
12630         * event-stream.c (event_stream_current_event_timestamp): New.
12631         * event-stream.c (maybe_kbd_translate): New functionality.
12632         * event-stream.c (vars_of_event_stream):
12633         Document new kbd-translate-table functionality.
12634
12635         * event-stream.c (Fcurrent_event_timestamp): New.
12636         New primitive for use in fabricated events.
12637         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12638
12639         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12640
12641         * events.c:
12642         * events.c (Fmake_event):
12643         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12644         [1].
12645         [9].
12646
12647         * events.c (format_event_object): fix gcc warnings.
12648
12649         * events.c (Fevent_timestamp): Document new primitives.
12650
12651         * events.c (TIMESTAMP_HALFSPACE): New.
12652
12653         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12654         comparing timestamps correctly (half-space algorithm).
12655
12656         * events.c (Fevent_modifier_bits): Doc fix.
12657
12658         * events.c (Fevent_modifiers): Major doc addition.
12659         * events.c (event_x_y_pixel_internal): Typo fix.
12660         * events.c (syms_of_events): Declare new primitives.
12661
12662         * events.h:
12663         Update long comment for button modifiers, timestamps.
12664
12665         * events.h (struct event_stream):
12666         New current_event_timestamp method.
12667
12668         * extents.c:
12669         * extents.c (extent_in_region_p):
12670         * extents.c (decode_extent):
12671         * extents.c (Fset_extent_parent):
12672         * extents.c (decode_map_extents_flags):
12673         Fix gcc warnings.
12674         [9].
12675
12676         * extents.c (struct extent_at_arg):
12677         * extents.c (decode_extent_at_flag):
12678         * extents.c (extent_at_mapper):
12679         * extents.c (extent_at_bytind):
12680         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12681         * extents.c (Fextents_at): New primitive. [9].
12682         * extents.c (symbol_to_glyph_layout): [9].
12683         Support new primitive `extents-at'.
12684
12685
12686         * extents.c (get_text_property_bytind):
12687         extent_at_bytind has another arg.
12688         [9].
12689
12690         * extents.c (syms_of_extents): New primitive.
12691
12692         * file-coding.c (Fmake_coding_system): [1].
12693         * file-coding.c (subsidiary_coding_system): fix gcc warning
12694         * file-coding.c (syms_of_file_coding): [2].
12695
12696         * fileio.c (Fexpand_file_name):
12697         * fileio.c (Fsysnetunam):
12698         * fileio.c (Ffile_exists_p):
12699         * fileio.c (Ffile_executable_p):
12700         * fileio.c (Fverify_visited_file_modtime):
12701         Clean up GCPROing.
12702
12703         * fileio.c (syms_of_fileio): [2].
12704
12705         * filelock.c (lock_file_1):
12706         * filelock.c (current_lock_owner):
12707         * filelock.c (lock_if_free):
12708         * filelock.c (lock_file):
12709         * filelock.c (unlock_file):
12710         Clean up GCPROing.
12711
12712         * fns.c (concat): Fix gcc warning.
12713
12714         * fns.c (Fmember):
12715         * fns.c (Fold_member):
12716         * fns.c (Fmemq):
12717         * fns.c (Fold_memq):
12718         * fns.c (memq_no_quit):
12719         * fns.c (Fassoc):
12720         * fns.c (Fold_assoc):
12721         * fns.c (Fassq):
12722         * fns.c (Fold_assq):
12723         * fns.c (assq_no_quit):
12724         * fns.c (Frassoc):
12725         * fns.c (Fold_rassoc):
12726         * fns.c (Frassq):
12727         * fns.c (Fold_rassq):
12728         * fns.c (rassq_no_quit):
12729         * fns.c (Fdelete):
12730         * fns.c (Fold_delete):
12731         * fns.c (Fdelq):
12732         * fns.c (Fold_delq):
12733         * fns.c (delq_no_quit):
12734         * fns.c (Fremassoc):
12735         * fns.c (Fremassq):
12736         * fns.c (remassq_no_quit):
12737         * fns.c (Fremrassoc):
12738         * fns.c (Fremrassq):
12739         * fns.c (remrassq_no_quit):
12740         * fns.c (Freverse):
12741         * fns.c (mapcar1):
12742         [1].
12743
12744         * frame-msw.c (mswindows_init_frame_1):
12745         * frame-msw.c (mswindows_delete_frame):
12746         Register popups with dialog code so keyboard traversing works.
12747
12748         * frame-tty.c (tty_raise_frame_no_select): [1].
12749
12750         * frame-x.c:
12751         * frame-x.c (x_set_frame_text_value):
12752         * frame-x.c (x_set_frame_properties):
12753         * frame-x.c (x_create_widgets):
12754         [7].
12755
12756         * frame.c:
12757         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12758
12759         * frame.h (wrap_frame): New.
12760         Macro like wrap_device.
12761
12762         * general.c:
12763         * general.c (SYMBOL):
12764         * general.c (syms_of_general):
12765         Major reorg.  This is now just a wrapper and symbols themselves
12766         are listed in general-slots.h.
12767
12768         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12769         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12770
12771         * glyphs-msw.c (mswindows_native_layout_instantiate):
12772         Add DS_CONTROL so keyboard traversal will work.
12773
12774         * glyphs-widget.c:
12775         * glyphs-widget.c (syms_of_glyphs_widget):
12776         Move some symbols to general-slots.h.
12777
12778         * glyphs-x.c:
12779         * glyphs-x.c (xbm_instantiate_1):
12780         * glyphs-x.c (x_xbm_instantiate):
12781         * glyphs-x.c (x_xface_instantiate):
12782         * glyphs-x.c (autodetect_instantiate):
12783         * glyphs-x.c (cursor_font_instantiate):
12784         * glyphs-x.c (x_update_widget):
12785         * glyphs-x.c (x_widget_instantiate):
12786         * glyphs.c (bitmap_to_lisp_data):
12787         * glyphs.c (pixmap_to_lisp_data):
12788         [7].
12789
12790         * glyphs.c (syms_of_glyphs):
12791         [2].
12792
12793         * gui-x.c:
12794         * gui-x.c (print_widget_value):
12795         * gui-x.c (menu_separator_style_and_to_external):
12796         * gui-x.c (add_accel_and_to_external):
12797         * gui-x.c (button_item_to_widget_value):
12798         * gui-x.c (gui_items_to_widget_values_1):
12799         * gui-x.c (gui_items_to_widget_values):
12800         * gui-x.c (syms_of_gui_x):
12801         * gui-x.c (vars_of_gui_x):
12802         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12803         [9].
12804
12805         * gui-x.h:
12806         Muleize, prototype changes matching gui-x.c.
12807
12808         * gui.c:
12809         * gui.c (separator_string_p):
12810         * gui.c (gui_item_add_keyval_pair):
12811         * gui.c (make_gui_item_from_keywords_internal):
12812         * gui.c (signal_too_long_error):
12813         * gui.c (parse_gui_item_tree_item):
12814         * gui.c (syms_of_gui):
12815         * gui.c (vars_of_gui):
12816         * gui.h:
12817         menu-no-selection-hook moved here (used by MSWin).
12818         Move some symbols to general-slots.h.
12819         [6].
12820         [9].
12821
12822         * insdel.c (get_buffer_pos_char):
12823         * insdel.c (get_buffer_range_char):
12824         Add GC comments.
12825
12826         * keymap.c (keymap_lookup_directly):
12827         * keymap.c (keymap_store):
12828         * keymap.c (ensure_meta_prefix_char_keymapp):
12829         * keymap.c (describe_map):
12830         * keymap.h:
12831         Support new button modifiers.
12832
12833         * lisp-disunion.h (wrap_object):
12834         * lisp-disunion.h (XSETOBJ):
12835         Rename make_obj to wrap_object.
12836
12837         * lisp-union.h:
12838         * lisp-union.h (make_int):
12839         * lisp-union.h (make_char):
12840         Support wrap_object.
12841
12842         * lisp.h:
12843         * lisp.h (LIST_LOOP):
12844         * lisp.h (EXTERNAL_LIST_LOOP):
12845         * lisp.h (LIST_LOOP_2):
12846         * lisp.h (EXTERNAL_LIST_LOOP_1):
12847         * lisp.h (EXTERNAL_LIST_LOOP_2):
12848         * lisp.h (EXTERNAL_LIST_LOOP_3):
12849         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12850         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12851         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12852         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12853         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12854         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12855         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12856         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12857         * lisp.h (struct Lisp_Symbol):
12858         * lisp.h (maybe_continuable_error_with_frob):
12859         Fix up section comments.
12860         Add new types for char to indicate usage.
12861         Delete symbols auto-generated from general-slots.h.
12862         Add prototypes for structured error functions.
12863         Add long comments describing looping macros and change interface
12864         so that lvalues are automatically declared.
12865         Add NO_DECLARE macro in case callers want to declare lvalues
12866         themselves.
12867
12868         * lread.c (read_syntax_error):
12869         * lread.c (continuable_read_syntax_error):
12870         * lread.c (read_structure):
12871         * lread.c (sequence_reader):
12872         * lread.c (read_list_conser):
12873         * lread.c (read_compiled_function):
12874         Rename syntax_error and continuable_syntax_error to avoid clash
12875         with same-named structured error functions.
12876
12877         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12878         * menubar-msw.c (populate_menu_add_item):
12879         * menubar-msw.c (populate_or_checksum_helper):
12880         [5].
12881         [9].
12882
12883         * menubar-x.c:
12884         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12885         Mule-ize whole file.
12886
12887         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12888
12889         * mule-charset.c (Fmake_charset):
12890         * mule-wnnfns.c (Fwnn_set_param):
12891         [1].
12892
12893         * ntproc.c (create_child):
12894         * ntproc.c (Fwin32_set_current_locale):
12895         Add comments portending doom.
12896
12897         * objects-msw.c:
12898         * objects-msw.c (old_font_enum_callback_2):
12899         * objects-msw.c (font_enum_callback_1):
12900         * objects-msw.c (mswindows_enumerate_fonts):
12901         [5].
12902
12903         * objects-x.c:
12904         * objects-x.c (allocate_nearest_color):
12905         * objects-x.c (x_parse_nearest_color):
12906         * objects-x.c (x_initialize_color_instance):
12907         * objects-x.c (x_print_color_instance):
12908         * objects-x.c (x_finalize_color_instance):
12909         * objects-x.c (x_valid_color_name_p):
12910         * objects-x.c (x_initialize_font_instance):
12911         * objects-x.c (x_print_font_instance):
12912         * objects-x.c (valid_x_font_name_p):
12913         * objects-x.c (truename_via_FONT_prop):
12914         * objects-x.c (truename_via_random_props):
12915         * objects-x.c (truename_via_XListFonts):
12916         * objects-x.c (x_font_truename):
12917         * objects-x.c (x_font_instance_truename):
12918         * objects-x.c (x_font_instance_properties):
12919         * objects-x.c (x_list_fonts):
12920         * objects-x.c (x_find_charset_font):
12921         Mule-ize entire file.
12922         [7].
12923
12924         * objects-x.h:
12925         Mule-verify.
12926
12927         * print.c:
12928         * print.c (std_handle_out_external):
12929         * print.c (debug_print_no_newline):
12930         * print.c (syms_of_print):
12931         Output to all debugger kinds in debug-print.
12932         Fix console-output code under MSWin to actually work.
12933
12934         * process-nt.c (send_signal):
12935         * process-nt.c (nt_create_process):
12936         Use newer Unicode macros.
12937
12938         * process-unix.c (unix_create_process):
12939         * process-unix.c (unix_canonicalize_host_name):
12940         * process-unix.c (unix_open_network_stream):
12941         [7].
12942
12943         * scrollbar-x.c:
12944         Mule-verify.
12945
12946         * search.c (syms_of_search):
12947         [2].
12948
12949         * select-msw.c (mswindows_destroy_selection):
12950         Use LIST_LOOP_2.
12951
12952         * select-x.c (symbol_to_x_atom):
12953         [7].
12954
12955         * select.c (syms_of_select):
12956         [2].
12957
12958         * sound.c (Fplay_sound_file):
12959         [7].
12960
12961         * specifier.c:
12962         * specifier.c (decode_specifier_type):
12963         * specifier.c (Fvalid_specifier_locale_type_p):
12964         * specifier.c (check_valid_locale_or_locale_type):
12965         * specifier.c (decode_locale):
12966         * specifier.c (decode_locale_type):
12967         * specifier.c (decode_locale_list):
12968         * specifier.c (check_valid_domain):
12969         * specifier.c (decode_specifier_tag_set):
12970         * specifier.c (Fcanonicalize_tag_set):
12971         * specifier.c (Fdefine_specifier_tag):
12972         * specifier.c (Fspecifier_tag_predicate):
12973         * specifier.c (check_valid_inst_list):
12974         * specifier.c (check_valid_spec_list):
12975         * specifier.c (decode_how_to_add_specification):
12976         * specifier.c (check_modifiable_specifier):
12977         * specifier.c (specifier_add_spec):
12978         * specifier.c (boolean_validate):
12979         * specifier.c (display_table_validate):
12980         [9].
12981
12982         * specifier.c (syms_of_specifier):
12983         Move some symbols to general-slots.h.
12984         [2].
12985
12986         * symbols.c:
12987         * symbols.c (Fmapatoms):
12988         * symbols.c (Fapropos_internal):
12989         Add GCPROs.
12990
12991         * symbols.c (set_default_buffer_slot_variable):
12992         * symbols.c (set_default_console_slot_variable):
12993         [1].
12994
12995         * symbols.c (defsymbol_massage_name_1):
12996         * symbols.c (defkeyword_massage_name):
12997         * symbols.c (deferror_1):
12998         * symbols.c (deferror):
12999         * symbols.c (deferror_massage_name_and_message):
13000         * symeval.h:
13001         * symeval.h (DEFSYMBOL):
13002         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
13003
13004         * symbols.c (syms_of_symbols):
13005         [2].
13006
13007         * symsinit.h:
13008         * symsinit.h (init_win32): New.
13009         Also new is syms_of_dialog_mswindows.
13010
13011         * syswindows.h:
13012         Add new Unicode macros, missing Cygwin wide-char functions,
13013         convenience conversion macros for Qmswindows_tstr, macros for
13014         encapsulating required MSWin <-> Cygwin filename conversions,
13015         prototype for dynamically-extracted (not in NT 3.51) functions.
13016
13017         * toolbar-x.c:
13018         Mule-verify.
13019
13020         * tooltalk.c (Fadd_tooltalk_message_arg):
13021         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
13022         * tooltalk.c (Fadd_tooltalk_pattern_arg):
13023         [7].
13024
13025         * tooltalk.c (syms_of_tooltalk):
13026         [2].
13027
13028         * unexnt.c:
13029         * unexnt.c (unexec):
13030         Fix up headers, declaration of unexec() to be more standard.
13031
13032 2000-07-20  Martin Buchholz  <martin@xemacs.org>
13033
13034         * offix.h: Revert change to guard macros - they're used in offix.c!
13035
13036 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13037
13038         * lisp.h: Defsubred Fdelete.
13039
13040         * console-msw.h:  (msprinter_default_printer): Added.
13041
13042         * console-msw.c (msprinter_canonicalize_console_connection):
13043         (msprinter_canonicalize_device_connection): Added.
13044
13045         * device-msw.c (msprinter_default_printer):
13046         (Fmswingows_get_default_printer):
13047         (signal_enum_priner_error):
13048         (Fmswingows_printer_list): Added.
13049
13050 2000-07-19  Martin Buchholz <martin@xemacs.org>
13051
13052         * XEmacs 21.2.35 is released.
13053
13054 2000-07-19  Martin Buchholz  <martin@xemacs.org>
13055
13056         * select-x.c (x_handle_selection_request):
13057         Text selected in xemacs and pasted into xterm failed to appear.
13058         Spelling fixes and cosmetic changes.
13059
13060 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13061
13062         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
13063         XEmacs frame (fix for doubling chars in dialog boxes).
13064
13065 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
13066
13067         * select.c (select_convert_in, select_convert_out):
13068         Don't call intern() every time.
13069
13070         * select.c (Qselect_convert_in, Qselect_convert_out): New.
13071         * select.c (vars_of_select): Initialise them.
13072
13073 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
13074
13075         * select.c (selection-coercible-types): New.
13076
13077         * select.c (own-selection-internal):
13078         * select.c (get-selection-internal):
13079         MULE bug fix - these should default to COMPOUND_TEXT and not
13080         STRING for MULE. I think.
13081
13082         * select.c (select_convert_out): Use selection-coercible-types
13083         to find types that we can attempt to perform coercions on.
13084
13085 2000-07-18  Martin Buchholz  <martin@xemacs.org>
13086
13087         * mule-wnnfns.c:
13088         * mule-canna.c:
13089         Add coding: cookie to identify encoding.
13090
13091         * mule-canna.c (CANNA_mode_keys): make static.
13092         Use proper prototypes, even for functions of no arguments.
13093         Remove external prototype for Fding().
13094
13095         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
13096
13097         * select.c (syms_of_select): Add missing DEFSUBR.
13098
13099 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
13100
13101         * select.c (get_selection_internal, own_selection_internal):
13102         Make the type default to STRING, rather than placing a nil type
13103         into Vselection_alist.
13104
13105 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
13106
13107         * gpmevent.c (tty_selection_exists_p):
13108         * gpmevent.c (tty_own_selection):
13109         Updated parameter lists.
13110
13111 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
13112
13113         * select.h (selection-alist): Removed declaration.
13114
13115         * select.h (get_local_selection):
13116         * select.c (get_local_selection):
13117         Made static.
13118
13119         * select.h (convert_selection): Removed declaration.
13120         * select.c (convert_selection): Removed.
13121         This function belongs in Lisp.
13122
13123         * select.h (select_convert_in): Declare.
13124         * select.h (select_convert_out): Declare.
13125         * select.c (select_convert_in): New.
13126         * select.c (select_convert_out): New.
13127         New conversion functions for other files to call.
13128
13129         * select.h (select_notify_buffer_kill): Declare.
13130         * select.c (select_notify_buffer_kill): New.
13131         New functions that get called from kill-buffer.
13132
13133         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
13134         X-specific lisp code.
13135
13136         * select.h: Declare some of the lisp-visible functions for
13137         external use.
13138
13139         * select.c (clean_local_selection_data): Removed. This was
13140         a disgusting function, and previously should have been in
13141         select-x.c in any case. The functionality is now provided
13142         in select-convert-from-integer (select.el).
13143
13144         * select.c (available-selection-types): Fixed stupidity where
13145         INTEGER and ATOM got added twice. Also add STRING when we see an
13146         extent.
13147
13148         * select.c (get-selection-internal): Removed symbol stripping. No
13149         longer causes conversion when data comes from the internal cache.
13150
13151         * select.c (syms_of_select): Added new functions.
13152
13153         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
13154         error checking - previously this called abort!
13155
13156         * select-x.c (x_own_selection): Changed comment.
13157
13158         * select-x.c (x_handle_selection_request): Use select_convert_out.
13159         Don't mess with selection-alist; it's an internal variable of select.c.
13160
13161         * select-x.c (x_get_foreign_selection): Use select_convert_in.
13162
13163         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
13164         rather than messing with selection-alist.
13165
13166         * select-msw.c (mswindows_get_foreign_selection):
13167         Use TO_INTERNAL_FORMAT rather than hacking.
13168
13169 2000-07-14  Martin Buchholz  <martin@xemacs.org>
13170
13171         * process-unix.c (unix_open_multicast_group):
13172         (unix_open_multicast_group): Remove useless casts.
13173
13174 2000-07-13  Martin Buchholz  <martin@xemacs.org>
13175
13176         * sound.c (Fplay_sound): Fix `unused variable' warning.
13177
13178         * emacs.c (main): Use correct type for _environ on SCO5.
13179
13180 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
13181
13182         * console.h (own_selection_method):
13183         * console.h (selection_exists_p_method):
13184         * console.h (available_selection_types_method): New.
13185         * console.h (register_selection_data_type_method): New.
13186         * console.h (selection_data_type_name): New.
13187
13188         * console-msw.h (mswindows_destroy_selection): Declare it.  New
13189         function & alist to track GlobalAlloc()'d handles that need
13190         releasing when the clipboard data gets replaced or emptied.
13191
13192         * event-msw.c (mswindows_wnd_proc): Call it.
13193
13194         * lisp.h, general.c (Qappend): New symbol representing a
13195         `how-to-add' mode.
13196
13197         * select.c (own-selection-internal):
13198         * select.c (selection-exists-p):
13199         * select.c (available-selection-types): New.
13200         * select.c (register-selection-data-type): New.
13201         * select.c (selection-data-type-name): New.  New functions to deal
13202         with device-specific selection data formats.
13203         * select.c (selection-converter-out-alist): Renamed.
13204         * select.c (selection-converter-in-alist): New.
13205         * select.c (selection-appender-alist): New.  Added new alists.
13206         * select.c (syms_of_select, vars_of_select): Added new symbols &
13207         variables.
13208         * select.c (get_local_selection): Split.
13209         * select.c: Removed spurious type checking - selections may now be
13210         of any type, not just strings.
13211         * select.c (own-selection-internal):
13212
13213         * select.h, select.c (convert_selection): New. Created
13214         convert_selection() function based on get_local_selection().
13215         * select.h, select.c (QCF_*): New symbols representing mswindows
13216         clipboard formats.
13217         * select.h, select.c (Qreplace_all, Qreplace_existing): New
13218         symbols representing `how-to-add' modes.
13219
13220         * select-msw.c (x_sym_p): New.
13221         * select-msw.c (symbol_to_ms_cf): New.
13222         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
13223         symbols & clipboard formats. Can also handle string names.
13224         * select-msw.c (mswindows_own_selection):
13225         * select-msw.c (mswindows_selection_exists_p):
13226         Added `data-type' parameter. Use it.
13227         * select-msw.c (mswindows_available_selection_types): New.
13228         * select-msw.c (mswindows_register_selection_data_type): New.
13229         * select-msw.c (mswindows_selection_data_type_name): New.
13230         * select-msw.c (mswindows_own_selection):
13231         * select-msw.c (mswindows_get_foreign_selection):
13232         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
13233         * select-msw.c (console_create_select_mswindows): Added new methods.
13234         * select-msw.c (mswindows_destroy_selection): New.
13235         * select-msw.c (Vhandle_alist): New list.
13236         * select-msw.c (mswindows_own_selection):
13237
13238         * select-x.c (x_own_selection):
13239         * select-x.c (x_selection_exists_p):
13240         * select-x.c: Added some comments about maybe using new
13241         functionality.
13242         * select-x.c (x_own_selection):
13243
13244         * specifier.c: Remove definition of Qappend (now in general.c)
13245         * specifier.c (syms_of_specifier): Remove Qappend.
13246
13247 2000-07-12  Martin Buchholz  <martin@xemacs.org>
13248
13249         * config.h.in: Add socklen_t.
13250
13251         * s/decosf4-0.h: No special compiler flags needed or desired.
13252         In particular, undefine _BSD for DEC OSF 4.0.
13253
13254 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13255
13256         * redisplay-msw.c (msprinter_frame_output_end): Added.
13257         (console_type_create_redisplay_mswindows): Referred the above.
13258
13259         * frame.c (setup_frame_without_minibuffer): Do not create a
13260         default minibuffer frame on a printer device.
13261
13262         * frame-msw.c (apply_dc_geometry): Added.
13263         (msprinter_start_page):
13264         (msprinter_init_frame_3):
13265         (msprinter_eject_page): Use it.
13266
13267         * console-msw.h (struct msprinter_frame): Added pix_left and top,
13268         and removed residual duplex and orientation properties.
13269
13270 2000-07-11  Martin Buchholz  <martin@xemacs.org>
13271
13272         * eval.c (function_argcount): Work around a DEC CC compiler bug.
13273
13274         * unexalpha.c: Remove system prototypes from C sources!
13275
13276 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
13277
13278         * eval.c: Remove references to M-x edit-options in DEFUNs for
13279         `defvar' and `defconst'.
13280
13281 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13282
13283         * config.h.in: Remove SMART_INCLUDE hackery.
13284
13285         PostgreSQL hacking:
13286         * config.h.in: Don't use SMART_INCLUDE.
13287
13288         * postgresql.h: Include libpq-fe.h here.  Fix typo.
13289         * inline.c: Simply #include "postgresql.h"
13290         * postgresql.c:
13291         - Don't use SMART_INCLUDE
13292         - Use simply "const".
13293         - Use standard doc string conventions.
13294         - Use correct type for result of PQstatus.
13295
13296 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13297
13298         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
13299
13300         C++ compilation changes.
13301         * config.h.in (EXTERN_C): Define.
13302         * config.h.in (not): This is also a C++ keyword.
13303         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
13304         * cm.c: Use EXTERN_C.
13305         * redisplay-tty.c: Use EXTERN_C.
13306         * sysdep.c: Use EXTERN_C.  Remove Gould support.
13307
13308 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13309
13310         * general.c: Remove duplicate definition for Qfunction.
13311
13312 2000-07-08  Ben Wing  <ben@xemacs.org>
13313
13314         * device-msw.c (msprinter_init_device):
13315         * device-msw.c (sync_printer_with_devmode):
13316         * device-msw.c (handle_devmode_changes):
13317         * device-msw.c (print_dialog_worker):
13318         * device-msw.c (Fmsprinter_apply_settings):
13319         * device-msw.c (hash_devmode):
13320         * device-msw.c (Fmsprinter_settings_despecialize):
13321         use Qmswindows_tstr, not Qctext.
13322
13323         * vm-limit.c (check_memory_limits):
13324         avoid infinite loop printing warning messages.
13325
13326 2000-07-05  Craig Lanning  <lanning@scra.org>
13327
13328         * Makefile.in.in: Add support for including the Windows resources
13329         when building with the cygwin and mingw targets.
13330
13331         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
13332         not set or not correct.
13333         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
13334         (init_initial_directory): Don't try to use $PWD on the
13335         WIN32_NATIVE target.
13336
13337         * s\cygwin32.h:
13338         [[Add -mwindows to eliminate console window.]] not required --ben
13339         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13340         (MAIL_USE_POP): removed; now handled by configure.
13341
13342         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
13343         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
13344         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13345         (MAIL_USE_POP): removed; now handled by configure.
13346         (ENCAPSULATE_STAT): from Dan Holmsand, added.
13347         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
13348         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
13349         constant string.
13350         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
13351         up from <winsock.h> via systime.h.
13352         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
13353         (getpagesize): from Dan Holmsand, added.
13354         Added #endif which was left dangling by Ben's mega patch; added
13355         comment to help prevent this in the future.
13356
13357         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
13358
13359 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13360
13361         * console-msw.h (struct mswindows_device): Removed unnecessary
13362         cached device geometry values.
13363         Added update_tick and an accessor macro.
13364         (Lisp_Devmode): Added lrecord declaration.
13365         (struct msprinter_device): Contain devmode as a Lisp object.
13366         Added mswindows_get_selected_frame_hwnd();
13367
13368         * console.h (struct console_methods): Indentation nitpicking.
13369
13370         * device-msw.c (mswindows_init_device): Do not initialize geometry
13371         cache. Initialize update tick.
13372         (mswindows_device_system_metrics): Ask the device for its geometry.
13373         (global_free_2_maybe):
13374         (devmode_to_hglobal):
13375         (handle_printer_changes):
13376         (ensure_not_printing):
13377         (print_dialog_worker):
13378         (Fmsprinter_print_setup_dialog):
13379         (Fmsprinter_print_dialog):
13380         (plist_get_margin):
13381         (plist_set_margin):
13382         (Fmsprinter_page_setup_dialog): Added functions.
13383         (sync_printer_with_devmode):
13384         (handle_devmode_changes):
13385         (Fmsprinter_get_settings):
13386         (Fmsprinter_select_settings):
13387         (Fmsprinter_apply_settings):
13388         (allocate_devmode):
13389         (Fmsprinter_settings_copy):
13390         (Fmsprinter_settings_despecialize):
13391         (print_devmode):
13392         (finalize_devmode):
13393         (equal_devmode):
13394         (hash_devmode): Added functions
13395         (syms_of_device_mswindows): Init devmode lrecord class.
13396
13397         * device.h: Added an exfun for find-device.
13398
13399         * event-msw.c (mswindows_wnd_proc): Do not update the cached
13400         geometry; although, recreate the device compatible DC.
13401
13402         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13403         (msprinter_init_frame_3):
13404         (msprinter_frame_property):
13405         (msprinter_internal_frame_property_p):
13406         (msprinter_frame_properties):
13407         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13408         print job properties (will move to device settings).
13409
13410         * lisp.h: Added symbols.
13411
13412         * general.c (syms_of_general): Declared them.
13413
13414         * hash.c (string_hash): Added.
13415
13416         * lrecord.h (lrecord_type): Added devmode lrecord type.
13417
13418 2000-07-02  Mike Sperber <mike@xemacs.org>
13419
13420         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13421         FreeBSD 4.0.
13422
13423 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13424
13425         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13426         integer.
13427
13428 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13429
13430         * data.c (Fstring_to_number): Don't recognize floating point if
13431         base is not 10.
13432
13433 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13434
13435         * glyphs-widget.c (tab_control_query_geometry):
13436         (widget_query_geometry):
13437         (button_query_geometry):
13438         * glyphs.c (text_query_geometry):
13439         Enforce type correctness.
13440
13441 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13442
13443         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13444         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13445
13446 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13447
13448         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13449         conflicts with gcc's fixincluded version of FOO.h.
13450
13451         * glyphs.h (image_instance_geometry): Remove trailing `,'
13452
13453 2000-06-08  Mike Alexander  <mta@arbortext.com>
13454
13455         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13456         (shove_thread): Don't write the same output twice
13457         (make_ntpipe_output_stream): Increase priority of shove thread
13458         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13459         chance to run
13460         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13461         it.
13462
13463 2000-06-12  Ben Wing  <ben@xemacs.org>
13464
13465         * s\mingw32.h (sigset):
13466         * s\windowsnt.h (sigset):
13467         rename msw_ to mswindows_ for consistency with general convention.
13468
13469 2000-06-12  Ben Wing  <ben@xemacs.org>
13470
13471         * console-msw.c:
13472         * console-msw.c (mswindows_get_console_hwnd):
13473         * console-msw.c (mswindows_ensure_console_allocated):
13474         * console-msw.c (mswindows_hide_console):
13475         * console-msw.c (mswindows_show_console):
13476         * console-msw.c (mswindows_ensure_console_buffered):
13477         * console-msw.c (mswindows_output_console_string):
13478         * console-msw.c (mswindows_windows9x_p):
13479         * console-msw.h:
13480         * device-msw.c (mswindows_get_workspace_coords):
13481         * device-msw.c (mswindows_device_system_metrics):
13482         * dialog-msw.c (mswindows_popup_dialog_box):
13483         * event-msw.c (mswindows_wnd_proc):
13484         * frame-msw.c (mswindows_size_frame_internal):
13485         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13486         * menubar-msw.c (displayable_menu_item):
13487         * menubar-msw.c (mswindows_char_is_accelerator):
13488         * nt.c:
13489         * nt.c (mswindows_sigset):
13490         * nt.c (mswindows_sigrelse):
13491         * nt.c (mswindows_sigpause):
13492         * nt.c (mswindows_raise):
13493         * nt.c (timer_proc):
13494         * ntproc.c:
13495         * ntproc.c (find_child_console):
13496         * ntproc.c (sys_kill):
13497         * print.c:
13498         * print.c (std_handle_out_external):
13499         * process-nt.c (find_child_console):
13500         * process-nt.c (send_signal_the_95_way):
13501         * process-nt.c (ensure_console_window_exists):
13502         * process-nt.c (nt_create_process):
13503         * syssignal.h:
13504         rename msw_ to mswindows_ for consistency with general convention.
13505
13506         * emacs.c:
13507         * dumper.c:
13508         include nt.h, not syswindows.h.
13509
13510         * nt.c (mswindows_fstat):
13511         * nt.c (mswindows_stat):
13512         prefix mswindows_ instead of attempting to directly override the
13513         library functions.  fix declarations.
13514
13515         * nt.h:
13516         include syswindows.h.  move some sysdep.h stuff here.
13517
13518         * ntheap.h:
13519         include syswindows.h, not <windows.h>.
13520
13521         * ntplay.c:
13522         clean up headers.
13523
13524         * sysdep.c:
13525         clean up headers.
13526
13527         * sysdep.c (sys_fstat):
13528         * sysdep.c (sys_stat):
13529         call mswindows versions when appropriate.
13530
13531         * sysdep.h:
13532         move mswin decls to nt.h.
13533
13534         * syswindows.h:
13535         add long comment describing appropriate use of the various windows
13536         headers.
13537
13538 2000-06-11  Ben Wing  <ben@xemacs.org>
13539
13540         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13541
13542 2000-06-10  Ben Wing  <ben@xemacs.org>
13543
13544         * Makefile.in.in (release):
13545         Correction to make sure xemacs.exe always dumped when correct.
13546
13547         * alloca.c:
13548         * balloon_help.c:
13549         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13550
13551         * buffer.c (set_buffer_internal):
13552         [[[[2]]]]: Remove HAVE_FEP code.
13553
13554         * buffer.c (init_initial_directory):
13555         [3].
13556
13557         * bytecode.c:
13558         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13559         individual files.
13560
13561         * callproc.c:
13562         * callproc.c (call_process_cleanup):
13563         * callproc.c (Fold_call_process_internal):
13564         * callproc.c (child_setup):
13565         * callproc.c (getenv_internal):
13566         * callproc.c (init_callproc):
13567         * callproc.c (vars_of_callproc):
13568         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13569         __CYGWIN32__ -> CYGWIN.
13570         DOS_NT -> WIN32_NATIVE.
13571         Remove MSDOS support/references, converting to WIN32_NATIVE
13572           where correct.
13573         __MINGW32__ -> MINGW.
13574         Fix windows.h includes.
13575         Remove bogus HAVE_NTGUI.
13576
13577         * config.h.in:
13578         [2].
13579
13580         * console-msw.c:
13581         mswindows_message_outputted added for use in allowing startup
13582         errors on the console to be seen.
13583
13584         * console-msw.c (msw_ensure_console_allocated):
13585         * console-msw.c (msw_output_console_string):
13586         * console-msw.c (DHEADER):
13587         * console-msw.c (DOPAQUE_DATA):
13588         * console-msw.c (DEVENT):
13589         * console-msw.c (DCONS):
13590         * console-msw.c (DCONSCDR):
13591         * console-msw.c (DSTRING):
13592         * console-msw.c (DVECTOR):
13593         * console-msw.c (DSYMBOL):
13594         * console-msw.c (DSYMNAME):
13595         Fix warnings.
13596
13597         * console-stream.c (stream_init_console):
13598         Fix text/binary problems.
13599
13600         * device-msw.c:
13601         * device-msw.c (mswindows_finish_init_device):
13602         * device-msw.c (mswindows_delete_device):
13603         [1].
13604
13605         * device.c (handle_asynch_device_change):
13606         [3].
13607
13608         * dgif_lib.c:
13609         * dgif_lib.c (DGifOpenFileName):
13610         * dgif_lib.c (DGifOpenFileHandle):
13611         * dgif_lib.c (DGifGetLine):
13612         * dgif_lib.c (DGifGetPixel):
13613         Added config.h/lisp.h, fix up includes.
13614         [1].
13615
13616         * dired-msw.c:
13617         [4].
13618
13619         * dired.c:
13620         * dired.c (file_name_completion):
13621         * dired.c (Ffile_attributes):
13622         * dired.c (syms_of_dired):
13623         [1].
13624
13625         * dumper.c:
13626         * dumper.c (pdump_file_unmap):
13627         * dumper.c (pdump_load):
13628         [1].
13629
13630         * editfns.c:
13631         * editfns.c (Ftemp_directory):
13632         * editfns.c (user_login_name):
13633         * editfns.c (Fuser_real_login_name):
13634         * editfns.c (get_home_directory):
13635         [1].
13636
13637         * elhash.c (finish_marking_weak_hash_tables):
13638         [[[[5]]]]: Fix GCC warnings.
13639
13640         * emacs.c:
13641         * emacs.c (mswindows_handle_hardware_exceptions):
13642         * emacs.c (make_arg_list_1):
13643         * emacs.c (main_1):
13644         * emacs.c (Fkill_emacs):
13645         * emacs.c (Fdump_emacs):
13646         [1].
13647         Fix problems with nested crashes, add long comment.
13648
13649         * event-Xt.c (init_event_Xt_late):
13650         [1].
13651
13652         * event-msw.c:
13653         * event-msw.c (mswindows_dde_callback):
13654         * event-msw.c (mswindows_handle_sticky_modifiers):
13655         * event-msw.c (mswindows_wnd_proc):
13656         [1].
13657         [5].
13658
13659         * events.c (character_to_event):
13660         [1].
13661
13662         * fileio.c:
13663         * fileio.c (Ffile_name_directory):
13664         * fileio.c (Ffile_name_nondirectory):
13665         * fileio.c (directory_file_name):
13666         * fileio.c (Fexpand_file_name):
13667         * fileio.c (Fsubstitute_in_file_name):
13668         * fileio.c (Ffile_name_absolute_p):
13669         * fileio.c (check_executable):
13670         * fileio.c (Ffile_readable_p):
13671         * fileio.c (Ffile_accessible_directory_p):
13672         * fileio.c (Ffile_modes):
13673         * fileio.c (Funix_sync):
13674         * fileio.c (vars_of_fileio):
13675         [1]. [4].
13676
13677         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13678
13679         Expand getdefdir defn.
13680         Fix bogus rename() comment.
13681
13682         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13683         to use standard XEmacs include files, e.g. sysfile.h, rather
13684         than system-specific includes.
13685
13686         * fns.c:
13687         * fns.c (Fsubseq):
13688         [5]. [6].
13689
13690         * frame.c (vars_of_frame):
13691         [1].
13692
13693         * getloadavg.c:
13694         * getloadavg.c (getloadavg):
13695         [1]. [6].
13696         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13697         (We don't use it elsewhere in the code; just add a comment.)
13698
13699         * gif_io.c:
13700         [6].
13701         Add config.h.
13702
13703         * glyphs-msw.c:
13704         * glyphs-msw.c (mswindows_resource_instantiate):
13705         [1].
13706
13707         * glyphs-x.c (x_native_layout_instantiate):
13708         [5].
13709
13710         * gui-msw.c (Fmswindows_shell_execute):
13711         [1].
13712
13713         * insdel.c:
13714         [4].
13715
13716         * lisp.h:
13717         [4]. [5].
13718
13719         * lread.c (locate_file_in_directory_mapper):
13720         [1].
13721
13722         * lstream.c:
13723         [4].
13724
13725         * mem-limits.h:
13726         * mem-limits.h (get_lim_data):
13727         [1].
13728
13729         * menubar-msw.c:
13730         [4].
13731
13732         * ndir.h:
13733         [1].
13734
13735         * nt.c:
13736         * nt.c (getwd):
13737         * nt.c (closedir):
13738         * nt.c (rva_to_section):
13739         * nt.c (mswindows_executable_type):
13740         [1]. [6].
13741         Fix closedir() defn.
13742
13743         * nt.h:
13744         [[[[8]]]]: *_OK defs moved to sysfile.h.
13745
13746         * ntproc.c:
13747         [6]. [7].
13748
13749         * objects-x.c:
13750         [4].
13751
13752         * print.c:
13753         * print.c (std_handle_out_external):
13754         [1]. [4].
13755
13756         * process-nt.c:
13757         * process-nt.c (nt_create_process):
13758         [6].
13759         try to fix process quoting somewhat.
13760
13761         * process-unix.c (unix_create_process):
13762         [1].
13763
13764         * process.c:
13765         * process.c (vars_of_process):
13766         Add Vnull_device.
13767
13768         * process.h:
13769         [1].
13770
13771         * realpath.c:
13772         * realpath.c (xrealpath):
13773         [1].
13774
13775         * redisplay-tty.c (init_tty_for_redisplay):
13776         [3].
13777
13778         * redisplay.c:
13779         [4]. [6].
13780
13781         * scrollbar-msw.c:
13782         [4].
13783
13784         * sheap.c:
13785         * sheap.c (more_static_core):
13786         * sheap.c (report_sheap_usage):
13787         [5]. [6].
13788
13789         * signal.c:
13790         * signal.c (alarm_signal):
13791         [1]. [6].
13792
13793         * sound.c:
13794         [6].
13795
13796         * strftime.c:
13797         * strftime.c (zone_name):
13798         [1]. [5].
13799
13800         * symsinit.h (init_sunpro):
13801         [1].
13802
13803         * syscommctrl.h:
13804         commctrl.h not in Cygwin b20.1.
13805
13806         * sysdep.c:
13807         * sysdep.c (endif):
13808         * sysdep.c (sys_subshell):
13809         * sysdep.c (init_baud_rate):
13810         * sysdep.c (emacs_get_tty):
13811         * sysdep.c (emacs_set_tty):
13812         * sysdep.c (tty_init_sys_modes_on_device):
13813         * sysdep.c (init_system_name):
13814         * sysdep.c (sys_open):
13815         * sysdep.c (interruptible_open):
13816         * sysdep.c (sys_fopen):
13817         * sysdep.c (sys_mkdir):
13818         * sysdep.c (sys_rename):
13819         * sysdep.c (get_process_times_1):
13820         [1]. [6].
13821
13822         * sysdep.h:
13823         [1].
13824
13825         * sysdir.h:
13826         * sysdir.h (DIRENTRY_NONEMPTY):
13827         [1]. [6].
13828
13829         * sysdll.c (dll_init):
13830         * sysdll.h:
13831         [1].
13832
13833         * sysfile.h:
13834         [1]. [6]. [8].
13835         added text/binary defs.
13836
13837         * sysfloat.h:
13838         [1].
13839
13840         * sysproc.h:
13841         * sysproc.h (EDESTADDRREQ):
13842         * sysproc.h (poll_fds_for_input):
13843         [1]. [6].
13844
13845         * syspwd.h:
13846         [6].
13847
13848         * syssignal.h:
13849         [1].
13850
13851         * systime.h:
13852         [1]. [6].
13853
13854         * systty.h:
13855         [1].
13856
13857         * syswindows.h:
13858         [1].
13859         Always define WIN32_LEAN_AND_MEAN.
13860
13861         * unexcw.c (unexec):
13862         [5].
13863
13864         * unexec.c:
13865         * unexec.c (copy_text_and_data):
13866         * unexec.c (adjust_lnnoptrs):
13867         [1].
13868
13869         * unexnt.c:
13870         * unexnt.c (_start):
13871         [1].
13872
13873 2000-06-07  Ben Wing  <ben@xemacs.org>
13874
13875         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13876         was used only as a model.  We've long since extracted any useful
13877         logic or code out of this. (I just did an exhaustive search.)
13878
13879         * s\msdos.h: Removed.
13880
13881         * s\windows95.h: Removed.
13882
13883 2000-06-10  Ben Wing  <ben@xemacs.org>
13884
13885         * s\cygwin32.h:
13886         [1]. [5].
13887         Don't use extern with fun defs.
13888
13889         * s\mingw32.h:
13890         [1]. [7].
13891         Remove nt\inc include.
13892         Remove getdisk, getdefdir. (The former is unused, the latter
13893         expanded in fileio.h.)
13894
13895         * s\windowsnt.h:
13896         * s\windowsnt.h (WIN32_NATIVE):
13897         * s\windowsnt.h (HAVE_STRCASECMP):
13898         [1]. [7].
13899         Add long comment about preprocessor changes.
13900         Remove getdisk, getdefdir. (The former is unused, the latter
13901         expanded in fileio.h.)
13902
13903 2000-06-10  Ben Wing  <ben@xemacs.org>
13904
13905         * m\arm.h:
13906         * m\delta.h:
13907         * m\intel386.h:
13908         * m\sequent.h:
13909         * m\template.h:
13910         * m\windowsnt.h:
13911         [1].
13912         Remove bogus/unused NO_SOCK_SIGIO.
13913
13914 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13915
13916         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13917         not an Emchar.
13918
13919 2000-06-04  Mike Sperber <mike@xemacs.org>
13920
13921         * casetab.c (set_case_table): For `set-standard-case-table',
13922         actually deposit the new case tables where the rest of XEmacs can
13923         see them.
13924
13925 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13926
13927         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13928
13929 2000-06-05  Ben Wing  <ben@xemacs.org>
13930
13931         * callproc.c (child_setup): Don't do close_load_descs() under
13932         MS Windows.  Put in a comment explaining why.
13933
13934 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13935
13936         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13937         Toolkit shell" which breaks `kill-compilation' on Windows NT
13938         native, retaining STDERR handling improvements.
13939
13940 2000-06-01  Andreas Jaeger  <aj@suse.de>
13941
13942         * s/s390.h: Support for S390, based on a patch by Martin
13943         Schwidefsky <schwidefsky@de.ibm.com>.
13944
13945 2000-05-30  Andy Piper  <andy@xemacs.org>
13946
13947         * window.c (allocate_window):
13948         (make_dummy_parent):
13949         (Fset_window_configuration): use new hashtable type.
13950
13951         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13952         (struct image_instantiator_methods):
13953         (struct Lisp_Image_Instance): make instance geometry signed.
13954
13955         * glyphs.c (instantiate_image_instantiator):
13956         (image_instance_query_geometry):
13957         (image_instance_layout):
13958         (image_instance_layout):
13959         (query_string_geometry):
13960         (text_query_geometry):
13961         (image_instantiate):
13962         (image_instantiate):
13963         (cache_subwindow_instance_in_frame_maybe):
13964         (subwindow_query_geometry): make instance geometry signed.
13965
13966         * glyphs-widget.c (widget_query_geometry):
13967         (widget_layout):
13968         (button_query_geometry):
13969         (tree_view_query_geometry):
13970         (tab_control_query_geometry):
13971         (layout_query_geometry):
13972         (layout_layout):
13973         (native_layout_layout): make instance geometry signed.
13974
13975 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13976
13977         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13978         constant.
13979
13980         * general.c (syms_of_general): Add Qfull_assoc symbol.
13981
13982         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13983         correctly.
13984         (decode_weak_list_type): Decode full-assoc type.
13985         (encode_weak_list_type): Encode full-assoc type.
13986         (Fmake_weak_list): Update doc string.
13987
13988 2000-05-30  Andy Piper  <andy@xemacs.org>
13989
13990         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13991
13992         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13993         (decode_hash_table_weakness): ditto.
13994         (Fhash_table_weakness): ditto.
13995         (Fhash_table_type): ditto.
13996         (finish_marking_weak_hash_tables): ditto.
13997         (hash_table_weakness_validate): ditto.
13998         (syms_of_elhash): ditto.
13999
14000 2000-05-28  Martin Buchholz <martin@xemacs.org>
14001
14002         * XEmacs 21.2.34 is released.
14003
14004 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
14005
14006         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
14007         start cache.
14008         (updating_line_start_cache): Gone.
14009         (regenerate_window): Replace resetting of VERTICAL_CLIP by
14010         generic code to force a minimum of 1 line laid out in the
14011         CMOTION_DISP case.
14012
14013 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
14014
14015         * glyphs.c (instantiate_image_instantiator): Check for initialized
14016         height & width no longer special cases IMAGE_NOTHING.
14017         (nothing_instantiate): Set height and width of instance.
14018
14019 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
14020
14021         * unexelf.c (unexec): Search for ".data" section.
14022         Initialize new_data2_offset from old_data_index.
14023         Remove redundant check for ElfW.
14024
14025 2000-05-23  Andy Piper  <andy@xemacs.org>
14026
14027         * glyphs.c (get_image_instantiator_governing_domain): allow more
14028         specific domains as the governing domain rather than expecting an
14029         exact match. This fixes problems with layouts.
14030
14031 2000-05-22  Andy Piper  <andy@xemacs.org>
14032
14033         * redisplay-output.c (compare_runes): check for non-images
14034
14035         * glyphs.c (set_glyph_dirty_p): ditto.
14036         (update_glyph_cachel_data): ditto.
14037
14038         * glyphs-widget.c (layout_post_instantiate): ditto.
14039         (layout_post_instantiate): ditto.
14040
14041         * event-msw.c (mswindows_wnd_proc): warning removal.
14042
14043 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
14044
14045         * s\mingw32.h: Added #undef for CLASH_DETECTION.
14046
14047         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
14048
14049         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
14050
14051         * nt.c (rva_to_section): mingw32 needs rva_to_section.
14052         (mswindows_executable_type): mingw32 now has enough headers for
14053         this to work.
14054
14055 2000-05-20  Andy Piper  <andy@xemacs.org>
14056
14057         * console-msw.c (mswindows_output_last_error): ; -> ,
14058
14059 2000-05-12  Andy Piper  <andy@xemacs.org>
14060
14061         * console-msw.c (FROB): compare ints with ints.
14062
14063 2000-05-11  Andy Piper  <andy@xemacs.org>
14064
14065         * glyphs-x.c (x_finalize_image_instance): make minimal build
14066         happy.
14067
14068 2000-05-20  Ben Wing  <ben@xemacs.org>
14069
14070         * event-Xt.c:
14071         * event-Xt.c (vars_of_event_Xt):
14072         move modifier-keys-are-sticky to event-stream.c.
14073
14074         * event-msw.c:
14075         * event-msw.c (mswindows_enqueue_mouse_button_event):
14076         * event-msw.c (key_needs_default_processing_p):
14077         * event-msw.c (XEMSW_LCONTROL):
14078         * event-msw.c (mswindows_handle_sticky_modifiers):
14079         * event-msw.c (FROB):
14080         * event-msw.c (clear_sticky_modifiers):
14081         * event-msw.c (output_modifier_keyboard_state):
14082         * event-msw.c (output_alt_keyboard_state):
14083         * event-msw.c (mswindows_wnd_proc):
14084         * event-msw.c (mswindows_modifier_state):
14085         * event-msw.c (emacs_mswindows_handle_magic_event):
14086         implement sticky modifiers.
14087
14088         * event-stream.c:
14089         * event-stream.c (vars_of_event_stream):
14090         move modifier-keys-are-sticky here.
14091
14092         * lisp.h:
14093         add CHECK_FUNCTION.
14094
14095         * rangetab.c:
14096         implement map-range-table.
14097
14098
14099 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
14100
14101         * redisplay-tty.c (reset_tty_modes):
14102         (tty_redisplay_shutdown): Adjust argument type to
14103         tty_frame_output_end.
14104
14105 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14106
14107         * eval.c (Fbacktrace): Don't output a line with only right
14108         parenthesis.
14109
14110 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
14111
14112         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
14113         (Fpq_reset_poll): Ditto.
14114
14115 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
14116
14117         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
14118
14119 2000-05-16  Ben Wing  <ben@xemacs.org>
14120
14121         * buffer.c:
14122         * buffer.c (dfc_convert_to/from_internal_format):
14123         * buffer.c (reinit_vars_of_buffer):
14124         Fix conversion functions to allow reentrancy.
14125
14126         * console-msw.c:
14127         * console-msw.c (mswindows_output_last_error):
14128         New fun, generally useful -- output a human-readable
14129         version of GetLastError() on the console.
14130
14131         * console-msw.h:
14132         * console-msw.h (struct mswindows_frame):
14133         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
14134
14135         * console-stream.c (stream_output_begin):
14136         * console-stream.c (stream_output_end):
14137         * console-stream.c (stream_output_vertical_divider):
14138         * console-stream.c (stream_clear_region):
14139         * console-stream.c (stream_flash):
14140         * console-stream.c (console_type_create_stream):
14141         Delete blank stream methods, not needed.
14142
14143         * console.h (struct console_methods):
14144         Split begin/end methods into window and frame.
14145
14146         * event-msw.c:
14147         * event-msw.c (mswindows_handle_paint):
14148         * event-msw.c (output_alt_keyboard_state):
14149         * event-msw.c (mswindows_wnd_proc):
14150         * event-msw.c (vars_of_event_mswindows):
14151         Comment about problems with ignored-expose.
14152         Define mswindows-debug-events; not really implemented.
14153
14154         * frame-msw.c (mswindows_init_frame_1):
14155         random cleanups.
14156
14157         * glyphs-msw.c:
14158         * glyphs-msw.c (begin_defer_window_pos):
14159         * glyphs-msw.c (mswindows_unmap_subwindow):
14160         * glyphs-msw.c (mswindows_map_subwindow):
14161         * glyphs-msw.c (mswindows_resize_subwindow):
14162         Use DeferWindowPos to reduce flashing when mapping/unmapping.
14163
14164         * glyphs.c (make_image_instance_1):
14165         Fix crash.
14166
14167         * gutter.c (Fredisplay_gutter_area):
14168         Use new begin/end methods.
14169
14170         * lisp.h (Dynarr_new2):
14171         New creation fun.
14172
14173         * redisplay-msw.c:
14174         * redisplay-msw.c (mswindows_frame_output_begin):
14175         * redisplay-msw.c (mswindows_frame_output_end):
14176         * redisplay-msw.c (console_type_create_redisplay_mswindows):
14177         New begin/end methods -- handle DeferWindowPos.
14178
14179         * redisplay-output.c (redisplay_move_cursor):
14180         * redisplay-output.c (redraw_cursor_in_window):
14181         * redisplay-output.c (redisplay_update_line):
14182         * redisplay-output.c (redisplay_output_window):
14183         New begin/end methods.
14184
14185         * redisplay-tty.c:
14186         * redisplay-tty.c (tty_frame_output_begin):
14187         * redisplay-tty.c (tty_frame_output_end):
14188         * redisplay-tty.c (console_type_create_redisplay_tty):
14189         New begin/end methods.
14190
14191         * redisplay-x.c:
14192         * redisplay-x.c (x_window_output_begin):
14193         * redisplay-x.c (x_window_output_end):
14194         * redisplay-x.c (console_type_create_redisplay_x):
14195         New begin/end methods.
14196
14197         * redisplay.c (redisplay_frame):
14198         * redisplay.c (Fredisplay_echo_area):
14199         New begin/end methods.
14200         use MAYBE_DEVMETH for clear_frame; it may not exist.
14201
14202         * window.h (WINDOW_XFRAME):
14203         WINDOW_XFOO macros -- get locale and decode struct pointer.
14204
14205
14206 2000-05-12  Ben Wing  <ben@xemacs.org>
14207
14208         * emacs.c:
14209         * emacs.c (ensure_no_quitting_from_now_on):
14210         * emacs.c (fatal_error_signal):
14211         * emacs.c (mswindows_handle_hardware_exceptions):
14212         * emacs.c (main):
14213         * emacs.c (Fkill_emacs):
14214         * emacs.c (shut_down_emacs):
14215         * emacs.c (assert_failed):
14216         various improvements in fatal error handling.
14217
14218         * eval.c:
14219         move preparing_for_armageddon to emacs.c.
14220
14221         * lisp.h:
14222         declare fatal_error_in_progress.
14223
14224         * print.c:
14225         * print.c (std_handle_out_external):
14226         * print.c (std_handle_out_va):
14227         * print.c (stderr_out):
14228         * print.c (stdout_out):
14229         use console under mswin when no standard output.
14230         don't do code conversion during fatal error.
14231
14232         * scrollbar.c (Fscrollbar_page_up):
14233         * scrollbar.c (Fscrollbar_page_down):
14234         fix missing else.  reindent.
14235
14236 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
14237
14238         Emergency fix.
14239
14240         * glyphs.h (GLYPH_CACHEL_DESCENT):
14241         (GLYPH_CACHEL_DESCENT):
14242         (GLYPH_CACHEL_DESCENT):
14243         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
14244         used in case these are inline functions.
14245         Use more absurd values to error check.
14246
14247         include window.h for error check functions.
14248
14249 2000-05-11  Ben Wing  <ben@xemacs.org>
14250
14251         * cmdloop.c (Freally_early_error_handler):
14252         Display message box under windows; otherwise, message will disappear
14253         before it can be viewed.
14254
14255         * console-msw.c:
14256         * console-msw.c (Fmswindows_message_box):
14257         * console-msw.c (FROB):
14258         * console-msw.c (syms_of_console_mswindows):
14259         Define new fun `mswindows-message-box'.
14260         #### I will merge this into `popup-dialog-box'; just give me
14261         a bit of time.
14262
14263         * general.c:
14264         * general.c (syms_of_general):
14265         Some new symbols used in `mswindows-message-box'.
14266
14267         * glyphs.c:
14268         * glyphs.c (Fset_image_instance_property):
14269         put warning in this fun.
14270
14271         * glyphs.h:
14272         * glyphs.h (GLYPH_CACHEL_WIDTH):
14273         * glyphs.h (GLYPH_CACHEL_ASCENT):
14274         * glyphs.h (GLYPH_CACHEL):
14275         * glyphs.h (GLYPH_CACHEL_GLYPH):
14276         define error-checking versions to try to catch a bug i've seen --
14277         redisplay gets in an infinite loop because the glyph width of the
14278         continuation glyph is 65535.
14279
14280         * lisp.h:
14281         Extern message-box stuff.
14282
14283         * window.c (allocate_window):
14284         * window.c (make_dummy_parent):
14285         * window.c (Fset_window_configuration):
14286         Use EQUAL not EQ for subwindow caches to make them work a bit
14287         better. (Something is still very broken.)
14288
14289
14290 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14291
14292         * glyphs.c (image_instantiate): Suppress gcc warnings.
14293         (Fmake_image_instance): Fix doc string.
14294         * specifier.c (Fmake_specifier): Ditto.
14295
14296 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
14297
14298         * paths.h.in (PATH_LOCK): Removed.
14299         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
14300         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
14301
14302 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14303
14304         * fns.c (Ffeaturep): Update e-mail address in doc-string.
14305         Document (featurep '(and xemacs 21.02)).
14306
14307 2000-05-09  Ben Wing  <ben@xemacs.org>
14308
14309         * buffer.c (complex_vars_of_buffer):
14310         update modeline-format doc.
14311
14312         * device.h:
14313         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
14314
14315         * emacs.c:
14316         timeline of all released versions of Emacs, for use in creating
14317         authorship comments and in synching up.
14318
14319         * glyphs-widget.c (image_instantiator_buttons):
14320         * glyphs-widget.c (image_instantiator_edit_fields):
14321         * glyphs-widget.c (image_instantiator_combo_box):
14322         * glyphs-widget.c (image_instantiator_scrollbar):
14323         * glyphs-widget.c (image_instantiator_progress_guage):
14324         * glyphs-widget.c (image_instantiator_tree_view):
14325         * glyphs-widget.c (image_instantiator_tab_control):
14326         * glyphs-widget.c (image_instantiator_labels):
14327         * glyphs-widget.c (image_instantiator_layout):
14328         * glyphs-widget.c (image_instantiator_native_layout):
14329         rename decode_domain method to governing_domain.
14330
14331         * glyphs.c:
14332         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
14333         * glyphs.c (add_entry_to_device_ii_format_list):
14334         make sure we don't put an entry more than once into the list.
14335         * glyphs.c (check_instance_cache_mapper):
14336         *************************************************************
14337         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14338         HAVE BEEN GETTING.
14339         *************************************************************
14340         * glyphs.c (get_image_instantiator_governing_domain):
14341         clean up, expand on new concept of governing domain.
14342         * glyphs.c (instantiate_image_instantiator):
14343         * glyphs.c (allocate_image_instance):
14344         use governing_domain instead of cache_domain in naming.
14345         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
14346         * glyphs.c (make_image_instance_1):
14347         * glyphs.c (Fmake_image_instance):
14348         allow for any domain (not just device), and process the
14349         governing domain correctly.  very big doc fix.
14350         * glyphs.c (Fimage_instance_domain):
14351         new primitive, to retrieve the governing domain of an image instance.
14352         * glyphs.c (image_instantiate):
14353         use new governing_domain stuff.  this fixes a crash you could get
14354         by instantiating certain widget glyphs in frame locales. (should
14355         signal an error instead of crashing.)
14356         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
14357         * glyphs.c (Fglyphp): clean up doc.
14358         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
14359         * glyphs.c (syms_of_glyphs):
14360         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
14361         * glyphs.c (image_instantiator_format_create): add some comments about
14362         bogus code.
14363         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
14364         for current-display-table. (Apparently Hrjove implemented in 1998 a
14365         design I wrote up in 1996, but didn't update the doc string.)
14366
14367         * glyphs.h: clean up a doc string.
14368         * glyphs.h (governing_domain):
14369         * glyphs.h (struct image_instantiator_methods):
14370         changes for governing_domain stuff.
14371
14372         * gutter.c:
14373         * gutter.c (Fgutter_specifier_p):
14374         * gutter.c (Fgutter_size_specifier_p):
14375         * gutter.c (Fgutter_visible_specifier_p):
14376         * objects.c:
14377         * objects.c (Fcolor_specifier_p):
14378         * objects.c (Ffont_specifier_p):
14379         * objects.c (Fface_boolean_specifier_p):
14380         doc strings moved to make-*-specifier.
14381
14382         * redisplay.c (add_disp_table_entry_runes_1):
14383         * redisplay.c (generate_fstring_runes):
14384         * redisplay.c (screen):
14385         add random comments and doc strings.
14386
14387         * specifier.c:
14388         * specifier.c (Fmake_specifier):
14389         major overhaul of this doc string.
14390
14391         * specifier.c (Fvalid_specifier_domain_p):
14392         comment about the bogosity of image instances being domains.
14393         * specifier.c (decode_domain):
14394         now non-static, used in glyphs.c.
14395         * specifier.c (specifier_instance):
14396         comment about the bogosity of image instances being domains.
14397         * specifier.c (Fgeneric_specifier_p):
14398         move doc string to make-generic-specifier.
14399         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14400         rebackslashify.
14401
14402         * specifier.h:
14403         * specifier.h (DOMAIN_FRAME):
14404         * specifier.h (DOMAIN_LIVE_P):
14405         * specifier.h (DOMAIN_XDEVICE):
14406         rebackslashify.
14407         add comments about problems with these macros.
14408         prototype for decode_domain.
14409
14410         * toolbar.c:
14411         * toolbar.c (Ftoolbar_specifier_p):
14412         move doc string to `make-toolbar-specifier'.
14413
14414         * window.c (window_unmap_subwindows_cache_mapper):
14415         *************************************************************
14416         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14417         HAVE BEEN GETTING.
14418         *************************************************************
14419
14420 2000-05-09  Andy Piper  <andy@xemacs.org>
14421
14422         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14423
14424         * window.c (Fset_window_configuration): reset the frame subwindow
14425         cache and re-initialize the window subwindow caches.
14426
14427         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14428
14429 2000-05-09  Ben Wing  <ben@xemacs.org>
14430
14431         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14432         DWORD.
14433
14434 2000-04-26  Mike Woolley  <mike@bulsara.com>
14435
14436         * ntheap.c: Changed recreate_heap to limit the amount reserved
14437         for the heap to that which is actually available. Also now
14438         displays a message box (with some dignostics) in the event that
14439         it still can't start.
14440
14441 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14442
14443         * callproc.c (Fold_call_process_internal): GCPRO path
14444
14445 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14446
14447         Patch by Bill Perry.
14448
14449         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14450         back data instead of #ifdef.
14451         (Fscrollbar_page_down): ditto.
14452
14453 2000-05-07  Ben Wing  <ben@xemacs.org>
14454
14455         * buffer.h:
14456         Kludge for defining Qmswindows_tstr.
14457
14458         * nt.c:
14459         * nt.c (open_input_file):
14460         * nt.c (open_output_file):
14461         * nt.c (rva_to_section):
14462         * nt.c (mswindows_executable_type):
14463         Move all memory-mapped-file routines here (some were in unexnt.c,
14464         which is bad because they are used by process-nt.c, and unexnt
14465         won't be around when portable dumping).  Synched the above routines
14466         with FSF 20.6.
14467
14468         * nt.h:
14469         Removed ifdef'd out bogus code.
14470         Fixed some prototypes.
14471
14472         * nt.h (file_data):
14473         * nt.h (OFFSET_TO_RVA):
14474         * nt.h (RVA_TO_OFFSET):
14475         * nt.h (RVA_TO_PTR):
14476         Moved the memory-mapped-file structures, macros and prototypes
14477         here, to parallel nt.c.  ntheap.h should really be removed
14478         entirely, and it's a non-portable-dumper specific file.
14479
14480         * ntheap.h (round_to_next):
14481         Moved the memory-mapped-file structures, macros and prototypes
14482         to nt.h.
14483
14484         * ntproc.c (compare_env):
14485         Moved rva_to_section and mswindows_executable_type to nt.c.
14486         Moved compare_env to process-nt.c.
14487         ntproc.c will die, one day.
14488
14489         * ntproc.c (sys_spawnve):
14490         Account for win32_ -> mswindows_.
14491
14492         * process-nt.c:
14493         * process-nt.c (struct nt_process_data):
14494         * process-nt.c (ensure_console_window_exists):
14495         * process-nt.c (compare_env):
14496         * process-nt.c (nt_create_process):
14497         * process-nt.c (nt_kill_process_by_pid):
14498         * process-nt.c (syms_of_process_nt):
14499         * process-nt.c (vars_of_process_nt):
14500         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14501         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14502         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14503         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14504         Move compare_env here from ntproc.c.
14505
14506         * process.c (Fprocess_send_region):
14507         Takes an optional fourth argument, BUFFER, which should fix some
14508         problems with call-process.
14509
14510         * syscommctrl.h:
14511         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14512
14513         * syswindows.h:
14514         Move ICC_BAR_CLASSES to syscommctrl.h.
14515         Add preliminary macros for MSWindows/Mule.  More to come.
14516
14517         * unexnt.c:
14518         * unexnt.c (unexec):
14519         open_output_file moved to nt.c.
14520
14521
14522 2000-05-05  Andy Piper  <andy@xemacs.org>
14523
14524         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14525         instance from the frame cache also since GC may catch up too late
14526         to make frame deletion sane.
14527
14528 2000-05-04  Andy Piper  <andy@xemacs.org>
14529
14530         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14531         (x_finalize_image_instance): ungcpro on deletion.
14532
14533         * glyphs.c (image_instantiator_format_create): give pointers a
14534         query geometry method so that the geometry is at least set.
14535
14536         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14537         initialize layouts if using widgets.
14538
14539 2000-05-03  Andy Piper  <andy@xemacs.org>
14540
14541         * nt.c: remove bogus reference to sysmmsystem.h
14542
14543         * gui-x.c (popup_selection_callback): fix no selection abort.
14544
14545 2000-05-02  Andy Piper  <andy@xemacs.org>
14546
14547         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14548         (mswindows_widget_instantiate): ditto.
14549
14550         * glyphs-widget.c (initialize_widget_image_instance): initialize
14551         children correctly.
14552         (widget_instantiate): cope with children and items in the same
14553         instance.
14554
14555         * glyphs.c (mark_image_instance): cope with children as a first
14556         class member.
14557         (image_instance_equal): ditto.
14558         (image_instance_hash): ditto.
14559         (image_instance_changed): ditto.
14560
14561 2000-04-30  Andy Piper  <andy@xemacs.org>
14562
14563         * glyphs.c (subwindow_query_geometry): new function. Return some
14564         defaults.
14565         (subwindow_instantiate): don't assign dimensions if none have been
14566         given.
14567         (image_instantiator_format_create): add subwindow_query_geometry.
14568         (print_image_instance): cope with layouts as widgets.
14569
14570 2000-04-29  Andy Piper  <andy@xemacs.org>
14571
14572         * frame.c (delete_frame_internal): call
14573         free_frame_subwindow_instance_cache so that all subwindows are
14574         finalized before their parent.
14575         (mark_frame): remove subwindow_cachels.
14576         (Fmake_frame): remove subwindow_cachel manipulation.
14577         (allocate_frame_core): subwindow_instance_cache is a weak list.
14578         (delete_frame_internal): set subwindow_instance_cache to nil.
14579
14580         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14581         finalization safe.
14582         (mswindows_finalize_image_instance): use the device
14583         not the domain as the domain may have died already.
14584
14585         * glyphs-x.c (x_finalize_image_instance): ditto.
14586         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14587         HEIGHT.
14588
14589         * redisplay-output.c (redisplay_unmap_subwindows): update for
14590         subwindow instance cache as a weak list.
14591         (redisplay_unmap_subwindows_maybe): ditto.
14592         (redisplay_unmap_subwindows_except_us): ditto.
14593
14594         * glyphs.c (unmap_subwindow): error checking will check the domain
14595         so don't deal with it here. Don't use cachels anymore.
14596         (map_subwindow): ditto.
14597         (update_subwindow_cachel_data): remove old accessor names.
14598         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14599         (Fresize_subwindow): don't update cachel.
14600         (mark_subwindow_cachels):
14601         (update_subwindow_cachel_data):
14602         (add_subwindow_cachel):
14603         (get_subwindow_cachel_index):
14604         (update_subwindow_cachel):
14605         (reset_subwindow_cachels):
14606         (mark_subwindow_cachels_as_not_updated): deleted.
14607         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14608         subwindow instance to the frame cache.
14609         (find_matching_subwindow): update for subwindow instance cache as
14610         a weak list.
14611         (update_widget_instances): ditto.
14612         (image_instance_type_to_mask):inlined.
14613         (free_frame_subwindow_instance_cache): new function. finalize all
14614         subwindows that are instantiated.
14615
14616         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14617         of cachel information.
14618         (IMAGE_INSTANCE_DISPLAY_X):
14619         (IMAGE_INSTANCE_DISPLAY_Y):
14620         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14621         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14622         (XIMAGE_INSTANCE_DISPLAY_X):
14623         (XIMAGE_INSTANCE_DISPLAY_Y):
14624         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14625         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14626         remove subwindow_cachel structure and function references.
14627         (image_instance_type_to_mask): inline from glyphs.c
14628
14629         * redisplay.c (redisplay_frame): remove subwindow_cachel
14630         references.
14631
14632         * frame.h (struct frame): remove subwindow_cachels.
14633         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14634
14635         * frameslots.h: add subwindow_instance_cache.
14636
14637         * window.c (replace_window): check subwindow cache of replacement.
14638         (window_unmap_subwindows_cache_mapper):
14639         (window_unmap_subwindows): new functions. Unmap all subwindows
14640         cached on this window.
14641         (mark_window_as_deleted): unmap all subwindows.
14642
14643 2000-04-27  Andy Piper  <andy@xemacs.org>
14644
14645         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14646
14647         * glyphs-widget.c (widget_layout): return something.
14648         (layout_layout): return something. Fail if not initialized.
14649         (layout_query_geometry): ditto.
14650         (image_instantiator_native_layout): new function. Initialized the
14651         native layout type.
14652         (widget_instantiate): don't do layout stuff here.
14653
14654         * glyphs.c (instantiate_image_instantiator): reorded calling or
14655         instantiate and post_instantiate with layout in between.
14656         (image_instance_layout): be more selective about deciding whether
14657         the layout has been done or not.
14658
14659         * glyphs.h (struct image_instantiator_methods): return a value
14660         from layout_method.
14661
14662 2000-04-26  Andy Piper  <andy@xemacs.org>
14663
14664         * glyphs.c (allocate_image_instance): make initial width and
14665         height unspecified. Set initialized to 0.
14666
14667         * syscommctrl.h new file. Encapsulates commctrl.h.
14668
14669         * syswindows.h new file. Encapsulates windows.h.
14670
14671         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14672         * nt.c: ditto.
14673         * console-msw.h: ditto.
14674
14675         * redisplay-tty.c (tty_output_display_block): remove layout references.
14676
14677         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14678         window handle rather than just the frame.
14679
14680         * glyphs.c (mark_image_instance): remove layout references.
14681         (print_image_instance): ditto.
14682         (image_instance_equal): ditto.
14683         (image_instance_hash): ditto.
14684         (decode_image_instance_type): ditto.
14685         (encode_image_instance_type): ditto.
14686         (image_instantiate): ditto.
14687         (allocate_glyph): ditto.
14688         (Fimage_instance_height): ditto.
14689         (Fimage_instance_width): ditto.
14690         (update_subwindow): ditto.
14691
14692         * redisplay-x.c (x_output_display_block): recode for layouts as
14693         widgets.
14694
14695         * redisplay-output.c (redisplay_output_layout): recode for layouts
14696         as widgets.
14697         (compare_runes): remove layout references.
14698
14699         * redisplay-msw.c (mswindows_output_display_block): recode for
14700         layouts as widgets.
14701
14702         * glyphs-widget.c (image_instantiator_layout): remove
14703         layout_possible_dest_types.
14704         (layout_possible_dest_types): deleted.
14705
14706         * glyphs.h (image_instance_type): remove layout references.
14707         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14708         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14709         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14710
14711 2000-04-25  Andy Piper  <andy@xemacs.org>
14712
14713         * glyphs-widget.c (image_instantiator_buttons):
14714         (image_instantiator_edit_fields):
14715         (image_instantiator_combo_box):
14716         (image_instantiator_scrollbar):
14717         (image_instantiator_progress_guage):
14718         (image_instantiator_tree_view):
14719         (image_instantiator_tab_control):
14720         (image_instantiator_labels):
14721         (image_instantiator_layout): call default post_instantiate method.
14722         (widget_post_instantiate): new function. Simply lays out the
14723         widgets.
14724
14725         * glyphs.h (struct image_instantiator_methods): add
14726         post_instantiate method.
14727
14728         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14729         method calls.
14730
14731 2000-04-23  Andy Piper  <andy@xemacs.org>
14732
14733         * glyphs.h (struct image_instantiator_methods): add
14734         decode_domain_method.
14735         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14736         derived from the domain.
14737         (IMAGE_INSTANCE_FRAME): new accessor.
14738         (XIMAGE_INSTANCE_FRAME): ditto.
14739
14740         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14741         instead of _SUBWINDOW_FRAME.
14742         (finalize_image_instance): ditto.
14743         (Fimage_instance_foreground): ditto.
14744         (Fimage_instance_background): ditto.
14745         (image_instantiate): ditto.
14746         (update_subwindow_cachel): ditto.
14747         (update_subwindow): ditto.
14748         (unmap_subwindow): ditto.
14749         (map_subwindow): ditto
14750         (subwindow_instantiate): ditto.
14751         * glyphs-msw.c (mswindows_update_widget): ditto.
14752         (mswindows_progress_gauge_instantiate): ditto.
14753         (mswindows_tab_control_update): ditto.
14754         * glyphs-x.c (x_update_widget): ditto.
14755         (x_widget_instantiate): ditto.
14756         (x_tab_control_instantiate): ditto.
14757         (x_tab_control_update): ditto.
14758         * event-msw.c (mswindows_wnd_proc): ditto
14759
14760         * glyphs-widget.c (image_instantiator_layout): use
14761         subwindow_decode_domain.
14762         (image_instantiator_buttons): ditto.
14763         (image_instantiator_edit_fields): ditto.
14764         (image_instantiator_combo_box): ditto.
14765         (image_instantiator_scrollbar): ditto.
14766         (image_instantiator_progress_guage): ditto.
14767         (image_instantiator_tree_view): ditto.
14768         (image_instantiator_tab_control): ditto.
14769         (image_instantiator_labels): ditto.
14770         (image_instantiator_layout): ditto.
14771
14772         * glyphs.c: add instance error checking to many functions.
14773         (instantiate_image_instantiator): decode device from cache_domain.
14774         (image_instantiate): partially rewrite by using
14775         decode_image_instantiator_domain to determine what domain the
14776         instance needs to be cached in.
14777         (decode_image_instantiator_domain): new function. Determine what
14778         domain the image needs to be cached in.
14779         (check_window_subwindow_cache): new error checking function.
14780         (check_instance_cache_mapper): ditto.
14781         (check_image_instance_structure): ditto.
14782         (subwindow_decode_domain): new function. Encodes a window as a
14783         subwindow's cache domain.
14784         (image_instantiator_format_create): use it for text and
14785         subwindows.
14786
14787 2000-04-21  Andy Piper  <andy@xemacs.org>
14788
14789         * glyphs.c (image_instance_device): new function.
14790         (image_instance_frame): new function.
14791         (image_instance_window): new function.
14792         (image_instance_live_p): new function.
14793
14794         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14795         cache to nil.
14796
14797         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14798         (IMAGE_INSTANCE_DOMAIN): new accessor.
14799         (XIMAGE_INSTANCE_DOMAIN): ditto.
14800
14801         * glyphs-x.c (x_finalize_image_instance): device->domain.
14802
14803         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14804         (mswindows_finalize_image_instance): ditto.
14805
14806         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14807         (gif_instantiate): ditto.
14808         (png_instantiate): ditto.
14809         (tiff_instantiate): ditto.
14810
14811         * glyphs.c (instantiate_image_instantiator): use domain rather
14812         than device.
14813         (mark_image_instance): device -> domain.
14814         (print_image_instance): ditto.
14815         (finalize_image_instance): ditto.
14816         (image_instance_equal): ditto.
14817         (allocate_image_instance): ditto.
14818         (Fcolorize_image_instance): ditto.
14819         (query_string_geometry): ditto.
14820         (image_instantiate): ditto
14821         (query_string_font): ditto.
14822         (image_instantiate): ditto.
14823         (update_subwindow): ditto.
14824         (unmap_subwindow): ditto.
14825         (map_subwindow): ditto.
14826         (subwindow_instantiate): ditto.
14827
14828         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14829         (DOMAIN_FRAME): ditto.
14830         (DOMAIN_WINDOW): ditto.
14831         (DOMAIN_LIVE_P): ditto.
14832         (XDOMAIN_DEVICE): ditto.
14833         (XDOMAIN_FRAME): ditto.
14834         (XDOMAIN_WINDOW): ditto.
14835
14836         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14837         a valid specifier domain.
14838
14839 2000-04-19  Andy Piper  <andy@xemacs.org>
14840
14841         * glyphs-widget.c (syms_of_glyphs_widget): remove
14842         widget-callback-current-channel.
14843         (vars_of_glyphs_widget): ditto.
14844         * glyphs.h: ditto
14845
14846         * gui.c (get_gui_callback): revert to previous behaviour.
14847
14848 2000-04-18  Andy Piper  <andy@xemacs.org>
14849
14850         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14851         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14852         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14853
14854         * glyphs.c (image_instance_equal): add margin_width.
14855         (image_instance_hash): ditto.
14856
14857         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14858         (layout_query_geometry): ditto.
14859         (layout_layout): ditto.
14860         (syms_of_glyphs_widget): add margin-width.
14861         (image_instantiator_layout): allow margin-width.
14862
14863         * glyphs.c (update_widget_instances): make a normal function.
14864         (syms_of_glyphs): remove Qupdate_widget_instances.
14865         * glyphs.h: ditto.
14866
14867         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14868         so that we don't corrupt ideas about the last event or
14869         command. Remove widget-callback-current-channel fiddling.
14870         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14871
14872 2000-05-01  Martin Buchholz <martin@xemacs.org>
14873
14874         * XEmacs 21.2.33 is released.
14875
14876 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14877
14878         * make-src-depend: Allow dots in header file name.
14879
14880 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14881
14882         * mule-charset.h (struct charset_lookup): Add
14883         next_allocated_1_byte_leading_byte and
14884         next_allocated_2_byte_leading_byte.
14885         * mule-charset.c: Move above two variables so that those values
14886         will be dumped.
14887
14888 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14889
14890         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14891         when string length is zero.
14892         (find_charsets_in_emchar_string): Ditto.
14893
14894 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14895
14896         * lisp.h: extern Qdialog and Qmenubar.
14897
14898         * gui-x.c: added events.h.
14899                 also fixed typo which made the file uncompilable.
14900
14901         * general.c: Added Qmenubar and Qdialog
14902
14903 2000-04-28  Ben Wing  <ben@xemacs.org>
14904
14905         * frame-msw.c (mswindows_init_frame_1):
14906         * frame-msw.c (mswindows_mark_frame):
14907         * event-msw.c (mswindows_enqueue_dispatch_event):
14908         * console-msw.h:
14909         * console-msw.h (struct mswindows_frame):
14910         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14911         there are now three hash tables for callbacks.
14912         mswindows_enqueue_dispatch_event is no longer static.
14913
14914         * dialog-x.c (maybe_run_dbox_text_callback):
14915         * dialog-x.c (dbox_descriptor_to_widget_value):
14916         switch to new cons3 form for callbacks.
14917
14918         * glyphs-msw.c (mswindows_register_gui_item):
14919         * glyphs-msw.c (mswindows_widget_instantiate):
14920         * glyphs-msw.c (add_tree_item):
14921         * glyphs-msw.c (add_tab_item):
14922         new image instance parameter, so it can be passed to callback-ex.
14923         respect :callback-ex as well as :callback.
14924
14925         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14926         add :callback-ex.
14927
14928         * glyphs.c (print_image_instance):
14929         prettify, e.g. now prints widget type.
14930
14931         * gui-x.h:
14932         certain funs have new image instance parameter.
14933
14934         * gui.c:
14935         * gui.c (get_gui_callback):
14936         * gui.c (gui_item_add_keyval_pair):
14937         * gui.c (gui_item_init):
14938         * gui.c (gui_add_item_keywords_to_plist):
14939         * gui.c (mark_gui_item):
14940         * gui.c (gui_item_hash):
14941         * gui.c (gui_item_equal):
14942         * gui.c (copy_gui_item):
14943         * gui.c (syms_of_gui):
14944         recognize callback-ex in a number of places.
14945         also, fix the annoying "can't get out of yes-no dialog" bug.
14946
14947         * gui.h:
14948         * gui.h (struct Lisp_Gui_Item):
14949         recognize callback-ex in a number of places.
14950
14951         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14952         new parameter in button_item_to_widget_value.
14953
14954         * glyphs-x.c (x_update_widget):
14955         * glyphs-x.c (x_button_instantiate):
14956         * glyphs-x.c (x_button_update):
14957         * glyphs-x.c (x_progress_gauge_instantiate):
14958         * glyphs-x.c (x_edit_field_instantiate):
14959         * glyphs-x.c (x_combo_box_instantiate):
14960         * glyphs-x.c (x_tab_control_instantiate):
14961         * glyphs-x.c (x_label_instantiate):
14962         new image instance parameter in various places.
14963
14964         * event-Xt.c:
14965         * event-Xt.c (enqueue_Xt_dispatch_event):
14966         this fun gets exported.
14967
14968         * gui-msw.c:
14969         * gui-msw.c (mswindows_handle_gui_wm_command):
14970         handle both :callback and :callback-ex, and generate our own
14971         event because it's one of the callback-ex arguments.
14972
14973         * gui-x.c:
14974         * gui-x.c (popup_selection_callback):
14975         handle both :callback and :callback-ex, and generate our own
14976         event because it's one of the callback-ex arguments.
14977         * gui-x.c (button_item_to_widget_value):
14978         * gui-x.c (gui_items_to_widget_values_1):
14979         * gui-x.c (gui_item_children_to_widget_values):
14980         * gui-x.c (gui_items_to_widget_values):
14981         new image instance parameter in various places.
14982
14983         * fns.c (Freplace_list):
14984         fix small typo in doc string.
14985
14986         * lisp.h:
14987         declare enqueue_Xt_dispatch_event.
14988
14989 2000-04-28  Ben Wing  <ben@xemacs.org>
14990
14991         * buffer.c:
14992         * buffer.c (Frecord_buffer):
14993         * buffer.c (syms_of_buffer):
14994         delete record-buffer-hook.
14995
14996         * fns.c:
14997         * fns.c (Freplace_list):
14998         * fns.c (syms_of_fns):
14999         new primitive replace-list.
15000
15001         * frameslots.h:
15002         slot for old buffer-alist.
15003
15004         * lisp.h:
15005         exfun replace-list.
15006
15007         * redisplay.c:
15008         * redisplay.c (redisplay_frame):
15009         * redisplay.c (syms_of_redisplay):
15010         * redisplay.c (vars_of_redisplay):
15011         new hook buffer-list-changed-hook.
15012         call it.
15013
15014 2000-04-27  Ben Wing  <ben@xemacs.org>
15015
15016         * extents.h: extern in_modeline_generation.
15017
15018         * redisplay.c (generate_formatted_string_db): set
15019         in_modeline_generation.
15020
15021         * extents.c (extent_changed_for_redisplay): don't mark redisplay
15022         flags if in modeline generation.  otherwise frame-modified-tick
15023         is ticked far too often.
15024         Declare in_modeline_generation.
15025
15026 2000-04-26  Ben Wing  <ben@xemacs.org>
15027
15028         * emacs.c (vars_of_emacs): document quick-build "error-checking"
15029         option.
15030         (vars_of_emacs): add quick-build as an error-checking option.
15031         A bit kludgy, but there doesn't seem much point in creating
15032         a real var for this.
15033
15034         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
15035
15036 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15037
15038         * redisplay.h (struct display_line): Add a new variable,
15039         line_continuation.
15040
15041         * redisplay.c (create_text_block): Set dl->line_continuation if
15042         the line continues.
15043         (create_string_text_block): Ditto.
15044         (regenerate_window_incrementally): Use line_continuation instead
15045         of searching continuation glyph.
15046         (add_margin_runes): Call add_glyph_rune.
15047         (add_glyph_rune): Handle margin glyph.
15048
15049 2000-04-20  Martin Buchholz  <martin@xemacs.org>
15050
15051         * filelock.c (fill_in_lock_file_name):
15052         ANSIfy.
15053         Check for IS_ANY_SEP instead of '/'.
15054         (lock_file_1):
15055         Avoid generating gratuitous garbage.  Call user_login_name() directly.
15056         Never check errno without first seeing that system call failed.
15057         (unlock_file): Add GCPRO.
15058         (Flock_buffer): Fix docstring.
15059         (Ffile_locked_p): Fix docstring.  Add GCPRO.
15060
15061 2000-04-19  Martin Buchholz  <martin@xemacs.org>
15062
15063         * sysdep.c (get_pty_max_bytes):
15064         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
15065         strings longer than 252 bytes.
15066
15067         * md5.c: Unconditionally include ANSI header <limits.h>
15068
15069         * glyphs-x.c (convert_EImage_to_XImage):
15070         * lisp-union.h (union Lisp_Object):
15071         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
15072
15073 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
15074
15075         * filelock.c (current_lock_owner): Remove unused variable o, p.
15076
15077 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
15078
15079         * callint.c: Remove multiply defined symbol Qlet
15080         (syms_of_callint): ditto.
15081
15082 2000-04-14  Andy Piper  <andy@xemacs.org>
15083
15084         * general.c (syms_of_general): add last-command, this-command, let
15085         and funcall.
15086
15087         * lisp.h: declare various symbols.
15088
15089         * glyphs.h: declare Qwidget_callback_current_channel;
15090
15091         * glyphs-widget.c (syms_of_glyphs_widget): add
15092         Qgui_callback_current_channel.
15093         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
15094
15095         * gui-msw.c (mswindows_handle_gui_wm_command): bind
15096         widget-callback-current-channel when invoking the interactive
15097         arg. Also bind last-command and next-command when invoking the
15098         widget updates.
15099         * gui-x.c (popup_selection_callback): ditto.
15100
15101         * gui.c (get_gui_callback): massage args so that we are always
15102         calling eval. This allows us to add our own variable bindings
15103         outside.
15104
15105         * glyphs-x.c (x_button_instantiate): use
15106         gui_items_to_widget_values since this is GC safe.
15107         (x_progress_gauge_instantiate): ditto.
15108         (x_edit_field_instantiate): ditto.
15109         (x_label_instantiate): ditto.
15110
15111         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
15112         (emacs_Xt_event_widget_focus_out): new function
15113         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
15114         focus.
15115         (emacs_Xt_event_add_widget_actions): new function. add focus
15116         functions as actions.
15117         (init_event_Xt_late): use it.
15118
15119 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
15120
15121         * event-stream.c (Fdispatch_event): Doc fix.
15122
15123 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
15124
15125         * postgresql.c: Remove all references to PQsetenv*.
15126
15127         * postgresql.h: Remove references to PGsetenvHandler object.
15128         * lrecord.h (lrecord_type): Ditto.
15129
15130 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15131
15132         * glyphs-msw.h (struct mswindows_image_instance_data): Added
15133         real_heigh and real_width members, and accessor macros for these.
15134
15135         * glyphs-msw.c (init_image_instance_geometry): New function.
15136         (init_image_instance_from_dibitmap): Use it.
15137         (mswindows_resource_instantiate): Use it.
15138         (init_image_instance_from_xbm_inline): Use it.
15139         (mswindows_initialize_image_instance_mask): Use real bitmap
15140         geometry.
15141         (mswindows_create_resized_bitmap): Ditto.
15142         (mswindows_create_resized_mask): Ditto.
15143
15144         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
15145         and bitmap to their surface size.
15146
15147 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
15148
15149         * process-unix.c (unix_send_process): Guard against process MIA
15150         after Faccept_process_output.
15151
15152 2000-04-11  Ben Wing  <ben@xemacs.org>
15153
15154         * eval.c (unbind_to_hairy): fix brokenness introduced by
15155         nanosecond speed improvements.
15156
15157 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
15158
15159         * sunplay.c (init_device): To play sounds correctly, the device
15160         apparently needs to be initialized at least once by XEmacs.  Make
15161         it so.
15162
15163 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15164
15165         * redisplay.c (add_margin_runes): Add text image glyph
15166           handling.
15167
15168 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
15169
15170         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
15171         gcc is newer than 2.5.
15172
15173 2000-04-06  Colin Rafferty  <colin@xemacs.org>
15174
15175         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
15176
15177         * fns.c (size_bit_vector):
15178         * alloc.c (size_vector):
15179         (make_vector_internal):
15180         (make_bit_vector_internal):
15181         (sweep_bit_vectors_1):
15182         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
15183
15184 2000-04-06  Andy Piper  <andy@xemacs.org>
15185
15186         * gmalloc.c (malloc): undo previous change.
15187         (malloc): ditto.
15188         (free): ditto.
15189         (realloc): ditto.
15190
15191 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
15192
15193         * line-number.c (buffer_line_number): Revert to former version.
15194
15195 2000-04-06  Andy Piper  <andy@xemacs.org>
15196
15197         * gmalloc.c (malloc): add error checking.
15198         (malloc): ditto.
15199         (free): ditto.
15200         (realloc): ditto.
15201
15202         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
15203         button_item_to_widget_value arg.
15204
15205         * glyphs-x.c (x_button_instantiate): add extra
15206         button_item_to_widget_value arg.
15207         (x_progress_gauge_instantiate): ditto.
15208         (x_edit_field_instantiate): ditto.
15209         (x_label_instantiate): ditto.
15210
15211         * gui-x.c (gui_items_to_widget_values_1): add extra
15212         button_item_to_widget_value arg.
15213         (button_item_to_widget_value): add extra menu_item_p arg.
15214
15215         * gui-x.h: change signature of button_item_to_widget_value.
15216
15217         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
15218         button_item_to_widget_value arg.
15219
15220 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
15221
15222         * buffer.h (struct buffer): auto_save_modified should be long.
15223
15224 2000-04-05  Andy Piper  <andy@xemacs.org>
15225
15226         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
15227         type.
15228         (button_query_geometry): give a little more room so that athena
15229         buttons fit.
15230
15231 2000-04-05  Andy Piper  <andy@xemacs.org>
15232
15233         * faces.c (complex_vars_of_faces): The widget face should inherit
15234         the font of the gui-element face.
15235
15236 2000-04-04  Andy Piper  <andy@xemacs.org>
15237
15238         * glyphs-x.c (x_button_update): new function. unconditionally
15239         update a button's state when the instance is dirty.
15240         (image_instantiator_format_create_glyphs_x): add x_button_update.
15241         (x_widget_instantiate): remove old resize cruft.
15242
15243 2000-04-02  Andy Piper  <andy@xemacs.org>
15244
15245         * frame.c (change_frame_size_1): The introduction of gutters means
15246         that we need to allow 0 as a potential frame dimension.
15247
15248 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15249
15250         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
15251         image glyph if allow_cursor.
15252         (add_hscroll_rune): Don't allow cursor to border glyph.
15253         (create_text_block): Ditto.
15254
15255         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
15256         text not in buffer.
15257         (redisplay_output_layout): Call ensure_face_cachel_complete for
15258         text image glyph.
15259
15260
15261 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15262
15263         * redisplay.c (add_glyph_rune): Adding text image as text runes.
15264
15265         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
15266         not in buffer
15267
15268         * redisplay-tty.c (tty_output_display_block): Delete the routine
15269         for text image glyph
15270         * redisplay-x.c (x_output_display_block): ditto
15271         * redisplay-msw.c (mswindows_output_display_block): ditto
15272
15273 2000-02-02  Mike Alexander  <mta@arbortext.com>
15274
15275         Note: Some of these were committed by accident as part of other
15276         patches.
15277
15278         * regex.c (regex_compile): Avoid compiler warnings.
15279
15280         * ntproc.c (sys_spawnve): Avoid compiler warnings.
15281
15282         * nt.h: Declare term_ntproc correctly.
15283
15284         * nt.c: Remove incorrect declaration of get_home_directory which
15285         is declared correctly in lisp.h.
15286
15287         * keymap.c (get_keyelt): Avoid compiler warnings.
15288         (raw_lookup_key_mapper): Avoid compiler warnings.
15289
15290         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
15291
15292         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
15293
15294         * filemode.c (mode_string): Avoid compiler warnings.
15295
15296         * file-coding.c (Fcoding_system_aliasee): Add return statement to
15297         avoid warning.
15298
15299         * events-mod.h: Undef some things that winuser.h defines differently.
15300
15301         * data.c (Faset): Avoid compiler warnings.
15302
15303         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
15304
15305 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15306
15307         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
15308         Fall through to simple beep on error.
15309         Replace "extern" by real header file.
15310
15311         * linuxplay.c: Use nativesound.h
15312         (play_sound_data): Return error code. Be less verbose on error.
15313
15314         * sunplay.c: Use nativesound.h
15315         (play_sound_data): Return error code. Be less verbose on error.
15316
15317         * ntplay.c: Use nativesound.h
15318         (play_sound_data): Return fake error code
15319
15320         * sgiplay.c: Use nativesound.h
15321         (play_sound_data): Return error code
15322
15323         * hpplay.c: Use nativesound.h, partially implement
15324         new error code. Break compilation until finished.
15325         (play_sound_data): error code.
15326
15327         * nativesound.h (play_sound_file):
15328           (play_sound_data): Prototype in new header.
15329
15330 2000-03-31  Andy Piper  <andy@xemacs.org>
15331
15332         * glyphs-widget.c: (button_query_geometry): new function. Adjust
15333         for toggle and radio buttons.
15334         (image_instantiator_buttons): use it.
15335
15336 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15337
15338         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
15339         (x_update_horizontal_scrollbar_callback): Return if no mirror was
15340         found. Scrollbar event probably belonged to some old config.
15341
15342 2000-03-31  Andy Piper  <andy@xemacs.org>
15343
15344         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
15345         than 1.
15346         (initialize_widget_image_instance): default layout to
15347         LAYOUT_HORIZONTAL rather than 0.
15348         (widget_instantiate): reverse the item list at the end rather than
15349         every iteration.
15350         (layout_layout): re-code for the border text at the front of the
15351         item list rather than at the end.
15352         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
15353         provided by the user.
15354         (widget_query_geometry): comment.
15355
15356 2000-03-30  Andy Piper  <andy@xemacs.org>
15357
15358         * glyphs-widget.c (image_instantiator_layout): allow standard
15359         widget keywords in layouts.
15360
15361         * gutter.c (output_gutter): cope with nil gutter contents.
15362
15363         * frame.c (Fset_frame_properties): add gutter docs.
15364
15365 2000-03-29  Andy Piper  <andy@xemacs.org>
15366
15367         * toolbar-msw.c (TBSTYLE_FLAT): add.
15368         (mswindows_output_toolbar): minor fiddling.
15369
15370 2000-03-29  Andy Piper  <andy@xemacs.org>
15371
15372         * gutter.c (output_gutter): force gutter size recalculation if
15373         what we are trying to display won't fit.
15374         (update_gutter_geometry): new function. A per-gutter version of
15375         update_frame_gutter_geometry.
15376         (update_frame_gutter_geometry): use it.
15377         (redraw_exposed_gutter): add extra debugging output.
15378
15379 2000-03-28  Mike Alexander  <mta@arbortext.com>
15380
15381         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
15382         (pdump_file_unmap): Implement it on Windows
15383         (pdump_file_get): Save alocated handles for pdump_file_unmap
15384
15385 2000-03-28  Andy Piper  <andy@xemacs.org>
15386
15387         * gui.c (get_gui_callback): treat Quit specially.
15388
15389 2000-03-27  Andy Piper  <andy@xemacs.org>
15390
15391         * glyphs.c (image_instantiate): be careful to check in the same
15392         way we assigned.
15393
15394 2000-03-27  Didier Verna  <didier@xemacs.org>
15395
15396         * config.h.in: define the proper SMART_INCLUDE macro.
15397         handle renaming of `foo_h_path' to `foo_h_file'.
15398
15399         * database.c: ditto.
15400
15401         * emacs.c: ditto.
15402
15403         * linuxplay.c: ditto.
15404
15405         * terminfo.c: ditto.
15406
15407         * tooltalk.h: ditto.
15408
15409 2000-03-27  Andy Piper  <andy@xemacs.org>
15410
15411         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15412         gets updated whenever the face might have changed.
15413
15414 2000-03-26  Mike Alexander  <mta@arbortext.com>
15415
15416         * dumper.c (pdump_resource_free): Fix the comment.
15417
15418 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15419
15420         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15421
15422 2000-03-22  Mike Alexander  <mta@arbortext.com>
15423
15424         * dumper.c: Include Windows headers on Windows
15425         (pdump_resource_free): Add a body to the function
15426         (pdump_load): exe_name -> exe_path and add some comments.
15427
15428 2000-03-25  Mike Alexander  <mta@arbortext.com>
15429
15430         * gui.c (copy_gui_item_tree): Return a value in all cases
15431
15432 2000-03-21  Didier Verna  <didier@xemacs.org>
15433
15434         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15435         lwlib/config.h.in.
15436         (SMART_INCLUDE): new macro.
15437         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15438         the proper location.
15439
15440         * postgresql.c: use it.
15441
15442         * inline.c: ditto.
15443
15444 2000-03-24  Andy Piper  <andy@xemacs.org>
15445
15446         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15447         do this.
15448
15449 2000-03-24  Andy Piper  <andy@xemacs.org>
15450
15451         * redisplay-output.c (compare_runes): use image_instance_changed
15452         to detect changes. Do not depend on glyphs_changed, only depend on
15453         dirtiness.
15454          (redisplay_output_layout): add debug messages.
15455         (compare_runes): ditto.
15456
15457         * glyphs.h: declare new functions.
15458         (struct Lisp_Image_Instance): remove percent and associated
15459         accessors.
15460
15461         * gui.h: declare new copying functions.
15462
15463         * gui.c (copy_gui_item_tree): new function.
15464         (copy_gui_item): new function.
15465         (gui_item_id_hash): revert to standard hash.
15466         (gui_item_hash): ditto.
15467         (gui_item_hash_internal): deleted.
15468         (mark_gui_item): mark value.
15469         (gui_item_add_keyval_pair): add value.
15470         (gui_item_init): ditto.
15471         (gui_add_item_keywords_to_plist): ditto.
15472         (gui_item_equal): ditto.
15473         (syms_of_gui): add Q_value.
15474
15475         * glyphs-x.c (x_progress_gauge_update): use pending items and
15476         value for setting the state.
15477         (x_update_widget): don't set items from pending here.
15478
15479         * glyphs-widget.c (update_widget): update items here.
15480         (progress_gauge_set_property): use items for storing value. Put
15481         new value in pending items.
15482
15483         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15484         items for new value. Convert percent -> value.
15485         (mswindows_tab_control_update): don't update items here.
15486
15487         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15488         (update_subwindow): ditto.
15489         (image_instance_changed): new function. Compare hash values and
15490         past and present widget items.
15491         (image_instantiate): We more careful about where we instantiate
15492         things.
15493         (image_instantiate): add error checking.
15494
15495         * gutter.c (syms_of_gutter): use -hook.
15496
15497 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15498
15499         * console-tty.c (Fset_console_tty_input_coding_system): Use
15500         Qkeyboard.
15501         (Fset_console_tty_output_coding_system): Use Qterminal.
15502         (tty_init_console): Use Qkeyboard and Qterminal.
15503
15504 2000-03-21  Ben Wing  <ben@xemacs.org>
15505
15506         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15507         From Mike Alexander <mta@arbortext.com>.
15508
15509 2000-03-21  Ben Wing  <ben@xemacs.org>
15510
15511         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15512         process brokenness.  Proper implementation to come.
15513         * callproc.c:
15514         Rename call-process-internal to old-call-process-internal.
15515         New impl. in process.el.
15516
15517 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15518
15519         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15520
15521 2000-03-20  Andy Piper  <andy@xemacs.org>
15522
15523         * glyphs.c (full_list_hash): make hashes of the same elements in
15524         different orders return different values.
15525
15526 2000-03-20  Martin Buchholz <martin@xemacs.org>
15527
15528         * XEmacs 21.2.32 is released.
15529
15530 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15531
15532         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15533         (DFC_MALLOC_USE_CONVERTED_DATA):
15534         Add aliasing-safe casts to allow use with char* or unsigned char*
15535         lvalues.
15536
15537         * eldap.c (Fldap_open):
15538         (Fldap_search_basic):
15539         (Fldap_add):
15540         (Fldap_modify):
15541         Make C++-compilable.
15542         Make sure GCPRO'ed variables are initialized.
15543         Use temp variables to avoid repeated calls to Flength.
15544
15545 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15546
15547         * sysfile.h:
15548         Make sure PATH_MAX is always defined.
15549         Include limits.h for PATH_MAX.
15550         Deprecate use of MAXPATHLEN.
15551
15552 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15553
15554         * emacs.c: Add reinit_vars_of_fileio.
15555         * symsinit.h: Add reinit_vars_of_fileio.
15556         * fileio.c (reinit_vars_of_fileio): New.
15557         * fileio.c (Fmake_temp_name):
15558         Initialize temp_name random number from microseconds to make
15559         collisions even less likely.  Initialize always at process startup
15560         time.  (make-temp-name) used to return the same file name twice in
15561         a row when PDUMP.
15562         Random stylistic fiddling.
15563         Comment fixes.
15564
15565 2000-03-20  Andy Piper  <andy@xemacs.org>
15566
15567         * glyphs.c (image_instantiate): allow text glyphs to be
15568         instantiated in the minibuffer window.
15569
15570 2000-03-19  Andy Piper  <andy@xemacs.org>
15571
15572         * glyphs.c (image_instance_hash): be careful about which items we
15573         hash on.
15574
15575         * glyphs-widget.c (tab_control_set_property): record into pending
15576         items rather than the actual items.
15577
15578         * glyphs-x.c (x_update_widget): use pending items to update with.
15579
15580         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15581         to update with.
15582
15583         * glyphs.c (mark_image_instance): mark pending items.
15584
15585         * window.c (Fset_window_configuration): record the buffer.
15586         (Fselect_window): totally revert previous change which breaks many
15587         things.
15588
15589 2000-03-18  Andy Piper  <andy@xemacs.org>
15590
15591         * glyphs-msw.c (mswindows_tab_control_update): force selected
15592         item.
15593
15594         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15595         window domain cache, otherwise we get inconsistencies at
15596         startup. There is something fishy at startup which can lead to the
15597         minibuffer being the selected window when the gutter content is
15598         instantiated.
15599
15600         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15601         gcpros.
15602         (parse_gui_item_tree_children): ditto.
15603         (parse_gui_item_tree_item): ditto.
15604
15605         * glyphs.c (Fupdate_widget_instances): return something.
15606
15607 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15608
15609         * window.c (Fselect_window): Undo 2000-03-17 change.
15610
15611 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15612
15613         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15614         against v7.0 libraries.  Insta-coredump city until the postgres
15615         folks fix it.
15616
15617 2000-03-17  Andy Piper  <andy@xemacs.org>
15618
15619         * faces.c (complex_vars_of_faces): don't give the widget face an
15620         inherited background pixmap.
15621
15622         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15623         selected item.
15624
15625         * event-stream.c (Fdispatch_non_command_events): return something.
15626
15627         * gutter.c (output_gutter): use widget face.
15628         (clear_gutter): ditto.
15629
15630         * NEWS: adjust again.
15631
15632         * window.c (Fselect_window): make sure this runs to completion to
15633         avoid oddities with Fset_window_configuration.
15634         (Fcurrent_window_configuration): in general do not save the
15635         minibuffer as the selected window.
15636
15637         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15638
15639 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15640
15641         * emacs.c (Frunning_temacs_p): Revert previous patch.
15642         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15643
15644 2000-03-16  Andy Piper  <andy@xemacs.org>
15645
15646         * glyphs-x.c (x_tab_control_update): if no widget values then
15647         return.
15648
15649         * NEWS: update for new features.
15650
15651         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15652         synthetic event to the native system.
15653         (reinit_vars_of_event_Xt): set force_event_pending to
15654         emacs_Xt_force_event_pending.
15655
15656         * events.h (struct event_stream): add force_event_pending.
15657
15658         * specifier.c (recompute_one_cached_specifier_in_window): add
15659         comment.
15660
15661         * redisplay.c (redisplay_frame): don't call
15662         update_frame_subwindows. Reset subwindow cachels when
15663         subwindows_changed, removing this was an optimization too far.
15664
15665         * redisplay-output.c (compare_runes): reorganize so that we catch
15666         glyph changes when we want them. Set optimize_output when this
15667         would help layouts.
15668         (redisplay_output_layout): remove frame_really_changed, use
15669         optimize_output instead.
15670
15671         * redisplay-msw.c (mswindows_output_display_block): reset
15672         optimize_output after outputting a glyph.
15673         * redisplay-x.c (x_output_display_block): ditto.
15674         * redisplay-tty.c (tty_output_display_block): ditto.
15675
15676         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15677         functions.
15678         (gutter_specs_changed): do specific gutter positions.
15679         (top_gutter_specs_changed): new function. Only update the
15680         specified gutter specs.
15681         (bottom_gutter_specs_changed): ditto.
15682         (left_gutter_specs_changed): ditto.
15683         (right_gutter_specs_changed): ditto.
15684
15685         * gui.c (gui_item_hash_internal): new function, does a real hash.
15686         (gui_item_id_hash): use it.
15687         (gui_item_hash): hash the eval'ed gui_item.
15688
15689         * gui-x.c (popup_selection_callback): send an eval event to call
15690         Fupdate_widget_instances.
15691
15692         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15693         to call Fupdate_widget_instances.
15694
15695         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15696         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15697
15698         * glyphs.c: (update_frame_subwindows): deleted.
15699         (Fupdate_widget_instances): new function for updating the dirty
15700         state of widgets that might have changed.
15701         (syms_of_glyphs): add Qupdate_widget_instances.
15702         (full_list_hash): hash a list completely.
15703         (image_instance_hash): use it for items and properties.
15704
15705         * frame-msw.c (mswindows_size_frame_internal): remove unused
15706         variable.
15707
15708         * faces.h (struct face_cachel): fix comment.
15709
15710         * event-stream.c (Fdispatch_non_command_events): new
15711         function. Process non-command events, forcing an event cycle
15712         beforehand.
15713         (syms_of_event_stream): declare.
15714         (event_stream_force_event_pending): new function. Force an event
15715         on the native event queue so that an event cycle will occur next
15716         time we check.
15717
15718         * event-msw.c:
15719         (struct ntpipe_shove_stream):
15720         (mswindows_enqueue_dispatch_event):
15721         (mswindows_dequeue_dispatch_event):
15722         (mswindows_cancel_dispatch_event):
15723         (mswindows_pump_outstanding_events):
15724         (mswindows_drain_windows_queue):
15725         (mswindows_handle_paint):
15726         (mswindows_wnd_proc):
15727         (mswindows_key_to_emacs_keysym):
15728         (get_process_input_waitable):
15729         (emacs_mswindows_delete_stream_pair): re-indent file.
15730         (mswindows_need_event): do not process further fds if the windows
15731         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15732         fixes the 100% cpu problem.
15733         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15734
15735 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15736
15737         * alloc.h: New.
15738         * dumper.h: New.
15739         * dumper.c: New.
15740
15741         * emacs.c: Moved dump file searching to dumper.c.
15742         (Frunning_temacs_p): Fixed.
15743
15744         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15745         last_lrecord_type_index_assigned.
15746
15747 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15748
15749         * symsinit.h: Added reinit parameter to init_console_stream
15750         declaration.
15751
15752         * lisp.h: Added file parameter to pdump_load declaration.
15753
15754         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15755         support.  Added dump file searching.
15756
15757         * config.h.in: Added EMACS_PROGNAME.
15758
15759         * console-stream.c (init_console_stream): Fix reinitialisation
15760         when running from temacs.
15761
15762         * alloc.c (pdump): Add id support.
15763         (pdump_load): Add file parameter and signature/id support.
15764
15765         * Makefile.in.in: Add full pdump support.
15766
15767 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15768
15769         * postgresql.c: Update documentation to reflect latest code
15770         status.
15771         (print_result): Show tuple counts in printed representation when
15772         appropriate.
15773         (Fpq_put_nbytes): MULE-ize.
15774         (Fpq_get_line_async): Ditto.
15775
15776 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15777
15778         * postgresql.c (Fpq_lo_import): Fix return value.
15779         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15780
15781 2000-03-13  Ben Wing  <ben@xemacs.org>
15782
15783         * alloc.c (pdump_load):
15784         Fix compile warning under mswin.
15785
15786 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15787
15788         * postgresql.c: Mule-ization, bug fixes.
15789         Use PG_CODING to encapsulate coding system name changes.
15790         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15791         (pg-coding-system): Create.
15792
15793         (Fpq_conn_defaults): Mule-ize.
15794         (Fpq_connectdb): Mule-ize & bug fix.
15795         (Fpq_connect_start): Mule-ize.
15796         (Fpq_set_client_encoding): Mule-ize.
15797         (Fpq_finish): Document `DEAD' connection status.
15798         (Fpq_clear): Ditto.
15799         (Fpq_pgconn): Mule-ize.
15800         (Fpq_exec): Mule-ize & bug fix.
15801         (Fpq_send_query): Ditto.
15802         (Fpq_get_result): Ditto.
15803         (Fpq_res_status): Mule-ize.
15804         (Fpq_result_error_message): Mule-ize.
15805         (Fpq_ntuples): fix comments.
15806         (Fpq_fname): Mule-ize.
15807         (Fpq_fnumber): Mule-ize.
15808         (Fpq_ftype): fix comments.
15809         (Fpq_get_value): Mule-ize.
15810         (Fpq_cmd_status): Ditto.
15811         (Fpq_cmd_tuples): Ditto.
15812         (Fpq_oid_value): Ditto.
15813         (Fpq_notifies): Ditto.
15814         (Fpq_lo_import): Ditto.
15815         (Fpq_lo_export): Ditto.
15816         (Fpq_get_line): Ditto.
15817         (Fpq_put_line): Mule-ize and bug fix.
15818         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15819
15820 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15821
15822         * postgresql.c (vars_of_postgresql): Mule-ize.
15823         (Fpq_conn_defaults): Ditto.
15824
15825 2000-03-12  Ben Wing  <ben@xemacs.org>
15826
15827         * alloc.c (Fmake_byte_code):
15828         * alloc.c (debug_string_purity_print):
15829         * alloc.c (pdump_backtrace):
15830         * alloc.c (pdump_get_indirect_count):
15831         * alloc.c (pdump_register_sub):
15832         * alloc.c (pdump_register_object):
15833         * alloc.c (pdump_register_struct):
15834         * alloc.c (pdump_dump_data):
15835         * alloc.c (pdump_reloc_one):
15836         Minor cleanups.
15837
15838         * console-msw.c:
15839         * console-msw.c (GetConsoleHwnd):
15840         * console-msw.c (msw_hide_console):
15841         * console-msw.c (msw_show_console):
15842         * console-msw.c (msw_ensure_console_buffered):
15843         * console-msw.c (msw_output_console_string):
15844         * console-msw.c (console_type_create_mswindows):
15845
15846         a) Added functions to manipulate the console window for use with
15847         shell support.
15848
15849         b) Added support for writing text to the console, which is now
15850         used under Windows when xemacs is not being run non-interactively,
15851         to write text that would otherwise be destined for stdout because
15852         under these circumstances, text written to stdout tends to
15853         disappear and not be seen.
15854
15855         * console-msw.h:
15856         * event-Xt.c:
15857         * event-Xt.c (x_event_to_emacs_event):
15858         * event-Xt.c (describe_event_window):
15859         * events-mod.h (XEMACS_MOD_CONTROL):
15860         * events.c:
15861         * events.c (Fmake_event):
15862         * events.c (character_to_event):
15863         * events.c (event_to_character):
15864         * events.c (format_event_object):
15865         * events.c (Fevent_modifiers):
15866         * events.h:
15867         * events.h (struct key_data):
15868         * events.h (struct button_data):
15869         * events.h (struct misc_user_data):
15870         * frame-x.c (Fcde_start_drag_internal):
15871         * frame-x.c (Foffix_start_drag_internal):
15872         * gpmevent.c (Freceive_gpm_event):
15873         * keymap.c:
15874         * keymap.c (bucky_sym_to_bucky_bit):
15875         * keymap.c (control_meta_superify):
15876         * keymap.c (make_key_description):
15877         * keymap.c (keymap_lookup_directly):
15878         * keymap.c (create_bucky_submap):
15879         * keymap.c (keymap_store):
15880         * keymap.c (define_key_check_and_coerce_keysym):
15881         * keymap.c (define_key_parser):
15882         * keymap.c (define_key_alternate_name):
15883         * keymap.c (Fdefine_key):
15884         * keymap.c (raw_lookup_key_mapper):
15885         * keymap.c (struct map_keymap_unsorted_closure):
15886         * keymap.c (map_keymap_unsorted_mapper):
15887         * keymap.c (map_keymap_sort_predicate):
15888         * keymap.c (map_keymap_sorted):
15889         * keymap.c (accessible_keymaps_mapper_1):
15890         * keymap.c (where_is_recursive_mapper):
15891         * keymap.c (describe_map_mapper):
15892         * keymap.c (describe_map_sort_predicate):
15893         * keymap.c (describe_map):
15894         * keymap.c (complex_vars_of_keymap):
15895         And a number of other files, the key modifier preprocessor
15896         constants that xemacs uses have names that conflict with constants
15897         defined under MS Windows for other purposes, so they were renamed
15898         to begin with the prefix XEMACS_. The variables that hold such
15899         modifiers were changed to consistently be of type int to fix
15900         various compile warnings.
15901
15902         * console.c (complex_vars_of_console):
15903         * device.c:
15904         * device-msw.c:
15905         * device-msw.c (mswindows_finish_init_device):
15906         * device-msw.c (msw_get_workspace_coords):
15907         * device-msw.c (mswindows_device_system_metrics):
15908         and various other files, added support for a new
15909         device property called offset-workspace which returns the position
15910         of the upper left corner of the workspace area and goes along with
15911         the existing size-workspace property.
15912
15913         * dialog-msw.c:
15914         * dialog-msw.c (push_bufbyte_string_as_unicode):
15915         * dialog-msw.c (mswindows_popup_dialog_box):
15916         Added support for XEmacs-style accelerator specifications in
15917         button text.  Note: I didn't add support for this under X Windows,
15918         and somebody needs to do this.
15919
15920         * dialog.c:
15921         * dialog.c (Fpopup_dialog_box):
15922         Documented the support for accelerators that was just mentioned.
15923
15924         editfns.c (get_home_directory): Changed behavior under Windows
15925         when HOME not defined; former behavior was irretrievably broken.
15926
15927         * emacs.c:
15928         * emacs.c (main_1):
15929         * emacs.c (main):
15930         * minibuf.c (clear_echo_area_internal):
15931         * minibuf.c (echo_area_append):
15932         * print.c:
15933         * print.c (std_handle_out_external):
15934         * print.c (std_handle_out_va):
15935         * print.c (fatal):
15936         * print.c (write_string_to_stdio_stream):
15937         * print.c (output_string):
15938         * print.c (debug_print):
15939         * print.c (debug_backtrace):
15940         * print.c (debug_short_backtrace):
15941         Cleaned up the code that prints text to stdout so that this can be
15942         changed to output into a console window instead under MS Windows,
15943         as described above.
15944
15945         * eval.c:
15946         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15947         * eval.c (internal_catch):
15948         * eval.c (unwind_to_catch):
15949         * eval.c (throw_or_bomb_out):
15950         * eval.c (condition_case_1):
15951         * eval.c (signal_1):
15952         * eval.c (check_error_state_sanity):
15953         * eval.c (call_with_suspended_errors_1):
15954         * eval.c (call_with_suspended_errors):
15955         * eval.c (reinit_vars_of_eval):
15956         Added code to catch throw loops and check for a pesky bug that may
15957         be gone now.
15958
15959         * event-msw.c:
15960         * event-msw.c (key_needs_default_processing_p):
15961         * event-msw.c (mswindows_wnd_proc):
15962         * event-msw.c (mswindows_modifier_state):
15963         * event-msw.c (emacs_mswindows_quit_p):
15964         * event-msw.c (vars_of_event_mswindows):
15965         a) Added support for using the alt key to select menu items as is
15966         standard under MS Windows.  This is controlled using the variable
15967         menu-accelerator-enabled, just like under X Windows.  There is an
15968         option on the options menu to turn this support on.  I really
15969         think that it should be on by default under Windows, but I'm not
15970         going to make this change yet.
15971
15972         b)  Added support for dynamic display size changes under Windows.
15973
15974         * event-stream.c:
15975         * event-stream.c (maybe_echo_keys):
15976         * event-stream.c (Fnext_event):
15977         * event-stream.c (command_builder_find_leaf):
15978         * event-stream.c (lookup_command_event):
15979         * event-stream.c (execute_command_event):
15980         * event-stream.c (pre_command_hook):
15981         * event-stream.c (post_command_hook):
15982         * event-stream.c (syms_of_event_stream):
15983         * event-stream.c (vars_of_event_stream):
15984         * event-stream.c (complex_vars_of_event_stream):
15985         * events.h (struct command_builder):
15986
15987         a) Tried to clean up a little bit the horribly written x-specific
15988         accelerator code that crept into this file.  I moved this code
15989         into menubar-x.c where it belongs. I also needed to move the
15990         command builder structure into the file events.h because it is
15991         accessed directly by this accelerator code.  What I didn't do, but
15992         which should be done at some point, is to properly abstract this
15993         code using device methods instead of the kludgy way that it
15994         currently hooks into the event code.
15995
15996         b) Added the lisp variables this-command-properties and
15997         last-command- properties, which should be used to synchronize two
15998         adjacent commands in preference to playing games with the variable
15999         this-command, which is typically what happens.
16000
16001         c) Added some slightly nasty code to hook into the lisp support
16002         for shifted- motion-key selection.  This is actually necessary for
16003         somewhat complicated reasons, which are described in
16004         simple.el. (NB: I think the proper thing would be to have the code
16005         that calls the pre and post command hooks also call out to generic
16006         lisp functions in simple.el, where all built-in stuff could be
16007         added.  I will think about this more.)
16008
16009         * event-unixoid.c (poll_fds_for_input):
16010         * lread.c (readchar):
16011         * redisplay-tty.c (tty_clear_frame):
16012         * redisplay-x.c (x_get_gc):
16013         * signal.c (interrupt_signal):
16014         And a whole bunch of other files: fixed up places that printed
16015         directly to stderr to instead call the function stderr_out so that
16016         the changes I made under Windows work correctly.
16017
16018         * filemode.c (mode_string):
16019         Warning fixes.
16020
16021         * frame-msw.c:
16022         * frame-msw.c (mswindows_size_frame_internal):
16023         Fixed the computation of frame size and position to keep the frame
16024         within the workspace area, rather than within the physical
16025         dimensions of the screen, so that the frame doesn't overlap window
16026         manager decorations, such as the start menu and toolbar, typically
16027         at the bottom of the screen.
16028
16029         * frame.c (vars_of_frame):
16030         Changed the default frame title format under MS Windows to consist
16031         of buffername-XEmacs, which is standard under MS Windows.  I think
16032         it might be a good idea to change this everywhere because I think
16033         it is superior to the current frame title format, but this is the
16034         kind of change that is likely to cause some people to get annoyed,
16035         so I'm not making it.
16036
16037         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
16038
16039         * gui-msw.c (mswindows_handle_gui_wm_command):
16040         Fixed compile warnings.
16041
16042         * gui-x.c:
16043         * gui-x.c (strdup_and_add_accel):
16044         * gui-x.c (button_item_to_widget_value):
16045         * gui-x.h:
16046         Added code to automatically put an accelerator onto the beginning
16047         of menu items that don't have one as is now the standard, and is
16048         described more later.  Also fixed things so that the menu item
16049         name can be an evaluated expression, again a new standard.
16050
16051         * gui.c:
16052         * gui.c (gui_item_add_keyval_pair):
16053         * gui.c (make_gui_item_from_keywords_internal):
16054         * gui.c (gui_add_item_keywords_to_plist):
16055         * gui.c (gui_item_accelerator):
16056         * gui.c (gui_name_accelerator):
16057         * gui.c (gui_item_included_p):
16058         * gui.c (gui_item_display_flush_left):
16059         * gui.c (gui_item_display_flush_right):
16060         * gui.c (parse_gui_item_tree_item):
16061         * gui.c (parse_gui_item_tree_children):
16062         * gui.c (parse_gui_item_tree_list):
16063         Mule-ized.  Cleanup.  GCPRO addition.
16064
16065         * line-number.c (buffer_line_number):
16066         * lisp.h:
16067         * lisp.h (EMACS_INT_MAX):
16068         Added the manifest constant EMACS_INT_MIN corresponding to the
16069         existing constant EMACS_INT_MAX.  This is partially to fix compile
16070         warnings under Windows, and partly for cleanliness.
16071
16072         * menubar-msw.c:
16073         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
16074         * menubar-msw.c (msw_translate_menu_or_dialog_item):
16075         * menubar-msw.c (displayable_menu_item):
16076         * menubar-msw.c (populate_menu_add_item):
16077         * menubar-msw.c (populate_or_checksum_helper):
16078         * menubar-msw.c (populate_menu):
16079         * menubar-msw.c (update_frame_menubar_maybe):
16080         * menubar-msw.c (prune_menubar):
16081         * menubar-msw.c (msw_char_is_accelerator):
16082         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
16083         * menubar-msw.c (mswindows_handle_wm_command):
16084         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
16085         * menubar-msw.c (mswindows_handle_wm_initmenu):
16086         * menubar-msw.c (mswindows_update_frame_menubars):
16087         * menubar-msw.c (mswindows_free_frame_menubars):
16088         * menubar-msw.c (mswindows_popup_menu):
16089         Fixed a bug in handling accelerators where an extra character
16090         would be displayed in the menu item.  Also generalized the
16091         function displayable_menu_item because it is now used by the
16092         dialog box code as well.  And finally, added code in the functions
16093         that create the menubar to extract a list of accelerators for the
16094         top level menubar, which is used in the event code to determine
16095         whether a particular alt-key combination should be used to invoke
16096         a menu item, or should be passed through to access the standard
16097         XEmacs keymap binding for this key combination.
16098
16099         Much needed GCPROing.
16100
16101         * menubar-x.c:
16102         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
16103         * menubar-x.c (menu_item_descriptor_to_widget_value):
16104         * menubar-x.c (restore_in_menu_callback):
16105         * menubar-x.c (x_popup_menu):
16106         * menubar-x.c (menu_move_up):
16107         * menubar-x.c (menu_move_down):
16108         * menubar-x.c (menu_move_left):
16109         * menubar-x.c (menu_move_right):
16110         * menubar-x.c (menu_select_item):
16111         * menubar-x.c (command_builder_operate_menu_accelerator):
16112         * menubar-x.c (menu_accelerator_junk_on_error):
16113         * menubar-x.c (command_builder_find_menu_accelerator):
16114         * menubar-x.c (Faccelerate_menu):
16115         * menubar.h:
16116         Moved a whole bunch of code here that was previously in
16117         event-stream.c as described above.  There is also code connected
16118         to the new standard of adding an accelerator to the beginning of
16119         menu items that don't have one as described above and below.
16120
16121         * menubar.c:
16122         * menubar.c (menu_parse_submenu_keywords):
16123         * menubar.c (Fmenu_find_real_submenu):
16124         * menubar.c (Fnormalize_menu_item_name):
16125         * menubar.c (syms_of_menubar):
16126         * menubar.c (vars_of_menubar):
16127         * menubar.c (complex_vars_of_menubar):
16128
16129         a) Cleaned up a bunch of documentation and improved it.
16130
16131         b) XEmacs now automatically adds an accelerator onto the beginning
16132         of any menu items that don't have one.  I did this because there
16133         will inevitably be some menu items on the main menubar that don't
16134         have accelerators on them because the package that adds that
16135         particular menu item hasn't yet been fixed up to have accelerators
16136         in them and it looked rather strange to have some items with and
16137         some items without accelerators, especially since even in items
16138         without accelerators, you can, at least under windows, still
16139         access the item through an accelerator corresponding to the first
16140         character in the item's name.  If people don't like this behavior,
16141         I can add a variable to turn it off optionally, but I'm not sure
16142         this is a good idea because we really do need to have accelerators
16143         on all of the menu items, and if a package doesn't like the
16144         accelerators being put on the first character, then it should put
16145         the accelerators where they belong.
16146
16147         c) I made a behavior change, which is that the descriptor that
16148         specifies the text of the menu item, which formerly was just a
16149         string, can now also be an evaluated expression.  This makes this
16150         descriptor parallel with all of the others, which could also be
16151         evaluated expressions.  This also obviates the need for the
16152         keyword :label, which was previously listed in the documentation
16153         as unimplemented, and which was for the same purpose.
16154
16155         d) GCPROing.
16156
16157         * ntproc.c:
16158         * ntproc.c (new_child):
16159         * ntproc.c (sys_spawnve):
16160         * ntproc.c (find_child_console):
16161         * ntproc.c (sys_kill):
16162         Fixed compile warnings.  By the way, this file should really go
16163         away entirely, and this will happen as soon as Kirill makes his
16164         final round of process cleanups, which affect the function
16165         call-process.
16166
16167         * process-nt.c:
16168         * process-nt.c (struct nt_process_data):
16169         * process-nt.c (find_process_from_pid):
16170         * process-nt.c (send_signal_the_nt_way):
16171         * process-nt.c (enable_child_signals):
16172         * process-nt.c (find_child_console):
16173         * process-nt.c (send_signal_the_95_way):
16174         * process-nt.c (nt_finalize_process_data):
16175         * process-nt.c (ensure_console_window_exists):
16176         * process-nt.c (nt_create_process):
16177         * process-nt.c (nt_kill_child_process):
16178         * process-nt.c (nt_kill_process_by_pid):
16179         * process-nt.c (nt_open_network_stream):
16180         * process-nt.c (vars_of_process_nt):
16181         Copied over code from Emacs 20.5 to correctly send signals to sub-
16182         processes under Windows 95.  Also added code to automatically
16183         create and hide console window when a sub-process is created under
16184         Windows 95, which obviates the need for the separate runemacs.exe
16185         executable, and finally implemented some variables that were
16186         implemented in Emacs 20.5, but previously not in XEmacs.  These
16187         include mswindows- start-process-share-console and
16188         mswindows-start-process-inherit-error-mode. (Both of these only
16189         apply to Windows 95.)
16190
16191         * regex.c (regex_compile): Fixed a compile warning.
16192
16193         * select-msw.c:
16194         * select-msw.c (mswindows_own_selection):
16195         * select-msw.c (mswindows_get_foreign_selection):
16196         * select-msw.c (mswindows_disown_selection):
16197         * select-msw.c (console_type_create_select_mswindows):
16198         * select-msw.c (syms_of_select_mswindows):
16199         Cleaned up the file and implemented the device method
16200         selection_exists_p, which had accidentally been left out.  Also
16201         removed four lisp functions that were remnants from before the
16202         time when the selection code was properly device abstracted.
16203         These functions are no longer needed because there are generic
16204         equivalents, and because they were added recently and don't exist
16205         in FSF Emacs, I don't think there's any problem with just deleting
16206         them.
16207
16208         * sysdep.c:
16209         * sysdep.c (sys_subshell):
16210         Fixed a compile warning, although in this case there's probably
16211         something wrong with this code, and it ought to be looked into
16212         more thoroughly by somebody who understands it.
16213
16214         * window.c:
16215         * window.c (Fwindow_text_area_height):
16216         * window.c (Fwindow_width):
16217         * window.c (Fwindow_full_width):
16218         * window.c (Fwindow_pixel_width):
16219         * window.c (debug_print_window):
16220         * window.c (syms_of_window):
16221         Added functions window-text-area-height and window-full-width,
16222         which are functions for returning various width and height
16223         characteristics of a window. (One of these functions is necessary
16224         for making the file dialog box work correctly, and the other one
16225         was added for completeness.)  Also added a table to the
16226         documentation for window-height which describes the entire scheme
16227         for accessing width and height characteristics of a window.
16228
16229 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16230
16231         * nt.c (fstat): Added a comment for another problem with
16232         non-encapsulated [f]stat(), reported by Adrian Aichner
16233         <aichner@ecf.teradyne.com>.
16234
16235 2000-03-11  Andy Piper  <andy@xemacs.org>
16236
16237         * window.c (make_dummy_parent): initialize subwindow instance
16238         cache.
16239         (Fset_window_configuration): zero extent_modiff.
16240
16241 2000-03-10  Andy Piper  <andy@xemacs.org>
16242
16243         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
16244         more changes can be triggered.
16245         (Fredisplay_frame): ditto.
16246         (Fredraw_device): ditto.
16247         (Fredisplay_device): ditto.
16248         (redisplay_frame): make non-static.
16249         (redisplay_frame): call update_frame_gutter_geometry outside of
16250         display proper.
16251
16252         * gutter.h: declare update_frame_gutter_geometry.
16253
16254         * redisplay.h: declare redisplay_frame.
16255
16256         * gutter.c (update_frame_gutter_geometry): move geometry changes
16257         in update_frame_gutters here. Geometry changes can only occur
16258         outside of redisplay.
16259         (update_frame_gutters): remove geometry change code.
16260         (Fredisplay_gutter_area): make sure that we are in display when we
16261         update and that we have flushed any size changes.
16262
16263 2000-03-11  Andy Piper  <andy@xemacs.org>
16264
16265         * alloc.c (pdump_dump_data): remove i & count shadows.
16266
16267 2000-02-27  Mike Alexander  <mta@arbortext.com>
16268
16269         * sysdep.h: Declare pdump_read_file
16270
16271         * sysdep.c (pdump_read_file): New function
16272
16273         * alloc.c (pdump_load): Call pdump_read_file to get the portable
16274         dump data
16275
16276 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
16277
16278         * lrecord.h: add `lrecord_type_pgsetenv'.
16279
16280 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
16281
16282         * symsinit.h: declare (vars|syms)_of* functions.
16283         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
16284
16285 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
16286
16287         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
16288
16289         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
16290         GCCs.
16291
16292         * emacs.c (main_1): Call postgres initialization code.
16293
16294         * postgresql.h: New file.  PostgreSQL RDBMS support.
16295         * postgresql.c: New file.
16296
16297 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
16298
16299         * redisplay-output.c (redisplay_output_display_block): Disable
16300         redundant code.
16301
16302 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16303
16304         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
16305         (Fcanna_henkan_next): Ditto.
16306         (Fcanna_bunsetu_henkou): Ditto.
16307         (Fcanna_henkan_kakutei): Ditto.
16308         (Fcanna_henkan_end): Ditto.
16309         (Fcanna_henkan_quit): Ditto.
16310         (Fcanna_henkan_next): Set retun value correctly.
16311         (c2mu): Use unsigned char instead of signed char.
16312
16313 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16314
16315         * emacs.c (main_1): Always call syms_of_gui.
16316         * inline.c: include gui.h
16317
16318 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16319
16320         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
16321         converted to Lisp_Object.
16322         (Qtop_bottom): New variable.
16323         (syms_of_redisplay): Initialize it.
16324         * redisplay.h (Vvisible_bell): Ditto.
16325         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
16326         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
16327         only flash top and bottom.
16328
16329 2000-03-08  Andy Piper  <andy@xemacs.org>
16330
16331         * buffer.c (Frename_buffer): record new buffer name the right way.
16332
16333 2000-03-08  Andy Piper  <andy@xemacs.org>
16334
16335         * glyphs.c (update_subwindow): increase hash depth so that widget
16336         items get picked up properly.
16337
16338         * redisplay-output.c (compare_runes): increase hash depth so that
16339         widget items get picked up properly.
16340
16341 2000-03-08  Andy Piper  <andy@xemacs.org>
16342
16343         * gutter.c (output_gutter): add some debug.
16344
16345         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
16346         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
16347         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
16348
16349         * redisplay-output.c (compare_runes): use display_hash to
16350         determine if glyphs really are not the same.
16351
16352         * glyphs.c (update_subwindow): check display_hash to see if
16353         anything really needs to be updated. If not then do
16354         nothing. Record the display_hash after updating.
16355         (image_instance_equal): compare the image_instance face also.
16356
16357 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
16358
16359         * redisplay.h: Fix comment style.
16360
16361 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16362
16363         * consle-msw.h (struct mswindows_frame):
16364         Added new member paint_pending to indicate whether a WM_PAINT
16365         magic event has been queued for this frame.
16366
16367         * event-msw.c (mswindows_drain_windows_queue):
16368         Don't queue a WM_PAINT magic event if one is already queued.
16369         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
16370
16371         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
16372
16373 2000-03-07  Didier Verna  <didier@xemacs.org>
16374
16375         * dired.c: #include `regex.h' after `sysfile.h'.
16376
16377 2000-03-06  Martin Buchholz  <martin@xemacs.org>
16378
16379         * sound.c (init_nas_sound): Fix compiler warning.
16380
16381         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
16382         (FREE_STRUCT_P):
16383         (MARK_STRUCT_AS_FREE):
16384         (MARK_STRUCT_AS_NOT_FREE):
16385         Make `gcc -fstrict-aliasing' work properly.
16386
16387 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16388
16389         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16390         (mswindows_delete_device): Call CoUnnitialize().
16391
16392         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16393
16394 2000-02-25    <CraigL@DyCon.com>
16395
16396         * process-nt.c: MinGW now has <shellapi.h>, but still needs
16397         <errno.h>.
16398
16399         * sysdep.c: This extern declaration for environ prevents MinGW
16400         from finding the variable in CRTDLL.DLL.
16401
16402         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16403         windows headers.
16404         (SHGFI_EXETYPE): ..
16405         (WM_MOUSEWHEEL): ..
16406         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16407         definitions.
16408         (MMRESULT): Removed, now defined in cygwin's windows headers.
16409         (TIMECAPS): ..
16410         (uid_t,gid_t,pid_t,ssize_t): ..
16411         (_timeb): Removed, MinGW defines both _timeb and timeb.
16412         (HAVE_H_ERRNO): Added.
16413         (HAVE_TZNAME): Added, configure is not detecting this.
16414
16415 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16416
16417         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16418         * syntax.c (syntax_match): Use it.
16419
16420         * cmds.c: Import auto-fill-chars from FSF Emacs.
16421         (Vauto_fill_chars): New variables.
16422         (internal_self_insert): Check Vauto_fill_chars.
16423         (vars_of_cmds):
16424         Declare auto-fill-chars as a Lisp variable and initialize it.
16425
16426 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16427
16428         * fileio.c (Fmake_symbolic_link):
16429         (Ffile_symlink_p):
16430         Run handlers even if local machine doesn't have symlinks.
16431
16432 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16433
16434         * event-msw.c (mswindows_drain_windows_queue):
16435         Don't generate paint magic events for non-XEmacs frames.
16436
16437 2000-03-05  Andy Piper  <andy@xemacs.org>
16438
16439         * redisplay.c (redisplay_frame): generate_displayable_area and
16440         friends assumes that we are not in GC, we therefore have to make
16441         sure that this doesn't happen.
16442
16443         * gutter.c (calculate_gutter_size): generate_displayable_area
16444         assumes that we are not in GC, we therefore have to make sure that
16445         this doesn't happen.
16446
16447 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16448
16449         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16450
16451 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16452
16453         * redisplay.c (regenerate_window): Make sure we set a sane value
16454         for end_pos even if we jump out of the loop.
16455         (regenerate_window): Answer Ben's question :-).
16456         (start_end_of_last_line): Add may_error argument.
16457         (start_of_last_line):
16458         (end_of_last_line): Pass may_error = 0.
16459         (end_of_last_line_may_error): New function.
16460         (pixel_to_glyph_translation): Use it, so we don't crash in
16461         event_to_glyph.
16462
16463 2000-03-04  Andy Piper  <andy@xemacs.org>
16464
16465         * window.h (struct window): add gutter_extent_modiff.
16466
16467         * window.c (allocate_window): zero out gutter_extent_modiff.
16468
16469         * redisplay.h: declare sync_display_line_structs.
16470
16471         * redisplay.c (add_glyph_rune): add a better comment.
16472
16473         * redisplay-output.c (sync_display_line_structs): made non-static.
16474         (compare_runes): remove unneccesary glyph cachel access.
16475
16476         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16477
16478         * gutter.c (output_gutter): don't output the gutter if extent
16479         changes only involve extents in buffers. use 4 sets of display
16480         lines.
16481         (gutter_extent_signal_changed_region_maybe): new function. Mark
16482         extents in gutters as changed.
16483         (update_frame_gutters): use 4 sets of display lines.
16484         (reset_gutter_display_lines): ditto.
16485         (free_frame_gutters): ditto.
16486         (redraw_exposed_gutter): force output of gutters.
16487
16488         * frame.h (struct frame): add 4 sets of gutter display lines.
16489
16490         * extents.c: (extent_changed_for_redisplay): signal changes to
16491         extents in strings in the gutter as well as extents in buffers.
16492
16493 2000-03-02  Andy Piper  <andy@xemacs.org>
16494
16495         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16496
16497         * frame.c (Fmake_frame): make sure the gutters get initialized
16498         after the frame is visible.
16499         (set_frame_selected_window): re-arrange compilation macros a
16500         little.
16501         (change_frame_size_1): mark gutters changed.
16502
16503         * device.c (Fset_device_class): mark gutters changed.
16504
16505 2000-03-01  Andy Piper  <andy@xemacs.org>
16506
16507         * window.c (window_top_frame_gutter_height): deleted.
16508         (window_bottom_frame_gutter_height): ditto.
16509         (window_left_frame_gutter_height): ditto.
16510         (window_right_frame_gutter_height): ditto.
16511         (window_top_gutter_height): don't use them.
16512         (window_bottom_gutter_height): ditto.
16513         (window_left_gutter_width): ditto.
16514         (window_right_gutter_width): ditto.
16515         (Fsplit_window): ditto.
16516         (Fwindow_pixel_edges): don't use border dimensions here.
16517
16518         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16519         (update_scrollbar_instance): ditto.
16520
16521         * redisplay.c (generate_modeline): don't take gutters into account.
16522         (generate_modeline): ditto.
16523         (redisplay_frame): small gutter display optimization.
16524
16525         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16526
16527         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16528         gutters into account.
16529
16530         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16531         for window position and type.
16532
16533         * gutter.c (get_gutter_coords): fix for frame gutters.
16534         (update_frame_gutters): update frame geometry if the gutters have
16535         changed.
16536         (init_frame_gutters): record current gutter geometries.
16537
16538         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16539         var.
16540         (mswindows_widget_instantiate): ditto.
16541
16542         * frame.h (struct frame): add current_gutter_bounds.
16543
16544         * frame.c (change_frame_size_1): position window and minibuffer
16545         appropriately taking into account the frame gutters.
16546
16547         * frame-x.c: (x_initialize_frame_size): take into account the
16548         frame gutters.
16549
16550 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16551
16552         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16553
16554 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16555
16556         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16557
16558 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16559
16560         * file-coding.c (reset_decoding_stream): Clear previous
16561         detection state when autodetect.
16562
16563 2000-02-29  Didier Verna  <didier@xemacs.org>
16564
16565         * extents.c (set_extent_glyph_1): don't require extents to be
16566         attached.
16567
16568 2000-02-27  Andy Piper  <andy@xemacs.org>
16569
16570         * gutter.c (Fset_default_gutter_position): don't default left and
16571         right gutter visibility to t.
16572         (Fset_default_gutter_position): run
16573         default-gutter-position-changed-hook.
16574         (syms_of_gutter): add default-gutter-position-changed-hook.
16575
16576 2000-02-26  Andy Piper  <andy@xemacs.org>
16577
16578         * specifier.c (Fmake_specifier): add gutter references.
16579
16580         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16581
16582         * lisp.h: declare Fvalid_plist_p.
16583
16584         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16585         as changed.
16586         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16587         well as its visibility so that it gets reconstructed.
16588         (construct_window_gutter_spec): new function. Construct a string
16589         to be displayed in the gutter from a plist of strings. Take care
16590         to only use elements that are declared as visible.
16591         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16592         WINDOW_GUTTER.
16593         (gutter_validate): allow plists of strings in the specifier.
16594         (gutter_specs_changed): construct the real_gutter from the gutter
16595         specs using construct_window_gutter_spec.
16596         (gutter_visible_validate): gutter-visible is a new specifier type.
16597         (Fgutter_visible_specifier_p): new function for the new specifier.
16598         (syms_of_gutter): declare gutter-visible and
16599         Fgutter_visible_specifier_p.
16600         (specifier_type_create_gutter): intitalize new gutter-visible
16601         specifier.
16602         (reinit_specifier_type_create_gutter): ditto.
16603         (specifier_vars_of_gutter): use new specifier type for gutter
16604         visibility.
16605         (init_frame_gutters): construct real_gutter correctly.
16606         (Fgutter_specifier_p): beef up documentation.
16607         (Fgutter_size_specifier_p): ditto.
16608
16609         * winslots.h: add real_gutter slots.
16610
16611 2000-02-25  Andy Piper  <andy@xemacs.org>
16612
16613         * device-msw.c: Be kind to older cygwin versions. From Raymond
16614         Toy <toy@rtp.ericsson.se>.
16615
16616         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16617         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16618
16619 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16620
16621         * elhash.c (MARK_OBJ): Practice macro hygiene.
16622
16623 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16624
16625         * miscplay.c: s/__inline__/inline/g;
16626         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16627         (get_device_compdc): INLINE ==> static inline
16628         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16629         find -name '*.h' | \
16630         xargs global-replace \
16631         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16632
16633 2000-02-25  Andy Piper  <andy@xemacs.org>
16634
16635         * window.c (window_top_frame_gutter_height): new function.
16636         (window_top_window_gutter_height): ditto.
16637         (window_top_gutter_height): use them.
16638         (window_bottom_frame_gutter_height): new function.
16639         (window_bottom_window_gutter_height): ditto.
16640         (window_bottom_gutter_height): use them.
16641         (window_left_window_gutter_width): new function.
16642         (window_left_frame_gutter_width): ditto.
16643         (window_left_gutter_width): use them.
16644         (window_right_window_gutter_width): new function.
16645         (window_right_frame_gutter_width): ditto.
16646         (window_right_gutter_width): use them.
16647         (window_pixel_height): new function. calulate window pixel height
16648         with frame gutter involvement.
16649         (Fsplit_window): calculate new sizes taking frame gutters into
16650         account.
16651         (window_char_height_to_pixel_height): don't include frame gutters.
16652         (window_char_height): use window_pixel_height.
16653         (window_pixheight): rename from window_pixel_height.
16654         (change_window_height): use it.
16655         (window_pixel_height_to_char_height): don't include frame gutters.
16656         (window_char_width_to_pixel_width): ditto.
16657
16658 2000-02-25  Andy Piper  <andy@xemacs.org>
16659
16660         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16661         if it is.
16662
16663 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16664
16665         * alloc.c (staticpro):
16666         (staticpro_nodump):
16667         (dumpstruct):
16668         (dumpopaque):
16669         (pdump_wire):
16670         (pdump_wire_list):
16671         (compact_string_chars):
16672         (pdump_dump_wired):
16673         Convert:  if (foo) abort();  ==>  assert (! foo);
16674
16675         * eldap.c (Fldap_search_basic):
16676         (Fldap_add):
16677         (Fldap_modify):
16678         (Fldap_delete):
16679         Fix compiler warnings, and possible crashes if (random) return
16680         value were to be used.
16681
16682 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16683
16684         * device-msw.c: Workaround ResetDC failure.
16685
16686         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16687         applying a devmode.
16688
16689         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16690         (mswindows_text_width): Do not start printer page.
16691
16692         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16693
16694         * glyphs-msw.c: Added image methods to msprinter console and
16695         msprinter-specific image instantiation.
16696
16697 2000-02-20  Mike Alexander  <mta@arbortext.com>
16698
16699         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16700         to avoid crashes when selection-sets-clipboard is on
16701         (mswindows_own_selection): ditto
16702
16703 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16704
16705         * glyphs-msw.c:
16706         * redisplay-msw.c (get_frame_dc):
16707         (get_frame_compdc):
16708         * console-msw.h:
16709         * device-msw.c (mswindows_init_device):
16710         (mswindows_delete_device):
16711         (msprinter_init_device):
16712         (msprinter_delete_device):
16713         * frame-msw.c (mswindows_init_frame_1):
16714         (mswindows_delete_frame):
16715         (msprinter_init_frame_3):
16716         (msprinter_delete_frame): Move compatible DC to device object from
16717         frame object, for both mswindows and msprinter. Only one at a time
16718         is needed, it is a real waste to have one per frame!
16719
16720 2000-02-23  Andy Piper  <andy@xemacs.org>
16721
16722         * glyphs.c: add dynamic width and height elements.
16723         (image_instance_equal): ditto.
16724
16725         * glyphs-widget.c (widget_query_geometry): calculate width and
16726         height dynamically if required.
16727         (initialize_widget_image_instance): initialize dynamic dimensions.
16728         (widget_instantiate): pick-up dynamic dimensions.
16729
16730         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16731         dynamic determination. Add appropriate macros.
16732
16733         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16734         dimensions safe.
16735         (WINDOW_GUTTER_SIZE): ditto.
16736         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16737
16738         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16739         inline.
16740         (get_frame_dc): ditto.
16741
16742         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16743         here.
16744
16745 2000-02-23  Martin Buchholz <martin@xemacs.org>
16746
16747         * XEmacs 21.2.31 is released.
16748
16749 2000-02-22  Ben Wing <ben@xemacs.org>
16750
16751         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16752
16753 2000-02-22  Andy Piper  <andy@xemacs.org>
16754
16755         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16756
16757 2000-02-21  Mike Sperber <mike@xemacs.org>
16758
16759         * .dbxrc:
16760         * .gdbinit:
16761         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16762         variables.
16763
16764 2000-02-21  Mike Sperber <mike@xemacs.org>
16765
16766         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16767
16768 2000-02-21  Martin Buchholz <martin@xemacs.org>
16769
16770         * XEmacs 21.2.30 is released.
16771
16772 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16773
16774         Performance hacking.
16775         * *.c (syms_of_*):
16776         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16777         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16778         * emacs.c (main_1):
16779         * lisp.h (DEFUN):
16780         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16781         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16782         * symeval.h (DEFVAR_SYMVAL_FWD):
16783         * symbols.c (guts_of_unbound_marker):
16784         Make all c_readonly objects also lisp_readonly and marked for life.
16785         * lrecord.h (struct lrecord_implementation):
16786         Document flags better.
16787         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16788         * lrecord.h (DECLARE_LRECORD):
16789         * lrecord.h (XSETRECORD):
16790         * lrecord.h (RECORDP):
16791         * lrecord.h (RECORD_TYPEP):
16792         * lrecord.h (RECORD_MARKER): New.
16793         * lrecord.h (error_check_*):
16794         * lrecord.h (CONCHECK_NONRECORD):
16795         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16796         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16797         * lrecord.h (set_lheader_implementation):
16798         * lrecord.h (enum lrecord_type): New.
16799         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16800         * alloc.c (disksave_object_finalization_1):
16801         * alloc.c (mark_object):
16802         * alloc.c (lrecord_type_index):
16803         * alloc.c (tick_lcrecord_stats):
16804         * alloc.c (Fgarbage_collect):
16805         * alloc.c (init_alloc_once_early):
16806         * alloc.c (pdump_load):
16807         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16808         * alloc.c (lrecord_type_index): Delete.
16809         Make lisp object type indexes be constant.
16810           Makes (byte-compile) 5% faster.
16811         Put all marker functions into their own array.
16812           Makes (garbage-collect) 5% faster.
16813         Optimize SYMBOL_VALUE_MAGIC_P.
16814           Makes (byte-compile) 2-3% faster.
16815         * config.h.in (gc_checking_assert): New.
16816         * alloc.c: Use gc_checking_assert().
16817         * .dbxrc: Make compatible with new object type implementation.
16818         * .gdbinit: Make compatible with new object type implementation.
16819         * alloc.c: Delete all symbols defined only for debugging, such as
16820         Lisp_Type_Vector and lrecord_charset.
16821
16822 2000-02-21  Andy Piper  <andy@xemacs.org>
16823
16824         * gui-msw.c (Fmswindows_shell_execute): fix file location
16825         problems.
16826
16827         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16828         unshowing so that set_window_buffer doesn't undo
16829         kill_buffer_hook's hard work.
16830
16831         * glyphs-widget.c (tab_control_query_geometry): don't count the
16832         first item when calculating geometry.
16833
16834         * glyphs.c (map_subwindow): remove redundant code.
16835         (update_frame_subwindows): be more circumspect about when to
16836         update subwindows.
16837
16838         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16839         when items haven't changed. Update faces if faces have changed as
16840         well as just the widget face.
16841         (x_tab_control_update): Update faces if faces have changed as well
16842         as just the widget face.
16843
16844 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16845
16846         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16847         registration.
16848         (build_syscolor_string): Use mswindows_color_to_string to try to
16849         get a named color.
16850         (mswindows_device_system_metrics): Reverse the foreground and
16851         background colors so that they match the documentation.
16852
16853         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16854         they match the default Windows palette.
16855         (mswindows_color_to_string): New function.
16856
16857 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16858
16859         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16860
16861 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16862
16863         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16864         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16865
16866         * symbols.c (init_symbols_once_early): Removed obsolete
16867         DATA_SEG_BITS related kludge.
16868         (defvar_magic): Ditto.
16869
16870         * malloc.c: Removed obsolete DATA_SEG_BITS
16871         * ralloc.c: Ditto.
16872         * mem-limits.h: Ditto.
16873
16874         * Makefile.in.in: Removed obsolete HAVE_SHM
16875         * emacs.c: Ditto.
16876
16877 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16878
16879         *  device-msw.c (mswindows_delete_device): Free DDE string
16880         handles.
16881
16882 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16883
16884         * keymap.c (get_keyelt):
16885         * unexnt.c (unexec):
16886         * vm-limit.c (memory_warnings):
16887         * ntheap.c (recreate_heap):
16888         * ntheap.h (UNINIT_PTR):
16889         * select-msw.c (Fmswindows_get_clipboard):
16890         (Fmswindows_set_clipboard):
16891         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16892         * objects-msw.c:
16893         * menubar-msw.c (displayable_menu_item):
16894         * glyphs-msw.c:
16895         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16896         * sysdep.c (sys_subshell):
16897         * process-nt.c (nt_create_process):
16898         * nt.c (normalize_filename):
16899         (dostounix_filename):
16900         (unixtodos_filename):
16901         * ntproc.c (win32_executable_type):
16902         * ntplay.c (play_sound_data_1):
16903         (play_sound_file):
16904         * editfns.c (get_home_directory):
16905         * event-msw.c (struct winsock_stream):
16906         (mswindows_dde_callback):
16907         * device-msw.c (msprinter_init_device):
16908         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16909
16910         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16911         mswindows_clear_toolbar were swapped!
16912
16913         * objects-msw.c:(colormap_t):
16914         (fontmap_t):
16915         * emacs.c (struct standard_args): Fixed const jumble.
16916
16917         * glyphs-widget.c (update_widget): Fixed comparison notation.
16918
16919         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16920
16921         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16922         __declspec(noreturn) syntax.
16923
16924 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16925
16926         * eldap.c (Fldap_open):
16927         (Fldap_search_basic):
16928         (Fldap_add):
16929         (Fldap_modify):
16930         Use new coding system conversion macros.
16931
16932 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16933
16934         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16935
16936 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16937
16938         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16939         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16940
16941         * eldap.c (Qadd, Qreplace): New constant symbols
16942         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16943         interruptions by XEmacs signals
16944         Remove unnecessary calls to slow_down_interrupts and
16945         speed_up_interrupts
16946         (Fldap_search_basic): Renamed from Fldap_search_internal
16947         Added new optional parameter VERBOSE that triggers the
16948         display of progress messages
16949         Remove unnecessary calls to slow_down_interrupts and
16950         speed_up_interrupts
16951         LDAP result code analysis rewritten
16952         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16953         (syms_of_eldap): Define the new symbols and functions
16954
16955
16956 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16957
16958         * realpath.c: Determine PATH_MAX maximally portably.
16959
16960         * insdel.c (bytecount_to_charcount): Optimize.
16961         The function used to be optimized for entirely ASCII sequences.
16962         Now it is optimized for successive characters from the same
16963         charset.  This also wins big for _mostly_ ASCII sequences.
16964
16965         * fileio.c (Ffile_truename): convert return from realpath() using
16966         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16967         - Rewrite GCPROing slightly.
16968
16969         * sysdep.c (sys_open): Do filename conversion, like all other
16970         sys_* functions.  Fixes bug:
16971         (let ((file-name-coding-system 'iso-8859-2))
16972            (write-region x y latin2-name))
16973         ==> writes filename using internal encoding.
16974
16975 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16976
16977         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16978         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16979         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16980         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16981         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16982         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16983         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16984         (CONST_IF_NOT_DEBUG): Delete.
16985         * alloc.c (this_one_is_unmarkable): Delete.
16986         (mark_object): Don't check for this_one_is_unmarkable. Use the
16987         c_readonly flag instead.
16988         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16989
16990 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16991
16992         * event-msw.c (mswindows_drain_windows_queue):
16993         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16994         away redundant repaint events.
16995
16996 2000-02-17  Andy Piper  <andy@xemacs.org>
16997
16998         * redisplay.h: declare mark_redisplay_structs.
16999
17000         * redisplay.c (redisplay_window):
17001         (redisplay_frame): don't check subwindows_state_changed.
17002         (mark_redisplay): mark gutters here.
17003
17004         * glyphs.c: (instantiate_image_instantiator): always layout if we
17005         haven't done so already.
17006         (allocate_image_instance): don't mark as dirty.
17007         (update_subwindow): bind inhibit_quit.
17008
17009         * gutter.c (mark_gutters): new function.
17010
17011         * glyphs-x.c (x_update_widget): Always resize to get round a
17012         widget bug.
17013
17014         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
17015         breaking absolutely everything.
17016
17017         * gutter.h: declare mark_gutters.
17018
17019 2000-02-16  Martin Buchholz <martin@xemacs.org>
17020
17021         * XEmacs 21.2.29 is released.
17022
17023 2000-02-15  Olivier Galibert  <galibert@pobox.com>
17024
17025         * fns.c (size_bit_vector): Fix computation of the size.
17026
17027 2000-02-15  Martin Buchholz  <martin@xemacs.org>
17028
17029         * *.[ch]: Change CONST to const globally.
17030         find -name '*.[ch]' | \
17031         xargs global-replace \
17032         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
17033         - Remove vestigial references to CONST_IS_LOSING
17034
17035 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
17036
17037         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
17038         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
17039         events instead of dispatching them directly.
17040         (mswindows_handle_paint): New function to do repainting.
17041         (mswindows_wnd_proc):
17042         (emacs_mswindows_handle_magic_event): Call above function.
17043
17044 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
17045
17046         * objects-msw.c (mswindows_create_font_variant): Return the new
17047         font handle.
17048         (initialize_font_instance): Get font metrics from the underlined
17049         variant of the font to cope with the case where the underlined
17050         font has a bigger descent.
17051
17052 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17053
17054         * gui.c (gui_item_accelerator): Return the first underlined
17055         character in item name.
17056
17057 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17058
17059         * lisp.h: Added Qprinter.
17060
17061         * general.c (syms_of_general): Initialized it.
17062
17063         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
17064         (get_frame_dc):
17065         (get_frame_compdc): Made inline.
17066
17067         * console.h (struct console_methods): Added eject_page method.
17068
17069         * frame.h: Added FRAME_DISPLAY_P and friends.
17070         Aligned backslahes in many macros in more readable fashion.
17071         Added page_number to struct frame, and an accessor macro
17072         for it.
17073
17074         * defice.h: Added DEVICE_DISPLAY_P and friends.
17075
17076         * device.c (Fdevice_printer_p): Used these.
17077
17078         * frame.c (allocate_frame_core): Initialize page number.
17079         (Fprint_job_page_number):
17080         (Fprint_job_eject_page): Implemented.
17081
17082         * frame-msw.c (msprinter_eject_page): Added method.
17083         (msprinter_start_page): Added.
17084
17085         * window.c (Fwindow_truncated_p): Fixed docstring.
17086         (Fwindow_last_line_visible_height): Implemented.
17087
17088 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
17089
17090         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
17091
17092 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17093
17094         * syntax.c (scan_words): Always advance at least one character.
17095
17096 2000-02-13  Andy Piper  <andy@xemacs.org>
17097
17098         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
17099         to make sure the glyph is in the cachels.
17100
17101         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
17102         global image instance flag.
17103         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
17104         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
17105
17106         * glyphs.c (allocate_image_instance): set dirty bits correctly.
17107         (Fset_image_instance_property): mark layout as changed.
17108         (invalidate_glyph_geometry_maybe): mark layout as changed.
17109         (glyph_width): use new NEEDS_LAYOUT macro.
17110         (glyph_ascent): ditto.
17111         (glyph_descent): ditto.
17112         (glyph_height): ditto.
17113         (image_instance_layout): mark layout as clean after laying out.
17114         (update_subwindow): don't mark layout as clean here.
17115
17116         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
17117         should no longer be needed.
17118
17119         * glyphs-x.c (x_update_widget): sanitize asserts.
17120         (x_finalize_image_instance): sanitize assignment to widgets.
17121
17122         * glyphs-widget.c (widget_instantiate): don't need to clear the
17123         layout flag here.
17124
17125 2000-02-13  Martin Buchholz  <martin@xemacs.org>
17126
17127         * sysdep.c (getcwd): Use standard prototype.
17128         * sysdep.h (getcwd): Use standard prototype.
17129
17130         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
17131         (sequence, start, end).
17132         Remove redundant type checking.
17133         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
17134         view of `caller-protects') to avoid a crash where the real fix was
17135         found elsewhere.
17136
17137 2000-02-12  Martin Buchholz  <martin@xemacs.org>
17138
17139         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
17140
17141         * s/sol2.h: Remove feature macro initialization.
17142
17143         * alloc.c (alloc_lcrecord): Add more type checking assertions.
17144         (vector_hash): New.  Code from internal_hash.
17145         * lrecord.h:
17146         Fix up allocation subsystem comments.
17147
17148         * config.h.in: Add __EXTENSIONS__ for Solaris.
17149
17150         * systime.h (EMACS_GETTIMEOFDAY): New.
17151         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
17152         Remove Solaris-specific code.
17153         Use void* for the (ignored) second arg for gettimeofday().
17154
17155         * elhash.c (hash_table_hash): Implement it, finally.
17156         * elhash.c:  Use hashcode_t.
17157
17158         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
17159         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
17160
17161         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
17162         * fns.c (size_bit_vector):
17163         * alloc.c (size_vector):
17164         (make_vector_internal):
17165         (make_bit_vector_internal):
17166         (sweep_bit_vectors_1):
17167         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
17168
17169 2000-02-10  Martin Buchholz  <martin@xemacs.org>
17170
17171         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
17172         Include strings.h to avoid warnings for bzero and strcasecmp.
17173
17174 2000-02-10  Olivier Galibert  <galibert@pobox.com>
17175
17176         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
17177         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
17178
17179         * fns.c (size_bit_vector): New.  Declare bit vectors as a
17180         sequence.
17181
17182 2000-02-10  Olivier Galibert  <galibert@pobox.com>
17183
17184         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
17185         use a value field instead.
17186         (symbol_value_forward_forward): Use value field.
17187         (DEFVAR_SYMVAL_FWD): Use value field.
17188         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
17189         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
17190         (DEFVAR_CONST_INT): Ditto.
17191         (DEFVAR_BOOL): Ditto.
17192         (DEFVAR_CONST_BOOL): Ditto.
17193         (DEFVAR_INT_MAGIC): Ditto.
17194         (DEFVAR_BOOL_MAGIC): Ditto.
17195
17196         * symbols.c (guts_of_unbound_marker): Use value field.
17197         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
17198         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
17199
17200         * lisp.h: Declare dumpopaque and noninteractive1.
17201
17202         * alloc.c (dumpopaque): Added.
17203         (pdump_dump_opaquevec): Added.
17204         (pdump): Call pdump_dump_opaquevec to dump opaque data.
17205         (pdump_load): Reload opaque data.  Sync noninteractive1 with
17206         noninteractive.
17207
17208 2000-02-10  Andy Piper  <andy@xemacs.org>
17209
17210         * glyphs.c (image_instance_layout): if the size changes, mark it
17211         as such.
17212
17213         * redisplay-output.c (redisplay_output_layout): Update the
17214         subwindow here.
17215         (redisplay_output_subwindow): ditto.
17216
17217         * glyphs.c (update_subwindow): make sure we reset flags for
17218         layouts as well as everything else.
17219
17220         * glyphs-widget.c (layout_layout): don't need to set the instances
17221         dimensions here.
17222
17223 2000-02-09  Martin Buchholz  <martin@xemacs.org>
17224
17225         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
17226         not HAVE_DLOPEN, which is a lower-level thing.
17227
17228         * .cvsignore: Ignore gmon.out
17229
17230 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
17231
17232         * .cvsignore: Ignore portable dumper xemacs.dmp file
17233
17234 2000-02-09  Andy Piper  <andy@xemacs.org>
17235
17236         * redisplay-output.c (redisplay_output_layout): be more clever
17237         about when we output based on the changed flags.
17238
17239         * glyphs.h (struct image_instantiator_methods): add update_method.
17240         (struct Lisp_Image_Instance): add changed flags. Declare new
17241         macros for manipulating them.
17242
17243         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
17244         (image_instance_parent_glyph): find an image_instance's parent
17245         glyph or image_instance.
17246         (image_instance_layout): mark the size as changed.
17247         (set_image_instance_dirty_p): new function. mark an image
17248         instance, plus all of its parents, as dirty.
17249         (Fset_image_instance_property): use it.
17250         (Fglyph_animated_timeout_handler): use it.
17251         (update_subwindow): call update_widget and device methods for
17252         update_subwindow. Mark all changed flags as clean.
17253         (Fresize_subwindow): mark size as changed.
17254
17255         * glyphs-x.c (x_finalize_image_instance): try and detect gc
17256         failures.
17257         (x_update_subwindow): only resize subwindows here.
17258         (x_update_widget): new function. Update all changed properties of
17259         a widget.
17260         (x_resize_subwindow): deleted.
17261         (x_widget_set_property): deleted.
17262         (x_progress_gauge_set_property): deleted.
17263         (x_progress_gauge_update): new function. Implement recorded
17264         changes.
17265         (x_tab_control_update): ditto.
17266         (x_tab_control_set_property): deleted.
17267         (console_type_create_glyphs_x): declare new functions.
17268         (image_instantiator_format_create_glyphs_x): ditto.
17269
17270         * glyphs-widget.c (widget_set_property): mark text changed.
17271         (update_widget): new function. Update properties of a widget.
17272         (widget_instantiate): for layouts make sure we set their
17273         children's parent correctly.
17274         (tab_control_set_property): new function. Record changes that will
17275         take place under redisplay's control.
17276         (progress_gauge_set_property): ditto.
17277         (image_instantiator_progress_guage): declare new functions.
17278         (image_instantiator_tab_control): ditto.
17279
17280         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
17281         now.
17282         (mswindows_update_widget): new function. Update all properties on
17283         a widget that have changed.
17284         (mswindows_button_update): new function. Update a button's set
17285         state.
17286         (mswindows_tab_control_update): new function. Update the items in
17287         a tab.
17288         (mswindows_tab_control_set_property): deleted.
17289         (mswindows_progress_gauge_update): new function. Update the
17290         progress gauge's progress.
17291         (mswindows_widget_set_property): deleted. This is all done
17292         asynchronously now.
17293         (mswindows_progress_gauge_set_property): ditto.
17294         (console_type_create_glyphs_mswindows): declare new methods.
17295         (image_instantiator_format_create_glyphs_mswindows): ditto.
17296
17297         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
17298         (msprinter_set_frame_properties): ditto.
17299
17300         * console.h (struct console_methods): Add update_widget_method.
17301
17302 2000-02-09  Andy Piper  <andy@xemacs.org>
17303
17304         * gui-msw.c (Fmswindows_shell_execute): Make
17305         mswindows-shell-execute industrial strength.
17306
17307 2000-02-08  Martin Buchholz  <martin@xemacs.org>
17308
17309         * lrecord.h: Make macro argument `props' match member function `plist'.
17310         * fns.c (Fget):
17311         * fns.c (Fput):
17312         * fns.c (Fremprop):
17313         * fns.c (Fobject_plist):
17314         * alloc.c:
17315         * symbols.c:
17316         Object property list frobbing cleanup.
17317         - Allow any lisp object (compared with `eq'), not just symbols, as
17318           keys in object plists.
17319         - Move symbol plist frobbing into symbols.c, where it belongs.
17320         - Move string plist frobbing into alloc.c, where it belongs.
17321         - Everything's an lrecord now, so no need to test for symbolp, etc.
17322         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
17323
17324         * extents.c: Reorder code to remove declarations.
17325
17326         * frame.h (store_in_alist): Remove useless declaration.
17327
17328 2000-02-07  Martin Buchholz  <martin@xemacs.org>
17329
17330         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
17331         * config.h.in: Add HAVE_XCONVERTCASE.
17332
17333 2000-02-07  Andy Piper  <andy@xemacs.org>
17334
17335         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
17336         it breaks many things.
17337
17338 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
17339
17340         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
17341         actually can start a common comment type.
17342         * src/syntax.h (SYNTAX_END_P): ditto for end.
17343
17344 2000-02-07  Martin Buchholz <martin@xemacs.org>
17345
17346         * XEmacs 21.2.28 is released.
17347
17348 2000-02-06  Martin Buchholz  <martin@xemacs.org>
17349
17350         * event-Xt.c (x_keysym_to_character): New.
17351         (maybe_define_x_key_as_self_inserting_character): New.
17352         (x_has_keysym): New.
17353         Auto-define all keys on the keyboard as self-insert-key.
17354
17355 2000-02-02  Martin Buchholz  <martin@xemacs.org>
17356
17357         * menubar.c (vars_of_menubar): A small code simplification.
17358
17359         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
17360
17361         * ExternalShell.c:
17362         * ExternalClient.c:
17363         * EmacsShell-sub.c:
17364         * EmacsManager.c:
17365         * EmacsFrame.c:
17366         Use consistent style for specifying X resources.
17367
17368         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
17369         This makes (dontusethis-set-symbol-value-handler) actually usable.
17370
17371         * lrecord.h (lrecord_decription_type):
17372         * alloc.c (pdump_register_sub):
17373         (pdump_dump_data):
17374         (pdump_reloc_one):
17375         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
17376         Comply with XEmacs coding style.
17377         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
17378         args, and XD_LISP_OBJECT_ARRAY with 3 args.
17379
17380         * keymap.c (Faccessible_keymaps):
17381         Make (accessible-keymaps map "\C-h") do the Right Thing.
17382         Make (accessible-keymaps map []) do the Right Thing.
17383         Make (accessible-keymaps map "") do the Right Thing.
17384         (check_keymap_definition_loop): New function.
17385         (keymap_store_internal): Keep luser from shooting self in foot,
17386           via (define-key ctl-x-4-map "p" global-map).
17387         Remove fullness slot from struct Lisp_Keymap, since hash tables
17388         are now reliable.
17389         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17390
17391 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17392
17393         * redisplay.c (init_redisplay): Fix small memory leak.
17394         * elhash.h:
17395         * elhash.c (pdump_reorganize_hash_table):
17396         Rename from reorganize_hash_table. Change prototype.
17397         Reuse the original memory for hentries.  Save 100k.
17398         * alloc.c (PDUMP_READ): new macro.
17399         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17400         * alloc.c: No need to #ifndef before #undef.
17401
17402         * print.c: Allow debug_print() to print readably by modifying
17403         debug_print_readably.  Use consistent variable names.
17404
17405         * .dbxrc: Try to get things to work even if stopped in a function
17406         without source available by explicitly specifying source files.
17407 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17408
17409         * unexnt.c (_start): Removed bogus code which caused loading heap
17410         from differrent executable file.
17411         Removed bogus assignment to _fmode, which caused inconsistencies.
17412
17413 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17414
17415         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17416         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17417         Do not preliminary `#define signal sigset'.
17418
17419         * systime.h: Do not prototype environ on windows nt and cygwin,
17420         this conflicts with system header.
17421
17422         * syssignal.h: Use correct define for WINDOWSNT
17423
17424         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17425         with system header.
17426
17427         * sysdep.c (near start of file): Fixed commentary and rearranged
17428         ifdefs in readable order.
17429         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17430         (start_of_text):
17431         (end_of_text):
17432         (end_of_data): Do not compile in if using PDUMP.
17433
17434         * symsinit.h: Prototyped vars_of_nt().
17435
17436         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17437         (find_child_console): Use it.
17438         (sys_kill): Use it.
17439
17440         * ntheap.h: Do not extern os_subtype.
17441
17442         * ntheap.c (cache_system_info): Do not cache unneeded:
17443         nt_major_version, nt_minor_version and os_subtype.
17444         (recreate_heap): Do not compile in when PDUMPing.
17445
17446         * nt.c (geteuid and friends): Use the new varibale
17447         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17448         (init_user_info): Removed the above mentioned hackery.
17449         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17450         stat has been fixed in the C runtime.
17451         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17452
17453         * file-coding.c (struct file_coding_dump): Do not define
17454         ucs_to_mule_table in the struct if not MULE.
17455         (struct struct lrecord_description fcd_description_1): Do not dump
17456         the above.
17457
17458         * emacs.c (main_1): Call vars_of_nt().
17459         (right before Fdump_emacs_data): Don't need lastfile if using both
17460         portabe dumper and system malloc.
17461
17462         * alloc.c (Fmemory_limit): Conditionalized out.
17463         (pdump): Use OPEN_BINARY for the portable dump file.
17464         (pdump_load): Ditto.
17465
17466 2000-02-02  Mike Alexander  <mta@arbortext.com>
17467
17468         * nt.c (convert_time): Set tm_isdst before calling mktime and
17469         avoid calling it at all if the compiler supports 64 bit integers.
17470         Also initialize utc_base_ft before using it.
17471
17472 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17473
17474         * frame.c (change_frame_size_1): Take f->internal_border_width
17475         into consideration when calculating the width of the frame.
17476
17477 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17478
17479         * window.c (frame_min_height):
17480         (frame_size_valid_p):
17481         (frame_pixsize_valid_p): Added.
17482         (check_frame_size): Generalized.
17483
17484         * window.h: Prototyped the above.
17485
17486         * lisp.h:
17487         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17488         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17489         Deleted Vwin32_* and Vbinary_process_* unused variables.
17490
17491         * device-msw.c (msprinter_init_device): Do not get printer font
17492         list; Added DEVMODE functions.
17493
17494         * frame-msw.c: Added lots of printer code.
17495
17496         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17497         general.c.
17498
17499         * console-msw.h: Added more msprinter device private slots.
17500
17501 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17502
17503         * event-msw.c (key_needs_default_processing_p): Added.
17504         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17505
17506 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17507
17508         * glyphs.c (image_instance_layout): Mark image instance as clean
17509         after layout.
17510         (glyph_dirty_p): Removed redundant function.
17511         (invalidate_glyph_geometry_maybe): Added.
17512         (update_glyph_cachel_data): Call it.
17513
17514         * glyphs.h: Prototyped it.
17515
17516         * redisplay.c (add_glyph_rune): Call it.
17517         (redisplay_window): Reset glyphs cachels when frame faces have
17518         changed, thus forcing recomputation of built-in border glyphs.
17519
17520 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17521
17522         * Makefile.in.in: Make portable dumper and purify play well together.
17523         Add imperfect, but better than nothing, support for pdump.
17524         Remove xemacs.dmp when temacs is re-generated.
17525         Don't ignore errors when dumping xemacs.
17526
17527         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17528
17529 2000-01-28  Andy Piper  <andy@xemacs.org>
17530
17531         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17532         (setup_normal_frame): ditto.
17533         (setup_frame_without_minibuffer): ditto.
17534         (setup_minibuffer_frame): ditto.
17535         (delete_frame_internal): ditto.
17536         (Fmake_frame_invisible): ditto.
17537         (Ficonify_frame): ditto.
17538
17539         * window.h: change Fset_window_buffer signature.
17540
17541         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17542         (Fset_window_buffer): allow recording of buffer if the window is
17543         the selected window.
17544         (window_loop): Use new Fset_window signature.
17545
17546 2000-01-23  Daniel Pittman  <daniel@danann.net>
17547
17548         * config.h.in: Added template for `HAVE_ATHENA_3D'
17549
17550 2000-01-29  Andy Piper  <andy@xemacs.org>
17551
17552         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17553
17554         * gutter.c (output_gutter): Don't output if the window isn't live.
17555
17556 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17557
17558         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17559         of 01/12/00: Moved SetFocus back here where it belongs.
17560
17561 2000-01-23  Andy Piper  <andy@xemacs.org>
17562
17563         * s/cygwin32.h: declare printer things.
17564
17565 2000-01-26  Andy Piper  <andy@xemacs.org>
17566
17567         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17568         Alexander.
17569
17570 2000-01-24  Andy Piper  <andy@xemacs.org>
17571
17572         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17573         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17574
17575         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17576
17577         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17578
17579         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17580
17581         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17582         (mswindows_output_display_block): Avoid local shadows.
17583
17584         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17585         (mswindows_enqueue_mouse_button_event): ditto.
17586         (mswindows_handle_gui_wm_command): remove declaration.
17587
17588         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17589         warnings.
17590
17591         * console-msw.h: Avoid shadows.
17592         (mswindows_get_toolbar_button_text):
17593         (emacs_mswindows_create_stream_pair):
17594         (emacs_mswindows_delete_stream_pair):
17595         (mswindows_handle_toolbar_wm_command): declare.
17596
17597         * device-msw.c (build_syscolor_string): Avoid shadows.
17598
17599 2000-01-23  Andy Piper  <andy@xemacs.org>
17600
17601         * glyphs-widget.c (widget_instantiate): reverse the items for
17602         layouts so that children are in the expected order.
17603
17604 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17605
17606         * ralloc.c: safe_bcopy ==> memmove
17607         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17608         * s/msdos.h: Remove BCOPY macros.
17609         * insdel.c (gap_right): Remove BCOPY conditional code.
17610         * insdel.c (gap_left): Remove BCOPY conditional code.
17611         XEmacs demands a working ANSI C compiler - hence memmove.
17612
17613         * regex.c (regex_compile): Remove accidental use of trigraphs.
17614
17615 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17616
17617         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17618         event timestamp.
17619
17620 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17621
17622         * event-msw.c (mswindows_drain_windows_queue): Added the
17623         parameter.
17624         (mswindows_need_event): Commented the call to
17625         mswindows_drain_windows_queue().
17626         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17627         only.
17628
17629         * console-msw.h: Moved a few function prototypes here from
17630         event-msw.c.
17631
17632         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17633         parameter from unsigned short to unsigned long.
17634         (Fmswindows_shell_execute): Added return value.
17635
17636 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17637
17638         * sysdep.c (init_system_name):
17639           process-unix.c (unix_canonicalized_host_name):
17640         Don't call freeaddrinfo() if getaddrinfo() fails.
17641
17642         * process-unix.c (unix_open_unix_network_stream):
17643         Moved the code to get a port # into address loop.
17644
17645 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17646
17647         * buffer.c (reinit_vars_of_buffer):
17648         The right place to initialize conversion_in_dynarr and
17649         conversion_out_dynarr.
17650
17651         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17652
17653         * process-unix.c (unix_canonicalize_host_name): Muleize.
17654         (unix_open_network_stream): Muleize.
17655
17656         * buffer.h: Fix up prototypes for ralloc.c functions.
17657
17658 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17659         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17660         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17661                 instead of gethostbyname()
17662         * process-unix.c: In unix_canonicalize_host_name() and
17663                 unix_open_network_stream(), add code to use getaddrinfo()
17664                 instead of gethostbyname().
17665
17666 2000-01-27  Daniel Pittman <daniel@danann.net>
17667
17668         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17669         libs when built with flat Athena.
17670
17671 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17672
17673         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17674         Use coding standards for function prototypes.
17675
17676 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17677
17678         * dialog-msw.c (push_lisp_string_as_unicode):
17679         * doc.c (unparesseuxify_doc_string):
17680         * dired.c (Fuser_name_completion_1):
17681         * dired.c (Fuser_name_all_completions):
17682         * dired.c (free_user_cache):
17683         * dired.c (user_name_completion):
17684         * console-x.c (get_display_arg_connection):
17685         * minibuf.c (clear_echo_area_internal):
17686         * minibuf.c (echo_area_append):
17687         * eldap.c (Fldap_open):
17688         * eldap.c (Fldap_search_internal):
17689         * frame-x.c (x_set_frame_text_value):
17690         * frame-x.c (x_set_frame_properties):
17691         * frame-x.c (x_create_widgets):
17692         * redisplay-tty.c (term_get_fkeys_1):
17693         * objects-x.c (x_parse_nearest_color):
17694         * objects-x.c (x_valid_color_name_p):
17695         * objects-x.c (x_initialize_font_instance):
17696         * objects-x.c (x_list_fonts):
17697         * objects-x.c (x_find_charset_font):
17698         * tooltalk.c (Fadd_tooltalk_message_arg):
17699         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17700         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17701         * process-unix.c (unix_create_process):
17702         * ntproc.c (sys_spawnve):
17703         * sound.c (Fplay_sound_file):
17704         * sound.c (Fplay_sound):
17705         * buffer.c (init_initial_directory):
17706         * buffer.c (init_buffer):
17707         * editfns.c (init_editfns):
17708         * editfns.c (Ftemp_directory):
17709         * editfns.c (Fuser_full_name):
17710         * editfns.c (uncache_home_directory):
17711         * editfns.c (get_home_directory):
17712         * editfns.c (Fuser_home_directory):
17713         * editfns.c (Fformat_time_string):
17714         * editfns.c (Fcurrent_time_string):
17715         * gui-x.c (button_item_to_widget_value):
17716         * database.c (Fopen_database):
17717         * event-Xt.c (x_to_emacs_keysym):
17718         * event-Xt.c (x_event_to_emacs_event):
17719         * event-Xt.c (describe_event_window):
17720         * event-msw.c (mswindows_wnd_proc):
17721         * glyphs-eimage.c (jpeg_instantiate):
17722         * glyphs-eimage.c (gif_instantiate):
17723         * glyphs-eimage.c (png_instantiate):
17724         * glyphs-eimage.c (tiff_instantiate):
17725         * glyphs-x.c (xbm_instantiate_1):
17726         * glyphs-x.c (x_xbm_instantiate):
17727         * glyphs-x.c (x_xface_instantiate):
17728         * glyphs-x.c (autodetect_instantiate):
17729         * glyphs-x.c (cursor_font_instantiate):
17730         * glyphs-x.c (x_widget_instantiate):
17731         * glyphs-x.c (x_widget_set_property):
17732         * glyphs-x.c (x_widget_property):
17733         * glyphs-x.c (BUILD_GLYPH_INST):
17734         * print.c (write_string_to_stdio_stream):
17735         * print.c (output_string):
17736         * print.c (Falternate_debugging_output):
17737         * print.c (Fexternal_debugging_output):
17738         * glyphs-msw.c (extract_xpm_color_names):
17739         * glyphs-msw.c (mswindows_xpm_instantiate):
17740         * glyphs-msw.c (bmp_instantiate):
17741         * glyphs-msw.c (resource_name_to_resource):
17742         * glyphs-msw.c (mswindows_resource_instantiate):
17743         * glyphs-msw.c (xbm_instantiate_1):
17744         * glyphs-msw.c (mswindows_xbm_instantiate):
17745         * glyphs-msw.c (mswindows_xface_instantiate):
17746         * glyphs-msw.c (mswindows_widget_instantiate):
17747         * glyphs-msw.c (add_tree_item):
17748         * glyphs-msw.c (add_tab_item):
17749         * glyphs-msw.c (mswindows_combo_box_instantiate):
17750         * glyphs-msw.c (mswindows_widget_property):
17751         * glyphs-msw.c (mswindows_combo_box_property):
17752         * glyphs-msw.c (mswindows_widget_set_property):
17753         * console.c (stuff_buffered_input):
17754         * objects-msw.c (mswindows_initialize_color_instance):
17755         * objects-msw.c (mswindows_valid_color_name_p):
17756         * objects-msw.c (mswindows_list_fonts):
17757         * objects-msw.c (mswindows_font_instance_truename):
17758         * bytecode.c (optimize_compiled_function):
17759         * select-x.c (symbol_to_x_atom):
17760         * select-x.c (x_atom_to_symbol):
17761         * select-x.c (hack_motif_clipboard_selection):
17762         * select-x.c (selection_data_to_lisp_data):
17763         * select-x.c (lisp_data_to_selection_data):
17764         * select-x.c (Fx_get_cutbuffer_internal):
17765         * select-x.c (Fx_store_cutbuffer_internal):
17766         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17767         * buffer.h (TO_INTERNAL_FORMAT): New function.
17768         * emacs.c (make_arg_list_1):
17769         * emacs.c (make_argc_argv):
17770         * emacs.c (main_1):
17771         * emacs.c (Fdump_emacs):
17772         * emacs.c (split_string_by_emchar_1):
17773         * file-coding.h:
17774         * lisp.h:
17775         * lstream.h:
17776         * symsinit.h:
17777         * device-x.c (x_init_device):
17778         * device-x.c (Fx_valid_keysym_name_p):
17779         * device-x.c (Fx_get_font_path):
17780         * device-x.c (Fx_set_font_path):
17781         * glyphs.c (bitmap_to_lisp_data):
17782         * glyphs.c (pixmap_to_lisp_data):
17783         * alloc.c (make_ext_string): Use coding system arguments.  Update
17784         all callers.
17785         * alloc.c (build_string):
17786         * callproc.c (child_setup):
17787         * callproc.c (init_callproc):
17788         * fileio.c (lisp_strerror):
17789         * fileio.c (directory_file_name):
17790         * fileio.c (Fexpand_file_name):
17791         * fileio.c (Ffile_truename):
17792         * fileio.c (Fsysnetunam):
17793         * fileio.c (Fdo_auto_save):
17794         * sysdep.c (sys_readdir):
17795         * tests.c: New file.  Allow adding C tests.
17796         Replace GET_* macros with a more comprehensible and flexible
17797         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17798         Modify all calls.
17799         Any coding system can be used to do format conversion.
17800         Eliminate enum external_data_format.
17801         Eliminate convert_to_external_format.
17802         Eliminate convert_to_internal_format.
17803         Make sure file-name, keyboard, terminal, and ctext are always
17804         defined as coding systems or aliases.  Make
17805         file-name-coding-system, terminal-coding-system, and
17806         keyboard-coding-system magical variables that are equivalent to
17807         defining the corresponding coding system aliases.
17808
17809         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17810         * file-coding.c (Fcoding_system_alias_p): New function.
17811         * file-coding.c (Fcoding_system_aliasee): New function.
17812         * file-coding.c (append_suffix_to_symbol): New function.
17813         * file-coding.c (dangling_coding_system_alias_p): New function.
17814         * file-coding.c (Ffind_coding_system):
17815         * file-coding.c (Fcopy_coding_system):
17816         * file-coding.c (encode_coding_no_conversion):
17817         * file-coding.c (syms_of_file_coding):
17818         * file-coding.c (vars_of_file_coding):
17819         Rewrite coding system alias code.
17820         Allow nested aliases, like symbolic links.
17821         Allow redefinition of coding system aliases.
17822         Prevent existence of dangling coding system aliases.
17823
17824         * dired.c (Fuser_name_completion_1):
17825         * dired.c (Fuser_name_all_completions):
17826         A crash would happen if user did QUIT in the middle of building
17827         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17828
17829         * lisp.h:
17830         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17831
17832         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17833         an unsigned char *.  Update all callers.
17834
17835 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17836
17837         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17838
17839 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17840
17841         * elhash.c (hentry_description): Use more portable definition.
17842         (resize_hash_table): Initialize new hentries using
17843         xnew_array_and_zero, thereby simplifying the code.
17844
17845         * mule-charset.c (make_charset): Make sure entire object is
17846         initialized, to avoid Purify warnings.
17847
17848         * alloc.c (resize_string): Fix unlikely crash with big strings.
17849
17850 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17851
17852         * realpath.c (xrealpath):
17853         Don't call getwd().
17854
17855 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17856
17857         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17858
17859 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17860
17861         * unexelfsgi.c (unexec): Change the way we decide which segment
17862         should be extended.
17863
17864         Assumption that .bss section should be outside the PT_LOADable
17865         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17866         it's present) is inside the 'data' segment. This would fail the
17867         test which was used to find a segment to grow and cover new
17868         heap. Instead of this assumption, I created another one - on IRIX
17869         the segment to grow should start below .bss and it's address
17870         should extent above the end of .bss. Once this segment is
17871         identified, it's grown to accommodate the new heap and new
17872         zero-length .bss section is added at the end of .data2.
17873
17874 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17875
17876         * eval.c (Feval): Wrong number of arguments should use original
17877         function, not the indirect_function version of it.
17878
17879 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17880
17881         * glyphs-x.c (x_button_instantiate): Don't add image if
17882         it is not a pixmap.
17883         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17884         is relative.
17885
17886 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17887
17888         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17889         declaration.
17890         (DEFVAR_INT_MAGIC): Ditto.
17891         (DEFVAR_BOOL_MAGIC): Ditto.
17892         * glyphs.h: Reindent backslash.
17893
17894 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17895
17896         * glyphs-widget.c (layout_query_geometry):
17897         (layout_layout): Use correct types for gheight, gwidth.
17898
17899 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17900
17901         * EmacsManager.c (QueryGeometry): Purified.
17902
17903 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17904
17905         * alloc.c (make_float): Make sure entire object is initialized, to
17906         avoid Purify warnings.
17907         (pdump_register_sub): Remove useless assignment.
17908         (pdump): Use xmalloc, not malloc.
17909         (pdump_load): Use xmalloc, not malloc.
17910
17911 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17912
17913         * callproc.c:
17914         * dired-msw.c:
17915         * fileio.c:
17916         * process-nt.c:
17917         * redisplay-msw.c:
17918         * sysdep.c: Removed redundant #include <windows.h>
17919
17920 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17921
17922         * frame.c (delete_frame_internal): Do not delete device when its
17923         implementation so declares.
17924         (delete_frame_internal): Set device selected frame to nil when
17925         last frame goes away.
17926
17927         * device-msw.c (msprinter_device_system_metrics): Implemented.
17928         (mswindows_device_system_metrics): Added 'device-dpi property.
17929
17930         * device.c: (Fdevice_printer_p): Added.
17931         Added 'offset-workspace device metric.
17932
17933         * console.h (device_metrics): Declared DM_offset_workspace.
17934
17935 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17936
17937         * fileio.c (Ffile_truename): Remove pointless and confusing
17938         initialization of elen.
17939
17940         * glyphs-widget.c: Compiler warning fixes.
17941
17942 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17943
17944         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17945         instead of a Lisp_Object as argument to make it consistent with
17946         the other LIVE_P macros.
17947         (CHECK_LIVE_PROCESS): New macro.
17948
17949         * process.c: Declare Qprocess_live_p.
17950         (Fprocess_live_p): New function.
17951         (create_process): Use PROCESS_LIVE_P.
17952         (read_process_output): Ditto.
17953         (set_process_filter): Ditto.
17954         (Fdelete_process): Ditto.
17955         (kill_buffer_processes): Ditto
17956         (process_send_signal): Use CHECK_LIVE_PROCESS.
17957         (Fprocess_input_coding_system): Check whether process is still
17958         alive (fix PR#1061).
17959         (Fprocess_output_coding_system): Ditto.
17960         (Fprocess_coding_system): Ditto.
17961         (Fset_process_input_coding_system): Ditto.
17962         (Fset_process_output_coding_system): Ditto.
17963
17964 2000-01-23  Andy Piper  <andy@xemacs.org>
17965
17966         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17967         layout and widget.
17968
17969         * glyphs.c (mark_image_instance): take into account changed
17970         image_instance format.
17971         (image_instance_equal): ditto.
17972         (image_instance_hash): ditto.
17973
17974         * glyphs-widget.c (widget_instantiate): Incorporate layout
17975         instantiation here. Delay layout of the layout until later.
17976         (layout_instantiate): deleted.
17977         (layout_query_geometry): new function. get the geometry of a
17978         layout.
17979         (layout_layout): layout a layout dynamically.
17980         (image_instantiator_widget): New function - splitting up
17981         image_instantiator_format_create_glyphs_widget for netwinder
17982         compilation.
17983         (image_instantiator_buttons):
17984         (image_instantiator_edit_fields):
17985         (image_instantiator_combo_box):
17986         (image_instantiator_scrollbar):
17987         (image_instantiator_progress_guage):
17988         (image_instantiator_tree_view):
17989         (image_instantiator_tab_control):
17990         (image_instantiator_labels):
17991         (image_instantiator_layout): ditto.
17992         (image_instantiator_format_create_glyphs_widget): Call preceding
17993         functions.
17994
17995 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17996
17997         * process.c (Fset_process_coding_system):
17998         * device-x.c (Fx_keysym_hash_table):
17999         Docstring fixes.
18000
18001         * lstream.c (Lstream_write): Return documented value, not 0.
18002
18003         * fileio.c (directory_file_name):
18004         (Fsubstitute_in_file_name):
18005         (Fsubstitute_insert_file_contents_internal):
18006         (Fwrite_region_internal):
18007         * emacs.c:
18008         * sysdep.c:
18009         * getloadavg.c:
18010         * systty.h:
18011         Remove vestigial APOLLO-conditional code.
18012
18013 2000-01-21  Martin Buchholz  <martin@xemacs.org>
18014
18015         * getpagesize.h: Add guard macros.
18016         * libsst.h: Add guard macros.
18017         * libst.h: Add guard macros.
18018         * line-number.h: Add guard macros.
18019         * ndir.h: Add guard macros.
18020         * sysfloat.h: Add guard macros.
18021         * sysfile.h: Add guard macros.
18022         * sysproc.h: Add guard macros.
18023         * syswait.h: Add guard macros.
18024         * xintrinsic.h: Add guard macros.
18025         * xintrinsicp.h: Add guard macros.
18026         * xmmanager.h: Add guard macros.
18027         * xmmanagerp.h: Add guard macros.
18028         * xmprimitive.h: Add guard macros.
18029         * xmu.h: Add guard macros.
18030         * gpmevent.h: Add copyright statement. Add guard macros.
18031         * miscplay.h: Add guard macros.
18032         * *.h: Use consistent C-standards-approved guard macro names.
18033
18034         * opaque.c (make_opaque): Switch parameter order.
18035         * opaque.h (make_opaque): Switch parameter order.
18036         Update all callers.
18037         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
18038
18039         * config.h.in (type_checking_assert): Added.
18040         (bufpos_checking_assert): Added.
18041
18042 2000-01-21  Martin Buchholz  <martin@xemacs.org>
18043
18044         * alloc.c: Harmless pdump changes.
18045         - Use countof().
18046         - spell alignment correctly.
18047         * sysdep.c: Use countof()
18048
18049 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18050
18051         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
18052         initially_selected_for_input() console method, default to 0.
18053         (semi_canonicalize_console_connection): Try to delegate to
18054         canonicalize_console_connection if no such console method.
18055         (canonicalize_console_connection): Vice versa.
18056         (print_console): Do not print nil connection.
18057
18058         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
18059         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
18060         (XDEVIMPF_FRAMELESS_OK): Added.
18061         (CONSOLE_INHERITS_METHOD): Added.
18062
18063         * console-msw.c (mswindows_canonicalize_console_connection):
18064         Added.
18065         (mswindows_canonicalize_device_connection): Added.
18066
18067         * console-msw.h (struct msprinter_device): Added this struct and
18068         accessor macros.
18069         (mswindows_device): Made fontlist a lisp object.
18070
18071         * device.c (semi_canonicalize_device_connection):  Try to delegate
18072         to canonicalize_device_connection if no such console method.
18073         (canonicalize_device_connection): Vice versa.
18074         (print_device): Do not print nil connection.
18075
18076         * device-msw.c (mswindows_init_device): Call InitCommonControls
18077         when have widgets.
18078         (mswindows_delete_device): Removed fontlist deallocation.
18079         (mswindows_mark_device): Added.
18080
18081         * events.c (event_equal): Added abort() at unreached code.
18082         (event_hash): Ditto.
18083
18084         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
18085         fallback tags of Windows devices.
18086
18087         * general.c (syms_of_general): Initialized Qmsprinter.
18088
18089         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
18090         of fallback tags of Windows devices.
18091
18092         * lisp.h: Declared Qmsprinter.
18093
18094         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
18095         of strings.
18096         (mswindows_list_fonts): Ditto.
18097         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
18098         that it can be used by both mswindows and msprinter devices.
18099         (initialize_font_instance): Added.
18100         (mswindows_initialize_font_instance): Use it.
18101         (msprinter_initialize_font_instance): Added.
18102
18103         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
18104         and implementation flags check.
18105         (redisplay_without_hooks): Changed the call to the above.
18106         (Fredraw_device): Ditto.
18107         (Fredisplay_device): Ditto.
18108
18109         * redisplay-msw.c (get_frame_dc): Implemented.
18110         (get_frame_compdc): Implemented.
18111         (many functions): Use the two functions above to get device
18112         contexts, ether for a window or a printer.
18113
18114 2000-01-21  Olivier Galibert  <galibert@pobox.com>
18115
18116         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
18117         initialization here.
18118         (init_symbols_once_early): Call it.
18119         * emacs.c (main_1): Call it.
18120         * symsinit.h: Declare it.
18121
18122 2000-01-19  Olivier Galibert  <galibert@pobox.com>
18123
18124         * alloc.c: Use a lrecord_header * in the backtrace instead of a
18125         Lisp_Object.
18126         (pdump_backtrace): Ditto.
18127         (pdump_register_object): Ditto.  Cleanup use of the pointers.
18128         (pdump_get_entry): Abort if trying to register a null pointer.
18129         (pdump_dump_data): Cleanup types when relocating.
18130         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
18131         (pdump_dump_rtables): Remove bad casts.
18132         (pdump_load): Cleanup relocation w.r.t union type.  Use a
18133         Lisp_Object instead of a EMACS_INT for the hashtable
18134         reorganization.
18135
18136 2000-01-20  Martin Buchholz  <martin@xemacs.org>
18137
18138         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
18139
18140         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
18141
18142         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
18143
18144         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
18145
18146 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18147
18148         * faces.h (FACE_STRIKETHRU_P): Added.
18149
18150         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
18151         of font variants.
18152
18153         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
18154         (mswindows_set_dc_font): New function, aware of font variants,
18155         separated from mswindows_update_dc.
18156
18157         * objects-msw.h (struct mswindows_font_instance_data): Added
18158         definition.
18159
18160         * objects-msw.c (mswindows_finalize_font_instance): Delete all
18161         cached fonts and the data structure.
18162         (mswindows_initialize_font_instance): Added creation of font data
18163         structure.
18164         (mswindows_print_font_instance): Print at least something.
18165         (mswindows_create_font_variant): Implemented.
18166         (mswindows_get_hfont): Implemented.
18167
18168 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
18169
18170         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
18171         prototyping problem with msvc.
18172
18173         * emacs.c (main_1): added syms_of_gui_mswindows() call
18174
18175         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
18176         syms_of_gui_mswindows() function
18177
18178         * symsinit.h: added the prototype for syms_of_gui_mswindows()
18179
18180 2000-01-18  Martin Buchholz <martin@xemacs.org>
18181
18182         * XEmacs 21.2.27 is released.
18183
18184 2000-01-18  Martin Buchholz  <martin@xemacs.org>
18185
18186         * glyphs-eimage.c (struct tiff_error_struct):
18187         (tiff_error_func):
18188         (tiff_warning_func):
18189         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
18190
18191         * unexmips.c:
18192         * unexhp9k3.c:
18193         * unexfreebsd.c:
18194         * unexec.c: Remove vestigial Lucid C code.
18195         * unexalpha.c:
18196         * unexaix.c:
18197         * termcap.c:
18198         * libsst.c: Ansify.
18199         Remove declarations of errno and strerror().
18200
18201         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
18202
18203         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
18204
18205 2000-01-16  Martin Buchholz  <martin@xemacs.org>
18206
18207         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
18208         Optimize.
18209
18210 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18211
18212         * md5.c:
18213         * file-coding.c:
18214         * file-coding.h:
18215         Change enum eol_type to eol_type_t.
18216
18217 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18218
18219         * gui.c (get_gui_callback): Check cons before accessing car.
18220
18221 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18222
18223         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
18224         (XSETSPECIFIER_TYPE): Ditto.
18225
18226 2000-01-17  Didier Verna  <didier@xemacs.org>
18227
18228         * redisplay.c (generate_fstring_runes): compute string size in
18229         characters, not bytes.
18230
18231 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18232
18233         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
18234
18235 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
18236
18237         * print.c (print_error_message): Call print_prepare().
18238
18239 2000-01-14  Martin Buchholz  <martin@xemacs.org>
18240
18241         * .dbxrc: Renamed from dbxrc.
18242
18243         * events.c (event_to_character):
18244         Use `assert (foo)' instead of `if (!foo) abort()'
18245
18246         * .gdbinit (xtype): Add documentation.
18247         * .gdbinit (check-temacs): New function.
18248         * .gdbinit (check-xemacs): New function.
18249         * dbxrc (check-xemacs): New function.
18250         * dbxrc (check-xemacs): New function.
18251
18252 2000-01-14  Andy Piper  <andy@xemacs.org>
18253
18254         * glyphs-widget.c (widget_query_geometry): Make sure that we
18255         calculate default dimensions correctly.
18256
18257 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18258
18259         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
18260
18261         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
18262         pdump_wire'd variable.
18263
18264         * emacs.c: (main_1): Conditionalized calls to
18265         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
18266
18267 2000-01-13  Martin Buchholz  <martin@xemacs.org>
18268
18269         * window.c (Fset_window_configuration):
18270         * sysdep.c (_start):
18271         * input-method-motif.c (res):
18272         * event-Xt.c (Xt_process_to_emacs_event):
18273         Simple compiler warning fixes.
18274
18275         * bytecode.c (funcall_compiled_function): Use the original
18276         function symbol on the backtrace list in preference to the
18277         compiled_function object in error messages.
18278
18279 2000-01-13  Andy Piper  <andy@xemacs.org>
18280
18281         * glyphs-x.c (update_widget_face): Make sure we update the widget
18282         background as well as foreground.
18283
18284 2000-01-13  Andy Piper  <andy@xemacs.org>
18285
18286         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
18287         fields to subwindow.
18288         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
18289         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
18290         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18291         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18292
18293         * glyphs-widget.c (check_valid_tab_orientation): new function.
18294         (initialize_widget_image_instance): zero orientation and
18295         justification.
18296         (widget_instantiate): pick up orientation.
18297         (tab_control_query_geometry): return appropriate values for
18298         vertical tabs.
18299
18300         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
18301         appropriate creation flags for left, right and bottom tabs.
18302
18303         * s/cygwin32.h: add tab definitions.
18304
18305 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18306
18307         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
18308         frame upon hiding a subwindow.
18309         (mswindows_button_instantiate): Changed the push button style to
18310         BS_PUSHBUTTON.
18311         (mswindows_button_instantiate): Removed button BS_NOTIFY
18312         style.
18313         (mswindows_button_instantiate): Removed redundant check for
18314         a disabled gui item.
18315         (mswindows_button_instantiate): Made use of WS_TABSTOP
18316         consistent: "operable" controls (edit, button, tree, scroll) have
18317         this style, "display-only" ones (static, progress gauge) do
18318         not. This style is currently ignored by XEmacs though. Also,
18319         removed the WS_EX_CONTROLPARENT style - it is not for children,
18320         it is for their parents!
18321         (mswindows_edit_field_instantiate): Ditto.
18322         (mswindows_progress_gauge_instantiate): Ditto.
18323         (mswindows_tree_view_instantiate): Ditto.
18324         (mswindows_tab_control_instantiate): Ditto.
18325         (mswindows_scrollbar_instantiate): Ditto.
18326         (mswindows_combo_box_instantiate): Ditto.
18327         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
18328         style to the "clip" window.
18329         (mswindows_button_instantiate): Removed compilation warning by
18330         equally typing terms of the ?: operator.
18331
18332 2000-01-12  Didier Verna  <didier@xemacs.org>
18333
18334         * redisplay.c (generate_fstring_runes): new parameter holding the
18335         last modeline-format extent.
18336         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
18337         extent, fill the glyph block with it.
18338         (generate_fstring_runes): handle these parameters.
18339         (generate_formatted_string_db): ditto.
18340
18341         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
18342         glyphs'extents in the modeline.
18343
18344 1999-01-11  Mike Woolley  <mike@bulsara.com>
18345
18346         * ntheap.c: Reduced the reserved heap space from 1Gb down to
18347         256Mb, as a workaround for the non-starting problem many people
18348         have experienced.
18349
18350 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18351
18352         * console-tty.c (Fset_console_tty_output_coding_system):
18353         Force redrawing tty frame.
18354
18355 2000-01-10  Didier Verna  <didier@xemacs.org>
18356
18357         * redisplay.c (generate_fstring_runes): fix size computation bug.
18358
18359 2000-01-09  William M. Perry <wmperry@aventail.com>
18360
18361         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
18362
18363 2000-01-09  Andy Piper  <andy@xemacs.org>
18364
18365         * glyphs-msw.c: index -> i to avoid shadows.
18366         (xbm_create_bitmap_from_data): make static.
18367         (check_valid_string_or_int): deleted.
18368         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
18369
18370         * glyphs-x.c (x_update_subwindow): remove unused args.
18371
18372         * glyphs.c (glyph_image_instance): return the thing. Don't set the
18373         back pointer - this is done in allocate_image_instance.
18374         (query_string_font): return Qnil to make the compiler happy.
18375         (unmap_subwindow): set to ~0 to make the compiler happy.
18376         (glyph_query_geometry): comment out until used.
18377         (glyph_layout): ditto.
18378
18379 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18380
18381         * insdel.c (signal_after_change): Remove extraneous unbind_to().