update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2013-05-19  MORIOKA Tomohiko  <tomo.git@chise.org>
2
3         * text-coding.c (COMPOSE_ADD_CHAR): Use
4         `concord_object_get_attribute' instead of
5         `concord_object_get_feature_value'.
6
7         * chartab.c (char_table_get_db_cos): Use
8         `concord_object_get_attribute' instead of
9         `concord_object_get_feature_value'.
10
11 2013-05-02  MORIOKA Tomohiko  <tomo.git@chise.org>
12
13         * chartab.h (get_char_id_table_ce): Use
14         `load_char_attribute_maybe_cos' instead of
15         `load_char_attribute_maybe'.
16
17         * chartab.c (load_char_attribute_maybe_cos): Return NULL instead
18         of Qunbound as the default value.
19
20 2013-05-01  MORIOKA Tomohiko  <tomo.git@chise.org>
21
22         * chartab.h (load_char_attribute_maybe_cos): New prototype when
23         HAVE_LIBCHISE is defined.
24         (get_char_id_table_ce): New inline function when HAVE_LIBCHISE is
25         defined.
26
27         * mule-charset.c (charset_code_point): Use `get_char_id_table_ce'
28         instead of `get_char_id_table' when HAVE_LIBCHISE is defined.
29         (load_char_decoding_entry_maybe): Don't use
30         `decoding_table_put_char' to avoid GC.
31
32         * text-coding.c (concord_setup_env_maybe): Abolished.
33         (COMPOSE_ADD_CHAR): Use `open_chise_data_source_maybe' instead of
34         `concord_setup_env_maybe'.
35
36 2013-05-01  MORIOKA Tomohiko  <tomo.git@chise.org>
37
38         * chartab.c (open_chise_data_source_maybe): New implementation;
39         don't use `build_string' and `Fexpand_file_name' to avoid GC.
40         (char_table_get_db_cos): New function when HAVE_LIBCHISE is
41         defined.
42         (load_char_attribute_maybe_cos): Likewise.
43
44 2013-04-23  MORIOKA Tomohiko  <tomo.git@chise.org>
45
46         * text-coding.c (struct decoding_stream): Use COS_object instead
47         of Lisp_Object for `combining_table' if HAVE_LIBCHISE is defined.
48         (reset_decoding_stream): Likewise.
49         (COMPOSE_FLUSH_CHARS): Likewise.
50         (concord_setup_env_maybe): New function.
51         (COMPOSE_ADD_CHAR): Use COS API for `str->combining_table' if
52         HAVE_LIBCHISE is defined.
53
54 2013-02-16  MORIOKA Tomohiko  <tomo.git@chise.org>
55
56         * chartab.c (find_char_feature_in_family): New implementation;
57         don't support multiple parents; support non-list mother.
58
59 2012-06-11  MORIOKA Tomohiko  <tomo.git@chise.org>
60
61         * text-coding.c (Qenable_decomposition): New variable in XEmacs
62         CHISE.
63         (Fmake_coding_system): Add new property `enable-decomposition' in
64         XEmacs CHISE.
65         (char_encode_utf8): Don't decompose character if
66         CODING_SYSTEM_ENABLE_DECOMPOSITION (str->codesys) is false.
67         (syms_of_file_coding): Add new symbol `enable-decomposition' in
68         XEmacs CHISE.
69         (complex_vars_of_file_coding): Define new coding-system-property
70         `enable-decomposition' in XEmacs CHISE.
71
72         * file-coding.h (struct Lisp_Coding_System): Add
73         `enable_decomposition' in XEmacs CHISE.
74         (CODING_SYSTEM_ENABLE_DECOMPOSITION): New macro in XEmacs CHISE.
75         (XCODING_SYSTEM_ENABLE_DECOMPOSITION): New macro in XEmacs CHISE.
76
77 2012-02-17  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
78
79         * text-coding.c (DECODE_ADD_UCS_CHAR): Add `static'.
80
81 2012-02-11  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
82
83         * text-coding.c (DECODE_ADD_UCS_CHAR): Don't use `INLINE_HEADER'.
84
85         * chartab.c (UINT8_DECODE): Don't use `INLINE_HEADER'.
86         (UINT16_DECODE): Ditto.
87
88         * glyphs-eimage.c (png_instantiate):
89         - Use `png_get_image_height (png_ptr, info_ptr)' instead of
90           `info_ptr->height'.
91         - Use `png_get_image_width (png_ptr, info_ptr)' instead of
92           `info_ptr->width'.
93         - Use `png_get_color_type(png_ptr, info_ptr)' instead of
94           `info_ptr->color_type'.
95         - Use `png_get_bit_depth(png_ptr, info_ptr)' instead of
96           `info_ptr->bit_depth'.
97
98 2011-07-20  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
99
100         * mule-charset.c (charset_code_point): If nil is specified as a
101         feature-value, don't find in mother and return -1.
102
103 2011-07-22  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
104
105         * chartab.c (Fput_char_attribute): Accept nil as a value of
106         CCS-feature [it means that specified object does not have
107         code-point of the CCS-feature].
108
109 2011-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
110
111         * mule-charset.c (complex_vars_of_mule_charset): Use "jisx0208"
112         instead of "jisx0208\\.1990" as the X-registry of `=jis-x0208'.
113
114 2011-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
115
116         * text-coding.c (char_encode_as_entity_reference): Don't use
117         `DECODE_CHAR' to detect isolated characters.
118
119         * mule-charset.c (charset_code_point): Change the third argument
120         `defined_only' to `accepted_mode'; `accepted_mode' can be
121         CHAR_ISOLATED_ONLY, CHAR_ALL or CHAR_DEFINED_ONLY.
122
123         * char-ucs.h (CHAR_ISOLATED_ONLY): New macro.
124         (CHAR_ALL): New macro.
125         (CHAR_DEFINED_ONLY): New macro.
126
127 2011-03-14  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
128
129         * chartab.c (Fchar_feature_base_name_eq): New function when
130         UTF2000 is enabled.
131         (Fput_char_attribute): Use `Fchar_feature_base_name_eq'.
132         (syms_of_chartab): Add new builtin function
133         `char-feature-base-name=' when UTF2000 is enabled.
134
135 2011-02-17  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
136
137         * text-coding.c (Vdecomposition_feature_list): New variable when
138         UTF2000 is defined.
139         (char_encode_utf8): Refer variable `decomposition-feature-list'
140         instead of `=decomposition' feature.
141         (vars_of_file_coding): Add new variable
142         `decomposition-feature-list' when UTF2000 is defined.
143
144 2011-02-16  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
145
146         * chartab.c (Fput_char_attribute): Support `=decomposition@FOO' as
147         `=decomposition' feature.
148
149 2011-02-12  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
150
151         * mule-charset.c (Fmake_charset): Fix problem for 94^n or 96^n
152         coded-charsets with builtin characters.
153
154 2011-02-09  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
155
156         * text-coding.c (Qrep_decomposition): New extern.
157         (char_encode_utf8): Try to encode as combing sequence (or IVS).
158
159 2011-01-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
160
161         * concord.c (Fconcord_genre_ds): Add "#ifdef HAVE_LIBCHISE" ...
162         "#endif" for code to refer Vchise_system_db_directory.
163
164 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
165
166         * concord.c (Fconcord_object_put): Use `member' instead of `memq'.
167         (Fconcord_object_adjoin): New function.
168         (Fconcord_object_adjoinX): New function.
169         (syms_of_concord): Defsubred `Fconcord_object_adjoin' and
170         `Fconcord_object_adjoinX'.
171
172 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
173
174         * concord.c:
175         - Include "elconcord.h".
176         - Move EXFUNs for `Fconcord_decode_object', `Fconcord_object_put'
177           and `Fconcord_object_get' to elconcord.h.
178         (Lisp_CONCORD_DS): Moved to elconcord.h.
179         (struct Lisp_CONCORD_DS): Ditto.
180         (XCONCORD_DS): Ditto.
181         (XSET_CONCORD_DS): Ditto.
182         (CONCORD_DS_P): Ditto.
183         (CHECK_CONCORD_DS): Ditto.
184         (CONCHECK_CONCORD_DS): Ditto.
185         (Lisp_CONCORD_Object): Ditto.
186         (struct Lisp_CONCORD_Object): Ditto.
187         (XCONCORD_OBJECT): Ditto.
188         (XSET_CONCORD_OBJECT): Ditto.
189         (CONCORD_OBJECT_P): Ditto.
190         (CHECK_CONCORD_OBJECT): Ditto.
191         (CONCHECK_CONCORD_OBJECT): Ditto.
192         (CONCORD_OBJECT_GENRE): Ditto.
193         (CONCORD_OBJECT_ID): Ditto.
194         (XCONCORD_OBJECT_ID): Ditto.
195         (XCONCORD_OBJECT_GENRE): Ditto.
196         (concord_object_equal): New function.
197         (LRECORD_IMPLEMENTATION of "concord_object"): Use
198         `concord_object_equal'.
199
200         * elconcord.h: New file.
201
202 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
203
204         * concord.c (print_concord_object): Use readable form even if
205         `print-readably' is nil.
206
207 2010-11-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
208
209         * concord.c (print_concord_object): Don't display location of
210         data-source when `print-readably' is nil.
211
212 2010-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
213
214         * concord.c (Fconcord_genre_ds): Use Vchise_system_db_directory as
215         the default location of data-source.
216         (complex_vars_of_concord): Use Vchise_system_db_directory to
217         assign genre `character' and `feature'.
218
219         * chartab.h (Vchise_system_db_directory): New extern when
220         HAVE_CONCORD is defined.
221
222 2010-09-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
223
224         * concord.c: Include <chise.h> if HAVE_LIBCHISE is defined.
225         (Qcharacter): New variable when HAVE_LIBCHISE is defined.
226         (Qfeature): Ditto.
227         (Fconcord_object_genre): New function.
228         (syms_of_concord):
229         - Add new builtin symbols `character' and `feature' when
230           HAVE_LIBCHISE is defined.
231         - Add Add new builtin function `concord-object-genre'.  
232         (complex_vars_of_concord): New function; assign genres `character'
233         and `feature' when HAVE_LIBCHISE is defined.
234
235 2010-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
236
237         * emacs.c (main_1): Call `complex_vars_of_concord' when
238         HAVE_CONCORD is defined.
239
240         * symsinit.h (complex_vars_of_concord): New prototype.
241
242 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
243
244         * chartab.c (allocate_character): Add `static'.
245
246 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
247
248         * chartab.c (allocate_character): New function.
249         (Fdefine_char): Use allocate_character().
250
251 2010-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
252
253         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.25
254         (ÅŒkawara).
255
256 2010-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
257
258         * chartab.c (save_uint8_byte_table): Fixed problem when a property
259         is unloaded.
260         (save_uint16_byte_table): Likewise.
261
262 2010-02-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
263
264         * chartab.c (Fchar_feature_property): New function when LIBCHISE
265         is enabled.
266         (Fput_char_feature_property): Likewise.
267         (syms_of_chartab): Add new builtin functions
268         `char-feature-property' and `put-char-feature-property' when
269         LIBCHISE is enabled.
270
271 2009-04-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
272
273         * mule-charset.c (Fmake_charset): Add DOC-string of 'iso-ir and
274         '=>iso-ir.
275         (Fcharset_property): Regard '=>iso-ir as same as `iso_ir.
276
277 2009-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
278
279         * mule-charset.c (Qto_iso_ir): New variable for XEmacs CHISE.
280         (make_charset): Add new argument `iso_ir'.
281         (Fmake_charset): Add new property `=>iso-ir' in XEmacs CHISE.
282         (Fmake_reverse_direction_charset): Copy CHARSET_ISO_IR(cs) in
283         XEmacs CHISE.
284         (Fcharset_property): Support `iso-ir' in XEmacs CHISE.
285         (syms_of_mule_charset): Add new builtin symbol `=>iso-ir' in
286         XEmacs CHISE.
287         (complex_vars_of_mule_charset): Specify argument `iso_ir' of
288         function `make_charset'.
289
290         * char-ucs.h (LEADING_BYTE_*): Enclose negative value with ( ).
291         (struct Lisp_Charset): Add new member `iso_ir'.
292         (CHARSET_ISO_IR): New macro.
293
294 2009-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
295
296         * mule-charset.c (Fdecode_char): Fix problem when decoding GR
297         code-point by GL charset.
298
299 2008-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
300
301         * concord.c (concord_id_validate): New function.
302         (structure_type_create_concord): Use `concord_id_validate' instead
303         of `concord_name_validate' to accept integer and character as =id.
304
305 2008-09-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
306
307         * concord.c (func_for_each_object): Fix bug about GC-protection.
308
309 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
310
311         * concord.c (Fconcord_object_put): Check argument FEATURE is a
312         symbol.
313
314 2008-09-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
315
316         * text-coding.c (struct decoding_stream): Add new member
317         `bom_flag' in XEmacs CHISE.
318         (reset_decoding_stream): Ignore U+FEFF in the beginning of stream
319         in XEmacs CHISE.
320
321 2008-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
322
323         * mule-charset.c: Move definition of `=jis-x0208@1978' to
324         lisp/mule/mule-conf.el.
325
326 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
327
328         * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
329         (make_charset): Add new argument `partial'.
330         (Fmake_charset): Add new property 'partial in XEmacs CHISE.
331         (Fmake_reverse_direction_charset): Modify for `make_charset'.
332         (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
333         CHISE.
334         (complex_vars_of_mule_charset): Modify for `make_charset'; specify
335         `=jis-x0208' as a partial coded-charset.
336
337 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
338
339         * text-coding.c (decode_add_er_char): Fix problem when a character
340         represented by an entity-reference is not defined.
341
342 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
343
344         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
345         Qrep_*.
346
347 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
348
349         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
350         (Kasagi).
351
352 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
353
354         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
355         is a relation feature.
356
357 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
358
359         * chartab.c (syms_of_chartab): Define
360         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
361
362         * chartab.h (Q_denotational): New extern when UTF2000 or
363         HAVE_CONCORD is defined.
364         (Q_denotational_from): Likewise.
365         (Q_subsumptive): Likewise.
366         (Q_subsumptive_from): Likewise.
367
368 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
369
370         * concord.c (concord_object_put): New function.
371         (Fconcord_object_put): Use `concord_object_put'.
372
373 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
374
375         * concord.c (Fconcord_define_object): New function.
376         (syms_of_concord): Add new builtin function
377         `concord-define-object'.
378
379 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
380
381         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
382         (Kamo).
383
384 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
385
386         * concord.c: Add EXFUN for Fconcord_object_get.
387         (Vconcord_genre_object_hash_table): New variable.
388         (concord_genre_cache_get_object): New function.
389         (concord_genre_cache_put_object): New function.
390         (Fconcord_make_object): Use object cache; put object-ID into `=id'
391         feature.
392         (Fconcord_object_put): Call `concord_index_sync' after
393         `concord_index_strid_put_obj'.
394         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
395
396 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
397
398         * concord.c (Fconcord_decode_object): Do GCPRO for
399         Fconcord_make_object.
400         (func_for_each_object): Likewise; do GCPRO for
401         for_each_object_closure->function.
402         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
403         for_each_object_closure->function, for_each_object_closure->genre,
404         for_each_object_closure->ds and for_each_object_closure->ret.
405         (concord_object_validate): Do GCPRO for Fconcord_make_object.
406
407 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
408
409         * concord.c: Add EXFUNs for Fconcord_decode_object and
410         Fconcord_object_put.
411         (Fconcord_make_object): Change order of arguments.
412         (Fconcord_decode_object): Modify for Fconcord_make_object.
413         (func_for_each_object): Likewise.
414         (concord_object_validate): Likewise.
415         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
416
417 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
418
419         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
420
421 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
422
423         * concord.c (Fconcord_decode_object): Try to use readable print
424         form as a key of Concord-index.
425         (Fconcord_object_get): Try to use readable print form as an ID of
426         Concord-object.
427         (Fconcord_object_put): Try to use readable print form as an ID of
428         Concord-object and a feature value.
429         (Fconcord_object_spec): Try to use readable print form as an ID of
430         Concord-object.
431
432 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
433
434         * concord.c (print_concord_object): Support readable form.
435
436 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
437
438         * emacs.c (main_1): Call `structure_type_create_concord' when
439         HAVE_CONCORD is defined.
440
441         * symsinit.h (structure_type_create_concord): New prototype.
442
443         * concord.c (Qconcord_object): New variable.
444         (Qgenre): Likewise.
445         (Q_id): Likewise.
446         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
447         for directory.
448         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
449         char*> for genre-name.
450         (Fconcord_feature_list): Likewise.
451         (Fconcord_make_object): Likewise.
452         (Fconcord_decode_object): Likewise; use <char*> instead of
453         <unsigned char*> for feature_name and strid.
454         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
455         c_obj and feature_name.
456         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
457         char*> for c_value.
458         (struct closure_for_object_spec): Use <char*> instead of <unsigned
459         char*> for member `object_id'.
460         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
461         char*> for feature-name.
462         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
463         for c_obj.
464         (func_for_each_object): Cast to avoid warnings.
465         (Fconcord_foreach_object_in_feature): Use <char*> instead of
466         <unsigned char*> for genre_name and feature_name.
467         (concord_name_validate): New function.
468         (concord_object_validate): Likewise.
469         (concord_object_instantiate): Likewise.
470         (syms_of_concord): Add new builtin symbols `concord-object',
471         `genre' and `=id'.
472         (structure_type_create_concord): New function.
473
474 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
475
476         * concord.c (Vconcord_ds_hash_table): New variable.
477         (Vconcord_genre_hash_table): New variable.
478         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
479         (Fconcord_ds_directory): New function.
480         (Fconcord_assign_genre): New function.
481         (Fconcord_genre_directory): New function.
482         (Fconcord_genre_ds): New function.
483         (Fconcord_feature_list): Allow to omit `ds'.
484         (Fconcord_make_object): Likewise.
485         (Fconcord_decode_object): Likewise.
486         (Fconcord_foreach_object_in_feature): Likewise.
487         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
488         Fconcord_assign_genre, Fconcord_genre_directory and
489         Fconcord_genre_ds.
490         (vars_of_concord): Setup Vconcord_ds_hash_table and
491         Vconcord_genre_hash_table.
492
493 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
494
495         * concord.c (struct closure_for_each_object): Add new member
496         `ret'.
497         (func_for_each_object): Setup the return value to
498         `for_each_object_closure->ret'.
499         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
500         returns the value instead of Qt.
501
502 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
503
504         * concord.c: New file.
505
506 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
507
508         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
509         `lrecord_type_concord_object'.
510
511 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
512
513         * symsinit.h (syms_of_concord): New prototype.
514         (vars_of_concord): New prototype.
515
516         * emacs.c (main_1): Setup symbols and variable about concord if
517         HAVE_CONCORD is defined.
518
519         * config.h.in (HAVE_CONCORD): New macro.
520
521 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
522
523         * chartab.c (Fput_char_attribute): For each character relation
524         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
525
526 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
527
528         * chartab.c (Fput_char_attribute): Use
529         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
530         calling `put_char_composition'.
531
532 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
533
534         * chartab.c (Q_halfwidth_of): New variable.
535         (put_char_composition): Return `<-halfwidth' instead of
536         `=decomposition' for compatibility mapping to single character
537         tagged `narrow'.
538         (Fput_char_attribute): Convert char-specs in value of
539         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
540         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
541         for `<-halfwidth'.
542         (syms_of_chartab): Add new symbol `<-halfwidth'.
543
544 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
545
546         * chartab.c (put_char_composition): Return
547         `<-formed@{isolated|initial|medial|final}' for compatibility
548         mapping to single character tagged
549         `{isolated|initial|medial|final}'.
550
551 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
552
553         * chartab.c (Q_compat_of): Deleted.
554         (put_char_composition): Return `<-FOO' for compatibility mapping
555         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
556         of `symbol_name (XSYMBOL(...))'.
557         (Fput_char_attribute): Convert char-specs in value of
558         `{<-|->}font[^*]*' to characters and put reverse links.
559         (Fsave_char_attribute_table): Don't refer Q_compat_of.
560         (syms_of_chartab): Delete builtin symbol `<-compat'.
561
562 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
563
564         * chartab.c (Q_circled_of): New variable.
565         (put_char_composition): Return `<-circled' instead of
566         `=decomposition' for compatibility mapping to single character
567         tagged `circle'.
568         (Fput_char_attribute): Convert char-specs in value of
569         `{<-|->}circled[^*]*' to characters and put reverse links.
570         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
571         for `<-circled'.
572         (syms_of_chartab): Add new symbol `<-circled'.
573
574 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
575
576         * chartab.c (Qto_decomposition_at_circled): New variable.
577         (put_char_composition): Return `=>decomposition@circled' instead
578         of `=decomposition' for compatibility decomposition mapping tagged
579         `circle'.
580         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
581
582 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
583
584         * chartab.c (Q_subscript_of): New variable.
585         (put_char_composition): Return `<-subscript' instead of
586         `=decomposition' for compatibility mapping to single character
587         tagged `sub'.
588         (Fput_char_attribute): Convert char-specs in value of
589         `{<-|->}subscript[^*]*' to characters and put reverse links.
590         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
591         for `<-subscript'.
592         (syms_of_chartab): Add new symbol `<-subscript'.
593
594 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
595
596         * chartab.c (Q_superscript_of): New variable.
597         (put_char_composition): Return `<-superscript' instead of
598         `=decomposition' for compatibility mapping to single character
599         tagged `super'.
600         (Fput_char_attribute): Convert char-specs in value of
601         `{<-|->}superscript[^*]*' to characters and put reverse links.
602         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
603         for `<-superscript'.
604         (syms_of_chartab): Add new symbol `<-superscript'.
605
606 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
607
608         * chartab.c (Qto_decomposition_at_compat): Deleted.
609         (Qto_decomposition_at_superscript): New variable.
610         (put_char_composition): Use `=>decomposition@superscript' instead
611         of `=decomposition' for compatibility decomposition mapping tagged
612         `super'.
613         (Fput_char_attribute): Fix condition about `put_char_composition'.
614         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
615         add news symbol `=>decomposition@superscript'.
616
617 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
618
619         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
620         for compatibility decomposition mapping tagged FOO.
621         (Fput_char_attribute): Modify for `put_char_composition'.
622
623 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
624
625         * chartab.c (Qto_decomposition_at_compat): New variable.
626         (Q_compat_of): Renamed from `Q_compatibility_of'.
627         (put_char_composition): Rename `Q_compatibility_of' to
628         `Q_compat_of'; return `=>decomposition@compat' for compatibility
629         decomposition mapping.
630         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
631         `Q_compat_of'.
632         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
633         `<-compatibility' to `<-compat'.
634
635 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
636
637         * chartab.c (Q_compatibility_of): New variable.
638         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
639         object is proved to be a cons cell; return `<-compatibility' if
640         the first element of argument `value' is `compat'.
641         (Fput_char_attribute): Eliminate the first value if
642         `put_char_composition' returns `<-compatibility'.
643         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
644         for `<-compatibility'.
645         (syms_of_chartab): Add new symbol `<-compatibility'.
646
647 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
648
649         * chartab.c (Q_canonical): New variable.
650         (put_char_composition): Return a feature name: return
651         `->canonical' if argument `value' specifies single character.
652         (Fput_char_attribute): Use `put_char_composition' to determine
653         feature name for `=decomposition' or `->denotational'.
654         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
655         for `->canonical'.
656         (syms_of_chartab): Add new symbol `->canonical'.
657
658 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
659
660         * chartab.c (Qmap_decomposition): New variable.
661         (Fput_char_attribute): Convert `->decomposition' to
662         `=decomposition'.
663         (syms_of_chartab): Add new symbol `=decomposition'.
664
665 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
666
667         * chartab.c (Fget_range_char_table): Fix serious problem when
668         `range' is nil.
669
670 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
671
672         * chartab.c (char_table_get_db): Use `read_from_c_string'.
673
674 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
675
676         * lread.c (read_from_c_string): New function.
677
678         * lisp.h (read_from_c_string): New prototype.
679
680 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
681
682         * chartab.c (Fput_char_attribute): Convert char-specs in value of
683         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
684         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
685         for `{<-|->}Oracle-Bones[^*]*'.
686
687 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
688
689         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
690         (Kizu).
691
692 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
693
694         * text-coding.c (Qccs_priority_list): New variable in XEmacs
695         CHISE.
696         (Fmake_coding_system): Support new property `ccs-priority-list' in
697         XEmacs CHISE.
698         (Fcoding_system_property): Likewise.
699         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
700         Vdefault_coded_charset_priority_list in XEmacs CHISE.
701         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
702         XEmacs CHISE.
703         (complex_vars_of_file_coding): Define new coding-system-property
704         `ccs-priority-list' in XEmacs CHISE.
705
706         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
707
708 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
709
710         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
711         changed to normal function.
712         (encode_char_2): Likewise.
713
714         * mule-charset.c (decoding_table_put_char): Copied from
715         char-ucs.h; changed to normal function.
716         (encode_char_2): Likewise.
717
718 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
719
720         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
721         New extern.
722         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
723         (encode_char_2_search_children): New inline function.
724         (encode_char_2): Refer
725         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
726         and use `encode_char_2_search_children'.
727
728 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
729
730         * mule-charset.c
731         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
732         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
733         (vars_of_mule_charset): Add new variable
734         `display-coded-charset-priority-use-inheritance' and
735         `display-coded-charset-priority-use-hierarchy-order'.
736
737 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
738
739         * char-ucs.h (Q_subsumptive): New extern.
740         (Q_denotational): Likewise.
741         (encode_char_2): Search children specified by `->subsumptive' and
742         `->denotational'.
743
744 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
745
746         * mule-charset.c (complex_vars_of_mule_charset): Modify the
747         X-registry of `ucs-bmp'.
748
749 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
750
751         * chartab.c (char-variants): Refer `->subsumptive',
752         `->denotational' and `->identical' as same as `->ucs-unified'.
753
754 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
755
756         * chartab.c (Fput_char_attribute): Convert char-specs in value of
757         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
758         links.
759
760 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
761
762         * text-coding.c: Add EXFUN for `Fregexp_quote'.
763         (decode_add_er_char): Fix problem about infinite loop when a CCS
764         specified in `coded-charset-entity-reference-alist' is not
765         existed.
766
767 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
768
769         * mule-charset.c (syms_of_mule_charset): Rename
770         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
771
772 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
773
774         * fns.c (simplify_char_spec): Don't allocate new character-object
775         if specified char_spec does not have any CCS-features.
776
777         * chartab.h: Add EXFUN for Fdefine_char.
778
779         * chartab.c: Delete EXFUN for Fdefine_char.
780
781 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
782
783         * fns.c (simplify_char_spec): Use Fdefine_char instead of
784         Ffind_char for char-spec.
785
786 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
787
788         * lisp-disunion.h (XCHARVAL): Fix condition about
789         SIZEOF_EMACS_INT.
790
791 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
792
793         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
794         <int> for `code'.
795         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
796         point; use <Emchar> instead of <int> for character-id.
797
798 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
799
800         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
801         (make_char): Likewise.
802         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
803         environment.
804         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
805         instead of <int> as the type of return value; use <Lisp_Object>
806         instead of <Emchar> as the type of argument.
807         (XCHARVAL[macro version]): Cast the result into <Emchar>.
808
809         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
810         syntaxcode> instead of <int>.
811
812 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
813
814         * chartab.c (put_char_composition): Use DECODE_CHAR to get
815         character corresponding with UCS code point.
816         (Fput_char_attribute): Likewise.
817
818         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
819         character in the UCS decoding-table if the char-id is not equal to
820         the UCS code point.
821
822 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
823
824         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
825         for aliases; write `description'; write
826         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
827         not 0.
828
829 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
830
831         * chartab.c (Fsave_char_attribute_table): Don't use
832         `save_charset_properties'.
833
834         * mule-charset.c (Fsave_charset_properties): Renamed from
835         `save_charset_properties' and changed to Lisp function again;
836         write property `type' as `CCS'; write properties `final-byte' and
837         `mother' if they exists.
838         (syms_of_mule_charset): Revive builtin function
839         `save-charset-properties' when HAVE_LIBCHISE is defined.
840
841 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
842
843         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
844         instead of Vexec_directory.
845         (char_attribute_system_db_file): Likewise.
846
847 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
848
849         * chartab.c (Fsave_char_attribute_table): Use
850         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
851         defined.
852
853         * mule-charset.c (save_charset_properties): Renamed from
854         `Fsave_charset_properties'; changed to non-Lisp function.
855         (syms_of_mule_charset): Abolish builtin function
856         `save-charset-properties'.
857
858 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
859
860         * mule-charset.c (Fsave_charset_properties): New function when
861         HAVE_LIBCHISE is defined.
862         (syms_of_mule_charset): Add new builtin function
863         `save-charset-properties' when HAVE_LIBCHISE is defined.
864
865 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
866
867         * chartab.c (Fput_char_attribute): Convert char-specs in value of
868         `{<-|->}ancient[^*]*' to characters and put reverse links.
869         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
870         for `{<-|->}ancient[^*]*'.
871
872 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
873
874         * chartab.c (Fput_char_attribute): Convert char-specs in value of
875         `{<-|->}original[^*]*' to characters and put reverse links.
876         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
877         for `{<-|->}original[^*]*'.
878
879 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
880
881         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
882
883 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
884
885         * mule-charset.c (Qsystem_char_id): New variable.
886
887         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
888         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
889
890 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
891
892         * chartab.c (Fput_char_attribute): When processing a reference of
893         a character, put into the end of the reversed reference of each
894         target character.
895
896 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
897
898         * chartab.c (Q_same): Deleted.
899         (Q_same_of): Deleted.
900         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
901         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
902         for `{<-|->}same'.
903         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
904
905 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
906
907         * chartab.c (Q_vulgar): Deleted.
908         (Q_vulgar_of): Deleted.
909         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
910         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
911         for `{<-|->}vulgar'.
912         (syms_of_chartab): Don't define `{<-|->}vulgar'.
913
914 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
915
916         * chartab.c (Fput_char_attribute): Convert char-specs in value of
917         `{<-|->}wrong[^*]*' to characters and put reverse links.
918         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
919         for `{<-|->}wrong[^*]*'.
920
921 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
922
923         * chartab.c (Q_vulgar): New variable.
924         (Q_vulgar_of): New variable.
925         (Fput_char_attribute): Convert char-specs in value of
926         `{->|<-}vulgar' to characters and put reverse links.
927         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
928         for `{->|<-}vulgar'.
929         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
930
931 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
932
933         * text-coding.c (decode_add_er_char): Must to quote prefix string
934         as regexp.
935
936 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
937
938         * mule-charset.c (put_char_ccs_code_point): Store characters of
939         =ucs whose code_points >= 0xF0000.
940
941 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
942
943         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
944         CHISE.
945         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
946         CHISE.
947         (complex_vars_of_mule_charset): Add new coded-charset
948         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
949         builtin characters over 0xEFFFF.
950
951         * chartab.c (syms_of_chartab): Don't define symbol
952         `system-char-id' in every case.
953
954         * char-ucs.h (Qsystem_char_id): New extern variable.
955         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
956
957 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
958
959         * text-coding.c (char_encode_utf8): Try to use entity-references
960         for U-000F0000 ...  U-0010FFFF.
961
962 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
963
964         * text-coding.c (ER_BUF_SIZE): New macro.
965         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
966         `er_buf'.
967         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
968         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
969
970 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
971
972         * chartab.c (find_char_feature_in_family): New function.
973         (Fchar_feature): Use `find_char_feature_in_family' with
974         `->identical', `<-subsumptive' and `<-denotational'.
975
976 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
977
978         * text-coding.c (char_encode_as_entity_reference): Allow prefix
979         within 8 characters; fix infinite loop.
980
981 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
982
983         * chartab.c (Q_same): New variable.
984         (Q_same_of): New variable.
985         (Fput_char_attribute): Convert char-specs in value of
986         `{->|<-}same' to characters and put reverse links.
987         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
988         for `{->|<-}same'.
989         (syms_of_chartab): Add new symbols `{->|<-}same'.
990
991 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
992
993         * chartab.c (Q_component): New variable.
994         (Q_component_of): Likewise.
995         (Fput_char_attribute): Convert char-specs in value of
996         `{->|<-}ideographic-component-forms' to characters and put reverse
997         links.
998         (syms_of_chartab): Add new symbols
999         `{->|<-}ideographic-component-forms'.
1000
1001 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1002
1003         * chartab.c (Q_identical): New variable.
1004         (Q_identical_from): New variable.
1005         (Fchar_feature): Regard `->identical' as a feature to find
1006         ancestors.
1007         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
1008         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
1009         for `{->|<-}identical'.
1010         (syms_of_chartab): Add new symbols `{->|<-}identical'.
1011
1012 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1013
1014         * char-ucs.h (encode_char_2): New inline function.
1015         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
1016
1017 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1018
1019         * chartab.c (Fput_char_attribute): Convert char-specs to
1020         characters in value of `ideographic-structure'.
1021         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
1022         for `{<-|->}simplified(@...)'.
1023         (Fdefine_char): Try to use predefined character's id.
1024
1025 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1026
1027         * fns.c (simplify_char_spec): Try to convert builtin chars to
1028         defined chars.
1029
1030 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1031
1032         * chartab.c (Fput_char_attribute): Convert char-specs in value of
1033         `<-simplified[^*]*' to characters and put reverse links.
1034
1035 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1036
1037         * chartab.c (Q_subsumptive): Renamed from Q_unified.
1038         (Q_subsumptive_from): Renamed from Q_unified_from.
1039         (Fchar_feature): Use `Q_subsumptive_from' instead of
1040         `Q_unified_from'.
1041         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
1042         `Q_unified'.
1043         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
1044         `<-unified' to `<-subsumptive'.
1045
1046 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1047
1048         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
1049         inheritance itself; fix typo; stop recursive search if cyclic
1050         inheritance is found.
1051
1052 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1053
1054         * chartab.c (Q_denotational): New variable.
1055         (Q_denotational_from): New variable.
1056         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
1057         (put_char_attribute): New function.
1058         (Fput_char_attribute): Use `put_char_attribute'; regard
1059         `->denotational' and `<-denotational' as same as `->unified' and
1060         `<-unified'.
1061         (syms_of_chartab): Add new symbols `->denotational' and
1062         `<-denotational'.
1063
1064 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1065
1066         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
1067         `Fget_char_attribute'.
1068         (Fchar_variants): Likewise.
1069         (get_char_table): Likewise.
1070         (Fchar_feature): New function.
1071         (put_char_composition): Use `Fchar_feature' instead of
1072         `Fget_char_attribute'.
1073         (Fput_char_attribute): Likewise; don't put the target character
1074         into its `->unified' value.
1075         (syms_of_chartab): Add new builtin function `char-feature'.
1076
1077 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1078
1079         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
1080         `Fget_char_attribute'.
1081         (char_encode_utf8): Likewise.
1082
1083         * chartab.h: Add an EXFUN for `Fchar_feature'.
1084
1085 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1086
1087         * chartab.c (Vnext_defined_char_id): New variable.
1088         (Fput_char_attribute): Accept characters in `->unified'.
1089         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
1090         new characters which are not related with builtin char-id ranges.
1091         (vars_of_chartab): Add new variable `next-defined-char-id'.
1092
1093 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1094
1095         * chartab.c (Q_unified): New variable.
1096         (Q_unified_from): New variable.
1097         (Fput_char_attribute): Add code for `->unified'.
1098         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
1099         XEmacs CHISE.
1100
1101 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1102
1103         * mule-charset.c (decode_ccs_conversion): New function.
1104         (decode_defined_char): Use `decode_ccs_conversion'.
1105         (decode_builtin_char): Likewise.
1106
1107 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1108
1109         * char-ucs.h: Change some charset-ids of private coded-charsets.
1110
1111 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1112
1113         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
1114         (char_encode_as_entity_reference): Likewise.
1115         (decode_coding_big5): Modify for `decode_defined_char' and
1116         `DECODE_CHAR'.
1117         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
1118         avoid compiler warning.
1119         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
1120
1121         * mule-charset.c (decode_defined_char): Add new argument
1122         `without_inheritance'.
1123         (Fdecode_char): Add new optional argument `without_inheritance'.
1124         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1125
1126         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
1127         (simplify_char_spec): Likewise.
1128
1129         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
1130         setting.
1131
1132         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
1133         (map_char_table): Likewise.
1134         (Fdefine_char): Use `Fdecode_char' without inheritance.
1135         (Ffind_char): Modify for `Fdecode_char'.
1136
1137         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
1138
1139         * char-ucs.h (decode_defined_char): Add new argument
1140         `without_inheritance'.
1141         (DECODE_CHAR): Likewise.
1142         (MAKE_CHAR): Modify for `DECODE_CHAR'.
1143
1144 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1145
1146         * chartab.c (Vchise_system_db_directory): New variable.
1147         (vars_of_chartab): Add new variable `chise-system-db-directory'.
1148
1149 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1150
1151         * chartab.c: EXFUN `Fmount_char_attribute_table'.
1152         (print_chartab_range): Don't define when `UTF2000' is defined.
1153         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
1154         `CHISE_DS_open'.
1155
1156 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1157
1158         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
1159         and optional argument `rehash' is specified, call
1160         `open_chise_data_source_maybe' before
1161         `chise_ds_foreach_char_feature_name' is called.
1162
1163 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1164
1165         * chartab.c (char_attribute_list_reset_map_func): New function
1166         when HAVE_LIBCHISE is defined.
1167         (Fchar_attribute_list): Add new optional argument `rehash' when
1168         HAVE_LIBCHISE is defined.
1169         (open_chise_data_source_maybe): Use "chise-db" instead of
1170         "char-db".
1171         (char_attribute_system_db_file): Likewise.
1172         (Fload_char_attribute_table): Use
1173         `chise_feature_foreach_char_with_value' instead of
1174         `chise_char_feature_value_iterate'.
1175
1176 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1177
1178         * chartab.c (Vchise_db_directory): New variable.
1179         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
1180
1181 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1182
1183         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
1184         instead of HAVE_CHISE to specify using with libchise.
1185
1186         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
1187
1188         * chartab.h: Don't use HAVE_CHISE_CLIENT.
1189
1190         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
1191         defined or HAVE_LIBCHISE_LIBCHISE is defined.
1192         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
1193         is defined.
1194         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
1195         HAVE_CHISE to specify using with libchise.
1196         (syms_of_chartab): Don't define symbol `system-char-id' when
1197         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
1198
1199 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1200
1201         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1202         specify CHISE DB support.
1203         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
1204         of `char_attribute_system_db_file' to check feature DB file.
1205
1206         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
1207         HAVE_CHISE_CLIENT to specify CHISE DB support.
1208
1209         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1210         specify CHISE DB support.
1211         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
1212         not defined.
1213         (Freset_char_attribute_table): Use `chise_feature_setup_db'
1214         instead of `char_attribute_system_db_file' to check feature DB
1215         file.
1216
1217 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1218
1219         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
1220         `HAVE_CHISE_CLIENT'.
1221
1222 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1223
1224         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
1225         (Fsave_charset_mapping_table): Don't use
1226         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1227
1228         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
1229         (HAVE_LIBCHISE): New macro.
1230
1231         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
1232
1233         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
1234         (Fsave_char_attribute_table): Don't use
1235         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1236
1237 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1238
1239         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
1240         defined.
1241         (save_uint16_byte_table): Likewise.
1242         (save_byte_table): Likewise.
1243         (char_table_get_db): Use `chise_ds_load_char_feature_value'
1244         instead of `chise_char_load_feature_value'.
1245         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
1246
1247 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1248
1249         * chartab.h (struct Lisp_Char_Table): Delete member
1250         `feature_table' if CHISE is defined.
1251
1252         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
1253         (Fcopy_char_table): Likewise.
1254         (char_table_open_db_maybe): Likewise.
1255         (char_table_close_db_maybe): Likewise.
1256         (char_table_get_db): Likewise.
1257         (Fmount_char_attribute_table): Likewise.
1258         (Fload_char_attribute_table): Likewise.
1259
1260 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1261
1262         * mule-charset.c (load_char_decoding_entry_maybe): Use
1263         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
1264         `chise_ccs_decode'.
1265
1266 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1267
1268         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
1269         instead of `chise_open_data_source'.
1270         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
1271         `chise_ds_close'.
1272
1273 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1274
1275         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
1276         instead of `chise_ds_open_feature_table'.
1277         (char_table_close_db_maybe): Don't use `chise_ft_close'.
1278
1279 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1280
1281         * mule-charset.c (Fsave_charset_mapping_table): Use
1282         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
1283         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
1284         `chise_ccs_sync' instead of `chise_ccst_close'.
1285         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
1286
1287         * chartab.c (open_chise_data_source_maybe): Modify for
1288         `chise_open_data_source'.
1289         (char_table_open_db_maybe): Modify for
1290         `chise_ds_open_feature_table'.
1291
1292 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1293
1294         * mule-charset.c (load_char_decoding_entry_maybe): Use
1295         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
1296         `chise_ccst_close'.
1297
1298 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1299
1300         * mule-charset.c (Fsave_charset_mapping_table): Use
1301         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
1302         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
1303         `chise_dt_put_char' and `chise_dt_close'.
1304         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
1305         `chise_ccs_decode' and `chise_ccst_close' instead of
1306         `chise_ds_open_decoding_table', `chise_dt_get_char' and
1307         `chise_dt_close'.
1308
1309         * chartab.c (char_table_get_db): Use
1310         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
1311         (load_char_attribute_table_map_func): Modify for
1312         `chise_char_feature_value_iterate'.
1313         (Fload_char_attribute_table): Use
1314         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
1315
1316 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1317
1318         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
1319
1320 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1321
1322         * chartab.c (put_char_table): Modify for inherited coded-charsets
1323         in XEmacs CHISE.
1324
1325 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1326
1327         * chartab.c (Fput_char_table_map_function): Fixed.
1328         (word_boundary_p): Don't check charset in XEmacs CHISE.
1329
1330 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1331
1332         * mule-charset.c (Fsave_charset_mapping_table): Use
1333         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1334         instead of `chise_open_decoding_table'; refer
1335         `default_chise_data_source'; use `chise_dt_close' instead of
1336         `chise_close_decoding_table'.
1337         (load_char_decoding_entry_maybe): Likewise.
1338
1339         * chartab.c (default_chise_data_source): New variable when `CHISE'
1340         is defined.
1341         (Fcopy_char_table): `ct->ds' is deleted.
1342         (open_chise_data_source_maybe): New function.
1343         (Fclose_char_data_source): New function.
1344         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1345         use `chise_ds_open_feature_table' instead of
1346         `chise_open_feature_table'.
1347         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1348         `chise_close_feature_table'; `cit->ds' is deleted.
1349         (syms_of_chartab): Add new builtin function
1350         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1351
1352         * chartab.h (default_chise_data_source): New extern variable.
1353         (open_chise_data_source_maybe): New prototype.
1354         (struct Lisp_Char_Table): Delete `ds'.
1355
1356 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1357
1358         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1359         `CHISE' is defined.
1360
1361 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1362
1363         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1364         not defined; add code for non-libchise setting.
1365         (char_table_close_db_maybe): Likewise.
1366         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1367         defined.
1368         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1369         even if `CHISE' is not defined.
1370         (Freset_char_attribute_table): Likewise.
1371         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1372         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1373         `char_table_get_db'.
1374         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1375         `char_table_close_db_maybe' even if `CHISE' is not defined.
1376
1377 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1378
1379         * chartab.c (char_table_open_db_maybe): New function.
1380         (char_table_close_db_maybe): New function.
1381         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1382         (Freset_char_attribute_table): Likewise.
1383         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1384         `char_table_close_db_maybe'.
1385         (Fload_char_attribute_table): Likewise.
1386
1387 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1388
1389         * chartab.c: Don't include <chise.h> because it is included in
1390         chartab.h.
1391         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1392         defined.
1393         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1394         `CHISE' is defined.
1395         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1396         `CHISE' is defined.
1397         (Fclose_char_attribute_table): Close `ct->feature_table' and
1398         `ct->ds' when `CHISE' is defined.
1399         (Freset_char_attribute_table): Likewise.
1400         (load_char_attribute_maybe): Use `cit->ds' and
1401         `cit->feature_table' when `CHISE' is defined.
1402         (Fload_char_attribute_table): Likewise.
1403
1404         * chartab.h: Include <chise.h> when `CHISE' is defined.
1405         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1406         when `CHISE' is defined.
1407
1408 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1409
1410         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1411         is defined.
1412         (char_table_description): Likewise.
1413         (Fmake_char_table): Likewise.
1414         (Fcopy_char_table): Likewise.
1415         (Fmount_char_attribute_table): Likewise.
1416         (Fclose_char_attribute_table): Likewise.
1417         (Freset_char_attribute_table): Likewise.
1418         (load_char_attribute_maybe): Likewise.
1419         (Fload_char_attribute_table): Likewise.
1420
1421         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1422         defined.
1423
1424 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1425
1426         * chartab.c (load_char_attribute_table_map_func): New function
1427         when CHISE is defined.
1428         (Qload_char_attribute_table_map_function): Don't define when CHISE
1429         is defined.
1430         (Fload_char_attribute_table_map_function): Likewise.
1431         (Fload_char_attribute_table): Use libchise when `CHISE' is
1432         defined.
1433         (syms_of_chartab): Don't define
1434         `load-char-attribute-table-map-function' when CHISE is defined.
1435
1436 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1437
1438         * chartab.c: Include <chise.h> when `CHISE' is defined.
1439         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1440
1441 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1442
1443         * mule-charset.c (charset_code_point): Fix problem when searching
1444         in mother CCS fails with `defined_only' mode.
1445
1446 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1447
1448         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1449         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1450         (put_char_composition): Likewise.
1451         (Fput_char_attribute): Likewise.
1452         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1453
1454 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1455
1456         * chartab.c (Q_ucs): Deleted.
1457         (Fput_char_attribute): Don't refer `->ucs'.
1458         (Fdefine_char): Likewise.
1459         (Ffind_char): Likewise.
1460         (syms_of_chartab): Delete `->ucs'.
1461
1462 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1463
1464         * mule-charset.c (Qmap_cns11643_2): Renamed from
1465         `Qchinese_cns11643_2'.
1466         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1467         `chinese-cns11643-2'.
1468         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1469         `=cns11643-2'.
1470
1471 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1472
1473         * mule-charset.c (Qmap_cns11643_1): Renamed from
1474         `Qchinese_cns11643_1'.
1475         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1476         `chinese-cns11643-1'.
1477         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1478         `=cns11643-1'.
1479
1480 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1481
1482         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1483         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1484         `chinese-gb12345'.
1485         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1486         `=gb12345'.
1487
1488 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1489
1490         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1491         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1492         `chinese-gb2312'.
1493         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1494         `=gb2312'.
1495
1496 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1497
1498         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1499         (syms_of_mule_charset): Add new symbol `=big5' instead of
1500         `chinese-big5'.
1501         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1502
1503 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1504
1505         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1506         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1507         `korean-ksc5601'.
1508         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1509         `=ks-x1001'.
1510
1511 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1512
1513         * mule-charset.c (Qmap_jis_x0212): Renamed from
1514         `Qjapanese_jisx0212'.
1515         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1516         `japanese-jisx0212'.
1517         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1518         `=jis-x0212'.
1519
1520 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1521
1522         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1523         `Qjapanese_jisx0208'.
1524         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1525         of `japanese-jisx0208'.
1526         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1527         `=jis-x0208-1983'.
1528
1529 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1530
1531         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1532         `Qjapanese_jisx0208_1978'.
1533         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1534         of `japanese-jisx0208-1978'.
1535         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1536         `=jis-x0208-1978'.
1537
1538 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1539
1540         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1541         only for XEmacs CHISE.
1542
1543 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1544
1545         * char-ucs.h: Compact non-ISO-IR charset-ids.
1546         (LEADING_BYTE_UCS): Changed to -177.
1547         (LEADING_BYTE_CONTROL_1): Changed to -77.
1548         (LEADING_BYTE_UCS_BMP): Changed to -176.
1549         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1550
1551 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1552
1553         * mule-charset.c (Qiso_ir): New variable.
1554         (Fmake_charset): Recognise new property `iso-ir'.
1555         (syms_of_mule_charset): Add new symbol `iso-ir'.
1556
1557 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1558
1559         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1560         n to -n; charset-id of non ISO-IR sets are changed to positive
1561         numbers.
1562
1563 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1564
1565         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1566         for &MCS-XXXXXXXX; values.
1567
1568 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1569
1570         * mule.c (Vxemacs_chise_version): Renamed from
1571         `Vutf_2000_version'.
1572         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1573         `utf-2000-version' as an alias for `xemacs-chise-version'.
1574
1575 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1576
1577         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1578         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1579         defined.
1580
1581         * config.h.in (CHISE): New macro.
1582
1583 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1584
1585         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1586         of `ucs'.
1587         (Qmap_ucs): New variable.
1588         (syms_of_mule_charset): Add new symbol `=ucs'.
1589         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1590
1591         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1592         (simplify_char_spec): Likewise.
1593
1594         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1595
1596         * char-ucs.h (Qmap_ucs): New extern variable.
1597
1598 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1599
1600         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1601         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1602         don't define it when UTF2000 is not defined.
1603         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1604         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1605         when UTF2000 is not defined.
1606         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1607         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1608
1609 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1610
1611         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1612
1613         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1614         (Qucs_gb): Deleted.
1615         (syms_of_mule_charset): Delete `ucs-gb'.
1616         (complex_vars_of_mule_charset): Likewise.
1617
1618 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1619
1620         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1621
1622         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1623         (Qucs_cns): Deleted.
1624         (syms_of_mule_charset): Delete `ucs-cns'.
1625         (complex_vars_of_mule_charset): Likewise.
1626
1627 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1628
1629         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1630
1631         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1632         (Qucs_jis): Deleted.
1633         (syms_of_mule_charset): Delete `ucs-jis'.
1634         (complex_vars_of_mule_charset): Likewise.
1635
1636 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1637
1638         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1639
1640         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1641         (Qucs_ks): Deleted.
1642         (syms_of_mule_charset): Delete `ucs-ks'.
1643         (complex_vars_of_mule_charset): Likewise.
1644
1645 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1646
1647         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1648         (Qideograph_daikanwa_2): Deleted.
1649         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1650         (complex_vars_of_mule_charset): Likewise.
1651
1652         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1653         (LEADING_BYTE_DAIKANWA_1): Deleted.
1654         (LEADING_BYTE_DAIKANWA_2): Deleted.
1655         (MIN_CHAR_DAIKANWA): Deleted.
1656         (MAX_CHAR_DAIKANWA): Deleted.
1657
1658 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1659
1660         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1661         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1662         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1663
1664         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1665         (Vcharset_ideograph_daikanwa): Deleted.
1666         (Qideograph_hanziku_{1..12}): Deleted.
1667         (Qideograph_daikanwa): Deleted.
1668         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1669         Vcharset_ideograph_daikanwa.
1670         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1671         `ideograph-hanziku-{1..12}'.
1672         (complex_vars_of_mule_charset): Likewise.
1673
1674 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1675
1676         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1677
1678         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1679         (Qideograph_gt_pj_{1..11}): Deleted.
1680         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1681         (complex_vars_of_mule_charset): Likewise.
1682
1683 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1684
1685         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1686         (Vcharset_ideograph_gt): Deleted.
1687         (Qucs_big5): Deleted.
1688         (Qideograph_gt): Deleted.
1689         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1690         `ideograph-gt'.
1691         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1692         and `ideograph-gt'.
1693
1694         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1695         (LEADING_BYTE_GT): Deleted.
1696         (MIN_CHAR_GT): Deleted.
1697         (MAX_CHAR_GT): Deleted.
1698
1699 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1700
1701         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1702
1703 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1704
1705         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1706         (save_uint16_byte_table): Likewise.
1707         (save_byte_table): Likewise; convert values by it.
1708         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1709         for `ideographic-structure'.
1710         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1711         as the filter for `ideographic-structure'.
1712
1713 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1714
1715         * chartab.c (put_char_composition): New function.
1716         (Fput_char_attribute): Use `put_char_composition'; use
1717         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1718
1719         * fns.c (simplify_char_spec): New function.
1720         (char_ref_simplify_spec): New function.
1721         (Fchar_refs_simplify_char_specs): New function.
1722         (syms_of_fns): Add new builtin function
1723         `char-refs-simplify-char-specs'.
1724
1725 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1726
1727         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1728         (Qideograph_cbeta): Deleted.
1729         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1730         (complex_vars_of_mule_charset): Likewise.
1731
1732         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1733         (MIN_CHAR_CBETA): Comment out.
1734         (MAX_CHAR_CBETA): Likewise.
1735
1736 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1737
1738         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1739         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1740         CHISE client feature.
1741
1742 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1743
1744         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1745
1746 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1747
1748         * mule-charset.c (charset_lookup_description_1): Use
1749         `NUM_LEADING_BYTES' in UTF-2000.
1750
1751 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1752
1753         * char-ucs.h (GC_CHARSETP): Deleted.
1754
1755 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1756
1757         * char-ucs.h (MAX_CHAR_GT): Updated.
1758
1759 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1760
1761         * text-coding.c: Sync with XEmacs 21.4.10.
1762
1763 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1764
1765         * mule-charset.c (Vcharset_china3_jef): Deleted.
1766         (Qchina3_jef): Deleted.
1767         (syms_of_mule_charset): Don't define `china3-jef'.
1768         (complex_vars_of_mule_charset): Likewise.
1769
1770         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1771         (MIN_CHAR_CHINA3_JEF): Comment out.
1772         (MAX_CHAR_CHINA3_JEF): Comment out.
1773
1774 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1775
1776         * mule-charset.c (Vcharset_ucs_gb): New variable.
1777         (Qucs_gb): New variable.
1778         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1779         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1780
1781         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1782
1783 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1784
1785         * mule-charset.c (charset_code_point): if a coded-charset has a
1786         final-byte, don't inherit the builtin range of the mother CCS.
1787
1788 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1789
1790         * mule-charset.c (charset_code_point): Fix problem about
1791         inheritance.
1792
1793 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1794
1795         * mule-charset.c (decode_builtin_char): Reorganized.
1796
1797 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1798
1799         * text-coding.c (char_encode_as_entity_reference): Modify for
1800         `charset_code_point'.
1801         (char_encode_shift_jis): Likewise.
1802         (char_encode_big5): Likewise.
1803         (char_encode_utf8): Likewise.
1804         (char_encode_iso2022): Likewise.
1805
1806         * mule-charset.c (charset_code_point): Add new argument
1807         `defined_only'.
1808         (Fencode_char): Add new optional argument `defined_only'.
1809
1810         * chartab.c (put_char_table): Modify for `charset_code_point'.
1811
1812         * char-ucs.h (charset_code_point): Add new argument
1813         `defined_only'.
1814         (encode_char_1): Modify for `charset_code_point'.
1815
1816 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1817
1818         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1819         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1820
1821 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1822
1823         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1824         (Qjis_x0208): Likewise.
1825         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1826         XCHARSET_FINAL(charset).
1827         (charset_code_point): Modify condition for final-byte based
1828         builtin-chars.
1829         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1830         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1831         in UTF-2000; specify `=jis-x0208' as the mother of
1832         `japanese-jisx0208-1978', `japanese-jisx0208' and
1833         `japanese-jisx0208-1990' in UTF-2000.
1834
1835 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1836
1837         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1838
1839 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1840
1841         * text-coding.c (decode_coding_utf16): Support UTF-16.
1842         (char_encode_utf16): Fixed.
1843
1844 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1845
1846         * text-coding.c (Qutf16): New variable in MULE.
1847         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1848         (Fcoding_system_type): Add `utf-16' in MULE.
1849         (struct detection_state): Add a structure for utf16 in MULE.
1850         (detect_coding_type): Setup st->utf16.mask in MULE.
1851         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1852         MULE.
1853         (reset_encoding_stream): Use `char_encode_utf16' and
1854         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1855         (detect_coding_utf16): New function [incomplete].
1856         (decode_coding_utf16): New function [support only UCS-2].
1857         (char_encode_utf16): New function.
1858         (char_finish_utf16): New function.
1859         (syms_of_file_coding): Add new symbol `utf-16'; setup
1860         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1861
1862         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1863         UTF-2000.
1864         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1865         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1866
1867 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1868
1869         * chartab.c (put_char_table): When a charset is specified as a
1870         range in UTF-2000, don't support builtin characters.
1871
1872 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1873
1874         * mule-charset.c (decode_defined_char): Don't refer external
1875         database if Qunbound or Qnil are found.
1876         (Fsave_charset_mapping_table): Don't define it if
1877         HAVE_CHISE_CLIENT is not defined.
1878         (Freset_charset_mapping_table): New function.
1879         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1880         found in external database.
1881         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1882         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1883         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1884
1885 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1886
1887         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1888         not.
1889
1890 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1891
1892         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1893         Q_lowercase, Q_uppercase in UTF-2000.
1894
1895         * chartab.c (get_char_table): Add special code for the standard
1896         case table to use character attribute `->downcase' and
1897         `->uppercase' for case operations in UTF-2000.
1898
1899         * casetab.c (Qflippedcase): New variable in UTF-2000.
1900         (Q_lowercase): Likewise.
1901         (Q_uppercase): Likewise.
1902         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1903         and `->uppercase' in UTF-2000.
1904         (complex_vars_of_casetab): Assign attribute name `downcase' to
1905         downcase and CANON table of Vstandard_case_table in UTF-2000;
1906         assign attribute name `flippedcase' to upcase and EQV table of
1907         Vstandard_case_table in UTF-2000.
1908
1909 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1910
1911         * text-coding.c (decode_add_er_char): Support isolated-chars.
1912         (char_encode_as_entity_reference): Likewise.
1913
1914 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1915
1916         * emacs.c (Vutf_2000_lisp_directory): New variable.
1917         (Vconfigure_utf_2000_lisp_directory): Likewise.
1918         (complex_vars_of_emacs): Add new variable
1919         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1920
1921 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1922
1923         * char-ucs.h (DECODE_CHAR): Delete special code for
1924         `chinese-big5-1' and `chinese-big5-2'.
1925
1926         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1927         (Qbig5_2): Likewise.
1928         (decode_defined_char): Support CONVERSION_BIG5_1 and
1929         CONVERSION_BIG5_2.
1930         (decode_builtin_char): Likewise.
1931         (charset_code_point): Likewise.
1932         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1933         'conversion in UTF-2000.
1934         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1935         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1936         `chinese-big5-2' as children of `chinese-big5'.
1937
1938         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1939         (CONVERSION_BIG5_2): New macro.
1940
1941 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1942
1943         * text-coding.c (char_encode_big5): Support entity-reference.
1944
1945 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1946
1947         * text-coding.c (char_encode_as_entity_reference): New function.
1948         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1949
1950 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1951
1952         * text-coding.c (decode_coding_big5): Support entity-reference
1953         decoding feature.
1954
1955 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1956
1957         * text-coding.c (allocate_coding_system): Initialize initial
1958         charsets for CODESYS_UTF8.
1959         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1960         charset-g2 for CODESYS_UTF8.
1961         (decode_coding_utf8): Use charset-g0.
1962         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1963         to force variants to map to UCS.
1964
1965 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1966
1967         * text-coding.c (Qutf_8_mcs): New variable.
1968         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1969         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1970         instead of `utf-8' in UTF-2000.
1971
1972 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1973
1974         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1975         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1976         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1977         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1978         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1979         CONVERSION_96x96x96x96 are introduced.
1980         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1981         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1982         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1983
1984         * char-ucs.h (CONVERSION_94): New macro.
1985         (CONVERSION_96): New macro.
1986         (CONVERSION_94x94): New macro.
1987         (CONVERSION_96x96): New macro.
1988         (CONVERSION_94x94x94): New macro.
1989         (CONVERSION_96x96x96): New macro.
1990         (CONVERSION_94x94x94x60): New macro.
1991         (CONVERSION_94x94x94x94): New macro.
1992         (CONVERSION_96x96x96x96): New macro.
1993
1994 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1995
1996         * chartab.c (Vcharacter_variant_table): Deleted.
1997         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1998         of `Vcharacter_variant_table'.
1999         (Fput_char_attribute): Likewise.
2000         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
2001         (complex_vars_of_chartab): Likewise.
2002
2003 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2004
2005         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
2006
2007         * fns.c (Qideographic_structure): New variable.
2008         (Qkeyword_char): New variable.
2009         (ids_format_unit): New function.
2010         (Fideographic_structure_to_ids): New function.
2011         (syms_of_fns): Add new symbols `ideographic-structure' and
2012         `:char'; add new builtin function `ideographic-structure-to-ids'.
2013
2014         * data.c (Fchar_ref_p): New function.
2015         (syms_of_data): Add new builtin function `char-ref-p'.
2016
2017         * chartab.h: Add an EXFUN for `Ffind_char'.
2018
2019 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2020
2021         * text-coding.c (Vcharacter_composition_table): Deleted.
2022         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
2023         in every UTF-2000.
2024
2025         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
2026         UTF-2000.
2027         (Vcharacter_composition_table): Deleted.
2028         (Fget_composite_char): Use the implementation for external-DB
2029         support in every UTF-2000.
2030         (Fput_char_attribute): Likewise.
2031         (char_attribute_system_db_file): Don't define if external-DB
2032         feature is not available.
2033         (Fsave_char_attribute_table): Likewise.
2034         (Fmount_char_attribute_table): Likewise.
2035         (Fclose_char_attribute_table): Likewise.
2036         (Freset_char_attribute_table): Likewise.
2037         (Fload_char_attribute_table): Likewise.
2038         (syms_of_chartab): Don't define `save-char-attribute-table',
2039         `mount-char-attribute-table', `reset-char-attribute-table',
2040         `close-char-attribute-table' and `load-char-attribute-table' if
2041         external-DB feature is not available.
2042         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
2043
2044 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2045
2046         * text-coding.c (Qcomposition): Add extern if external-DB feature
2047         is supported.
2048         (Vcharacter_composition_table): Don't add extern if external-DB
2049         feature is supported.
2050         (COMPOSE_ADD_CHAR): Modify for new data-representation of
2051         character composition rule if external-DB feature is supported.
2052
2053         * chartab.c (Vcharacter_composition_table): Don't define if
2054         external-DB feature is supported.
2055         (Qcomposition): New variable.
2056         (Fget_composite_char): New implementation for external-DB support.
2057         (Fput_char_attribute): Use `composition' property of each
2058         character instead of `Vcharacter_composition_table' to store
2059         character-composition rules if external-DB feature is supported.
2060         (syms_of_chartab): Add new symbol `composition'.
2061         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
2062         external-DB feature is supported.
2063
2064 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2065
2066         * chartab.c (Vchar_db_stingy_mode): New variable.
2067         (load_char_attribute_maybe): Close database if
2068         Vchar_db_stingy_mode is not NIL.
2069         (Fload_char_attribute_table_map_function): Use
2070         `get_char_id_table_0' instead of `get_char_id_table'.
2071         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
2072
2073         * chartab.h (get_char_id_table_0): New inline function.
2074         (get_char_id_table): Use `get_char_id_table_0'.
2075
2076 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2077
2078         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
2079         and `COMPOSE_ADD_CHAR'.
2080         (decode_coding_iso2022): Use `decode_flush_er_chars'.
2081
2082 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2083
2084         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
2085         instead of `DECODE_ADD_UCS_CHAR'.
2086         (COMPOSE_ADD_CHAR): Likewise.
2087
2088 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2089
2090         * text-coding.c (decode_flush_er_chars): New inline function.
2091         (decode_add_er_char): New function.
2092         (decode_coding_utf8): Use `decode_flush_er_chars' and
2093         `decode_add_er_char'.
2094
2095 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2096
2097         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
2098         done before `decode_output_utf8_partial_char'.
2099
2100         * mule-charset.c (complex_vars_of_mule_charset): Specify
2101         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
2102         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
2103
2104 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2105
2106         * mule-charset.c (decode_defined_char): New function; search
2107         mother.
2108         (decode_builtin_char): Don't search mother if
2109         XCHARSET_MAX_CODE(charset) == 0.
2110         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
2111         == 0 even if code >= XCHARSET_MAX_CODE(charset).
2112         (Fdecode_char): Use `decode_defined_char' instead of
2113         `DECODE_DEFINED_CHAR'.
2114         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
2115         mother of `Vcharset_ucs_jis'.
2116
2117         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
2118         instead of `DECODE_DEFINED_CHAR'.
2119
2120         * char-ucs.h (decode_defined_char): Renamed from
2121         `DECODE_DEFINED_CHAR'; changed to normal function.
2122         (DECODE_CHAR): Use `decode_defined_char' instead of
2123         `DECODE_DEFINED_CHAR'.
2124
2125         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
2126
2127 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2128
2129         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
2130
2131         * text-coding.c (Vcoded_charset_entity_reference_alist): New
2132         variable.
2133         (Quse_entity_reference): New variable.
2134         (Qd): New variable.
2135         (Qx): New variable.
2136         (QX): New variable.
2137         (coding_system_description): Add description for
2138         `ccs_priority_list'.
2139         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
2140         (allocate_coding_system): Initialize `ccs_priority_list' in
2141         UTF-2000.
2142         (Fmake_coding_system): Add description about
2143         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
2144         (codesys).
2145         (Fcoding_system_property): Accept `disable-composition' and
2146         `use-entity-reference' in UTF-2000.
2147         (struct decoding_stream): Add new member `er_counter' and `er_buf'
2148         in UTF-2000.
2149         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
2150         (decode_coding_utf8): Decode entity-reference if
2151         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
2152         (char_encode_utf8): Encode non-Unicode characters as
2153         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
2154         (str->codesys).
2155         (syms_of_file_coding): Add new symbols `use-entity-reference',
2156         `d', `x', `X'.
2157         (vars_of_file_coding): Add new variable
2158         `coded-charset-entity-reference-alist'.
2159         (complex_vars_of_file_coding): Declare `disable-composition' and
2160         `use-entity-reference' to be coding-system-properties in UTF-2000.
2161
2162         * file-coding.h (struct Lisp_Coding_System): Add new member
2163         `use_entity_reference' and `ccs_priority_list'.
2164         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2165         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
2166         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2167
2168 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2169
2170         * chartab.c (save_uint8_byte_table): Don't clear the table.
2171         (save_uint16_byte_table): Likewise.
2172         (save_byte_table): Likewise.
2173         (Fmount_char_attribute_table): New function.
2174         (syms_of_chartab): Add new builtin function
2175         `mount-char-attribute-table'.
2176
2177 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2178
2179         * mule-charset.c (Fsave_charset_mapping_table): Open database as
2180         "w+" mode.
2181         (load_char_decoding_entry_maybe): Open database as read-only mode.
2182
2183         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
2184         open database as "w+" mode.
2185         (load_char_attribute_maybe): Open database as read-only mode.
2186         (Fload_char_attribute_table): Likewise.
2187
2188 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2189
2190         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
2191         (char_table_description): Delete member `db_file'.
2192         (Fmake_char_table): Don't refer `ct->db_file'.
2193         (Fcopy_char_table): Likewise.
2194         (Fsave_char_attribute_table): Likewise.
2195         (Fclose_char_attribute_table): Likewise.
2196         (Freset_char_attribute_table): Likewise.
2197         (load_char_attribute_maybe): Likewise.
2198         (Fload_char_attribute_table): Likewise.
2199
2200         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
2201
2202 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2203
2204         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
2205         (Fsave_char_attribute_table): Don't check `ct->db_file' if
2206         `ct->db' is living.
2207         (load_char_attribute_maybe): Likewise.
2208         (Fload_char_attribute_table): Likewise.
2209
2210 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2211
2212         * chartab.c (Fclose_char_attribute_table): Set Qnil on
2213         `ct->db_file' unconditionally.
2214
2215 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2216
2217         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
2218         UTF-2000.
2219         (char_table_description): Add description for `db_file' and `db'
2220         in UTF-2000.
2221         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
2222         UTF-2000.
2223         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
2224         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
2225         (Fclose_char_attribute_table): New function.
2226         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
2227         (load_char_attribute_maybe): Change interface; use `cit->db_file'
2228         and `cit->db'.
2229         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
2230         (syms_of_chartab): Add new builtin function
2231         `Fclose_char_attribute_table'.
2232
2233 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2234
2235         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
2236         `db' in UTF-2000.
2237         (load_char_attribute_maybe): Change interface.
2238         (get_char_id_table): Modify for `load_char_attribute_maybe'.
2239
2240 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2241
2242         * database.h: Add an EXFUN for `Fdatabase_live_p'.
2243
2244 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2245
2246         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
2247         instead of `DECODE_CHAR' for mother; don't use special code for
2248         chinese-big5 to use code space of chinese-big5-1 and
2249         chinese-big5-2.
2250         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
2251         `MAX_CHAR_BIG5_CDP' for chinese-big5.
2252
2253         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
2254         (MAX_CHAR_BIG5_CDP): Revival.
2255
2256 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2257
2258         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
2259         the XLFD registry-encoding name of `chinese-big5'.
2260
2261 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2262
2263         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
2264         (Qchinese_big5_cdp): Deleted.
2265         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
2266         (complex_vars_of_mule_charset): Delete coded-charset
2267         `chinese-big5-cdp'.
2268
2269         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
2270         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
2271         `CHARSET_ID_OFFSET - n' for private CCS.
2272         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
2273         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
2274         of `MIN_LEADING_BYTE'.
2275         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
2276         `(CHARSET_ID_OFFSET - 97)'.
2277         (MIN_CHAR_BIG5_CDP): Deleted.
2278         (MAX_CHAR_BIG5_CDP): Deleted.
2279
2280 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2281
2282         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
2283
2284 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2285
2286         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
2287         (vars_of_mule): Add new variable `utf-2000-version' [moved from
2288         chartab.c].
2289
2290         * chartab.c (Vutf_2000_version): Moved to mule.c.
2291         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
2292
2293 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2294
2295         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
2296         when HAVE_CHISE_CLIENT is not defined.
2297
2298         * mule.c (vars_of_mule): Provide feature `chise' when
2299         HAVE_CHISE_CLIENT is defined.
2300
2301 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2302
2303         * config.h.in (UTF2000): Add comment.
2304         (HAVE_CHISE_CLIENT): New macro.
2305
2306 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2307
2308         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
2309         CONSP.
2310         (Fput_char_attribute): Likewise.
2311         (char_attribute_system_db_file): Encode file-name of attribute.
2312         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
2313         the initial value.
2314
2315 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2316
2317         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
2318         (Fsave_charset_mapping_table): Use
2319         `char_attribute_system_db_file'.
2320         (load_char_decoding_entry_maybe): Likewise.
2321
2322         * chartab.h (Qsystem_char_id): New external variable.
2323         (char_attribute_system_db_file): New prototype.
2324
2325         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2326         (char_attribute_system_db_file): New function.
2327         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2328         (Freset_char_attribute_table): Likewise.
2329         (load_char_attribute_maybe): Likewise.
2330         (Fload_char_attribute_table): Likewise.
2331         (syms_of_chartab): Add new symbol `system-char-id'.
2332
2333 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2334
2335         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2336         `XCHARSET_GRAPHIC(ccs)'.
2337
2338 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2339
2340         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2341
2342 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2343
2344         * chartab.c (Q_ucs_variants): New variable.
2345         (syms_of_chartab): Add new symbol `->ucs-variants'.
2346         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2347         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2348         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2349
2350         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2351
2352         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2353         `HAVE_DATABASE' is defined.
2354         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2355         `HAVE_DATABASE' is defined.
2356
2357 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2358
2359         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2360         attribute-table.
2361         (Freset_char_attribute_table): New function.
2362         (syms_of_chartab): Add new builtin function
2363         `reset-char-attribute-table'.
2364
2365 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2366
2367         * chartab.c (load_char_attribute_maybe): Don't make directories.
2368
2369 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2370
2371         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2372
2373         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2374         for decoding-table.
2375
2376 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2377
2378         * mule-charset.c (Fsave_charset_mapping_table): Use
2379         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2380
2381         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2382         instead of `XCHARSET_CHARS'.
2383
2384 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2385
2386         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2387         (XCHARSET_BYTE_SIZE): Likewise.
2388
2389         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2390         mule-charset.c].
2391         (XCHARSET_BYTE_SIZE): Likewise.
2392
2393 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2394
2395         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2396         data-directory to store database.
2397         (Fsave_char_attribute_table): Likewise.
2398         (load_char_attribute_maybe): Likewise.
2399         (Fload_char_attribute_table): Likewise.
2400
2401 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2402
2403         * mule-charset.c (Fsave_charset_mapping_table): New function.
2404         (syms_of_mule_charset): Add new builtin function
2405         `save-charset-mapping-table'.
2406
2407 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2408
2409         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2410         (get_ccs_octet_table): New inline function.
2411         (put_ccs_octet_table): Likewise.
2412         (decoding_table_put_char): Use `get_ccs_octet_table' and
2413         `put_ccs_octet_table'.
2414         (decoding_table_remove_char): Use `decoding_table_put_char'.
2415         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2416
2417         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2418         into encoding_table.
2419         (make_charset): Use Qunbound instead Qnil as initial value of
2420         decoding_table.
2421
2422 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2423
2424         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2425         element is Qunloaded.
2426         (map_over_uint16_byte_table): Likewise.
2427         (map_over_byte_table): Likewise.
2428         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2429         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2430         database support, load encoding-table of the specified
2431         coded-charset if it is not loaded yet.
2432         (save_uint8_byte_table): New function of UTF-2000 with external
2433         database support.
2434         (save_uint16_byte_table): Likewise.
2435         (save_byte_table): Likewise.
2436         (Fput_char_attribute): Don't store value into external database
2437         even if the external database feature is supported in UTF-2000;
2438         set `attribute' as name of char-table if the external database
2439         feature is supported.
2440         (Fsave_char_attribute_table): New function in UTF-2000.
2441         (syms_of_chartab): Add new builtin function
2442         `save-char-attribute-table' in UTF-2000.
2443
2444 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2445
2446         * chartab.c (char_attribute_table_to_put): New variable in
2447         UTF-2000.
2448         (Qput_char_table_map_function): Likewise.
2449         (value_to_put): Likewise.
2450         (Fput_char_table_map_function): New function in UTF-2000.
2451         (put_char_table): Use `Fmap_char_attribute' for
2452         CHARTAB_RANGE_CHARSET in UTF-2000.
2453         (Fput_char_attribute): Store symbol instead of string in
2454         `XCHAR_TABLE_NAME (table)'.
2455         (load_char_attribute_maybe): Likewise.
2456         (syms_of_chartab): Add new symbol/function
2457         `put-char-table-map-function'.
2458
2459 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2460
2461         * database.h: Add new EXFUN for `Fmap_database'.
2462
2463         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2464         (syms_of_database): Likewise.
2465
2466         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2467         UTF-2000.
2468         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2469         (XCHAR_TABLE_UNLOADED): Likewise.
2470
2471         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2472         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2473         HAVE_DATABASE is defined.
2474         (char_attribute_table_to_load): New variable of UTF-2000 with
2475         external database support.
2476         (Qload_char_attribute_table_map_function): Likewise.
2477         (Fload_char_attribute_table_map_function): New function of
2478         UTF-2000 with external database support.
2479         (Fload_char_attribute_table): New function of UTF-2000.
2480         (Fmap_char_attribute): Call Fload_char_attribute_table if
2481         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2482         (syms_of_chartab): Add new symbol and function
2483         `load-char-attribute-table-map-function' in UTF-2000 with external
2484         database support; add new function `load-char-attribute-table' in
2485         UTF-2000.
2486
2487 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2488
2489         * chartab.h (load_char_attribute_maybe): New prototype for
2490         UTF-2000 with DATABASE support.
2491         (get_char_id_table): Use `load_char_attribute_maybe' if
2492         HAVE_DATABASE is defined.
2493
2494         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2495         with DATABASE support.
2496
2497 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2498
2499         * chartab.c (Fput_char_attribute): Use S-expression as key of
2500         external database.
2501
2502         * chartab.h (get_char_id_table): Use S-expression as key of
2503         external database.
2504
2505 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2506
2507         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2508         if an element is not loaded, load the corresponding attributes
2509         from an external database.
2510         (map_over_uint16_byte_table): Likewise.
2511         (map_over_byte_table): Likewise.
2512         (map_char_table): Modify for `map_over_uint8_byte_table',
2513         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2514         element is not loaded, load the corresponding attributes from an
2515         external database.
2516         (Fput_char_attribute): Change initial values to Qunloaded.
2517
2518         * chartab.h (get_char_id_table): If a character attribute is not
2519         loaded and the attribute value is not found in an external
2520         database, store Qunbound as the attribute value.
2521
2522 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2523
2524         * chartab.c (BT_UINT8_unloaded): New macro.
2525         (UINT8_VALUE_P): Accept Qunloaded.
2526         (UINT8_ENCODE): Likewise.
2527         (UINT8_DECODE): Likewise.
2528         (BT_UINT16_unloaded): New macro.
2529         (UINT16_VALUE_P): Accept Qunloaded.
2530         (UINT16_ENCODE): Likewise.
2531         (UINT16_DECODE): Likewise.
2532         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2533         BT_UINT16_unloaded.
2534         (mark_char_table): Mark `ct->name' in UTF-2000.
2535         (char_table_description): Add `name' in UTF-2000.
2536         (Fmake_char_table): Initialize `ct->name'.
2537         (Fcopy_char_table): Copy `ct->name'.
2538         (Fput_char_attribute): Store value into an external database if
2539         HAVE_DATABASE is defined.
2540
2541         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2542         UTF-2000.
2543         (CHAR_TABLE_NAME): New macro in UTF-2000.
2544         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2545         (get_char_id_table): Try to read an external database if Qunloaded
2546         is stored in a table.
2547
2548         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2549         Qunloaded.
2550
2551 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2552
2553         * database.h: Add EXFUN definitions for Fopen_database,
2554         Fput_database, Fget_database and Fclose_database.
2555
2556         * data.c (Qunloaded): New variable in UTF-2000.
2557
2558         * lisp.h (Qunloaded): New variable in UTF-2000.
2559
2560 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2561
2562         * mule-charset.c (put_char_ccs_code_point): Modify for
2563         `decoding_table_remove_char' and `decoding_table_put_char'.
2564         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2565
2566         * char-ucs.h (decoding_table_remove_char): Change arguments to
2567         hide decoding_table vector.
2568         (decoding_table_put_char): Likewise.
2569
2570 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2571
2572         * mule-charset.c (decoding_table_remove_char): Moved to
2573         char-ucs.h.
2574         (decoding_table_put_char): Likewise.
2575
2576         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2577         from mule-charset.c].
2578         (decoding_table_remove_char): New inline function [moved from
2579         mule-charset.c].
2580         (decoding_table_put_char): Likewise.
2581
2582 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2583
2584         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2585         extension.
2586
2587 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2588
2589         * mule-charset.c (decode_builtin_char): Support mother charsets.
2590
2591 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2592
2593         * mule-charset.c (Q94x94x60): New variable.
2594         (charset_code_point): Support conversion `94x94x60'.
2595         (Fmake_charset): Likewise.
2596         (syms_of_mule_charset): Add new symbol `94x94x60'.
2597
2598         * char-ucs.h (CONVERSION_94x94x60): New macro.
2599
2600 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2601
2602         * mule-charset.c (charset_code_point): Unify code about
2603         `code-offset'.
2604
2605 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2606
2607         * mule-charset.c (charset_code_point): Merge code about builtin
2608         characters into code about mother charsets; don't use
2609         `range_charset_code_point'.
2610         (range_charset_code_point): Deleted.
2611
2612 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2613
2614         * mule-charset.c (Qcode_offset): New variable.
2615         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2616         `max-code'; accept new property `code-offset'.
2617         (syms_of_mule_charset): Add new symbol `code-offset'.
2618
2619 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2620
2621         * mule-charset.c (range_charset_code_point): Fixed.
2622
2623 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2624
2625         * mule-charset.c (decode_builtin_char): Change semantics of
2626         code-offset of coded-charset.
2627         (charset_code_point): Likewise.
2628         (range_charset_code_point): Likewise.
2629         (complex_vars_of_mule_charset): Modify for the change.
2630
2631 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2632
2633         * mule-charset.c (Fencode_char): Reverse arguments.
2634
2635         * mule-charset.c (charset_code_point): Fixed.
2636
2637 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2638
2639         * mule-charset.c (Vcharset_mojikyo): Deleted.
2640         (Vcharset_mojikyo_2022_1): Deleted.
2641         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2642         (Qmin_code): New variable in UTF-2000.
2643         (Qmax_code): Likewise.
2644         (Qmother): Likewise.
2645         (Qconversion): Likewise.
2646         (Q94x60): Likewise.
2647         (Qmojikyo): Deleted.
2648         (Qmojikyo_2022_1): Deleted.
2649         (Qmojikyo_pj_{1..22}): Deleted.
2650         (mark_charset): Mark `cs->mother'.
2651         (charset_description): Add description for `mother'.
2652         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2653         new arguments `mother' and `conversion'; use
2654         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2655         (charset_code_point): Moved from char-ucs.h; support `mother'
2656         charset feature.
2657         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2658         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2659         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2660         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2661         allow 2 as the value of `graphic' in UTF-2000; add new properties
2662         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2663         require `final' in UTF-2000; modify for `make_charset'.
2664         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2665         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2666         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2667         (Fencode_char): New function.
2668         (syms_of_mule_charset): Add new builtin function `encode-char' in
2669         UTF-2000; add new symbols `min-code', `max-code', `mother',
2670         `conversion' and `94x60'; delete symbols `mojikyo',
2671         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2672         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2673         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2674         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2675
2676         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2677         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2678
2679         * char-ucs.h (Vcharset_mojikyo): Deleted.
2680         (Vcharset_mojikyo_2022_1): Deleted.
2681         (LEADING_BYTE_MOJIKYO): Deleted.
2682         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2683         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2684         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2685         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2686         add new member `mother'; add new member `conversion'.
2687         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2688         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2689         (CHARSET_MOTHER): New macro.
2690         (CHARSET_CONVERSION): New macro.
2691         (CONVERSION_IDENTICAL): New macro.
2692         (CONVERSION_94x60): New macro.
2693         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2694         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2695         (XCHARSET_MOTHER): New macro.
2696         (XCHARSET_CONVERSION): New macro.
2697         (MIN_CHAR_MOJIKYO): Deleted.
2698         (MAX_CHAR_MOJIKYO): Deleted.
2699         (DECODE_MOJIKYO_2022): Deleted.
2700         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2701         (charset_code_point): Changed to non-inline function.
2702         (encode_char_1): Use `charset_code_point'.
2703         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2704
2705 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2706
2707         * lread.c (read_compiled_function): Fix prototype.
2708         (read_vector): Likewise.
2709
2710 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2711
2712         * lrecord.h (struct lrecord_header): Delete `older'.
2713         (set_lheader_implementation): Delete code for `older'.
2714         (set_lheader_older_implementation): Deleted.
2715         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2716         (OLDER_RECORD_P): Deleted.
2717         (OLDER_RECORD_HEADER_P): Deleted.
2718         (alloc_older_lcrecord): Deleted.
2719         (alloc_older_lcrecord_type): Deleted.
2720
2721         * alloc.c (all_older_lcrecords): Deleted.
2722         (alloc_older_lcrecord): Deleted.
2723         (disksave_object_finalization_1): Delete code for older objects.
2724         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2725         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2726
2727 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2728
2729         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2730         instead of `make_older_vector'.
2731         (put_char_ccs_code_point): Likewise.
2732         (mark_charset): Mark `cs->decoding_table'.
2733         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2734
2735         * lisp.h (make_older_vector): Deleted.
2736         (make_vector_newer): Deleted.
2737
2738         * config.h.in (HAVE_GGC): Deleted.
2739
2740         * alloc.c (make_older_vector): Deleted.
2741         (make_vector_newer_1): Deleted.
2742         (make_vector_newer): Deleted.
2743
2744 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2745
2746         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2747         (Qideograph_daikanwa_2): New variable.
2748         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2749         (complex_vars_of_mule_charset): Add new coded-charset
2750         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2751         `LEADING_BYTE_DAIKANWA'.
2752
2753         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2754         (LEADING_BYTE_DAIKANWA_1): New macro.
2755         (LEADING_BYTE_DAIKANWA_2): New macro.
2756         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2757
2758 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2759
2760         * mule-charset.c (complex_vars_of_mule_charset): Change
2761         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2762         the second revised version.
2763
2764 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2765
2766         * mule-charset.c (Vcharset_ucs_smp): New variable.
2767         (Vcharset_ucs_sip): New variable.
2768         (Qucs_smp): New variable.
2769         (Qucs_sip): New variable.
2770         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2771         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2772         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2773         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2774         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2775         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2776
2777         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2778         (LEADING_BYTE_UCS_SIP): New macro.
2779         (MIN_CHAR_SMP): New macro.
2780         (MAX_CHAR_SMP): New macro.
2781         (MIN_CHAR_SIP): New macro.
2782         (MAX_CHAR_SIP): New macro.
2783
2784 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2785
2786         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2787         utf-2000.
2788
2789 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2790
2791         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2792         value; don't store value into `encoding_table' of `Lisp_Charset'.
2793         (mark_charset): `encoding_table' was deleted.
2794         (charset_description): Likewise.
2795         (make_charset): Likewise.
2796         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2797         `put_char_ccs_code_point'.
2798
2799         * chartab.h (Fput_char_attribute): New EXFUN.
2800
2801         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2802         is unified with normal symbol space.
2803         (Fget_char_attribute): Likewise.
2804         (Fput_char_attribute): Likewise; behavior of
2805         `put_char_ccs_code_point' is changed.
2806
2807         * char-ucs.h: Include "elhash.h".
2808         (Vchar_attribute_hash_table): New external variable.
2809         (struct Lisp_Charset): Delete `encoding_table'.
2810         (CHARSET_ENCODING_TABLE): New implementation; refer
2811         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2812         `Lisp_Charset'.
2813
2814 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2815
2816         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2817         (cs) == 0.
2818
2819 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2820
2821         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2822         `chinese-big5'.
2823
2824 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2825
2826         * chartab.c (uint8_byte_table_description): New constant.
2827         (uint8-byte-table): Use `uint8_byte_table_description'.
2828         (uint16_byte_table_description): New constant.
2829         (uint16-byte-table): Use `uint16_byte_table_description'.
2830
2831 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2832
2833         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2834         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2835
2836 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2837
2838         * mule-charset.c (Vcharset_ucs_ks): New variable.
2839         (Qucs_ks): New variable.
2840         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2841         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2842
2843         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2844
2845 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2846
2847         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2848         (Fdecode_char): Likewise.
2849
2850         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2851         chartab.h.
2852         (Fdefine_char): Modify for Fdecode_char.
2853         (Ffind_char): Likewise.
2854
2855         * mule-charset.c (Fdecode_char): Add new optional argument
2856         `defined-only'.
2857         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2858
2859 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2860
2861         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2862         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2863         (allocate_coding_system): Initialize initial-charsets of
2864         CODESYS_BIG5 in XEmacs UTF-2000.
2865         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2866         CODESYS_BIG5 in XEmacs UTF-2000.
2867         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2868         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2869
2870         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2871         variables.
2872         (Qideograph_hanziku_{1 .. 12}): Likewise.
2873         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2874         .. 12}'.
2875         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2876         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2877         `ideograph-hanziku-{1 .. 12}'.
2878
2879         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2880         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2881         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2882         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2883         (DECODE_DEFINED_CHAR): New inline function.
2884         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2885
2886 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2887
2888         * mule-charset.c (Vcharset_china3_jef): Renamed from
2889         `Vcharset_japanese_jef_china3'.
2890         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2891         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2892         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2893         (syms_of_mule_charset): Rename `china3-jef' from
2894         `japanese-jef-china3'.
2895         (complex_vars_of_mule_charset): Likewise; rename
2896         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2897
2898         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2899         `LEADING_BYTE_JEF_CHINA3'.
2900         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2901         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2902
2903 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2904
2905         * mule-charset.c (encode_builtin_char_1): Comment out special code
2906         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2907
2908         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2909         (MAX_CHAR_MOJIKYO_0): Comment out.
2910         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2911         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2912         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2913         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2914
2915 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2916
2917         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2918         (Qideograph_cbeta): New variable.
2919         (encode_builtin_char_1): Comment out special code for
2920         coded-charset `mojikyo' and `japanese-jef-china3'.
2921         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2922         (complex_vars_of_mule_charset): Add new coded-charset
2923         `ideograph-cbeta'.
2924
2925         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2926         (MIN_CHAR_CBETA): New macro.
2927         (MAX_CHAR_CBETA): New macro.
2928
2929 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2930
2931         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2932         (LEADING_BYTE_JEF_CHINA3): New macro.
2933         (MIN_CHAR_JEF_CHINA3): New macro.
2934         (MAX_CHAR_JEF_CHINA3): Likewise.
2935         (DECODE_CHAR): Fixed.
2936
2937 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2938
2939         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2940         (Qjapanese_jef_china3): New variable.
2941         (encode_builtin_char_1): Support `japanese-jef-china3'.
2942         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2943         (complex_vars_of_mule_charset): Add new coded-charset
2944         `japanese-jef-china3'.
2945
2946 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2947
2948         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2949         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2950         94^4, 96^3, 96^4, 128^n and 256^n set.
2951         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2952         (map_char_table): Likewise.
2953
2954 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2955
2956         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2957         UTF-2000.
2958
2959 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2960
2961         * chartab.h (get_char_id_table): New inline function.
2962
2963         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2964         function.
2965
2966 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2967
2968         * chartab.h (decode_char_table_range): New prototype in XEmacs
2969         UTF-2000.
2970         (put_char_id_table): New inline function in XEmacs UTF-2000.
2971
2972         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2973         function.
2974         (decode_char_table_range): Delete static declaration in XEmacs
2975         UTF-2000.
2976
2977 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2978
2979         * chartab.c (put_char_id_table): Use `put_char_table'.
2980
2981 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2982
2983         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2984         (map_over_uint16_byte_table): Likewise.
2985         (map_over_byte_table): Likewise.
2986         (map_char_table): Modify for `map_over_uint8_byte_table',
2987         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2988         UTF-2000.
2989
2990 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2991
2992         * chartab.c (struct map_char_table_for_charset_arg): New
2993         structure.
2994         (map_char_table_for_charset_fun): New function.
2995         (map_char_table): Use `map_char_table' for encoding_table of
2996         `range->charset'.
2997
2998 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2999
3000         * chartab.c (map_char_table): Check a character is found in
3001         range->charset instead of non default value is defined in
3002         char-table when range is CHARTAB_RANGE_ROW.
3003
3004 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3005
3006         * chartab.c (map_char_id_table): Deleted.
3007         (Fmap_char_attribute): Use `map_char_table' instead of
3008         `map_char_id_table'.
3009
3010 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3011
3012         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
3013         UTF-2000.
3014         (update_syntax_table): Deleted in XEmacs UTF-2000.
3015
3016         * syntax.c (find_defun_start): Use `syntax_table' instead of
3017         `mirror_syntax_table' in XEmacs UTF-2000.
3018         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
3019         UTF-2000.
3020         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
3021         XEmacs UTF-2000.
3022         (Fmatching_paren): Likewise.
3023         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
3024         in XEmacs UTF-2000.
3025         (find_start_of_comment): Likewise.
3026         (find_end_of_comment): Likewise.
3027         (Fforward_comment): Likewise.
3028         (scan_lists): Likewise.
3029         (char_quoted): Likewise.
3030         (Fbackward_prefix_chars): Likewise.
3031         (scan_sexps_forward): Likewise.
3032         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
3033         (update_syntax_table): Likewise.
3034
3035         * search.c (skip_chars): Use `syntax_table' instead of
3036         `mirror_syntax_table' in XEmacs UTF-2000.
3037         (wordify): Likewise.
3038         (Freplace_match): Likewise.
3039
3040         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
3041         `mirror_syntax_table' in XEmacs UTF-2000.
3042         (WORDCHAR_P_UNSAFE): Likewise.
3043         (re_match_2_internal): Likewise.
3044
3045         * font-lock.c (find_context): Use `buf->syntax_table' instead of
3046         `buf->mirror_syntax_table' in XEmacs UTF-2000.
3047
3048         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
3049         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
3050
3051         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
3052         XEmacs UTF-2000.
3053
3054         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
3055         UTF-2000.
3056         (print_char_table): Print `default_value' in XEmacs UTF-2000.
3057         (char_table_description): Delete `mirror_table' in XEmacs
3058         UTF-2000.
3059         (fill_char_table): Don't call `update_syntax_table' in XEmacs
3060         UTF-2000.
3061         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
3062         (Fcopy_char_table): Likewise.
3063         (put_char_table): Don't call `update_syntax_table' in XEmacs
3064         UTF-2000.
3065
3066         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
3067         `buf->mirror_syntax_table' in XEmacs UTF-2000.
3068         (casify_region_internal): Likewise.
3069
3070         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
3071
3072         * buffer.c (common_init_complex_vars_of_buffer): Don't use
3073         `mirror_syntax_table' in XEmacs UTF-2000.
3074
3075         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
3076         `buf->mirror_syntax_table' in XEmacs UTF-2000.
3077         (Fexpand_abbrev): Likewise.
3078
3079 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3080
3081         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
3082
3083 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3084
3085         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
3086         (map_over_uint16_byte_table): Likewise.
3087         (map_over_byte_table): Likewise.
3088         (get_char_id_table): Refer `cit->default_value'.
3089         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
3090         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
3091         of character-id ranges.
3092         (mark_char_table): Mark `ct->default_value'.
3093         (char_table_description): Add `default_value'.
3094         (fill_char_table): Use `default_value'.
3095         (decode_char_table_range): Decode `nil' as
3096         `CHARTAB_RANGE_DEFAULT'.
3097         (get_char_id_table): Refer `cit->default_value'.
3098         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
3099         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
3100         temporary hack; check value of char-table is bound or not.
3101         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
3102
3103         * chartab.h (struct Lisp_Char_Table): Add new member
3104         `default_value' in XEmacs UTF-2000.
3105         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
3106         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
3107         UTF-2000.
3108
3109 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3110
3111         * chartab.h (Lisp_Char_ID_Table): Deleted.
3112
3113         * chartab.c (char_table_description): Fix typo.
3114         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
3115         `Lisp_Char_ID_Table'.
3116
3117 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3118
3119         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
3120         `CHAR_ID_TABLE_P'.
3121
3122         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
3123         `CHAR_ID_TABLE_P'.
3124
3125         * chartab.h (XCHAR_ID_TABLE): Deleted.
3126         (XSETCHAR_ID_TABLE): Deleted.
3127         (CHAR_ID_TABLE_P): Deleted.
3128
3129         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
3130         `CHAR_ID_TABLE_P'.
3131         (Fget_composite_char): Likewise.
3132         (put_char_table): Likewise.
3133         (add_char_attribute_alist_mapper): Fixed.
3134         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
3135         `CHAR_ID_TABLE_P'.
3136         (Fget_char_attribute): Likewise.
3137         (Fget_char_attribute): Likewise.
3138         (Fmap_char_attribute): Likewise.
3139
3140         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
3141         `CHAR_ID_TABLE_P'.
3142         (encode_char_1): Likewise.
3143
3144 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3145
3146         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
3147         `XCHAR_ID_TABLE'.
3148
3149         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
3150         instead of `XCHAR_ID_TABLE'.
3151         (remove_char_ccs): Likewise.
3152
3153         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
3154         `XCHAR_ID_TABLE'.
3155         (Fget_composite_char): Likewise.
3156         (Fchar_variants): Likewise.
3157         (put_char_table): Likewise.
3158         (add_char_attribute_alist_mapper): Likewise.
3159         (Fchar_attribute_alist): Likewise.
3160         (Fget_char_attribute): Likewise.
3161         (Fput_char_attribute): Likewise.
3162         (Fmap_char_attribute): Likewise.
3163         (Fmap_char_attribute): Likewise.
3164
3165         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
3166         `XCHAR_ID_TABLE'.
3167         (encode_char_1): Likewise.
3168
3169 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3170
3171         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
3172         `Lisp_Char_ID_Table'.
3173         (mark_char_id_table): Deleted.
3174         (print_char_id_table): Likewise.
3175         (char_id_table_equal): Likewise.
3176         (char_id_table_hash): Likewise.
3177         (char_id_table_description): Likewise.
3178         (char_id_table): Likewise.
3179         (make_char_id_table): Use `Fmake_char_table' and
3180         `fill_char_table'.
3181         (get_char_id_table): Use `Lisp_Char_Table' instead of
3182         `Lisp_Char_ID_Table'.
3183         (put_char_id_table): Likewise.
3184         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
3185         `XCHAR_ID_TABLE'.
3186         (Fremove_char_attribute): Likewise.
3187         (syms_of_chartab): Don't define type `char-id-table'.
3188
3189         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
3190         (char_id_table): Likewise.
3191         (GC_CHAR_ID_TABLE_P): Likewise.
3192         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
3193         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
3194         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
3195         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
3196         (get_char_id_table): Use `Lisp_Char_Table' instead of
3197         `Lisp_Char_ID_Table'.
3198         (put_char_id_table_0): Likewise.
3199         (put_char_id_table): Likewise.
3200
3201 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3202
3203         * chartab.h: Lisp_Byte_Table related codes are moved from
3204         chartab.h.
3205
3206         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
3207
3208 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3209
3210         * chartab.h: Don't include "chartab.h".
3211         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
3212         (Lisp_Char_ID_Table): Likewise.
3213         (char_id_table): Likewise.
3214         (XCHAR_ID_TABLE): Likewise.
3215         (XSETCHAR_ID_TABLE): Likewise.
3216         (CHAR_ID_TABLE_P): Likewise.
3217         (GC_CHAR_ID_TABLE_P): Likewise.
3218         (get_char_id_table): Likewise.
3219
3220         * char-ucs.h: Include "chartab.h".
3221         (struct Lisp_Char_ID_Table): Moved to chartab.h.
3222         (Lisp_Char_ID_Table): Likewise.
3223         (char_id_table): Likewise.
3224         (XCHAR_ID_TABLE): Likewise.
3225         (XSETCHAR_ID_TABLE): Likewise.
3226         (CHAR_ID_TABLE_P): Likewise.
3227         (GC_CHAR_ID_TABLE_P): Likewise.
3228         (get_char_id_table): Likewise.
3229
3230 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3231
3232         * chartab.c (copy_uint8_byte_table): New function.
3233         (copy_uint16_byte_table): New function.
3234         (copy_byte_table): New function.
3235         (map_over_uint8_byte_table): Modify to avoid huge numbers of
3236         characters to call.
3237         (map_over_uint16_byte_table): Likewise.
3238         (map_over_byte_table): Likewise.
3239         (get_byte_table): Move prototype to chartab.h.
3240         (put_byte_table): Likewise.
3241         (put_char_id_table_0): Moved to chartab.h.
3242         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
3243         (char_table_entry_equal): Likewise.
3244         (char_table_entry_hash): Likewise.
3245         (char_table_entry_description): Likewise.
3246         (char_table_entry): Likewise.
3247         (make_char_table_entry): Likewise.
3248         (copy_char_table_entry): Likewise.
3249         (get_non_ascii_char_table_value): Likewise.
3250         (map_over_charset_ascii): Likewise.
3251         (map_over_charset_control_1): Likewise.
3252         (map_over_charset_row): Likewise.
3253         (map_over_other_charset): Likewise.
3254         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
3255         (print_char_table): Likewise.
3256         (char_table_equal): Likewise.
3257         (char_table_hash): Likewise.
3258         (char_table_description): Likewise.
3259         (fill_char_table): Likewise.
3260         (Fcopy_char_table): Likewise.
3261         (get_char_table): Likewise.
3262         (Fget_range_char_table): Likewise.
3263         (put_char_table): Likewise.
3264         (map_char_table): Likewise.
3265         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
3266         UTF-2000.
3267
3268 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3269
3270         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
3271         `Vauto_fill_chars' in XEmacs UTF-2000.
3272
3273         * chartab.h (get_byte_table): New prototype [moved from
3274         chartab.c].
3275         (put_byte_table): Likewise [moved from chartab.c].
3276         (put_char_id_table_0): New inline function [moved from chartab.c].
3277         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
3278         (Lisp_Char_Table_Entry): Likewise.
3279         (char_table_entry): Likewise.
3280         (XCHAR_TABLE_ENTRY): Likewise.
3281         (XSETCHAR_TABLE_ENTRY): Likewise.
3282         (CHAR_TABLE_ENTRYP): Likewise.
3283         (CHECK_CHAR_TABLE_ENTRY): Likewise.
3284         (NUM_ASCII_CHARS): Likewise.
3285         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
3286         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
3287
3288 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3289
3290         * chartab.c (get_char_id_table): Change interface.
3291         (put_char_id_table_0): New function.
3292         (put_char_id_table): Change interface; new implementation.
3293         (Fget_composite_char): Modify for interface change of
3294         `get_char_id_table'.
3295         (Fchar_variants): Likewise.
3296         (add_char_attribute_alist_mapper): Likewise.
3297         (Fchar_attribute_alist): Likewise.
3298         (Fget_char_attribute): Likewise.
3299         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
3300         as same as character as the first argument like `put-char-table';
3301         modify for interface change of `put_char_id_table'.
3302         (Fremove_char_attribute): Modify for interface change of
3303         `put_char_id_table'.
3304
3305 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3306
3307         * text-coding.c: Sync up with XEmacs 21.2.41.
3308         (COMPOSE_ADD_CHAR): Modify for interface change of
3309         `get_char_id_table'.
3310
3311         * mule-charset.c (put_char_ccs_code_point): Modify for interface
3312         change of `put_char_id_table'.
3313         (remove_char_ccs): Likewise.
3314
3315         * chartab.h (put_char_id_table): Change interface.
3316
3317         * char-ucs.h (get_char_id_table): Change interface.
3318         (charset_code_point): Modify for interface change of
3319         `get_char_id_table'.
3320         (encode_char_1): Likewise.
3321
3322 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3323
3324         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3325         argument `ccs'.
3326         (map_over_uint16_byte_table): Likewise.
3327         (map_over_byte_table): Likewise.
3328         (map_char_id_table): Add new argument `range' like
3329         `map_char_table'.
3330         (Fmap_char_attribute): Add new argument `range' like
3331         `Fmap_char_table'.
3332
3333 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3334
3335         * chartab.c (map_over_uint8_byte_table): Change interface of
3336         mapping function to use struct chartab_range instead of Emchar.
3337         (map_over_uint16_byte_table): Likewise.
3338         (map_over_byte_table): Likewise.
3339         (map_char_id_table): Likewise.
3340         (struct slow_map_char_id_table_arg): Deleted.
3341         (slow_map_char_id_table_fun): Deleted.
3342         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3343         function `slow_map_char_table_fun' instead of struct
3344         `slow_map_char_id_table_arg' and function
3345         `slow_map_char_id_table_fun'.
3346
3347 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3348
3349         * mule-charset.c: Move char-it-table related codes to chartab.c.
3350         (Vutf_2000_version): Moved to chartab.c.
3351         (Fdefine_char): Likewise.
3352         (Ffind_char): Likewise.
3353         (syms_of_mule_charset): Move types `uint8-byte-table',
3354         `uint16-byte-table', `byte-table' and `char-id-table' to
3355         chartab.c; move functions `char_attribute_list,
3356         `find_char_attribute_table, `char_attribute_alist,
3357         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3358         `map_char_attribute, `define_char, `find_char, `char_variants and
3359         `get_composite_char to chartab.c; move symbols `=>ucs',
3360         `->decomposition', `compat', `isolated', `initial', `medial',
3361         `final', `vertical', `noBreak', `fraction', `super', `sub',
3362         `circle', `square', `wide', `narrow', `small' and `font' to
3363         chartab.c.
3364         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3365         setting codes for `Vcharacter_composition_table' and
3366         `Vcharacter_variant_table' to chartab.c.
3367         (complex_vars_of_mule_charset): Move setting code for
3368         `Vchar_attribute_hash_table' to chartab.c.
3369
3370         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3371         (make_char_id_table): New prototype.
3372         (put_char_id_table): Likewise.
3373         (Fget_char_attribute): Likewise.
3374
3375         * chartab.c: Move char-id-table related code from mule-charset.c.
3376         (Vutf_2000_version): Moved from mule-charset.c.
3377
3378         * char-ucs.h (Qucs): New external variable.
3379         (put_char_ccs_code_point): New prototype.
3380         (remove_char_ccs): Likewise.
3381
3382 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3383
3384         * mule-charset.c (Vcharset_ucs_jis): New variable.
3385         (Qucs_jis): Likewise.
3386         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3387         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3388
3389         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3390
3391 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3392
3393         * mule-charset.c (map_over_uint8_byte_table): New function.
3394         (map_over_uint16_byte_table): Likewise.
3395         (map_over_byte_table): Likewise.
3396         (map_char_id_table): Likewise.
3397         (slow_map_char_id_table_fun): Likewise.
3398         (Fmap_char_attribute): Likewise.
3399         (syms_of_mule_charset): Add new function `map-char-attribute'.
3400
3401 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3402
3403         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3404         (syms_of_mule_charset): Add new function `find-char'.
3405
3406 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3407
3408         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3409         XEmacs UTF-2000.
3410         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3411         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3412         XEmacs UTF-2000.
3413         (complex_vars_of_mule_charset): Add new coded-charset
3414         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3415         `ideograph-gt-pj-*'.
3416
3417         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3418
3419 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3420
3421         * mule-charset.c (encode_builtin_char_1): Purge codes about
3422         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3423         {MIN|MAX}_CHAR_HEBREW.
3424         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3425         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3426
3427         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3428         (MAX_CHAR_GREEK): Purged.
3429         (MIN_CHAR_CYRILLIC): Purged.
3430         (MAX_CHAR_CYRILLIC): Purged.
3431         (MIN_CHAR_HEBREW): Commented out.
3432         (MAX_CHAR_HEBREW): Likewise.
3433
3434 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3435
3436         * mule-charset.c (Qto_ucs): New variable.
3437         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3438         (Fdefine_char): Likewise.
3439         (syms_of_mule_charset): Add new symbol `=>ucs'.
3440
3441 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3442
3443         * mule-charset.c (Fdecode_char): Fixed.
3444
3445 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3446
3447         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3448         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3449         "tcvn5712-1".
3450
3451 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3452
3453         * mule-charset.c (Vcharset_ucs_big5): New variable.
3454         (Qucs_big5): Likewise.
3455         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3456         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3457
3458         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3459
3460 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3461
3462         * mule-charset.c (decode_builtin_char): Check Big5 code range
3463         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3464
3465 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3466
3467         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3468         (Qchinese_gb12345): Likewise.
3469         (Fdecode_builtin_char): Fixed.
3470         (syms_of_mule_charset): Add `chinese-gb12345'.
3471         (complex_vars_of_mule_charset): Add coded-charset
3472         `chinese-gb12345'.
3473
3474         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3475         (LEADING_BYTE_CHINESE_GB12345): New macro.
3476
3477 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3478
3479         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3480         and `latin-viscii-upper' for `latin-viscii'.
3481
3482 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3483
3484         * mule-charset.c (Fdecode_builtin_char): Comment out
3485         regularization code for ISO-IR GR representation.
3486
3487 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3488
3489         * mule-charset.c (decode_builtin_char): New function; renamed from
3490         `make_builtin_char'; return -1 instead of signal.
3491         (Fdecode_builtin_char): Use `decode_builtin_char'.
3492
3493         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3494         `make_builtin_char'.
3495         (DECODE_CHAR): Use `decode_builtin_char' instead of
3496         `make_builtin_char'; use mapping table of `chinese-big5' for
3497         `chinese-big5-{1,2}'.
3498
3499 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3500
3501         * text-coding.c (char_encode_big5): New function.
3502         (char_finish_big5): Likewise.
3503         (reset_encoding_stream): Use `char_encode_big5' and
3504         `char_finish_big5' for CODESYS_BIG5.
3505         (mule_encode): Don't use `encode_coding_big5'.
3506         (encode_coding_big5): Deleted.
3507
3508 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3509
3510         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3511         0x81- in XEmacs UTF-2000.
3512         (detect_coding_big5): Likewise.
3513
3514 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3515
3516         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3517         generate character-id if the CCS property does not have
3518         corresponding predefined character.
3519         (make_builtin_char): Return -1 if corresponding predefined
3520         character is not found.
3521         (Fdecode_char): Return nil if corresponding character is not
3522         found.
3523         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3524         don't map to builtin ucs space.
3525
3526 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3527
3528         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3529         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3530
3531 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3532
3533         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3534         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3535         (Qideograph_gt): Likewise.
3536         (Qideograph_gt_pj_{1..11}): Likewise.
3537         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3538         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3539         `ideograph-gt-pj-11'.
3540         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3541         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3542         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3543
3544         * char-ucs.h (LEADING_BYTE_GT): New macro.
3545         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3546         (MIN_CHAR_GT): Likewise.
3547         (MAX_CHAR_GT): Likewise.
3548
3549 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3550
3551         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3552         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3553
3554         * doprnt.c (unsigned_int_converters): Add `c'.
3555         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3556
3557         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3558         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3559         `MIN_CHAR_MOJIKYO'.
3560         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3561         (MAX_CHAR_MOJIKYO_0): New macro.
3562         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3563
3564 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3565
3566         * mule-charset.c (Fdefine_char): Delete cemented out code.
3567         (encode_builtin_char_1): Modify for new allocation of builtin
3568         Mojikyo characters.
3569
3570         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3571
3572 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3573
3574         * mule-charset.c (Vcharset_ucs_cns): New variable.
3575         (Qucs_cns): New variable.
3576         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3577         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3578
3579 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3580
3581         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3582
3583 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3584
3585         * search.c (search_buffer): Make `charset_base_code' as
3586         character-id >> 6 to eliminate the corresponding last byte in
3587         UTF-8 representation [I'm not sure it is right thing].
3588         (boyer_moore): Likewise.
3589
3590 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3591
3592         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3593         representation in MULE.
3594
3595 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3596
3597         * text-coding.c (Fmake_coding_system): Use
3598         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3599         `EXTERNAL_PROPERTY_LIST_LOOP'.
3600
3601 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3602
3603         * text-coding.c (decode_output_utf8_partial_char): New function.
3604         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3605
3606 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3607
3608         * text-coding.c (decode_coding_utf8): Output original byte
3609         sequence if it is broken; change order of conditions.
3610
3611         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3612         of conditions.
3613
3614         * mb-multibyte.h (BYTE_ASCII_P):
3615         Use bit ops for char-signedness safety.
3616         (BYTE_C0_P): Use bit ops for char-signedness safety.
3617         (BYTE_C1_P): Use bit ops for char-signedness safety.
3618
3619         * character.h: (XCHAR_OR_CHAR_INT):
3620         Always use inline function.
3621         Remove redundant type checking assert() - XINT will abort quite
3622         nicely.
3623
3624 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3625
3626         * text-coding.c: (Fencode_shift_jis_char):
3627         (Fencode_big5_char):
3628         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3629         Replace 0 with '\0' when working with bytes.
3630         Replace initial "(" with "\(" in docstrings.
3631
3632         (Fmake_coding_system):
3633         When type is ccl and value is vector, register it with a proper
3634         symbol.  And checks whether the given ccl program is valid.
3635         (mule_decode): When calling ccl_driver, if src indicates
3636         NULL pointer, set an empty string instead.
3637         (mule_encode): Likewise.
3638
3639         (detect_eol_type):
3640         (detect_coding_sjis):
3641         (decode_coding_sjis):
3642         (detect_coding_big5):
3643         (decode_coding_big5):
3644         (detect_coding_ucs4):
3645         (decode_coding_ucs4):
3646         (detect_coding_utf8):
3647         (decode_coding_utf8):
3648         (detect_coding_iso2022):
3649         (decode_coding_iso2022):
3650         (decode_coding_no_conversion):
3651         (mule_decode):
3652         Make all detecting and decoding functions take an Extbyte * arg.
3653         (text_encode_generic):
3654         (encode_coding_big5):
3655         (encode_coding_no_conversion):
3656         (mule_encode):
3657         Make all encoding functions take a Bufbyte * arg.
3658         Use size_t instead of unsigned int for memory sizes.
3659         Only cast to unsigned char whenever dereferencing Extbyte *.
3660
3661         (struct lrecord_description fcd_description_1): Use countof.
3662         (complex_vars_of_file_coding):
3663         Use countof instead of sizeof.
3664         Use CHECK_NATNUM instead of CHECK_INT.
3665
3666 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3667
3668         * mule-charset.c (Fget_char_attribute): Add new optional argument
3669         `default-value'.
3670         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3671         (remove_char_ccs): Likewise.
3672
3673 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3674
3675         * text-coding.c (char_encode_shift_jis): New implementation in
3676         UTF-2000.
3677         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3678         ...)'.
3679
3680         * mule-charset.c (Vcharset_chinese_big5): New variable in
3681         UTF-2000.
3682         (Qchinese_big5): New variable in UTF-2000.
3683         (BIG5_SAME_ROW): New macro in UTF-2000.
3684         (make_builtin_char): Use builtin characters of
3685         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3686         characters of `Vcharset_chinese_big5'.
3687         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3688         (complex_vars_of_mule_charset): Add new coded-charset
3689         `chinese-big5' in UTF-2000.
3690
3691         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3692         (Vcharset_chinese_big5): New external variable declaration.
3693         (Vcharset_japanese_jisx0208_1990): Likewise.
3694
3695 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3696
3697         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3698         function.
3699         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3700
3701 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3702
3703         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3704         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3705         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3706         `mojikyo-pj-*'.
3707
3708 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3709
3710         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3711
3712 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3713
3714         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3715         to 0.17.
3716
3717 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3718
3719         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3720         for `CHARSET_BY_ATTRIBUTES'.
3721         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3722         `CHARSET_BY_ATTRIBUTES'.
3723
3724         * text-coding.c (struct decoding_stream): Rename member `CH' to
3725         `CPOS'.
3726         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3727         (decode_coding_sjis): Likewise.
3728         (decode_coding_big5): Likewise.
3729         (decode_coding_ucs4): Likewise.
3730         (decode_coding_utf8): Likewise.
3731         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3732         `CHARSET_BY_ATTRIBUTES'.
3733         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3734         `str->counter'; decode 3, 4 bytes sets.
3735         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3736         sets.
3737         (decode_coding_no_conversion): Use `str->cpos' instead of
3738         `str->ch'.
3739
3740         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3741         (Qmojikyo_2022_1): New variable.
3742         (make_charset): Don't use `CHARSET_TYPE_*'.
3743         (range_charset_code_point): Support coded-charset
3744         `mojikyo-2022-1'.
3745         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3746         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3747         `CHARSET_BY_ATTRIBUTES'.
3748         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3749         `CHARSET_BY_ATTRIBUTES'.
3750         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3751         (complex_vars_of_mule_charset): Add new coded-charset
3752         `mojikyo-2022-1'.
3753
3754         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3755         interface; changed to inline function.
3756
3757         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3758         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3759         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3760         (CHARSET_TYPE_94): Deleted.
3761         (CHARSET_TYPE_94X94): Deleted.
3762         (CHARSET_TYPE_96): Deleted.
3763         (CHARSET_TYPE_96X96): Deleted.
3764         (CHARSET_TYPE_128): Deleted.
3765         (CHARSET_TYPE_128X128): Deleted.
3766         (CHARSET_TYPE_256): Deleted.
3767         (CHARSET_TYPE_256X256): Deleted.
3768         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3769         to inline function.
3770         (DECODE_MOJIKYO_2022): New inline function.
3771         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3772         `Vcharset_mojikyo_2022_1'.
3773
3774 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3775
3776         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3777         instead of `EQ'.
3778         (put_byte_table): Likewise.
3779         (char_id_table_equal): Use `get_byte_table' [new implementation].
3780
3781 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3782
3783         * mule-charset.c: Include <limits.h> in UTF-2000.
3784         (BT_UINT8_MIN): New macro in UTF-2000.
3785         (BT_UINT8_MAX): New macro in UTF-2000.
3786         (BT_UINT8_t): New macro in UTF-2000.
3787         (BT_UINT8_nil): New macro in UTF-2000.
3788         (BT_UINT8_unbound): New macro in UTF-2000.
3789         (INT_UINT8_P): New inline function in UTF-2000.
3790         (UINT8_VALUE_P): New inline function in UTF-2000.
3791         (UINT8_ENCODE): New inline function in UTF-2000.
3792         (UINT8_DECODE): New inline function in UTF-2000.
3793         (mark_uint8_byte_table): New function in UTF-2000.
3794         (print_uint8_byte_table): New function in UTF-2000.
3795         (uint8_byte_table_equal): New function in UTF-2000.
3796         (uint8_byte_table_hash): New function in UTF-2000.
3797         (make_uint8_byte_table): New function in UTF-2000.
3798         (uint8_byte_table_same_value_p): New function in UTF-2000.
3799         (BT_UINT16_MIN): New macro in UTF-2000.
3800         (BT_UINT16_MAX): New macro in UTF-2000.
3801         (BT_UINT16_t): New macro in UTF-2000.
3802         (BT_UINT16_nil): New macro in UTF-2000.
3803         (BT_UINT16_unbound): New macro in UTF-2000.
3804         (INT_UINT16_P): New inline function in UTF-2000.
3805         (UINT16_VALUE_P): New inline function in UTF-2000.
3806         (UINT16_ENCODE): New inline function in UTF-2000.
3807         (UINT16_DECODE): New inline function in UTF-2000.
3808         (UINT8_TO_UINT16): New inline function in UTF-2000.
3809         (mark_uint16_byte_table): New function in UTF-2000.
3810         (print_uint16_byte_table): New function in UTF-2000.
3811         (uint16_byte_table_equal): New function in UTF-2000.
3812         (uint16_byte_table_hash): New function in UTF-2000.
3813         (make_uint16_byte_table): New function in UTF-2000.
3814         (uint16_byte_table_same_value_p): New function in UTF-2000.
3815         (print_byte_table): New function in UTF-2000.
3816         (byte-table): Use `print_byte_table' as printer.
3817         (make_byte_table): Delete second argument `older'.
3818         (byte_table_same_value_p): New function in UTF-2000.
3819         (copy_byte_table): Deleted.
3820         (get_byte_table): New function in UTF-2000.
3821         (put_byte_table): New function in UTF-2000.
3822         (print_char_id_table): New function in UTF-2000.
3823         (char-id-table): Use `print_char_id_table' as printer.
3824         (make_char_id_table): Delete second argument `older'.
3825         (get_char_id_table): Use `get_byte_table [new implementation].
3826         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3827         implementation].
3828         (Ffind_char_attribute_table): New function in UTF-2000.
3829         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3830         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3831         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3832         (syms_of_mule_charset): Add new function
3833         `find-char-attribute-table' in UTF-2000.
3834
3835         * lrecord.h (enum lrecord_type): Add
3836         `lrecord_type_uint16_byte_table' and
3837         `lrecord_type_uint8_byte_table'.
3838
3839         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3840         (Lisp_Uint8_Byte_Table): New type.
3841         (XUINT8_BYTE_TABLE): New macro.
3842         (XSETUINT8_BYTE_TABLE): New macro.
3843         (UINT8_BYTE_TABLE_P): New macro.
3844         (GC_UINT8_BYTE_TABLE_P): New macro.
3845         (struct Lisp_Uint16_Byte_Table): New structure.
3846         (Lisp_Uint16_Byte_Table): New type.
3847         (XUINT16_BYTE_TABLE): New macro.
3848         (XSETUINT16_BYTE_TABLE): New macro.
3849         (UINT16_BYTE_TABLE_P): New macro.
3850         (GC_UINT16_BYTE_TABLE_P): New macro.
3851
3852 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3853
3854         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3855         (Vcharacter_ideographic_strokes_table): Deleted.
3856         (Vcharacter_total_strokes_table): Deleted.
3857         (Vcharacter_morohashi_daikanwa_table): Deleted.
3858         (Vcharacter_decomposition_table): Deleted.
3859         (Qname): Deleted because it is duplicated.
3860         (Qideographic_radical): Deleted.
3861         (Qideographic_strokes): Deleted.
3862         (Qtotal_strokes): Deleted.
3863         (Qmorohashi_daikanwa): Deleted.
3864         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3865         `ideographic-radical', `ideographic-strokes', `total-strokes',
3866         `morohashi-daikanwa' and `->decomposition'.
3867         (Fget_char_attribute): Likewise.
3868         (Fput_char_attribute): Likewise; use `make-vector' instead of
3869         `make_older_vector' for `->decomposition' value.
3870         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3871         `ideograph-daikanwa'.
3872         (syms_of_mule_charset): Delete builtin symbols `name',
3873         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3874         `morohashi-daikanwa'.
3875         (vars_of_mule_charset): Don't setup
3876         `Vcharacter_ideographic_radical_table',
3877         `Vcharacter_ideographic_strokes_table',
3878         `Vcharacter_total_strokes_table',
3879         `Vcharacter_morohashi_daikanwa_table' and
3880         `Vcharacter_decomposition_table'.
3881
3882 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3883
3884         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3885         `make_older_vector', `make_vector_newer_1' and
3886         `make_vector_newer'.
3887
3888         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3889         `make_older_vector' and `make_vector_newer'.
3890
3891         * config.h.in (HAVE_GGC): New macro.
3892
3893 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3894
3895         * mule-charset.c (struct char_attribute_list_closure): New
3896         structure in UTF-2000.
3897         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3898         (Fchar_attribute_list): Likewise.
3899         (Fset_charset_mapping_table): Use `make_vector_newer'.
3900         (Fdecode_builtin_char): New function in UTF-2000.
3901         (syms_of_mule_charset): Add new function `char-attribute-list' and
3902         `decode-builtin-char' in UTF-2000.
3903
3904         * lisp.h (make_vector_newer): New prototype.
3905
3906         * alloc.c (make_vector_newer_1): New function.
3907         (make_vector_newer): New function.
3908
3909 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3910
3911         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3912         50100)'.
3913
3914 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3915
3916         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3917         (Vcharacter_attribute_table): Deleted.
3918         (Vcharacter_name_table): Deleted.
3919         (put_char_attribute): Deleted.
3920         (remove_char_attribute): Deleted.
3921         (struct char_attribute_alist_closure): New structure.
3922         (add_char_attribute_alist_mapper): New function.
3923         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3924         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3925         (Fget_char_attribute): Likewise.
3926         (Fput_char_attribute): Likewise.
3927         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3928         of `remove_char_attribute'.
3929         (Fdefine_char): Return character.
3930         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3931         and `Vcharacter_name_table'.
3932         (complex_vars_of_mule_charset): Likewise
3933         `Vchar_attribute_hash_table'.
3934
3935 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3936
3937         * character.h (CHARC_CHARSET): New macro.
3938         (CHARC_CHARSET_ID): New macro.
3939         (CHARC_CODE_POINT): New macro.
3940         (CHARC_COLUMNS): New macro.
3941         (CHARC_TO_CHAR): New inline function.
3942         (CHARC_EQ): New inline function.
3943         (CHARC_ASCII_EQ): New inline function.
3944         (CHARC_IS_SPACE): New inline function.
3945         (ASCII_TO_CHARC): New inline function.
3946
3947         * char-ucs.h (encode_char_2): Deleted.
3948         (ENCODE_CHAR): Use `encode_char_1' again.
3949         (breakup_char_1): Likewise.
3950         (CHAR_TO_CHARC): New inline function.
3951
3952         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3953
3954 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3955
3956         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3957         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3958         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3959         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3960         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3961         `CHARC_IS_SPACE'.
3962         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3963
3964         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3965         `CHARC_CODE_POINT'.
3966         (x_output_display_block): Use `CHARC_CHARSET' and
3967         `CHARC_ASCII_EQ'.
3968
3969         * redisplay-tty.c (tty_output_display_block): Use
3970         `CHARC_ASCII_EQ'.
3971         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3972
3973         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3974
3975         * insdel.c (find_charsets_in_charc_string): Use
3976         `CHARC_CHARSET_ID'.
3977         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3978         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3979         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3980         (convert_charc_string_into_malloced_string): Likewise.
3981
3982 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3983
3984         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3985         instead of <Emchar_dynarr *> for buf; use
3986         `convert_bufbyte_string_into_charc_dynarr' instead of
3987         `convert_bufbyte_string_into_emchar_dynarr'; use
3988         `find_charsets_in_charc_string' instead of
3989         `find_charsets_in_emchar_string'.
3990
3991         * redisplay.h:
3992         - Include "character.h".
3993         (struct rune): New member `cglyph'; delete member `chr'.
3994
3995         * redisplay.c (redisplay_text_width_charc_string): New function;
3996         delete `redisplay_text_width_emchar_string'.
3997         (rtw_charc_dynarr): New variable; renamed from
3998         `rtw_emchar_dynarr'.
3999         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
4000         `rtw_emchar_dynarr'; use
4001         `convert_bufbyte_string_into_charc_dynarr' instead of
4002         `convert_bufbyte_string_into_emchar_dynarr'; use
4003         `redisplay_text_width_charc_string' instead of
4004         `redisplay_text_width_emchar_string'.
4005         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
4006         instead of `rtw_emchar_dynarr'; use
4007         `convert_bufbyte_string_into_charc_dynarr' instead of
4008         `convert_bufbyte_string_into_emchar_dynarr'.
4009         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
4010         `redisplay_text_width_charc_string' instead of
4011         `redisplay_text_width_emchar_string'.
4012         (create_text_block): Modify for <struct rune> change.
4013         (generate_formatted_string_db): Likewise.
4014         (create_string_text_block): Likewise.
4015         (pixel_to_glyph_translation): Likewise.
4016
4017         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
4018         instead of <const Emchar *>.
4019         (x_text_width): Likewise.
4020         (x_output_display_block): Use <Charc_dynarr *> instead
4021         <Emchar_dynarr *>; modify for <structure rune> change.
4022         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
4023         *>.
4024
4025         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
4026         <const Emchar *>; use `charc_string_displayed_columns' instead of
4027         `emchar_string_displayed_columns'.
4028         (tty_output_display_block): Use <Charc_dynarr *> instead of
4029         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
4030         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
4031         (tty_output_charc_dynarr_dynarr): New variable; renamed from
4032         `tty_output_emchar_dynarr_dynarr'.
4033         (tty_output_charc_dynarr): New function; delete
4034         `tty_output_charc_dynarr'.
4035
4036         * redisplay-output.c (compare_runes): Modify for `struct rune'.
4037         (redisplay_output_layout): Use <Charc_dynarr *> instead of
4038         <Emchar_dynarr *> for buf; use
4039         `convert_bufbyte_string_into_charc_dynarr' instead of
4040         `convert_bufbyte_string_into_emchar_dynarr'.
4041
4042         * frame.c (title_string_charc_dynarr): New variable; renamed from
4043         `title_string_emchar_dynarr'.
4044         (generate_title_string): Use `title_string_charc_dynarr' instead
4045         of `title_string_emchar_dynarr'; use
4046         `convert_charc_string_into_malloced_string' instead of
4047         `convert_emchar_string_into_malloced_string'.
4048         (init_frame): Use `title_string_charc_dynarr' instead of
4049         `title_string_emchar_dynarr'.
4050
4051         * console.h:
4052         - Include "character.h".
4053         (struct console_methods): Use <const Charc *> instead of <const
4054         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
4055         <Emchar_dynarr *> in output_string_method.
4056
4057         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
4058         <Emchar_dynarr *>.
4059
4060         * console-stream.c (stream_text_width): Use <const Charc *>
4061         instead of <const Emchar *>.
4062
4063         * character.h (Charc_dynarr): New type.
4064
4065         * char-ucs.h (structure Charc): New structure; define new type
4066         `Charc'.
4067
4068         * char-lb.h (DECODE_CHAR): New inline function.
4069         (encode_char_1): New inline function.
4070         (ENCODE_CHAR): New macro.
4071         (structure Charc): New structure; define new type `Charc'.
4072
4073         * char-1byte.h (Vcharset_control_1): New macro.
4074         (Vcharset_latin_iso8859_1): New macro.
4075         (DECODE_CHAR): New inline function.
4076         (encode_char_1): New inline function.
4077         (ENCODE_CHAR): New macro.
4078         (structure Charc): New structure; define new type `Charc'.
4079
4080         * insdel.c (find_charsets_in_charc_string): New function; delete
4081         `find_charsets_in_emchar_string'.
4082         (charc_string_displayed_columns): New function; delete
4083         `emchar_string_displayed_columns'.
4084         (convert_bufbyte_string_into_charc_dynarr): New function; delete
4085         `convert_bufbyte_string_into_emchar_dynarr'.
4086         (convert_charc_string_into_bufbyte_dynarr): New function; delete
4087         `convert_charc_string_into_bufbyte_dynarr'.
4088         (convert_charc_string_into_malloced_string): New function; delete
4089         `convert_charc_string_into_malloced_string'.
4090
4091         * buffer.h (find_charsets_in_charc_string): New prototype; delete
4092         `find_charsets_in_emchar_string'.
4093         (charc_string_displayed_columns): New prototype; delete
4094         `emchar_string_displayed_columns'.
4095         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
4096         `convert_charc_string_into_bufbyte_dynarr'.
4097         (convert_charc_string_into_malloced_string): New prototype; delete
4098         `convert_charc_string_into_malloced_string'.
4099
4100 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4101
4102         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
4103
4104 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4105
4106         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
4107
4108         * char-ucs.h: Use <short> for <Charset_ID>.
4109
4110         * mule-charset.h, char-1byte.h: Use <unsigned char> for
4111         <Charset_ID>.
4112
4113 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4114
4115         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4116         to 0.16.
4117
4118 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4119
4120         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
4121         variable.
4122         (Qmorohashi_daikanwa): New variable.
4123         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
4124         for `morohashi-daikanwa' attribute.
4125         (Fget_char_attribute): Likewise.
4126         (Fput_char_attribute): Likewise.
4127         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
4128         has the same value of `ideograph-daikanwa'.
4129         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
4130         (vars_of_mule_charset): Setup
4131         `Vcharacter_morohashi_daikanwa_table'.
4132
4133 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4134
4135         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
4136         attributes.
4137         (add_charset_to_list_mapper): Add `key' instead of
4138         `XCHARSET_NAME (value)' to return aliases.
4139
4140 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4141
4142         * mule-charset.c (Vcharacter_ideographic_radical_table): New
4143         variable.
4144         (Vcharacter_ideographic_strokes_table): New variable.
4145         (Qideographic_radical): New variable.
4146         (Qideographic_strokes): New variable.
4147         (Fchar_attribute_alist): Use
4148         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
4149         attribute; use `Vcharacter_ideographic_strokes_table' for
4150         `ideographic-strokes' attribute.
4151         (Fget_char_attribute): Likewise.
4152         (Fput_char_attribute): Likewise.
4153         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
4154         `ideographic-strokes'.
4155         (vars_of_mule_charset): Setup
4156         `Vcharacter_ideographic_radical_table' and
4157         `Vcharacter_ideographic_strokes_table'.
4158
4159 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4160
4161         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
4162         (Qtotal_strokes): New variable.
4163         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
4164         `total-strokes' attribute.
4165         (Fget_char_attribute): Likewise.
4166         (Fput_char_attribute): Likewise.
4167         (syms_of_mule_charset): Add new symbol `total-strokes'.
4168         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
4169
4170 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4171
4172         * mule-charset.c (Vcharacter_decomposition_table): New variable.
4173         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
4174         are found.
4175         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
4176         `->decomposition' attribute.
4177         (Fput_char_attribute): Likewise.
4178         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
4179
4180 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4181
4182         * mule-charset.c (decoding_table_check_elements): New function.
4183         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
4184
4185 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4186
4187         * mule-charset.c (Fset_charset_mapping_table): Use
4188         `put_char_ccs_code_point'.
4189
4190 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4191
4192         * mule-charset.c (decoding_table_put_char): New inline function.
4193         (put_char_ccs_code_point): Use `decoding_table_put_char'.
4194
4195 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4196
4197         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
4198         (XCHARSET_BYTE_SIZE): New macro.
4199         (decoding_table_remove_char): New inline function.
4200         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
4201         `decoding_table_remove_char'.
4202         (remove_char_ccs): Use `decoding_table_remove_char'.
4203         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
4204
4205 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4206
4207         * mule-charset.c (Vcharacter_name_table): New variable.
4208         (Qname): New variable.
4209         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
4210         attribute.
4211         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
4212         `Vcharacter_name_table' for `name' attribute.
4213         (Fremove_char_attribute): Use function `remove_char_ccs'.
4214         (put_char_ccs_code_point): New function.
4215         (remove_char_ccs): New function.
4216         (syms_of_mule_charset): Add new symbol `name'.
4217         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
4218
4219 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4220
4221         * mule-charset.c (make_byte_table): Add new argument `older'.
4222         (make_char_id_table): Likewise.
4223         (copy_char_id_table): Comment out because it is not used.
4224         (put_char_id_table): Modify for `make_byte_table'.
4225         (Fput_char_attribute): Make encoding_table as older object;
4226         inherit older bit of `Vcharacter_composition_table'.
4227         (mark_charset): Don't mark `cs->encoding_table'.
4228         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
4229         normal object; make `Vcharacter_composition_table' as an older
4230         object; delete staticpro for `Vcharacter_composition_table'; make
4231         `Vcharacter_variant_table' as a normal object.
4232
4233         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
4234         (mark_object): Don't check older object in UTF-2000.
4235
4236         * lrecord.h (struct lrecord_header): Add new member `older' in
4237         UTF-2000.
4238         (set_lheader_implementation): Setup `SLI_header->older' in
4239         UTF-2000.
4240         (set_lheader_older_implementation): New macro in UTF-2000.
4241         (OLDER_RECORD_P): New macro in UTF-2000.
4242         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
4243         (alloc_older_lcrecord): New prototype in UTF-2000.
4244         (alloc_older_lcrecord_type): New macro in UTF-2000.
4245
4246 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4247
4248         * mule-charset.c (byte_table_description): Use
4249         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
4250         (char_id_table_description): Delete bogus `, 1'.
4251         (Fget_char_attribute): Refer encoding_table of each coded-charset
4252         to get value of coded-charset attribute of a character.
4253         (Fput_char_attribute): Use `make_older_vector' instead of
4254         `make_vector'; use encoding_table of each coded-charset to store
4255         value of coded-charset attribute of a character.
4256         (Fremove_char_attribute): Use encoding_table of each coded-charset
4257         to store value of coded-charset attribute of a character.
4258         (mark_charset): Mark `cs->encoding_table'; don't mark
4259         `cs->decoding_table'.
4260         (charset_description): Add description of new member
4261         `encoding_table'.
4262         (make_charset): Initialize `encoding_table'.
4263
4264         * char-ucs.h (struct Lisp_Charset): Add new member
4265         `encoding_table'.
4266         (CHARSET_ENCODING_TABLE): New macro.
4267         (XCHARSET_ENCODING_TABLE): New macro.
4268         (charset_code_point): New implementation.
4269         (encode_char_1): Likewise.
4270
4271         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
4272         (disksave_object_finalization_1): Call finalizers of
4273         `all_older_lcrecords' in UTF-2000.
4274         (make_older_vector): New function in UTF-2000.
4275         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
4276         UTF-2000.
4277
4278         * lisp.h (make_older_vector): New prototype in UTF-2000.
4279
4280 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4281
4282         * lrecord.h (enum lrecord_type): Rename
4283         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
4284
4285         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
4286         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
4287         `get_char_code_table'.
4288
4289         * mule-charset.c (mark_char_id_table): Renamed from
4290         `mark_char_code_table'.
4291         (char_id_table_equal): Renamed from `char_code_table_equal'.
4292         (char_id_table_hash): Renamed from `char_code_table_hash'.
4293         (make_char_id_table): Renamed from `make_char_code_table'.
4294         (copy_char_id_table): Renamed from `copy_char_code_table'.
4295         (get_char_id_table): Renamed from `get_char_code_table'.
4296         (put_char_id_table): Renamed from `put_char_code_table'.
4297         (to_char_id): Renamed from `to_char_code'.
4298
4299         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
4300         `Lisp_Char_Code_Table'.
4301         (char_id_table): Renamed from `char_code_table'.
4302         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
4303         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
4304         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
4305         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
4306         (get_char_id_table): Renamed from `get_char_code_table'.
4307
4308 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4309
4310         * lrecord.h (enum lrecord_type): Rename
4311         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
4312
4313         * mule-charset.c (mark_byte_table): Renamed from
4314         `mark_char_byte_table'.
4315         (byte_table_equal): Renamed from `char_byte_table_equal'.
4316         (byte_table_hash): Renamed from `byte_table_hash'.
4317         (make_byte_table): Renamed from `make_byte_table'.
4318         (copy_byte_table): Renamed from `copy_char_byte_table'.
4319
4320         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4321         `Lisp_Char_Byte_Table'.
4322         (byte_table): Renamed from `char_byte_table'.
4323         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4324         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4325         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4326         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4327
4328 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4329
4330         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4331         (dfc_convert_to_internal_format): Likewise.
4332         
4333         * text-coding.c (Fcoding_system_canonical_name_p): New function.
4334         * text-coding.c (Fcoding_system_alias_p): New function.
4335         * text-coding.c (Fcoding_system_aliasee): New function.
4336         * text-coding.c (append_suffix_to_symbol): New function.
4337         * text-coding.c (dangling_coding_system_alias_p): New function.
4338         * text-coding.c (Ffind_coding_system):
4339         * text-coding.c (Fcopy_coding_system):
4340         * text-coding.c (encode_coding_no_conversion):
4341         * text-coding.c (syms_of_file_coding):
4342         * text-coding.c (vars_of_file_coding):
4343         Rewrite coding system alias code.
4344         Allow nested aliases, like symbolic links.
4345         Allow redefinition of coding system aliases.
4346         Prevent existence of dangling coding system aliases.
4347         Eliminate convert_to_external_format.
4348         Eliminate convert_to_internal_format.
4349         
4350         * text-coding.c: Change enum eol_type to eol_type_t.
4351
4352 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4353
4354         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4355         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4356
4357         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4358         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4359
4360 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4361
4362         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4363         `ideograph-daikanwa'.
4364
4365         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4366         (Vcharset_ucs_bmp): Likewise.
4367         (Vcharset_mojikyo): Add new extern variable definition.
4368         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4369         (Vcharset_latin_iso8859_3): Likewise.
4370         (Vcharset_latin_iso8859_4): Likewise.
4371         (Vcharset_latin_iso8859_9): Likewise.
4372         (Vcharset_latin_viscii_lower): Likewise.
4373         (Vcharset_latin_viscii_upper): Likewise.
4374         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4375         `mojikyo' code-point is used to decode.
4376         (encode_char_2): New function [to convert `mojikyo' code-point to
4377         Mojikyo font encoding].
4378         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4379         (breakup_char_1): Likewise.
4380         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4381
4382 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4383
4384         * text-coding.c (Fmake_coding_system): Add document about
4385         `disable-composition' property.
4386
4387 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4388
4389         * text-coding.c (Qdisable_composition): New variable; delete
4390         `Qcomposite'.
4391         (Fmake_coding_system): Add new property `disable-composite';
4392         delete property `composite'.
4393         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4394         instead of `!CODING_SYSTEM_COMPOSITE'.
4395         (syms_of_file_coding): Add new symbol `disable-composition';
4396         delete symbol `composite'.
4397
4398         * file-coding.h (struct Lisp_Coding_System): Add
4399         `disable_composition'; delete `enable_composition'.
4400         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4401         `CODING_SYSTEM_COMPOSITE'.
4402         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4403         `XCODING_SYSTEM_COMPOSITE'.
4404
4405 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4406
4407         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4408         to 0.15.
4409
4410 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4411
4412         * text-coding.c (Qcomposite): New variable.
4413         (Fmake_coding_system): Add new property `composite'.
4414         (struct decoding_stream): Add `combined_char_count',
4415         `combined_chars' and `combining_table' in UTF-2000.
4416         (COMPOSE_FLUSH_CHARS): New macro.
4417         (COMPOSE_ADD_CHAR): New macro.
4418         (reset_decoding_stream): Reset `str->combined_char_count' and
4419         `str->combining_table' in UTF-2000.
4420         (decode_coding_iso2022): Modify for character-decomposition.
4421         (syms_of_file_coding): Add new symbol `composite'.
4422
4423 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4424
4425         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4426         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4427         of `Vcharacter_composition_table' if `->decomposition' property
4428         has only 1 element.
4429         (Qlatin_tcvn5712): New variable.
4430         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4431         (complex_vars_of_mule_charset): Add new coded-charset
4432         `latin-tcvn5712'.
4433
4434         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4435
4436 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4437
4438         * file-coding.h (struct Lisp_Coding_System): Add
4439         `enable_composition'.
4440         (CODING_SYSTEM_COMPOSITE): New macro.
4441         (XCODING_SYSTEM_COMPOSITE): New macro.
4442
4443 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4444
4445         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4446
4447 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4448
4449         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4450         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4451
4452 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4453
4454         * mule-charset.c (Vcharset_mojikyo): New variable.
4455         (Fdefine_char): Don't use coded-charset which does not have
4456         non-builtin character range to allocate character-id.
4457         (Qmojikyo): New variable.
4458         (syms_of_mule_charset): Add new symbol `mojikyo'.
4459         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4460
4461         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4462         (LEADING_BYTE_MOJIKYO): New macro.
4463         (MIN_CHAR_MOJIKYO): New macro.
4464         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4465         (MAX_CHAR_MOJIKYO): New macro.
4466
4467 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4468
4469         * mule-charset.c (remove_char_attribute): Fixed.
4470
4471 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4472
4473         * mule-charset.c (remove_char_attribute): New function.
4474         (Fremove_char_attribute): New function.
4475         (encode_builtin_char_1): Comment out builtin-support for
4476         greek-iso8859-7 and cyrillic-iso8859-5.
4477         (Fdecode_char): Check `code' is an integer.
4478         (syms_of_mule_charset): Add `remove-char-attribute'.
4479         (MIN_CHAR_GREEK): Deleted.
4480         (MAX_CHAR_GREEK): Likewise.
4481         (MIN_CHAR_CYRILLIC): Likewise.
4482         (MAX_CHAR_CYRILLIC): Likewise.
4483         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4484         MAX_CHAR_GREEK for `greek-iso8859-7'.
4485
4486         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4487         (MAX_CHAR_GREEK): Likewise.
4488         (MIN_CHAR_CYRILLIC): Likewise.
4489         (MAX_CHAR_CYRILLIC): Likewise.
4490
4491 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4492
4493         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4494         format is used without `ucs' property.
4495         (Fdecode_char): Fix problem with GR representation.
4496         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4497         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4498
4499 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4500
4501         * mule-charset.c (make_builtin_char): New function.
4502         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4503         (Fset_charset_mapping_table): Modify for new representation of
4504         code-point.
4505         (Fdecode_char): New function.
4506         (syms_of_mule_charset): Add new builtin function `decode-char' in
4507         UTF-2000.
4508
4509         * char-ucs.h (make_builtin_char): New prototype.
4510         (DECODE_CHAR): New inline function.
4511         (MAKE_CHAR): Use `DECODE_CHAR'.
4512
4513 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4514
4515         * text-coding.c (parse_charset_conversion_specs): Use
4516         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4517         `XCHARSET_TYPE'.
4518         (iso2022_designate): Likewise.
4519
4520         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4521         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4522
4523         * mule-charset.c (Vcharset_ucs): New variable.
4524         (print_charset): Change design; use `CHARSET_CHARS' and
4525         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4526         (make_charset): Change signature to specify `chars' and
4527         `dimension' instead of `type'.
4528         (range_charset_code_point): Modify for 256^n-set.
4529         (encode_builtin_char_1): Encode as `ucs' in default.
4530         (Fmake_charset): Modify for `make_charset'.
4531         (Fmake_reverse_direction_charset): Likewise.
4532         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4533         UTF-2000.
4534         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4535         for `make_charset'.
4536
4537         * char-ucs.h (Vcharset_ucs): New variable.
4538         (LEADING_BYTE_UCS): New macro.
4539         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4540         and `chars' to `unsigned short' from `unsigned int'.
4541         (CHARSET_TYPE): Deleted.
4542         (XCHARSET_TYPE): Deleted.
4543
4544 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4545
4546         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4547
4548         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4549         (ENCODE_CHAR): New macro.
4550
4551 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4552
4553         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4554         to 0.14 (Kawachi-Katakami).
4555
4556 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4557
4558         * text-coding.c (char_encode_shift_jis): Modify for
4559         `charset_code_point'.
4560         (char_encode_iso2022): Likewise.
4561
4562         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4563         (integer) instead of list of <Lisp_Object>s (integers) as the
4564         format of code-point of a coded-charset.
4565         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4566         (encode_builtin_char_1): New function; delete
4567         `split_builtin_char'.
4568         (charset_code_point): Return <int> instead of <Lisp_Object>.
4569         (Fsplit_char): Don't use `SPLIT_CHAR'.
4570
4571         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4572         prototype for `split_builtin_char'.
4573         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4574         (charset_code_point): Likewise.
4575         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4576         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4577
4578 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4579
4580         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4581         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4582
4583 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4584
4585         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4586
4587         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4588         (MAX_CHAR_OBS_94x94): Deleted.
4589
4590 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4591
4592         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4593
4594         * char-ucs.h (MAX_CHAR_BMP): New macro.
4595
4596 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4597
4598         * text-coding.c: Sync with r21-2-24.
4599
4600 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4601
4602         * file-coding.c: Modify for UTF-2000.
4603
4604 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4605
4606         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4607         to 0.13 (Takaida).
4608
4609 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4610
4611         * mule-charset.c (split_builtin_char): Delete builtin support for
4612         `katakana-jisx0201'.
4613         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4614         BMP area in builtin representation.
4615
4616         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4617         `Vcharset_katakana_jisx0201'.
4618
4619 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4620
4621         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4622         (Qisolated): New variable.
4623         (Qinitial): New variable.
4624         (Qmedial): New variable.
4625         (Qfinal): New variable.
4626         (Qvertical): New variable.
4627         (Qsmall): New variable.
4628         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4629         `Qvertical' and `Qsmall'.
4630         (Qmojikyo_pj_[1 .. 21]): New variable.
4631         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4632         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4633         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4634         .. 21]'.
4635
4636 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4637
4638         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4639         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4640         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4641
4642 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4643
4644         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4645         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4646         BMP.
4647         (Qjapanese_jisx0208_1990): New variable.
4648         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4649         (complex_vars_of_mule_charset): Add new coded-charset
4650         `japanese-jisx0208-1990'.
4651
4652         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4653         (MIN_CHAR_JIS_X0208_1990): New macro.
4654         (MAX_CHAR_JIS_X0208_1990): New macro.
4655
4656 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4657
4658         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4659         coded-charset is not found.
4660
4661 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4662
4663         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4664         (Fdefine_char): Use `Fmake_char'.
4665
4666 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4667
4668         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4669         (Vcharset_hiragana_jisx0208): Deleted.
4670         (Vcharset_katakana_jisx0208): Deleted.
4671         (Qideograph_daikanwa): New variable.
4672         (Qhiragana_jisx0208): Deleted.
4673         (Qkatakana_jisx0208): Deleted.
4674         (split_builtin_char): Split `ideograph-daikanwa'.
4675         (Fsplit_char): New implementation for UTF-2000.
4676         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4677         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4678         (complex_vars_of_mule_charset): Add new coded-charset
4679         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4680         `katakana-jisx0208'.
4681
4682         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4683         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4684         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4685         (MIN_CHAR_DAIKANWA): New macro.
4686         (MAX_CHAR_DAIKANWA): New macro.
4687
4688 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4689
4690         * data.c (Fstring_to_number): Don't recognize floating point if
4691         base is not 10.
4692
4693 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4694
4695         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4696
4697 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4698
4699         * mule-charset.c (Qsquare): New variable.
4700         (to_char_code): Add `Qsquare'.
4701         (syms_of_mule_charset): Add new symbol `square'.
4702
4703 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4704
4705         * mule-charset.c (Qcircle): New variable.
4706         (to_char_code): Add `Qcircle'.
4707         (syms_of_mule_charset): Add new symbol `circle'.
4708
4709 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4710
4711         * mule-charset.c (Qfont): New variable.
4712         (to_char_code): Add `Qfont'.
4713         (syms_of_mule_charset): Add new symbol `font'.
4714
4715 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4716
4717         * mule-charset.c (Qsub): New variable.
4718         (to_char_code): Add `Qsub'.
4719         (syms_of_mule_charset): Add new symbol `sub'.
4720
4721 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4722
4723         * mule-charset.c (Fput_char_attribute): Convert each element of
4724         VALUE to GL position if ATTRIBUTE is a GR-set,
4725
4726 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4727
4728         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4729         coded-charset is a GR-set.
4730
4731 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4732
4733         * mule-charset.c (Fput_char_attribute): Check each element of
4734         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4735
4736 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4737
4738         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4739         UTF-2000.
4740         (Qethiopic_ucs): New variable in UTF-2000.
4741         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4742         (complex_vars_of_mule_charset): Add new coded-charset
4743         `ethiopic-ucs' in UTF-2000.
4744
4745         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4746         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4747         9)'.
4748         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4749         10)'.
4750         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4751
4752 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4753
4754         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4755         `ascii'.
4756
4757 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4758
4759         * mule-charset.c (Vcharacter_variant_table): New variable.
4760         (Q_ucs): New variable.
4761         (Fchar_variants): New function.
4762         (Fput_char_attribute): Register `->ucs' value to
4763         `Vcharacter_variant_table'.
4764         (syms_of_mule_charset): Add new function `char-variants' and new
4765         symbol `->ucs'.
4766         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4767
4768 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4769
4770         * mule-charset.c (get_char_code_table): Allow negative character
4771         code.
4772         (put_char_code_table): Likewise.
4773         (Vcharacter_composition_table): New variable.
4774         (Q_decomposition): New variable.
4775         (Qwide): New variable.
4776         (Qnarrow): New variable.
4777         (Qcompat): New variable.
4778         (QnoBreak): New variable.
4779         (Qsuper): New variable.
4780         (Qfraction): New variable.
4781         (to_char_code): New function.
4782         (Fget_composite_char): New function.
4783         (Fput_char_attribute): Register `->decomposition' value to
4784         `Vcharacter_composition_table'.
4785         (syms_of_mule_charset): Add new function `get-composite-char', new
4786         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4787         `super' and `fraction'.
4788         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4789
4790 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4791
4792         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4793         character; copy the return value.
4794
4795 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4796
4797         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4798
4799         * mule-charset.c (range_charset_code_point): Must use make_int.
4800         (split_builtin_char): New function.
4801
4802 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4803
4804         * mule-charset.c (char_byte_table): Change name from
4805         "char-code-table" to "char-byte-table".
4806         (mark_char_code_table): New function.
4807         (char_code_table_equal): New function.
4808         (char_code_table_hash): New function.
4809         (char_code_table_description): New constant.
4810         (char_code_table): New type.
4811         (make_char_code_table): New function.
4812         (copy_char_code_table): New function.
4813         (get_char_code_table): Modify for `char_code_table' type.
4814         (put_char_code_table): Likewise.
4815         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4816         (Kashiwara).
4817
4818         * char-ucs.h (char_code_table): New type.
4819         (XCHAR_CODE_TABLE): New macro.
4820         (XSETCHAR_CODE_TABLE): New macro.
4821         (CHAR_CODE_TABLE_P): New macro.
4822         (GC_CHAR_CODE_TABLE_P): New macro.
4823         (struct Lisp_Char_Code_Table): New structure.
4824
4825 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4826
4827         * mule-charset.c (Fmake_charset): Setup byte_offset for
4828         {94|96}^n-set.
4829
4830 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4831
4832         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4833         character.
4834
4835 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4836
4837         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4838         is found.
4839
4840 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4841
4842         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4843         charset, it is regarded as a charset.
4844         (put_char_attribute): New function in UTF-2000.
4845         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4846         charset, mapping-table of the charset is modified.
4847         (Fdefine_char): New function in UTF-2000.
4848         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4849         `Fput_char_attribute'.
4850         (syms_of_mule_charset): Add new function `define-char' and new
4851         symbol `ucs' in UTF-2000.
4852         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4853
4854 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4855
4856         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4857         non-UTF-2000 configuration.
4858
4859 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4860
4861         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4862         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4863
4864         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4865         deleted.
4866         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4867         (Fset_charset_mapping_table): Likewise.
4868
4869         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4870         (CHARSET_ENCODING_TABLE): Delete.
4871         (XCHARSET_ENCODING_TABLE): Delete.
4872         (charset_code_point): New interface.
4873
4874 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4875
4876         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4877         instead of `charset_get_byte1' and `charset_get_byte2'.
4878
4879         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4880         (charset_get_byte2): Deleted.
4881
4882 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4883
4884         * char-ucs.h (SPLIT_CHAR): New inline function.
4885         (breakup_char_1): Use `SPLIT_CHAR'.
4886
4887         * mule-charset.c (range_charset_code_point): New function.
4888         (charset_code_point): New function.
4889
4890         * char-ucs.h (range_charset_code_point): New interface.
4891         (breakup_char_1): Use `range_charset_code_point'.
4892
4893 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4894
4895         * mule-charset.c (Fmake_charset): Delete unused local variable
4896         `code_offset'.
4897
4898         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4899         (breakup_char_1): Find a charset and code-point in
4900         `Vcharacter_attribute_table'.
4901
4902 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4903
4904         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4905         to 0.10 (Yao).
4906
4907 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4908
4909         * mule-charset.c (Vcharacter_attribute_table): New variable.
4910         (Fchar_attribute_alist): New function.
4911         (Fget_char_attribute): New function.
4912         (Fput_char_attribute): New function.
4913         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4914         too.
4915         (syms_of_mule_charset): Add new function `char-attribute-alist',
4916         `get-char-attribute' and `put-char-attribute'.
4917         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4918
4919 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4920
4921         * mule-charset.c (Fmake_charset): Just use
4922         `get_unallocated_leading_byte'.
4923
4924         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4925         sets; don't use final-byte based number for private sets.
4926
4927 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4928
4929         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4930         integer.
4931
4932 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4933
4934         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4935         to 0.9.
4936
4937 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4938
4939         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4940         of `CHAR_LEADING_BYTE' in UTF-2000.
4941
4942         * insdel.c (find_charsets_in_bufbyte_string): Use
4943         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4944         (find_charsets_in_emchar_string): Likewise.
4945
4946         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4947         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4948
4949         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4950         (CHAR_CHARSET_ID): New macro.
4951
4952 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4953
4954         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4955         charset-id - MIN_LEADING_BYTE.
4956         (put_char_table): Likewise.
4957
4958 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4959
4960         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4961         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4962         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4963         (CHARSET_ID_OFFSET): New macro.
4964         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4965         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4966         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4967         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4968         4).
4969         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4970         5).
4971         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4972         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4973         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4974         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4975         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4976
4977 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4978
4979         * mule-charset.c (next_allocated_leading_byte): New variable in
4980         UTF-2000.
4981         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4982         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4983         (get_unallocated_leading_byte): Simply use
4984         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4985         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4986         UTF-2000.
4987
4988         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4989         (MAX_LEADING_BYTE_PRIVATE): New macro.
4990         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4991         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4992
4993 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4994
4995         * mule-charset.c (Fmake_charset): Allocate final-byte based
4996         charset-id for 94-set, 96-set and 94x94-set.
4997
4998 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4999
5000         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
5001         ambiguous `else'.
5002         (Fmake_charset): Likewise.
5003         (complex_vars_of_mule_charset): Modify the font registry of
5004         `ucs-bmp' not to match `Ethiopic-Unicode'.
5005
5006 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5007
5008         * mule-charset.c (complex_vars_of_mule_charset): Add font
5009         registory of `ucs-bmp'.
5010
5011 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5012
5013         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
5014         coded-charsets in `default-coded-charset-priority-list' when
5015         breaking up a character.
5016
5017         * mule-charset.c (Vcharset_latin_viscii): New variable.
5018         (Qlatin_viscii): New variable.
5019         (make_charset): Don't use `decoding_table'.
5020         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
5021         byte_offset.
5022         (Fset_charset_mapping_table): New implementation.
5023         (syms_of_mule_charset): Add new symbol `latin-viscii'.
5024         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
5025         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
5026         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
5027         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
5028         charset `latin_viscii'.
5029
5030         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
5031         (CHARSET_TYPE_94X94): Change to 1 from 2.
5032         (CHARSET_TYPE_96): Change to 2 from 1.
5033         (CHARSET_TYPE_128): New macro.
5034         (CHARSET_TYPE_128X128): Change to 5 from 4.
5035         (CHARSET_TYPE_256): New macro.
5036         (CHARSET_TYPE_256X256): Change to 7 from 5.
5037         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
5038
5039 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5040
5041         * text-coding.c (char_encode_shift_jis): Refer
5042         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
5043         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
5044
5045         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
5046         (char_byte_table_equal): New function in UTF-2000.
5047         (char_byte_table_hash): New function in UTF-2000.
5048         (char_byte_table_description): New constant in UTF-2000.
5049         (char_byte_table): New type in UTF-2000.
5050         (make_char_byte_table): New function in UTF-2000.
5051         (copy_char_byte_table): New function in UTF-2000.
5052         (make_char_code_table): New macro in UTF-2000.
5053         (get_char_code_table): New function in UTF-2000.
5054         (put_char_code_table): New function in UTF-2000.
5055         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
5056         (charset_description): Add setting in UTF-2000.
5057         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
5058         `CHARSET_TO_BYTE1_TABLE(cs)'.
5059         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
5060         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
5061         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
5062         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
5063         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
5064         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
5065         `CHARSET_TO_BYTE2_TABLE(cs)'.
5066
5067         * char-ucs.h (char_byte_table): New type.
5068         (XCHAR_BYTE_TABLE): New macro.
5069         (XSETCHAR_BYTE_TABLE): New macro.
5070         (CHAR_BYTE_TABLE_P): New macro.
5071         (GC_CHAR_BYTE_TABLE_P): New macro.
5072         (struct Lisp_Char_Byte_Table): New structure.
5073         (get_char_code_table): New interface.
5074         (Emchar_to_byte_table): Deleted.
5075         (get_byte_from_character_table): Deleted.
5076         (struct Lisp_Charset): Add `encoding_table'; delete
5077         `to_byte1_table' and `to_byte2_table'.
5078         (CHARSET_ENCODING_TABLE): New macro.
5079         (CHARSET_TO_BYTE1_TABLE): Deleted.
5080         (CHARSET_TO_BYTE2_TABLE): Deleted.
5081         (XCHARSET_ENCODING_TABLE): New macro.
5082         (XCHARSET_TO_BYTE1_TABLE): Deleted.
5083         (XCHARSET_TO_BYTE2_TABLE): Deleted.
5084
5085 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5086
5087         * mule-charset.c (syms_of_mule_charset): Delete charset alias
5088         `vietnamese-viscii-*'.
5089
5090 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5091
5092         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
5093         (Qvietnamese_viscii_upper): New variable.
5094         (Fdefine_charset_alias): New function.
5095         (syms_of_mule_charset): Add new function `define-charset-alias'.
5096         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
5097         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
5098         `latin-viscii-*'.
5099
5100 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
5101
5102         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
5103         (MAX_CHAR_OBS_94x94): New macro.
5104         (breakup_char_1): Support obsolete XEmacs-UCS private code space
5105         for 94x94 sets.
5106
5107         * mule-charset.c (put_byte_from_character_table): Change unit size
5108         from 128 to 256.
5109         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
5110         not defined.
5111         (Fmake_reverse_direction_charset): Modify dummy argument of
5112         `make_charset' for non-UTF-2000 environment.
5113
5114 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5115
5116         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
5117
5118         * mule-charset.c (destroy_byte_from_character_table): New macro.
5119         (latin_jisx0201_to_ucs): Deleted.
5120         (latin_iso8859_2_to_ucs): Deleted.
5121         (latin_iso8859_3_to_ucs): Deleted.
5122         (latin_iso8859_4_to_ucs): Deleted.
5123         (latin_iso8859_9_to_ucs): Deleted.
5124         (latin_viscii_lower_to_ucs): Deleted.
5125         (latin_viscii_upper_to_ucs): Deleted.
5126         (mark_charset): Mark `cs->decoding_table'.
5127         (Fcharset_mapping_table): Fix DOC-string.
5128         (Fset_charset_mapping_table): New function.
5129         (syms_of_mule_charset): Add nwe function
5130         `set-charset-mapping-table'.
5131         (complex_vars_of_mule_charset): Don't setup and use
5132         `latin_*_to_ucs'.
5133
5134 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5135
5136         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
5137         charset.
5138
5139 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5140
5141         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
5142         (Vcharset_katakana_jisx0208): New variable.
5143         (Qhiragana_jisx0208): New variable.
5144         (Qkatakana_jisx0208): New variable.
5145         (make_charset): Add new argument `byte_offset'.
5146         (charset_get_byte1): Modify for new coded-charset definition; use
5147         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5148         `XCHARSET_BYTE_OFFSET'.
5149         (Fmake_charset): Modify for `make_charset'.
5150         (Fmake_reverse_direction_charset): Likewise.
5151         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
5152         `katakana-jisx0208'.
5153         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
5154         `.'  in font registry of charset `katakana-jisx0201',
5155         `latin-jisx0201', `vietnamese-viscii-lower' and
5156         `vietnamese-viscii-upper'; modify DOC-string of charset
5157         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
5158         registry of charset `japanese-jisx0208' not to use font for JIS
5159         X0208:1990; add new charset `hiragana-jisx0208' and
5160         `katakana-jisx0208'.
5161
5162         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
5163         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
5164         (struct Lisp_Charset): Add `byte_offset'.
5165         (CHARSET_BYTE_OFFSET): New macro.
5166         (XCHARSET_UCS_MIN): New macro.
5167         (XCHARSET_UCS_MAX): New macro.
5168         (XCHARSET_CODE_OFFSET): New macro.
5169         (XCHARSET_BYTE_OFFSET): New macro.
5170         (MIN_CHAR_HIRAGANA): New macro.
5171         (MAX_CHAR_HIRAGANA): New macro.
5172         (MIN_CHAR_KATAKANA): New macro.
5173         (MAX_CHAR_KATAKANA): New macro.
5174         (MAKE_CHAR): Modify for new coded-charset definition; use
5175         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5176         `XCHARSET_BYTE_OFFSET'.
5177
5178 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5179
5180         * mule-charset.c (CHAR96): Deleted.
5181         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
5182         <Lisp_Object>.
5183         (latin_iso8859_2_to_ucs): Likewise.
5184         (latin_iso8859_3_to_ucs): Likewise.
5185         (latin_iso8859_4_to_ucs): Likewise.
5186         (latin_iso8859_9_to_ucs): Likewise.
5187         (latin_viscii_lower_to_ucs): Likewise.
5188         (latin_viscii_upper_to_ucs): Likewise.
5189         (latin_tcvn5712_to_ucs): Commented out.
5190         (make_charset): Change type of argument `decoding_table' from
5191         <Emchar*> to <Lisp_Object> [vector of characters].
5192         (Fmake_charset): Modify for `make_charset'.
5193         (Fmake_reverse_direction_charset): Likewise.
5194         (Fcharset_mapping_table): New function in UTF-2000.
5195         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
5196         UTF-2000.
5197         (complex_vars_of_mule_charset): Modify for type change of
5198         `*_to_ucs'; modify for `make_charset'.
5199
5200         * char-ucs.h (struct Lisp_Charset): Change type of
5201         `decoding_table' from <Emchar*> to <Lisp_Object>.
5202         (MAKE_CHAR): Modify for new specification of `decoding_table'.
5203
5204 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
5205
5206         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
5207         error with non-UTF-2000-Mule.
5208
5209 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
5210
5211         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
5212         in lisp again].
5213         (Vcharset_chinese_cns11643_4): Likewise.
5214         (Vcharset_chinese_cns11643_5): Likewise.
5215         (Vcharset_chinese_cns11643_6): Likewise.
5216         (Vcharset_chinese_cns11643_7): Likewise.
5217         (Qchinese_cns11643_3): Likewise.
5218         (Qchinese_cns11643_4): Likewise.
5219         (Qchinese_cns11643_5): Likewise.
5220         (Qchinese_cns11643_6): Likewise.
5221         (Qchinese_cns11643_7): Likewise.
5222         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
5223         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5224         and `chinese-cns11643-7' to lisp/mule/chinese.el.
5225         (complex_vars_of_mule_charset): Likewise.
5226
5227 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
5228
5229         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
5230         96-set.
5231         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
5232         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
5233
5234 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5235
5236         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
5237         0xFF60.
5238         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
5239         (breakup_char_1): Likewise.
5240
5241         * text-coding.c (char_encode_iso2022): Keep designated charsets if
5242         one of them includes the specified character.
5243
5244 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5245
5246         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
5247
5248 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5249
5250         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
5251
5252 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5253
5254         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
5255         definition for non-UTF-2000 Mule.
5256         (latin_iso8859_3_to_ucs): Likewise.
5257         (latin_iso8859_4_to_ucs): Likewise.
5258         (latin_iso8859_9_to_ucs): Likewise.
5259         (latin_jisx0201_to_ucs): Likewise.
5260         (MIN_CHAR_THAI): Likewise.
5261         (MAX_CHAR_THAI): Likewise.
5262         (MIN_CHAR_GREEK): Likewise.
5263         (MAX_CHAR_GREEK): Likewise.
5264         (MIN_CHAR_HEBREW): Likewise.
5265         (MAX_CHAR_HEBREW): Likewise.
5266         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
5267         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
5268         (MIN_CHAR_CYRILLIC): Likewise.
5269         (MAX_CHAR_CYRILLIC): Likewise.
5270
5271 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5272
5273         * char-ucs.h (breakup_char_1): Use
5274         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
5275         thai-tis620 and katakana-jisx0201 area.
5276
5277 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5278
5279         * char-ucs.h (breakup_char_1): Use
5280         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
5281         area.
5282
5283         * text-coding.c (reset_encoding_stream): Fixed.
5284         (char_encode_ucs4): Delete `& 255'.
5285
5286         * char-ucs.h (breakup_char_1): Use
5287         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
5288
5289 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5290
5291         * file-coding.c (Fmake_coding_system): Don't set up
5292         `codesys->fixed.size'.
5293         (encode_coding_no_conversion): Don't refer
5294         `str->codesys->fixed.size'.
5295
5296 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5297
5298         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
5299         (latin_a_char_to_byte1): Deleted.
5300         (latin_a_char_to_byte2): Deleted.
5301
5302 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5303
5304         * mule-charset.c (make_charset): Add new argument `ucs_min',
5305         `ucs_max' and `code_offset'.
5306         (charset_get_byte1): New implementation [delete specific charset
5307         depended implementations].
5308         (Fmake_charset): Modify for `make_charset'.
5309         (Fmake_reverse_direction_charset): Likewise.
5310         (complex_vars_of_mule_charset): Likewise.
5311
5312         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
5313         `code_offset'.
5314         (CHARSET_UCS_MIN): New macro.
5315         (CHARSET_UCS_MAX): New macro.
5316         (CHARSET_CODE_OFFSET): New macro.
5317         (MAKE_CHAR): Delete charset depended definitions [except
5318         katakana-jisx0201].
5319
5320 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
5321
5322         * char-ucs.h (breakup_char_1): Use
5323         `Vdefault_coded_charset_priority_list' for C0-Controls,
5324         Basic-Latin, C1-Controls and Latin-1-Supplement area.
5325
5326 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5327
5328         * char-ucs.h (charset_get_byte1): New function.
5329         (XCHARSET_GET_BYTE1): Deleted.
5330         (charset_get_byte2): New function.
5331         (XCHARSET_GET_BYTE2): Deleted.
5332         (Vdefault_coded_charset_priority_list): New external variable.
5333         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5334         `Vdefault_preferred_coded_charset_list'.
5335
5336         * mule-charset.c (charset_get_byte1): New function.
5337         (charset_get_byte2): New function.
5338         (Vdefault_coded_charset_priority_list): New variable.
5339         (vars_of_mule_charset): Add new variable
5340         `default-coded-charset-priority-list'.
5341
5342 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5343
5344         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5345         (XCHARSET_GET_BYTE2): New inline function.
5346         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5347         `XCHARSET_GET_BYTE2'.
5348
5349 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5350
5351         * mule-charset.c (make_charset): Initialize
5352         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5353         NULL if table is not defined.
5354
5355 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5356
5357         * text-coding.c (char_encode_shift_jis): Use
5358         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5359         `ucs_to_latin_jisx0201'.
5360
5361         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5362         (ucs_to_latin_iso8859_2): Deleted.
5363         (ucs_to_latin_iso8859_3): Deleted.
5364         (ucs_to_latin_iso8859_4): Deleted.
5365         (ucs_to_latin_iso8859_9): Deleted.
5366         (ucs_to_latin_viscii_lower): Deleted.
5367         (ucs_to_latin_viscii_upper): Deleted.
5368         (ucs_to_latin_tcvn5712): Deleted.
5369         (make_charset): Add new argument `decoding_table'; set up
5370         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5371         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5372         `decoding_table' is defined in UTF-2000.
5373         (Fmake_charset): Modify for `make_charset'.
5374         (Fmake_reverse_direction_charset): Likewise.
5375         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5376         and `GENERATE_96_SET'.
5377
5378         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5379         (ucs_to_latin_jisx0201): Deleted.
5380         (latin_iso8859_2_to_ucs): Deleted.
5381         (ucs_to_latin_iso8859_2): Deleted.
5382         (latin_iso8859_3_to_ucs): Deleted.
5383         (ucs_to_latin_iso8859_3): Deleted.
5384         (latin_iso8859_4_to_ucs): Deleted.
5385         (ucs_to_latin_iso8859_4): Deleted.
5386         (latin_iso8859_9_to_ucs): Deleted.
5387         (ucs_to_latin_iso8859_9): Deleted.
5388         (latin_viscii_lower_to_ucs): Deleted.
5389         (ucs_to_latin_viscii_lower): Deleted.
5390         (latin_viscii_upper_to_ucs): Deleted.
5391         (ucs_to_latin_viscii_upper): Deleted.
5392         (struct Lisp_Charset): Renamed `encoding_table' to
5393         `to_byte1_table'; add `to_byte2_table'.
5394         (CHARSET_DECODING_TABLE): New macro.
5395         (CHARSET_TO_BYTE1_TABLE): New macro.
5396         (CHARSET_TO_BYTE2_TABLE): New macro.
5397         (XCHARSET_DECODING_TABLE): New macro.
5398         (XCHARSET_TO_BYTE1_TABLE): New macro.
5399         (XCHARSET_TO_BYTE2_TABLE): New macro.
5400         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5401         tables.
5402         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5403         don't use `ucs_to_*' tables.
5404
5405 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5406
5407         * text-coding.c (Fmake_coding_system): Don't set up
5408         `codesys->fixed.size'.
5409         (encode_coding_no_conversion): Use `if' instead of `switch'.
5410
5411         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5412
5413 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5414
5415         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5416         (Fmake_charset): Modify for `make_charset'.
5417         (Fmake_reverse_direction_charset): Likewise.
5418         (complex_vars_of_mule_charset): Likewise.
5419
5420 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5421
5422         * text-coding.c (char_encode_shift_jis): Use table
5423         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5424
5425 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5426
5427         * text-coding.c (text_encode_generic): Use `if' instead of
5428         `switch'.
5429         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5430         decode JIS-Latin.
5431
5432 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5433
5434         * text-coding.c (encode_coding_sjis): Deleted.
5435         (char_encode_shift_jis): New function.
5436         (char_finish_shift_jis): New function.
5437         (reset_encoding_stream): Set up `encode_char' and `finish' for
5438         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5439         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5440         (char_encode_utf8): Treat `eol_type'.
5441
5442 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5443
5444         * file-coding.c (decode_coding_iso2022): Use
5445         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5446
5447 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5448
5449         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5450         to 0.7 (Hirano).
5451
5452 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5453
5454         * char-lb.h (CHAR_COLUMNS): New macro.
5455
5456 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5457
5458         * text-coding.c (char_encode_ucs4): New function.
5459         (char_finish_ucs4): New function.
5460         (encode_coding_ucs4): Deleted.
5461         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5462         (text_encode_generic): Delete local variable `charset' and `half'.
5463         (ucs_to_mule_table): Deleted.
5464         (mule_to_ucs_table): Deleted.
5465         (Fset_ucs_char): Deleted.
5466         (ucs_to_char): Deleted.
5467         (Fucs_char): Deleted.
5468         (Fset_char_ucs): Deleted.
5469         (Fchar_ucs): Deleted.
5470         (decode_ucs4): Deleted.
5471         (mule_char_to_ucs4): Deleted.
5472         (encode_ucs4): Deleted.
5473         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5474         (decode_coding_utf8): Likewise.
5475         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5476         (char_encode_iso2022): Fixed.
5477         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5478         `Fset_char_ucs' and `Fchar_ucs'.
5479         (complex_vars_of_file_coding): Don't initialize
5480         `ucs_to_mule_table'.
5481
5482         * objects-tty.c (tty_initialize_font_instance): Don't use
5483         `XCHARSET_COLUMNS'.
5484
5485         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5486         UTF-2000.
5487
5488         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5489         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5490
5491         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5492         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5493         (emchar_string_displayed_columns): Likewise.
5494
5495         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5496         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5497         (string_column_at_point): Likewise.
5498         (Fmove_to_column): Likewise.
5499
5500         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5501         `encoding_table' and `decoding_table'.
5502         (CHARSET_REP_BYTES): Deleted.
5503         (XCHARSET_REP_BYTES): Deleted.
5504         (XCHARSET_COLUMNS): Deleted.
5505         (CHAR_COLUMNS): New macro.
5506         (lookup_composite_char): Deleted unconditionally.
5507         (composite_char_string): Likewise.
5508
5509 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5510
5511         * char-ucs.h (Emchar_to_byte_table): New type.
5512         (get_byte_from_character_table): New function interface.
5513         (Vcharset_latin_jisx0201): New variable.
5514         (latin_jisx0201_to_ucs): New variable.
5515         (ucs_to_latin_jisx0201): New variable.
5516         (Vcharset_latin_iso8859_2): New variable.
5517         (latin_iso8859_2_to_ucs): New variable.
5518         (ucs_to_latin_iso8859_2): New variable.
5519         (Vcharset_latin_iso8859_3): New variable.
5520         (latin_iso8859_3_to_ucs): New variable.
5521         (ucs_to_latin_iso8859_3): New variable.
5522         (Vcharset_latin_iso8859_4): New variable.
5523         (latin_iso8859_4_to_ucs): New variable.
5524         (ucs_to_latin_iso8859_4): New variable.
5525         (Vcharset_latin_iso8859_9): New variable.
5526         (latin_iso8859_9_to_ucs): New variable.
5527         (ucs_to_latin_iso8859_9): New variable.
5528         (Vcharset_latin_viscii_lower): New variable.
5529         (latin_viscii_lower_to_ucs): New variable.
5530         (ucs_to_latin_viscii_lower): New variable.
5531         (Vcharset_latin_viscii_upper): New variable.
5532         (latin_viscii_upper_to_ucs): New variable.
5533         (ucs_to_latin_viscii_upper): New variable.
5534         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5535         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5536         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5537         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5538         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5539         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5540         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5541         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5542         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5543         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5544
5545         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5546         (Vcharset_latin_viscii_upper): New variable.
5547         (make_byte_from_character_table): New function.
5548         (put_byte_from_character_table): New function.
5549         (get_byte_from_character_table): New function.
5550         (CHAR96): New macro.
5551         (ucs_to_latin_jisx0201): New variable.
5552         (latin_jisx0201_to_ucs): New variable.
5553         (ucs_to_latin_iso8859_2): New variable.
5554         (latin_iso8859_2_to_ucs): New variable.
5555         (ucs_to_latin_iso8859_3): New variable.
5556         (latin_iso8859_3_to_ucs): New variable.
5557         (ucs_to_latin_iso8859_4): New variable.
5558         (latin_iso8859_4_to_ucs): New variable.
5559         (ucs_to_latin_iso8859_9): New variable.
5560         (latin_iso8859_9_to_ucs): New variable.
5561         (ucs_to_latin_viscii_lower): New variable.
5562         (latin_viscii_lower_to_ucs): New variable.
5563         (ucs_to_latin_viscii_upper): New variable.
5564         (latin_viscii_upper_to_ucs): New variable.
5565         (ucs_to_latin_tcvn5712): New variable.
5566         (latin_tcvn5712_to_ucs): New variable.
5567         (Qlatin_viscii_lower): New variable.
5568         (Qlatin_viscii_upper): New variable.
5569         (syms_of_mule_charset): Set up new symbol
5570         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5571         (complex_vars_of_mule_charset): Set up new charset
5572         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5573         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5574         `ucs_to_<CHARSET>' tables.
5575
5576 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5577
5578         * text-coding.c: New file.
5579
5580 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5581
5582         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5583
5584         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5585         (MAKE_CHAR): Modify for `ucs-bmp'.
5586         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5587         non-MULE characters of BMP.
5588
5589 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5590
5591         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5592         to 0.6.
5593
5594 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5595
5596         * lstream.h:
5597         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5598         - Include character.h for `CHAR_ASCII_P'.
5599
5600         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5601
5602         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5603         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5604
5605         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5606         (BYTE_C0_P): Likewise.
5607         (BYTE_C1_P): Likewise.
5608         (Lstream_get_emchar_1): Likewise.
5609         (Lstream_fput_emchar): Likewise.
5610         (Lstream_funget_emchar): Likewise.
5611         (copy_internal_to_external): Likewise.
5612         (copy_external_to_internal): Likewise.
5613
5614         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5615         (BYTE_C0_P): Likewise.
5616         (BYTE_C1_P): Likewise.
5617         (Lstream_get_emchar_1): Likewise.
5618         (Lstream_fput_emchar): Likewise.
5619         (Lstream_funget_emchar): Likewise.
5620         (copy_internal_to_external): Likewise.
5621         (copy_external_to_internal): Likewise.
5622
5623         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5624         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5625
5626         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5627         (BYTE_ASCII_P): Moved to mb-1byte.h.
5628
5629 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5630
5631         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5632
5633         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5634         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5635         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5636         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5637         (VALIDATE_CHARPTR_FORWARD): Likewise.
5638         (simple_charptr_emchar): Moved to mb-multibyte.h.
5639         (simple_set_charptr_emchar): Likewise.
5640         (simple_charptr_copy_char): Likewise.
5641         (non_ascii_charptr_emchar): Likewise.
5642         (non_ascii_set_charptr_emchar): Likewise.
5643         (non_ascii_charptr_copy_char): Likewise.
5644         (charptr_emchar): Moved to mb-*byte.h.
5645         (set_charptr_emchar): Likewise.
5646         (charptr_copy_char): Likewise.
5647
5648         * mb-1byte.h, mb-multibyte.h: New files.
5649
5650 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5651
5652         * mb-utf-8.h (MULTIBYTE): New macro.
5653         (MAX_EMCHAR_LEN): Moved from buffer.h.
5654         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5655
5656         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5657
5658         * mb-lb.h, multibyte.h: New files.
5659
5660         * char-1byte.h (Charset_ID): Moved from buffer.h.
5661         (MIN_LEADING_BYTE): Likewise.
5662         (LEADING_BYTE_ASCII): Likewise.
5663         (NUM_LEADING_BYTES): Likewise.
5664         (CHARSETP): Likewise.
5665         (CHARSET_BY_LEADING_BYTE): Likewise.
5666         (XCHARSET_LEADING_BYTE): Likewise.
5667         (XCHARSET_GRAPHIC): Likewise.
5668         (XCHARSET_COLUMNS): Likewise.
5669         (XCHARSET_DIMENSION): Likewise.
5670         (CHAR_CHARSET): Likewise.
5671         (CHAR_LEADING_BYTE): Likewise.
5672         (BREAKUP_CHAR): Likewise.
5673         (Vcharset_ascii): Likewise.
5674
5675         * buffer.h: Include multibyte.h unconditionally.
5676         (VALID_CHARPTR_P): Moved to multibyte.h.
5677         (ASSERT_VALID_CHARPTR): Likewise.
5678         (REAL_INC_CHARPTR): Likewise.
5679         (REAL_INC_CHARBYTIND): Likewise.
5680         (REAL_DEC_CHARPTR): Likewise.
5681         (INC_CHARPTR): Likewise.
5682         (INC_CHARBYTIND): Likewise.
5683         (DEC_CHARPTR): Likewise.
5684         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5685         (VALIDATE_CHARPTR_FORWARD): Likewise.
5686         (charptr_n_addr): Likewise.
5687         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5688         (simple_charptr_emchar): Moved to multibyte.h.
5689         (simple_set_charptr_emchar): Likewise.
5690         (simple_charptr_copy_char): Likewise.
5691         (non_ascii_charptr_emchar): Likewise.
5692         (non_ascii_set_charptr_emchar): Likewise.
5693         (non_ascii_charptr_copy_char): Likewise.
5694         (charptr_emchar): Likewise.
5695         (set_charptr_emchar): Likewise.
5696         (charptr_copy_char): Likewise.
5697         (charptr_emchar_n): Likewise.
5698         (Charset_ID): Moved to char-1byte.h.
5699         (Vcharset_ascii): Likewise.
5700         (CHAR_CHARSET): Likewise.
5701         (CHAR_LEADING_BYTE): Likewise.
5702         (LEADING_BYTE_ASCII): Likewise.
5703         (NUM_LEADING_BYTES): Likewise.
5704         (MIN_LEADING_BYTE): Likewise.
5705         (CHARSETP): Likewise.
5706         (CHARSET_BY_LEADING_BYTE): Likewise.
5707         (XCHARSET_LEADING_BYTE): Likewise.
5708         (XCHARSET_GRAPHIC): Likewise.
5709         (XCHARSET_COLUMNS): Likewise.
5710         (XCHARSET_DIMENSION): Likewise.
5711         (BREAKUP_CHAR): Likewise.
5712
5713 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5714
5715         * character.h: Add document about interface for characters.
5716
5717         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5718         (MAKE_CHAR): Delete comment about
5719         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5720         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5721         (BREAKUP_CHAR): Modify name of arguments.
5722         (CHAR_CHARSET): Modify name of argument.
5723
5724         * buffer.h: Delete document about Emchar accessors.
5725
5726 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5727
5728         * character.h (CHAR_INTP): Moved from buffer.h
5729         (CHAR_OR_CHAR_INTP): Likewise.
5730         (XCHAR_OR_CHAR_INT): Likewise.
5731         (CHECK_CHAR_COERCE_INT): Likewise.
5732
5733         * buffer.h (CHAR_INTP): Moved to character.h
5734         (CHAR_OR_CHAR_INTP): Likewise.
5735         (XCHAR_OR_CHAR_INT): Likewise.
5736         (CHECK_CHAR_COERCE_INT): Likewise.
5737
5738 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5739
5740         * character.h:
5741         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5742         - Include char-1byte.h, char-lb.h or char-ucs.h.
5743
5744         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5745
5746         * buffer.h: Include character unconditionally.
5747         (valid_char_p): Moved to char-*.h.
5748         (non_ascii_valid_char_p): Moved to char-lb.h.
5749
5750         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5751
5752 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5753
5754         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5755         in UTF-2000 because it is not ported yet and not to use
5756         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5757         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5758         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5759
5760         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5761         (CHAR_ASCII_P): Moved from character.h.
5762
5763         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5764         (CHAR_ASCII_P): Likewise.
5765         (CHAR_FIELD1_MASK): Deleted.
5766         (CHAR_FIELD2_MASK): Deleted.
5767         (CHAR_FIELD3_MASK): Deleted.
5768         (MAX_CHAR_BASIC_LATIN): New macro.
5769         (CHAR_FIELD1): Deleted.
5770         (CHAR_FIELD2_INTERNAL): Deleted.
5771         (CHAR_FIELD3_INTERNAL): Deleted.
5772         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5773         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5774         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5775         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5776         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5777         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5778         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5779         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5780         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5781         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5782         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5783         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5784         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5785         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5786         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5787         (MIN_CHAR_COMPOSITION): Deleted.
5788         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5789         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5790
5791 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5792
5793         * buffer.h: Include mb-utf-8.h in UTF-2000.
5794
5795         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5796
5797         * mb-utf-8.h: New file.
5798
5799 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5800
5801         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5802         instead of `int'.
5803
5804         * mule-charset.h, buffer.h (Charset_ID): New type.
5805
5806 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5807
5808         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5809         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5810         instead of `MULE_CHAR_PRIVATE_OFFSET',
5811         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5812         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5813         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5814
5815         * character.h (Vcharset_japanese_jisx0212): New variable
5816         definition.
5817
5818 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5819
5820         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5821         (charset_by_attributes): Delete array about direction.
5822         (latin_a_char_to_charset): New variable in UTF-2000.
5823         (latin_a_char_to_byte1): New variable in UTF-2000.
5824         (latin_a_char_to_byte2): New variable in UTF-2000.
5825         (Qucs_bmp): New variable.
5826         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5827         `Bufbyte'.
5828         (next_allocated_2_byte_leading_byte): Likewise.
5829         (non_ascii_set_charptr_emchar): Likewise.
5830         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5831         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5832         `charset_by_attributes'.
5833         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5834         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5835         and `CHARSET_BY_LEADING_BYTE'.
5836         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5837         `utf-2000-version' to `vars_of_mule_charset'.
5838         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5839         define `leading-code-private-11' in UTF-2000; move setting of
5840         `utf-2000-version' from `syms_of_mule_charset'.
5841         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5842         UTF-2000.
5843
5844         * character.h (Charset_ID): New type.
5845         (LEADING_BYTE_UCS_BMP): New macro.
5846         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5847         (CHARSET_ID_OFFSET_94): New macro.
5848         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5849         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5850         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5851         final-byte.
5852         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5853         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5854         (CHARSET_ID_OFFSET_96): New macro.
5855         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5856         CHARSET_ID_OFFSET_96 and final-byte.
5857         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5858         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5859         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5860         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5861         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5862         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5863         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5864         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5865         (LEADING_BYTE_THAI_TIS620): Likewise.
5866         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5867         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5868         (CHARSET_ID_OFFSET_94x94): New macro.
5869         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5870         CHARSET_ID_OFFSET_94x94 and final-byte.
5871         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5872         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5873         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5874         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5875         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5876         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5877         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5878         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5879         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5880         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5881         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5882         (CHARSET_TYPE_128X128): New macro.
5883         (CHARSET_TYPE_256X256): New macro.
5884         (XCHARSET_PRIVATE_P): Delete unconditionally.
5885         (charset_by_attributes): Delete array about direction.
5886         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5887         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5888         (MIN_CHAR_94): New macro.
5889         (MAX_CHAR_94): New macro.
5890         (MIN_CHAR_96): New macro.
5891         (MAX_CHAR_96): New macro.
5892         (MIN_CHAR_94x94): New macro.
5893         (MAX_CHAR_94x94): New macro.
5894         (MIN_CHAR_96x96): New macro.
5895         (MAX_CHAR_96x96): New macro.
5896         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5897         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5898         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5899         - 32)'.
5900         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5901         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5902         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5903         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5904         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5905         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5906         `XCHARSET_LEADING_BYTE' to make code-point.
5907         (latin_a_char_to_charset): New variable.
5908         (latin_a_char_to_byte1): New variable.
5909         (latin_a_char_to_byte2): New variable.
5910         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5911         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5912         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5913
5914         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5915         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5916         (find_charsets_in_emchar_string): Likewise.
5917         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5918
5919         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5920         `int'.
5921         (decode_coding_iso2022): Likewise.
5922
5923         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5924         of `unsigned char'.
5925
5926         * redisplay.c (redisplay_text_width_emchar_string): Use
5927         `Charset_ID' instead of `unsigned char'.
5928         (redisplay_frame_text_width_string): Likewise.
5929
5930         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5931         `unsigned char'.
5932
5933         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5934         instead of `unsigned char'.
5935         (face_cachel_charset_font_metric_info): Likewise.
5936
5937         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5938         (get_non_ascii_char_table_value): Likewise.
5939         (get_char_table): Likewise.
5940         (put_char_table): Likewise.
5941         (map_over_other_charset): Likewise.
5942         (map_char_table): Likewise.
5943
5944         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5945         instead of `unsigned char'.
5946
5947 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5948
5949         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5950         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5951
5952         * mule-charset.c (leading_code_private_11): Don't define in
5953         UTF-2000.
5954
5955         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5956         in UTF-2000 because it is not ported yet and not to use
5957         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5958
5959 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5960
5961         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5962
5963 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5964
5965         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5966         in UTF-2000.
5967
5968         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5969         of unsigned char to store leading-byte.
5970
5971         * chartab.c (get_non_ascii_char_table_value): Don't use
5972         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5973
5974         * file-coding.c (encode_coding_big5): Delete bogus implementation
5975         in UTF2000.
5976
5977         * character.h (LEADING_BYTE_*): Delete definition for
5978         non-UTF-2000.
5979         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5980         (LEADING_BYTE_PREFIX_P): Deleted.
5981         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5982         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5983         (BUFBYTE_LEADING_BYTE_P): Deleted.
5984         (CHARSET_PRIVATE_P): Deleted unconditionally.
5985         (rep_bytes_by_first_byte): Deleted unconditionally.
5986         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5987         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5988         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5989         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5990         (CHAR_FIELD2): Deleted.
5991         (CHAR_FIELD3): Deleted.
5992         (MAKE_CHAR): Delete definition for non-UTF-2000.
5993         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5994         (breakup_char_1): New implementation.
5995         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5996         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5997
5998 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5999
6000         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
6001         condition.
6002
6003 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
6004
6005         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
6006         (CHARSET_PRIVATE_P): Likewise.
6007         (XCHARSET_PRIVATE_P): Likewise.
6008         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
6009
6010         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
6011         UTF2000.
6012         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
6013
6014 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
6015
6016         * character.h (LEADING_BYTE_*): Changed in UTF2000.
6017         (NUM_LEADING_BYTES): Changed from 128 to 256.
6018         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
6019         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
6020         UTF2000.
6021         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
6022
6023         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
6024         UTF2000.
6025         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
6026         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
6027         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
6028         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
6029         (Qchinese_cns11643_3): New variable in UTF2000.
6030         (Qchinese_cns11643_4): New variable in UTF2000.
6031         (Qchinese_cns11643_5): New variable in UTF2000.
6032         (Qchinese_cns11643_6): New variable in UTF2000.
6033         (Qchinese_cns11643_7): New variable in UTF2000.
6034         (syms_of_mule_charset): Define `chinese-cns11643-3',
6035         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
6036         and `chinese-cns11643-7' in UTF2000.
6037         (vars_of_mule_charset): Initialize
6038         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
6039         + 1 in UTF2000.
6040         (complex_vars_of_mule_charset): Setup charset
6041         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
6042         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
6043
6044 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
6045
6046         * mule-charset.c: Move setting for `leading-code-private-11' from
6047         `syms_of_mule_charset' to `vars_of_mule_charset'.
6048
6049 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
6050
6051         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
6052         and `NUM_LEADING_BYTES' in assert.
6053
6054 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
6055
6056         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
6057         instead of 128.
6058         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
6059         `NUM_LEADING_BYTES' instead of 128.
6060
6061 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
6062
6063         * mule-charset.h (charset_by_leading_byte): Use
6064         `NUM_LEADING_BYTES' instead of 128.
6065         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
6066
6067         * mule-charset.c (charset_by_leading_byte): Use
6068         `NUM_LEADING_BYTES' instead of 128.
6069         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
6070
6071         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
6072         128.
6073
6074 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
6075
6076         * mule-charset.c (syms_of_mule_charset): Update to
6077         0.4 (Shin-Imamiya).
6078
6079 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
6080
6081         * file-coding.c (encode_coding_sjis): New implementation for
6082         UTF2000.  (decode_coding_sjis): Ditto.
6083
6084 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
6085
6086         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
6087         Don't define in UTF2000.
6088
6089         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
6090         defined.
6091
6092         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
6093         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
6094         MULE.
6095
6096 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
6097
6098         * config.h.in (CHAR_IS_UCS4): New macro.
6099
6100         * mule-charset.c (rep_bytes_by_first_byte): Modify for
6101         conventional MULE representation.
6102         (syms_of_mule_charset): Update to 0.3 (Imamiya).
6103
6104         * mule-charset.h: Reverted to original.
6105
6106         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
6107         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
6108         "mule-charset.h" if CHAR_IS_UCS4 is defined.
6109
6110         * character.h: New file.
6111
6112         * file-coding.c (Fmake_coding_system): Set 1 to
6113         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
6114         defined.
6115         (encode_coding_no_conversion): New implementation for UTF2000.
6116
6117         * file-coding.h (struct Lisp_Coding_System): Add new member
6118         `fixed.size'.
6119
6120 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
6121
6122         * file-coding.c (decode_coding_iso2022): Code-point arguments of
6123         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
6124         (encode_coding_iso2022): New implementation for UTF2000.
6125
6126 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6127
6128         * mule-canna.c (c2mu): New implementation for UTF2000.
6129         (m2c): Likewise.
6130
6131 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6132
6133         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
6134
6135 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6136
6137         * file-coding.c (reset_encoding_stream): Set 0 to
6138         `str->iso2022.current_char_boundary' in UTF2000.
6139         (encode_utf8): Don't define in UTF2000.
6140         (encode_coding_utf8): New implementation for UTF-8 representation
6141         of UTF2000.
6142         (complex_vars_of_file_coding): Define coding-system `utf-8'.
6143
6144 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6145
6146         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
6147
6148         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
6149         UTF2000.
6150         (REP_BYTES_BY_FIRST_BYTE): Likewise.
6151
6152         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
6153
6154         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
6155         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
6156         as UTF-8 in UTF2000.
6157         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
6158         (non_ascii_valid_char_p): Don't define in UTF2000.
6159         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
6160         (Lstream_get_emchar_1): Likewise.
6161         (utf-2000-version): New variable in UTF2000.
6162
6163         * lread.c (read_escape): Add new reader `u'.
6164
6165         * insdel.c (three_to_one_table): Don't define in UTF2000.
6166         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
6167         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6168         UTF2000.
6169         (bytind_to_bufpos_func): Likewise.
6170         (buffer_mule_signal_inserted_region): Likewise.
6171         (vars_of_insdel): Don't initialize `three_to_one_table'.
6172         (init_buffer_text): Use `buf->text->mule_size' instead of
6173         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6174         UTF2000.
6175
6176         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
6177         UTF-8 representation in UTF2000.
6178         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
6179         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
6180         (decode_coding_iso2022): Don't define local variable `lb' in
6181         UTF2000; don't use LEADING_BYTE in UTF2000; use
6182         `DECODE_ADD_UCS_CHAR' in UTF2000.
6183         (convert_to_external_format): Decode as UTF-8 in UTF2000.
6184
6185         * config.h.in (UTF2000): New macro.
6186
6187         * buffer.h (struct buffer_text): Add new member `mule_size' and
6188         don't add `mule_shifter' and `mule_three_p' in UTF2000.
6189         (valid_char_p): Return always 1 in UTF2000.
6190         (MAX_EMCHAR_LEN): 6 in UTF2000.
6191         (three_to_one_table): Don't define in UTF2000.
6192         (real_bufpos_to_bytind): Modify for UTF-8 representation in
6193         UTF2000.
6194         (real_bytind_to_bufpos): Likewise.
6195
6196         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
6197
6198 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
6199
6200         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
6201         representation change.
6202         (Vutf_2000_version): New variable.
6203         (leading_code_private_11): New variable.
6204         (syms_of_mule_charset): Add new variables `utf-2000-version' and
6205         `leading-code-private-11'.
6206
6207         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
6208         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
6209         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
6210         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
6211         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
6212         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
6213         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
6214         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
6215         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
6216         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
6217         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
6218         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
6219         (MIN_CHAR_GREEK): New macro.
6220         (MAX_CHAR_GREEK): New macro.
6221         (MIN_CHAR_CYRILLIC): New macro.
6222         (MAX_CHAR_CYRILLIC): New macro.
6223         (MIN_CHAR_HEBREW): New macro.
6224         (MAX_CHAR_HEBREW): New macro.
6225         (MIN_CHAR_THAI): New macro.
6226         (MAX_CHAR_THAI): New macro.
6227         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
6228         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
6229         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
6230         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
6231         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
6232         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
6233         (CHAR_FIELD2): New inline function.
6234         (CHAR_FIELD3): New inline function.
6235         (MULE_CHAR_PRIVATE_OFFSET): New macro.
6236         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
6237         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
6238         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
6239         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
6240         (MIN_CHAR_COMPOSITION): Likewise.
6241         (CHAR_LEADING_BYTE): Modified for character representation change.
6242         (MAKE_CHAR): Likewise.
6243
6244         * lisp.h (Vcharset_latin_iso8859_1): New variable.
6245         (Vcharset_greek_iso8859_7): Likewise.
6246         (Vcharset_cyrillic_iso8859_5): Likewise.
6247         (Vcharset_hebrew_iso8859_8): Likewise.
6248         (Vcharset_thai_tis620): Likewise.
6249         (Vcharset_katakana_jisx0201): Likewise.
6250
6251 2008-12-28  Vin Shelton  <acs@xemacs.org>
6252
6253         * XEmacs 21.4.22 is released
6254
6255 2008-12-27  Vin Shelton  <acs@xemacs.org>
6256
6257         * syswindows.h: Don't define wide character interfaces for Cygwin
6258         1.7 and up.
6259
6260 2008-03-05  Dominique Quatravaux  <domq@cpan.org>
6261
6262         * glyphs-gtk.c: Fixed compilation under gcc 4.x.
6263
6264 2008-11-01  Stephen J. Turnbull  <stephen@xemacs.org>
6265
6266         * regex.c (re_search_2): Fix at_dot by changing charpos to bytepos.
6267         From Julian Bradfield <18654.1143.304851.782755@krk.inf.ed.ac.uk>.
6268
6269 2008-12-25  Vin Shelton  <acs@xemacs.org>
6270
6271         * mule-ccl.c (ccl_driver): Fix off-by-one error.
6272         By Julian Bradfield in
6273         <18691.16568.526264.972026@krk.inf.ed.ac.uk>.
6274
6275         * mule-ccl.c (ccl_driver): 
6276
6277 2007-10-07  Vin Shelton  <acs@xemacs.org>
6278
6279         * XEmacs 21.4.21 is released
6280
6281 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
6282
6283         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
6284
6285 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
6286
6287         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
6288         (png_instantiate): Initialize setjmp_buffer early, and avoid
6289         recursive entry to error handler.
6290
6291 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
6292
6293         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
6294         a typo fix.
6295
6296 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
6297
6298         * event-Xt.c (x_reset_modifier_mapping):
6299         * event-gtk.c (gtk_reset_modifier_mapping):
6300         Zero out the device's modifier map once we've freed it, to prevent
6301         a double free on a re-entrant call. 
6302
6303 2007-05-17  Vin Shelton  <acs@xemacs.org>
6304
6305         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
6306         64-bit linux.  Patch from Hans de Graaff.
6307
6308 2007-05-02  Vin Shelton  <acs@xemacs.org>
6309
6310         * dumper.c (pdump): Don't close pdump_fd (already closed by
6311         fclose() call.  Patch from Steve Higham.
6312         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
6313         already closed.  Patch inspired by Steve Higham.
6314
6315 2007-05-01  Vin Shelton  <acs@xemacs.org>
6316
6317         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
6318         (mswindows_fstat): Ditto.
6319         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
6320
6321 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
6322
6323         * postgresql.c: Update Steve Baur's email address by his request.
6324         * postgresql.h: Ditto.
6325
6326 2007-01-04  Vin Shelton  <acs@xemacs.org>
6327
6328         * fileio.c (check_writable): Check old-style readonly bit only for
6329         non-directories.
6330
6331 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
6332
6333         * src/fileio.c (check_writable): 
6334         Cope with the fact that the read-only attribute trumps Windows NTFS
6335         ACLS.
6336
6337
6338 2006-12-09  Vin Shelton  <acs@xemacs.org>
6339
6340         * XEmacs 21.4.20 is released
6341
6342 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
6343
6344         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
6345         relocated the definitions to be used sooner in file.
6346         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6347         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6348         overflow.
6349
6350 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
6351
6352         * sound.c (init_native_sound):
6353         Only X11 and GTK devices can possibly not be on the console of the
6354         associated machine. Fixes a crash when init_native_sound is called
6355         on a msprinter device. 
6356
6357 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
6358
6359         * buffer.c (buffer-file-name): Document invariant.
6360         (buffer-file-truename): Sync wording to buffer-file-name.
6361         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6362         and discussion.
6363
6364 2006-11-19  Benson Margulies  <benson@dchbk.us>
6365
6366         * fileio.c: Add code to use full Win32 API to check for write
6367         access.  Win32 has the general design policy that you aren't
6368         supposed to ask this question, since security checks change
6369         depending on asynchronous processes.  Nonetheless, there is a way,
6370         by acting as if we are a server doing interpretive access
6371         control.
6372
6373 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6374
6375         * bytecode.c: Use xnew_array instead of alloca.
6376
6377 2006-07-04  Vin Shelton  <acs@xemacs.org>
6378
6379         * redisplay-msw.c: Fix tiny, but crucial typo.
6380
6381 2006-06-22  Jerry James  <james@xemacs.org>
6382
6383         * EmacsShell-sub.c (ChangeManaged):
6384         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6385         NULL.
6386         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6387         checking if it is NULL.  Also fix a memory leak.
6388         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6389         dereference it, not the other way around.
6390         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6391         overflow check.
6392         * dumper.c (pdump_register_struct): Ditto.
6393         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6394         to (short) warnpath overflow warnpath.
6395         * extents.c (detach_all_extents): Call extent_list_delete_all with
6396         a non-NULL parameter only.
6397         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6398         NULL width and height.
6399         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6400         xic before checking if they are NULL.
6401         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6402         allocated array.
6403         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6404         * nas.c (Err): Fix a memory leak.
6405         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6406         Don't create the buffer if there is nothing to do.
6407         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6408         * redisplay-output.c (redisplay_output_layout): Ditto.
6409         * redisplay-tty.c (tty_output_display_block): Ditto.
6410         * redisplay-x.c (x_output_display_block): Ditto.
6411         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6412         dereference instance->scrollbar_data if it is NULL.
6413         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6414         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6415         for sb->scrollbar_data.
6416         * sound.c (init_native_sound): Avoid a buffer overflow by
6417         allocating a buffer with the appropriate size.
6418
6419 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6420
6421         * EmacsShell-sub.c (RootGeometryManager):
6422         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6423         Based on a suggestion by Francois L'Archeveque.
6424
6425 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6426
6427         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6428         current values found in GNU Emacs.
6429
6430 2006-03-17  Vin Shelton  <acs@xemacs.org>
6431
6432         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6433         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6434
6435         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6436         'hex_initialized' because it conflicts with 'initialized' in
6437         lisp.h.
6438
6439 2006-01-28  Vin Shelton  <acs@xemacs.org>
6440
6441         * XEmacs 21.4.19 is released
6442
6443 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6444
6445         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6446
6447 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6448
6449         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6450         5000 to INT_MAX.
6451
6452 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6453
6454         * database.c: Suppress compiler warning under Cygwin.
6455         * database.c: Removed __FreeBSD__ check, should be handled by
6456         HAVE_U_xxx_T defines.
6457
6458 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6459
6460         * console.c (stuff_buffered_input): Compile body only if
6461         HAVE_TTY.
6462
6463 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6464
6465         * callproc.c: #include sysdir.h, so that any appropriate Mule
6466         magic happens with the chdir() call when calling a subprocess. 
6467
6468 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6469
6470         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6471         * mule-ccl.c: Check that a character set exists before using it
6472         to create a character. 
6473
6474 2005-12-06  Vin Shelton  <acs@xemacs.org>
6475
6476         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6477         to INT_MAX.
6478
6479 2005-12-03  Vin Shelton <acs@xemacs.org>
6480
6481         * XEmacs 21.4.18 is released
6482
6483 2005-11-27  Kean Johnston <kean@armory.com>
6484
6485         * redisplay-tty.c (set_tty_modes):
6486         (reset_tty_modes): disable auto-margins if the terminal supports
6487         them.
6488         (init_tty_for_redisplay): fix cursor shape.
6489
6490 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6491
6492         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6493         for control-1 characters properly, both when reading multibyte
6494         characters and writing them. 
6495
6496 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6497
6498         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6499         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6500         were seeing with incremental selection transfer failing. 
6501
6502 2005-11-26  Vin Shelton  <acs@xemacs.org>
6503
6504         * callproc.c (Fold_call_process_internal): Create the buffer if it
6505         does not already exist.  The original patch came from Ben Wing in
6506         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6507
6508 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6509
6510         * callproc.c: Process-related docstring improvements spurred by
6511         Norbert Koch.
6512
6513 2005-11-25  Vin Shelton  <acs@xemacs.org>
6514
6515         * depend: Regenerated.
6516
6517 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6518
6519         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6520         says it clashes with a global with the same name.
6521
6522 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6523
6524         * sysdll.c (dll_open): Under MacOS X return NULL under the
6525         filename is NULL.  Fixes problems finding local symbols under 10.4
6526         (Tiger)
6527
6528 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6529         
6530         * config.h.in: New HAVE_U_INT*_T defines.
6531         
6532         * database.c: Only use u_int*_t typedefs if not already
6533         defined.
6534
6535 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6536
6537         * src/process-unix.c (unix_open_network_stream): moved
6538           'portbuf' buffer out of an inner block as it is used in the
6539           entire function. With gcc4, the stack may get corrupted
6540           after leaving this block. This patches adjusts the size of
6541           the used buffer also; static '128' bytes are far too much
6542           currently and might not suffice for future architectures
6543           (e.g. for 512 bit ones ;)). Instead of, use only the really
6544           required space (max octets * ln(256)/ln(10) chars + space
6545           for '\0' and the sign)
6546
6547 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6548
6549         * callproc.c: Include sysdir.h, so any necessary Mule processing
6550         is done on the current directory name before starting a new
6551         process.
6552
6553 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6554
6555         * chartab.c (Fchar_table_p):
6556         (Fget_range_char_table):
6557         (Fput_char_table):
6558         (Fmap_char_table):
6559         Describe range representation and fix typo.
6560
6561 2005-02-12  Vin Shelton  <acs@xemacs.org>
6562
6563         * emacs.c (shut_down_emacs): Advise users to send email to the
6564         xemacs-beta list instead of crashes@xemacs.org.
6565
6566 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6567
6568         * process-unix.c (unix_send_process): Flush the last chunk, even
6569         when the pipe is blocked.
6570
6571 2005-02-06  Vin Shelton <acs@xemacs.org>
6572
6573         * XEmacs 21.4.17 is released
6574
6575 2005-01-31  Ben Wing  <ben@xemacs.org>
6576
6577         * emacs.c:
6578         Define assert_failed() always.
6579         * lisp.h:
6580         Always define ABORT().
6581
6582 2005-01-25  Ben Wing  <ben@xemacs.org>
6583
6584         * Makefile.in.in:
6585         * Makefile.in.in (%.o):
6586         Don't compile executable as Windows (-mwindows) under Cygwin.
6587         Semi-recent changes to Cygwin's executable-startup handling make
6588         it impossible to access the TTY this way.
6589
6590         Don't use special linker file under Cygwin (cygwin.sc) except
6591         when non-PDUMP (even in this case it is highly questionable); you
6592         get errors like
6593
6594       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6595    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6596
6597 2005-01-29  Ben Wing  <ben@xemacs.org>
6598
6599         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6600
6601         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6602
6603 2005-01-29  Ben Wing  <ben@xemacs.org>
6604
6605         * bytecode.c (optimize_compiled_function):
6606         * print.c (FROB):
6607         * print.c (long_to_string):
6608         Add casts to avoid warning.
6609         
6610         * glyphs-eimage.c:
6611         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6612         #### The better solution is to move the TIFF and JPEG code to
6613         different files.
6614         
6615         * glyphs-msw.c (mswindows_xbm_instantiate):
6616         Define __STDC__ to avoid problems with compface.h.
6617         
6618         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6619         * EmacsShell-sub.c:
6620         * EmacsShell-sub.c (ABORT):
6621         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6622         * EmacsShell-sub.c (RootGeometryManager):
6623         * EmacsShell.c:
6624         * EmacsShell.c (ABORT):
6625         * EmacsShell.c (EmacsShellUpdateSizeHints):
6626         * alloc.c (free_lcrecord):
6627         * alloca.c (i00afunc):
6628         * buffer.c (delete_from_buffer_alist):
6629         * buffer.c (MARKED_SLOT):
6630         * bytecode.c (execute_rare_opcode):
6631         * bytecode.c (optimize_byte_code):
6632         * bytecode.c (Ffetch_bytecode):
6633         * chartab.c (char_table_type_to_symbol):
6634         * chartab.c (Freset_char_table):
6635         * chartab.c (decode_char_table_range):
6636         * chartab.c (Fget_range_char_table):
6637         * chartab.c (check_valid_char_table_value):
6638         * chartab.c (map_char_table):
6639         * chartab.c (slow_map_char_table_fun):
6640         * chartab.c (chartab_instantiate):
6641         * cm.c (cmcheckmagic):
6642         * console-msw.c (DHEADER):
6643         * console.c (MARKED_SLOT):
6644         * data.c (finish_marking_weak_lists):
6645         * data.c (encode_weak_list_type):
6646         * debug.h (DASSERT):
6647         * device-gtk.c (gtk_init_device):
6648         * device-msw.c (mswindows_get_default_margin):
6649         * device-tty.c (tty_init_device):
6650         * device-x.c (get_device_from_display):
6651         * device-x.c (x_get_visual_depth):
6652         * doprnt.c (parse_doprnt_spec):
6653         * doprnt.c (get_doprnt_args):
6654         * dumper.c (pdump_get_indirect_count):
6655         * dumper.c (pdump_register_sub):
6656         * dumper.c (pdump_register_object):
6657         * dumper.c (pdump_register_struct):
6658         * dumper.c (pdump_dump_data):
6659         * dumper.c (pdump_reloc_one):
6660         * elhash.c (print_hash_table):
6661         * elhash.c (make_standard_lisp_hash_table):
6662         * elhash.c (hash_table_instantiate):
6663         * emacs.c:
6664         * emacs.c (Fforce_debugging_signal):
6665         * emacs.c (sort_args):
6666         * emacs.c (main):
6667         * emacs.c (assert_failed):
6668         * eval.c (throw_or_bomb_out):
6669         * eval.c (signal_1):
6670         * eval.c (Fsignal):
6671         * event-Xt.c:
6672         * event-Xt.c (emacs_Xt_mapping_action):
6673         * event-Xt.c (Xt_process_to_emacs_event):
6674         * event-msw.c:
6675         * event-stream.c (check_event_stream_ok):
6676         * event-stream.c (Fadd_timeout):
6677         * event-stream.c (Fadd_async_timeout):
6678         * event-stream.c (Fdiscard_input):
6679         * event-stream.c (execute_internal_event):
6680         * event-stream.c (Frecent_keys):
6681         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6682         * event-stream.c (lookup_command_event):
6683         * event-unixoid.c (poll_fds_for_input):
6684         * events.c:
6685         * events.c (mark_event):
6686         * events.c (event_equal):
6687         * events.c (event_hash):
6688         * events.c (Fmake_event):
6689         * events.c (Fdeallocate_event):
6690         * events.c (event_chain_find_previous):
6691         * events.c (event_to_character):
6692         * events.c (format_event_object):
6693         * events.c (Fevent_type):
6694         * events.c (event_pixel_translation):
6695         * events.c (Fevent_properties):
6696         * extents.c (extent_in_region_p):
6697         * extents.c (print_extent):
6698         * extents.c (process_extents_for_insertion_mapper):
6699         * extents.c (report_extent_modification_mapper):
6700         * extents.c (glyph_layout_to_symbol):
6701         * faces.c (face_validate):
6702         * file-coding.c (eol_type_to_symbol):
6703         * file-coding.c (subsidiary_coding_system):
6704         * file-coding.c (Fcoding_system_type):
6705         * file-coding.c (Fcoding_system_property):
6706         * file-coding.c (mule_decode):
6707         * file-coding.c (mule_encode):
6708         * file-coding.c (encode_coding_ucs4):
6709         * file-coding.c (encode_coding_utf8):
6710         * file-coding.c (parse_iso2022_esc):
6711         * file-coding.c (encode_coding_iso2022):
6712         * fileio.c:
6713         * fns.c (concat):
6714         * fns.c (Fsubseq):
6715         * fns.c (mapcar1):
6716         * fns.c (Fbase64_encode_region):
6717         * fns.c (Fbase64_encode_string):
6718         * fns.c (Fbase64_decode_region):
6719         * fns.c (Fbase64_decode_string):
6720         * font-lock.c (find_context):
6721         * font-lock.c (context_to_symbol):
6722         * frame-gtk.c (gtk_set_frame_pointer):
6723         * frame-gtk.c (gtk_update_frame_external_traits):
6724         * frame-x.c (x_wm_mark_shell_size_user_specified):
6725         * frame-x.c (x_wm_mark_shell_position_user_specified):
6726         * frame-x.c (x_wm_set_shell_iconic_p):
6727         * frame-x.c (x_wm_set_cell_size):
6728         * frame-x.c (x_wm_set_variable_size):
6729         * frame-x.c (x_wm_store_class_hints):
6730         * frame-x.c (x_wm_maybe_store_wm_command):
6731         * frame-x.c (x_initialize_frame_size):
6732         * frame-x.c (x_update_frame_external_traits):
6733         * frame.c:
6734         * frame.c (delete_frame_internal):
6735         * frame.c (mouse_pixel_position_1):
6736         * frame.c (change_frame_size_1):
6737         * free-hook.c (check_free):
6738         * free-hook.c (check_realloc):
6739         * free-hook.c (note_block_input):
6740         * free-hook.c (log_gcpro):
6741         * gccache-gtk.c (gc_cache_lookup):
6742         * glyphs-eimage.c (tiff_memory_write):
6743         * glyphs-gtk.c (gtk_finalize_image_instance):
6744         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6745         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6746         * glyphs-gtk.c (gtk_xpm_instantiate):
6747         * glyphs-gtk.c (gtk_unmap_subwindow):
6748         * glyphs-gtk.c (gtk_map_subwindow):
6749         * glyphs-gtk.c (gtk_button_redisplay):
6750         * glyphs-msw.c:
6751         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6752         * glyphs-x.c (init_image_instance_from_xbm_inline):
6753         * glyphs-x.c (extract_xpm_color_names):
6754         * glyphs-x.c (x_xpm_instantiate):
6755         * glyphs.c (get_image_instantiator_governing_domain):
6756         * glyphs.c (print_image_instance):
6757         * glyphs.c (image_instance_equal):
6758         * glyphs.c (image_instance_hash):
6759         * glyphs.c (encode_image_instance_type):
6760         * glyphs.c (make_image_instance_1):
6761         * glyphs.c (inherit_instantiate):
6762         * glyphs.c (image_instantiate):
6763         * glyphs.c (allocate_glyph):
6764         * glyphs.c (Fglyph_type):
6765         * glyphs.c (redisplay_subwindow):
6766         * glyphs.c (display_table_entry):
6767         * gtk-glue.c (xemacs_list_to_gtklist):
6768         * gtk-glue.c (xemacs_gtklist_to_list):
6769         * gtk-glue.c (xemacs_list_to_array):
6770         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6771         * gutter.c (gutter_was_visible):
6772         * gutter.c (get_gutter_coords):
6773         * input-method-xlib.c (get_XIM_input):
6774         * insdel.c (bufpos_to_bytind_func):
6775         * insdel.c (bytind_to_bufpos_func):
6776         * insdel.c (move_gap):
6777         * intl.c (x_get_composed_input):
6778         * keymap.c (keymap_lookup_directly):
6779         * keymap.c (keymap_delete_inverse_internal):
6780         * keymap.c (ensure_meta_prefix_char_keymapp):
6781         * keymap.c (accessible_keymaps_mapper_1):
6782         * keymap.c (where_is_recursive_mapper):
6783         * lisp.h:
6784         * lisp.h (ABORT):
6785         * lread.c (read_atom):
6786         * lstream.c (Lstream_delete):
6787         * lstream.c (make_lisp_buffer_stream_1):
6788         * macros.c (pop_kbd_macro_event):
6789         * malloc.c (malloc):
6790         * malloc.c (free):
6791         * marker.c (bi_marker_position):
6792         * marker.c (set_bi_marker_position):
6793         * menubar-gtk.c (menu_descriptor_to_widget_1):
6794         * menubar-msw.c (prune_menubar):
6795         * menubar-x.c (set_frame_menubar):
6796         * mule-charset.c (get_unallocated_leading_byte):
6797         * mule-charset.h (CHAR_LEADING_BYTE):
6798         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6799         * nt.c (init_environment):
6800         * nt.c (generate_inode_val):
6801         * ntproc.c (delete_child):
6802         * ntproc.c (_sys_read_ahead):
6803         * ntproc.c (create_child):
6804         * objects.c (color_instantiate):
6805         * objects.c (font_instantiate):
6806         * objects.c (face_boolean_instantiate):
6807         * print.c (printing_major_badness):
6808         * process-nt.c (nt_send_process):
6809         * process-unix.c (unix_send_process):
6810         * process.c (get_process):
6811         * ralloc.c (obtain):
6812         * ralloc.c (relinquish):
6813         * ralloc.c (relocate_blocs):
6814         * ralloc.c (resize_bloc):
6815         * ralloc.c (r_alloc_free):
6816         * ralloc.c (r_re_alloc):
6817         * ralloc.c (r_alloc_thaw):
6818         * ralloc.c (init_ralloc):
6819         * ralloc.c (Free_Addr_Block):
6820         * ralloc.c (r_alloc):
6821         * redisplay-gtk.c (gtk_output_display_block):
6822         * redisplay-msw.c (mswindows_output_display_block):
6823         * redisplay-output.c (get_next_display_block):
6824         * redisplay-output.c (get_cursor_size_and_location):
6825         * redisplay-output.c (redisplay_output_layout):
6826         * redisplay-output.c (redisplay_clear_region):
6827         * redisplay-tty.c (tty_output_display_block):
6828         * redisplay-x.c (x_output_display_block):
6829         * redisplay.c (add_propagation_runes):
6830         * redisplay.c (add_glyph_rune):
6831         * redisplay.c (create_text_block):
6832         * redisplay.c (add_margin_runes):
6833         * redisplay.c (create_left_glyph_block):
6834         * redisplay.c (create_right_glyph_block):
6835         * redisplay.c (create_string_text_block):
6836         * redisplay.c (regenerate_window):
6837         * redisplay.c (REGEN_INC_FIND_START_END):
6838         * redisplay.c (redisplay_frame):
6839         * redisplay.c (point_in_line_start_cache):
6840         * regex.c:
6841         * regex.c (ABORT):
6842         * regex.c (re_compile_fastmap):
6843         * regex.c (re_match_2_internal):
6844         * regex.c (regerror):
6845         * scrollbar-gtk.c (gtk_scrollbar_loop):
6846         * scrollbar-gtk.c (scrollbar_cb):
6847         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6848         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6849         * scrollbar-x.c (x_update_scrollbar_instance_status):
6850         * scrollbar-x.c (x_scrollbar_loop):
6851         * scrollbar-x.c (x_update_frame_scrollbars):
6852         * search.c (search_command):
6853         * search.c (Fmatch_data):
6854         * select-x.c (motif_clipboard_cb):
6855         * signal.c (interrupt_signal):
6856         * specifier.c (specifier_add_spec):
6857         * specifier.c (specifier_instance_from_inst_list):
6858         * specifier.c (specifier_instance):
6859         * specifier.h:
6860         * specifier.h (struct specifier_methods):
6861         * strftime.c (add_num_time_t):
6862         * sunplay.c (init_device):
6863         * symbols.c (Fsetplist):
6864         * symbols.c (do_symval_forwarding):
6865         * symbols.c (store_symval_forwarding):
6866         * symbols.c (Fset):
6867         * symbols.c (Fbuilt_in_variable_type):
6868         * symbols.c (decode_magic_handler_type):
6869         * symbols.c (handler_type_from_function_symbol):
6870         * syntax.c (update_syntax_cache):
6871         * sysdep.c (init_baud_rate):
6872         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6873         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6874         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6875         * toolbar.c (get_toolbar_coords):
6876         * ui-gtk.c (build_gtk_boxed):
6877         * ui-gtk.c (describe_gtk_arg):
6878         * ui-gtk.c (gtk_type_to_lisp):
6879         * ui-gtk.c (lisp_to_gtk_type):
6880         * ui-gtk.c (lisp_to_gtk_ret_type):
6881         * ui-gtk.c (lisp_to_flag):
6882         * unexnt.c (read_in_bss):
6883         * unexnt.c (map_in_heap):
6884         * window.c (real_window):
6885         * window.c (window_display_lines):
6886         * window.c (window_display_buffer):
6887         * window.c (set_window_display_buffer):
6888         * window.c (window_modeline_height):
6889         * window.c (unshow_buffer):
6890         * window.c (window_loop):
6891         * window.c (Fget_lru_window):
6892         * window.c (Fsplit_window):
6893         * window.c (Fset_window_configuration):
6894         * window.c (saved_window_index):
6895         * xgccache.c (gc_cache_lookup):
6896         abort() -> ABORT().  Eliminate preprocessor games with abort()
6897         since it creates huge problems in VC7, solvable only by including
6898         massive amounts of files in every compile (and not worth it).
6899
6900         * sysdep.c:
6901         * sysproc.h:
6902         Inclusion of process.h does not need to be before lisp.h any more.
6903         Move later and remove comment about abort().
6904
6905 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6906
6907         * regex.c (re_match_2_internal):
6908         Correctly initialize loop which clears uninitialized registers.
6909
6910 2005-01-28  Vin Shelton  <acs@xemacs.org>
6911
6912         * sheap.c (more_static_core): Applied Ben's version of the long
6913         string patch.
6914
6915 2005-01-24  Vin Shelton  <acs@xemacs.org>
6916
6917         * sheap.c (more_static_core): Reformatted printf string so
6918         gcc-3.3.3 will compile this on Cygwin.
6919
6920 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6921
6922         * console.c (function_key_map): Reference `key-binding'.
6923
6924         * keymap.c (Vkey_translation_map): Improve docstring.
6925
6926 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6927
6928         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6929         * window.c (window_loop): [fix] Take into account
6930         `allow-deletion-of-last-visible-frame' variable.
6931         * window.c (replace-buffer-in-windows): Ditto.
6932
6933 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6934
6935         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6936
6937 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6938
6939         * event-gtk.c: Recognise AltGr as a valid modifier.
6940
6941 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6942
6943         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6944
6945 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6946
6947         Fix backreference bug caught by test suite.
6948
6949         * regex.c (regex_compile):
6950         Make backref duplicate internal register.
6951
6952 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6953
6954         Documentation, code clarification, and warning suppression.
6955         
6956         * regex.c (regex_compile):
6957         Improve comments.
6958         (re_match_2_internal):
6959         Improve comments and avoid redundant braces.  [Most of the big hunk
6960         at l. 4710 is indentation; use diff -w to see the real changes.]
6961         (alt_match_null_string_p):
6962         (common_op_match_null_string_p):
6963         Avoid shadowing global on Mac OS X 10.4, at least.
6964
6965 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6966
6967         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6968         introduced with shy groups fix).  [Already applied, probably
6969         with the second "fix shy groups" patch of 2004-10-07.] 
6970
6971 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6972
6973         From Andrey Slusar <anrays@gmail.com>:
6974
6975         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6976
6977 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6978
6979         * Makefile (RECURSIVE_MAKE): Removed.
6980         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6981         handling parallel builds.
6982
6983 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6984
6985         * Makefile.in.in: Enable support for parallel builds.
6986
6987 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6988
6989         From Andrey Slusar <anrays@gmail.com>:
6990
6991         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6992         FreeBSD version is >= 199701 _and_ < 600006.
6993
6994 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6995
6996         * scrollbar.c (compute_scrollbar_instance_usage):
6997         Only call device method compute_scrollbar_instance_usage() if it
6998         is defined.
6999
7000 2004-12-05  Vin Shelton <acs@xemacs.org>
7001
7002         * XEmacs 21.4.16 is released
7003
7004 2004-12-04  Vin Shelton  <acs@xemacs.org>
7005
7006         * depend: Regenerated.
7007
7008 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
7009
7010         * regex.c (re_match_2_internal): Map internal to external
7011         registers.  Fixes bug identified by Steve Youngs 2004-09-30
7012         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
7013
7014 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
7015
7016         * buffer.c (Frecord_buffer): Make sure the argument is buffer
7017         to fix a crash.  Also, check the buffer is live and it
7018         really exists in buffer_list.  If the buffer is not in the list,
7019         prepend it.
7020
7021 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
7022
7023         Fix shy groups by implementing recording of all groups for
7024         repetition and backtracking.  Backport from 21.5.
7025         
7026         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
7027         external_to_internal_register, external_to_internal_register_size,
7028         and update comments for re_nsub.
7029
7030         * regex.c (re_opcode_t): Update comments.
7031         (print_compiled_pattern): Ouput external_to_internal_register,
7032         external_to_internal_register_size, and re_ngroups for debugging.
7033         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
7034         (regex_compile): Update header comment.
7035         Ensure that all groups are recorded so that repeat matches and
7036         backtracking work correctly.  Comment related warning for groups >
7037         255.
7038         (re_search_2): Construct map of API indexes (which count only
7039         nonshy groups) to internal register numbers, and keep it updated.
7040
7041 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
7042
7043         * frame-gtk.c (gtk_make_frame_visible):
7044         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
7045         show/hide.  This is what X uses and is prevents previously hidden
7046         widgets from suddenly reappearing.
7047         * gtk-xemacs.c (gtk_xemacs_paint):
7048         * gtk-xemacs.c (gtk_xemacs_draw):
7049         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
7050         drawable.
7051         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
7052         size and location changes so that they can be seen before the next
7053         idle event.  Without this rapid changes to scrollbar properties
7054         are not seen.
7055
7056 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
7057
7058         * console-gtk.h:
7059         * console-gtk.h (struct gtk_frame):
7060         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
7061           Add hash tables track tab_control callback data.
7062           Added #defines for GTK object data names.
7063           Declaration of gtk_widget_to_frame().
7064         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
7065         * frame-gtk.c (gtk_widget_to_frame): New.
7066         * frame-gtk.c (gtk_create_widgets):
7067         * frame-gtk.c (allocate_gtk_frame_struct):
7068         * frame-gtk.c (gtk_mark_frame):
7069         Manage frame callbakc hash tables.
7070         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
7071         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
7072         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
7073         of widget size.
7074         * glyphs-gtk.c (gtk_widget_query_geometry): New
7075         * glyphs-gtk.c (gtk_register_gui_item): New
7076         * glyphs-gtk.c (gtk_add_tab_item): New
7077         * glyphs-gtk.c (gtk_tab_control_callback): New
7078         * glyphs-gtk.c (gtk_tab_control_instantiate): New
7079         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
7080         Use correct list when loading item.
7081         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
7082         Register new methods.
7083         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
7084         default size, for widgets.
7085         * gui-x.c:  Improved comment.
7086         * menubar-gtk.c (__generic_button_callback): Use
7087         gtk_widget_to_frame instead of __get_channel.
7088         * scrollbar-gtk.c:
7089         * ui-gtk.c: Use symbolic names for GTK object data.
7090
7091 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
7092
7093         * s/usg5-4.h (NSIG): Define only inside emacs binary.
7094
7095 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
7096
7097         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
7098
7099 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
7100
7101         * malloc.c (morecore): siz is a long because in some architectures
7102         (eg ia-64) an int cannot hold the address range.  Additional patch
7103         from the SuSe distribution.
7104
7105 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
7106
7107         * emacs.c:
7108         * malloc.c: lim_data is a long because in some architectures
7109         (eg ia-64) an int cannot hold the address range.
7110         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
7111         instead of ulimit() because ulimit() always returns -1.
7112
7113 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
7114
7115         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
7116
7117 2004-06-11  David Kastrup  <dak@gnu.org>
7118
7119         * search.c (match_limit): Don't flag an error if match-data
7120         exceeding the allocated search_regs.num_regs gets requested, just
7121         return Qnil.
7122
7123 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7124
7125         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
7126         replace symbolic color entries with the real colors specified in
7127         xpm-color-symbols, before passing the XPM to gtk.
7128         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
7129         instead of a GTK specific field, so that it is used in by generic
7130         code.
7131
7132 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
7133
7134        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
7135         coredump from deref of NULL ptr (ExtData)
7136
7137 2004-04-19  Jerry James  <james@xemacs.org>
7138
7139         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
7140         VALBITS to compute the location of the sign bit.
7141         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
7142         of VALBITS with EMACS_INT_MAX.
7143         * events.c (Fevent_timestamp): Ditto.
7144         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
7145         compute the halfway point to timestamp wraparound.
7146         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
7147         EMACS_INT_MIN instead of using VALBITS.
7148         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
7149         incorrect number with VALBITS.
7150         * fns.c (Frandom): Correct number of integer bits in docstring.
7151         Use INT_VALBITS instead of VALBITS to compute the denominator.
7152         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
7153         build random numbers.
7154
7155 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7156         * event-gtk.c:
7157         * event-gtk.c (gtk_event_to_emacs_event):
7158         * menubar-gtk.c:
7159         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
7160         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
7161         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
7162         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
7163         * menubar-gtk.c (__activate_menu):
7164         * menubar-gtk.c (convert_underscores):
7165         * menubar-gtk.c (remove_underscores):
7166         * menubar-gtk.c (menu_convert):
7167         * menubar-gtk.c (menu_descriptor_to_widget_1):
7168         * menubar-gtk.c (menu_descriptor_to_widget):
7169         * menubar-gtk.c (menu_can_reuse_widget):
7170         * menubar-gtk.c (menu_create_menubar):
7171         * menubar-gtk.c (gtk_popup_menu):
7172         * menubar-gtk.c (Fgtk_build_xemacs_menu):
7173         Added support for Gtk menu bar and menu item mnemonics.
7174
7175 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7176
7177         * sysdll.c: (dll_function): Added support for finding symbols in
7178         Darwin shared libraries as well in Darwin bundles.
7179         * sysdll.c (image_for_address): New
7180         * sysdll.c (my_find_image): New
7181         * sysdll.c (search_linked_libs): New
7182
7183 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7184
7185         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
7186         return to GTK requires a different API to marshalling data to use
7187         as GTK parameters.
7188         * ui-gtk.c (lisp_to_gtk_ret_type): New.
7189
7190 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
7191
7192         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
7193
7194 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7195
7196         * glyphs.c (process_image_string_instantiator):
7197         (Fset_console_type_image_conversion_list):
7198         Stop GCC from warning about shadowing of `exp'.
7199
7200         * redisplay-x.c (x_output_string): Fix unsigned lossage.
7201
7202 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7203
7204         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
7205
7206 2004-02-03  Vin Shelton  <acs@xemacs.org>
7207
7208         * glyphs.c (image_instance_layout): Remove pointless assertion.
7209         * regex.c (regex_grow_registers): Return type is void.
7210
7211 2004-02-02  Vin Shelton <acs@xemacs.org>
7212
7213         * XEmacs 21.4.15 is released
7214
7215 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
7216
7217         * device-x.c (x_error_handler): Don't call stderr_out
7218
7219 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
7220
7221         * buffer.c (other-buffer): Clarify documentation of order of
7222         arguments for FSF Emacs.
7223
7224 2003-10-11  Olivier Galibert  <galibert@pobox.com>
7225
7226         * window.c (Fdelete_window): Dirty the mirror structure _before_
7227         marking the window deleted.
7228
7229 2003-09-15  Jerry James  <james@xemacs.org>
7230
7231         * event-msw.c (debug_mswin_messages): Conditionally compile
7232         messages missing from the Cygwin headers.
7233
7234 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
7235
7236         * data.c (eq_with_ebola_notice): Fix typo in comment.
7237         (Ftrue_list_p): Improve docstring.
7238
7239 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
7240
7241         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
7242
7243 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
7244
7245         * search.c (trivial_regexp_p): Regexps containing "\{" are
7246         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
7247         Stefan Monnier for suggesting a diagnosis.
7248
7249 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
7250
7251         * elhash.c (make-hash-table): Clarify use of :test #'equal.
7252
7253 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
7254
7255         * search.c (Fsearch_forward):
7256         (Fsearch_backward):
7257         Document negative count.
7258
7259 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
7260
7261         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
7262
7263 2003-09-13  Martin Buchholz  <martin@xemacs.org>
7264
7265         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
7266
7267 2003-09-15  Vin Shelton  <acs@xemacs.org>
7268
7269         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
7270         21.5.
7271
7272 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7273
7274         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
7275         (re_search_2): Match the first byte of Bufbyte, not Emchar.
7276         (re_match_2_internal): Use TRANSLATE instead of
7277         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
7278         non-ASCII char case conversion.
7279
7280 2003-09-08  Mike Sperber  <mike@xemacs.org>
7281
7282         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
7283         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
7284
7285 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
7286
7287        * .gdbinit (pobj): fix printing of symbol name.
7288
7289 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
7290
7291         * frame-x.c (x_layout_widgets): When resizing is about to cause
7292         frame size slip, mark it for redisplay.
7293
7294 2003-08-18  Jerry James  <james@xemacs.org>
7295
7296         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
7297
7298 2003-09-03  Vin Shelton <acs@xemacs.org>
7299
7300         * XEmacs 21.4.14 is released
7301
7302 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
7303
7304         * config.h.in (REGEX_MALLOC): Make it configure'able.
7305
7306 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
7307
7308         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
7309         linking.
7310         * sysdll.c (dll_init):
7311         * sysdll.c (dll_open):
7312         * sysdll.c (dll_close):
7313         * sysdll.c (dll_function):
7314         * sysdll.c (dll_variable):
7315         * sysdll.c (dll_error):
7316         Add support for loading bundles using Darwin/MacOSX
7317         native API.
7318
7319 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
7320
7321         * process.c (start-process-internal): Document coding systems.
7322
7323 2003-07-30  Jerry James  <james@xemacs.org>
7324
7325         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
7326
7327 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
7328
7329         * event-msw.c (mswindows_enqueue_mouse_button_event):
7330         * event-msw.c (mswindows_wnd_proc):
7331           enqueue button event when scrollwheel event isn't handled by 
7332           mswindows_handle_mousewheel_event, such as when the scrollbars
7333           are not showing.
7334
7335 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
7336
7337         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
7338
7339 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
7340
7341         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
7342
7343 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
7344
7345         * regex.c (re_match_2_internal): Fix matching degenerate word
7346         boundaries.
7347
7348 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
7349
7350         * XEmacs 21.4.13 is released
7351
7352 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
7353
7354         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
7355         * lisp.h (<inttypes.h>):
7356         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
7357         the definition.
7358
7359 2003-03-15  Martin Buchholz  <martin@xemacs.org>
7360
7361         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7362         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7363         Result: "temacs can only be run in -batch mode."
7364         Fix: Check xemacs executable candidate for directory-ness.
7365
7366 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7367
7368         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7369           they conflict with <sys/types.h>.
7370
7371 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7372
7373         * database.c: Berkeley DB wants __STDC__ to be defined.
7374
7375 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7376
7377         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7378
7379 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7380
7381         * process-unix.c (unix_send_process): Fix C++ compile error.
7382
7383 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7384
7385         * Added .dylib as an acceptable shared library file extension
7386         * to support MacOSX.
7387
7388 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7389
7390         * EmacsFrameP.h (EmacsFramePart):
7391         Kludge to allow compiling with Motif1, but linking with Motif2.
7392
7393 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7394
7395         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7396
7397
7398 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7399
7400         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7401
7402 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7403
7404         * sysdll.c: Included lisp.h to define needed alloca_array.
7405
7406 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7407
7408         Make XEmacs redisplay 10 times faster.
7409         If, that is, you're using a slow X connection and MoveOpaque.
7410         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7411         Use compress_motion = TRUE.
7412         * EmacsFrame.c (emacsFrameClassRec): 
7413         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7414         * EmacsManager.c (emacsManagerClassRec):
7415         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7416
7417 2003-01-30  Vin Shelton  <acs@xemacs.org>
7418
7419         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7420
7421 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7422
7423         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7424         Patch by Martin Buchholz.
7425
7426 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7427
7428         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7429         Thanks to icc for warning and Martin Buchholz for reporting.
7430
7431 2003-01-29  Vin Shelton <acs@xemacs.org>
7432
7433         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7434
7435         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7436         remember to multiply by the element size.
7437
7438 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7439
7440         * XEmacs 21.4.12 "Portable Code" is released.
7441
7442 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7443
7444         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7445         * s/cygwin.sc: new linker file.
7446
7447 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7448
7449         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7450
7451         * redisplay-x.c (x_output_string): Use X11-specified types.
7452         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7453         * emacs.c (__free_hook): Use typeof with Intel compiler.
7454         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7455
7456 2003-01-08  Andy Piper  <andy@xemacs.org>
7457
7458         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7459         reserve size during unexec().
7460
7461 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7462
7463         * process-unix.c (unix_create_process): Don't let outchannel block.
7464
7465 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7466
7467         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7468         Needed for IsBadReadPtr().
7469
7470 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7471
7472         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7473
7474 2002-12-14  Ben Wing  <ben@xemacs.org>
7475
7476         * callint.c: Declaration error.
7477         * dumper.c (pdump):
7478         * dumper.c (pdump_load): Warning fix.
7479         * process.c: GCPRO error.
7480         * glyphs.c (unmap_subwindow):
7481         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7482         * event-stream.c (maybe_kbd_translate): Wrong argument to
7483         character_to_event().
7484
7485         * alloc.c (garbage_collect_1):
7486         * emacs.c:
7487         * emacs.c (debug_can_access_memory):
7488         * emacs.c (fatal_error_signal):
7489         * emacs.c (mswindows_handle_hardware_exceptions):
7490         * emacs.c (main_1):
7491         * emacs.c (main):
7492         * emacs.c (assert_failed):
7493         * emacs.c (syms_of_emacs):
7494         * lisp.h:
7495         * print.c:
7496         * print.c (std_handle_out_va):
7497         * print.c (write_string_to_stdio_stream):
7498         * print.c (write_fmt_string):
7499         * print.c (printing_badness):
7500         * print.c (printing_major_badness):
7501         * print.c (print_internal):
7502         * print.c (debug_print_no_newline):
7503         * print.c (debug_backtrace):
7504         Be more defensive in handling bad values when printing.  Add code
7505         from trunk involving inhibit_non_essential_printing_operations.
7506         When going down or in debug_print(), don't do external conversion
7507         and such and try really, really hard when printing to avoid core
7508         dumping.  Add force-debugging-signal, debug_break().
7509
7510 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7511
7512         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7513         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7514
7515 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7516
7517         * database.c: Fix open_database. Berkeley DB API has changed in
7518         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7519
7520 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7521
7522         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7523
7524 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7525
7526         * event-Xt.c (Xt_timeout):
7527         (Xt_timeout_callback):
7528         (emacs_Xt_add_timeout):
7529         (emacs_Xt_remove_timeout):
7530         (Xt_timeout_to_emacs_event):
7531         Turn completed_timeouts from a stack into a queue.  Fixes
7532         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7533
7534 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7535
7536         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7537         * emacs.c (main): Assert that mmap'd allocation is disabled.
7538
7539 2002-10-14  Andy Piper  <andy@xemacs.org>
7540
7541         * glyphs-widget.c (layout_query_geometry): add in fiddle
7542         factor. Include border text in width layout calculation.
7543         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7544
7545 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7546
7547         * XEmacs 21.4.10 "Military Intelligence" is released.
7548
7549 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7550
7551         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7552         using the NAS private array SoundFileInfo that no longer exists in
7553         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7554         and earlier.  This is broken for some versions between 1.5a and
7555         1.5f.
7556
7557 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7558
7559         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7560
7561         * emacs.c (shut_down_emacs): Improve crash message.
7562
7563 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7564
7565         * file-coding.c (determine_real_coding_system): Check for coding
7566         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7567         shebangs and Python PEP 263.
7568
7569 2002-10-08  Andy Piper  <andy@xemacs.org>
7570
7571         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7572         if static sizes haven't been set.
7573
7574 2002-08-30  Mike Alexander  <mta@arbortext.com>
7575
7576         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7577         to close a socket.
7578
7579 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7580
7581         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7582
7583 2002-09-20  Mike Sperber <mike@xemacs.org>
7584
7585         (This partially gets back my patch from 2002-07-20 without the
7586         bug.)
7587         * callproc.c (child_setup): Remove Ben's comment noting confusion
7588         over the file descriptors >= 3: close_process_descs() doesn't
7589         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7590         * process-unix.c (unix_create_process): Call
7591         begin_dont_check_for_quit to inhibit unwanted interaction (and
7592         thus breaking of X event synchronicity) in the child.
7593
7594 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7595
7596         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7597         widget.
7598
7599 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7600
7601         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7602         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7603         the xemacs process did not exit, but looped infinitely here.  This
7604         fixes that problem.
7605
7606 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7607
7608         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7609         (find_context): Improve comments.
7610
7611         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7612         (re_match_2): An XCHAR_TABLE operation was missing.
7613
7614         Many of the following changes were inspired by Andy Piper's (now
7615         obsolete) patch to make syntax-table text property lookup optional.
7616
7617         [Documentation]
7618
7619         * syntax.h (top level): Document semantics of syntax flags.
7620         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7621         * syntax.c, syntax.h (top level): Document syntax cache better in
7622         comments.
7623
7624         [Instrument syntax caching (temporary change)]
7625
7626         * syntax.h (enum syntax_cache_statistics_functions, struct
7627         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7628         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7629         * syntax.c (scan_words, Fforward_comment, scan_lists,
7630         Fbackward_prefix_characters):
7631         * font-lock.c (find_context):
7632         Use them to instrument syntax caching. 
7633         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7634         syntax_cache_statistics_function_names): New type and variables.
7635         * syntax.c (update_syntax_cache): Update and report statistics.
7636
7637         [Major syntax cache optimizations]
7638
7639         syntax.c (lookup_syntax_properties): Default off.
7640
7641         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7642         * syntax.c (update_syntax_cache):
7643         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7644
7645         [Minor syntax cache optimizations and code clarifications]
7646
7647         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7648         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7649         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7650         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7651         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7652         (Code clarification.)
7653
7654         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7655         scan_lists): Compute code from syncode, use Boolean macros instead
7656         of redundant masking operations.  (Code clarification; any decent
7657         compiler can do this optimization.)
7658
7659         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7660         for clarity.
7661
7662         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7663         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7664         use F*_single_property_change instead of F*_extent_change.
7665         Currently F*_single_property_change is _much_ less efficient.
7666
7667         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7668         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7669         syntax_cache.object properly, don't leave Qt or Qnil.
7670         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7671         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7672         tests for Qt or Qnil.
7673
7674 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7675
7676         * redisplay.c (point_in_line_start_cache): 
7677         * extents.c (print_extent_1):
7678         Fix warnings.
7679
7680         * extents.c (Fset_extent_property): Document `syntax-table' property.
7681
7682         * extents.h (Fnext_single_property_change): EXFUN it.
7683
7684 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7685
7686         * search.c (clear_unused_search_regs): New static function.
7687         (search_buffer): 
7688         (simple_search): 
7689         (boyer_moore):
7690         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7691         Minor clarifications in comments.
7692
7693         * regex.c (re_match_2_internal): Ensure no stale submatches.
7694
7695 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7696
7697         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7698
7699 2002-08-29  Jerry James  <james@xemacs.org>
7700
7701         * lisp.h: structrures -> structures.
7702
7703 2002-06-03  Andy Piper  <andy@xemacs.org>
7704
7705         * frame.c (frame_conversion_internal): add conversion appropriate
7706         for setting frame dimensions in pixels.
7707
7708         * console.h (struct console_methods): add device-specific widget
7709         layout functions.
7710
7711         * emacs.c (main_1): initialize glyph vars.
7712
7713         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7714         (handle_focus_event_2): new function. Allow focus to
7715         be set to a particular window and widget.
7716         (enqueue_focus_event): new function. Create a
7717         synthetic focus event.
7718         (emacs_Xt_handle_magic_event): call
7719         handle_focus_event_2.
7720
7721         * frame.c (Fset_frame_pixel_height): new function. Allow
7722         pixel-based sizing. Does the right thing on character-oriented
7723         displays.
7724         (Fset_frame_pixel_width): ditto.
7725         (Fset_frame_pixel_size): ditto.
7726         (syms_of_frame): declare.
7727
7728         * general-slots.h: add :vertically-justify and
7729         :horizontally-justify.
7730
7731         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7732         (mswindows_widget_border_width): new function.
7733         (mswindows_combo_box_instantiate): set border widths.
7734         (console_type_create_glyphs_mswindows): declare.
7735
7736         * glyphs-widget.c:
7737         (check_valid_justification): allow vertical and horizontal
7738         justification.
7739         (widget_border_width): new function. Call device methods.
7740         (widget_instance_border_width): ditto.
7741         (logical_unit_height): new function. Determine the height of a
7742         logical-unit. Logical units are intended to provide grid-like
7743         layout for subcontrols in a layout. If the layout is
7744         :vertically-justify top then subcontrols will be positioned on
7745         logical-unit boundaries, thus allowing adjacent subcontrols to
7746         line up.
7747         (widget_logical_unit_height): ditto for widgets.
7748         (redisplay_widget): misc cleanup.
7749         (widget_spacing): new function. Call device specific
7750         methods. Intended to be the default gap between adjacent widgets.
7751         (widget_query_geometry): use new spacing functions to determine
7752         appropriate geometry.
7753         (initialize_widget_image_instance): initialize horizontal and
7754         vertical justification.
7755         (widget_instantiate): use logica-units where appropriate for
7756         sizing large widgets.
7757         (button_query_geometry): use widget_instance_border_width.
7758         (tree_view_query_geometry): ditto.
7759         (tab_control_query_geometry): ditto.
7760         (edit_field_query_geometry): new function.
7761         (layout_update): pick up :justify, :horizontally-justify and
7762         :vertically-justify none of which worked previously. :justify is
7763         used as a fallback for both horizontal and vertical justification.
7764         (layout_query_geometry): use logical units to size appropriately.
7765         (layout_layout): ditto.
7766         (Fwidget_logical_to_character_width): new function. Allow users to
7767         convert from logical units to characters so that frame sizes can
7768         be set appropriately.
7769         (Fwidget_logical_to_character_height): ditto.
7770         (syms_of_glyphs_widget): declare.
7771         (image_instantiator_edit_fields): add edit_field_query_geometry.
7772         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7773         :horizontally-justify.
7774         (specifier_vars_of_glyphs_widget): new function. Declare
7775         Vwidget_border_width which is not yet used.
7776
7777         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7778         (x_widget_border_width): new function.
7779         (x_widget_instantiate): create a sensible name for widgets.
7780         (console_type_create_glyphs_x): declare x_widget_border_width.
7781
7782         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7783         (struct Lisp_Image_Instance): add :vertically-justify and
7784         :horizontally-justify.
7785         (LAYOUT_JUSTIFY_TOP): new.
7786         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7787         (ROUND_UP): new macro. Round argument up to next integral
7788         interval.
7789
7790         * redisplay-output.c (redisplay_output_layout): misc formatting.
7791
7792         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7793
7794 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7795
7796         * XEmacs 21.4.9 "Informed Management" is released.
7797
7798 2002-08-19  Andy Piper  <andy@xemacs.org>
7799
7800         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7801         win32 format.
7802
7803         * realpath.c (xrealpath): normalize drive spec also so that dir
7804         sep chars are not mixed on cygwin.
7805
7806 2002-08-06  Jerry James  <james@xemacs.org>
7807
7808         * window.c (Fsplit_window): Count only half of the divider width
7809         against the left window when splitting horizontally. 
7810
7811 2002-06-24  Andy Piper  <andy@xemacs.org>
7812
7813         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7814         toolbar was cleared.
7815
7816         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7817         function. Split out from mswindows_output_frame_toolbars.
7818         (mswindows_output_frame_toolbars): move clear pieces to
7819         mswindows_output_frame_toolbars.
7820
7821         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7822         out from gtk_output_frame_toolbars.
7823         (gtk_output_frame_toolbars): move clear pieces to
7824         gtk_clear_frame_toolbars.
7825
7826         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7827         the frame is cleared. How this ever worked before is a mystery.
7828         (x_output_frame_toolbars): Only output toolbars.
7829         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7830
7831         * gutter.c (update_gutter_geometry):
7832         Mark frame layout changed.
7833         (update_frame_gutter_geometry, update_frame_gutters):
7834         Respect frame_layout_changed.
7835
7836         * console.h (struct console_methods): add
7837         clear_frame_toolbars_method.
7838
7839         * redisplay.c (redisplay_frame): call
7840         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7841
7842         * toolbar.h: declare update_frame_toolbars_geometry.
7843
7844         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7845         out from update_frame_toolbars.  Call clear_frame_toolbars.
7846         (update_frame_toolbars): only output, do not change geometry.
7847
7848         * redisplay.c: add frame_layout_changed.
7849
7850         * redisplay.h: add frame_layout_changed.
7851         (CLASS_RESET_CHANGED_FLAGS): set it.
7852         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7853         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7854         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7855
7856         * device.h (struct device): add frame_layout_changed.
7857         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7858
7859         * frame.h (struct frame): add frame_layout_changed.
7860         (MARK_FRAME_LAYOUT_CHANGED): new.
7861
7862 2002-06-30  Mike Alexander  <mta@arbortext.com>
7863
7864         * event-msw.c (mswindows_need_event): Don't wait for a new message
7865         if the queue is not empty.  Suggested by Paul Moore.
7866
7867 2002-06-12  Andy Piper  <andy@xemacs.org>
7868
7869         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7870         for printing on accurately.
7871
7872 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7873
7874         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7875         WM_ACTIVATE message. Make sure that the frame is visible if the
7876         window is visible. This seemss to fix the problem where XEmacs
7877         appears to freeze after switching desktops with certain virtual
7878         window managers.
7879         (debug_output_mswin_message): Added code to output message
7880         parameters for WM_WINDOWPOSCHANGED, 
7881         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7882
7883 2002-05-25  Andy Piper  <andy@xemacs.org>
7884
7885         * select-x.c (vars_of_select_x): Fix docstring of
7886         x-selection-strict-motif-ownership
7887
7888 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7889
7890         * keymap.c (get_keymap):
7891         Add comment about do_autoload GCPROs own args.
7892
7893 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7894
7895         * bytecode.c (execute_optimized_program): check_opcode ifdef
7896         ERROR_CHECK_BYTE_CODE.
7897
7898 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7899
7900         Thanks to Ben Wing and Michael Sperber.
7901
7902         * eval.c (Fcommand_execute):
7903         (Feval):
7904         (Ffuncall):
7905         (Fmacroexpand_internal):
7906         (function_argcount):
7907         callint.c (Fcall_interactively):
7908         Add comment about do_autoload GCPROs own args.
7909
7910         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7911
7912         * eval.c (Ffuncall): Extra braces to placate GCC.
7913
7914 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7915
7916         * backtrace.h (grow_specpdl):
7917         (SPECPDL_RESERVE):
7918         * EmacsFrame.c (EmacsFrameSetValues):
7919         * eval.c (grow_specpdl):
7920         * ExternalShell.c (hack_event_masks_1):
7921         * glyphs-x.c (convert_EImage_to_XImage): 
7922         (x_finalize_image_instance):
7923         * ralloc.c (page_size):
7924         (r_alloc_sbrk):
7925         * xgccache.c (gc_cache_hash):
7926         Fix unsigned comparison warnings.
7927
7928 2002-07-29  Jerry James  <james@xemacs.org>
7929
7930         * lread.c (locate_file): Any nonnegative return value indicates
7931         success if MODE is nonnegative.
7932
7933 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7934
7935         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7936         argument. 
7937
7938 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7939
7940         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7941
7942         * dumper.c (pdump_get_indirect_count):
7943         (pdump_scan_by_alignment):
7944         (pdump_dump_root_struct_ptrs):
7945         (pdump_dump_rtables):
7946         (pdump_dump_root_objects):
7947         (pdump):
7948         * nas.c (WaveOpenDataForReading):
7949         * fns.c (print_bit_vector):
7950         * font-lock.c (SINGLE_SYNTAX_STYLE):
7951         * glyphs.c (check_for_ignored_expose):
7952         (find_matching_subwindow):
7953         * glyphs-eimage.c:
7954         * imgproc.c (get_histogram):
7955         * redisplay.c (point_in_line_start_cache):
7956         * redisplay-output.c (redisplay_unmap_subwindows):
7957         * symbols.c (defsymbol_massage_name_1):
7958         (defkeyword_massage_name):
7959         (deferror_massage_name_and_message):
7960         * redisplay-x.c (x_output_string): 
7961         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7962         * frame.h (struct frame):
7963         * filelock.c (current_lock_owner):
7964         * doprnt.c (emacs_doprnt_1):
7965         * lisp.h (struct Lisp_Bit_Vector):
7966         (DO_REALLOC):
7967         Fix warnings.
7968
7969 2002-02-13  Ben Wing  <ben@xemacs.org>
7970
7971         * event-stream.c (reset_key_echo):
7972         * event-stream.c (reset_this_command_keys):
7973         * event-stream.c (execute_command_event):
7974         If console is dead as a result of C-x 5 0, then post-command stuff
7975         needs to be careful and do only non-console-specific stuff.
7976
7977 2002-07-01  Mike Sperber <mike@xemacs.org>
7978
7979         * process-unix.c (unix_send_process): Mark coding_outstream as
7980         non-open upon SIGPIPE.
7981
7982         * event-stream.c (Fnext_event): Reorder switch cases to something
7983         that makes sense.
7984
7985 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7986
7987         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7988         Don't bogusly reinitialize ascii_character property.
7989
7990 2002-07-08  Mike Sperber <mike@xemacs.org>
7991
7992         * process.c (Fstart_process_internal): Do error checking before we
7993         fork off the child, so the child can't muck with the state of the
7994         parent.
7995
7996 2002-07-08  Mike Sperber <mike@xemacs.org>
7997
7998         * ralloc.c (init_ralloc): Allocate properly for pdump.
7999
8000 2002-06-12  Andy Piper  <andy@xemacs.org>
8001
8002         * glyphs.c (query_string_geometry): check the string.
8003
8004         * glyphs-widget.c (widget_logical_unit_height): cope with nil
8005         widget names.
8006
8007 2002-06-17  Jerry James  <james@xemacs.org>
8008
8009         * sysdll.c: Remove RTLD_GLOBAL initialization.
8010         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
8011
8012 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
8013
8014         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
8015
8016 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
8017
8018         * sysdep.c (sys_rename): Make sys_rename work for the case where
8019         Windows rename sets errno to EACCES if target file exists.
8020
8021 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
8022
8023         * device-msw.c (mswindows_handle_page_setup_dialog_box):
8024         Fix detection of metric units to work on Win95
8025
8026 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
8027
8028         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
8029
8030 2002-04-25  Andy Piper  <andy@xemacs.org>
8031
8032         * redisplay.c (create_text_block): Remove extra comment trailer.
8033
8034 2002-04-24  Andy Piper  <andy@xemacs.org>
8035
8036         * redisplay.c (create_text_block): Don't actually add propagation
8037         data if the line ends after we have added a glyph.
8038
8039 2002-04-22  Andy Piper  <andy@xemacs.org>
8040
8041         * extents.c (extent_fragment_update): check for glyphs we have
8042         previously displayed.
8043         * extents.c (print_extent_1): warning removal.
8044         * extents.h: change prototype.
8045         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
8046         widths correctly for wide glyphs.
8047         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
8048         * redisplay.c (prop_type): add PROP_GLYPH.
8049         * redisplay.c (struct prop_block): add glyph type
8050         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
8051         to the propagation data.
8052         * redisplay.c (create_text_block): if there is a glyph in the
8053         propagation data use it to salt extent_fragment_update.
8054         * redisplay.c (create_string_text_block): ditto.
8055
8056 2002-04-13  Nix  <nix@esperi.demon.co.uk>
8057
8058         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
8059         * redisplay-output.c (compare_runes): Compare them.
8060         * redisplay.c: Update copyright date.
8061         * redisplay.c (pos_data): Add need_baseline_computation field.
8062         * redisplay.c (add_glyph_rune): Update ascent, descent, and
8063         need_baseline_computation; zero yoffset. Set max_pixmap_height
8064         for all pixmaps, not just automatically positioned ones.
8065         * redisplay.c (calculate_yoffset): New, compute yoffset values.
8066         * redisplay.c (calculate_baseline): New, compute textual baseline.
8067         * redisplay.c (add_glyph_rune): Call them.
8068         * redisplay.c (create_text_block): Likewise.
8069         * redisplay.c (create_overlay_glyph_block): Likewise.
8070         * redisplay.c (add_margin_runes): Likewise.
8071         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
8072
8073         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
8074         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
8075         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
8076         * redisplay-msw.c (mswindows_output_string): Likewise.
8077         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
8078         * redisplay-gtk.c (gtk_output_display_block): Likewise.
8079         * redisplay-x.c (x_output_display_block): Likewise.
8080
8081 2002-03-28  Ben Wing  <ben@xemacs.org>
8082
8083         * redisplay.c: Fixed bug in redisplay
8084         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
8085         and down of the lines, since they're bigger than the line
8086         size. (It was seen most obviously when there's a horizontal scroll
8087         bar, e.g. do C-h a glyph or something like that.) The problem was
8088         that the glyph-contrib-p setting on glyphs was ignored even if it
8089         was set properly, which it wasn't until now.
8090
8091 2002-04-24  Andy Piper  <andy@xemacs.org>
8092
8093         * lisp.h (Dynarr_end): Fix definition.
8094
8095 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
8096
8097         * redisplay.c (mark_redisplay): Remove call to
8098         update_frame_window_mirror.
8099
8100 2001-11-15  Andy Piper  <andy@xemacs.org>
8101
8102         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
8103         cygwin (again).
8104
8105 2002-02-13  Andy Piper  <andy@xemacs.org>
8106
8107         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
8108         we did in fact enqueue the XM_MAPFRAME event.
8109
8110 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
8111
8112         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
8113         to fix problem switching between virtual desktops under virtuawin
8114         virtual window manager.
8115
8116 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
8117
8118         * event-msw.c: Typo fix.
8119         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
8120         magic XM_MAPFRAME event has been sent.
8121
8122 2001-11-23  Andy Piper  <andy@xemacs.org>
8123
8124         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
8125
8126 2001-11-21  Andy Piper  <andy@xemacs.org>
8127
8128         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
8129         mouse events outside the frame.
8130
8131 2002-03-20  Andy Piper  <andy@xemacs.org>
8132
8133         * menubar-msw.c (mswindows_popup_menu): warning removal.
8134         * dialog-msw.c (dialog_popped_down): ditto.
8135
8136 2001-12-11  Andy Piper  <andy@xemacs.org>
8137
8138         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
8139         * dialog-msw.c (mswindows_make_dialog_box_internal): set
8140         popup_up_p.
8141         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
8142         * menubar-msw.c (mswindows_handle_wm_command): ditto.
8143         * menubar-msw.c (mswindows_popup_menu): ditto.
8144
8145 2001-10-29  Andy Piper  <andy@xemacs.org>
8146
8147         * dialog-msw.c (handle_directory_dialog_box): quit if the user
8148         cancels.
8149
8150 2002-01-03  Andy Piper  <andy@xemacs.org>
8151
8152         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
8153         letters.
8154         (xrealpath): ditto.
8155
8156 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
8157
8158         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
8159         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
8160         * device-msw.c (mswindows_handle_page_setup_dialog_box):
8161         Detect and handle case where machine is set up for metric units
8162
8163 2002-04-02  Andy Piper  <andy@xemacs.org>
8164
8165         * dired-msw.c (mswindows_get_files): 
8166         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
8167         completely handled by XEmacs. Suggested by Thomas Vogler
8168         <mail@thomas-vogler.de>.
8169
8170 2001-11-14  Andy Piper  <andy@xemacs.org>
8171
8172         * nt.c (REG_ROOT): change registry key to XEmacs.
8173
8174 2002-04-27  Andy Piper  <andy@xemacs.org>
8175
8176         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
8177
8178 2002-04-26  Andy Piper  <andy@xemacs.org>
8179
8180         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
8181         behavior.
8182
8183 2002-03-14  Mike Alexander  <mta@arbortext.com>
8184
8185         * event-msw.c (mswindows_unwait_process): New, remove process from
8186         wait list
8187         * process-nt.c (nt_finalize_process_data): Call
8188         mswindows_unwait_process
8189         * console-msw.h: Declare mswindows_unwait_process
8190
8191 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
8192
8193         * editfns.c (Fdecode_time):
8194         (Fformat_time_string):
8195         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
8196         (make_time): Warning elimination (change arg name).
8197
8198 2001-11-24  Andy Piper  <andy@xemacs.org>
8199
8200         * window.c (Fsplit_window): Doc return type.
8201
8202 2002-04-01  Andy Piper  <andy@xemacs.org>
8203
8204         * emacs.c (Fkill_emacs): Only output message box in interactive
8205         mode.
8206
8207 2002-04-26  Andy Piper  <andy@xemacs.org>
8208  
8209         * config.h.in: pull in 21.5.x change to stop alloca warnings under
8210         cygwin.
8211
8212 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
8213
8214         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
8215         bit platform.
8216
8217 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
8218
8219         * XEmacs 21.4.8 "Honest Recruiter" is released.
8220
8221 2002-05-07  Nix  <nix@esperi.demon.co.uk>
8222
8223         Supersedes 2002-04-17 patch.
8224
8225         * process.h (PROCESS_LIVE_P): Use the process status as
8226         evidence of health, not the state of the input stream.
8227         (PROCESS_READABLE_P): Say if the process is readable
8228         from. (It may be dead nonetheless.)
8229         (CHECK_READABLE_PROCESS): Test for that condition.
8230
8231         * process.c (create_process): Use PROCESS_READABLE_P.
8232         (read_process_output, set_process_filter): Likewise.
8233
8234         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
8235         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
8236
8237         This code is #if 0'd, this is not the time to add new functions:
8238
8239         * process.c (Fprocess_readable_p): Report readability status.
8240         * process.c (Qprocess_readable_p): New, associated symbol...
8241         * process.c (syms_of_process): ... initialize it.
8242
8243 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
8244
8245         * XEmacs 21.4.7 "Economic Science" is released.
8246
8247 2002-04-17  Nix  <nix@esperi.demon.co.uk>
8248
8249         * process.h (PROCESS_LIVE_P): Use the process status as
8250         evidence of health, not the state of the input stream.
8251
8252 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
8253
8254         * sysdep.c (sys_siglist): change "signum" to "signal"
8255
8256 2001-04-21  Martin Buchholz  <martin@xemacs.org>
8257
8258         * s/darwin.h: New file.
8259         Thanks to Greg Parker <gparker@cs.stanford.edu>.
8260         
8261 2002-04-23  Andreas Jaeger  <aj@suse.de>
8262
8263         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
8264         which use lib64 for 64-bit libs.
8265         (START_FILES): Likewise.
8266
8267 2002-02-11  Mike Sperber  <mike@xemacs.org>
8268
8269         * device-x.c: 
8270         (x_IO_error_handler):
8271         (x_init_device): Temporarily keep device in static variable
8272         `device_being_initialized' so we can recover gracefully from
8273         internal XOpenDevice failure.  (XOpenDevice is documented to
8274         return NULL on failure, but sometimes calls the IO error handler
8275         instead.)
8276
8277 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
8278
8279         * dired.c (Ffile_name_all_completions): Change documentation --
8280         remove reference to completion-ignored-extensions.
8281         * dired.c (vars_of_dired): Change documentation for
8282         completion-ignored-extensions -- remove reference to
8283         file-name-all-completions.
8284
8285 2002-03-06  Jerry James  <james@xemacs.org>
8286
8287         * emodules.c (emodules_load): Fix multiple loading of same module.
8288
8289 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
8290         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
8291         RTLD_LAZY to avoid incorrect symbol binding when using nested
8292         shared libraries on Solaris.
8293
8294 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
8295
8296         * fileio.c (Ffind_file_name_handler): Improve docstring.
8297
8298 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
8299
8300         * fns.c (Fmapconcat): Improve docstring.
8301
8302 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
8303
8304         * device-gtk.c: Add prototype for
8305         emacs_gtk_selection_clear_event_handle.
8306         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
8307         selection.  Setup signal handler for "selection_clear_event"
8308         (emacs_gtk_selection_clear_event_handle).
8309
8310         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
8311         other applications owning the clipboard (based on
8312         x_handle_selection_clear).
8313
8314 2001-12-23  William M. Perry  <wmperry@gnu.org>
8315
8316         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
8317         
8318 2002-01-04  Martin Buchholz  <martin@xemacs.org>
8319
8320         * keymap.c (define_key_alternate_name): Parenthesize EQ.
8321
8322 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
8323
8324         * XEmacs 21.4.6 "Common Lisp" is released.
8325
8326 2001-12-16  Torsten Duwe  <duwe@caldera.de>
8327
8328         * search.c (Freplace_match): Add missing sub-expression functionality.
8329
8330         * buffer.c (decode_buffer): Add a check for pointer type to
8331         decode_buffer, before gcc's CSE optimization reorders a
8332         dereference in front of the allow_string test.
8333
8334 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
8335
8336         * window.c (window_loop): Fix bug that sometimes prevented
8337         window_loop() from iterating across multiple devices.  Also, at
8338         Ben's request, changed infloop-detecting code to abort() instead
8339         of silently terminating window_loop().
8340
8341 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
8342
8343         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
8344         * editfns.c (make_time): New function.
8345         (Fencode_time): Use it instead of wasteful_word_to_lisp.
8346         * lisp.h (make_time): Prototype and comment it.
8347         * dired.c (wasteful_word_to_lisp): Deprecate.
8348         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8349
8350 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
8351
8352         * fileio.c (auto_save_1): Use current coding system, not
8353         escape-quoted.
8354
8355 2001-11-13  Ben Wing  <ben@xemacs.org>
8356
8357         * window.c:
8358         * window.c (window_truncation_on):
8359         * window.c (syms_of_window):
8360         truncate-partial-width-windows should respect the buffer being
8361         displayed, like other redisplay vars.
8362
8363 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8364
8365         * event-stream.c (Fread_key_sequence): save current buffer.
8366
8367 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8368
8369         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8370
8371 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8372
8373         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8374
8375 2001-10-26  Mike Alexander  <mta@arbortext.com>
8376
8377         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8378
8379 2001-10-25  Andy Piper  <andy@xemacs.org>
8380
8381         * ChangeLog:
8382         * dialog-msw.c (handle_directory_proc): new function.
8383          (handle_directory_dialog_box): new fucntion.
8384          (handle_file_dialog_box): use new directory dialog support.
8385          (mswindows_make_dialog_box_internal): ditto.
8386         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8387         handling.
8388         (mswindows_find_frame): make global.
8389         * fileio.c (Fexpand_file_name): build fix.
8390         * general-slots.h: add Qdirectory.
8391         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8392         handling.
8393         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8394         cygwin not leaving win32 paths unchanged.
8395         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8396         cygwin runtime to do path conversion.
8397         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8398         (syms_of_win32): add new function.
8399         * window.c (window_loop): build fix.
8400
8401 2001-10-15  Andy Piper  <andy@xemacs.org>
8402
8403         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8404
8405 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8406
8407         * XEmacs 21.4.5 "Civil Service" is released.
8408
8409 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8410
8411         * glyphs-x.c: Force buffer-tab highlight update when moving the
8412         buffer, avoiding an ugly black border, used for keyboard focus
8413         indication, on a widget that can never have keyboard focus, the
8414         buffer tab.
8415
8416 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8417
8418         * process-unix.c (unix_open_multicast_group): Remove too much
8419         conversion between host and network byte order.
8420
8421 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8422
8423         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8424         before replacing them.
8425
8426         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8427         operation.
8428
8429         * src/window.c (undedicate_windows): Use it.
8430         * src/window.h: Add prototype.
8431
8432 2001-09-17  Ben Wing  <ben@xemacs.org>
8433
8434         * fileio.c (normalize_filename):
8435         * fileio.c (Fexpand_file_name):
8436         Fix various C++ compile errors in Andy's recent code.
8437         
8438         * callint.c (Fcall_interactively):
8439         * editfns.c (Ftemp_directory):
8440         * editfns.c (Fuser_full_name):
8441         * emacs.c (argmatch):
8442         * lread.c (locate_file_map_suffixes):
8443         * redisplay-x.c (x_ring_bell):
8444         Fix sign-compare warnings.
8445         
8446 2001-09-08  Andy Piper  <andy@xemacs.org>
8447
8448         * fileio.c (normalize_filename): copied from nt.c
8449         * (Ffile_name_directory): enable win32 paths under cygwin.
8450         * (Ffile_name_nondirectory): ditto.
8451         * (directory_file_name): ditto.
8452         * (Fexpand_file_name): ditto.
8453         * (Ffile_truename): ditto.
8454         * (Fsubstitute_in_file_name): ditto.
8455         * (Ffile_name_absolute_p): ditto.
8456         * (Ffile_readable_p): ditto.
8457
8458 2001-09-08  Andy Piper  <andy@xemacs.org>
8459
8460         * device-msw.c (mswindows_finish_init_device): remove dde
8461         initialization.
8462         * device-msw.c (mswindows_init_dde): factor out from
8463         mswindows_finish_init_device()
8464         * device-msw.c (init_mswindows_very_early): new function
8465         initialize but don't enable dde.
8466         * emacs.c (main_1): call init_mswindows_very_early.
8467         * event-msw.c:
8468         * event-msw.c (mswindows_dde_callback): only execute when we are
8469         ready.
8470         * symsinit.h: declare init_mswindows_very_early.
8471
8472 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8473
8474         [sjt: This has been in 21.5 for months with no complaints.]
8475
8476         * console.h (struct console_methods): Added flags member.
8477         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8478         (CONMETH_IMPL_FLAG):
8479         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8480         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8481
8482         * device.c (window_system_pixelated_geometry): Use the above macros.
8483
8484         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8485         implememntation flag.
8486         * device.h (DEVICE_DISPLAY_P): Use it.
8487
8488         * frame.c (delete_frame_internal): Use the above macro.
8489
8490         * redisplay.c (redisplay_device): Use it.
8491         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8492         (redisplay_frame): Ditto.
8493
8494         * device-msw.c (mswindows_device_implementation_flags): Removed.
8495         (msprinter_device_implementation_flags): Removed.
8496         (console_type_create_device_mswindows): Removed references to
8497         implementation_flags methods, set implementation flags here.
8498         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8499
8500         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8501         (console_type_create_device_gtk): Removed method declaration.
8502         Added commented out statement which semantically matches the
8503         commented out statement in the above removed method.
8504
8505 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8506
8507         The attached patch fixes a few warnings. 
8508
8509         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8510         * src/frame-gtk.c: guard against GNOME calls in GTK only
8511         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8512         * src/select-gtk.c: prototype lisp_to_time
8513
8514 2001-06-08  Ben Wing  <ben@xemacs.org>
8515
8516         ------ gc-in-window-procedure fixes ------
8517         
8518         * alloc.c:
8519         * alloc.c (struct post_gc_action):
8520         * alloc.c (register_post_gc_action):
8521         * alloc.c (run_post_gc_actions):
8522         * alloc.c (garbage_collect_1):
8523         Create "post-gc actions", to avoid those dreaded "GC during window
8524         procedure" problems.
8525
8526         * event-msw.c:
8527         Abort, clean and simple, when GC in window procedure.  We want
8528         to flush these puppies out.
8529
8530         * glyphs-msw.c:
8531         * glyphs-msw.c (finalize_destroy_window):
8532         * glyphs-msw.c (mswindows_finalize_image_instance):
8533         Use a post-gc action when destroying subwindows.
8534
8535         * lisp.h:
8536         Declare register_post_gc_action().
8537
8538         * scrollbar-msw.c:
8539         * scrollbar-msw.c (unshow_that_mofo):
8540         Use a post-gc action when unshowing scrollbar windows, if in gc.
8541
8542         * redisplay.c (mark_redisplay):
8543         Add comment about the utter evilness of what's going down here.
8544
8545         ------ cygwin setitimer fixes ------
8546         
8547         * Makefile.in.in (sheap_objs):
8548         * Makefile.in.in (profile_objs):
8549         * Makefile.in.in (objs):
8550         Compile profile.c only when HAVE_SETITIMER.
8551         
8552         * nt.c (mswindows_sigset):
8553         * nt.c (mswindows_sighold):
8554         * nt.c (mswindows_sigrelse):
8555         * nt.c (mswindows_sigpause):
8556         * nt.c (mswindows_raise):
8557         * nt.c (close_file_data):
8558         Style fixes.
8559         
8560         * nt.c:
8561         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8562         
8563         * profile.c:
8564         * profile.c (Fstart_profiling):
8565         * profile.c (Fstop_profiling):
8566         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8567         instead of just plain setitimer().
8568         
8569         * signal.c:
8570         * signal.c (set_one_shot_timer):
8571         * signal.c (alarm):
8572         Define qxe_setitimer() as an encapsulation around setitimer() --
8573         call setitimer() directly unless Cygwin or MS Win, in which case
8574         we use our simulated version in win32.c.
8575         
8576         * systime.h:
8577         * systime.h (struct itimerval):
8578         * systime.h (ITIMER_REAL):
8579         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8580         comment about "qxe" and the policy regarding encapsulation.
8581
8582         * win32.c:
8583         * win32.c (setitimer_helper_proc):
8584         * win32.c (setitimer_helper_period):
8585         * win32.c (setitimer_helper):
8586         * win32.c (mswindows_setitimer):
8587         Move setitimer() emulation here, so Cygwin can use it.
8588         Rename a couple of functions and variables to be longer and more
8589         descriptive.  In setitimer_helper_proc(), send the signal
8590         using either mswindows_raise() or (on Cygwin) kill().  If for
8591         some reason we are still getting lockups, we'll change the kill()
8592         to directly invoke the signal handlers.
8593
8594         ------ windows shell fixes ------
8595         
8596         * callproc.c:
8597         * ntproc.c:
8598         Comments about how these two files must die.
8599
8600         * callproc.c (init_callproc):
8601         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8602         not just COMSPEC. (more correct and closer to FSF.) Don't
8603         force a value for SHELL into the environment. (Comments added
8604         to explain why not.)
8605         
8606         * nt.c (init_user_info):
8607         Don't shove a fabricated SHELL into the environment.  See above.
8608
8609 2001-06-01  Ben Wing  <ben@xemacs.org>
8610
8611         * Makefile.in.in (ldflags):
8612         eliminate that pesky "defaulting to 00401000" warning.
8613         * nt.h:
8614         eliminate warnings.
8615
8616 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8617
8618         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8619         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8620
8621 2001-04-24  Jerry James <james@xemacs.org>
8622
8623         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8624         correct order.
8625
8626 2001-06-01  Ben Wing  <ben@xemacs.org>
8627
8628         * event-msw.c (debug_mswin_messages):
8629         conditionalize the messages that were causing compile errors.
8630         (if only macros could generate #ifdef statements ...)
8631
8632 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8633
8634         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8635
8636 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8637
8638         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8639
8640 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8641
8642         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8643         * process-unix.c (unix_canonicalize_host_name):
8644         sysdep.c (init_system_name):
8645         Use it to conditionally support IPv6 canonicalization.
8646
8647 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8648
8649         * event-msw.c:
8650         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8651
8652 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8653
8654         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8655         attempt is made to scroll when no scroll bar is available.
8656
8657 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8658
8659         * input-method-motif.c (XIM_delete_frame): New callback.
8660         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8661         got deleted from 21.4.3.)
8662
8663 2001-06-01  Ben Wing  <ben@xemacs.org>
8664
8665         * nt.c (mswindows_utime):
8666         * nt.c (close_file_data):
8667         fix off-by-one-indirection error.
8668
8669 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8670
8671         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8672         because set_file_times() now takes Lisp_Object path, instead of
8673         char*.
8674         * nt.c: Include buffer.h.
8675         * nt.c (convert_from_time_t): New.
8676         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8677         not set mtime correctly.
8678         * nt.h: Declare mswindows_utime().
8679         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8680         path, instead of char*.
8681         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8682
8683 2001-05-30  Ben Wing  <ben@xemacs.org>
8684
8685         For 21.4:
8686
8687         (Stephen, just take all event-msw.c patches.  This includes
8688         the "iconify" fix below.)
8689
8690         * event-msw.c:
8691         * event-msw.c (mswindows_dequeue_dispatch_event):
8692         * event-msw.c (assert):
8693         * event-msw.c (emacs_mswindows_quit_p):
8694         * event-msw.c (debug_mswin_messages):
8695         * event-msw.c (debug_output_mswin_message):
8696         * event-msw.c (vars_of_event_mswindows):
8697         Fix yet more problems with C-g handling.
8698         Implement debug-mswindows-events.
8699         
8700 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8701
8702         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8703         
8704 2001-05-23  Ben Wing  <ben@xemacs.org>
8705
8706         * event-msw.c (winsock_writer):
8707         * event-msw.c (winsock_closer):
8708         prior kludgy code was clobbering the buffer, thinking it was
8709         "unused" space to store an unneeded return value; instead, use
8710         the variable we've already got staring us in the face.
8711
8712 2001-05-17  Andy Piper  <andy@xemacs.org>
8713
8714         * sysfile.h: don't assume that file attributes are boolean
8715
8716 2001-05-23  Ben Wing  <ben@xemacs.org>
8717
8718         * device-msw.c (msprinter_init_device):
8719         signal an error rather than crash with an unavailable network
8720         printer (from Mike Alexander).
8721         
8722         * event-msw.c:
8723         * event-msw.c (struct winsock_stream):
8724         * event-msw.c (winsock_writer):
8725         * event-msw.c (winsock_closer):
8726         * event-msw.c (make_winsock_stream_1):
8727         cleanup headers.  fix (hopefully) an error with data corruption
8728         when sending to a network connection.
8729
8730         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8731         to handle the ~user prefix by (a) always assuming we're referencing
8732         ourselves and not even verifying the user -- hence any file with
8733         a tilde as its first char is invalid! (b) if there wasn't a slash
8734         following the filename, the pointer was set *past* the end of
8735         file and we started reading from uninitialized memory.  Now we
8736         simply treat these as files, always.
8737
8738         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8739         
8740 2001-05-19  Ben Wing  <ben@xemacs.org>
8741
8742         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8743
8744         * process-nt.c:
8745         * process-nt.c (vars_of_process_nt):
8746         remove unused mswindows-quote-process-args.  rec for 21.4.
8747         
8748 2001-05-12  Ben Wing  <ben@xemacs.org>
8749
8750         * event-msw.c (mswindows_dde_callback):
8751         * event-msw.c (mswindows_wnd_proc):
8752         eliminate cygwin warnings.
8753
8754 2001-05-06  Ben Wing  <ben@xemacs.org>
8755
8756         * console-msw.h:
8757         * device-msw.c:
8758         * device-msw.c (print_dialog_worker):
8759         * device-msw.c (mswindows_handle_print_dialog_box):
8760         * device-msw.c (syms_of_device_mswindows):
8761         * dialog-msw.c (mswindows_make_dialog_box_internal):
8762         * general-slots.h:
8763         implement printing the selection when it's selected.
8764
8765 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8766
8767         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8768
8769 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8770
8771         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8772         EMACS_INT is signed.
8773
8774 2001-04-15  Michael Lausch  <mla@1012surf.net>
8775
8776         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8777         gtk_widget_request_size() to give scrollbar >0 width for
8778         GTK >1.2.8.
8779
8780 2001-05-30  William M. Perry  <wmperry@gnu.org>
8781
8782         * event-gtk.c: Check for buttons as modifier keys.
8783
8784 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8785
8786         * s\mingw32.h:
8787         Properly find MinGW's <process.h> inside Cygwin's restructured
8788         include directories.  Don't try to include <cygwin/version.h>
8789         since we are dropping support for MinGW in versions of Cygwin
8790         earlier than b21.
8791         * nt.c:
8792         Drop support for MinGW in versions of Cygwin before b21.
8793         * sysdep.c:
8794         Properly find MinGW's <process.h> inside Cygwin's restructured
8795         include directories.
8796         * syswindows.h:
8797         Drop support for MinGW in versions of Cygwin before b21.
8798         * unexcw.c:
8799         Even though a.out.h is no longer detected by configure, allow
8800         MinGW to use it until we figure out how to do the job with Win32.
8801
8802 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8803
8804         * syntax.c (find_start_of_comment):
8805         Fix `unbalanced parentheses' bug when dealing with mixed comment
8806         styles in c++/java/etc. mode
8807
8808 2001-05-29  Mike Alexander  <mta@arbortext.com>
8809
8810         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8811         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8812
8813 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8814
8815         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8816
8817 2001-03-31  Mike Sperber <mike@xemacs.org>
8818
8819         * search.c (Freplace_match): Support FSF-style specification of
8820         match subexpression when applied to a buffer.
8821
8822 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8823
8824         * event-stream.c (is_scrollbar_event): add missing semicolon
8825
8826 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8827
8828         * Makefile.in.in: Use TAR macro instead of hardcoding
8829           tar.  Allows use of GNU tar instead of system tar
8830
8831 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8832
8833         * event-stream.c (is_scrollbar_event): add missing semicolon
8834
8835 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8836
8837         * XEmacs 21.4.3 "Academic Rigor" is released.
8838
8839 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8840
8841         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8842
8843 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8844
8845         * buffer.c (Vcase_fold_search): Remove obsolete
8846           comment about non ASCII case-fold-search.  This
8847           bug has been fixed by case-table changes.
8848
8849 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8850
8851         * event-msw.c: Restore include of events-mod.h.
8852
8853 2001-04-22   zhaoway  <zw@debian.org>
8854
8855         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8856         !HAVE_SCROLLBARS.
8857
8858 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8859
8860         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8861
8862 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8863
8864         * mule-charset.c (Fmake_charset): Add missing else.
8865
8866 2001-04-23  Ben Wing  <ben@xemacs.org>
8867
8868         * event-msw.c (FAKE_MOD_QUIT):
8869         * event-msw.c (mswindows_dequeue_dispatch_event):
8870         * event-msw.c (mswindows_wnd_proc):
8871         * event-msw.c (emacs_mswindows_quit_p):
8872         Get critical quit working.
8873
8874 2001-05-05  Ben Wing  <ben@xemacs.org>
8875
8876         * console-msw.h:
8877         * device-msw.c:
8878         * device-msw.c (mswindows_get_default_margin):
8879         * frame-msw.c (mswindows_size_frame_internal):
8880         * frame-msw.c (msprinter_init_frame_1):
8881         * frame-msw.c (vars_of_frame_mswindows):
8882         Change top/bottom margin defaults to 0.5 inches.
8883
8884 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8885
8886         Fix link error with gcc 3.0 on Linux.
8887         * terminfo.c (UP): Remove.
8888         * terminfo.c (BC): Remove.
8889         * terminfo.c (PC): Remove.
8890         They weren't used, and in any case, these symbols should be
8891         defined in the *library*.
8892
8893 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8894
8895         * s/aix4.h: Fix crash with xlc -O3.
8896         Improve comment explaining how -O3 works.
8897
8898 2001-04-15  Ben Wing  <ben@xemacs.org>
8899
8900         * event-stream.c:
8901         * event-stream.c (Fnext_event):
8902         * event-stream.c (is_scrollbar_event):
8903         * event-stream.c (execute_command_event):
8904         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8905         crash' problem.  His fix introduces other problems.  We filter
8906         out scrollbar events specifically, making them somewhat invisible
8907         to command-building, and not appearing in `this-command-keys'.
8908         More work is still needed (see comments in event-stream.c), but
8909         this fixes all the major problems.
8910
8911 2001-04-20  Ben Wing  <ben@xemacs.org>
8912
8913         * .cvsignore: Added stuff for Windows.
8914
8915 2001-04-28  Ben Wing  <ben@xemacs.org>
8916
8917         * buffer.c (Ferase_buffer):
8918         * editfns.c (buffer_insert1):
8919         * editfns.c (Finsert_before_markers):
8920         * editfns.c (Finsert_string):
8921         * editfns.c (Finsert_char):
8922         * editfns.c (Fdelete_region):
8923         * editfns.c (Fwiden):
8924         * editfns.c (Fnarrow_to_region):
8925         remove bogus lines setting zmacs_region_stays to 0.
8926         
8927 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8928
8929         * process-unix.c (unix_open_network_stream): If connect() fails
8930         invalidate file descriptor after closing it.
8931
8932 2001-03-08  Mike Alexander  <mta@arbortext.com>
8933
8934         * event-msw.c (mswindows_need_event_in_modal_loop):
8935         Don't dispatch a message if we didn't get one.
8936         (mswindows_need_event):
8937         Terminate the correct process when one exits instead of the first
8938         one on Vprocess_list and look for process termination when in
8939         mswindows_protect_modal_loop.
8940
8941 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8942
8943         * XEmacs 21.4.1 "Copyleft" is released.
8944
8945 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8946
8947         * input-method-motif.c (XIM_delete_frame): New callback.
8948         (XIM_init_frame): Register it.
8949
8950 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8951
8952         * XEmacs 21.4.0 "Solid Vapor" is released.
8953
8954 2001-04-15  Ben Wing  <ben@xemacs.org>
8955
8956         * cmdloop.c (call_command_loop):
8957         Fix braino in bit-rotting code.
8958         
8959 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8960
8961         * extents.c (Fset_extent_endpoints): Force creation of extent info
8962         in buffer_or_string.
8963
8964         * extents.c (process_extents_for_insertion_mapper): Correctly
8965         check for open-open zero-length extents.
8966
8967 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8968
8969         * lisp.h: New typedefs Memory_count, Element_count.
8970         * regex.c:
8971         * regex.h:
8972         Sign-compare warning elimination: several unsigned -> signed.
8973         Based on work by Ben Wing <ben@xemacs.org>.
8974
8975 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8976
8977         * XEmacs 21.2.47 "Zephir" is released.
8978
8979 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8980
8981         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8982
8983 2001-04-03  Mike Sperber <mike@xemacs.org>
8984
8985         * search.c: Revert previous patch due because of release.
8986
8987 2001-03-30  Ben Wing  <ben@xemacs.org>
8988
8989         * s\cygwin32.h:
8990         Add missing killpg prototype.
8991
8992         * elhash.c:
8993         Add a comment about fixing problems when a new entry is added
8994         while mapping.
8995
8996         * frame-msw.c (mswindows_init_frame_1):
8997         Fix compile warnings.
8998
8999         * menubar.c (vars_of_menubar):
9000         Provide `menu-accelerator-support' to indicate that we properly
9001         support %_ in menu specifications, so that package code can
9002         conditionalize on this (and remove %_ from menu specifications
9003         on older versions).
9004
9005         * event-msw.c:
9006         * scrollbar-msw.c:
9007         * scrollbar-msw.c (can_scroll):
9008         * scrollbar-msw.h:
9009         Fix handling of mouse wheel under Windows to follow standards --
9010         now scrolls window under pointer, not selected window.
9011
9012 2001-03-31  Mike Sperber <mike@xemacs.org>
9013
9014         * search.c (Freplace_match): Support FSF-style specification of
9015         match subexpression when applied to a buffer.
9016
9017 2001-03-15  Martin Buchholz  <martin@xemacs.org>
9018
9019         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
9020         function to modify KEYMAP, so map over a copy of the hash table.
9021
9022 2001-03-21  Martin Buchholz <martin@xemacs.org>
9023
9024         * XEmacs 21.2.46 "Urania" is released.
9025
9026 2001-03-20  Dan Holmsand  <dan@eyebee.com>
9027
9028         * realpath.c (xrealpath): Make file-truename work with symlinks to
9029         /cygdrive paths on cygwin. Always lowercase drive-letters on
9030         native windows.
9031         (cygwin_readlink): Don't try to find canonical filename unless
9032         file exists.
9033
9034 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
9035
9036         * ChangeLog: Log GTK merge.
9037
9038         * dumper.c:
9039         * select-x.c:
9040         * specifier.c:
9041         * symeval.h:
9042         Revert gratuitous whitespace changes from GTK merge.
9043
9044         * emacs.c: Document end of complex #ifdef @ l. 1495.
9045
9046
9047 2001-03-12  Andy Piper  <andy@xemacs.org>
9048
9049         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
9050         have to do likewise.
9051
9052 2001-03-12  Andy Piper  <andy@xemacs.org>
9053
9054         * sysdep.c: we only support mingw now.
9055
9056 2001-03-09  Andy Piper  <andy@xemacs.org>
9057
9058         * unexcw.c (copy_executable_and_dump_data_section): making approx
9059         overrun a warning only.
9060
9061 2001-03-10  William M. Perry  <wmperry@aventail.com>
9062
9063         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
9064         satisfy Stephen's identical-after-cpp plea.
9065
9066 2001-03-02  Ben Wing  <ben@xemacs.org>
9067
9068         * cmds.c:
9069         * cmds.c (Fforward_char):
9070         * syntax.c:
9071         * window.c:
9072
9073         Augment documentation of the most common motion commands to make
9074         note of the shifted-motion support.
9075         
9076 2001-03-02  Ben Wing  <ben@xemacs.org>
9077
9078         * nt.c (mswindows_fstat):
9079         * nt.c (mswindows_stat):
9080         * search.c (boyer_moore):
9081         Fix compile warnings under Windows.
9082         
9083         * sysdep.c (sys_readdir):
9084         Fix buggy filename-conversion code under Mule.
9085
9086 2001-03-09  William M. Perry  <wmperry@aventail.com>
9087
9088         * Makefile.in.in:
9089         * config.h.in:
9090         * console.c:
9091         * console.h:
9092         * device.c:
9093         * device.h:
9094         * dragdrop.c:
9095         * emacs.c:
9096         * event-stream.c:
9097         * events.c:
9098         * events.h:
9099         * faces.c:
9100         * frame.h:
9101         * general-slots.h:
9102         * glyphs.c:
9103         * gutter.c:
9104         * inline.c:
9105         * lisp.h:
9106         * lrecord.h:
9107         * make-src-depend:
9108         * redisplay-output.c:
9109         * redisplay.c:
9110         * symsinit.h:
9111         * sysfile.h:
9112         * toolbar.c:
9113         * window.c:
9114         The Great GTK Merge.
9115
9116         * ChangeLog.GTK:
9117         * console-gtk.c:
9118         * console-gtk.h:
9119         * device-gtk.c:
9120         * emacs-marshals.c:
9121         * emacs-widget-accessors.c:
9122         * event-gtk.c:
9123         * frame-gtk.c:
9124         * gccache-gtk.c:
9125         * gccache-gtk.h:
9126         * glade.c:
9127         * glyphs-gtk.c:
9128         * glyphs-gtk.h:
9129         * gtk-glue.c:
9130         * gtk-xemacs.c:
9131         * gtk-xemacs.h:
9132         * gui-gtk.c:
9133         * gui-gtk.h:
9134         * menubar-gtk.c:
9135         * native-gtk-toolbar.c:
9136         * objects-gtk.c:
9137         * objects-gtk.h:
9138         * redisplay-gtk.c:
9139         * scrollbar-gtk.c:
9140         * scrollbar-gtk.h:
9141         * select-gtk.c:
9142         * toolbar-gtk.c:
9143         * ui-byhand.c:
9144         * ui-gtk.c:
9145         * ui-gtk.h:
9146         The Great GTK Merge: new files.
9147
9148 2001-02-26  Ben Wing  <ben@xemacs.org>
9149
9150         Reapplied Lstream change.
9151
9152 2001-02-26  Ben Wing  <ben@xemacs.org>
9153
9154         Undid the last change, since it is more controversial than I
9155         thought.  It should be back in at some point soon.
9156         
9157 2001-02-25  Ben Wing  <ben@xemacs.org>
9158
9159         * buffer.c:
9160         * callproc.c (Fold_call_process_internal):
9161         * event-msw.c (ntpipe_slurp_reader):
9162         * event-msw.c (ntpipe_shove_writer):
9163         * event-msw.c (winsock_reader):
9164         * event-msw.c (winsock_writer):
9165         * file-coding.c:
9166         * file-coding.c (detect_eol_type):
9167         * file-coding.c (detect_coding_type):
9168         * file-coding.c (determine_real_coding_system):
9169         * file-coding.c (Fdetect_coding_region):
9170         * file-coding.c (decoding_reader):
9171         * file-coding.c (decoding_writer):
9172         * file-coding.c (mule_decode):
9173         * file-coding.c (Fdecode_coding_region):
9174         * file-coding.c (encoding_reader):
9175         * file-coding.c (encoding_writer):
9176         * file-coding.c (mule_encode):
9177         * file-coding.c (Fencode_coding_region):
9178         * file-coding.c (detect_coding_sjis):
9179         * file-coding.c (decode_coding_sjis):
9180         * file-coding.c (encode_coding_sjis):
9181         * file-coding.c (detect_coding_big5):
9182         * file-coding.c (decode_coding_big5):
9183         * file-coding.c (encode_coding_big5):
9184         * file-coding.c (detect_coding_ucs4):
9185         * file-coding.c (decode_coding_ucs4):
9186         * file-coding.c (encode_coding_ucs4):
9187         * file-coding.c (detect_coding_utf8):
9188         * file-coding.c (decode_coding_utf8):
9189         * file-coding.c (encode_coding_utf8):
9190         * file-coding.c (detect_coding_iso2022):
9191         * file-coding.c (decode_coding_iso2022):
9192         * file-coding.c (encode_coding_iso2022):
9193         * file-coding.c (decode_coding_no_conversion):
9194         * file-coding.c (encode_coding_no_conversion):
9195         * glyphs-x.c (write_lisp_string_to_temp_file):
9196         * gpmevent.c (tty_get_foreign_selection):
9197         * lisp.h:
9198         * lstream.c:
9199         * lstream.c (Lstream_flush_out):
9200         * lstream.c (Lstream_adding):
9201         * lstream.c (Lstream_write_1):
9202         * lstream.c (Lstream_write):
9203         * lstream.c (Lstream_raw_read):
9204         * lstream.c (Lstream_read_more):
9205         * lstream.c (Lstream_read):
9206         * lstream.c (Lstream_unread):
9207         * lstream.c (Lstream_fputc):
9208         * lstream.c (stdio_reader):
9209         * lstream.c (stdio_writer):
9210         * lstream.c (filedesc_reader):
9211         * lstream.c (filedesc_writer):
9212         * lstream.c (lisp_string_reader):
9213         * lstream.c (struct fixed_buffer_stream):
9214         * lstream.c (make_fixed_buffer_input_stream):
9215         * lstream.c (make_fixed_buffer_output_stream):
9216         * lstream.c (fixed_buffer_reader):
9217         * lstream.c (fixed_buffer_writer):
9218         * lstream.c (struct resizing_buffer_stream):
9219         * lstream.c (resizing_buffer_writer):
9220         * lstream.c (dynarr_writer):
9221         * lstream.c (lisp_buffer_reader):
9222         * lstream.c (lisp_buffer_writer):
9223         * lstream.h:
9224         * lstream.h (lstream_implementation):
9225         * lstream.h (struct lstream):
9226         * md5.c (Fmd5):
9227         * process-nt.c (nt_send_process):
9228         * process-unix.c (unix_send_process):
9229         
9230         Correct Lstream lossage due to mixing of signed and unsigned
9231         quantities.  All Lstream uses of size_t and ssize_t are now a
9232         single signed data type Lstream_data_count.  This fixes problems
9233         under Windows with sending large quantities of data to a process,
9234         and may well fix other subtle bugs.
9235
9236 2001-02-23  Martin Buchholz <martin@xemacs.org>
9237
9238         * XEmacs 21.2.45 "Thelxepeia" is released.
9239
9240 2001-02-21  Martin Buchholz  <martin@xemacs.org>
9241
9242         * lisp-union.h (XSETINT): 
9243         (XSETCHAR):
9244         (XSETOBJ): 
9245         Reverse previous change of 2001-02-06.
9246
9247 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
9248
9249         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
9250         buffers.
9251         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9252         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
9253         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
9254         * regex.c (POS_AS_IN_BUFFER): removed
9255         * regex.c (re_search_2):
9256         * regex.c (re_match_2):
9257         Don't use an offset of 1 when calculating buffer positions, since
9258         `BI_BUF_BEGV' does it already.
9259
9260 2001-02-18  Wim Dumon  <wim@easics.be>
9261
9262         * insdel.c (prepare_to_modify_buffer): Also check for
9263         supersession when clash-detection is enabled. 
9264
9265 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
9266
9267         * regex.c (re_match_2_internal):
9268         Convert temp characters from 'const unsigned char' to 're_char'.
9269         Fix crashing bug with extended characters under mule.
9270         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
9271         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
9272         font-lock, pdump, and new syntax-table code.
9273         * syntax.c (find_start_of_comment):
9274         (find_end_of_comment):
9275         (forward-comment):
9276         Fix crashing bugs involving moving beyond end of buffer.
9277         * syntax.c (find_start_of_comment):
9278         Fixed logic to allow proper detection of cases where the same
9279         character is used to end both a two-char comment start and a
9280         two-char comment end sequence. Fixes `(forward-comment -1)'.
9281         * syntax.c (find_start_of_comment):
9282         Return position just past last comment-end character for all cases
9283         (previously was only done for two-char comment-end sequences).
9284         * syntax.c (forward-comment):
9285         Take value returned from `find_end_of_comment', rather than
9286         incrementing it.
9287         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9288         Properly deal with BUFFERP (syntax_cache.object)
9289
9290 2001-02-17  Martin Buchholz  <martin@xemacs.org>
9291
9292         * alloc.c (Fgarbage_collect): 
9293         * alloc.c (make_bit_vector_from_byte_vector):
9294         -Wsign-compare-correctness.
9295
9296 2001-02-16  Martin Buchholz  <martin@xemacs.org>
9297
9298         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
9299         (XSETCHAR): Likewise.
9300         (XSETOBJ): Likewise.
9301
9302 2001-02-15  Martin Buchholz  <martin@xemacs.org>
9303
9304         * mule-canna.c (canna-func-delete_previous): 
9305         Rename to canna-func-delete-previous.
9306
9307 2001-02-14  Martin Buchholz  <martin@xemacs.org>
9308
9309         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
9310
9311 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
9312
9313         * font-lock.c (find_context): Fix C++ compile errors introduced by
9314         recent patch
9315
9316 2001-02-13  Martin Buchholz  <martin@xemacs.org>
9317
9318         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
9319         pragma, but earlier ones barf on the same pragma.
9320
9321 2001-02-06  Mike Sperber <mike@xemacs.org>
9322
9323         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
9324         `configure-mule-lisp-directory'.
9325
9326 2001-02-12  Martin Buchholz  <martin@xemacs.org>
9327
9328         Make sure dump-id.c is compiled in the same way as other .c's.
9329         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
9330         * dump-id.h: Remove.
9331         * emacs.c: Move dump-id.h into dumper.h.
9332         * dumper.h: Move dump-id.h into dumper.h.
9333         * Makefile.in.in:
9334         Use standard .c.o rule for building dump-id.o.
9335         Remove preprocessor flags from link command.
9336         Add dump-id.o to ${otherobjs} if PDUMP.
9337
9338 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
9339
9340         Port FSF 20.7 syntax table improvements.
9341         * syntax.c.
9342         * syntax.h.
9343
9344         Fixups for new syntax table stuff.
9345         * dired.c: Include syntax.c.
9346         (Fdirectory_files): Initialize regex_match_object and
9347         regex_emacs_buffer.
9348         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9349         and Fget_char_property.
9350
9351         Use ported FSF 20.7 syntax table improvements.
9352         * font-lock.c.
9353         * regex.c.
9354         * search.c.
9355         
9356 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9357
9358         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9359         Unixware's enum boolean from sys/types.h.
9360
9361 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9362
9363         Fix support for building with latest Purify.
9364         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9365         (PURIFY_FLAGS): Likewise.
9366
9367 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9368
9369         * fileio.c (lisp_string_set_file_times): New.
9370         * fileio.c (Fcopy_file): Use it.
9371         Fixes bug:
9372         (copy-file filename non-ascii-filename t t)
9373         ==> No such file or directory, non-ascii-filename
9374
9375 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9376
9377         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9378         USHRT_MAX seems clearer than ~0 anyways.
9379
9380 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9381
9382         dumper improvements.  Inspired by Olivier.
9383         * dumper.c (pdump_max_align): New.
9384         * dumper.c (pdump_add_entry): Use pdump_max_align.
9385         * dumper.c (pdump_get_entry_list): Likewise.
9386         * dumper.c (pdump_scan_by_alignment): Likewise.
9387         Don't iterate through unnecessary alignments.
9388         * dumper.c (pdump_file_get): No need to align result of malloc().
9389         * dumper.c (pdump_mallocadr): Remove.  
9390         The result of malloc() is guaranteed to be maximally aligned.
9391         * dumper.c: s/elmt/elt/g;
9392         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9393         * dumper.c (pdump_alert_undump_object): Likewise.
9394         * dumper.c (pdump_align_table): 
9395         Don't support alignments > 64.
9396         Store ALIGNOF's, not shift counts, in table.
9397
9398 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9399
9400         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9401         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9402         * systime.h: Use HAVE_UTIME.
9403         * sysdep.c (struct utimbuf): Remove.
9404         * sysdep.c (set_file_times): Prefer utime() to utimes().
9405         * config.h.in (HAVE_UTIME): New.
9406         * config.h.in (HAVE_UTIME_H): Remove.
9407         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9408
9409 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9410
9411         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9412
9413 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9414
9415         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9416
9417 2001-02-08  Martin Buchholz <martin@xemacs.org>
9418
9419         * XEmacs 21.2.44 "Thalia" is released.
9420
9421 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9422
9423         Fixes crashes in kill-emacs on some systems.
9424         * process-unix.c (unix_kill_child_process):
9425         It's OK for kill() to fail with ESRCH.
9426
9427 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9428
9429         Contortions to make .gdbinit tricks work on most systems.
9430         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9431         * alloc.c (dbg_valmask): Make non-const.
9432         * alloc.c (dbg_typemask): Make non-const.
9433         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9434         * alloc.c (dbg_valbits): Make non-const.
9435         * alloc.c (dbg_gctypebits): Make non-const.
9436         * .gdbinit (decode_object): Make it work with AIX cc.
9437
9438 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9439
9440         * elhash.c (make_general_lisp_hash_table):
9441         Use simpler and more efficient calloc to clear entries.
9442
9443 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9444
9445         * window.c (window_scroll): Work around an AIX C compiler bug.
9446         Fixes 'scroll-up' does nothing problem with xlC.
9447
9448 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9449
9450         * .gdbinit: Remove obsolete comment.
9451
9452 2001-01-31  Mike Alexander  <mta@arbortext.com>
9453
9454         * select.c (Fown_selection_internal): Set owned_p for device
9455         method correctly.
9456
9457 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9458
9459         Port to g++ 2.97.
9460         "not" cannot be used as a macro name as it is an operator in C++
9461         * config.h.in: Stop #defining `not'.
9462         * chartab.c (check_category_char): not ==> not_p
9463         * chartab.h: Likewise.
9464         * regex.c (re_match_2_internal): Likewise.
9465
9466 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9467
9468         * lisp-disunion.h: Fix up comments.
9469
9470 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9471
9472         * keymap.c (define_key_check_and_coerce_keysym):
9473         (syms_of_keymap):
9474         Support mouse-6 and mouse-7 bindings in the obvious way.
9475
9476 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9477
9478         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9479
9480 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9481
9482         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9483         Previous patch missed DEFVAR_INT_MAGIC.
9484         Make sure future DEFVAR_foo use correct types.
9485         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9486         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9487         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9488         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9489         * (DEFVAR_INT): Likewise.
9490         * redisplay.c (vertical_clip): Should be of type Fixnum.
9491         * redisplay.c (horizontal_clip): Likewise.
9492         * lisp.h (dump_add_opaque_int): New.
9493         (dump_add_opaque_fixnum): New.
9494
9495 2001-01-29  Andy Piper  <andy@xemacs.org>
9496
9497         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9498         since they can be eval'ed
9499
9500 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9501
9502         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9503         Oops, XEmacs redefines `class'.  Use `typename' instead.
9504
9505 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9506
9507         * dumper.c: Fix C++ compile errors.
9508
9509 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9510
9511         * tparam.c: Use correct prototypes.
9512
9513 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9514
9515         * sysproc.h: #include util.h for NetBSD's openpty.
9516
9517 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9518
9519         More 64-bit correctness.
9520         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9521         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9522         Fix up comments.
9523         This finally finishes the 64-bit SGI port.
9524         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9525         * symbols.c: Fix up comments and type casts.
9526         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9527         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9528         * symeval.h (Fixnum): New type.
9529         * symeval.h (symbol_value_type): Fix up comment.
9530
9531         * commands.h:
9532         * nt.c:
9533         * emacs.c:
9534         * data.c:
9535         * redisplay.c:
9536         * abbrev.c:
9537         * dired-msw.c:
9538         * event-Xt.c:
9539         * eldap.c:
9540         * window.c:
9541         * sound.c:
9542         * event-stream.c:
9543         * eval.c:
9544         * buffer.c:
9545         * mule-canna.c: A million DEFVAR_INTs here...
9546         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9547         * extents.c:
9548         * cmdloop.c:
9549         * lisp.h:
9550         * select-x.c:
9551         * console-x.h:
9552         * event-msw.c:
9553         * mule-wnnfns.c:
9554         * hpplay.c:
9555         * ralloc.c:
9556         * alloc.c:
9557         * keymap.c:
9558         * profile.c:
9559         s/int/Fixnum/g in DEFVAR_INT declarations.
9560
9561 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9562
9563         Port pdump to SGI alignment-sensitive environment.
9564         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9565         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9566         properly aligned.
9567         Define and use aligned reading and writing macros.
9568         Use buffered stdio instead of posix i/o for faster dumping.
9569         Eliminate kludgy 256 byte space for header.
9570         Read and write from dump file using structs for alignment safety.
9571         * dumper.c (pdump_align_stream): New.
9572         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9573         * dumper.c (PDUMP_READ_ALIGNED): New.
9574         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9575         * dumper.c (pdump_static_Lisp_Object): New struct.
9576         * dumper.c (pdump_static_pointer): New struct.
9577         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9578         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9579         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9580         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9581
9582         * dumper.c (pdump_backtrace):
9583         * dumper.c (pdump_get_indirect_count):
9584         * dumper.c (pdump_register_object):
9585         * dumper.c (pdump_register_struct):
9586         * dumper.c (pdump_reloc_one):
9587         * dumper.c (pdump_scan_by_alignment):
9588         * dumper.c (pdump_dump_from_root_struct_ptrs):
9589         * dumper.c (pdump_dump_opaques):
9590         * dumper.c (pdump_dump_rtables):
9591         * dumper.c (pdump_dump_from_root_objects):
9592         * dumper.c (pdump):
9593         * dumper.c (pdump_load_finish):
9594         Use aligned reading and writing.
9595
9596         * dumper.c (pdump_free): Make static.
9597         * dumper.c (pdump_hFile): Likewise.
9598         * dumper.c (pdump_hMap): Likewise.
9599
9600 2001-01-26  Martin Buchholz <martin@xemacs.org>
9601
9602         * XEmacs 21.2.43 "Terspichore" is released.
9603
9604 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9605
9606         Type fiddling for window_config.saved_windows_count
9607         * window.c (struct window_config): 
9608         Make saved_windows_count member unsigned.
9609         * window.c (sizeof_window_config_for_n_windows): 
9610         Make parameter unsigned.
9611         * window.c (mark_window_config):
9612         * window.c (window_config_equal):
9613         * window.c (free_window_configuration):
9614         * window.c (Fset_window_configuration):
9615         * window.c (count_windows):
9616         * window.c (Fcurrent_window_configuration):
9617         * window.c (reinit_vars_of_window):
9618         Update all callers and users.
9619
9620 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9621
9622         Alignment correctness for flexible arrays.
9623         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9624         Make alignment-correct. Add interesting comments.
9625         * alloc.c (size_vector):
9626         * alloc.c (make_vector_internal):
9627         * alloc.c (make_bit_vector_internal):
9628         * alloc.c (sweep_bit_vectors_1):
9629         * fns.c (size_bit_vector):
9630         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9631         * window.c (sizeof_window_config_for_n_windows): 
9632         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9633
9634 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9635
9636         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9637
9638 2001-01-23  Andy Piper  <andy@xemacs.org>
9639
9640         * select.c (Fown_selection_internal): pass owned_p
9641
9642         * select-msw.c (mswindows_own_selection): New Signature.
9643
9644         * console.h (struct console_methods): add owned_p to
9645         _own_selection.
9646
9647         * select-x.c (x_own_selection): pass owned_p
9648         (hack_motif_clipboard_selection): use owned_p
9649         (vars_of_select_x): new variable -
9650         x_selection_strict_motif_ownership.
9651
9652 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9653
9654         * specifier.h (specifier_data_offset): Remove pointless parens.
9655         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9656
9657 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9658
9659         Make Lisp_Object sizeof methods be alignment-correct.
9660         pdump must restore objects to the same alignment as the C compiler
9661         assumes.  It really matters on SGIs.
9662         * lstream.c (aligned_sizeof_lstream): New.
9663         (sizeof_lstream): Use aligned_sizeof_lstream.
9664         (Lstream_new): Likewise.
9665         * opaque.c (aligned_sizeof_opaque): New.
9666         (sizeof_opaque): Use aligned_sizeof_opaque.
9667         (make_opaque): Likewise.
9668         * specifier.c (aligned_sizeof_specifier): New.
9669         (sizeof_specifier): Use aligned_sizeof_specifier.
9670         (make_specifier_internal): Likewise.
9671
9672 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9673
9674         * lstream.h (struct lstream): Use max_align_t for trailing data.
9675         * specifier.h (struct Lisp_Specifier): Likewise.
9676
9677 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9678
9679         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9680         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9681         (CCL_SUSPEND): Likewise.
9682         (CCL_INVALID_CMD): Likewise.
9683         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9684         (ccl_driver): Likewise.
9685         (CCL_WRITE_CHAR): Macro hygiene.
9686         (CCL_WRITE_STRING): Macro hygiene.
9687
9688 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9689
9690         Port "portable" dumper to SunOS 4 and HP-UX.
9691         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9692         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9693         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9694
9695 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9696
9697         * lisp.h (ALIGNOF): A better definition for C++.
9698
9699 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9700
9701         Macro hygiene.
9702         Fix printf warnings: int format, long int arg.
9703         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9704         (PUSH_FAILURE_POINT): Use correct printf formats.
9705         (POP_FAILURE_POINT): Use correct printf formats.  
9706         Use do {...} while (0)
9707
9708 2001-01-20  Martin Buchholz <martin@xemacs.org>
9709
9710         * XEmacs 21.2.42 "Poseidon" is released.
9711
9712 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9713
9714         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9715
9716 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9717
9718         De-kludgify FIXED_TYPE free list frobbing.
9719         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9720         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9721         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9722         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9723         * alloc.c (LRECORD_FREE_P): New.
9724         * alloc.c (MARK_LRECORD_AS_FREE): New.
9725         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9726         * alloc.c (STRUCT_FREE_P): Deleted.
9727         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9728         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9729         * alloc.c (STRING_CHARS_FREE_P): New.
9730         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9731         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9732         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9733         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9734         * alloc.c (resize_string): Use new definitions.
9735         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9736         * alloc.c (verify_string_chars_integrity): Use new definitions.
9737         * alloc.c (compact_string_chars): Use new definitions.
9738         * alloc.c: Update monster comments.
9739         * lrecord.h (lrecord_type): Add some new lrecord types for
9740         alloc.c's use.
9741
9742 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9743
9744         Improve alignment hackery.
9745         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9746         (max_align_t): Moved from opaque.h - general purpose.
9747         (ALIGN_PTR): Use size_t, not long.
9748         * opaque.h (max_align_t): Move to lisp.h.
9749
9750 2001-01-18  Norbert Koch  <nk@LF.net>
9751
9752         * gui.h: Fix and add prototypes to fix build problems.
9753
9754 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9755
9756         temacs is going away, so `dump-temacs' is now a bad name.
9757         * .dbxrc (dump-temacs): Rename to `dmp'.
9758         * .gdbinit (dump-temacs): Rename to `dmp'.
9759
9760 2001-01-17  Andy Piper  <andy@xemacs.org>
9761
9762         * glyphs.c (print_image_instance): comment to make martin happy.
9763
9764         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9765         change.
9766
9767         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9768         activation.
9769         (mswindows_tab_control_redisplay): warning suppression.
9770
9771         * glyphs-widget.c (widget_update): re-write to cope with updated
9772         items.
9773         (widget_instantiate): use new gui_item functions.
9774         (tab_control_update): deleted.
9775         (progress_gauge_update): deleted.
9776         (image_instantiator_progress_guage): take out update reference.
9777         (image_instantiator_tree_view): ditto.
9778         (image_instantiator_tab_control): ditto.
9779
9780         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9781         Right the new way.
9782         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9783         return whether anything was changed.
9784         (update_gui_item_keywords): as it sounds.
9785
9786         * gui.h: declare widget_gui_parse_item_keywords.
9787
9788         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9789         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9790
9791 2001-01-17  Martin Buchholz <martin@xemacs.org>
9792
9793         * XEmacs 21.2.41 "Polyhymnia" is released.
9794
9795 2001-01-16  Didier Verna  <didier@xemacs.org>
9796
9797         * glyphs.c (image_instantiate): don't use fallbacks when
9798         instantiating a face's background pixmap by inheritance.
9799
9800 2001-01-14  Mike Sperber <mike@xemacs.org>
9801
9802         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9803         Conditionalize accordingly.
9804
9805 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9806
9807         * dumper.c (pdump_file_get): Fix a compiler warning.
9808
9809 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9810
9811         Make Purify happy when pdumping.
9812         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9813         iniitalizing all bits of new lisp object memory.
9814         * symbols.c (Fmake_local_variable): Likewise.
9815         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9816         * symbols.c (Fdefvaralias): Likewise.
9817         * mule-charset.c (vars_of_mule_charset): Likewise.
9818
9819 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9820         Add the `-nd' flag when running pre-dump operations under the debugger.
9821         * .dbxrc (run-temacs): Add `-nd'.
9822         * .dbxrc (update-elc): Likewise.
9823         * .dbxrc (dump-temacs): Likewise.
9824         * .gdbinit (run-temacs): Likewise.
9825         * .gdbinit (check-temacs): Likewise.
9826         * .gdbinit (update-elc): Likewise.
9827         * .gdbinit (dump-temacs): Likewise.
9828
9829 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9830
9831         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9832         export OBJECT_MODE=64
9833         configure --pdump --use-union-type=no
9834         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9835         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9836
9837         * miscplay.c (sndcnv8U_2mono):
9838         Avoid two uses of `++' in the same expression.
9839         Suppresses a GCC warning.
9840
9841 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9842
9843         Make sure future compilers don't miscompile alloc.c.
9844         * alloc.c:
9845         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9846         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9847
9848 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9849
9850         * dumper.c: A little post-pdump-rename comment fixup.
9851
9852 2001-01-09  Jerry James  <james@eecs.ku.edu>
9853
9854         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9855
9856 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9857
9858         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9859         script:
9860         #!/bin/sh
9861         replace_symbol () {
9862           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9863         }
9864
9865         replace_symbol pdump_wire_lists pdump_weak_object_chains
9866         replace_symbol pdump_wire_list dump_add_weak_object_chain
9867
9868         replace_symbol pdump_wires pdump_root_objects
9869         replace_symbol pdump_wire dump_add_root_object
9870
9871         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9872         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9873
9874         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9875         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9876         replace_symbol dumpstructinfo pdump_root_struct_ptr
9877         replace_symbol dumpstruct dump_add_root_struct_ptr
9878
9879         replace_symbol dumpopaque dump_add_opaque
9880         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9881         replace_symbol dumpopaqueinfos pdump_opaques
9882         replace_symbol dumpopaqueinfo pdump_opaque
9883
9884         replace_symbol nb_structdump nb_root_struct_ptrs
9885         replace_symbol nb_opaquedump nb_opaques
9886
9887         replace_symbol align_table pdump_align_table
9888         replace_symbol dump_header pdump_header
9889
9890         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9891         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9892
9893
9894 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9895
9896         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9897         optimizing bytecount_to_charcount().
9898
9899 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9900
9901         * config.h.in:
9902         (HAVE_DLFCN_H): Removed.
9903         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9904
9905 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9906
9907         Portable dumper maintainability improvements.
9908         * alloc.c (staticpro):
9909         * alloc.c (staticpro_nodump):
9910         * alloc.c (garbage_collect_1):
9911         * alloc.c (reinit_alloc_once_early):
9912         * alloc.c (init_alloc_once_early):
9913         * alloc.c: Move dumper functions to alloc.c.
9914         * dumper.c (pdump_backtrace):
9915         * dumper.c (pdump_dump_structs):
9916         * dumper.c (pdump_dump_opaques):
9917         * dumper.c (pdump_dump_rtables):
9918         * dumper.c (pdump_dump_wired):
9919         * dumper.c (pdump):
9920         * dumper.c (pdump_load_check):
9921         * dumper.c (pdump_load_finish):
9922         * dumper.c (pdump_file_unmap):
9923         * dumper.c (pdump_file_get):
9924         * dumper.c (pdump_resource_free):
9925         * dumper.c (pdump_resource_get):
9926         * dumper.c (pdump_file_free):
9927         * dumper.c (pdump_file_try):
9928         * dumper.c (pdump_load):
9929         Remove fixed size limits on staticpro(), staticpro_nodump(),
9930         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9931         Remove custom code for dumping lrecord_implementations_table - use
9932         dumpopaque instead.
9933         Remove (most of the) custom code for dumping staticpros - dump it
9934         like any other dynarr.
9935
9936         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9937         * dumper.c: Moved functions from alloc.c.
9938         * alloc.c (dumpstruct): Moved to dumper.c.
9939         * alloc.c (dumpopaque): Likewise.
9940         * alloc.c (pdump_wire): Likewise.
9941         * alloc.c (pdump_wire_list): Likewise.
9942
9943         * lisp.h (Dynarr_sizeof): New.
9944         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9945         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9946         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9947
9948         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9949         * lisp.h (dumpopaque): ditto.
9950         * lisp.h (pdump_wire): ditto.
9951         * lisp.h (pdump_wire_list): ditto.
9952
9953 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9954
9955         * make-src-depend (PrintPatternDeps):
9956         Use `sort' to make output independent of perl version.
9957
9958 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9959
9960         Port to Netbsd 1.5.
9961         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9962         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9963
9964 2001-01-03  Didier Verna  <didier@xemacs.org>
9965
9966         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9967         that `focus_frame' is alive before thinking of calling
9968         `redisplay_redraw_cursor' on it.
9969
9970 2001-01-08  Martin Buchholz <martin@xemacs.org>
9971
9972         * XEmacs 21.2.40 is released.
9973
9974 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9975
9976         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9977
9978 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9979
9980         * alloc.c (dbg_valmask): Make const.
9981         * alloc.c (dbg_typemask): Make const.
9982         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9983         * alloc.c (dbg_valbits): Make const.
9984         * alloc.c (dbg_gctypebits): Make const.
9985
9986 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9987
9988         * redisplay-x.c (x_bevel_area):
9989         redisplay.h (struct rune):
9990         Typo fixes in comments.
9991
9992 2001-01-05  Andy Piper  <andy@xemacs.org>
9993
9994         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9995         adjustment.
9996
9997         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9998
9999 2001-01-05  Martin Buchholz  <martin@xemacs.org>
10000
10001         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
10002
10003         * mule-ccl.c (stack_idx_of_map_multiple):
10004         Non const global data must not be initialized!
10005         Found by MIYASHITA Hisashi.
10006
10007 2001-01-02  Andy Piper  <andy@xemacs.org>
10008
10009         * frame.c (change_frame_size): make sure frame size is always
10010         marked as changed.
10011
10012         * glyphs.c (image_instance_layout): minor code reuse.
10013
10014         * window.c (Fcurrent_window_configuration): revert previous
10015         change.
10016
10017 2001-01-02  Martin Buchholz  <martin@xemacs.org>
10018
10019         * glyphs.h:
10020         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
10021
10022 2000-12-31  Andy Piper  <andy@xemacs.org>
10023
10024         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
10025         when widget gets unmapped.
10026
10027         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
10028         function. Make sure widgets losing focus don't just drop it.
10029         (handle_focus_event_1): record the widget with focus.
10030
10031 2000-12-31  Andy Piper  <andy@xemacs.org>
10032
10033         * window.c (allocate_window): use
10034         make_image_instance_cache_hash_table.
10035         (make_dummy_parent): ditto.
10036         (Fset_window_configuration): ditto.
10037
10038         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
10039
10040         * glyphs.c (process_image_string_instantiator): use
10041         INSTANTIATOR_TYPE.
10042         (get_image_instantiator_governing_domain): ditto.
10043         (normalize_image_instantiator): ditto.
10044         (instantiate_image_instantiator): ditto.
10045         (make_image_instance_1): ditto.
10046         (image_instantiate): ditto. Key on glyph *and* instantiator type.
10047         (instantiator_eq_equal): new function for use with instance hash
10048         tables.
10049         (instantiator_eq_hash): ditto.
10050         (make_image_instance_cache_hash_table): create a suitable hash
10051         table for storing image instances.
10052
10053         * elhash.h (hash_table_weakness): new internal weakness type
10054         HASH_TABLE_KEY_CAR_VALUE_WEAK.
10055         declare new functions.
10056
10057         * elhash.c (finish_marking_weak_hash_tables): introduce yet
10058         another weakness type for glyphs.
10059         (make_standard_lisp_hash_table): new function split out from
10060         make_general_lisp_hash_table.
10061         (make_lisp_hash_table): call make_standard_lisp_hash_table.
10062         (hash_table_instantiate): ditto.
10063         (Fmake_hash_table): ditto.
10064
10065 2000-12-31  Martin Buchholz <martin@xemacs.org>
10066
10067         * XEmacs 21.2.39 is released.
10068
10069 2000-12-29  Andy Piper  <andy@xemacs.org>
10070
10071         * menubar.c (menubar_visible_p_changed): signal the frame changed.
10072
10073         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
10074         the frame has changed so that we pick up geometry changes such as
10075         menubar visibility.
10076
10077 2000-12-28  Andy Piper  <andy@xemacs.org>
10078
10079         * lastfile.c (my_ebss): make a char array so we can pad the
10080         bss. Fixes cygwin unexec.
10081
10082         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
10083
10084 2000-12-26  Andy Piper  <andy@xemacs.org>
10085
10086         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
10087         comments and try and be more precise about a non-/SIGIO world.
10088         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
10089         SIGIO.
10090
10091         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
10092         we don't normalize to zero width or height.
10093
10094 2000-12-24  Andy Piper  <andy@xemacs.org>
10095
10096         * Makefile.in.in (ldflags): add -mwindows when appropriate.
10097
10098 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
10099
10100         * s/sco5.h: SCO 5 has pty support.
10101
10102 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
10103
10104         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
10105         input-method-xlib.c contains whole contents of input-method-xfs.c,
10106         so we can use input-method-xlib.c's code for USE_XFONTSET
10107         using #ifdefs.
10108         * input-method-xfs.c: removed.
10109
10110 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
10111
10112         * file-coding.h (enum coding_category_type): reorder enumerators to
10113         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
10114         (now one greater than largest real coding_category_type enumerator).
10115         * file-coding.c (coding_category_symbol, coding_category_by_priority,
10116         coding_category_system, fcd_descriptihon_1, decode_coding_category,
10117         Fcoding_category_list, Fset_coding_priority_list,
10118         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
10119         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
10120
10121 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10122
10123         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
10124         * redisplay-output.c (redisplay_output_window): Clear top of window
10125         when face is changed.
10126         * redisplay-x.c (x_redraw_exposed_window): Call
10127         redisplay_clear_top_of_window.
10128         * redisplay.h: Publish redisplay_clear_top_of_window.
10129
10130 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10131
10132         * buffer.c (Fkill_buffer): Map over all devices.
10133         * window.c (window_loop): Remove UNSHOW_BUFFER code.
10134         (list_windows): New function.
10135         (list_all_windows): Ditto.
10136         (Freplace_buffer_in_windows): Use them.
10137
10138 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
10139
10140         * database.c (berkdb_subtype): Recognize new subtype `queue'.
10141         (Fopen_database): Use `db_create' instead of `db_open'.
10142         (syms_of_database): Initialize Qqueue.
10143
10144 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10145
10146         * buffer.c (common_init_complex_vars_of_buffer): Initialize
10147         buffer_local_face_property.
10148         * buffer.h (struct buffer): New member buffer_local_face_property.
10149         * window.c (Fset_window_buffer):  Mark window's face as changed
10150         when buffer has buffer local face.
10151         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
10152         * objects.c (color_after_change): Set buffer_local_face_property
10153         when locale of face specifier is buffer.
10154         * objects.c (font_after_change): Ditto.
10155         * objects.c (face_boolean_after_change): Ditto.
10156         * glyphs.c (image_after_change): Ditto.
10157
10158 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10159
10160         * nt.c (mswindows_fstat): Report file permissions, volume serial
10161         number, etc. Code adapted from FSF Emacs 20.7.
10162
10163 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10164
10165         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
10166         of stat when we don't have symbolic links, to make sure
10167         mswindows_stat is called on mswindows.
10168
10169 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
10170
10171         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
10172
10173 2000-12-12  Martin Buchholz  <martin@xemacs.org>
10174
10175         * doprnt.c (emacs_doprnt_1): More printing fixes.
10176         Make printing of numbers compatible with libc and FSF Emacs.
10177         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
10178         Use the system printf to do most of the hard work of formatting,
10179         instead of doprnt_1().
10180         Calculate memory to allocate for format string.
10181         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
10182         (doprnt_1): Cleaner code and documentation.
10183
10184 2000-12-01  Jerry James  <james@eecs.ukans.edu>
10185
10186         * Makefile.in.in: Use the loop variable to install headers.
10187
10188 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10189
10190         * window.c (Fsplit_window): Don't invalidate face cache.
10191
10192 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10193
10194         * minibuf.c (Fall_completions): Undo the previous change
10195         which removed checking elements start with space.
10196
10197 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10198
10199         * mule-canna.c: Didier suppression.
10200
10201 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10202
10203         * mule-canna.c: rename static unsigned char buf[] to key_buffer
10204         (warning suppression).  Add English comment translations.
10205
10206 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10207
10208         * unexelfsgi.c (unexec): Better test for mmap failure.
10209
10210 2000-12-05  Martin Buchholz <martin@xemacs.org>
10211
10212         * XEmacs 21.2.38 is released.
10213
10214 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10215
10216         * redisplay.c (bar-cursor): Make a user variable.
10217
10218         * symsinit.h: Add init_postgresql_from_environment.
10219
10220 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10221
10222         * regex.c: Convert to clean C.
10223
10224 2000-12-05  Dan Holmsand  <dan@eyebee.com>
10225
10226         * realpath.c:
10227         Don't #include sysfile.h. Revert to duplicating PATH_MAX
10228         initialization.
10229         (sys_readlink): renamed to system_readlink to avoid conflict with
10230         the other sys_readlink.
10231
10232 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
10233
10234         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
10235
10236 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
10237
10238         * postgresql.c (init_postgresql_from_environment): new function.
10239         (vars_of_postgresql): Move code initializing Lisp variables out and
10240         into init_postgresql_from_environment.
10241         emacs.c (main_1): Call init_postgresql_from_environment if and only
10242         if running a dumped XEmacs.
10243
10244 2000-08-31  Dan Holmsand  <dan@eyebee.com>
10245
10246         * buffer.c: Make find-file-compare-truenames default to true on
10247         windows.
10248
10249         * realpath.c (win32_abs_start):
10250         (cygwin_readlink):
10251         (win32_readlink): New functions.
10252         (xrealpath): Return really real filenames on windows.
10253
10254         * fileio.c (Ffile_truename): Make file-truename work on windows.
10255
10256 2000-11-29  Didier Verna  <didier@xemacs.org>
10257
10258         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
10259         * faces.c (update_face_cachel_data): use it.
10260         * faces.c (add_face_cachel): use it. Complete background pixmap
10261         frobbing in face cache if `update_face_cachel_data' has not done so.
10262
10263 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
10264
10265         * search.c (string_match_1): Don't set last_thing_searched
10266         when search failed.
10267
10268 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
10269
10270         * buffer.c: Include casetab.h
10271         (common_init_complex_vars_of_buffer): Use new case-table object.
10272         * buffer.h: Include casetab.h
10273         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
10274         (DOWNCASE_TABLE_OF): Ditto.
10275         * bufslots.h: Remove char-tables and add case-table.
10276         * casetab.c: Include casetab.h
10277         (CASE_TABLE_P): Removed.
10278         (mark_case_table): New function.
10279         (allocate_case_table): New function.
10280         (Fcase_table_p): Use new case-table.
10281         (case_table_char): New function.
10282         (Fget_case_table): Ditto.
10283         (Fput_case_table): Ditto.
10284         (Fput_case_table_pair): Ditto.
10285         (Fcopy_case_table): Ditto.
10286         (Fcurrent_case_table): Return case-table.
10287         (Fstandard_case_table): Return case-table.
10288         (Fset_case_table): Fix doc-string.
10289         (set_case_table): Use case-table
10290         (syms_of_casetab): DEFSUBR new functions.
10291         (complex_vars_of_casetab): Set up standard case-table.
10292         * casetab.h: New file.
10293         * editfns.c: Include casetab.h
10294         (Fcompare_buffer_substrings): Use case-table.
10295         * inline.c: Include casetab.h
10296         * lisp.h: Remove bogus extern.
10297         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
10298         * search.c: Include casetab.h
10299         (TRANSLATE_ASCII): Removed.
10300         (TRANSLATE): Unconditionally translate character.
10301         (looking_at_1): Use case-table.
10302         (string_match_1): Ditto.
10303         (fast_string_match): Ditto.
10304         (search_command): Ditto.
10305         (search_buffer): Separate boyer_moore.  Check whether
10306         boyer_moore is possible.
10307         (simple_search): New function.
10308         (boyer_moore): Separated from search_buffer. Translate char.
10309
10310 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10311
10312         * regex.c (RE_TR_ASCII): Removed.
10313         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
10314         (PATFETCH): Call PATFETCH_RAW.
10315         (PATFETCH_RAW): Fetch Emchar.
10316         (PATUNFETCH): Decrement charptr.
10317         (GET_BUFFER_SPACE): Rename b to buf_end.
10318         (BUF_PUSH): Ditto.
10319         (BUF_PUSH_2): Ditto.
10320         (BUF_PUSH_3): Ditto.
10321         (EXTEND_BUFFER): Ditto.
10322         (SET_LIST_BIT): Ditto.
10323         (regex_compile): Ditto.  Translate non ASCII char.
10324         (compile_range): Ditto.
10325         (re_search_2): Ditto.
10326         (re_match_2_internal): Compare Emchar.
10327         (bcmp_translate): Ditto.
10328
10329 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
10330
10331         * lisp.h (basic char/int typedefs):  comment improvement.
10332
10333 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
10334
10335         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
10336         unstomp inhibit_site_lisp.  Improve comments.
10337
10338 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
10339
10340         * mule-charset.c (Fcharset_property):  improve type checking, comments.
10341
10342 2000-11-28  Andy Piper  <andy@xemacs.org>
10343
10344         * redisplay-output.c (redisplay_output_subwindow): make sure we do
10345         clipped display for windows in the gutter also.
10346         (redisplay_display_boxes_in_window_p): change semantics of return
10347         codes to be more intuitive.
10348
10349         * gutter.h: declare display_boxes_in_gutter_p.
10350
10351         * gutter.c (display_boxes_in_gutter_p): new function for
10352         redisplay.
10353
10354 2000-11-22  Andy Piper  <andy@xemacs.org>
10355
10356         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10357         autodetect domain.
10358
10359 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10360
10361         * callproc.c (Fold_call_process_internal):
10362         * gpm.c (Freceive_gpm_event):
10363         (tty_get_foreign_selection): Might be just warning supression.
10364         * fileio.c (Fwrite_region_internal):
10365         (Fset_visited_file_modtime):
10366         * keymap.c (event_matches_key_specifier_p):
10367         Initialize GCPROed variable.
10368
10369         * menubar-x.c (command_builder_find_menu_accelerator):
10370         Initialize before use.
10371
10372 2000-11-23  Andy Piper  <andy@xemacs.org>
10373
10374         * unexcw.c (unexec): make the resulting executable executable.
10375
10376 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10377
10378         * doc.c (get_doc_string):
10379         Use size_t, not int, for result of XSTRING_LENGTH.
10380
10381         * cmds.c (Fdelete_char):
10382         * cmds.c (Fpoint_at_eol):
10383         * cmds.c (Fself_insert_command):
10384         Use EMACS_INT, not int, for result of XINT.
10385         Someday, someone will want to insert more than 2**31 identical characters.
10386
10387         * cmds.c (Fdelete_char):
10388         * cmds.c (Fdelete_backward_char):
10389         * syntax.c (Fforward_word):
10390         * syntax.c (Fforward_comment):
10391         Make COUNT argument optional, for consistency with forward-char et al.
10392
10393 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10394
10395         * lisp.h:
10396         * print.c (long_to_string):
10397         Return a useful value: the pointer at end of data written.
10398
10399         * doprnt.c:
10400         Use `static const char * const' for constant strings.
10401         (union printf_arg): Delete `i', `ui' members.
10402         (get_doprnt_args):
10403         (emacs_doprnt_1):
10404         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10405         Do all printf-ing via the `l' specifier.
10406         Use EMACS_INT instead of int.
10407         Optimize.
10408
10409 2000-11-20  Didier Verna  <didier@xemacs.org>
10410
10411         * faces.c (update_face_cachel_data): don't frob the background
10412         pixmap when the window is being created. The face is needed but
10413         does not exist yet.
10414
10415 2000-11-20  Andy Piper  <andy@xemacs.org>
10416
10417         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10418         messing with a debug environment.
10419
10420 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10421
10422         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10423
10424 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10425
10426         * casetab.c (Fcase_table_p): Fix compile error and crash.
10427
10428 2000-11-18  Philip Aston  <philipa@mail.com>
10429
10430         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10431
10432 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10433
10434         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10435         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10436
10437 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10438
10439         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10440         * unexelf.c: Use HAVE_ELF_H.
10441         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10442         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10443         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10444         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10445         for testing.
10446         So this is an unexelfsgi.c from a different line of development.
10447
10448 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10449
10450         * regex.c (RE_TR_ASCII): New function.
10451         (RE_TRANSLATE): Call it.
10452
10453 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10454
10455         * buffer.h (TRT_TABLE_OF): Remove assert.
10456         (IN_TRT_TABLE_DOMAIN): Removed.
10457
10458 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10459
10460         * free-hook.c (log_gcpro):
10461         (show_gcprohist): Add support for GCPRO5.
10462
10463 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10464
10465         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10466
10467 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10468
10469         * symeval.h: Declare flush_all_buffer_local_cache.
10470
10471         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10472         (flush_buffer_local_cache): Added.
10473         (flush_all_buffer_local_cache): Added.
10474
10475         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10476
10477         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10478         (pdump_dump_data): Ditto.
10479         (pdump_reloc_one): Ditto.
10480         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10481         before dumping.
10482
10483
10484 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10485
10486         * buffer.c: Remove if 0'ed entry.
10487         * buffer.h: Rewrite TRT to use char-table.
10488         * bufslots.h: Remove mirror tables.
10489         * casetab.c: Remove mirror tables.
10490         (CASE_TABLE_P): New macro.
10491         (Fcase_table_p): Element of a case table is string or char-table.
10492         (make_mirror_trt_table): Removed.
10493         (set_case_table): Setup char-table from strings for backward
10494         compatibility.
10495         * dired.c (Fdirectory_files):
10496         * dired-msw.c: (mswindows_get_files):
10497         * lisp.h: Change prototype of re_pattern_buffer.
10498         * regex.c: (RE_TRANSLATE): New macro.
10499         (TRANSLATE_P): Ditto.
10500         Change translate to type RE_TRANSLATE_TYPE.
10501         * regex.h: Define RE_TRANSLATE_TYPE
10502         * search.c (TRANSLATE): New macro.
10503         (TRANSLATE_ASCII): New macro.
10504         Translate table is changed to Lisp_Object.
10505         (signal_failure): Inhibit return.
10506
10507 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10508
10509         * device-msw.c:
10510         * eldap.c:
10511         * event-Xt.c:
10512         * event-stream.c:
10513         * print.c:
10514         Do UNGCPRO before return.
10515
10516 2000-11-14  Martin Buchholz <martin@xemacs.org>
10517
10518         * XEmacs 21.2.37 is released.
10519
10520 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10521
10522         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10523         Add comments about discarded return value.
10524
10525 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10526
10527         * callint.c:
10528         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10529
10530 2000-10-27  Andy Piper  <andy@xemacs.org>
10531
10532         * gutter.c (Fset_default_gutter_position): default left and right
10533         gutters to visible.
10534         (calculate_gutter_size): calculate resonable heuristic for left
10535         and right gutter sizes.
10536         (specifier_vars_of_gutter): change left and right gutter sizes to
10537         autodetect.
10538         (calculate_gutter_size_from_display_lines): new function.
10539         (output_gutter): check for resizing on left and right gutters.
10540         (clear_gutter): don't special case top and left gutters.
10541         (specifier_vars_of_gutter): use new signature for
10542         set_specifier_caching.
10543
10544         * glyphs-x.c (x_redisplay_widget): spelling fix.
10545         * glyphs.c (specifier_vars_of_glyphs):
10546         * menubar.c (specifier_vars_of_menubar):
10547         * redisplay.c (specifier_vars_of_redisplay):
10548         * toolbar.c (specifier_vars_of_toolbar):
10549         * window.c (specifier_vars_of_window):
10550         * scrollbar.c (specifier_vars_of_scrollbar):
10551         (complex_vars_of_scrollbar): use new signature for
10552         set_specifier_caching.
10553
10554         * specifier.c (set_specifier_caching): include recompute flag.
10555         (recompute_one_cached_specifier_in_window): always recompute if
10556         flag set.
10557         (recompute_one_cached_specifier_in_frame): ditto.
10558
10559         * specifier.h (struct specifier_caching): add recompute flag.
10560
10561 2000-10-24  Andy Piper  <andy@xemacs.org>
10562
10563         * unexcw.c (copy_executable_and_dump_data_section): add new
10564         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10565         5.0 happy.
10566
10567 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10568
10569         * console-x.h (x_device): New member modifier_release_time.
10570         * event-Xt.c (x_handle_sticky_modifiers):
10571         Bound interval modifier keys are sticky.
10572         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10573         * events.h: extern it.
10574
10575 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10576
10577         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10578
10579 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10580
10581         * event-stream.c (execute_command_event): Preserve current_events
10582         and the like when event is misc-user-event.
10583         Inhibit quit during the call to maybe_echo_keys.
10584
10585 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10586
10587         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10588         symlink when buffer is killed.
10589         (inhibit_clash_detection): New variable.
10590
10591 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10592
10593         * console.c (Fset_input_method): Trigger redisplay on tty.
10594
10595 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10596
10597         * process.c (Fprocess_status): Revert to previous behavior:
10598         (process-status "nosuchprocess") ==> nil
10599
10600 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10601
10602         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10603         Work around another GCC 2.95.2 optimizer bug.
10604
10605 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10606
10607         * process.c (Fget_process): Use LIST_LOOP_2.
10608         (kill_buffer_processes): Use LIST_LOOP_2.
10609
10610         * minibuf.c (Fall_completions):
10611         Delete old non-functional code for FSF fourth argument.
10612
10613         * frame.c (frame_matches_frame_spec):
10614         Renamed from `frame_matches_frametype'.  Update all callers.
10615         (device_matches_device_spec):
10616         Renamed from 'device_matches_console_spec'.  Update all callers.
10617
10618         * doc.c (Fsubstitute_command_keys):
10619         Remove buffer overflow crash.  Small code cleanups.
10620
10621         * casetab.c (check_case_table): Simpler code.
10622
10623         * window.c (Freplace_buffer_in_windows):
10624         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10625         (and similar implementation) as Fdelete_windows_on.
10626         Update all callers.
10627
10628         * alloc.c (Fmake_list):
10629         * alloc.c (make_vector):
10630         * alloc.c (Fmake_vector):
10631         * alloc.c (make_bit_vector):
10632         * alloc.c (Fmake_bit_vector):
10633         * alloc.c (Fbit_vector):
10634         * alloc.c (Fmake_string):
10635         * alloc.c (Fpurecopy):
10636         * alloc.c (Fmemory_limit):
10637         * buffer.c:
10638         * buffer.c (Fget_buffer):
10639         * buffer.c (Fkill_buffer):
10640         * buffer.c (complex_vars_of_buffer):
10641         * bytecode.c (Fcompiled_function_stack_depth):
10642         * callint.c (Fprefix_numeric_value):
10643         * event-stream.c:
10644         * event-stream.c (Fread_key_sequence):
10645         * casetab.c:
10646         * casetab.c (Fcase_table_p):
10647         * casetab.c (check_case_table):
10648         * casetab.c (Fset_case_table):
10649         * casetab.c (Fset_standard_case_table):
10650         * chartab.c:
10651         * chartab.c (Fchar_table_type):
10652         * chartab.c (Freset_char_table):
10653         * chartab.c (Fget_char_table):
10654         * chartab.c (Fget_range_char_table):
10655         * chartab.c (Fput_char_table):
10656         * chartab.c (Fmap_char_table):
10657         * chartab.c (Fcategory_table_p):
10658         * chartab.c (Fcheck_category_at):
10659         * chartab.c (Fchar_in_category_p):
10660         * chartab.c (Fcategory_table):
10661         * chartab.c (Fcopy_category_table):
10662         * chartab.c (Fset_category_table):
10663         * chartab.c (Fcategory_designator_p):
10664         * chartab.c (Fcategory_table_value_p):
10665         * cmds.c (Fdelete_char):
10666         * cmds.c (Fdelete_backward_char):
10667         * cmds.c (Fself_insert_command):
10668         * cmds.c (Fself_insert_internal):
10669         * console.c (Fvalid_console_type_p):
10670         * console.c (Fcdfw_console):
10671         * console.c (Fconsole_type):
10672         * console.c (Fconsole_name):
10673         * console.c (Fconsole_device_list):
10674         * console.c (Fconsole_on_window_system_p):
10675         * data.c:
10676         * data.c (Feq):
10677         * data.c (Fold_eq):
10678         * data.c (Fsubr_interactive):
10679         * data.c (Fchar_to_int):
10680         * data.c (Fint_to_char):
10681         * data.c (Fsetcar):
10682         * data.c (Fsetcdr):
10683         * data.c (Fnumber_to_string):
10684         * data.c (Fstring_to_number):
10685         * data.c (Frem):
10686         * database.c (mark_database):
10687         * database.c (finalize_database):
10688         * database.c (Fdatabase_live_p):
10689         * database.c (Fdatabasep):
10690         * device-x.c (Fx_get_resource):
10691         * device.c (Fdfw_device):
10692         * dired.c:
10693         * dired.c (Ffile_name_completion):
10694         * dired.c (Ffile_name_all_completions):
10695         * dired.c (Fuser_name_completion):
10696         * dired.c (Fuser_name_completion_1):
10697         * dired.c (Fuser_name_all_completions):
10698         * doc.c (Fdocumentation):
10699         * doc.c (Fdocumentation_property):
10700         * doc.c (Fsubstitute_command_keys):
10701         * editfns.c:
10702         * editfns.c (Fchar_to_string):
10703         * editfns.c (Fstring_to_char):
10704         * editfns.c (Ftemp_directory):
10705         * editfns.c (Finsert_char):
10706         * editfns.c (Fbuffer_substring_no_properties):
10707         * editfns.c (Fnarrow_to_region):
10708         * editfns.c (Fchar_equal):
10709         * editfns.c (Fchar_Equal):
10710         * editfns.c (Ftranspose_regions):
10711         * emacs.c (Fdump_emacs):
10712         * eval.c (Fthrow):
10713         * eval.c (Fcommand_execute):
10714         * eval.c (Fautoload):
10715         * eval.c (Fbacktrace):
10716         * eval.c (Fbacktrace_frame):
10717         * events.c:
10718         * events.c (Fcopy_event):
10719         * events.c (Fcharacter_to_event):
10720         * events.c (Fevent_button):
10721         * events.c (Fevent_process):
10722         * extents.c:
10723         * extents.c (Fnext_extent_change):
10724         * extents.c (Fextent_property):
10725         * faces.c (Ffacep):
10726         * faces.c (Fmake_face):
10727         * file-coding.c:
10728         * file-coding.c (Fencode_shift_jis_char):
10729         * file-coding.c (Fencode_big5_char):
10730         * fileio.c (Ffile_name_directory):
10731         * fileio.c (Ffile_name_nondirectory):
10732         * fileio.c (Ffile_name_as_directory):
10733         * fileio.c (Fdirectory_file_name):
10734         * fileio.c (Ffile_truename):
10735         * fileio.c (Fsubstitute_in_file_name):
10736         * fileio.c (Ffile_modes):
10737         * fileio.c (Fset_file_modes):
10738         * fileio.c (Fset_default_file_modes):
10739         * fileio.c (Fverify_visited_file_modtime):
10740         * floatfns.c (Facos):
10741         * floatfns.c (Fasin):
10742         * floatfns.c (Fatan):
10743         * floatfns.c (Fcos):
10744         * floatfns.c (Fsin):
10745         * floatfns.c (Ftan):
10746         * floatfns.c (Fbessel_j0):
10747         * floatfns.c (Fbessel_j1):
10748         * floatfns.c (Fbessel_jn):
10749         * floatfns.c (Fbessel_y0):
10750         * floatfns.c (Fbessel_y1):
10751         * floatfns.c (Fbessel_yn):
10752         * floatfns.c (Ferf):
10753         * floatfns.c (Ferfc):
10754         * floatfns.c (Flog_gamma):
10755         * floatfns.c (Fexp):
10756         * floatfns.c (Fexpt):
10757         * floatfns.c (Flog):
10758         * floatfns.c (Flog10):
10759         * floatfns.c (Fsqrt):
10760         * floatfns.c (Fcube_root):
10761         * floatfns.c (Facosh):
10762         * floatfns.c (Fasinh):
10763         * floatfns.c (Fatanh):
10764         * floatfns.c (Fcosh):
10765         * floatfns.c (Fsinh):
10766         * floatfns.c (Ftanh):
10767         * floatfns.c (Fabs):
10768         * floatfns.c (Ffloat):
10769         * floatfns.c (Flogb):
10770         * floatfns.c (Fceiling):
10771         * floatfns.c (Ffloor):
10772         * floatfns.c (Fround):
10773         * floatfns.c (Ftruncate):
10774         * floatfns.c (Ffceiling):
10775         * floatfns.c (Fffloor):
10776         * floatfns.c (Ffround):
10777         * floatfns.c (Fftruncate):
10778         * fns.c (Fstring_equal):
10779         * fns.c (Fstring_lessp):
10780         * fns.c (concat2):
10781         * fns.c (concat3):
10782         * fns.c (vconcat2):
10783         * fns.c (vconcat3):
10784         * fns.c (Fsubstring):
10785         * fns.c (Fassoc):
10786         * fns.c (Fold_assoc):
10787         * fns.c (assoc_no_quit):
10788         * fns.c (Fassq):
10789         * fns.c (Fold_assq):
10790         * fns.c (assq_no_quit):
10791         * fns.c (Frassoc):
10792         * fns.c (Fold_rassoc):
10793         * fns.c (Frassq):
10794         * fns.c (Fold_rassq):
10795         * fns.c (rassq_no_quit):
10796         * fns.c (Fremassoc):
10797         * fns.c (remassoc_no_quit):
10798         * fns.c (Fremassq):
10799         * fns.c (remassq_no_quit):
10800         * fns.c (Fremrassoc):
10801         * fns.c (Fremrassq):
10802         * fns.c (remrassq_no_quit):
10803         * fns.c (Fsort):
10804         * fns.c (Fplist_get):
10805         * fns.c (Fplist_put):
10806         * fns.c (Fplist_remprop):
10807         * fns.c (Fplist_member):
10808         * fns.c (Flax_plist_get):
10809         * fns.c (Flax_plist_put):
10810         * fns.c (Flax_plist_remprop):
10811         * fns.c (Flax_plist_member):
10812         * fns.c (Fequal):
10813         * fns.c (Fold_equal):
10814         * fns.c (Frequire):
10815         * fns.c (Fbase64_encode_region):
10816         * fns.c (Fbase64_encode_string):
10817         * fns.c (Fbase64_decode_region):
10818         * frame.c:
10819         * frame.c (frame_matches_frame_spec):
10820         * frame.c (device_matches_device_spec):
10821         * frame.c (next_frame):
10822         * frame.c (previous_frame):
10823         * frame.c (Fnext_frame):
10824         * frame.c (Fprevious_frame):
10825         * frame.c (Fframe_property):
10826         * frame.c (Fset_frame_height):
10827         * frame.c (Fset_frame_size):
10828         * frame.h:
10829         * glyphs.c:
10830         * glyphs.c (if):
10831         * glyphs.c (decode_error_behavior_flag):
10832         * glyphs.c (Fmake_image_instance):
10833         * indent.c (Findent_to):
10834         * intl.c (Fignore_defer_gettext):
10835         * keymap.c (Fkeymapp):
10836         * keymap.c (Flookup_key):
10837         * lread.c:
10838         * lread.c (Fload_internal):
10839         * lread.c (Feval_buffer):
10840         * lread.c (Feval_region):
10841         * macros.c (Fexecute_kbd_macro):
10842         * marker.c (set_marker_internal):
10843         * marker.c (Fset_marker):
10844         * marker.c (set_marker_restricted):
10845         * marker.c (Fcopy_marker):
10846         * marker.c (noseeum_copy_marker):
10847         * menubar.c:
10848         * menubar.c (Fpopup_menu):
10849         * minibuf.c:
10850         * mule-charset.c (Fcharset_name):
10851         * mule-charset.c (Fchar_charset):
10852         * mule-charset.c (Fchar_octet):
10853         * mule-charset.c (Fsplit_char):
10854         * mule-wnnfns.c (Fwnn_open):
10855         * mule-wnnfns.c (Fwnn_dict_comment):
10856         * mule-wnnfns.c (Fwnn_quit_henkan):
10857         * mule-wnnfns.c (Fwnn_word_toroku):
10858         * mule-wnnfns.c (Fwnn_word_sakujo):
10859         * mule-wnnfns.c (Fwnn_word_use):
10860         * mule-wnnfns.c (Fwnn_hindo_set):
10861         * objects.c:
10862         * objects.c (Fmake_color_instance):
10863         * objects.c (Fmake_font_instance):
10864         * print.c (Fwrite_char):
10865         * process.c:
10866         * process.c (mark_process):
10867         * process.c (print_process):
10868         * process.c (get_process_from_usid):
10869         * process.c (Fprocessp):
10870         * process.c (Fprocess_live_p):
10871         * process.c (Fget_process):
10872         * process.c (Fget_buffer_process):
10873         * process.c (get_process):
10874         * process.c (Fprocess_id):
10875         * process.c (Fprocess_name):
10876         * process.c (Fprocess_command):
10877         * process.c (init_process_io_handles):
10878         * process.c (start_process_unwind):
10879         * process.c (Fstart_process_internal):
10880         * process.c (Fopen_multicast_group_internal):
10881         * process.c (Fset_process_window_size):
10882         * process.c (read_process_output):
10883         * process.c (send_process):
10884         * process.c (Fprocess_tty_name):
10885         * process.c (Fset_process_buffer):
10886         * process.c (Fprocess_buffer):
10887         * process.c (Fprocess_mark):
10888         * process.c (set_process_filter):
10889         * process.c (Fset_process_filter):
10890         * process.c (Fprocess_filter):
10891         * process.c (Fprocess_send_region):
10892         * process.c (Fprocess_send_string):
10893         * process.c (exec_sentinel):
10894         * process.c (Fset_process_sentinel):
10895         * process.c (Fprocess_sentinel):
10896         * process.c (status_notify):
10897         * process.c (Fprocess_status):
10898         * process.c (Fprocess_exit_status):
10899         * process.c (process_send_signal):
10900         * process.c (Fprocess_send_eof):
10901         * process.c (deactivate_process):
10902         * process.c (remove_process):
10903         * process.c (Fdelete_process):
10904         * process.c (kill_buffer_processes):
10905         * process.c (Fprocess_kill_without_query):
10906         * process.c (Fprocess_kill_without_query_p):
10907         * rangetab.c:
10908         * rangetab.c (Fget_range_table):
10909         * rangetab.c (Fput_range_table):
10910         * rangetab.c (Fremove_range_table):
10911         * rangetab.c (Fclear_range_table):
10912         * search.c:
10913         * search.c (Fskip_chars_forward):
10914         * search.c (Fskip_chars_backward):
10915         * search.c (Fskip_syntax_forward):
10916         * search.c (Fskip_syntax_backward):
10917         * search.c (search_command):
10918         * search.c (Freplace_match):
10919         * search.c (Fregexp_quote):
10920         * select.c (Fown_selection_internal):
10921         * select.c (Fselection_owner_p):
10922         * select.c (Fselection_exists_p):
10923         * select.c (Fget_selection_internal):
10924         * specifier.c:
10925         * symbols.c:
10926         * symbols.c (Fintern):
10927         * symbols.c (Fintern_soft):
10928         * symbols.c (Funintern):
10929         * symbols.c (Fapropos_internal):
10930         * symbols.c (Fset_default):
10931         * syntax.c:
10932         * syntax.c (Fsyntax_table_p):
10933         * syntax.c (Fcopy_syntax_table):
10934         * syntax.c (Fset_syntax_table):
10935         * syntax.c (Fchar_syntax):
10936         * syntax.c (syntax_match):
10937         * syntax.c (Fmatching_paren):
10938         * syntax.c (Fforward_word):
10939         * syntax.c (scan_lists):
10940         * syntax.c (Fscan_lists):
10941         * syntax.c (Fscan_sexps):
10942         * syntax.c (Fparse_partial_sexp):
10943         * toolbar.c (Fcheck_toolbar_button_syntax):
10944         * tooltalk.doc:
10945         * window.c:
10946         * window.c (Fwindowp):
10947         * window.c (Fwindow_live_p):
10948         * window.c (Fwindow_point):
10949         * window.c (Fdelete_window):
10950         * window.c (Fnext_window):
10951         * window.c (Fprevious_window):
10952         * window.c (Fother_window):
10953         * window.c (window_loop):
10954         * window.c (Fget_lru_window):
10955         * window.c (Fsplit_window):
10956         * window.c (Fenlarge_window):
10957         * window.c (Fenlarge_window_pixels):
10958         * window.c (Fshrink_window):
10959         * window.c (Fshrink_window_pixels):
10960         * window.c (change_window_height):
10961         * window.c (Fwindow_configuration_p):
10962         * window.c (Fcurrent_window_configuration):
10963         * window.h:
10964         * casefiddle.c (casify_object):
10965         * casefiddle.c (Fupcase):
10966         * casefiddle.c (Fdowncase):
10967         * casefiddle.c (Fcapitalize):
10968         * casefiddle.c (Fupcase_initials):
10969         * casefiddle.c (casify_region_internal):
10970         * casefiddle.c (casify_region):
10971         * casefiddle.c (Fupcase_region):
10972         * casefiddle.c (Fdowncase_region):
10973         * casefiddle.c (Fcapitalize_region):
10974         * casefiddle.c (Fupcase_initials_region):
10975         * casefiddle.c (Fupcase_word):
10976         * casefiddle.c (Fdowncase_word):
10977         * casefiddle.c (Fcapitalize_word):
10978         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10979         Replace 0 with '\0' when working with bytes.
10980         Replace initial "(" with "\(" in docstrings.
10981
10982 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10983
10984         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10985
10986         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10987
10988 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10989
10990         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10991
10992 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10993
10994         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10995         correctly.
10996
10997 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10998
10999         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
11000         (inhibit_auto_save_session): New variable.
11001         (vars_of_fileio): Declare and initialize them.
11002         * fileio.c (Fdo_auto_save): Don't create session file if
11003         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
11004
11005 2000-10-31  Martin Buchholz  <martin@xemacs.org>
11006
11007         * sgiplay.c (play_internal): C++ compilability.
11008         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
11009         * callproc.c (Fold_call_process_internal):
11010         Remove unused vars `env', `first'.
11011         * scrollbar.c (update_scrollbar_instance):
11012         #### unused var `current_window'.
11013         * redisplay-tty.c: Put currently unused vars insert_mode_on,
11014         etc. within #ifdef NOT_YET.
11015         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
11016         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
11017         * specifier.c (specifier_instance):
11018         #### unused var `tag'.
11019         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
11020
11021 2000-10-27  Martin Buchholz  <martin@xemacs.org>
11022
11023         * fns.c (Fbutlast):
11024         * fns.c (list_sort):
11025         * fns.c (Ffillarray):
11026         * fns.c (bytecode_nconc2):
11027         * fns.c (Fnconc):
11028         * fns.c (mapcar1):
11029         * fns.c (Fmapconcat):
11030         Be pedantically 64-bit correct.  For the time when someone will
11031         want to have a list with length > 2**32.
11032
11033         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11034         Work around MIPSpro compiler bug.
11035
11036         * process-unix.c (unix_kill_child_process): Add snarky comment.
11037         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
11038
11039         * config.h.in: Oops, _getpt ==> _getpty
11040
11041 2000-10-26  Martin Buchholz  <martin@xemacs.org>
11042
11043         * config.h.in:
11044         * regex.c:
11045         Use void*, not char*, as return type of alloca().
11046
11047         * alloc.c (free_marker): Side effect inside assert expression!
11048
11049 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
11050
11051         * mule-charset.c (Fset_charset_ccl_program): To check
11052         if the given ccl program is valid, use setup_ccl_program()
11053         instead of CHECK_VECTOR().
11054         (Fmake_charset): Likewise.
11055
11056 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
11057
11058         * faces.c (get_extent_fragment_face_cache_index):
11059         Fix cachel.merged_faces memory leak.
11060
11061 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
11062
11063         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
11064         Reset MSB of octets obtained by DECODE_SJIS
11065         because of the incompatibility with Emacs.
11066         (ccl_driver)<CCL_ENCODE_SJIS>:
11067         Set MSB of octets before passing them to
11068         ENCODE_SJIS because of the incompatibility
11069         with Emacs.
11070
11071 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
11072
11073         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
11074         (DECLARE_LRECORD): Undo the last change.
11075         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
11076
11077 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
11078
11079         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
11080         the implementation to lrecord_implementations_table.
11081
11082 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
11083
11084         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
11085         initial value of `lrecord_type_##c_name' and
11086         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
11087         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
11088         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
11089         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
11090         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
11091
11092 2000-10-17  Martin Buchholz  <martin@xemacs.org>
11093
11094         * miscplay.c (sndcnv8S_2mono):
11095         (sndcnv2monounsigned):
11096         (sndcnvULaw_2linear):
11097         (sndcnv16swap):
11098         Remove implementation-defined behavior.
11099
11100 2000-10-12  Martin Buchholz  <martin@xemacs.org>
11101
11102         * input-method-xlib.c: Warning suppression.
11103
11104 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
11105
11106         * mule-ccl.c: Sync up with Emacs 21.0.90.
11107         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
11108         Do nothing.
11109         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
11110         Likewise.
11111         (ccl_driver[WriteMultibyteChar2]): Bug fix.
11112         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
11113         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
11114         leading char belongs to official 2-dimensional charset.
11115         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
11116         write the given character as is.  Otherwise,
11117         if it is a multibyte char, convert it by
11118         non_ascii_set_charptr_emchar, then write it.
11119         (CCL_WRITE_STRING): Likewise.
11120         (ccl_get_compiled_code): New function.
11121         (setup_ccl_program): When ccl_prog is invalid,
11122         return -1.
11123         (Fregister_code_conversion_map): New function.
11124         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
11125
11126         * mule-ccl.h: Sync up with Emacs 21.0.90.
11127         (Fregister_ccl_program): export it.
11128
11129         * redisplay-msw.c (separate_textual_runs):
11130         If ccl program is not valid, don't do ccl conversion.
11131
11132         * redisplay-x.c (separate_textual_runs): Ditto.
11133
11134         * file-coding.c (Fmake_coding_system):
11135         When type is ccl and value is vector, register it
11136         with a proper symbol.  And checks whether the
11137         given ccl program is valid.
11138         (mule_decode): When calling ccl_driver, if src indicates
11139         NULL pointer, set an empty string instead.
11140         (mule_encode): Likewise.
11141
11142 2000-10-11  Martin Buchholz  <martin@xemacs.org>
11143
11144         The following large batch of changes gets us back to a state of
11145         C++ compilability.  Extbyte is now a char, which means that
11146         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
11147
11148         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
11149
11150         * sound.c (Fplay_sound): Type correctness.
11151
11152         * select-x.c (hack_motif_clipboard_selection): Type correctness.
11153         (x_get_window_property): Type correctness.
11154         (receive_incremental_selection): unsigned char ==> Extbyte
11155         (selection_data_to_lisp_data): unsigned char ==> Extbyte
11156         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
11157         (Fx_store_cutbuffer_internal): Type correctness.
11158
11159         * process-unix.c (try_to_initialize_subtty): Type correctness.
11160
11161         * objects-x.c (x_print_color_instance): Type correctness.
11162         (x_print_font_instance): Type correctness.
11163         (x_list_fonts): SExtbyte ==> Extbyte.
11164         (valid_x_font_name_p): SExtbyte ==> Extbyte.
11165         (x_find_charset_font): SExtbyte ==> Extbyte.
11166         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
11167         (truename_via_XListFonts): SExtbyte ==> Extbyte.
11168         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
11169         Use bufbyte_strcmp.
11170
11171         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
11172         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
11173         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
11174         (BYTE_C0_P): Use bit ops for char-signedness safety.
11175         (BYTE_C1_P): Use bit ops for char-signedness safety.
11176         (CHARSET_BY_LEADING_BYTE):
11177         (CHARSET_BY_ATTRIBUTES):
11178         Always use inline function.
11179         Use type_checking_assert.
11180         Hide chlook.
11181
11182         * mule-charset.c (non_ascii_charptr_copy_char):
11183         Modify to work with both ASCII and non-ASCII characters.
11184         Improve docs and variable names.
11185         Replace over-clever fall-through switch with a simple loop.
11186         (Lstream_get_emchar_1):
11187         Replace over-clever fall-through switch with a simple loop.
11188
11189         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11190         Warning suppression.
11191
11192         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
11193         the return value of Lstream_getc, which could be EOF as well.
11194
11195         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
11196
11197         * lisp.h: Make Extbyte a char, not unsigned char, so that external
11198         APIs can be used on Extbytes without casts.  Risky!
11199         (SExtbyte): Remove.
11200         (UExtbyte): Remove.
11201
11202         * input-method-xlib.c (XIM_init_device):
11203         Use Xlib.h instead of IntrinsicP.h.
11204         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
11205         which will break in X11R7.
11206         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
11207         to call XRegisterIMInstantiateCallback with correct types.
11208
11209         * gui-x.c (button_item_to_widget_value): Type correctness.
11210
11211         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
11212
11213         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
11214         (xbm_instantiate_1): Type correctness.
11215         (BUILD_GLYPH_INST):  Type correctness.
11216
11217         * fileio.c (Fsubstitute_in_file_name): Type correctness.
11218
11219         * file-coding.c:
11220         (decode_coding_sjis):
11221         (decode_coding_big5):
11222         (decode_coding_ucs4):
11223         (decode_coding_utf8):
11224         (decode_coding_iso2022):
11225         (decode_coding_no_conversion):
11226         Make all decoding functions take an Extbyte * arg.
11227         (encode_coding_sjis):
11228         (encode_coding_big5):
11229         (encode_coding_ucs4):
11230         (encode_coding_utf8):
11231         (encode_coding_iso2022):
11232         (encode_coding_no_conversion):
11233         Make all encoding functions take a Bufbyte * arg.
11234         Use size_t instead of unsigned int for memory sizes.
11235         Only cast to unsigned char whenever dereferencing Extbyte *.
11236
11237         * doc.c (unparesseuxify_doc_string): Type correctness.
11238
11239         * console-x.c (split_up_display_spec):
11240         Rewrite without using details of internal string representation.
11241         (x_semi_canonicalize_device_connection): Type correctness.
11242
11243         * config.h.in:
11244         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
11245         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
11246         (HAVE_XFREE386): Removed.
11247
11248         * buffer.h (DEC_CHARPTR): `const' correctness.
11249         (bufbyte_strcmp): New.
11250         (bufbyte_memcmp): New.
11251
11252         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
11253
11254         * buffer.h (XCHAR_OR_CHAR_INT):
11255         Always use inline function.
11256         Remove redundant type checking assert() - XINT will abort quite nicely.
11257
11258 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11259
11260         * search.c (Freplace_match): Set newtext to an empty string.
11261
11262 2000-10-10  Martin Buchholz  <martin@xemacs.org>
11263
11264         * s/decosf1-3.h: Remove #include of stropts.h
11265         * s/ptx.h: Remove #include of stropts.h
11266         * s/usg5-4.h: Remove #include of stropts.h
11267         * sysproc.h:
11268         * config.h.in:
11269         Use stropts.h, not sys/stropts.h.
11270         Use strtio.h, not sys/strtio.h.
11271
11272 2000-10-04  Martin Buchholz <martin@xemacs.org>
11273
11274         * XEmacs 21.2.36 is released.
11275
11276 2000-09-21  Andy Piper  <andy@xemacs.org>
11277
11278         * glyphs-x.c (x_redisplay_widget): make sure non-structural
11279         changes still involve copying the widget tree.
11280         (update_widget_face): make sure a change is register in the widget
11281         tree. Call update_tab_widget_face appropriately.
11282         (update_tab_widget_face): ditto.
11283         (x_tab_control_redisplay): make sure non-structural changes still
11284         involve copying the widget tree.
11285
11286 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
11287
11288         * lread.c (locate_file): Check the path element is non-nil.
11289
11290 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11291
11292         * lisp.h: Warning suppression for SCO compilers.
11293
11294         * redisplay-tty.c (reset_tty_modes): Fix crash.
11295         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
11296
11297 2000-09-27  Martin Buchholz  <martin@xemacs.org>
11298
11299         Big signal/process handling overhaul.  Bugs fixed:
11300         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
11301         M-x comint-kill-subjob should work for both values nil and t of
11302         process-connection-type. It was broken on most platforms.
11303         Testing on Irix and Cygwin still needed.  Other plaforms tested.
11304         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
11305         * process-unix.c: Signal/Process handling overhaul.
11306         (pty_name): make 64 bytes, as `expect' does, for paranoia.
11307         (allocate_pty): Use all available modern methods of allocating
11308         ptys, falling back to old style BSD allocation as a last resort.
11309         Use allegedly more secure Unix98 pty allocation by default.
11310         (allocate_pty_the_old_fashioned_way): New. the last resort.
11311         (unix_create_process): Push ptem, ldterm, ttcompat where
11312         available.  Autoconfiscate.
11313         (try_to_initialize_subtty): New.
11314         (unix_kill_child_process): Proper signal handling for ptys on most
11315         platforms, using special knowledge of AIX, BSD, etc...
11316         (unix_create_process): Always disconnect_controlling_terminal() for
11317         subprocesses, whether using ptys or not.
11318         * process.h: Remove old getpt-dependent PTY code.
11319         * process.c (Fprocess_send_signal): New, obvious generic function.
11320         (decode_signal): New.
11321         (Finterrupt_process):
11322         (Fkill_process):
11323         (Fquit_process):
11324         (Fstop_process):
11325         (Fcontinue_process):
11326         (Fsignal_process): Use decode_signal.
11327         (process_send_signal):
11328         Many docstring corrections.
11329         Allow any signal to be sent to a process object.
11330         * config.h.in: Add symbols for big signal/process overhaul.
11331         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
11332         * sysproc.h: Include process-related headers, where available:
11333         sys/stropts.h sys/strtio.h pty.h libutil.h
11334         * s/irix4-0.h:
11335         * s/irix5-0.h:
11336         * s/cygwin32.h:
11337         * s/gnu.h:
11338         * s/linux.h:
11339         * s/hpux.h:
11340         * s/aix3-1.h:
11341         Remove old S&M pty stuff.
11342         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
11343         * systty.h: Simplify cpp hackery, improve comments.
11344         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
11345
11346         * editfns.c (Fformat_time_string):
11347         Be a little more paranoid with the return value of ctime.
11348
11349         * fileio.c (check_executable):
11350         (check_writable):
11351         Use symbolic constants X_OK, W_OK.
11352
11353         * console-x.c (split_up_display_spec): Fix a warning.
11354
11355 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11356
11357         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11358         * ntproc.c (sys_spawnve): make_string ==> build_string
11359         Small clarity improvements.
11360
11361 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11362
11363         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11364
11365         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11366
11367         * config.h.in (HAVE_STRCASECMP): Remove.
11368
11369 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11370
11371         * redisplay-output.c (redisplay_output_pixmap):
11372         Cleaner and possibly more 64-bit correct code.
11373
11374 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11375
11376         * dumper.c (pdump_load_finish): move restoration of
11377         `noninteractive1' to emacs.c (main_1).
11378         * emacs.c (main_1): protect LISP-visible command-line flags
11379         from pdump_load().
11380
11381 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11382
11383         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11384         DUMP_TARGET instead of literal program names.
11385
11386 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11387
11388         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11389
11390 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11391
11392         * *: Spelling mega-patch
11393
11394 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11395
11396         * fns.c (bad_bad_turtle):
11397         Delete "Eek!" comment, since we fixed the bug to which it refers.
11398
11399 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11400
11401         * alloca.c: Replace REGISTER with register.
11402
11403 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11404
11405         * file-coding.c (ucs_to_char): Use countof.
11406
11407 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11408
11409         * file-coding.c: (ucs_to_char):
11410         (complex_vars_of_file_coding):
11411         Use countof instead of sizeof.
11412         Use CHECK_NATNUM instead of CHECK_INT.
11413
11414         * sysdep.c (strcasecmp): Remove.
11415         * device-x.c (ascii_strcasecmp): New.
11416         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11417         Avoid using non-standard non-portable strcasecmp.
11418
11419 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11420
11421         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11422         * font-lock.c: remove reference to emacsfns.h.
11423         * search.c: small doc improvement.
11424         * event-Xt.c: correct file names in comments.
11425         * console-x.h Correct file names in comments.
11426         * frame.c: Correct file names in comments.
11427         * event-stream.c: remove Energize from comments.
11428
11429 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11430
11431         * symeval.h (DEFERROR_STANDARD):
11432         (DEFERROR):
11433         (DEFSYMBOL):
11434         (DEFSYMBOL_NO_DUMP):
11435         (DEFSYMBOL_MULTIWORD_PREDICATE):
11436         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11437         (DEFKEYWORD):
11438         The construct &##name is not sensible C.
11439         Fixes compilation errors with Unixware native compiler.
11440
11441 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11442
11443         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11444         (next_frame_internal): Removed.  We now just have next_frame.
11445         (next_frame):
11446         Write a simpler and cleaner one-pass algorithm.
11447         Remove called_from_delete_device arg and #ifdefed-out code.
11448         (previous_frame):
11449         Renamed from prev_frame.  Update callers.
11450         Cleaned up to have an analogous implementation to next_frame.
11451         (other_visible_frames_internal): Remove the
11452         called_from_delete_device bogus arg, and hence, remove this
11453         function.  Just use other_visible_frames().
11454
11455         * window.c (Fnext_window):
11456         Prettify docstring.
11457         Since next_frame() is guaranteed to return a frame, remove check
11458         for nil inserted in previous patch.
11459         (Fprevious_window):
11460         Prettify docstring.
11461         Make code look more like Fnext_window.
11462         (window_loop):
11463         Respect the `console' arg when iterating through windows.
11464         Fixes bug: (get-buffer-window buffer t device) not respecting
11465         the `device' arg.
11466         This function needs more work, as others have pointed out.
11467
11468         * frame.h: Rename prev_frame to previous_frame.
11469         device_matches_console_spec no longer takes a `frame' arg.
11470
11471         * s/gnu.h:
11472         * s/linux.h:
11473         * s/hpux.h:
11474         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11475         From "Golubev I. N." <gin@mo.msk.ru>.
11476
11477         * make-src-depend: Fix typo.
11478
11479 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11480
11481         * window.c (Fnext_window):
11482         next_frame() might return nil, not a frame.
11483         Fixes this crash:
11484         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11485
11486         * frame.c (next_frame_internal):
11487         We've passed a frame if we've passed its device.
11488         Fixes this crash:
11489         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11490 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11491
11492 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11493
11494         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11495         Allow option to suppress accelerators in menu/dialog items.
11496         (populate_or_checksum_helper): Pass dialog title through above.
11497
11498 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11499
11500         * event-msw.c (mswindows_key_to_emacs_keysym):
11501         Add "pause" key, fix "menu" key.
11502
11503 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11504
11505         * eval.c (reinit_vars_of_eval):
11506         Increase max_lisp_eval_depth to 1000,
11507         required for thai-xtis.el to byte-compile under some circumstances.
11508
11509 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11510
11511         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11512         From Kenichi Handa.
11513
11514 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11515
11516         * make-src-depend: Make the generated Makefiles smaller.
11517
11518         * s/hpux.h (SETUP_SLAVE_PTY):
11519         Provide a %d in the format string for the errno argument.
11520
11521         * editfns.c (Ftemp_directory):
11522         Warning fix.
11523         Avoid buffer overrun on very long file name.
11524
11525         * input-method-xlib.c (XIM_init_device):
11526         6th parameter of XRegisterIMInstantiateCallback has different
11527         pointer types on different OSes, so simply cast to (void *).
11528
11529         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11530
11531         * sysdll.c (dll_open):
11532         shl_load will hang hard if passed a NULL filename.
11533         Simply return NULL for compatibility with dlopen.
11534         * sysdll.c: Conform to XEmacs coding standards.
11535
11536         * sysdep.c (get_pty_max_bytes):
11537         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11538
11539 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11540
11541         * tooltalk.c: Add #include <syssignal.h>
11542
11543 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11544
11545         * s/hpux.h: Don't use undefined function sigunblock().
11546
11547 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11548
11549         * config.h.in: Add HAVE_BALLOON_HELP.
11550         * emacs.c: Use HAVE_BALLOON_HELP.
11551         * Makefile.in.in (x_objs):
11552         Make Balloon Help conditional on finding shape.h.
11553
11554 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11555
11556         * syntax.c (regex_emacs_buffer_p): New variable.
11557         * syntax.h (regex_emacs_buffer_p): extern.
11558         * search.c (looking_at_1):
11559         (string_match_1):
11560         (fast_string_match):
11561         (search_buffer): Set regex_emacs_buffer_p.
11562         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11563         when before_dot, at_dot, after_dot.
11564
11565 2000-08-23  Andy Piper  <andy@xemacs.org>
11566
11567         * gui-x.c (popup_selection_callback): Only set action_occurred
11568         when we really have an image instance.
11569         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11570
11571 2000-08-23  Andy Piper  <andy@xemacs.org>
11572
11573         * gui-msw.c (mswindows_handle_gui_wm_command): set
11574         action_occurred.
11575         * gui-x.c (popup_selection_callback): ditto.
11576
11577         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11578         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11579         (struct Lisp_Image_Instance): add action_occurred flag.
11580
11581         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11582         (image_instance_changed): ditto.
11583         (reset_frame_subwindow_instance_cache): only unmap windows - do
11584         not remove them from the cache also.
11585
11586         * glyphs-widget.c (tab_control_update): better debug.
11587         (progress_gauge_update): ditto.
11588         (layout_update): ditto.
11589         (layout_instantiate): ditto.
11590         (tab_control_order_only_changed): cope with null pending items.
11591
11592         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11593         debug. Force selection of an item when an action occurred. Cope
11594         with null pending_items.
11595         (mswindows_progress_gauge_redisplay): better debug.
11596         * glyphs-x.c (x_tab_control_redisplay): ditto.
11597
11598         * redisplay.c (redisplay_frame): reset the frame cache if the
11599         frame is garbaged.
11600
11601         * window.c (Fset_window_configuration): potentially re-enable
11602         frame cache reset.
11603         (window_unmap_subwindows): need to finalize instances here since
11604         it is only used in mark_window_as_deleted.
11605
11606 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11607
11608         * nas.c (SndOpenDataForReading):
11609         nas.c (WaveOpenDataForReading):
11610         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11611         Somehow escaped from the 2000-08-14 patch.
11612
11613 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11614
11615         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11616         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11617
11618 2000-08-21  Andy Piper  <andy@xemacs.org>
11619
11620         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11621         window if it is not already displayed.
11622
11623         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11624         it is not already displayed.
11625
11626         * window.c (Fset_window_configuration): don't reset the frame
11627         cache.
11628
11629         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11630         instances from the frame cache if we are actually finalizing them.
11631         (reset_frame_subwindow_instance_cache): reset frame cache only
11632         after unmapping everything.
11633         (map_subwindow): set displayed flag after mapping.
11634
11635 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11636
11637         * data.c (indirect_function):
11638         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11639
11640         * eval.c (function_argcount):
11641         Use original function when signaling errors.
11642
11643 2000-08-18  Andy Piper  <andy@xemacs.org>
11644
11645         * frame.c (delete_frame_internal): use new
11646         free_frame_subwindow_instances name.
11647
11648         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11649         (add_tab_item): make return type correct.
11650         (mswindows_tab_control_instantiate): assert index of tab.
11651         (mswindows_tab_control_redisplay): Re-code to use
11652         gui_item_equal_sans_selected and gui_item_list_find_selected.
11653
11654         * glyphs-widget.c (tab_control_update): Correct comment.
11655
11656         * window.c (window_unmap_subwindows): use new
11657         unmap_subwindow_instance_cache_mapper.
11658         (window_unmap_subwindows_cache_mapper): deleted.
11659         (Fset_window_configuration): comparisons should now be with
11660         EQ. Preserve the subwindow instance cache across configuration
11661         changes.
11662         (allocate_window): ditto.
11663         (make_dummy_parent): ditto.
11664
11665         * glyphs.c (free_frame_subwindow_instances): rename from
11666         free_frame_subwindow_instance_cache. finalize all instances rather
11667         than just those in the display cache.
11668         (finalize_all_subwindow_instances): walk windows unmapping and
11669         finalizing subwindows.
11670         (unmap_subwindow_instance_cache_mapper): moved from
11671         window.c. Allow finalization as well as unmapping.
11672
11673         * gui.c (gui_item_list_find_selected): new function.
11674
11675         * gui.h (gui_item_list_find_selected): declare.
11676
11677         * glyphs-x.c (x_tab_control_redisplay): pick tab
11678         explicitly. Re-code to use gui_item_equal_sans_selected and
11679         gui_item_list_find_selected.
11680
11681         * glyphs-x.h: add lwlib-utils.h
11682
11683         * buffer.c (Frecord_buffer): undo previous change.
11684
11685 2000-08-09  Vin Shelton  <acs@xemacs.org>
11686
11687         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11688         possible.  Create temporary files more securely.  The patch was
11689         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11690         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11691         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11692         for details.
11693
11694 2000-08-07  Ben Wing  <ben@xemacs.org>
11695
11696         * getloadavg.c: remove duplicate (and windows-breaking)
11697         includes of fcntl.h and sys/file.h.
11698
11699         * nt.c: remove duplicate getloadavg() definition.
11700
11701         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11702         encodings.
11703
11704 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11705
11706         * eval.c (function_argcount): If function needs to be autoloaded
11707         actually use the loaded definition.
11708         GCPRO function.
11709
11710 2000-08-05  Ben Wing  <ben@xemacs.org>
11711
11712         * getloadavg.c: add prototype for getloadavg().  remove
11713         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11714         of the code).  remove duplicate header includes.
11715
11716         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11717
11718         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11719         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11720         useful load average.
11721
11722         * alloc.c (reinit_alloc_once_early): removed references to
11723         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11724         the lisp vars are the only things referencing the malloc_sbrk_*
11725         vars, and they were already if 0'd out.  these vars only exist
11726         in the older malloc.c, which is basically unused, and they're
11727         only for informational purposes.
11728
11729         * m\*.h: removed useless VIRT_ADDR_VARIES.
11730
11731         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11732
11733 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11734
11735         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11736         color if the image is a mono pixmap.
11737
11738 2000-07-30  Ben Wing  <ben@xemacs.org>
11739
11740         * Makefile.in.in (release):
11741         Remove stray @.
11742
11743         * buffer.c (directory_is_current_directory):
11744         * dired-msw.c (mswindows_get_files):
11745         * dired.c:
11746         * dired.c (Fdirectory_files):
11747         * dired.c (file_name_completion_stat):
11748         * dired.c (Ffile_attributes):
11749         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11750         preprocessor tricks, to avoid problems on some machines
11751         (e.g. SCO).
11752
11753         * callproc.c (egetenv): GC docs.
11754
11755         * console-msw.h:
11756         * console-msw.h (struct mswindows_dialog_id):
11757         * lrecord.h (lrecord_type):
11758         New object for use with MSW dialogs.
11759
11760         * console.h (struct console_methods):
11761         New enable/disable frame methods, for proper modal dialogs.
11762
11763         * device-msw.c (msprinter_default_printer): Fix to follow
11764         proper Mule conventions.
11765
11766         * device-msw.c:
11767         * device-msw.c (signal_open_printer_error):
11768         * device-msw.c (msprinter_init_device):
11769         * device-msw.c (ensure_not_printing):
11770         * device-msw.c (plist_get_margin):
11771         * device-msw.c (Fmsprinter_select_settings):
11772         * device-msw.c (finalize_devmode):
11773         * device-msw.c (Fmsprinter_settings_despecialize):
11774         * device-msw.c (signal_enum_priner_error):
11775         * extents.c (decode_extent):
11776         * extents.c (decode_map_extents_flags):
11777         * extents.c (decode_extent_at_flag):
11778         * extents.c (Fextent_at):
11779         * extents.c (Fextents_at):
11780         * extents.c (symbol_to_glyph_layout):
11781         [[[[2]]]] Use structured errors.
11782
11783         * dialog-msw.c:
11784         * dialog-msw.c (mswindows_is_dialog_msg):
11785         * dialog-msw.c (mark_mswindows_dialog_id):
11786         * dialog-msw.c (dialog_proc):
11787         * dialog-msw.c (handle_question_dialog_box):
11788         * dialog-msw.c (syms_of_dialog_mswindows):
11789         Define new object to clean up marking; use it as a dialog identifier.
11790         Call new delete-dialog-box-hook.
11791
11792         * dialog-x.c (dbox_selection_callback):
11793         * dialog-x.c (dbox_descriptor_to_widget_value):
11794         * dialog-x.c (x_make_dialog_box_internal):
11795         Call new delete-dialog-box-hook.
11796         Return an id.
11797
11798         * dialog.c:
11799         * dialog.c (syms_of_dialog):
11800         * dialog.c (vars_of_dialog):
11801         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11802
11803         * eval.c:
11804         * eval.c (signal_call_debugger):
11805         when noninteractive, output stack traces on the console instead
11806         of in a (never-seen) buffer.
11807
11808         * eval.c (signal_type_error):
11809         * eval.c (invalid_argument_2):
11810         * lisp.h:
11811         new funs for use w/structured errors.
11812
11813         * event-Xt.c:
11814         * event-Xt.c (x_to_emacs_keysym):
11815         * event-Xt.c (describe_event):
11816         * event-Xt.c (emacs_Xt_event_handler):
11817         * event-Xt.c (vars_of_event_Xt):
11818         * event-msw.c:
11819         * event-msw.c (mswindows_wnd_proc):
11820         * event-msw.c (vars_of_event_mswindows):
11821         rename {x,mswindows}-debug-events to debug-{}-events for
11822         consistency with other debug-foo variables.
11823
11824         * event-stream.c:
11825         document next-event more clearly.
11826
11827         * fileio.c (Ffile_name_directory):
11828         * fileio.c (Ffile_name_nondirectory):
11829         * fileio.c (Funhandled_file_name_directory):
11830         * fileio.c (file_name_as_directory):
11831         * fileio.c (Ffile_name_as_directory):
11832         * fileio.c (directory_file_name):
11833         * fileio.c (Fdirectory_file_name):
11834         * fileio.c (Fmake_temp_name):
11835         * fileio.c (Ffile_truename):
11836         * fileio.c (Fsubstitute_in_file_name):
11837         * fileio.c (expand_and_dir_to_file):
11838         * fileio.c (barf_or_query_if_file_exists):
11839         * fileio.c (check_executable):
11840         * fileio.c (Ffile_exists_p):
11841         * fileio.c (Ffile_writable_p):
11842         * fileio.c (Ffile_directory_p):
11843         * fileio.c (Ffile_regular_p):
11844         * fileio.c (Ffile_modes):
11845         * fileio.c (Ffile_newer_than_file_p):
11846         * fileio.c (Fverify_visited_file_modtime):
11847         * fileio.c (Fset_visited_file_modtime):
11848         * fileio.c (auto_save_1):
11849         (1). (2).
11850         fix up gcpro's.
11851
11852         * frame-msw.c:
11853         * frame-msw.c (mswindows_init_frame_1):
11854         * frame-msw.c (mswindows_enable_frame):
11855         * frame-msw.c (error_frame_unsizable):
11856         * frame-msw.c (msprinter_init_frame_1):
11857         * frame-msw.c (msprinter_init_frame_3):
11858         * frame-msw.c (console_type_create_frame_mswindows):
11859         (2).
11860         implement new enable/disable frame methods.
11861
11862         * frame-x.c:
11863         * frame-x.c (x_enable_frame):
11864         * frame-x.c (console_type_create_frame_x):
11865         implement new enable/disable frame methods.
11866
11867         * frame.c:
11868         * frame.c (Fdisable_frame):
11869         * frame.c (syms_of_frame):
11870         * frame.h (struct frame):
11871         implement new enable/disable frame methods/functions.
11872
11873         * general-slots.h:
11874         add initial-focus.
11875
11876         * glyphs-msw.c (mswindows_widget_instantiate):
11877         comment that initial-focus should be implemented.
11878
11879         * glyphs-widget.c:
11880         * glyphs-widget.c (check_valid_instantiator):
11881         * glyphs-widget.c (check_valid_orientation):
11882         * glyphs-widget.c (check_valid_tab_orientation):
11883         * glyphs-widget.c (check_valid_justification):
11884         * glyphs-widget.c (check_valid_border):
11885         * glyphs-widget.c (check_valid_callback):
11886         * glyphs-widget.c (check_valid_int_or_function):
11887         * glyphs-widget.c (check_valid_string_or_vector):
11888         * glyphs-widget.c (check_valid_item_list_1):
11889         * glyphs-widget.c (widget_validate):
11890         * glyphs-widget.c (combo_box_validate):
11891         * glyphs-widget.c (widget_instantiate):
11892         * glyphs-widget.c (syms_of_glyphs_widget):
11893         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11894         * glyphs-widget.c (image_instantiator_combo_box):
11895         * glyphs-widget.c (image_instantiator_scrollbar):
11896         * glyphs-widget.c (image_instantiator_tab_control):
11897         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11898         (2).
11899         support (unimplemented) keyword initial-focus.
11900         reindent long macros.
11901
11902         * glyphs-x.c (x_redisplay_widget):
11903         * glyphs-x.c (x_button_instantiate):
11904         * glyphs-x.c (x_button_redisplay):
11905         * glyphs-x.c (x_progress_gauge_instantiate):
11906         * glyphs-x.c (x_edit_field_instantiate):
11907         * glyphs-x.c (x_combo_box_instantiate):
11908         * glyphs-x.c (x_tab_control_instantiate):
11909         * glyphs-x.c (x_label_instantiate):
11910         * gui-x.c:
11911         * gui-x.c (button_item_to_widget_value):
11912         * gui-x.c (gui_items_to_widget_values_1):
11913         * gui-x.c (gui_item_children_to_widget_values):
11914         * gui-x.c (gui_items_to_widget_values):
11915         * gui-x.h:
11916         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11917         add new flag to gui-parsing routines to indicate whether
11918         accelerator specs should be supported.
11919
11920         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11921
11922         * glyphs.h (struct Lisp_Image_Instance):
11923         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11924         add initial-focus flag.
11925
11926         * gui.c:
11927         * gui.c (syms_of_gui):
11928         * gui.c (vars_of_gui):
11929         clean up menu-no-selection-hook.
11930
11931         * gui.h:
11932         support delete-dialog-box-hook.
11933
11934         * lread.c (Fload_internal):
11935         * lread.c (locate_file_in_directory_mapper):
11936         (1).
11937
11938         * lrecord.h:
11939         * lrecord.h (struct toolbar_button):
11940         * lrecord.h (syms_of_toolbar):
11941         document how to create a new object.
11942
11943         * menubar-msw.c (mswindows_char_is_accelerator):
11944         may be called on frames w/o menus.
11945
11946         * menubar.c (vars_of_menubar):
11947         clean up :filter docs.
11948
11949         * nt.c (readdir):
11950         * ntproc.c:
11951         (1).
11952
11953         * process-nt.c:
11954         * process-nt.c (validate_signal_number):
11955         * process-nt.c (signal_cannot_launch):
11956         * process-nt.c (nt_create_process):
11957         * process-nt.c (nt_send_process):
11958         * process-nt.c (nt_kill_child_process):
11959         * process-nt.c (nt_open_network_stream):
11960         * process-nt.c (syms_of_process_nt):
11961         (2).
11962         delete quote-handling.  call new lisp code that does it better.
11963
11964         * process-unix.c (connect_to_file_descriptor):
11965         * process-unix.c (allocate_pty):
11966         * process-unix.c (unix_send_process):
11967         * process-unix.c (unix_kill_child_process):
11968         * process-unix.c (unix_open_network_stream):
11969         * process-unix.c (unix_open_multicast_group):
11970         (1). (2).
11971
11972         * process.c:
11973         * process.c (Fstart_process_internal):
11974         (2).  need to canonicalize process path even if absolute.
11975
11976         * select-msw.c (symbol_to_ms_cf):
11977         * select-msw.c (ms_cf_to_symbol):
11978         * select-msw.c (cf_is_autofreed):
11979         * select-msw.c (mswindows_destroy_selection):
11980         * select.c:
11981         * select.c (syms_of_select):
11982         * select.h:
11983         support dibv5, fix bugs. (from Mike Alexander)
11984
11985         * select.c (Fget_selection_internal):
11986         * select.c (select_convert_out):
11987
11988         * sysdep.c:
11989         * sysdep.c (xemacs_stat):
11990         renamed.
11991
11992         * sysdep.c (mkdir):
11993         * sysdep.c (rmdir):
11994         but keep original stat() here because we provide encapsulation
11995         around these funs.
11996
11997         * sysfile.h:
11998         * sysfile.h (fstat):
11999         remove stat garbage.
12000
12001         * syswindows.h:
12002         fix X/MSW conflict.
12003         don't include tchar.h.  it's inappropriate because it makes
12004         compile-time distinctions when we want runtime distinctions.
12005         (we provide our own tchar replacements)
12006
12007         * toolbar.c:
12008         use default object printer for toolbar-button.
12009
12010         * unexcw.c:
12011         make sure we don't encapsulate.
12012
12013         * window.c (vars_of_window):
12014         emphasize that temp-buffer-show-hook is obsolete.
12015
12016 2000-08-05  Martin Buchholz  <martin@xemacs.org>
12017
12018         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
12019         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
12020
12021         * events.c (Fevent_timestamp_lessp):
12022         Not 64-bit clean.  Use EMACS_INT, not int.
12023
12024 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
12025
12026         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
12027         unsigned int and changed the last enum to
12028         lrecord_type_last_built_in_type.
12029         (lrecord_implementations_table): changed prototype to know how
12030         long the array is supposed to be.
12031         (lrecord_type_count): new unsigned int to keep track of the
12032         current number of lisp lrecord types.
12033         (DEFINE_EXTERNAL_LRECORD):
12034         (DECLARE_EXTERNAL_LRECORD): Added these two for external
12035         dynamic-modules to declare new lisp types. They are the same
12036         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
12037         int for each new type, and increment lrecord_type_count by 1.
12038
12039         * alloc.c (lrecord_implementations_table): Changed to reference
12040         lrecord_type_last_built_in_type for the size of the array.
12041         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
12042
12043 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12044
12045         * glyphs.h (check_valid_item_list): Renamed from
12046         check_valid_item_list_1.
12047
12048 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
12049
12050         * select.c (Qselect_coerce): New.
12051         * select.c (Vselection_coercion_alist): New.
12052         * select.c (syms_of_select): Declare.
12053         * select.c (get-selection-internal): Use it.
12054         Use the new select-coerce functionality.
12055
12056         * select.c (select_coerce): New.
12057         * select.h (select_coerce): Declare.
12058         New function to coerce one type of data into another.
12059
12060 2000-08-03  Martin Buchholz  <martin@xemacs.org>
12061
12062         * callproc.c (Fcall_process_internal):
12063         (Fcall_process_internal):
12064         * process-unix.c (unix_create_process):
12065         Save and restore the value of errno, so that error messages are accurate.
12066
12067 2000-08-01  Martin Buchholz  <martin@xemacs.org>
12068
12069         * elhash.c (print_hash_table):
12070         Fix printing of hash tables to also use `key-and-value' instead of `t'.
12071         Prettify docstrings and indentation.
12072
12073 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
12074
12075         * window.c (Fwindow_pixel_edges): Subtract frame border and
12076         gutter size.
12077
12078 2000-07-31  Andy Piper  <andy@xemacs.org>
12079
12080         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
12081         will acknowledge the change.
12082
12083         * glyphs.h: declare tab_control_order_only_changed.
12084
12085         * glyphs-x.c (x_tab_control_redisplay): use
12086         tab_control_order_only_changed.
12087
12088         * glyphs-widget.c (tab_control_order_only_changed): new function.
12089
12090         * glyphs-msw.c (mswindows_tab_control_redisplay): use
12091         tab_control_order_only_changed.
12092
12093         * gui.c (gui_item_equal_sans_selected): new function.
12094         (gui_item_equal): use it.
12095
12096         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
12097         :properties in favor of :items..
12098
12099         * glyphs-widget.c (check_valid_item_list): rename from
12100         check_valid_item_list_1.
12101         (check_valid_item_list_1): renamed.
12102         (combo_box_validate): deprecate :properties in favor of :items.
12103         (widget_instantiate): ditto.
12104         (tab_control_update): ditto.
12105         (image_instantiator_combo_box): ditto.
12106         (image_instantiator_tree_view): ditto.
12107         (image_instantiator_tab_control): ditto.
12108         (layout_post_instantiate): remove dead code.
12109
12110         * print.c (debug_print_no_newline): only write to debugger if in
12111         WIN32_NATIVE.
12112
12113         * elhash.c (Fmake_hash_table): update doc string.
12114
12115         * event-msw.c (mswindows_wnd_proc): don't allow processing of
12116         messages whilst in GC. This at least stops XEmacs crashing but has
12117         the potential for wierd behaviour.
12118
12119 2000-07-31  Martin Buchholz  <martin@xemacs.org>
12120
12121         * config.h.in:
12122         Make existence of s&m files optional.
12123
12124         * s/bsd386.h: Remove HAVE_GETLOADAVG.
12125         * s/freebsd.h: Remove HAVE_GETLOADAVG.
12126         * s/gnu.h: Remove HAVE_GETLOADAVG.
12127         * s/netbsd.h: Remove HAVE_GETLOADAVG.
12128         * s/sol2.h: Remove HAVE_GETLOADAVG.
12129         * lisp.h: Remove getloadavg() declaration.
12130         * fns.c:
12131         Include <sys/loadavg.h> if available.
12132         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
12133         * config.h.in:  Group together getloadavg()-related macros.
12134         Use only configure-time tests to detect getloadavg().
12135
12136 2000-07-30  Martin Buchholz  <martin@xemacs.org>
12137
12138         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
12139
12140 2000-07-25  Andy Piper  <andy@xemacs.org>
12141
12142         * syswindows.h: add tchar.h for native builds.
12143
12144         * frame.c (syms_of_frame): remove set-glyph-image.
12145
12146         * general-slots.h: add Qset_glyph_image.
12147
12148         * glyphs-widget.c (layout_update): add domain arg to
12149         set-glyph-image.
12150         (syms_of_glyphs_widget): remove set-glyph-image.
12151
12152 2000-07-23  Ben Wing  <ben@xemacs.org>
12153
12154         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
12155         Vpopup_frame_list.
12156
12157 2000-07-22  Andy Piper  <andy@xemacs.org>
12158
12159         * symsinit.h: add syms_of_win32().
12160
12161         * gui-msw.c (syms_of_gui_mswindows): remove
12162         Fmswindows_shell_execute.
12163         (Fmswindows_shell_execute): moved to win32.c.
12164
12165         * emacs.c (main_1): add syms_of_win32 ().
12166
12167         * win32.c (init_potentially_nonexistent_functions): rewrite in
12168         compiler-friendly terms.
12169         (Fmswindows_shell_execute): move here from gui-msw.c.
12170         (syms_of_win32): new.
12171
12172         * device-msw.c (Fmswindows_printer_list): clean up args to
12173         EnumPrinters.
12174         Don't include tchar under cygwin or mingw.
12175         (msprinter_default_printer): make cygwin-friendly.
12176
12177 2000-07-21  Andy Piper  <andy@xemacs.org>
12178
12179         * glyphs-widget.c (image_instantiator_tree_view): use tab
12180         control's update function.
12181         (layout_property): new function. Retrieve items.
12182
12183         * glyphs-msw.c (mswindows_tree_view_redisplay): new
12184         function. Re-populate the tree view from the pending items.
12185
12186         * glyphs.c (instantiate_image_instantiator): Make sure the domain
12187         is designated the parent if the domain is an image instance. This
12188         is needed so that dirtiness can be cascade up the hierarchy and
12189         thus for layout children to be redisplayed correctly.
12190         (allocate_image_instance): rename glyph -> parent.
12191
12192         * redisplay.h: change redisplay_output_layout signature.
12193
12194         * redisplay-msw.c (mswindows_output_display_block): use domain
12195         arg.
12196
12197         * redisplay-x.c (x_output_display_block): use domain arg.
12198
12199 2000-07-10  Andy Piper  <andy@xemacs.org>
12200
12201         * window.c (Fset_window_configuration): add comment.
12202
12203         * redisplay-output.c (compare_runes):
12204         (redisplay_output_subwindow): redisplay rather than update subwindow.
12205         (redisplay_output_layout): ditto.
12206
12207         * redisplay-msw.c (mswindows_frame_output_end):
12208         (mswindows_frame_output_end): make defer window pos optional.
12209
12210         * lisp.h: add Flast.
12211
12212         * glyphs.h (struct image_instantiator_methods): add dest_mask top
12213         normalize method. Change update method to be for changed
12214         instantiators. Add redisplay method. Change signature of layout
12215         method.
12216         (struct Lisp_Image_Instance): add instantiator.
12217         (IMAGE_INSTANCE_INSTANTIATOR): new.
12218         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
12219         (XIMAGE_INSTANCE_INSTANTIATOR): new.
12220         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
12221
12222         * glyphs.c:
12223         (find_instantiator_differences): new function.
12224         (Fset_instantiator_property): new convenience function.
12225         (check_image_instance_structure): strictly check for vector
12226         instantiators.
12227         (normalize_image_instantiator): make non-static.
12228         (instantiate_image_instantiator): pass on dest_mask and use new
12229         signatures for image_instance_layout and friends.
12230         (mark_image_instance): mark the instantiator. Mark the subwindow
12231         face not the widget face.
12232         (image_instance_equal): add instantiator.
12233         (image_instance_hash): ditto.
12234         (allocate_image_instance): ditto.
12235         (Fset_image_instance_property): removed.
12236         (Fimage_instance_file_name): ditto.
12237         (Fcolorize_image_instance): ditto.
12238         (image_instance_layout): add offsets to be set.
12239         (update_image_instance): new function. update an image instance
12240         from its changed instantiator.
12241         (inherit_normalize): add dest_mask.
12242         (xbm_normalize): ditto.
12243         (xface_normalize): ditto.
12244         (xpm_normalize): ditto.
12245         (text_update): set_property -> update.
12246         (image_instantiate): use the glyph identity as a hash key, not the
12247         instantiator.
12248         (glyph_width): use new image_instance_layout signature.
12249         (glyph_ascent): ditto.
12250         (glyph_descent): ditto.
12251         (glyph_height): ditto.
12252         (glyph_query_geometry): ressurrect.
12253         (glyph_layout): ditto.
12254         (redisplay_subwindow): update -> redisplay.
12255         (syms_of_glyphs): add Fset_instantiator_property.
12256         (image_instantiator_format_create): set_property -> update.
12257
12258         * glyphs-x.c:
12259         (autodetect_normalize): add dest_maks to signature.
12260         (x_redisplay_subwindow): update -> redisplay.
12261         (x_redisplay_widget): ditto.
12262         (x_button_redisplay): ditto.
12263         (x_progress_gauge_redisplay): ditto.
12264         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
12265         stacking order.
12266         (console_type_create_glyphs_x): update -> redisplay.
12267         (image_instantiator_format_create_glyphs_x): ditto.
12268
12269         * glyphs-widget.c:
12270         (check_valid_instantiator): disallow glyphs in the instantiator,
12271         they must now be vectors.
12272         (check_valid_instantiator_list): ditto.
12273         (glyph_instantiator_to_glyph): use internal symbol rather than
12274         intern.
12275         (widget_update): renamed from widget_set_property. Call cascaded
12276         update methods.
12277         (redisplay_widget): renamed from update_widget.
12278         (widget_layout): image_instance_layout now takes position as well
12279         as size.
12280         (widget_normalize): ditto.
12281         (widget_instantiate): ditto.
12282         (tab_control_query_geometry) ditto.:
12283         (tab_control_update): renamed from tab_control_set_property.
12284         (progress_gauge_update): set_property -> update.
12285         (layout_normalize): rewrite so that child instantiators are
12286         normalized also.
12287         (layout_update): new function. Create glyphs from the normalized
12288         children and cope with any other layout keywords. We do not
12289         instantiate children here that will be take care of by
12290         redisplay_output_layout.
12291         (layout_instantiate): call layout_update and not much else.
12292         (layout_post_instantiate): not sure whether this is needed
12293         anymore.
12294         (layout_query_geometry): query glyph geometry rather than
12295         image_instance geometry.
12296         (layout_layout): set offsets from pass in parameters. Use glyph
12297         geometry and layout functions rather than image instance ones.
12298         (native_layout_layout): ditto.
12299         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
12300         (image_instantiator_widget): set_property -> update.
12301         (image_instantiator_buttons): ditto.
12302         (image_instantiator_progress_guage): ditto.
12303         (image_instantiator_tab_control): ditto.
12304         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
12305         (image_instantiator_layout): add update method.
12306
12307         * glyphs-msw.c (bmp_normalize):
12308         (mswindows_resource_normalize): add dest_mask so that it can be
12309         proprogated by layout_normalize.
12310         (begin_defer_window_pos): make optional because it may not be the
12311         right thing to do and it introduces differences with X.
12312         (mswindows_unmap_subwindow): ditto.
12313         (mswindows_map_subwindow): ditto.
12314         (mswindows_redisplay_subwindow): renamed from
12315         mswindows_update_subwindow.
12316         (mswindows_redisplay_widget): ditto.
12317         (mswindows_button_redisplay): renamed from
12318         mswindows_button_update. Update is now what the instantiation
12319         function does for a changed instantiator.
12320         (mswindows_progress_gauge_instantiate): set the progress value
12321         here if appropriate.
12322         (mswindows_tab_control_redisplay): cope with re-ordering of the
12323         members of the tab widget by simply selecting the new top
12324         widget. This makes things appear ok if you click on a tab.
12325         (mswindows_combo_box_instantiate): image_instance_layout now takes
12326         position as well as size.
12327         (mswindows_progress_gauge_redisplay): renamed from
12328         mswindows_progress_gauge_update.
12329         (console_type_create_glyphs_mswindows): fix update -> redisplay.
12330         (image_instantiator_format_create_glyphs_mswindows): ditto.
12331
12332         * glyphs-eimage.c (jpeg_normalize):
12333         (gif_normalize):
12334         (png_normalize):
12335         (tiff_normalize): add dest_mask so that it can be proprogated by
12336         layout_normalize.
12337
12338         * elhash.c:
12339         (print_hash_table):
12340         (hash_table_weakness_validate):
12341         (decode_hash_table_weakness):
12342         (Fhash_table_weakness):
12343         (Fhash_table_type):
12344         (syms_of_elhash): use Ben's naming scheme for hashtable types..
12345
12346         * console.h (struct console_methods): move update_* to
12347         redisplay_*.
12348
12349 2000-07-20  Ben Wing  <ben@xemacs.org>
12350
12351         * *.[ch] (XSETOBJ): remove unused middle argument.
12352         lisp-disunion.h: correct wrap_object() to one argument.
12353
12354 2000-07-15  Ben Wing  <ben@xemacs.org>
12355
12356         * s/cygwin32.h:
12357         * s/cygwin32.h (CYGWIN_CONV_PATH):
12358         Add missing logb prototype for v1.1.
12359         Use post-b20 names and alias to pre-b20 names when pre-b20.
12360
12361         * s/windowsnt.h: [5].
12362
12363 2000-07-15  Ben Wing  <ben@xemacs.org>
12364
12365         * Makefile.in.in (x_objs):
12366         * Makefile.in.in (sheap_objs):
12367         * Makefile.in.in (objs):
12368         added win32.o, cosmetic cleanups.
12369
12370         * alloc.c (Fmake_byte_code):
12371         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12372         etc. macros which declare their own args now.
12373
12374         * alloc.c (syms_of_alloc):
12375         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12376
12377         * buffer.c:
12378         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12379
12380         * buffer.c (Fget_file_buffer):
12381         Fixed GCPRO problem.
12382
12383         * buffer.c (get_truename_buffer):
12384         Fixed comment about GC checking.
12385
12386         * buffer.c (syms_of_buffer):
12387         Undeclared those dedicated frame funs.
12388         [2].
12389
12390         * buffer.h:
12391         Define convenience macros for internal/external conversions.
12392         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12393         and Qenvironment_variable_encoding for cleaner code.
12394
12395         * bufslots.h:
12396         Remove dedicated-frame; in lisp.
12397
12398         * bytecode.c (funcall_compiled_function):
12399         [1].
12400
12401         * bytecode.c (syms_of_bytecode):
12402         [2].
12403
12404         * console-msw.c:
12405         * console-msw.c (mswindows_show_console): Rewrote.
12406
12407         * console-msw.c (Fmswindows_debugging_output): New.
12408         Sends to OutputDebugString (special MSWin debugger interface).
12409
12410         * console-msw.c (Fmswindows_message_box):
12411         Fixed stupid bugs so it works when called from kill-emacs.
12412
12413         * console-msw.c (syms_of_console_mswindows):
12414         Declare Fmswindows_debugging_output.
12415
12416         * console-msw.h:
12417         New MSWin prototypes.
12418
12419         * console-msw.h (struct mswindows_frame):
12420         New entry last-click-mods for improved button-modifier support.
12421
12422         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12423         New struct entry `popup' with corresponding accessor.
12424
12425         * console-x.c:
12426         * console-x.c (split_up_display_spec):
12427         * console-x.c (get_display_arg_connection):
12428         * console-x.c (x_semi_canonicalize_console_connection):
12429         * console-x.c (x_canonicalize_device_connection):
12430         [[[6]]]: Change char to more specific type.
12431         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12432
12433         * console-x.c (x_semi_canonicalize_console_connection):
12434         * console-x.c (x_canonicalize_device_connection):
12435         [[[9]]]: Fix up error signalling to use new structured error system.
12436
12437         * console-x.h:
12438         [[[4]]]: Define codesys aliases:
12439         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12440         Qx_color_name_encoding, Qx_display_name_encoding.
12441
12442         * console.h (struct console_methods):
12443         New method make_dialog_box_internal supersedes older
12444         popup_dialog_box method.
12445
12446         * data.c:
12447         Define many new errors, part of new structured errors.
12448
12449         * data.c (init_errors_once_early):
12450         * data.c (syms_of_data):
12451         [2].
12452
12453         * device-msw.c (mswindows_init_device):
12454         [[[5]]]: Cleanup to support NT 3.51.
12455
12456         * device-msw.c (decode_devmode): Cleanup.
12457
12458         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12459         * device-msw.c (mswindows_handle_print_dialog_box):
12460         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12461         * device-msw.c (syms_of_device_mswindows):
12462         Delete the dialog box primitives recently introduced by Kirill and
12463         instead interface to general dialog box interface.
12464
12465         * device-x.c:
12466         * device-x.c (compute_x_app_name):
12467         * device-x.c (x_init_device):
12468         * device-x.c (Fx_valid_keysym_name_p):
12469         * device-x.c (Fx_set_font_path):
12470         [6].
12471         [7].
12472
12473         * device.h (wrap_device): New.
12474         First of its kind; meant to replace XSETDEVICE.
12475
12476         * dialog-msw.c: Many file-dialog symbols.
12477
12478         * dialog-msw.c (mswindows_register_popup_frame): New.
12479         * dialog-msw.c (mswindows_is_dialog_msg): New.
12480         For supporting kbd traversal in dialog boxes.
12481
12482         * dialog-msw.c (dialog_proc):
12483         Support hitting ESC in dialogs.
12484
12485         * dialog-msw.c (struct):
12486         Common dialog box errors.
12487
12488         * dialog-msw.c (handle_file_dialog_box): New.
12489         Add file dialog code.
12490
12491         * dialog-msw.c (handle_question_dialog_box):
12492         Redo existing code to support new question dialog syntax.
12493
12494         * dialog-msw.c (console_type_create_dialog_mswindows):
12495         We support new dialog console method.
12496
12497         * dialog-msw.c (syms_of_dialog_mswindows):
12498         * dialog-msw.c (vars_of_dialog_mswindows):
12499         New file dialog symbols, vars.
12500
12501         * dialog-x.c:
12502         * dialog-x.c (maybe_run_dbox_text_callback):
12503         * dialog-x.c (dbox_descriptor_to_widget_value):
12504         * dialog-x.c (x_make_dialog_box_internal):
12505         * dialog-x.c (console_type_create_dialog_x):
12506         Mule-ize entire file.
12507         Redo to support question dialog syntax.
12508         [6].
12509
12510         * dialog.c:
12511         * dialog.c (Fmake_dialog_box_internal):
12512         * dialog.c (syms_of_dialog):
12513         Kill old popup-dialog-box, replace with new primitive.
12514         Just call device method or signal error.
12515
12516         * eldap.c (Fldap_open):
12517         * eldap.c (Fldap_search_basic):
12518         * eldap.c (Fldap_add):
12519         * eldap.c (Fldap_modify):
12520         [1].
12521         [7].
12522
12523         * emacs.c:
12524         * emacs.c (make_arg_list_1):
12525         * emacs.c (make_arg_list):
12526         Mule-ize call to dll_init().
12527         [6].
12528         [8].
12529
12530         * emacs.c (make_argc_argv):
12531         * emacs.c (free_argc_argv):
12532         * emacs.c (init_cmdargs):
12533         * emacs.c (main_1):
12534         * emacs.c (Fkill_emacs):
12535         * emacs.c (Fdump_emacs):
12536         Update comments about what can be used in syms_* etc.
12537         Call init_win32() when necessary.
12538         Fix up MS Win dialog box in kill-buffer to actually work right.
12539         [7].
12540
12541         * eval.c:
12542         * eval.c (For):
12543         * eval.c (Fand):
12544         * eval.c (Fprogn):
12545         * eval.c (Fprog1):
12546         * eval.c (Fprog2):
12547         * eval.c (FletX):
12548         * eval.c (Flet):
12549         * eval.c (condition_case_3):
12550         * eval.c (Feval):
12551         * eval.c (function_argcount):
12552         * eval.c (funcall_lambda):
12553         [1].
12554
12555         * eval.c (type_error): New.
12556         * eval.c (maybe_type_error): New.
12557         * eval.c (continuable_type_error): New.
12558         * eval.c (maybe_continuable_type_error): New.
12559         * eval.c (type_error_with_frob): New.
12560         * eval.c (maybe_type_error_with_frob): New.
12561         * eval.c (continuable_type_error_with_frob): New.
12562         * eval.c (maybe_continuable_type_error_with_frob): New.
12563         New functions for use with structured errors.
12564
12565         * event-Xt.c:
12566         * event-Xt.c (x_event_to_emacs_event):
12567         Buttons are now modifiers too.
12568
12569         * event-Xt.c (emacs_Xt_current_event_timestamp):
12570         Implement new event method.
12571         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12572
12573         * event-msw.c:
12574         * event-msw.c (ntpipe_shove_writer): [5].
12575         * event-msw.c (mswindows_enqueue_mouse_button_event):
12576         * event-msw.c (mswindows_drain_windows_queue):
12577         * event-msw.c (mswindows_wnd_proc): [7].
12578         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12579         * event-msw.c (mswindows_modifier_state):
12580         Throughout: support new button modifiers.
12581
12582         * event-msw.c (emacs_mswindows_current_event_timestamp):
12583         Implement new event method.
12584         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12585
12586         * event-stream.c:
12587         * event-stream.c (event_stream_current_event_timestamp): New.
12588         * event-stream.c (maybe_kbd_translate): New functionality.
12589         * event-stream.c (vars_of_event_stream):
12590         Document new kbd-translate-table functionality.
12591
12592         * event-stream.c (Fcurrent_event_timestamp): New.
12593         New primitive for use in fabricated events.
12594         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12595
12596         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12597
12598         * events.c:
12599         * events.c (Fmake_event):
12600         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12601         [1].
12602         [9].
12603
12604         * events.c (format_event_object): fix gcc warnings.
12605
12606         * events.c (Fevent_timestamp): Document new primitives.
12607
12608         * events.c (TIMESTAMP_HALFSPACE): New.
12609
12610         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12611         comparing timestamps correctly (half-space algorithm).
12612
12613         * events.c (Fevent_modifier_bits): Doc fix.
12614
12615         * events.c (Fevent_modifiers): Major doc addition.
12616         * events.c (event_x_y_pixel_internal): Typo fix.
12617         * events.c (syms_of_events): Declare new primitives.
12618
12619         * events.h:
12620         Update long comment for button modifiers, timestamps.
12621
12622         * events.h (struct event_stream):
12623         New current_event_timestamp method.
12624
12625         * extents.c:
12626         * extents.c (extent_in_region_p):
12627         * extents.c (decode_extent):
12628         * extents.c (Fset_extent_parent):
12629         * extents.c (decode_map_extents_flags):
12630         Fix gcc warnings.
12631         [9].
12632
12633         * extents.c (struct extent_at_arg):
12634         * extents.c (decode_extent_at_flag):
12635         * extents.c (extent_at_mapper):
12636         * extents.c (extent_at_bytind):
12637         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12638         * extents.c (Fextents_at): New primitive. [9].
12639         * extents.c (symbol_to_glyph_layout): [9].
12640         Support new primitive `extents-at'.
12641
12642
12643         * extents.c (get_text_property_bytind):
12644         extent_at_bytind has another arg.
12645         [9].
12646
12647         * extents.c (syms_of_extents): New primitive.
12648
12649         * file-coding.c (Fmake_coding_system): [1].
12650         * file-coding.c (subsidiary_coding_system): fix gcc warning
12651         * file-coding.c (syms_of_file_coding): [2].
12652
12653         * fileio.c (Fexpand_file_name):
12654         * fileio.c (Fsysnetunam):
12655         * fileio.c (Ffile_exists_p):
12656         * fileio.c (Ffile_executable_p):
12657         * fileio.c (Fverify_visited_file_modtime):
12658         Clean up GCPROing.
12659
12660         * fileio.c (syms_of_fileio): [2].
12661
12662         * filelock.c (lock_file_1):
12663         * filelock.c (current_lock_owner):
12664         * filelock.c (lock_if_free):
12665         * filelock.c (lock_file):
12666         * filelock.c (unlock_file):
12667         Clean up GCPROing.
12668
12669         * fns.c (concat): Fix gcc warning.
12670
12671         * fns.c (Fmember):
12672         * fns.c (Fold_member):
12673         * fns.c (Fmemq):
12674         * fns.c (Fold_memq):
12675         * fns.c (memq_no_quit):
12676         * fns.c (Fassoc):
12677         * fns.c (Fold_assoc):
12678         * fns.c (Fassq):
12679         * fns.c (Fold_assq):
12680         * fns.c (assq_no_quit):
12681         * fns.c (Frassoc):
12682         * fns.c (Fold_rassoc):
12683         * fns.c (Frassq):
12684         * fns.c (Fold_rassq):
12685         * fns.c (rassq_no_quit):
12686         * fns.c (Fdelete):
12687         * fns.c (Fold_delete):
12688         * fns.c (Fdelq):
12689         * fns.c (Fold_delq):
12690         * fns.c (delq_no_quit):
12691         * fns.c (Fremassoc):
12692         * fns.c (Fremassq):
12693         * fns.c (remassq_no_quit):
12694         * fns.c (Fremrassoc):
12695         * fns.c (Fremrassq):
12696         * fns.c (remrassq_no_quit):
12697         * fns.c (Freverse):
12698         * fns.c (mapcar1):
12699         [1].
12700
12701         * frame-msw.c (mswindows_init_frame_1):
12702         * frame-msw.c (mswindows_delete_frame):
12703         Register popups with dialog code so keyboard traversing works.
12704
12705         * frame-tty.c (tty_raise_frame_no_select): [1].
12706
12707         * frame-x.c:
12708         * frame-x.c (x_set_frame_text_value):
12709         * frame-x.c (x_set_frame_properties):
12710         * frame-x.c (x_create_widgets):
12711         [7].
12712
12713         * frame.c:
12714         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12715
12716         * frame.h (wrap_frame): New.
12717         Macro like wrap_device.
12718
12719         * general.c:
12720         * general.c (SYMBOL):
12721         * general.c (syms_of_general):
12722         Major reorg.  This is now just a wrapper and symbols themselves
12723         are listed in general-slots.h.
12724
12725         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12726         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12727
12728         * glyphs-msw.c (mswindows_native_layout_instantiate):
12729         Add DS_CONTROL so keyboard traversal will work.
12730
12731         * glyphs-widget.c:
12732         * glyphs-widget.c (syms_of_glyphs_widget):
12733         Move some symbols to general-slots.h.
12734
12735         * glyphs-x.c:
12736         * glyphs-x.c (xbm_instantiate_1):
12737         * glyphs-x.c (x_xbm_instantiate):
12738         * glyphs-x.c (x_xface_instantiate):
12739         * glyphs-x.c (autodetect_instantiate):
12740         * glyphs-x.c (cursor_font_instantiate):
12741         * glyphs-x.c (x_update_widget):
12742         * glyphs-x.c (x_widget_instantiate):
12743         * glyphs.c (bitmap_to_lisp_data):
12744         * glyphs.c (pixmap_to_lisp_data):
12745         [7].
12746
12747         * glyphs.c (syms_of_glyphs):
12748         [2].
12749
12750         * gui-x.c:
12751         * gui-x.c (print_widget_value):
12752         * gui-x.c (menu_separator_style_and_to_external):
12753         * gui-x.c (add_accel_and_to_external):
12754         * gui-x.c (button_item_to_widget_value):
12755         * gui-x.c (gui_items_to_widget_values_1):
12756         * gui-x.c (gui_items_to_widget_values):
12757         * gui-x.c (syms_of_gui_x):
12758         * gui-x.c (vars_of_gui_x):
12759         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12760         [9].
12761
12762         * gui-x.h:
12763         Muleize, prototype changes matching gui-x.c.
12764
12765         * gui.c:
12766         * gui.c (separator_string_p):
12767         * gui.c (gui_item_add_keyval_pair):
12768         * gui.c (make_gui_item_from_keywords_internal):
12769         * gui.c (signal_too_long_error):
12770         * gui.c (parse_gui_item_tree_item):
12771         * gui.c (syms_of_gui):
12772         * gui.c (vars_of_gui):
12773         * gui.h:
12774         menu-no-selection-hook moved here (used by MSWin).
12775         Move some symbols to general-slots.h.
12776         [6].
12777         [9].
12778
12779         * insdel.c (get_buffer_pos_char):
12780         * insdel.c (get_buffer_range_char):
12781         Add GC comments.
12782
12783         * keymap.c (keymap_lookup_directly):
12784         * keymap.c (keymap_store):
12785         * keymap.c (ensure_meta_prefix_char_keymapp):
12786         * keymap.c (describe_map):
12787         * keymap.h:
12788         Support new button modifiers.
12789
12790         * lisp-disunion.h (wrap_object):
12791         * lisp-disunion.h (XSETOBJ):
12792         Rename make_obj to wrap_object.
12793
12794         * lisp-union.h:
12795         * lisp-union.h (make_int):
12796         * lisp-union.h (make_char):
12797         Support wrap_object.
12798
12799         * lisp.h:
12800         * lisp.h (LIST_LOOP):
12801         * lisp.h (EXTERNAL_LIST_LOOP):
12802         * lisp.h (LIST_LOOP_2):
12803         * lisp.h (EXTERNAL_LIST_LOOP_1):
12804         * lisp.h (EXTERNAL_LIST_LOOP_2):
12805         * lisp.h (EXTERNAL_LIST_LOOP_3):
12806         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12807         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12808         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12809         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12810         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12811         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12812         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12813         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12814         * lisp.h (struct Lisp_Symbol):
12815         * lisp.h (maybe_continuable_error_with_frob):
12816         Fix up section comments.
12817         Add new types for char to indicate usage.
12818         Delete symbols auto-generated from general-slots.h.
12819         Add prototypes for structured error functions.
12820         Add long comments describing looping macros and change interface
12821         so that lvalues are automatically declared.
12822         Add NO_DECLARE macro in case callers want to declare lvalues
12823         themselves.
12824
12825         * lread.c (read_syntax_error):
12826         * lread.c (continuable_read_syntax_error):
12827         * lread.c (read_structure):
12828         * lread.c (sequence_reader):
12829         * lread.c (read_list_conser):
12830         * lread.c (read_compiled_function):
12831         Rename syntax_error and continuable_syntax_error to avoid clash
12832         with same-named structured error functions.
12833
12834         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12835         * menubar-msw.c (populate_menu_add_item):
12836         * menubar-msw.c (populate_or_checksum_helper):
12837         [5].
12838         [9].
12839
12840         * menubar-x.c:
12841         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12842         Mule-ize whole file.
12843
12844         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12845
12846         * mule-charset.c (Fmake_charset):
12847         * mule-wnnfns.c (Fwnn_set_param):
12848         [1].
12849
12850         * ntproc.c (create_child):
12851         * ntproc.c (Fwin32_set_current_locale):
12852         Add comments portending doom.
12853
12854         * objects-msw.c:
12855         * objects-msw.c (old_font_enum_callback_2):
12856         * objects-msw.c (font_enum_callback_1):
12857         * objects-msw.c (mswindows_enumerate_fonts):
12858         [5].
12859
12860         * objects-x.c:
12861         * objects-x.c (allocate_nearest_color):
12862         * objects-x.c (x_parse_nearest_color):
12863         * objects-x.c (x_initialize_color_instance):
12864         * objects-x.c (x_print_color_instance):
12865         * objects-x.c (x_finalize_color_instance):
12866         * objects-x.c (x_valid_color_name_p):
12867         * objects-x.c (x_initialize_font_instance):
12868         * objects-x.c (x_print_font_instance):
12869         * objects-x.c (valid_x_font_name_p):
12870         * objects-x.c (truename_via_FONT_prop):
12871         * objects-x.c (truename_via_random_props):
12872         * objects-x.c (truename_via_XListFonts):
12873         * objects-x.c (x_font_truename):
12874         * objects-x.c (x_font_instance_truename):
12875         * objects-x.c (x_font_instance_properties):
12876         * objects-x.c (x_list_fonts):
12877         * objects-x.c (x_find_charset_font):
12878         Mule-ize entire file.
12879         [7].
12880
12881         * objects-x.h:
12882         Mule-verify.
12883
12884         * print.c:
12885         * print.c (std_handle_out_external):
12886         * print.c (debug_print_no_newline):
12887         * print.c (syms_of_print):
12888         Output to all debugger kinds in debug-print.
12889         Fix console-output code under MSWin to actually work.
12890
12891         * process-nt.c (send_signal):
12892         * process-nt.c (nt_create_process):
12893         Use newer Unicode macros.
12894
12895         * process-unix.c (unix_create_process):
12896         * process-unix.c (unix_canonicalize_host_name):
12897         * process-unix.c (unix_open_network_stream):
12898         [7].
12899
12900         * scrollbar-x.c:
12901         Mule-verify.
12902
12903         * search.c (syms_of_search):
12904         [2].
12905
12906         * select-msw.c (mswindows_destroy_selection):
12907         Use LIST_LOOP_2.
12908
12909         * select-x.c (symbol_to_x_atom):
12910         [7].
12911
12912         * select.c (syms_of_select):
12913         [2].
12914
12915         * sound.c (Fplay_sound_file):
12916         [7].
12917
12918         * specifier.c:
12919         * specifier.c (decode_specifier_type):
12920         * specifier.c (Fvalid_specifier_locale_type_p):
12921         * specifier.c (check_valid_locale_or_locale_type):
12922         * specifier.c (decode_locale):
12923         * specifier.c (decode_locale_type):
12924         * specifier.c (decode_locale_list):
12925         * specifier.c (check_valid_domain):
12926         * specifier.c (decode_specifier_tag_set):
12927         * specifier.c (Fcanonicalize_tag_set):
12928         * specifier.c (Fdefine_specifier_tag):
12929         * specifier.c (Fspecifier_tag_predicate):
12930         * specifier.c (check_valid_inst_list):
12931         * specifier.c (check_valid_spec_list):
12932         * specifier.c (decode_how_to_add_specification):
12933         * specifier.c (check_modifiable_specifier):
12934         * specifier.c (specifier_add_spec):
12935         * specifier.c (boolean_validate):
12936         * specifier.c (display_table_validate):
12937         [9].
12938
12939         * specifier.c (syms_of_specifier):
12940         Move some symbols to general-slots.h.
12941         [2].
12942
12943         * symbols.c:
12944         * symbols.c (Fmapatoms):
12945         * symbols.c (Fapropos_internal):
12946         Add GCPROs.
12947
12948         * symbols.c (set_default_buffer_slot_variable):
12949         * symbols.c (set_default_console_slot_variable):
12950         [1].
12951
12952         * symbols.c (defsymbol_massage_name_1):
12953         * symbols.c (defkeyword_massage_name):
12954         * symbols.c (deferror_1):
12955         * symbols.c (deferror):
12956         * symbols.c (deferror_massage_name_and_message):
12957         * symeval.h:
12958         * symeval.h (DEFSYMBOL):
12959         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12960
12961         * symbols.c (syms_of_symbols):
12962         [2].
12963
12964         * symsinit.h:
12965         * symsinit.h (init_win32): New.
12966         Also new is syms_of_dialog_mswindows.
12967
12968         * syswindows.h:
12969         Add new Unicode macros, missing Cygwin wide-char functions,
12970         convenience conversion macros for Qmswindows_tstr, macros for
12971         encapsulating required MSWin <-> Cygwin filename conversions,
12972         prototype for dynamically-extracted (not in NT 3.51) functions.
12973
12974         * toolbar-x.c:
12975         Mule-verify.
12976
12977         * tooltalk.c (Fadd_tooltalk_message_arg):
12978         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12979         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12980         [7].
12981
12982         * tooltalk.c (syms_of_tooltalk):
12983         [2].
12984
12985         * unexnt.c:
12986         * unexnt.c (unexec):
12987         Fix up headers, declaration of unexec() to be more standard.
12988
12989 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12990
12991         * offix.h: Revert change to guard macros - they're used in offix.c!
12992
12993 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12994
12995         * lisp.h: Defsubred Fdelete.
12996
12997         * console-msw.h:  (msprinter_default_printer): Added.
12998
12999         * console-msw.c (msprinter_canonicalize_console_connection):
13000         (msprinter_canonicalize_device_connection): Added.
13001
13002         * device-msw.c (msprinter_default_printer):
13003         (Fmswingows_get_default_printer):
13004         (signal_enum_priner_error):
13005         (Fmswingows_printer_list): Added.
13006
13007 2000-07-19  Martin Buchholz <martin@xemacs.org>
13008
13009         * XEmacs 21.2.35 is released.
13010
13011 2000-07-19  Martin Buchholz  <martin@xemacs.org>
13012
13013         * select-x.c (x_handle_selection_request):
13014         Text selected in xemacs and pasted into xterm failed to appear.
13015         Spelling fixes and cosmetic changes.
13016
13017 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13018
13019         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
13020         XEmacs frame (fix for doubling chars in dialog boxes).
13021
13022 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
13023
13024         * select.c (select_convert_in, select_convert_out):
13025         Don't call intern() every time.
13026
13027         * select.c (Qselect_convert_in, Qselect_convert_out): New.
13028         * select.c (vars_of_select): Initialise them.
13029
13030 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
13031
13032         * select.c (selection-coercible-types): New.
13033
13034         * select.c (own-selection-internal):
13035         * select.c (get-selection-internal):
13036         MULE bug fix - these should default to COMPOUND_TEXT and not
13037         STRING for MULE. I think.
13038
13039         * select.c (select_convert_out): Use selection-coercible-types
13040         to find types that we can attempt to perform coercions on.
13041
13042 2000-07-18  Martin Buchholz  <martin@xemacs.org>
13043
13044         * mule-wnnfns.c:
13045         * mule-canna.c:
13046         Add coding: cookie to identify encoding.
13047
13048         * mule-canna.c (CANNA_mode_keys): make static.
13049         Use proper prototypes, even for functions of no arguments.
13050         Remove external prototype for Fding().
13051
13052         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
13053
13054         * select.c (syms_of_select): Add missing DEFSUBR.
13055
13056 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
13057
13058         * select.c (get_selection_internal, own_selection_internal):
13059         Make the type default to STRING, rather than placing a nil type
13060         into Vselection_alist.
13061
13062 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
13063
13064         * gpmevent.c (tty_selection_exists_p):
13065         * gpmevent.c (tty_own_selection):
13066         Updated parameter lists.
13067
13068 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
13069
13070         * select.h (selection-alist): Removed declaration.
13071
13072         * select.h (get_local_selection):
13073         * select.c (get_local_selection):
13074         Made static.
13075
13076         * select.h (convert_selection): Removed declaration.
13077         * select.c (convert_selection): Removed.
13078         This function belongs in Lisp.
13079
13080         * select.h (select_convert_in): Declare.
13081         * select.h (select_convert_out): Declare.
13082         * select.c (select_convert_in): New.
13083         * select.c (select_convert_out): New.
13084         New conversion functions for other files to call.
13085
13086         * select.h (select_notify_buffer_kill): Declare.
13087         * select.c (select_notify_buffer_kill): New.
13088         New functions that get called from kill-buffer.
13089
13090         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
13091         X-specific lisp code.
13092
13093         * select.h: Declare some of the lisp-visible functions for
13094         external use.
13095
13096         * select.c (clean_local_selection_data): Removed. This was
13097         a disgusting function, and previously should have been in
13098         select-x.c in any case. The functionality is now provided
13099         in select-convert-from-integer (select.el).
13100
13101         * select.c (available-selection-types): Fixed stupidity where
13102         INTEGER and ATOM got added twice. Also add STRING when we see an
13103         extent.
13104
13105         * select.c (get-selection-internal): Removed symbol stripping. No
13106         longer causes conversion when data comes from the internal cache.
13107
13108         * select.c (syms_of_select): Added new functions.
13109
13110         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
13111         error checking - previously this called abort!
13112
13113         * select-x.c (x_own_selection): Changed comment.
13114
13115         * select-x.c (x_handle_selection_request): Use select_convert_out.
13116         Don't mess with selection-alist; it's an internal variable of select.c.
13117
13118         * select-x.c (x_get_foreign_selection): Use select_convert_in.
13119
13120         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
13121         rather than messing with selection-alist.
13122
13123         * select-msw.c (mswindows_get_foreign_selection):
13124         Use TO_INTERNAL_FORMAT rather than hacking.
13125
13126 2000-07-14  Martin Buchholz  <martin@xemacs.org>
13127
13128         * process-unix.c (unix_open_multicast_group):
13129         (unix_open_multicast_group): Remove useless casts.
13130
13131 2000-07-13  Martin Buchholz  <martin@xemacs.org>
13132
13133         * sound.c (Fplay_sound): Fix `unused variable' warning.
13134
13135         * emacs.c (main): Use correct type for _environ on SCO5.
13136
13137 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
13138
13139         * console.h (own_selection_method):
13140         * console.h (selection_exists_p_method):
13141         * console.h (available_selection_types_method): New.
13142         * console.h (register_selection_data_type_method): New.
13143         * console.h (selection_data_type_name): New.
13144
13145         * console-msw.h (mswindows_destroy_selection): Declare it.  New
13146         function & alist to track GlobalAlloc()'d handles that need
13147         releasing when the clipboard data gets replaced or emptied.
13148
13149         * event-msw.c (mswindows_wnd_proc): Call it.
13150
13151         * lisp.h, general.c (Qappend): New symbol representing a
13152         `how-to-add' mode.
13153
13154         * select.c (own-selection-internal):
13155         * select.c (selection-exists-p):
13156         * select.c (available-selection-types): New.
13157         * select.c (register-selection-data-type): New.
13158         * select.c (selection-data-type-name): New.  New functions to deal
13159         with device-specific selection data formats.
13160         * select.c (selection-converter-out-alist): Renamed.
13161         * select.c (selection-converter-in-alist): New.
13162         * select.c (selection-appender-alist): New.  Added new alists.
13163         * select.c (syms_of_select, vars_of_select): Added new symbols &
13164         variables.
13165         * select.c (get_local_selection): Split.
13166         * select.c: Removed spurious type checking - selections may now be
13167         of any type, not just strings.
13168         * select.c (own-selection-internal):
13169
13170         * select.h, select.c (convert_selection): New. Created
13171         convert_selection() function based on get_local_selection().
13172         * select.h, select.c (QCF_*): New symbols representing mswindows
13173         clipboard formats.
13174         * select.h, select.c (Qreplace_all, Qreplace_existing): New
13175         symbols representing `how-to-add' modes.
13176
13177         * select-msw.c (x_sym_p): New.
13178         * select-msw.c (symbol_to_ms_cf): New.
13179         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
13180         symbols & clipboard formats. Can also handle string names.
13181         * select-msw.c (mswindows_own_selection):
13182         * select-msw.c (mswindows_selection_exists_p):
13183         Added `data-type' parameter. Use it.
13184         * select-msw.c (mswindows_available_selection_types): New.
13185         * select-msw.c (mswindows_register_selection_data_type): New.
13186         * select-msw.c (mswindows_selection_data_type_name): New.
13187         * select-msw.c (mswindows_own_selection):
13188         * select-msw.c (mswindows_get_foreign_selection):
13189         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
13190         * select-msw.c (console_create_select_mswindows): Added new methods.
13191         * select-msw.c (mswindows_destroy_selection): New.
13192         * select-msw.c (Vhandle_alist): New list.
13193         * select-msw.c (mswindows_own_selection):
13194
13195         * select-x.c (x_own_selection):
13196         * select-x.c (x_selection_exists_p):
13197         * select-x.c: Added some comments about maybe using new
13198         functionality.
13199         * select-x.c (x_own_selection):
13200
13201         * specifier.c: Remove definition of Qappend (now in general.c)
13202         * specifier.c (syms_of_specifier): Remove Qappend.
13203
13204 2000-07-12  Martin Buchholz  <martin@xemacs.org>
13205
13206         * config.h.in: Add socklen_t.
13207
13208         * s/decosf4-0.h: No special compiler flags needed or desired.
13209         In particular, undefine _BSD for DEC OSF 4.0.
13210
13211 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13212
13213         * redisplay-msw.c (msprinter_frame_output_end): Added.
13214         (console_type_create_redisplay_mswindows): Referred the above.
13215
13216         * frame.c (setup_frame_without_minibuffer): Do not create a
13217         default minibuffer frame on a printer device.
13218
13219         * frame-msw.c (apply_dc_geometry): Added.
13220         (msprinter_start_page):
13221         (msprinter_init_frame_3):
13222         (msprinter_eject_page): Use it.
13223
13224         * console-msw.h (struct msprinter_frame): Added pix_left and top,
13225         and removed residual duplex and orientation properties.
13226
13227 2000-07-11  Martin Buchholz  <martin@xemacs.org>
13228
13229         * eval.c (function_argcount): Work around a DEC CC compiler bug.
13230
13231         * unexalpha.c: Remove system prototypes from C sources!
13232
13233 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
13234
13235         * eval.c: Remove references to M-x edit-options in DEFUNs for
13236         `defvar' and `defconst'.
13237
13238 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13239
13240         * config.h.in: Remove SMART_INCLUDE hackery.
13241
13242         PostgreSQL hacking:
13243         * config.h.in: Don't use SMART_INCLUDE.
13244
13245         * postgresql.h: Include libpq-fe.h here.  Fix typo.
13246         * inline.c: Simply #include "postgresql.h"
13247         * postgresql.c:
13248         - Don't use SMART_INCLUDE
13249         - Use simply "const".
13250         - Use standard doc string conventions.
13251         - Use correct type for result of PQstatus.
13252
13253 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13254
13255         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
13256
13257         C++ compilation changes.
13258         * config.h.in (EXTERN_C): Define.
13259         * config.h.in (not): This is also a C++ keyword.
13260         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
13261         * cm.c: Use EXTERN_C.
13262         * redisplay-tty.c: Use EXTERN_C.
13263         * sysdep.c: Use EXTERN_C.  Remove Gould support.
13264
13265 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13266
13267         * general.c: Remove duplicate definition for Qfunction.
13268
13269 2000-07-08  Ben Wing  <ben@xemacs.org>
13270
13271         * device-msw.c (msprinter_init_device):
13272         * device-msw.c (sync_printer_with_devmode):
13273         * device-msw.c (handle_devmode_changes):
13274         * device-msw.c (print_dialog_worker):
13275         * device-msw.c (Fmsprinter_apply_settings):
13276         * device-msw.c (hash_devmode):
13277         * device-msw.c (Fmsprinter_settings_despecialize):
13278         use Qmswindows_tstr, not Qctext.
13279
13280         * vm-limit.c (check_memory_limits):
13281         avoid infinite loop printing warning messages.
13282
13283 2000-07-05  Craig Lanning  <lanning@scra.org>
13284
13285         * Makefile.in.in: Add support for including the Windows resources
13286         when building with the cygwin and mingw targets.
13287
13288         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
13289         not set or not correct.
13290         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
13291         (init_initial_directory): Don't try to use $PWD on the
13292         WIN32_NATIVE target.
13293
13294         * s\cygwin32.h:
13295         [[Add -mwindows to eliminate console window.]] not required --ben
13296         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13297         (MAIL_USE_POP): removed; now handled by configure.
13298
13299         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
13300         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
13301         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13302         (MAIL_USE_POP): removed; now handled by configure.
13303         (ENCAPSULATE_STAT): from Dan Holmsand, added.
13304         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
13305         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
13306         constant string.
13307         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
13308         up from <winsock.h> via systime.h.
13309         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
13310         (getpagesize): from Dan Holmsand, added.
13311         Added #endif which was left dangling by Ben's mega patch; added
13312         comment to help prevent this in the future.
13313
13314         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
13315
13316 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13317
13318         * console-msw.h (struct mswindows_device): Removed unnecessary
13319         cached device geometry values.
13320         Added update_tick and an accessor macro.
13321         (Lisp_Devmode): Added lrecord declaration.
13322         (struct msprinter_device): Contain devmode as a Lisp object.
13323         Added mswindows_get_selected_frame_hwnd();
13324
13325         * console.h (struct console_methods): Indentation nitpicking.
13326
13327         * device-msw.c (mswindows_init_device): Do not initialize geometry
13328         cache. Initialize update tick.
13329         (mswindows_device_system_metrics): Ask the device for its geometry.
13330         (global_free_2_maybe):
13331         (devmode_to_hglobal):
13332         (handle_printer_changes):
13333         (ensure_not_printing):
13334         (print_dialog_worker):
13335         (Fmsprinter_print_setup_dialog):
13336         (Fmsprinter_print_dialog):
13337         (plist_get_margin):
13338         (plist_set_margin):
13339         (Fmsprinter_page_setup_dialog): Added functions.
13340         (sync_printer_with_devmode):
13341         (handle_devmode_changes):
13342         (Fmsprinter_get_settings):
13343         (Fmsprinter_select_settings):
13344         (Fmsprinter_apply_settings):
13345         (allocate_devmode):
13346         (Fmsprinter_settings_copy):
13347         (Fmsprinter_settings_despecialize):
13348         (print_devmode):
13349         (finalize_devmode):
13350         (equal_devmode):
13351         (hash_devmode): Added functions
13352         (syms_of_device_mswindows): Init devmode lrecord class.
13353
13354         * device.h: Added an exfun for find-device.
13355
13356         * event-msw.c (mswindows_wnd_proc): Do not update the cached
13357         geometry; although, recreate the device compatible DC.
13358
13359         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13360         (msprinter_init_frame_3):
13361         (msprinter_frame_property):
13362         (msprinter_internal_frame_property_p):
13363         (msprinter_frame_properties):
13364         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13365         print job properties (will move to device settings).
13366
13367         * lisp.h: Added symbols.
13368
13369         * general.c (syms_of_general): Declared them.
13370
13371         * hash.c (string_hash): Added.
13372
13373         * lrecord.h (lrecord_type): Added devmode lrecord type.
13374
13375 2000-07-02  Mike Sperber <mike@xemacs.org>
13376
13377         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13378         FreeBSD 4.0.
13379
13380 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13381
13382         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13383         integer.
13384
13385 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13386
13387         * data.c (Fstring_to_number): Don't recognize floating point if
13388         base is not 10.
13389
13390 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13391
13392         * glyphs-widget.c (tab_control_query_geometry):
13393         (widget_query_geometry):
13394         (button_query_geometry):
13395         * glyphs.c (text_query_geometry):
13396         Enforce type correctness.
13397
13398 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13399
13400         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13401         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13402
13403 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13404
13405         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13406         conflicts with gcc's fixincluded version of FOO.h.
13407
13408         * glyphs.h (image_instance_geometry): Remove trailing `,'
13409
13410 2000-06-08  Mike Alexander  <mta@arbortext.com>
13411
13412         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13413         (shove_thread): Don't write the same output twice
13414         (make_ntpipe_output_stream): Increase priority of shove thread
13415         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13416         chance to run
13417         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13418         it.
13419
13420 2000-06-12  Ben Wing  <ben@xemacs.org>
13421
13422         * s\mingw32.h (sigset):
13423         * s\windowsnt.h (sigset):
13424         rename msw_ to mswindows_ for consistency with general convention.
13425
13426 2000-06-12  Ben Wing  <ben@xemacs.org>
13427
13428         * console-msw.c:
13429         * console-msw.c (mswindows_get_console_hwnd):
13430         * console-msw.c (mswindows_ensure_console_allocated):
13431         * console-msw.c (mswindows_hide_console):
13432         * console-msw.c (mswindows_show_console):
13433         * console-msw.c (mswindows_ensure_console_buffered):
13434         * console-msw.c (mswindows_output_console_string):
13435         * console-msw.c (mswindows_windows9x_p):
13436         * console-msw.h:
13437         * device-msw.c (mswindows_get_workspace_coords):
13438         * device-msw.c (mswindows_device_system_metrics):
13439         * dialog-msw.c (mswindows_popup_dialog_box):
13440         * event-msw.c (mswindows_wnd_proc):
13441         * frame-msw.c (mswindows_size_frame_internal):
13442         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13443         * menubar-msw.c (displayable_menu_item):
13444         * menubar-msw.c (mswindows_char_is_accelerator):
13445         * nt.c:
13446         * nt.c (mswindows_sigset):
13447         * nt.c (mswindows_sigrelse):
13448         * nt.c (mswindows_sigpause):
13449         * nt.c (mswindows_raise):
13450         * nt.c (timer_proc):
13451         * ntproc.c:
13452         * ntproc.c (find_child_console):
13453         * ntproc.c (sys_kill):
13454         * print.c:
13455         * print.c (std_handle_out_external):
13456         * process-nt.c (find_child_console):
13457         * process-nt.c (send_signal_the_95_way):
13458         * process-nt.c (ensure_console_window_exists):
13459         * process-nt.c (nt_create_process):
13460         * syssignal.h:
13461         rename msw_ to mswindows_ for consistency with general convention.
13462
13463         * emacs.c:
13464         * dumper.c:
13465         include nt.h, not syswindows.h.
13466
13467         * nt.c (mswindows_fstat):
13468         * nt.c (mswindows_stat):
13469         prefix mswindows_ instead of attempting to directly override the
13470         library functions.  fix declarations.
13471
13472         * nt.h:
13473         include syswindows.h.  move some sysdep.h stuff here.
13474
13475         * ntheap.h:
13476         include syswindows.h, not <windows.h>.
13477
13478         * ntplay.c:
13479         clean up headers.
13480
13481         * sysdep.c:
13482         clean up headers.
13483
13484         * sysdep.c (sys_fstat):
13485         * sysdep.c (sys_stat):
13486         call mswindows versions when appropriate.
13487
13488         * sysdep.h:
13489         move mswin decls to nt.h.
13490
13491         * syswindows.h:
13492         add long comment describing appropriate use of the various windows
13493         headers.
13494
13495 2000-06-11  Ben Wing  <ben@xemacs.org>
13496
13497         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13498
13499 2000-06-10  Ben Wing  <ben@xemacs.org>
13500
13501         * Makefile.in.in (release):
13502         Correction to make sure xemacs.exe always dumped when correct.
13503
13504         * alloca.c:
13505         * balloon_help.c:
13506         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13507
13508         * buffer.c (set_buffer_internal):
13509         [[[[2]]]]: Remove HAVE_FEP code.
13510
13511         * buffer.c (init_initial_directory):
13512         [3].
13513
13514         * bytecode.c:
13515         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13516         individual files.
13517
13518         * callproc.c:
13519         * callproc.c (call_process_cleanup):
13520         * callproc.c (Fold_call_process_internal):
13521         * callproc.c (child_setup):
13522         * callproc.c (getenv_internal):
13523         * callproc.c (init_callproc):
13524         * callproc.c (vars_of_callproc):
13525         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13526         __CYGWIN32__ -> CYGWIN.
13527         DOS_NT -> WIN32_NATIVE.
13528         Remove MSDOS support/references, converting to WIN32_NATIVE
13529           where correct.
13530         __MINGW32__ -> MINGW.
13531         Fix windows.h includes.
13532         Remove bogus HAVE_NTGUI.
13533
13534         * config.h.in:
13535         [2].
13536
13537         * console-msw.c:
13538         mswindows_message_outputted added for use in allowing startup
13539         errors on the console to be seen.
13540
13541         * console-msw.c (msw_ensure_console_allocated):
13542         * console-msw.c (msw_output_console_string):
13543         * console-msw.c (DHEADER):
13544         * console-msw.c (DOPAQUE_DATA):
13545         * console-msw.c (DEVENT):
13546         * console-msw.c (DCONS):
13547         * console-msw.c (DCONSCDR):
13548         * console-msw.c (DSTRING):
13549         * console-msw.c (DVECTOR):
13550         * console-msw.c (DSYMBOL):
13551         * console-msw.c (DSYMNAME):
13552         Fix warnings.
13553
13554         * console-stream.c (stream_init_console):
13555         Fix text/binary problems.
13556
13557         * device-msw.c:
13558         * device-msw.c (mswindows_finish_init_device):
13559         * device-msw.c (mswindows_delete_device):
13560         [1].
13561
13562         * device.c (handle_asynch_device_change):
13563         [3].
13564
13565         * dgif_lib.c:
13566         * dgif_lib.c (DGifOpenFileName):
13567         * dgif_lib.c (DGifOpenFileHandle):
13568         * dgif_lib.c (DGifGetLine):
13569         * dgif_lib.c (DGifGetPixel):
13570         Added config.h/lisp.h, fix up includes.
13571         [1].
13572
13573         * dired-msw.c:
13574         [4].
13575
13576         * dired.c:
13577         * dired.c (file_name_completion):
13578         * dired.c (Ffile_attributes):
13579         * dired.c (syms_of_dired):
13580         [1].
13581
13582         * dumper.c:
13583         * dumper.c (pdump_file_unmap):
13584         * dumper.c (pdump_load):
13585         [1].
13586
13587         * editfns.c:
13588         * editfns.c (Ftemp_directory):
13589         * editfns.c (user_login_name):
13590         * editfns.c (Fuser_real_login_name):
13591         * editfns.c (get_home_directory):
13592         [1].
13593
13594         * elhash.c (finish_marking_weak_hash_tables):
13595         [[[[5]]]]: Fix GCC warnings.
13596
13597         * emacs.c:
13598         * emacs.c (mswindows_handle_hardware_exceptions):
13599         * emacs.c (make_arg_list_1):
13600         * emacs.c (main_1):
13601         * emacs.c (Fkill_emacs):
13602         * emacs.c (Fdump_emacs):
13603         [1].
13604         Fix problems with nested crashes, add long comment.
13605
13606         * event-Xt.c (init_event_Xt_late):
13607         [1].
13608
13609         * event-msw.c:
13610         * event-msw.c (mswindows_dde_callback):
13611         * event-msw.c (mswindows_handle_sticky_modifiers):
13612         * event-msw.c (mswindows_wnd_proc):
13613         [1].
13614         [5].
13615
13616         * events.c (character_to_event):
13617         [1].
13618
13619         * fileio.c:
13620         * fileio.c (Ffile_name_directory):
13621         * fileio.c (Ffile_name_nondirectory):
13622         * fileio.c (directory_file_name):
13623         * fileio.c (Fexpand_file_name):
13624         * fileio.c (Fsubstitute_in_file_name):
13625         * fileio.c (Ffile_name_absolute_p):
13626         * fileio.c (check_executable):
13627         * fileio.c (Ffile_readable_p):
13628         * fileio.c (Ffile_accessible_directory_p):
13629         * fileio.c (Ffile_modes):
13630         * fileio.c (Funix_sync):
13631         * fileio.c (vars_of_fileio):
13632         [1]. [4].
13633
13634         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13635
13636         Expand getdefdir defn.
13637         Fix bogus rename() comment.
13638
13639         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13640         to use standard XEmacs include files, e.g. sysfile.h, rather
13641         than system-specific includes.
13642
13643         * fns.c:
13644         * fns.c (Fsubseq):
13645         [5]. [6].
13646
13647         * frame.c (vars_of_frame):
13648         [1].
13649
13650         * getloadavg.c:
13651         * getloadavg.c (getloadavg):
13652         [1]. [6].
13653         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13654         (We don't use it elsewhere in the code; just add a comment.)
13655
13656         * gif_io.c:
13657         [6].
13658         Add config.h.
13659
13660         * glyphs-msw.c:
13661         * glyphs-msw.c (mswindows_resource_instantiate):
13662         [1].
13663
13664         * glyphs-x.c (x_native_layout_instantiate):
13665         [5].
13666
13667         * gui-msw.c (Fmswindows_shell_execute):
13668         [1].
13669
13670         * insdel.c:
13671         [4].
13672
13673         * lisp.h:
13674         [4]. [5].
13675
13676         * lread.c (locate_file_in_directory_mapper):
13677         [1].
13678
13679         * lstream.c:
13680         [4].
13681
13682         * mem-limits.h:
13683         * mem-limits.h (get_lim_data):
13684         [1].
13685
13686         * menubar-msw.c:
13687         [4].
13688
13689         * ndir.h:
13690         [1].
13691
13692         * nt.c:
13693         * nt.c (getwd):
13694         * nt.c (closedir):
13695         * nt.c (rva_to_section):
13696         * nt.c (mswindows_executable_type):
13697         [1]. [6].
13698         Fix closedir() defn.
13699
13700         * nt.h:
13701         [[[[8]]]]: *_OK defs moved to sysfile.h.
13702
13703         * ntproc.c:
13704         [6]. [7].
13705
13706         * objects-x.c:
13707         [4].
13708
13709         * print.c:
13710         * print.c (std_handle_out_external):
13711         [1]. [4].
13712
13713         * process-nt.c:
13714         * process-nt.c (nt_create_process):
13715         [6].
13716         try to fix process quoting somewhat.
13717
13718         * process-unix.c (unix_create_process):
13719         [1].
13720
13721         * process.c:
13722         * process.c (vars_of_process):
13723         Add Vnull_device.
13724
13725         * process.h:
13726         [1].
13727
13728         * realpath.c:
13729         * realpath.c (xrealpath):
13730         [1].
13731
13732         * redisplay-tty.c (init_tty_for_redisplay):
13733         [3].
13734
13735         * redisplay.c:
13736         [4]. [6].
13737
13738         * scrollbar-msw.c:
13739         [4].
13740
13741         * sheap.c:
13742         * sheap.c (more_static_core):
13743         * sheap.c (report_sheap_usage):
13744         [5]. [6].
13745
13746         * signal.c:
13747         * signal.c (alarm_signal):
13748         [1]. [6].
13749
13750         * sound.c:
13751         [6].
13752
13753         * strftime.c:
13754         * strftime.c (zone_name):
13755         [1]. [5].
13756
13757         * symsinit.h (init_sunpro):
13758         [1].
13759
13760         * syscommctrl.h:
13761         commctrl.h not in Cygwin b20.1.
13762
13763         * sysdep.c:
13764         * sysdep.c (endif):
13765         * sysdep.c (sys_subshell):
13766         * sysdep.c (init_baud_rate):
13767         * sysdep.c (emacs_get_tty):
13768         * sysdep.c (emacs_set_tty):
13769         * sysdep.c (tty_init_sys_modes_on_device):
13770         * sysdep.c (init_system_name):
13771         * sysdep.c (sys_open):
13772         * sysdep.c (interruptible_open):
13773         * sysdep.c (sys_fopen):
13774         * sysdep.c (sys_mkdir):
13775         * sysdep.c (sys_rename):
13776         * sysdep.c (get_process_times_1):
13777         [1]. [6].
13778
13779         * sysdep.h:
13780         [1].
13781
13782         * sysdir.h:
13783         * sysdir.h (DIRENTRY_NONEMPTY):
13784         [1]. [6].
13785
13786         * sysdll.c (dll_init):
13787         * sysdll.h:
13788         [1].
13789
13790         * sysfile.h:
13791         [1]. [6]. [8].
13792         added text/binary defs.
13793
13794         * sysfloat.h:
13795         [1].
13796
13797         * sysproc.h:
13798         * sysproc.h (EDESTADDRREQ):
13799         * sysproc.h (poll_fds_for_input):
13800         [1]. [6].
13801
13802         * syspwd.h:
13803         [6].
13804
13805         * syssignal.h:
13806         [1].
13807
13808         * systime.h:
13809         [1]. [6].
13810
13811         * systty.h:
13812         [1].
13813
13814         * syswindows.h:
13815         [1].
13816         Always define WIN32_LEAN_AND_MEAN.
13817
13818         * unexcw.c (unexec):
13819         [5].
13820
13821         * unexec.c:
13822         * unexec.c (copy_text_and_data):
13823         * unexec.c (adjust_lnnoptrs):
13824         [1].
13825
13826         * unexnt.c:
13827         * unexnt.c (_start):
13828         [1].
13829
13830 2000-06-07  Ben Wing  <ben@xemacs.org>
13831
13832         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13833         was used only as a model.  We've long since extracted any useful
13834         logic or code out of this. (I just did an exhaustive search.)
13835
13836         * s\msdos.h: Removed.
13837
13838         * s\windows95.h: Removed.
13839
13840 2000-06-10  Ben Wing  <ben@xemacs.org>
13841
13842         * s\cygwin32.h:
13843         [1]. [5].
13844         Don't use extern with fun defs.
13845
13846         * s\mingw32.h:
13847         [1]. [7].
13848         Remove nt\inc include.
13849         Remove getdisk, getdefdir. (The former is unused, the latter
13850         expanded in fileio.h.)
13851
13852         * s\windowsnt.h:
13853         * s\windowsnt.h (WIN32_NATIVE):
13854         * s\windowsnt.h (HAVE_STRCASECMP):
13855         [1]. [7].
13856         Add long comment about preprocessor changes.
13857         Remove getdisk, getdefdir. (The former is unused, the latter
13858         expanded in fileio.h.)
13859
13860 2000-06-10  Ben Wing  <ben@xemacs.org>
13861
13862         * m\arm.h:
13863         * m\delta.h:
13864         * m\intel386.h:
13865         * m\sequent.h:
13866         * m\template.h:
13867         * m\windowsnt.h:
13868         [1].
13869         Remove bogus/unused NO_SOCK_SIGIO.
13870
13871 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13872
13873         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13874         not an Emchar.
13875
13876 2000-06-04  Mike Sperber <mike@xemacs.org>
13877
13878         * casetab.c (set_case_table): For `set-standard-case-table',
13879         actually deposit the new case tables where the rest of XEmacs can
13880         see them.
13881
13882 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13883
13884         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13885
13886 2000-06-05  Ben Wing  <ben@xemacs.org>
13887
13888         * callproc.c (child_setup): Don't do close_load_descs() under
13889         MS Windows.  Put in a comment explaining why.
13890
13891 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13892
13893         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13894         Toolkit shell" which breaks `kill-compilation' on Windows NT
13895         native, retaining STDERR handling improvements.
13896
13897 2000-06-01  Andreas Jaeger  <aj@suse.de>
13898
13899         * s/s390.h: Support for S390, based on a patch by Martin
13900         Schwidefsky <schwidefsky@de.ibm.com>.
13901
13902 2000-05-30  Andy Piper  <andy@xemacs.org>
13903
13904         * window.c (allocate_window):
13905         (make_dummy_parent):
13906         (Fset_window_configuration): use new hashtable type.
13907
13908         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13909         (struct image_instantiator_methods):
13910         (struct Lisp_Image_Instance): make instance geometry signed.
13911
13912         * glyphs.c (instantiate_image_instantiator):
13913         (image_instance_query_geometry):
13914         (image_instance_layout):
13915         (image_instance_layout):
13916         (query_string_geometry):
13917         (text_query_geometry):
13918         (image_instantiate):
13919         (image_instantiate):
13920         (cache_subwindow_instance_in_frame_maybe):
13921         (subwindow_query_geometry): make instance geometry signed.
13922
13923         * glyphs-widget.c (widget_query_geometry):
13924         (widget_layout):
13925         (button_query_geometry):
13926         (tree_view_query_geometry):
13927         (tab_control_query_geometry):
13928         (layout_query_geometry):
13929         (layout_layout):
13930         (native_layout_layout): make instance geometry signed.
13931
13932 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13933
13934         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13935         constant.
13936
13937         * general.c (syms_of_general): Add Qfull_assoc symbol.
13938
13939         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13940         correctly.
13941         (decode_weak_list_type): Decode full-assoc type.
13942         (encode_weak_list_type): Encode full-assoc type.
13943         (Fmake_weak_list): Update doc string.
13944
13945 2000-05-30  Andy Piper  <andy@xemacs.org>
13946
13947         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13948
13949         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13950         (decode_hash_table_weakness): ditto.
13951         (Fhash_table_weakness): ditto.
13952         (Fhash_table_type): ditto.
13953         (finish_marking_weak_hash_tables): ditto.
13954         (hash_table_weakness_validate): ditto.
13955         (syms_of_elhash): ditto.
13956
13957 2000-05-28  Martin Buchholz <martin@xemacs.org>
13958
13959         * XEmacs 21.2.34 is released.
13960
13961 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13962
13963         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13964         start cache.
13965         (updating_line_start_cache): Gone.
13966         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13967         generic code to force a minimum of 1 line laid out in the
13968         CMOTION_DISP case.
13969
13970 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13971
13972         * glyphs.c (instantiate_image_instantiator): Check for initialized
13973         height & width no longer special cases IMAGE_NOTHING.
13974         (nothing_instantiate): Set height and width of instance.
13975
13976 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13977
13978         * unexelf.c (unexec): Search for ".data" section.
13979         Initialize new_data2_offset from old_data_index.
13980         Remove redundant check for ElfW.
13981
13982 2000-05-23  Andy Piper  <andy@xemacs.org>
13983
13984         * glyphs.c (get_image_instantiator_governing_domain): allow more
13985         specific domains as the governing domain rather than expecting an
13986         exact match. This fixes problems with layouts.
13987
13988 2000-05-22  Andy Piper  <andy@xemacs.org>
13989
13990         * redisplay-output.c (compare_runes): check for non-images
13991
13992         * glyphs.c (set_glyph_dirty_p): ditto.
13993         (update_glyph_cachel_data): ditto.
13994
13995         * glyphs-widget.c (layout_post_instantiate): ditto.
13996         (layout_post_instantiate): ditto.
13997
13998         * event-msw.c (mswindows_wnd_proc): warning removal.
13999
14000 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
14001
14002         * s\mingw32.h: Added #undef for CLASH_DETECTION.
14003
14004         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
14005
14006         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
14007
14008         * nt.c (rva_to_section): mingw32 needs rva_to_section.
14009         (mswindows_executable_type): mingw32 now has enough headers for
14010         this to work.
14011
14012 2000-05-20  Andy Piper  <andy@xemacs.org>
14013
14014         * console-msw.c (mswindows_output_last_error): ; -> ,
14015
14016 2000-05-12  Andy Piper  <andy@xemacs.org>
14017
14018         * console-msw.c (FROB): compare ints with ints.
14019
14020 2000-05-11  Andy Piper  <andy@xemacs.org>
14021
14022         * glyphs-x.c (x_finalize_image_instance): make minimal build
14023         happy.
14024
14025 2000-05-20  Ben Wing  <ben@xemacs.org>
14026
14027         * event-Xt.c:
14028         * event-Xt.c (vars_of_event_Xt):
14029         move modifier-keys-are-sticky to event-stream.c.
14030
14031         * event-msw.c:
14032         * event-msw.c (mswindows_enqueue_mouse_button_event):
14033         * event-msw.c (key_needs_default_processing_p):
14034         * event-msw.c (XEMSW_LCONTROL):
14035         * event-msw.c (mswindows_handle_sticky_modifiers):
14036         * event-msw.c (FROB):
14037         * event-msw.c (clear_sticky_modifiers):
14038         * event-msw.c (output_modifier_keyboard_state):
14039         * event-msw.c (output_alt_keyboard_state):
14040         * event-msw.c (mswindows_wnd_proc):
14041         * event-msw.c (mswindows_modifier_state):
14042         * event-msw.c (emacs_mswindows_handle_magic_event):
14043         implement sticky modifiers.
14044
14045         * event-stream.c:
14046         * event-stream.c (vars_of_event_stream):
14047         move modifier-keys-are-sticky here.
14048
14049         * lisp.h:
14050         add CHECK_FUNCTION.
14051
14052         * rangetab.c:
14053         implement map-range-table.
14054
14055
14056 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
14057
14058         * redisplay-tty.c (reset_tty_modes):
14059         (tty_redisplay_shutdown): Adjust argument type to
14060         tty_frame_output_end.
14061
14062 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14063
14064         * eval.c (Fbacktrace): Don't output a line with only right
14065         parenthesis.
14066
14067 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
14068
14069         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
14070         (Fpq_reset_poll): Ditto.
14071
14072 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
14073
14074         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
14075
14076 2000-05-16  Ben Wing  <ben@xemacs.org>
14077
14078         * buffer.c:
14079         * buffer.c (dfc_convert_to/from_internal_format):
14080         * buffer.c (reinit_vars_of_buffer):
14081         Fix conversion functions to allow reentrancy.
14082
14083         * console-msw.c:
14084         * console-msw.c (mswindows_output_last_error):
14085         New fun, generally useful -- output a human-readable
14086         version of GetLastError() on the console.
14087
14088         * console-msw.h:
14089         * console-msw.h (struct mswindows_frame):
14090         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
14091
14092         * console-stream.c (stream_output_begin):
14093         * console-stream.c (stream_output_end):
14094         * console-stream.c (stream_output_vertical_divider):
14095         * console-stream.c (stream_clear_region):
14096         * console-stream.c (stream_flash):
14097         * console-stream.c (console_type_create_stream):
14098         Delete blank stream methods, not needed.
14099
14100         * console.h (struct console_methods):
14101         Split begin/end methods into window and frame.
14102
14103         * event-msw.c:
14104         * event-msw.c (mswindows_handle_paint):
14105         * event-msw.c (output_alt_keyboard_state):
14106         * event-msw.c (mswindows_wnd_proc):
14107         * event-msw.c (vars_of_event_mswindows):
14108         Comment about problems with ignored-expose.
14109         Define mswindows-debug-events; not really implemented.
14110
14111         * frame-msw.c (mswindows_init_frame_1):
14112         random cleanups.
14113
14114         * glyphs-msw.c:
14115         * glyphs-msw.c (begin_defer_window_pos):
14116         * glyphs-msw.c (mswindows_unmap_subwindow):
14117         * glyphs-msw.c (mswindows_map_subwindow):
14118         * glyphs-msw.c (mswindows_resize_subwindow):
14119         Use DeferWindowPos to reduce flashing when mapping/unmapping.
14120
14121         * glyphs.c (make_image_instance_1):
14122         Fix crash.
14123
14124         * gutter.c (Fredisplay_gutter_area):
14125         Use new begin/end methods.
14126
14127         * lisp.h (Dynarr_new2):
14128         New creation fun.
14129
14130         * redisplay-msw.c:
14131         * redisplay-msw.c (mswindows_frame_output_begin):
14132         * redisplay-msw.c (mswindows_frame_output_end):
14133         * redisplay-msw.c (console_type_create_redisplay_mswindows):
14134         New begin/end methods -- handle DeferWindowPos.
14135
14136         * redisplay-output.c (redisplay_move_cursor):
14137         * redisplay-output.c (redraw_cursor_in_window):
14138         * redisplay-output.c (redisplay_update_line):
14139         * redisplay-output.c (redisplay_output_window):
14140         New begin/end methods.
14141
14142         * redisplay-tty.c:
14143         * redisplay-tty.c (tty_frame_output_begin):
14144         * redisplay-tty.c (tty_frame_output_end):
14145         * redisplay-tty.c (console_type_create_redisplay_tty):
14146         New begin/end methods.
14147
14148         * redisplay-x.c:
14149         * redisplay-x.c (x_window_output_begin):
14150         * redisplay-x.c (x_window_output_end):
14151         * redisplay-x.c (console_type_create_redisplay_x):
14152         New begin/end methods.
14153
14154         * redisplay.c (redisplay_frame):
14155         * redisplay.c (Fredisplay_echo_area):
14156         New begin/end methods.
14157         use MAYBE_DEVMETH for clear_frame; it may not exist.
14158
14159         * window.h (WINDOW_XFRAME):
14160         WINDOW_XFOO macros -- get locale and decode struct pointer.
14161
14162
14163 2000-05-12  Ben Wing  <ben@xemacs.org>
14164
14165         * emacs.c:
14166         * emacs.c (ensure_no_quitting_from_now_on):
14167         * emacs.c (fatal_error_signal):
14168         * emacs.c (mswindows_handle_hardware_exceptions):
14169         * emacs.c (main):
14170         * emacs.c (Fkill_emacs):
14171         * emacs.c (shut_down_emacs):
14172         * emacs.c (assert_failed):
14173         various improvements in fatal error handling.
14174
14175         * eval.c:
14176         move preparing_for_armageddon to emacs.c.
14177
14178         * lisp.h:
14179         declare fatal_error_in_progress.
14180
14181         * print.c:
14182         * print.c (std_handle_out_external):
14183         * print.c (std_handle_out_va):
14184         * print.c (stderr_out):
14185         * print.c (stdout_out):
14186         use console under mswin when no standard output.
14187         don't do code conversion during fatal error.
14188
14189         * scrollbar.c (Fscrollbar_page_up):
14190         * scrollbar.c (Fscrollbar_page_down):
14191         fix missing else.  reindent.
14192
14193 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
14194
14195         Emergency fix.
14196
14197         * glyphs.h (GLYPH_CACHEL_DESCENT):
14198         (GLYPH_CACHEL_DESCENT):
14199         (GLYPH_CACHEL_DESCENT):
14200         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
14201         used in case these are inline functions.
14202         Use more absurd values to error check.
14203
14204         include window.h for error check functions.
14205
14206 2000-05-11  Ben Wing  <ben@xemacs.org>
14207
14208         * cmdloop.c (Freally_early_error_handler):
14209         Display message box under windows; otherwise, message will disappear
14210         before it can be viewed.
14211
14212         * console-msw.c:
14213         * console-msw.c (Fmswindows_message_box):
14214         * console-msw.c (FROB):
14215         * console-msw.c (syms_of_console_mswindows):
14216         Define new fun `mswindows-message-box'.
14217         #### I will merge this into `popup-dialog-box'; just give me
14218         a bit of time.
14219
14220         * general.c:
14221         * general.c (syms_of_general):
14222         Some new symbols used in `mswindows-message-box'.
14223
14224         * glyphs.c:
14225         * glyphs.c (Fset_image_instance_property):
14226         put warning in this fun.
14227
14228         * glyphs.h:
14229         * glyphs.h (GLYPH_CACHEL_WIDTH):
14230         * glyphs.h (GLYPH_CACHEL_ASCENT):
14231         * glyphs.h (GLYPH_CACHEL):
14232         * glyphs.h (GLYPH_CACHEL_GLYPH):
14233         define error-checking versions to try to catch a bug i've seen --
14234         redisplay gets in an infinite loop because the glyph width of the
14235         continuation glyph is 65535.
14236
14237         * lisp.h:
14238         Extern message-box stuff.
14239
14240         * window.c (allocate_window):
14241         * window.c (make_dummy_parent):
14242         * window.c (Fset_window_configuration):
14243         Use EQUAL not EQ for subwindow caches to make them work a bit
14244         better. (Something is still very broken.)
14245
14246
14247 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14248
14249         * glyphs.c (image_instantiate): Suppress gcc warnings.
14250         (Fmake_image_instance): Fix doc string.
14251         * specifier.c (Fmake_specifier): Ditto.
14252
14253 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
14254
14255         * paths.h.in (PATH_LOCK): Removed.
14256         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
14257         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
14258
14259 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14260
14261         * fns.c (Ffeaturep): Update e-mail address in doc-string.
14262         Document (featurep '(and xemacs 21.02)).
14263
14264 2000-05-09  Ben Wing  <ben@xemacs.org>
14265
14266         * buffer.c (complex_vars_of_buffer):
14267         update modeline-format doc.
14268
14269         * device.h:
14270         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
14271
14272         * emacs.c:
14273         timeline of all released versions of Emacs, for use in creating
14274         authorship comments and in synching up.
14275
14276         * glyphs-widget.c (image_instantiator_buttons):
14277         * glyphs-widget.c (image_instantiator_edit_fields):
14278         * glyphs-widget.c (image_instantiator_combo_box):
14279         * glyphs-widget.c (image_instantiator_scrollbar):
14280         * glyphs-widget.c (image_instantiator_progress_guage):
14281         * glyphs-widget.c (image_instantiator_tree_view):
14282         * glyphs-widget.c (image_instantiator_tab_control):
14283         * glyphs-widget.c (image_instantiator_labels):
14284         * glyphs-widget.c (image_instantiator_layout):
14285         * glyphs-widget.c (image_instantiator_native_layout):
14286         rename decode_domain method to governing_domain.
14287
14288         * glyphs.c:
14289         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
14290         * glyphs.c (add_entry_to_device_ii_format_list):
14291         make sure we don't put an entry more than once into the list.
14292         * glyphs.c (check_instance_cache_mapper):
14293         *************************************************************
14294         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14295         HAVE BEEN GETTING.
14296         *************************************************************
14297         * glyphs.c (get_image_instantiator_governing_domain):
14298         clean up, expand on new concept of governing domain.
14299         * glyphs.c (instantiate_image_instantiator):
14300         * glyphs.c (allocate_image_instance):
14301         use governing_domain instead of cache_domain in naming.
14302         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
14303         * glyphs.c (make_image_instance_1):
14304         * glyphs.c (Fmake_image_instance):
14305         allow for any domain (not just device), and process the
14306         governing domain correctly.  very big doc fix.
14307         * glyphs.c (Fimage_instance_domain):
14308         new primitive, to retrieve the governing domain of an image instance.
14309         * glyphs.c (image_instantiate):
14310         use new governing_domain stuff.  this fixes a crash you could get
14311         by instantiating certain widget glyphs in frame locales. (should
14312         signal an error instead of crashing.)
14313         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
14314         * glyphs.c (Fglyphp): clean up doc.
14315         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
14316         * glyphs.c (syms_of_glyphs):
14317         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
14318         * glyphs.c (image_instantiator_format_create): add some comments about
14319         bogus code.
14320         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
14321         for current-display-table. (Apparently Hrjove implemented in 1998 a
14322         design I wrote up in 1996, but didn't update the doc string.)
14323
14324         * glyphs.h: clean up a doc string.
14325         * glyphs.h (governing_domain):
14326         * glyphs.h (struct image_instantiator_methods):
14327         changes for governing_domain stuff.
14328
14329         * gutter.c:
14330         * gutter.c (Fgutter_specifier_p):
14331         * gutter.c (Fgutter_size_specifier_p):
14332         * gutter.c (Fgutter_visible_specifier_p):
14333         * objects.c:
14334         * objects.c (Fcolor_specifier_p):
14335         * objects.c (Ffont_specifier_p):
14336         * objects.c (Fface_boolean_specifier_p):
14337         doc strings moved to make-*-specifier.
14338
14339         * redisplay.c (add_disp_table_entry_runes_1):
14340         * redisplay.c (generate_fstring_runes):
14341         * redisplay.c (screen):
14342         add random comments and doc strings.
14343
14344         * specifier.c:
14345         * specifier.c (Fmake_specifier):
14346         major overhaul of this doc string.
14347
14348         * specifier.c (Fvalid_specifier_domain_p):
14349         comment about the bogosity of image instances being domains.
14350         * specifier.c (decode_domain):
14351         now non-static, used in glyphs.c.
14352         * specifier.c (specifier_instance):
14353         comment about the bogosity of image instances being domains.
14354         * specifier.c (Fgeneric_specifier_p):
14355         move doc string to make-generic-specifier.
14356         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14357         rebackslashify.
14358
14359         * specifier.h:
14360         * specifier.h (DOMAIN_FRAME):
14361         * specifier.h (DOMAIN_LIVE_P):
14362         * specifier.h (DOMAIN_XDEVICE):
14363         rebackslashify.
14364         add comments about problems with these macros.
14365         prototype for decode_domain.
14366
14367         * toolbar.c:
14368         * toolbar.c (Ftoolbar_specifier_p):
14369         move doc string to `make-toolbar-specifier'.
14370
14371         * window.c (window_unmap_subwindows_cache_mapper):
14372         *************************************************************
14373         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14374         HAVE BEEN GETTING.
14375         *************************************************************
14376
14377 2000-05-09  Andy Piper  <andy@xemacs.org>
14378
14379         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14380
14381         * window.c (Fset_window_configuration): reset the frame subwindow
14382         cache and re-initialize the window subwindow caches.
14383
14384         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14385
14386 2000-05-09  Ben Wing  <ben@xemacs.org>
14387
14388         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14389         DWORD.
14390
14391 2000-04-26  Mike Woolley  <mike@bulsara.com>
14392
14393         * ntheap.c: Changed recreate_heap to limit the amount reserved
14394         for the heap to that which is actually available. Also now
14395         displays a message box (with some dignostics) in the event that
14396         it still can't start.
14397
14398 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14399
14400         * callproc.c (Fold_call_process_internal): GCPRO path
14401
14402 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14403
14404         Patch by Bill Perry.
14405
14406         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14407         back data instead of #ifdef.
14408         (Fscrollbar_page_down): ditto.
14409
14410 2000-05-07  Ben Wing  <ben@xemacs.org>
14411
14412         * buffer.h:
14413         Kludge for defining Qmswindows_tstr.
14414
14415         * nt.c:
14416         * nt.c (open_input_file):
14417         * nt.c (open_output_file):
14418         * nt.c (rva_to_section):
14419         * nt.c (mswindows_executable_type):
14420         Move all memory-mapped-file routines here (some were in unexnt.c,
14421         which is bad because they are used by process-nt.c, and unexnt
14422         won't be around when portable dumping).  Synched the above routines
14423         with FSF 20.6.
14424
14425         * nt.h:
14426         Removed ifdef'd out bogus code.
14427         Fixed some prototypes.
14428
14429         * nt.h (file_data):
14430         * nt.h (OFFSET_TO_RVA):
14431         * nt.h (RVA_TO_OFFSET):
14432         * nt.h (RVA_TO_PTR):
14433         Moved the memory-mapped-file structures, macros and prototypes
14434         here, to parallel nt.c.  ntheap.h should really be removed
14435         entirely, and it's a non-portable-dumper specific file.
14436
14437         * ntheap.h (round_to_next):
14438         Moved the memory-mapped-file structures, macros and prototypes
14439         to nt.h.
14440
14441         * ntproc.c (compare_env):
14442         Moved rva_to_section and mswindows_executable_type to nt.c.
14443         Moved compare_env to process-nt.c.
14444         ntproc.c will die, one day.
14445
14446         * ntproc.c (sys_spawnve):
14447         Account for win32_ -> mswindows_.
14448
14449         * process-nt.c:
14450         * process-nt.c (struct nt_process_data):
14451         * process-nt.c (ensure_console_window_exists):
14452         * process-nt.c (compare_env):
14453         * process-nt.c (nt_create_process):
14454         * process-nt.c (nt_kill_process_by_pid):
14455         * process-nt.c (syms_of_process_nt):
14456         * process-nt.c (vars_of_process_nt):
14457         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14458         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14459         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14460         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14461         Move compare_env here from ntproc.c.
14462
14463         * process.c (Fprocess_send_region):
14464         Takes an optional fourth argument, BUFFER, which should fix some
14465         problems with call-process.
14466
14467         * syscommctrl.h:
14468         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14469
14470         * syswindows.h:
14471         Move ICC_BAR_CLASSES to syscommctrl.h.
14472         Add preliminary macros for MSWindows/Mule.  More to come.
14473
14474         * unexnt.c:
14475         * unexnt.c (unexec):
14476         open_output_file moved to nt.c.
14477
14478
14479 2000-05-05  Andy Piper  <andy@xemacs.org>
14480
14481         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14482         instance from the frame cache also since GC may catch up too late
14483         to make frame deletion sane.
14484
14485 2000-05-04  Andy Piper  <andy@xemacs.org>
14486
14487         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14488         (x_finalize_image_instance): ungcpro on deletion.
14489
14490         * glyphs.c (image_instantiator_format_create): give pointers a
14491         query geometry method so that the geometry is at least set.
14492
14493         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14494         initialize layouts if using widgets.
14495
14496 2000-05-03  Andy Piper  <andy@xemacs.org>
14497
14498         * nt.c: remove bogus reference to sysmmsystem.h
14499
14500         * gui-x.c (popup_selection_callback): fix no selection abort.
14501
14502 2000-05-02  Andy Piper  <andy@xemacs.org>
14503
14504         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14505         (mswindows_widget_instantiate): ditto.
14506
14507         * glyphs-widget.c (initialize_widget_image_instance): initialize
14508         children correctly.
14509         (widget_instantiate): cope with children and items in the same
14510         instance.
14511
14512         * glyphs.c (mark_image_instance): cope with children as a first
14513         class member.
14514         (image_instance_equal): ditto.
14515         (image_instance_hash): ditto.
14516         (image_instance_changed): ditto.
14517
14518 2000-04-30  Andy Piper  <andy@xemacs.org>
14519
14520         * glyphs.c (subwindow_query_geometry): new function. Return some
14521         defaults.
14522         (subwindow_instantiate): don't assign dimensions if none have been
14523         given.
14524         (image_instantiator_format_create): add subwindow_query_geometry.
14525         (print_image_instance): cope with layouts as widgets.
14526
14527 2000-04-29  Andy Piper  <andy@xemacs.org>
14528
14529         * frame.c (delete_frame_internal): call
14530         free_frame_subwindow_instance_cache so that all subwindows are
14531         finalized before their parent.
14532         (mark_frame): remove subwindow_cachels.
14533         (Fmake_frame): remove subwindow_cachel manipulation.
14534         (allocate_frame_core): subwindow_instance_cache is a weak list.
14535         (delete_frame_internal): set subwindow_instance_cache to nil.
14536
14537         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14538         finalization safe.
14539         (mswindows_finalize_image_instance): use the device
14540         not the domain as the domain may have died already.
14541
14542         * glyphs-x.c (x_finalize_image_instance): ditto.
14543         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14544         HEIGHT.
14545
14546         * redisplay-output.c (redisplay_unmap_subwindows): update for
14547         subwindow instance cache as a weak list.
14548         (redisplay_unmap_subwindows_maybe): ditto.
14549         (redisplay_unmap_subwindows_except_us): ditto.
14550
14551         * glyphs.c (unmap_subwindow): error checking will check the domain
14552         so don't deal with it here. Don't use cachels anymore.
14553         (map_subwindow): ditto.
14554         (update_subwindow_cachel_data): remove old accessor names.
14555         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14556         (Fresize_subwindow): don't update cachel.
14557         (mark_subwindow_cachels):
14558         (update_subwindow_cachel_data):
14559         (add_subwindow_cachel):
14560         (get_subwindow_cachel_index):
14561         (update_subwindow_cachel):
14562         (reset_subwindow_cachels):
14563         (mark_subwindow_cachels_as_not_updated): deleted.
14564         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14565         subwindow instance to the frame cache.
14566         (find_matching_subwindow): update for subwindow instance cache as
14567         a weak list.
14568         (update_widget_instances): ditto.
14569         (image_instance_type_to_mask):inlined.
14570         (free_frame_subwindow_instance_cache): new function. finalize all
14571         subwindows that are instantiated.
14572
14573         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14574         of cachel information.
14575         (IMAGE_INSTANCE_DISPLAY_X):
14576         (IMAGE_INSTANCE_DISPLAY_Y):
14577         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14578         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14579         (XIMAGE_INSTANCE_DISPLAY_X):
14580         (XIMAGE_INSTANCE_DISPLAY_Y):
14581         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14582         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14583         remove subwindow_cachel structure and function references.
14584         (image_instance_type_to_mask): inline from glyphs.c
14585
14586         * redisplay.c (redisplay_frame): remove subwindow_cachel
14587         references.
14588
14589         * frame.h (struct frame): remove subwindow_cachels.
14590         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14591
14592         * frameslots.h: add subwindow_instance_cache.
14593
14594         * window.c (replace_window): check subwindow cache of replacement.
14595         (window_unmap_subwindows_cache_mapper):
14596         (window_unmap_subwindows): new functions. Unmap all subwindows
14597         cached on this window.
14598         (mark_window_as_deleted): unmap all subwindows.
14599
14600 2000-04-27  Andy Piper  <andy@xemacs.org>
14601
14602         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14603
14604         * glyphs-widget.c (widget_layout): return something.
14605         (layout_layout): return something. Fail if not initialized.
14606         (layout_query_geometry): ditto.
14607         (image_instantiator_native_layout): new function. Initialized the
14608         native layout type.
14609         (widget_instantiate): don't do layout stuff here.
14610
14611         * glyphs.c (instantiate_image_instantiator): reorded calling or
14612         instantiate and post_instantiate with layout in between.
14613         (image_instance_layout): be more selective about deciding whether
14614         the layout has been done or not.
14615
14616         * glyphs.h (struct image_instantiator_methods): return a value
14617         from layout_method.
14618
14619 2000-04-26  Andy Piper  <andy@xemacs.org>
14620
14621         * glyphs.c (allocate_image_instance): make initial width and
14622         height unspecified. Set initialized to 0.
14623
14624         * syscommctrl.h new file. Encapsulates commctrl.h.
14625
14626         * syswindows.h new file. Encapsulates windows.h.
14627
14628         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14629         * nt.c: ditto.
14630         * console-msw.h: ditto.
14631
14632         * redisplay-tty.c (tty_output_display_block): remove layout references.
14633
14634         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14635         window handle rather than just the frame.
14636
14637         * glyphs.c (mark_image_instance): remove layout references.
14638         (print_image_instance): ditto.
14639         (image_instance_equal): ditto.
14640         (image_instance_hash): ditto.
14641         (decode_image_instance_type): ditto.
14642         (encode_image_instance_type): ditto.
14643         (image_instantiate): ditto.
14644         (allocate_glyph): ditto.
14645         (Fimage_instance_height): ditto.
14646         (Fimage_instance_width): ditto.
14647         (update_subwindow): ditto.
14648
14649         * redisplay-x.c (x_output_display_block): recode for layouts as
14650         widgets.
14651
14652         * redisplay-output.c (redisplay_output_layout): recode for layouts
14653         as widgets.
14654         (compare_runes): remove layout references.
14655
14656         * redisplay-msw.c (mswindows_output_display_block): recode for
14657         layouts as widgets.
14658
14659         * glyphs-widget.c (image_instantiator_layout): remove
14660         layout_possible_dest_types.
14661         (layout_possible_dest_types): deleted.
14662
14663         * glyphs.h (image_instance_type): remove layout references.
14664         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14665         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14666         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14667
14668 2000-04-25  Andy Piper  <andy@xemacs.org>
14669
14670         * glyphs-widget.c (image_instantiator_buttons):
14671         (image_instantiator_edit_fields):
14672         (image_instantiator_combo_box):
14673         (image_instantiator_scrollbar):
14674         (image_instantiator_progress_guage):
14675         (image_instantiator_tree_view):
14676         (image_instantiator_tab_control):
14677         (image_instantiator_labels):
14678         (image_instantiator_layout): call default post_instantiate method.
14679         (widget_post_instantiate): new function. Simply lays out the
14680         widgets.
14681
14682         * glyphs.h (struct image_instantiator_methods): add
14683         post_instantiate method.
14684
14685         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14686         method calls.
14687
14688 2000-04-23  Andy Piper  <andy@xemacs.org>
14689
14690         * glyphs.h (struct image_instantiator_methods): add
14691         decode_domain_method.
14692         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14693         derived from the domain.
14694         (IMAGE_INSTANCE_FRAME): new accessor.
14695         (XIMAGE_INSTANCE_FRAME): ditto.
14696
14697         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14698         instead of _SUBWINDOW_FRAME.
14699         (finalize_image_instance): ditto.
14700         (Fimage_instance_foreground): ditto.
14701         (Fimage_instance_background): ditto.
14702         (image_instantiate): ditto.
14703         (update_subwindow_cachel): ditto.
14704         (update_subwindow): ditto.
14705         (unmap_subwindow): ditto.
14706         (map_subwindow): ditto
14707         (subwindow_instantiate): ditto.
14708         * glyphs-msw.c (mswindows_update_widget): ditto.
14709         (mswindows_progress_gauge_instantiate): ditto.
14710         (mswindows_tab_control_update): ditto.
14711         * glyphs-x.c (x_update_widget): ditto.
14712         (x_widget_instantiate): ditto.
14713         (x_tab_control_instantiate): ditto.
14714         (x_tab_control_update): ditto.
14715         * event-msw.c (mswindows_wnd_proc): ditto
14716
14717         * glyphs-widget.c (image_instantiator_layout): use
14718         subwindow_decode_domain.
14719         (image_instantiator_buttons): ditto.
14720         (image_instantiator_edit_fields): ditto.
14721         (image_instantiator_combo_box): ditto.
14722         (image_instantiator_scrollbar): ditto.
14723         (image_instantiator_progress_guage): ditto.
14724         (image_instantiator_tree_view): ditto.
14725         (image_instantiator_tab_control): ditto.
14726         (image_instantiator_labels): ditto.
14727         (image_instantiator_layout): ditto.
14728
14729         * glyphs.c: add instance error checking to many functions.
14730         (instantiate_image_instantiator): decode device from cache_domain.
14731         (image_instantiate): partially rewrite by using
14732         decode_image_instantiator_domain to determine what domain the
14733         instance needs to be cached in.
14734         (decode_image_instantiator_domain): new function. Determine what
14735         domain the image needs to be cached in.
14736         (check_window_subwindow_cache): new error checking function.
14737         (check_instance_cache_mapper): ditto.
14738         (check_image_instance_structure): ditto.
14739         (subwindow_decode_domain): new function. Encodes a window as a
14740         subwindow's cache domain.
14741         (image_instantiator_format_create): use it for text and
14742         subwindows.
14743
14744 2000-04-21  Andy Piper  <andy@xemacs.org>
14745
14746         * glyphs.c (image_instance_device): new function.
14747         (image_instance_frame): new function.
14748         (image_instance_window): new function.
14749         (image_instance_live_p): new function.
14750
14751         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14752         cache to nil.
14753
14754         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14755         (IMAGE_INSTANCE_DOMAIN): new accessor.
14756         (XIMAGE_INSTANCE_DOMAIN): ditto.
14757
14758         * glyphs-x.c (x_finalize_image_instance): device->domain.
14759
14760         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14761         (mswindows_finalize_image_instance): ditto.
14762
14763         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14764         (gif_instantiate): ditto.
14765         (png_instantiate): ditto.
14766         (tiff_instantiate): ditto.
14767
14768         * glyphs.c (instantiate_image_instantiator): use domain rather
14769         than device.
14770         (mark_image_instance): device -> domain.
14771         (print_image_instance): ditto.
14772         (finalize_image_instance): ditto.
14773         (image_instance_equal): ditto.
14774         (allocate_image_instance): ditto.
14775         (Fcolorize_image_instance): ditto.
14776         (query_string_geometry): ditto.
14777         (image_instantiate): ditto
14778         (query_string_font): ditto.
14779         (image_instantiate): ditto.
14780         (update_subwindow): ditto.
14781         (unmap_subwindow): ditto.
14782         (map_subwindow): ditto.
14783         (subwindow_instantiate): ditto.
14784
14785         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14786         (DOMAIN_FRAME): ditto.
14787         (DOMAIN_WINDOW): ditto.
14788         (DOMAIN_LIVE_P): ditto.
14789         (XDOMAIN_DEVICE): ditto.
14790         (XDOMAIN_FRAME): ditto.
14791         (XDOMAIN_WINDOW): ditto.
14792
14793         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14794         a valid specifier domain.
14795
14796 2000-04-19  Andy Piper  <andy@xemacs.org>
14797
14798         * glyphs-widget.c (syms_of_glyphs_widget): remove
14799         widget-callback-current-channel.
14800         (vars_of_glyphs_widget): ditto.
14801         * glyphs.h: ditto
14802
14803         * gui.c (get_gui_callback): revert to previous behaviour.
14804
14805 2000-04-18  Andy Piper  <andy@xemacs.org>
14806
14807         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14808         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14809         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14810
14811         * glyphs.c (image_instance_equal): add margin_width.
14812         (image_instance_hash): ditto.
14813
14814         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14815         (layout_query_geometry): ditto.
14816         (layout_layout): ditto.
14817         (syms_of_glyphs_widget): add margin-width.
14818         (image_instantiator_layout): allow margin-width.
14819
14820         * glyphs.c (update_widget_instances): make a normal function.
14821         (syms_of_glyphs): remove Qupdate_widget_instances.
14822         * glyphs.h: ditto.
14823
14824         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14825         so that we don't corrupt ideas about the last event or
14826         command. Remove widget-callback-current-channel fiddling.
14827         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14828
14829 2000-05-01  Martin Buchholz <martin@xemacs.org>
14830
14831         * XEmacs 21.2.33 is released.
14832
14833 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14834
14835         * make-src-depend: Allow dots in header file name.
14836
14837 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14838
14839         * mule-charset.h (struct charset_lookup): Add
14840         next_allocated_1_byte_leading_byte and
14841         next_allocated_2_byte_leading_byte.
14842         * mule-charset.c: Move above two variables so that those values
14843         will be dumped.
14844
14845 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14846
14847         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14848         when string length is zero.
14849         (find_charsets_in_emchar_string): Ditto.
14850
14851 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14852
14853         * lisp.h: extern Qdialog and Qmenubar.
14854
14855         * gui-x.c: added events.h.
14856                 also fixed typo which made the file uncompilable.
14857
14858         * general.c: Added Qmenubar and Qdialog
14859
14860 2000-04-28  Ben Wing  <ben@xemacs.org>
14861
14862         * frame-msw.c (mswindows_init_frame_1):
14863         * frame-msw.c (mswindows_mark_frame):
14864         * event-msw.c (mswindows_enqueue_dispatch_event):
14865         * console-msw.h:
14866         * console-msw.h (struct mswindows_frame):
14867         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14868         there are now three hash tables for callbacks.
14869         mswindows_enqueue_dispatch_event is no longer static.
14870
14871         * dialog-x.c (maybe_run_dbox_text_callback):
14872         * dialog-x.c (dbox_descriptor_to_widget_value):
14873         switch to new cons3 form for callbacks.
14874
14875         * glyphs-msw.c (mswindows_register_gui_item):
14876         * glyphs-msw.c (mswindows_widget_instantiate):
14877         * glyphs-msw.c (add_tree_item):
14878         * glyphs-msw.c (add_tab_item):
14879         new image instance parameter, so it can be passed to callback-ex.
14880         respect :callback-ex as well as :callback.
14881
14882         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14883         add :callback-ex.
14884
14885         * glyphs.c (print_image_instance):
14886         prettify, e.g. now prints widget type.
14887
14888         * gui-x.h:
14889         certain funs have new image instance parameter.
14890
14891         * gui.c:
14892         * gui.c (get_gui_callback):
14893         * gui.c (gui_item_add_keyval_pair):
14894         * gui.c (gui_item_init):
14895         * gui.c (gui_add_item_keywords_to_plist):
14896         * gui.c (mark_gui_item):
14897         * gui.c (gui_item_hash):
14898         * gui.c (gui_item_equal):
14899         * gui.c (copy_gui_item):
14900         * gui.c (syms_of_gui):
14901         recognize callback-ex in a number of places.
14902         also, fix the annoying "can't get out of yes-no dialog" bug.
14903
14904         * gui.h:
14905         * gui.h (struct Lisp_Gui_Item):
14906         recognize callback-ex in a number of places.
14907
14908         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14909         new parameter in button_item_to_widget_value.
14910
14911         * glyphs-x.c (x_update_widget):
14912         * glyphs-x.c (x_button_instantiate):
14913         * glyphs-x.c (x_button_update):
14914         * glyphs-x.c (x_progress_gauge_instantiate):
14915         * glyphs-x.c (x_edit_field_instantiate):
14916         * glyphs-x.c (x_combo_box_instantiate):
14917         * glyphs-x.c (x_tab_control_instantiate):
14918         * glyphs-x.c (x_label_instantiate):
14919         new image instance parameter in various places.
14920
14921         * event-Xt.c:
14922         * event-Xt.c (enqueue_Xt_dispatch_event):
14923         this fun gets exported.
14924
14925         * gui-msw.c:
14926         * gui-msw.c (mswindows_handle_gui_wm_command):
14927         handle both :callback and :callback-ex, and generate our own
14928         event because it's one of the callback-ex arguments.
14929
14930         * gui-x.c:
14931         * gui-x.c (popup_selection_callback):
14932         handle both :callback and :callback-ex, and generate our own
14933         event because it's one of the callback-ex arguments.
14934         * gui-x.c (button_item_to_widget_value):
14935         * gui-x.c (gui_items_to_widget_values_1):
14936         * gui-x.c (gui_item_children_to_widget_values):
14937         * gui-x.c (gui_items_to_widget_values):
14938         new image instance parameter in various places.
14939
14940         * fns.c (Freplace_list):
14941         fix small typo in doc string.
14942
14943         * lisp.h:
14944         declare enqueue_Xt_dispatch_event.
14945
14946 2000-04-28  Ben Wing  <ben@xemacs.org>
14947
14948         * buffer.c:
14949         * buffer.c (Frecord_buffer):
14950         * buffer.c (syms_of_buffer):
14951         delete record-buffer-hook.
14952
14953         * fns.c:
14954         * fns.c (Freplace_list):
14955         * fns.c (syms_of_fns):
14956         new primitive replace-list.
14957
14958         * frameslots.h:
14959         slot for old buffer-alist.
14960
14961         * lisp.h:
14962         exfun replace-list.
14963
14964         * redisplay.c:
14965         * redisplay.c (redisplay_frame):
14966         * redisplay.c (syms_of_redisplay):
14967         * redisplay.c (vars_of_redisplay):
14968         new hook buffer-list-changed-hook.
14969         call it.
14970
14971 2000-04-27  Ben Wing  <ben@xemacs.org>
14972
14973         * extents.h: extern in_modeline_generation.
14974
14975         * redisplay.c (generate_formatted_string_db): set
14976         in_modeline_generation.
14977
14978         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14979         flags if in modeline generation.  otherwise frame-modified-tick
14980         is ticked far too often.
14981         Declare in_modeline_generation.
14982
14983 2000-04-26  Ben Wing  <ben@xemacs.org>
14984
14985         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14986         option.
14987         (vars_of_emacs): add quick-build as an error-checking option.
14988         A bit kludgy, but there doesn't seem much point in creating
14989         a real var for this.
14990
14991         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14992
14993 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14994
14995         * redisplay.h (struct display_line): Add a new variable,
14996         line_continuation.
14997
14998         * redisplay.c (create_text_block): Set dl->line_continuation if
14999         the line continues.
15000         (create_string_text_block): Ditto.
15001         (regenerate_window_incrementally): Use line_continuation instead
15002         of searching continuation glyph.
15003         (add_margin_runes): Call add_glyph_rune.
15004         (add_glyph_rune): Handle margin glyph.
15005
15006 2000-04-20  Martin Buchholz  <martin@xemacs.org>
15007
15008         * filelock.c (fill_in_lock_file_name):
15009         ANSIfy.
15010         Check for IS_ANY_SEP instead of '/'.
15011         (lock_file_1):
15012         Avoid generating gratuitous garbage.  Call user_login_name() directly.
15013         Never check errno without first seeing that system call failed.
15014         (unlock_file): Add GCPRO.
15015         (Flock_buffer): Fix docstring.
15016         (Ffile_locked_p): Fix docstring.  Add GCPRO.
15017
15018 2000-04-19  Martin Buchholz  <martin@xemacs.org>
15019
15020         * sysdep.c (get_pty_max_bytes):
15021         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
15022         strings longer than 252 bytes.
15023
15024         * md5.c: Unconditionally include ANSI header <limits.h>
15025
15026         * glyphs-x.c (convert_EImage_to_XImage):
15027         * lisp-union.h (union Lisp_Object):
15028         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
15029
15030 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
15031
15032         * filelock.c (current_lock_owner): Remove unused variable o, p.
15033
15034 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
15035
15036         * callint.c: Remove multiply defined symbol Qlet
15037         (syms_of_callint): ditto.
15038
15039 2000-04-14  Andy Piper  <andy@xemacs.org>
15040
15041         * general.c (syms_of_general): add last-command, this-command, let
15042         and funcall.
15043
15044         * lisp.h: declare various symbols.
15045
15046         * glyphs.h: declare Qwidget_callback_current_channel;
15047
15048         * glyphs-widget.c (syms_of_glyphs_widget): add
15049         Qgui_callback_current_channel.
15050         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
15051
15052         * gui-msw.c (mswindows_handle_gui_wm_command): bind
15053         widget-callback-current-channel when invoking the interactive
15054         arg. Also bind last-command and next-command when invoking the
15055         widget updates.
15056         * gui-x.c (popup_selection_callback): ditto.
15057
15058         * gui.c (get_gui_callback): massage args so that we are always
15059         calling eval. This allows us to add our own variable bindings
15060         outside.
15061
15062         * glyphs-x.c (x_button_instantiate): use
15063         gui_items_to_widget_values since this is GC safe.
15064         (x_progress_gauge_instantiate): ditto.
15065         (x_edit_field_instantiate): ditto.
15066         (x_label_instantiate): ditto.
15067
15068         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
15069         (emacs_Xt_event_widget_focus_out): new function
15070         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
15071         focus.
15072         (emacs_Xt_event_add_widget_actions): new function. add focus
15073         functions as actions.
15074         (init_event_Xt_late): use it.
15075
15076 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
15077
15078         * event-stream.c (Fdispatch_event): Doc fix.
15079
15080 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
15081
15082         * postgresql.c: Remove all references to PQsetenv*.
15083
15084         * postgresql.h: Remove references to PGsetenvHandler object.
15085         * lrecord.h (lrecord_type): Ditto.
15086
15087 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15088
15089         * glyphs-msw.h (struct mswindows_image_instance_data): Added
15090         real_heigh and real_width members, and accessor macros for these.
15091
15092         * glyphs-msw.c (init_image_instance_geometry): New function.
15093         (init_image_instance_from_dibitmap): Use it.
15094         (mswindows_resource_instantiate): Use it.
15095         (init_image_instance_from_xbm_inline): Use it.
15096         (mswindows_initialize_image_instance_mask): Use real bitmap
15097         geometry.
15098         (mswindows_create_resized_bitmap): Ditto.
15099         (mswindows_create_resized_mask): Ditto.
15100
15101         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
15102         and bitmap to their surface size.
15103
15104 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
15105
15106         * process-unix.c (unix_send_process): Guard against process MIA
15107         after Faccept_process_output.
15108
15109 2000-04-11  Ben Wing  <ben@xemacs.org>
15110
15111         * eval.c (unbind_to_hairy): fix brokenness introduced by
15112         nanosecond speed improvements.
15113
15114 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
15115
15116         * sunplay.c (init_device): To play sounds correctly, the device
15117         apparently needs to be initialized at least once by XEmacs.  Make
15118         it so.
15119
15120 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15121
15122         * redisplay.c (add_margin_runes): Add text image glyph
15123           handling.
15124
15125 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
15126
15127         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
15128         gcc is newer than 2.5.
15129
15130 2000-04-06  Colin Rafferty  <colin@xemacs.org>
15131
15132         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
15133
15134         * fns.c (size_bit_vector):
15135         * alloc.c (size_vector):
15136         (make_vector_internal):
15137         (make_bit_vector_internal):
15138         (sweep_bit_vectors_1):
15139         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
15140
15141 2000-04-06  Andy Piper  <andy@xemacs.org>
15142
15143         * gmalloc.c (malloc): undo previous change.
15144         (malloc): ditto.
15145         (free): ditto.
15146         (realloc): ditto.
15147
15148 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
15149
15150         * line-number.c (buffer_line_number): Revert to former version.
15151
15152 2000-04-06  Andy Piper  <andy@xemacs.org>
15153
15154         * gmalloc.c (malloc): add error checking.
15155         (malloc): ditto.
15156         (free): ditto.
15157         (realloc): ditto.
15158
15159         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
15160         button_item_to_widget_value arg.
15161
15162         * glyphs-x.c (x_button_instantiate): add extra
15163         button_item_to_widget_value arg.
15164         (x_progress_gauge_instantiate): ditto.
15165         (x_edit_field_instantiate): ditto.
15166         (x_label_instantiate): ditto.
15167
15168         * gui-x.c (gui_items_to_widget_values_1): add extra
15169         button_item_to_widget_value arg.
15170         (button_item_to_widget_value): add extra menu_item_p arg.
15171
15172         * gui-x.h: change signature of button_item_to_widget_value.
15173
15174         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
15175         button_item_to_widget_value arg.
15176
15177 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
15178
15179         * buffer.h (struct buffer): auto_save_modified should be long.
15180
15181 2000-04-05  Andy Piper  <andy@xemacs.org>
15182
15183         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
15184         type.
15185         (button_query_geometry): give a little more room so that athena
15186         buttons fit.
15187
15188 2000-04-05  Andy Piper  <andy@xemacs.org>
15189
15190         * faces.c (complex_vars_of_faces): The widget face should inherit
15191         the font of the gui-element face.
15192
15193 2000-04-04  Andy Piper  <andy@xemacs.org>
15194
15195         * glyphs-x.c (x_button_update): new function. unconditionally
15196         update a button's state when the instance is dirty.
15197         (image_instantiator_format_create_glyphs_x): add x_button_update.
15198         (x_widget_instantiate): remove old resize cruft.
15199
15200 2000-04-02  Andy Piper  <andy@xemacs.org>
15201
15202         * frame.c (change_frame_size_1): The introduction of gutters means
15203         that we need to allow 0 as a potential frame dimension.
15204
15205 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15206
15207         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
15208         image glyph if allow_cursor.
15209         (add_hscroll_rune): Don't allow cursor to border glyph.
15210         (create_text_block): Ditto.
15211
15212         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
15213         text not in buffer.
15214         (redisplay_output_layout): Call ensure_face_cachel_complete for
15215         text image glyph.
15216
15217
15218 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15219
15220         * redisplay.c (add_glyph_rune): Adding text image as text runes.
15221
15222         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
15223         not in buffer
15224
15225         * redisplay-tty.c (tty_output_display_block): Delete the routine
15226         for text image glyph
15227         * redisplay-x.c (x_output_display_block): ditto
15228         * redisplay-msw.c (mswindows_output_display_block): ditto
15229
15230 2000-02-02  Mike Alexander  <mta@arbortext.com>
15231
15232         Note: Some of these were committed by accident as part of other
15233         patches.
15234
15235         * regex.c (regex_compile): Avoid compiler warnings.
15236
15237         * ntproc.c (sys_spawnve): Avoid compiler warnings.
15238
15239         * nt.h: Declare term_ntproc correctly.
15240
15241         * nt.c: Remove incorrect declaration of get_home_directory which
15242         is declared correctly in lisp.h.
15243
15244         * keymap.c (get_keyelt): Avoid compiler warnings.
15245         (raw_lookup_key_mapper): Avoid compiler warnings.
15246
15247         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
15248
15249         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
15250
15251         * filemode.c (mode_string): Avoid compiler warnings.
15252
15253         * file-coding.c (Fcoding_system_aliasee): Add return statement to
15254         avoid warning.
15255
15256         * events-mod.h: Undef some things that winuser.h defines differently.
15257
15258         * data.c (Faset): Avoid compiler warnings.
15259
15260         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
15261
15262 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15263
15264         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
15265         Fall through to simple beep on error.
15266         Replace "extern" by real header file.
15267
15268         * linuxplay.c: Use nativesound.h
15269         (play_sound_data): Return error code. Be less verbose on error.
15270
15271         * sunplay.c: Use nativesound.h
15272         (play_sound_data): Return error code. Be less verbose on error.
15273
15274         * ntplay.c: Use nativesound.h
15275         (play_sound_data): Return fake error code
15276
15277         * sgiplay.c: Use nativesound.h
15278         (play_sound_data): Return error code
15279
15280         * hpplay.c: Use nativesound.h, partially implement
15281         new error code. Break compilation until finished.
15282         (play_sound_data): error code.
15283
15284         * nativesound.h (play_sound_file):
15285           (play_sound_data): Prototype in new header.
15286
15287 2000-03-31  Andy Piper  <andy@xemacs.org>
15288
15289         * glyphs-widget.c: (button_query_geometry): new function. Adjust
15290         for toggle and radio buttons.
15291         (image_instantiator_buttons): use it.
15292
15293 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15294
15295         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
15296         (x_update_horizontal_scrollbar_callback): Return if no mirror was
15297         found. Scrollbar event probably belonged to some old config.
15298
15299 2000-03-31  Andy Piper  <andy@xemacs.org>
15300
15301         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
15302         than 1.
15303         (initialize_widget_image_instance): default layout to
15304         LAYOUT_HORIZONTAL rather than 0.
15305         (widget_instantiate): reverse the item list at the end rather than
15306         every iteration.
15307         (layout_layout): re-code for the border text at the front of the
15308         item list rather than at the end.
15309         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
15310         provided by the user.
15311         (widget_query_geometry): comment.
15312
15313 2000-03-30  Andy Piper  <andy@xemacs.org>
15314
15315         * glyphs-widget.c (image_instantiator_layout): allow standard
15316         widget keywords in layouts.
15317
15318         * gutter.c (output_gutter): cope with nil gutter contents.
15319
15320         * frame.c (Fset_frame_properties): add gutter docs.
15321
15322 2000-03-29  Andy Piper  <andy@xemacs.org>
15323
15324         * toolbar-msw.c (TBSTYLE_FLAT): add.
15325         (mswindows_output_toolbar): minor fiddling.
15326
15327 2000-03-29  Andy Piper  <andy@xemacs.org>
15328
15329         * gutter.c (output_gutter): force gutter size recalculation if
15330         what we are trying to display won't fit.
15331         (update_gutter_geometry): new function. A per-gutter version of
15332         update_frame_gutter_geometry.
15333         (update_frame_gutter_geometry): use it.
15334         (redraw_exposed_gutter): add extra debugging output.
15335
15336 2000-03-28  Mike Alexander  <mta@arbortext.com>
15337
15338         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
15339         (pdump_file_unmap): Implement it on Windows
15340         (pdump_file_get): Save alocated handles for pdump_file_unmap
15341
15342 2000-03-28  Andy Piper  <andy@xemacs.org>
15343
15344         * gui.c (get_gui_callback): treat Quit specially.
15345
15346 2000-03-27  Andy Piper  <andy@xemacs.org>
15347
15348         * glyphs.c (image_instantiate): be careful to check in the same
15349         way we assigned.
15350
15351 2000-03-27  Didier Verna  <didier@xemacs.org>
15352
15353         * config.h.in: define the proper SMART_INCLUDE macro.
15354         handle renaming of `foo_h_path' to `foo_h_file'.
15355
15356         * database.c: ditto.
15357
15358         * emacs.c: ditto.
15359
15360         * linuxplay.c: ditto.
15361
15362         * terminfo.c: ditto.
15363
15364         * tooltalk.h: ditto.
15365
15366 2000-03-27  Andy Piper  <andy@xemacs.org>
15367
15368         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15369         gets updated whenever the face might have changed.
15370
15371 2000-03-26  Mike Alexander  <mta@arbortext.com>
15372
15373         * dumper.c (pdump_resource_free): Fix the comment.
15374
15375 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15376
15377         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15378
15379 2000-03-22  Mike Alexander  <mta@arbortext.com>
15380
15381         * dumper.c: Include Windows headers on Windows
15382         (pdump_resource_free): Add a body to the function
15383         (pdump_load): exe_name -> exe_path and add some comments.
15384
15385 2000-03-25  Mike Alexander  <mta@arbortext.com>
15386
15387         * gui.c (copy_gui_item_tree): Return a value in all cases
15388
15389 2000-03-21  Didier Verna  <didier@xemacs.org>
15390
15391         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15392         lwlib/config.h.in.
15393         (SMART_INCLUDE): new macro.
15394         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15395         the proper location.
15396
15397         * postgresql.c: use it.
15398
15399         * inline.c: ditto.
15400
15401 2000-03-24  Andy Piper  <andy@xemacs.org>
15402
15403         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15404         do this.
15405
15406 2000-03-24  Andy Piper  <andy@xemacs.org>
15407
15408         * redisplay-output.c (compare_runes): use image_instance_changed
15409         to detect changes. Do not depend on glyphs_changed, only depend on
15410         dirtiness.
15411          (redisplay_output_layout): add debug messages.
15412         (compare_runes): ditto.
15413
15414         * glyphs.h: declare new functions.
15415         (struct Lisp_Image_Instance): remove percent and associated
15416         accessors.
15417
15418         * gui.h: declare new copying functions.
15419
15420         * gui.c (copy_gui_item_tree): new function.
15421         (copy_gui_item): new function.
15422         (gui_item_id_hash): revert to standard hash.
15423         (gui_item_hash): ditto.
15424         (gui_item_hash_internal): deleted.
15425         (mark_gui_item): mark value.
15426         (gui_item_add_keyval_pair): add value.
15427         (gui_item_init): ditto.
15428         (gui_add_item_keywords_to_plist): ditto.
15429         (gui_item_equal): ditto.
15430         (syms_of_gui): add Q_value.
15431
15432         * glyphs-x.c (x_progress_gauge_update): use pending items and
15433         value for setting the state.
15434         (x_update_widget): don't set items from pending here.
15435
15436         * glyphs-widget.c (update_widget): update items here.
15437         (progress_gauge_set_property): use items for storing value. Put
15438         new value in pending items.
15439
15440         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15441         items for new value. Convert percent -> value.
15442         (mswindows_tab_control_update): don't update items here.
15443
15444         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15445         (update_subwindow): ditto.
15446         (image_instance_changed): new function. Compare hash values and
15447         past and present widget items.
15448         (image_instantiate): We more careful about where we instantiate
15449         things.
15450         (image_instantiate): add error checking.
15451
15452         * gutter.c (syms_of_gutter): use -hook.
15453
15454 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15455
15456         * console-tty.c (Fset_console_tty_input_coding_system): Use
15457         Qkeyboard.
15458         (Fset_console_tty_output_coding_system): Use Qterminal.
15459         (tty_init_console): Use Qkeyboard and Qterminal.
15460
15461 2000-03-21  Ben Wing  <ben@xemacs.org>
15462
15463         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15464         From Mike Alexander <mta@arbortext.com>.
15465
15466 2000-03-21  Ben Wing  <ben@xemacs.org>
15467
15468         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15469         process brokenness.  Proper implementation to come.
15470         * callproc.c:
15471         Rename call-process-internal to old-call-process-internal.
15472         New impl. in process.el.
15473
15474 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15475
15476         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15477
15478 2000-03-20  Andy Piper  <andy@xemacs.org>
15479
15480         * glyphs.c (full_list_hash): make hashes of the same elements in
15481         different orders return different values.
15482
15483 2000-03-20  Martin Buchholz <martin@xemacs.org>
15484
15485         * XEmacs 21.2.32 is released.
15486
15487 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15488
15489         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15490         (DFC_MALLOC_USE_CONVERTED_DATA):
15491         Add aliasing-safe casts to allow use with char* or unsigned char*
15492         lvalues.
15493
15494         * eldap.c (Fldap_open):
15495         (Fldap_search_basic):
15496         (Fldap_add):
15497         (Fldap_modify):
15498         Make C++-compilable.
15499         Make sure GCPRO'ed variables are initialized.
15500         Use temp variables to avoid repeated calls to Flength.
15501
15502 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15503
15504         * sysfile.h:
15505         Make sure PATH_MAX is always defined.
15506         Include limits.h for PATH_MAX.
15507         Deprecate use of MAXPATHLEN.
15508
15509 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15510
15511         * emacs.c: Add reinit_vars_of_fileio.
15512         * symsinit.h: Add reinit_vars_of_fileio.
15513         * fileio.c (reinit_vars_of_fileio): New.
15514         * fileio.c (Fmake_temp_name):
15515         Initialize temp_name random number from microseconds to make
15516         collisions even less likely.  Initialize always at process startup
15517         time.  (make-temp-name) used to return the same file name twice in
15518         a row when PDUMP.
15519         Random stylistic fiddling.
15520         Comment fixes.
15521
15522 2000-03-20  Andy Piper  <andy@xemacs.org>
15523
15524         * glyphs.c (image_instantiate): allow text glyphs to be
15525         instantiated in the minibuffer window.
15526
15527 2000-03-19  Andy Piper  <andy@xemacs.org>
15528
15529         * glyphs.c (image_instance_hash): be careful about which items we
15530         hash on.
15531
15532         * glyphs-widget.c (tab_control_set_property): record into pending
15533         items rather than the actual items.
15534
15535         * glyphs-x.c (x_update_widget): use pending items to update with.
15536
15537         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15538         to update with.
15539
15540         * glyphs.c (mark_image_instance): mark pending items.
15541
15542         * window.c (Fset_window_configuration): record the buffer.
15543         (Fselect_window): totally revert previous change which breaks many
15544         things.
15545
15546 2000-03-18  Andy Piper  <andy@xemacs.org>
15547
15548         * glyphs-msw.c (mswindows_tab_control_update): force selected
15549         item.
15550
15551         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15552         window domain cache, otherwise we get inconsistencies at
15553         startup. There is something fishy at startup which can lead to the
15554         minibuffer being the selected window when the gutter content is
15555         instantiated.
15556
15557         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15558         gcpros.
15559         (parse_gui_item_tree_children): ditto.
15560         (parse_gui_item_tree_item): ditto.
15561
15562         * glyphs.c (Fupdate_widget_instances): return something.
15563
15564 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15565
15566         * window.c (Fselect_window): Undo 2000-03-17 change.
15567
15568 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15569
15570         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15571         against v7.0 libraries.  Insta-coredump city until the postgres
15572         folks fix it.
15573
15574 2000-03-17  Andy Piper  <andy@xemacs.org>
15575
15576         * faces.c (complex_vars_of_faces): don't give the widget face an
15577         inherited background pixmap.
15578
15579         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15580         selected item.
15581
15582         * event-stream.c (Fdispatch_non_command_events): return something.
15583
15584         * gutter.c (output_gutter): use widget face.
15585         (clear_gutter): ditto.
15586
15587         * NEWS: adjust again.
15588
15589         * window.c (Fselect_window): make sure this runs to completion to
15590         avoid oddities with Fset_window_configuration.
15591         (Fcurrent_window_configuration): in general do not save the
15592         minibuffer as the selected window.
15593
15594         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15595
15596 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15597
15598         * emacs.c (Frunning_temacs_p): Revert previous patch.
15599         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15600
15601 2000-03-16  Andy Piper  <andy@xemacs.org>
15602
15603         * glyphs-x.c (x_tab_control_update): if no widget values then
15604         return.
15605
15606         * NEWS: update for new features.
15607
15608         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15609         synthetic event to the native system.
15610         (reinit_vars_of_event_Xt): set force_event_pending to
15611         emacs_Xt_force_event_pending.
15612
15613         * events.h (struct event_stream): add force_event_pending.
15614
15615         * specifier.c (recompute_one_cached_specifier_in_window): add
15616         comment.
15617
15618         * redisplay.c (redisplay_frame): don't call
15619         update_frame_subwindows. Reset subwindow cachels when
15620         subwindows_changed, removing this was an optimization too far.
15621
15622         * redisplay-output.c (compare_runes): reorganize so that we catch
15623         glyph changes when we want them. Set optimize_output when this
15624         would help layouts.
15625         (redisplay_output_layout): remove frame_really_changed, use
15626         optimize_output instead.
15627
15628         * redisplay-msw.c (mswindows_output_display_block): reset
15629         optimize_output after outputting a glyph.
15630         * redisplay-x.c (x_output_display_block): ditto.
15631         * redisplay-tty.c (tty_output_display_block): ditto.
15632
15633         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15634         functions.
15635         (gutter_specs_changed): do specific gutter positions.
15636         (top_gutter_specs_changed): new function. Only update the
15637         specified gutter specs.
15638         (bottom_gutter_specs_changed): ditto.
15639         (left_gutter_specs_changed): ditto.
15640         (right_gutter_specs_changed): ditto.
15641
15642         * gui.c (gui_item_hash_internal): new function, does a real hash.
15643         (gui_item_id_hash): use it.
15644         (gui_item_hash): hash the eval'ed gui_item.
15645
15646         * gui-x.c (popup_selection_callback): send an eval event to call
15647         Fupdate_widget_instances.
15648
15649         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15650         to call Fupdate_widget_instances.
15651
15652         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15653         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15654
15655         * glyphs.c: (update_frame_subwindows): deleted.
15656         (Fupdate_widget_instances): new function for updating the dirty
15657         state of widgets that might have changed.
15658         (syms_of_glyphs): add Qupdate_widget_instances.
15659         (full_list_hash): hash a list completely.
15660         (image_instance_hash): use it for items and properties.
15661
15662         * frame-msw.c (mswindows_size_frame_internal): remove unused
15663         variable.
15664
15665         * faces.h (struct face_cachel): fix comment.
15666
15667         * event-stream.c (Fdispatch_non_command_events): new
15668         function. Process non-command events, forcing an event cycle
15669         beforehand.
15670         (syms_of_event_stream): declare.
15671         (event_stream_force_event_pending): new function. Force an event
15672         on the native event queue so that an event cycle will occur next
15673         time we check.
15674
15675         * event-msw.c:
15676         (struct ntpipe_shove_stream):
15677         (mswindows_enqueue_dispatch_event):
15678         (mswindows_dequeue_dispatch_event):
15679         (mswindows_cancel_dispatch_event):
15680         (mswindows_pump_outstanding_events):
15681         (mswindows_drain_windows_queue):
15682         (mswindows_handle_paint):
15683         (mswindows_wnd_proc):
15684         (mswindows_key_to_emacs_keysym):
15685         (get_process_input_waitable):
15686         (emacs_mswindows_delete_stream_pair): re-indent file.
15687         (mswindows_need_event): do not process further fds if the windows
15688         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15689         fixes the 100% cpu problem.
15690         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15691
15692 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15693
15694         * alloc.h: New.
15695         * dumper.h: New.
15696         * dumper.c: New.
15697
15698         * emacs.c: Moved dump file searching to dumper.c.
15699         (Frunning_temacs_p): Fixed.
15700
15701         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15702         last_lrecord_type_index_assigned.
15703
15704 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15705
15706         * symsinit.h: Added reinit parameter to init_console_stream
15707         declaration.
15708
15709         * lisp.h: Added file parameter to pdump_load declaration.
15710
15711         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15712         support.  Added dump file searching.
15713
15714         * config.h.in: Added EMACS_PROGNAME.
15715
15716         * console-stream.c (init_console_stream): Fix reinitialisation
15717         when running from temacs.
15718
15719         * alloc.c (pdump): Add id support.
15720         (pdump_load): Add file parameter and signature/id support.
15721
15722         * Makefile.in.in: Add full pdump support.
15723
15724 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15725
15726         * postgresql.c: Update documentation to reflect latest code
15727         status.
15728         (print_result): Show tuple counts in printed representation when
15729         appropriate.
15730         (Fpq_put_nbytes): MULE-ize.
15731         (Fpq_get_line_async): Ditto.
15732
15733 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15734
15735         * postgresql.c (Fpq_lo_import): Fix return value.
15736         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15737
15738 2000-03-13  Ben Wing  <ben@xemacs.org>
15739
15740         * alloc.c (pdump_load):
15741         Fix compile warning under mswin.
15742
15743 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15744
15745         * postgresql.c: Mule-ization, bug fixes.
15746         Use PG_CODING to encapsulate coding system name changes.
15747         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15748         (pg-coding-system): Create.
15749
15750         (Fpq_conn_defaults): Mule-ize.
15751         (Fpq_connectdb): Mule-ize & bug fix.
15752         (Fpq_connect_start): Mule-ize.
15753         (Fpq_set_client_encoding): Mule-ize.
15754         (Fpq_finish): Document `DEAD' connection status.
15755         (Fpq_clear): Ditto.
15756         (Fpq_pgconn): Mule-ize.
15757         (Fpq_exec): Mule-ize & bug fix.
15758         (Fpq_send_query): Ditto.
15759         (Fpq_get_result): Ditto.
15760         (Fpq_res_status): Mule-ize.
15761         (Fpq_result_error_message): Mule-ize.
15762         (Fpq_ntuples): fix comments.
15763         (Fpq_fname): Mule-ize.
15764         (Fpq_fnumber): Mule-ize.
15765         (Fpq_ftype): fix comments.
15766         (Fpq_get_value): Mule-ize.
15767         (Fpq_cmd_status): Ditto.
15768         (Fpq_cmd_tuples): Ditto.
15769         (Fpq_oid_value): Ditto.
15770         (Fpq_notifies): Ditto.
15771         (Fpq_lo_import): Ditto.
15772         (Fpq_lo_export): Ditto.
15773         (Fpq_get_line): Ditto.
15774         (Fpq_put_line): Mule-ize and bug fix.
15775         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15776
15777 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15778
15779         * postgresql.c (vars_of_postgresql): Mule-ize.
15780         (Fpq_conn_defaults): Ditto.
15781
15782 2000-03-12  Ben Wing  <ben@xemacs.org>
15783
15784         * alloc.c (Fmake_byte_code):
15785         * alloc.c (debug_string_purity_print):
15786         * alloc.c (pdump_backtrace):
15787         * alloc.c (pdump_get_indirect_count):
15788         * alloc.c (pdump_register_sub):
15789         * alloc.c (pdump_register_object):
15790         * alloc.c (pdump_register_struct):
15791         * alloc.c (pdump_dump_data):
15792         * alloc.c (pdump_reloc_one):
15793         Minor cleanups.
15794
15795         * console-msw.c:
15796         * console-msw.c (GetConsoleHwnd):
15797         * console-msw.c (msw_hide_console):
15798         * console-msw.c (msw_show_console):
15799         * console-msw.c (msw_ensure_console_buffered):
15800         * console-msw.c (msw_output_console_string):
15801         * console-msw.c (console_type_create_mswindows):
15802
15803         a) Added functions to manipulate the console window for use with
15804         shell support.
15805
15806         b) Added support for writing text to the console, which is now
15807         used under Windows when xemacs is not being run non-interactively,
15808         to write text that would otherwise be destined for stdout because
15809         under these circumstances, text written to stdout tends to
15810         disappear and not be seen.
15811
15812         * console-msw.h:
15813         * event-Xt.c:
15814         * event-Xt.c (x_event_to_emacs_event):
15815         * event-Xt.c (describe_event_window):
15816         * events-mod.h (XEMACS_MOD_CONTROL):
15817         * events.c:
15818         * events.c (Fmake_event):
15819         * events.c (character_to_event):
15820         * events.c (event_to_character):
15821         * events.c (format_event_object):
15822         * events.c (Fevent_modifiers):
15823         * events.h:
15824         * events.h (struct key_data):
15825         * events.h (struct button_data):
15826         * events.h (struct misc_user_data):
15827         * frame-x.c (Fcde_start_drag_internal):
15828         * frame-x.c (Foffix_start_drag_internal):
15829         * gpmevent.c (Freceive_gpm_event):
15830         * keymap.c:
15831         * keymap.c (bucky_sym_to_bucky_bit):
15832         * keymap.c (control_meta_superify):
15833         * keymap.c (make_key_description):
15834         * keymap.c (keymap_lookup_directly):
15835         * keymap.c (create_bucky_submap):
15836         * keymap.c (keymap_store):
15837         * keymap.c (define_key_check_and_coerce_keysym):
15838         * keymap.c (define_key_parser):
15839         * keymap.c (define_key_alternate_name):
15840         * keymap.c (Fdefine_key):
15841         * keymap.c (raw_lookup_key_mapper):
15842         * keymap.c (struct map_keymap_unsorted_closure):
15843         * keymap.c (map_keymap_unsorted_mapper):
15844         * keymap.c (map_keymap_sort_predicate):
15845         * keymap.c (map_keymap_sorted):
15846         * keymap.c (accessible_keymaps_mapper_1):
15847         * keymap.c (where_is_recursive_mapper):
15848         * keymap.c (describe_map_mapper):
15849         * keymap.c (describe_map_sort_predicate):
15850         * keymap.c (describe_map):
15851         * keymap.c (complex_vars_of_keymap):
15852         And a number of other files, the key modifier preprocessor
15853         constants that xemacs uses have names that conflict with constants
15854         defined under MS Windows for other purposes, so they were renamed
15855         to begin with the prefix XEMACS_. The variables that hold such
15856         modifiers were changed to consistently be of type int to fix
15857         various compile warnings.
15858
15859         * console.c (complex_vars_of_console):
15860         * device.c:
15861         * device-msw.c:
15862         * device-msw.c (mswindows_finish_init_device):
15863         * device-msw.c (msw_get_workspace_coords):
15864         * device-msw.c (mswindows_device_system_metrics):
15865         and various other files, added support for a new
15866         device property called offset-workspace which returns the position
15867         of the upper left corner of the workspace area and goes along with
15868         the existing size-workspace property.
15869
15870         * dialog-msw.c:
15871         * dialog-msw.c (push_bufbyte_string_as_unicode):
15872         * dialog-msw.c (mswindows_popup_dialog_box):
15873         Added support for XEmacs-style accelerator specifications in
15874         button text.  Note: I didn't add support for this under X Windows,
15875         and somebody needs to do this.
15876
15877         * dialog.c:
15878         * dialog.c (Fpopup_dialog_box):
15879         Documented the support for accelerators that was just mentioned.
15880
15881         editfns.c (get_home_directory): Changed behavior under Windows
15882         when HOME not defined; former behavior was irretrievably broken.
15883
15884         * emacs.c:
15885         * emacs.c (main_1):
15886         * emacs.c (main):
15887         * minibuf.c (clear_echo_area_internal):
15888         * minibuf.c (echo_area_append):
15889         * print.c:
15890         * print.c (std_handle_out_external):
15891         * print.c (std_handle_out_va):
15892         * print.c (fatal):
15893         * print.c (write_string_to_stdio_stream):
15894         * print.c (output_string):
15895         * print.c (debug_print):
15896         * print.c (debug_backtrace):
15897         * print.c (debug_short_backtrace):
15898         Cleaned up the code that prints text to stdout so that this can be
15899         changed to output into a console window instead under MS Windows,
15900         as described above.
15901
15902         * eval.c:
15903         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15904         * eval.c (internal_catch):
15905         * eval.c (unwind_to_catch):
15906         * eval.c (throw_or_bomb_out):
15907         * eval.c (condition_case_1):
15908         * eval.c (signal_1):
15909         * eval.c (check_error_state_sanity):
15910         * eval.c (call_with_suspended_errors_1):
15911         * eval.c (call_with_suspended_errors):
15912         * eval.c (reinit_vars_of_eval):
15913         Added code to catch throw loops and check for a pesky bug that may
15914         be gone now.
15915
15916         * event-msw.c:
15917         * event-msw.c (key_needs_default_processing_p):
15918         * event-msw.c (mswindows_wnd_proc):
15919         * event-msw.c (mswindows_modifier_state):
15920         * event-msw.c (emacs_mswindows_quit_p):
15921         * event-msw.c (vars_of_event_mswindows):
15922         a) Added support for using the alt key to select menu items as is
15923         standard under MS Windows.  This is controlled using the variable
15924         menu-accelerator-enabled, just like under X Windows.  There is an
15925         option on the options menu to turn this support on.  I really
15926         think that it should be on by default under Windows, but I'm not
15927         going to make this change yet.
15928
15929         b)  Added support for dynamic display size changes under Windows.
15930
15931         * event-stream.c:
15932         * event-stream.c (maybe_echo_keys):
15933         * event-stream.c (Fnext_event):
15934         * event-stream.c (command_builder_find_leaf):
15935         * event-stream.c (lookup_command_event):
15936         * event-stream.c (execute_command_event):
15937         * event-stream.c (pre_command_hook):
15938         * event-stream.c (post_command_hook):
15939         * event-stream.c (syms_of_event_stream):
15940         * event-stream.c (vars_of_event_stream):
15941         * event-stream.c (complex_vars_of_event_stream):
15942         * events.h (struct command_builder):
15943
15944         a) Tried to clean up a little bit the horribly written x-specific
15945         accelerator code that crept into this file.  I moved this code
15946         into menubar-x.c where it belongs. I also needed to move the
15947         command builder structure into the file events.h because it is
15948         accessed directly by this accelerator code.  What I didn't do, but
15949         which should be done at some point, is to properly abstract this
15950         code using device methods instead of the kludgy way that it
15951         currently hooks into the event code.
15952
15953         b) Added the lisp variables this-command-properties and
15954         last-command- properties, which should be used to synchronize two
15955         adjacent commands in preference to playing games with the variable
15956         this-command, which is typically what happens.
15957
15958         c) Added some slightly nasty code to hook into the lisp support
15959         for shifted- motion-key selection.  This is actually necessary for
15960         somewhat complicated reasons, which are described in
15961         simple.el. (NB: I think the proper thing would be to have the code
15962         that calls the pre and post command hooks also call out to generic
15963         lisp functions in simple.el, where all built-in stuff could be
15964         added.  I will think about this more.)
15965
15966         * event-unixoid.c (poll_fds_for_input):
15967         * lread.c (readchar):
15968         * redisplay-tty.c (tty_clear_frame):
15969         * redisplay-x.c (x_get_gc):
15970         * signal.c (interrupt_signal):
15971         And a whole bunch of other files: fixed up places that printed
15972         directly to stderr to instead call the function stderr_out so that
15973         the changes I made under Windows work correctly.
15974
15975         * filemode.c (mode_string):
15976         Warning fixes.
15977
15978         * frame-msw.c:
15979         * frame-msw.c (mswindows_size_frame_internal):
15980         Fixed the computation of frame size and position to keep the frame
15981         within the workspace area, rather than within the physical
15982         dimensions of the screen, so that the frame doesn't overlap window
15983         manager decorations, such as the start menu and toolbar, typically
15984         at the bottom of the screen.
15985
15986         * frame.c (vars_of_frame):
15987         Changed the default frame title format under MS Windows to consist
15988         of buffername-XEmacs, which is standard under MS Windows.  I think
15989         it might be a good idea to change this everywhere because I think
15990         it is superior to the current frame title format, but this is the
15991         kind of change that is likely to cause some people to get annoyed,
15992         so I'm not making it.
15993
15994         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15995
15996         * gui-msw.c (mswindows_handle_gui_wm_command):
15997         Fixed compile warnings.
15998
15999         * gui-x.c:
16000         * gui-x.c (strdup_and_add_accel):
16001         * gui-x.c (button_item_to_widget_value):
16002         * gui-x.h:
16003         Added code to automatically put an accelerator onto the beginning
16004         of menu items that don't have one as is now the standard, and is
16005         described more later.  Also fixed things so that the menu item
16006         name can be an evaluated expression, again a new standard.
16007
16008         * gui.c:
16009         * gui.c (gui_item_add_keyval_pair):
16010         * gui.c (make_gui_item_from_keywords_internal):
16011         * gui.c (gui_add_item_keywords_to_plist):
16012         * gui.c (gui_item_accelerator):
16013         * gui.c (gui_name_accelerator):
16014         * gui.c (gui_item_included_p):
16015         * gui.c (gui_item_display_flush_left):
16016         * gui.c (gui_item_display_flush_right):
16017         * gui.c (parse_gui_item_tree_item):
16018         * gui.c (parse_gui_item_tree_children):
16019         * gui.c (parse_gui_item_tree_list):
16020         Mule-ized.  Cleanup.  GCPRO addition.
16021
16022         * line-number.c (buffer_line_number):
16023         * lisp.h:
16024         * lisp.h (EMACS_INT_MAX):
16025         Added the manifest constant EMACS_INT_MIN corresponding to the
16026         existing constant EMACS_INT_MAX.  This is partially to fix compile
16027         warnings under Windows, and partly for cleanliness.
16028
16029         * menubar-msw.c:
16030         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
16031         * menubar-msw.c (msw_translate_menu_or_dialog_item):
16032         * menubar-msw.c (displayable_menu_item):
16033         * menubar-msw.c (populate_menu_add_item):
16034         * menubar-msw.c (populate_or_checksum_helper):
16035         * menubar-msw.c (populate_menu):
16036         * menubar-msw.c (update_frame_menubar_maybe):
16037         * menubar-msw.c (prune_menubar):
16038         * menubar-msw.c (msw_char_is_accelerator):
16039         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
16040         * menubar-msw.c (mswindows_handle_wm_command):
16041         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
16042         * menubar-msw.c (mswindows_handle_wm_initmenu):
16043         * menubar-msw.c (mswindows_update_frame_menubars):
16044         * menubar-msw.c (mswindows_free_frame_menubars):
16045         * menubar-msw.c (mswindows_popup_menu):
16046         Fixed a bug in handling accelerators where an extra character
16047         would be displayed in the menu item.  Also generalized the
16048         function displayable_menu_item because it is now used by the
16049         dialog box code as well.  And finally, added code in the functions
16050         that create the menubar to extract a list of accelerators for the
16051         top level menubar, which is used in the event code to determine
16052         whether a particular alt-key combination should be used to invoke
16053         a menu item, or should be passed through to access the standard
16054         XEmacs keymap binding for this key combination.
16055
16056         Much needed GCPROing.
16057
16058         * menubar-x.c:
16059         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
16060         * menubar-x.c (menu_item_descriptor_to_widget_value):
16061         * menubar-x.c (restore_in_menu_callback):
16062         * menubar-x.c (x_popup_menu):
16063         * menubar-x.c (menu_move_up):
16064         * menubar-x.c (menu_move_down):
16065         * menubar-x.c (menu_move_left):
16066         * menubar-x.c (menu_move_right):
16067         * menubar-x.c (menu_select_item):
16068         * menubar-x.c (command_builder_operate_menu_accelerator):
16069         * menubar-x.c (menu_accelerator_junk_on_error):
16070         * menubar-x.c (command_builder_find_menu_accelerator):
16071         * menubar-x.c (Faccelerate_menu):
16072         * menubar.h:
16073         Moved a whole bunch of code here that was previously in
16074         event-stream.c as described above.  There is also code connected
16075         to the new standard of adding an accelerator to the beginning of
16076         menu items that don't have one as described above and below.
16077
16078         * menubar.c:
16079         * menubar.c (menu_parse_submenu_keywords):
16080         * menubar.c (Fmenu_find_real_submenu):
16081         * menubar.c (Fnormalize_menu_item_name):
16082         * menubar.c (syms_of_menubar):
16083         * menubar.c (vars_of_menubar):
16084         * menubar.c (complex_vars_of_menubar):
16085
16086         a) Cleaned up a bunch of documentation and improved it.
16087
16088         b) XEmacs now automatically adds an accelerator onto the beginning
16089         of any menu items that don't have one.  I did this because there
16090         will inevitably be some menu items on the main menubar that don't
16091         have accelerators on them because the package that adds that
16092         particular menu item hasn't yet been fixed up to have accelerators
16093         in them and it looked rather strange to have some items with and
16094         some items without accelerators, especially since even in items
16095         without accelerators, you can, at least under windows, still
16096         access the item through an accelerator corresponding to the first
16097         character in the item's name.  If people don't like this behavior,
16098         I can add a variable to turn it off optionally, but I'm not sure
16099         this is a good idea because we really do need to have accelerators
16100         on all of the menu items, and if a package doesn't like the
16101         accelerators being put on the first character, then it should put
16102         the accelerators where they belong.
16103
16104         c) I made a behavior change, which is that the descriptor that
16105         specifies the text of the menu item, which formerly was just a
16106         string, can now also be an evaluated expression.  This makes this
16107         descriptor parallel with all of the others, which could also be
16108         evaluated expressions.  This also obviates the need for the
16109         keyword :label, which was previously listed in the documentation
16110         as unimplemented, and which was for the same purpose.
16111
16112         d) GCPROing.
16113
16114         * ntproc.c:
16115         * ntproc.c (new_child):
16116         * ntproc.c (sys_spawnve):
16117         * ntproc.c (find_child_console):
16118         * ntproc.c (sys_kill):
16119         Fixed compile warnings.  By the way, this file should really go
16120         away entirely, and this will happen as soon as Kirill makes his
16121         final round of process cleanups, which affect the function
16122         call-process.
16123
16124         * process-nt.c:
16125         * process-nt.c (struct nt_process_data):
16126         * process-nt.c (find_process_from_pid):
16127         * process-nt.c (send_signal_the_nt_way):
16128         * process-nt.c (enable_child_signals):
16129         * process-nt.c (find_child_console):
16130         * process-nt.c (send_signal_the_95_way):
16131         * process-nt.c (nt_finalize_process_data):
16132         * process-nt.c (ensure_console_window_exists):
16133         * process-nt.c (nt_create_process):
16134         * process-nt.c (nt_kill_child_process):
16135         * process-nt.c (nt_kill_process_by_pid):
16136         * process-nt.c (nt_open_network_stream):
16137         * process-nt.c (vars_of_process_nt):
16138         Copied over code from Emacs 20.5 to correctly send signals to sub-
16139         processes under Windows 95.  Also added code to automatically
16140         create and hide console window when a sub-process is created under
16141         Windows 95, which obviates the need for the separate runemacs.exe
16142         executable, and finally implemented some variables that were
16143         implemented in Emacs 20.5, but previously not in XEmacs.  These
16144         include mswindows- start-process-share-console and
16145         mswindows-start-process-inherit-error-mode. (Both of these only
16146         apply to Windows 95.)
16147
16148         * regex.c (regex_compile): Fixed a compile warning.
16149
16150         * select-msw.c:
16151         * select-msw.c (mswindows_own_selection):
16152         * select-msw.c (mswindows_get_foreign_selection):
16153         * select-msw.c (mswindows_disown_selection):
16154         * select-msw.c (console_type_create_select_mswindows):
16155         * select-msw.c (syms_of_select_mswindows):
16156         Cleaned up the file and implemented the device method
16157         selection_exists_p, which had accidentally been left out.  Also
16158         removed four lisp functions that were remnants from before the
16159         time when the selection code was properly device abstracted.
16160         These functions are no longer needed because there are generic
16161         equivalents, and because they were added recently and don't exist
16162         in FSF Emacs, I don't think there's any problem with just deleting
16163         them.
16164
16165         * sysdep.c:
16166         * sysdep.c (sys_subshell):
16167         Fixed a compile warning, although in this case there's probably
16168         something wrong with this code, and it ought to be looked into
16169         more thoroughly by somebody who understands it.
16170
16171         * window.c:
16172         * window.c (Fwindow_text_area_height):
16173         * window.c (Fwindow_width):
16174         * window.c (Fwindow_full_width):
16175         * window.c (Fwindow_pixel_width):
16176         * window.c (debug_print_window):
16177         * window.c (syms_of_window):
16178         Added functions window-text-area-height and window-full-width,
16179         which are functions for returning various width and height
16180         characteristics of a window. (One of these functions is necessary
16181         for making the file dialog box work correctly, and the other one
16182         was added for completeness.)  Also added a table to the
16183         documentation for window-height which describes the entire scheme
16184         for accessing width and height characteristics of a window.
16185
16186 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16187
16188         * nt.c (fstat): Added a comment for another problem with
16189         non-encapsulated [f]stat(), reported by Adrian Aichner
16190         <aichner@ecf.teradyne.com>.
16191
16192 2000-03-11  Andy Piper  <andy@xemacs.org>
16193
16194         * window.c (make_dummy_parent): initialize subwindow instance
16195         cache.
16196         (Fset_window_configuration): zero extent_modiff.
16197
16198 2000-03-10  Andy Piper  <andy@xemacs.org>
16199
16200         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
16201         more changes can be triggered.
16202         (Fredisplay_frame): ditto.
16203         (Fredraw_device): ditto.
16204         (Fredisplay_device): ditto.
16205         (redisplay_frame): make non-static.
16206         (redisplay_frame): call update_frame_gutter_geometry outside of
16207         display proper.
16208
16209         * gutter.h: declare update_frame_gutter_geometry.
16210
16211         * redisplay.h: declare redisplay_frame.
16212
16213         * gutter.c (update_frame_gutter_geometry): move geometry changes
16214         in update_frame_gutters here. Geometry changes can only occur
16215         outside of redisplay.
16216         (update_frame_gutters): remove geometry change code.
16217         (Fredisplay_gutter_area): make sure that we are in display when we
16218         update and that we have flushed any size changes.
16219
16220 2000-03-11  Andy Piper  <andy@xemacs.org>
16221
16222         * alloc.c (pdump_dump_data): remove i & count shadows.
16223
16224 2000-02-27  Mike Alexander  <mta@arbortext.com>
16225
16226         * sysdep.h: Declare pdump_read_file
16227
16228         * sysdep.c (pdump_read_file): New function
16229
16230         * alloc.c (pdump_load): Call pdump_read_file to get the portable
16231         dump data
16232
16233 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
16234
16235         * lrecord.h: add `lrecord_type_pgsetenv'.
16236
16237 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
16238
16239         * symsinit.h: declare (vars|syms)_of* functions.
16240         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
16241
16242 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
16243
16244         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
16245
16246         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
16247         GCCs.
16248
16249         * emacs.c (main_1): Call postgres initialization code.
16250
16251         * postgresql.h: New file.  PostgreSQL RDBMS support.
16252         * postgresql.c: New file.
16253
16254 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
16255
16256         * redisplay-output.c (redisplay_output_display_block): Disable
16257         redundant code.
16258
16259 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16260
16261         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
16262         (Fcanna_henkan_next): Ditto.
16263         (Fcanna_bunsetu_henkou): Ditto.
16264         (Fcanna_henkan_kakutei): Ditto.
16265         (Fcanna_henkan_end): Ditto.
16266         (Fcanna_henkan_quit): Ditto.
16267         (Fcanna_henkan_next): Set retun value correctly.
16268         (c2mu): Use unsigned char instead of signed char.
16269
16270 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16271
16272         * emacs.c (main_1): Always call syms_of_gui.
16273         * inline.c: include gui.h
16274
16275 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16276
16277         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
16278         converted to Lisp_Object.
16279         (Qtop_bottom): New variable.
16280         (syms_of_redisplay): Initialize it.
16281         * redisplay.h (Vvisible_bell): Ditto.
16282         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
16283         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
16284         only flash top and bottom.
16285
16286 2000-03-08  Andy Piper  <andy@xemacs.org>
16287
16288         * buffer.c (Frename_buffer): record new buffer name the right way.
16289
16290 2000-03-08  Andy Piper  <andy@xemacs.org>
16291
16292         * glyphs.c (update_subwindow): increase hash depth so that widget
16293         items get picked up properly.
16294
16295         * redisplay-output.c (compare_runes): increase hash depth so that
16296         widget items get picked up properly.
16297
16298 2000-03-08  Andy Piper  <andy@xemacs.org>
16299
16300         * gutter.c (output_gutter): add some debug.
16301
16302         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
16303         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
16304         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
16305
16306         * redisplay-output.c (compare_runes): use display_hash to
16307         determine if glyphs really are not the same.
16308
16309         * glyphs.c (update_subwindow): check display_hash to see if
16310         anything really needs to be updated. If not then do
16311         nothing. Record the display_hash after updating.
16312         (image_instance_equal): compare the image_instance face also.
16313
16314 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
16315
16316         * redisplay.h: Fix comment style.
16317
16318 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16319
16320         * consle-msw.h (struct mswindows_frame):
16321         Added new member paint_pending to indicate whether a WM_PAINT
16322         magic event has been queued for this frame.
16323
16324         * event-msw.c (mswindows_drain_windows_queue):
16325         Don't queue a WM_PAINT magic event if one is already queued.
16326         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
16327
16328         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
16329
16330 2000-03-07  Didier Verna  <didier@xemacs.org>
16331
16332         * dired.c: #include `regex.h' after `sysfile.h'.
16333
16334 2000-03-06  Martin Buchholz  <martin@xemacs.org>
16335
16336         * sound.c (init_nas_sound): Fix compiler warning.
16337
16338         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
16339         (FREE_STRUCT_P):
16340         (MARK_STRUCT_AS_FREE):
16341         (MARK_STRUCT_AS_NOT_FREE):
16342         Make `gcc -fstrict-aliasing' work properly.
16343
16344 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16345
16346         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16347         (mswindows_delete_device): Call CoUnnitialize().
16348
16349         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16350
16351 2000-02-25    <CraigL@DyCon.com>
16352
16353         * process-nt.c: MinGW now has <shellapi.h>, but still needs
16354         <errno.h>.
16355
16356         * sysdep.c: This extern declaration for environ prevents MinGW
16357         from finding the variable in CRTDLL.DLL.
16358
16359         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16360         windows headers.
16361         (SHGFI_EXETYPE): ..
16362         (WM_MOUSEWHEEL): ..
16363         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16364         definitions.
16365         (MMRESULT): Removed, now defined in cygwin's windows headers.
16366         (TIMECAPS): ..
16367         (uid_t,gid_t,pid_t,ssize_t): ..
16368         (_timeb): Removed, MinGW defines both _timeb and timeb.
16369         (HAVE_H_ERRNO): Added.
16370         (HAVE_TZNAME): Added, configure is not detecting this.
16371
16372 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16373
16374         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16375         * syntax.c (syntax_match): Use it.
16376
16377         * cmds.c: Import auto-fill-chars from FSF Emacs.
16378         (Vauto_fill_chars): New variables.
16379         (internal_self_insert): Check Vauto_fill_chars.
16380         (vars_of_cmds):
16381         Declare auto-fill-chars as a Lisp variable and initialize it.
16382
16383 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16384
16385         * fileio.c (Fmake_symbolic_link):
16386         (Ffile_symlink_p):
16387         Run handlers even if local machine doesn't have symlinks.
16388
16389 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16390
16391         * event-msw.c (mswindows_drain_windows_queue):
16392         Don't generate paint magic events for non-XEmacs frames.
16393
16394 2000-03-05  Andy Piper  <andy@xemacs.org>
16395
16396         * redisplay.c (redisplay_frame): generate_displayable_area and
16397         friends assumes that we are not in GC, we therefore have to make
16398         sure that this doesn't happen.
16399
16400         * gutter.c (calculate_gutter_size): generate_displayable_area
16401         assumes that we are not in GC, we therefore have to make sure that
16402         this doesn't happen.
16403
16404 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16405
16406         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16407
16408 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16409
16410         * redisplay.c (regenerate_window): Make sure we set a sane value
16411         for end_pos even if we jump out of the loop.
16412         (regenerate_window): Answer Ben's question :-).
16413         (start_end_of_last_line): Add may_error argument.
16414         (start_of_last_line):
16415         (end_of_last_line): Pass may_error = 0.
16416         (end_of_last_line_may_error): New function.
16417         (pixel_to_glyph_translation): Use it, so we don't crash in
16418         event_to_glyph.
16419
16420 2000-03-04  Andy Piper  <andy@xemacs.org>
16421
16422         * window.h (struct window): add gutter_extent_modiff.
16423
16424         * window.c (allocate_window): zero out gutter_extent_modiff.
16425
16426         * redisplay.h: declare sync_display_line_structs.
16427
16428         * redisplay.c (add_glyph_rune): add a better comment.
16429
16430         * redisplay-output.c (sync_display_line_structs): made non-static.
16431         (compare_runes): remove unneccesary glyph cachel access.
16432
16433         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16434
16435         * gutter.c (output_gutter): don't output the gutter if extent
16436         changes only involve extents in buffers. use 4 sets of display
16437         lines.
16438         (gutter_extent_signal_changed_region_maybe): new function. Mark
16439         extents in gutters as changed.
16440         (update_frame_gutters): use 4 sets of display lines.
16441         (reset_gutter_display_lines): ditto.
16442         (free_frame_gutters): ditto.
16443         (redraw_exposed_gutter): force output of gutters.
16444
16445         * frame.h (struct frame): add 4 sets of gutter display lines.
16446
16447         * extents.c: (extent_changed_for_redisplay): signal changes to
16448         extents in strings in the gutter as well as extents in buffers.
16449
16450 2000-03-02  Andy Piper  <andy@xemacs.org>
16451
16452         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16453
16454         * frame.c (Fmake_frame): make sure the gutters get initialized
16455         after the frame is visible.
16456         (set_frame_selected_window): re-arrange compilation macros a
16457         little.
16458         (change_frame_size_1): mark gutters changed.
16459
16460         * device.c (Fset_device_class): mark gutters changed.
16461
16462 2000-03-01  Andy Piper  <andy@xemacs.org>
16463
16464         * window.c (window_top_frame_gutter_height): deleted.
16465         (window_bottom_frame_gutter_height): ditto.
16466         (window_left_frame_gutter_height): ditto.
16467         (window_right_frame_gutter_height): ditto.
16468         (window_top_gutter_height): don't use them.
16469         (window_bottom_gutter_height): ditto.
16470         (window_left_gutter_width): ditto.
16471         (window_right_gutter_width): ditto.
16472         (Fsplit_window): ditto.
16473         (Fwindow_pixel_edges): don't use border dimensions here.
16474
16475         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16476         (update_scrollbar_instance): ditto.
16477
16478         * redisplay.c (generate_modeline): don't take gutters into account.
16479         (generate_modeline): ditto.
16480         (redisplay_frame): small gutter display optimization.
16481
16482         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16483
16484         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16485         gutters into account.
16486
16487         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16488         for window position and type.
16489
16490         * gutter.c (get_gutter_coords): fix for frame gutters.
16491         (update_frame_gutters): update frame geometry if the gutters have
16492         changed.
16493         (init_frame_gutters): record current gutter geometries.
16494
16495         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16496         var.
16497         (mswindows_widget_instantiate): ditto.
16498
16499         * frame.h (struct frame): add current_gutter_bounds.
16500
16501         * frame.c (change_frame_size_1): position window and minibuffer
16502         appropriately taking into account the frame gutters.
16503
16504         * frame-x.c: (x_initialize_frame_size): take into account the
16505         frame gutters.
16506
16507 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16508
16509         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16510
16511 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16512
16513         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16514
16515 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16516
16517         * file-coding.c (reset_decoding_stream): Clear previous
16518         detection state when autodetect.
16519
16520 2000-02-29  Didier Verna  <didier@xemacs.org>
16521
16522         * extents.c (set_extent_glyph_1): don't require extents to be
16523         attached.
16524
16525 2000-02-27  Andy Piper  <andy@xemacs.org>
16526
16527         * gutter.c (Fset_default_gutter_position): don't default left and
16528         right gutter visibility to t.
16529         (Fset_default_gutter_position): run
16530         default-gutter-position-changed-hook.
16531         (syms_of_gutter): add default-gutter-position-changed-hook.
16532
16533 2000-02-26  Andy Piper  <andy@xemacs.org>
16534
16535         * specifier.c (Fmake_specifier): add gutter references.
16536
16537         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16538
16539         * lisp.h: declare Fvalid_plist_p.
16540
16541         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16542         as changed.
16543         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16544         well as its visibility so that it gets reconstructed.
16545         (construct_window_gutter_spec): new function. Construct a string
16546         to be displayed in the gutter from a plist of strings. Take care
16547         to only use elements that are declared as visible.
16548         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16549         WINDOW_GUTTER.
16550         (gutter_validate): allow plists of strings in the specifier.
16551         (gutter_specs_changed): construct the real_gutter from the gutter
16552         specs using construct_window_gutter_spec.
16553         (gutter_visible_validate): gutter-visible is a new specifier type.
16554         (Fgutter_visible_specifier_p): new function for the new specifier.
16555         (syms_of_gutter): declare gutter-visible and
16556         Fgutter_visible_specifier_p.
16557         (specifier_type_create_gutter): intitalize new gutter-visible
16558         specifier.
16559         (reinit_specifier_type_create_gutter): ditto.
16560         (specifier_vars_of_gutter): use new specifier type for gutter
16561         visibility.
16562         (init_frame_gutters): construct real_gutter correctly.
16563         (Fgutter_specifier_p): beef up documentation.
16564         (Fgutter_size_specifier_p): ditto.
16565
16566         * winslots.h: add real_gutter slots.
16567
16568 2000-02-25  Andy Piper  <andy@xemacs.org>
16569
16570         * device-msw.c: Be kind to older cygwin versions. From Raymond
16571         Toy <toy@rtp.ericsson.se>.
16572
16573         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16574         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16575
16576 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16577
16578         * elhash.c (MARK_OBJ): Practice macro hygiene.
16579
16580 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16581
16582         * miscplay.c: s/__inline__/inline/g;
16583         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16584         (get_device_compdc): INLINE ==> static inline
16585         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16586         find -name '*.h' | \
16587         xargs global-replace \
16588         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16589
16590 2000-02-25  Andy Piper  <andy@xemacs.org>
16591
16592         * window.c (window_top_frame_gutter_height): new function.
16593         (window_top_window_gutter_height): ditto.
16594         (window_top_gutter_height): use them.
16595         (window_bottom_frame_gutter_height): new function.
16596         (window_bottom_window_gutter_height): ditto.
16597         (window_bottom_gutter_height): use them.
16598         (window_left_window_gutter_width): new function.
16599         (window_left_frame_gutter_width): ditto.
16600         (window_left_gutter_width): use them.
16601         (window_right_window_gutter_width): new function.
16602         (window_right_frame_gutter_width): ditto.
16603         (window_right_gutter_width): use them.
16604         (window_pixel_height): new function. calulate window pixel height
16605         with frame gutter involvement.
16606         (Fsplit_window): calculate new sizes taking frame gutters into
16607         account.
16608         (window_char_height_to_pixel_height): don't include frame gutters.
16609         (window_char_height): use window_pixel_height.
16610         (window_pixheight): rename from window_pixel_height.
16611         (change_window_height): use it.
16612         (window_pixel_height_to_char_height): don't include frame gutters.
16613         (window_char_width_to_pixel_width): ditto.
16614
16615 2000-02-25  Andy Piper  <andy@xemacs.org>
16616
16617         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16618         if it is.
16619
16620 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16621
16622         * alloc.c (staticpro):
16623         (staticpro_nodump):
16624         (dumpstruct):
16625         (dumpopaque):
16626         (pdump_wire):
16627         (pdump_wire_list):
16628         (compact_string_chars):
16629         (pdump_dump_wired):
16630         Convert:  if (foo) abort();  ==>  assert (! foo);
16631
16632         * eldap.c (Fldap_search_basic):
16633         (Fldap_add):
16634         (Fldap_modify):
16635         (Fldap_delete):
16636         Fix compiler warnings, and possible crashes if (random) return
16637         value were to be used.
16638
16639 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16640
16641         * device-msw.c: Workaround ResetDC failure.
16642
16643         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16644         applying a devmode.
16645
16646         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16647         (mswindows_text_width): Do not start printer page.
16648
16649         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16650
16651         * glyphs-msw.c: Added image methods to msprinter console and
16652         msprinter-specific image instantiation.
16653
16654 2000-02-20  Mike Alexander  <mta@arbortext.com>
16655
16656         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16657         to avoid crashes when selection-sets-clipboard is on
16658         (mswindows_own_selection): ditto
16659
16660 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16661
16662         * glyphs-msw.c:
16663         * redisplay-msw.c (get_frame_dc):
16664         (get_frame_compdc):
16665         * console-msw.h:
16666         * device-msw.c (mswindows_init_device):
16667         (mswindows_delete_device):
16668         (msprinter_init_device):
16669         (msprinter_delete_device):
16670         * frame-msw.c (mswindows_init_frame_1):
16671         (mswindows_delete_frame):
16672         (msprinter_init_frame_3):
16673         (msprinter_delete_frame): Move compatible DC to device object from
16674         frame object, for both mswindows and msprinter. Only one at a time
16675         is needed, it is a real waste to have one per frame!
16676
16677 2000-02-23  Andy Piper  <andy@xemacs.org>
16678
16679         * glyphs.c: add dynamic width and height elements.
16680         (image_instance_equal): ditto.
16681
16682         * glyphs-widget.c (widget_query_geometry): calculate width and
16683         height dynamically if required.
16684         (initialize_widget_image_instance): initialize dynamic dimensions.
16685         (widget_instantiate): pick-up dynamic dimensions.
16686
16687         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16688         dynamic determination. Add appropriate macros.
16689
16690         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16691         dimensions safe.
16692         (WINDOW_GUTTER_SIZE): ditto.
16693         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16694
16695         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16696         inline.
16697         (get_frame_dc): ditto.
16698
16699         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16700         here.
16701
16702 2000-02-23  Martin Buchholz <martin@xemacs.org>
16703
16704         * XEmacs 21.2.31 is released.
16705
16706 2000-02-22  Ben Wing <ben@xemacs.org>
16707
16708         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16709
16710 2000-02-22  Andy Piper  <andy@xemacs.org>
16711
16712         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16713
16714 2000-02-21  Mike Sperber <mike@xemacs.org>
16715
16716         * .dbxrc:
16717         * .gdbinit:
16718         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16719         variables.
16720
16721 2000-02-21  Mike Sperber <mike@xemacs.org>
16722
16723         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16724
16725 2000-02-21  Martin Buchholz <martin@xemacs.org>
16726
16727         * XEmacs 21.2.30 is released.
16728
16729 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16730
16731         Performance hacking.
16732         * *.c (syms_of_*):
16733         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16734         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16735         * emacs.c (main_1):
16736         * lisp.h (DEFUN):
16737         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16738         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16739         * symeval.h (DEFVAR_SYMVAL_FWD):
16740         * symbols.c (guts_of_unbound_marker):
16741         Make all c_readonly objects also lisp_readonly and marked for life.
16742         * lrecord.h (struct lrecord_implementation):
16743         Document flags better.
16744         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16745         * lrecord.h (DECLARE_LRECORD):
16746         * lrecord.h (XSETRECORD):
16747         * lrecord.h (RECORDP):
16748         * lrecord.h (RECORD_TYPEP):
16749         * lrecord.h (RECORD_MARKER): New.
16750         * lrecord.h (error_check_*):
16751         * lrecord.h (CONCHECK_NONRECORD):
16752         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16753         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16754         * lrecord.h (set_lheader_implementation):
16755         * lrecord.h (enum lrecord_type): New.
16756         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16757         * alloc.c (disksave_object_finalization_1):
16758         * alloc.c (mark_object):
16759         * alloc.c (lrecord_type_index):
16760         * alloc.c (tick_lcrecord_stats):
16761         * alloc.c (Fgarbage_collect):
16762         * alloc.c (init_alloc_once_early):
16763         * alloc.c (pdump_load):
16764         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16765         * alloc.c (lrecord_type_index): Delete.
16766         Make lisp object type indexes be constant.
16767           Makes (byte-compile) 5% faster.
16768         Put all marker functions into their own array.
16769           Makes (garbage-collect) 5% faster.
16770         Optimize SYMBOL_VALUE_MAGIC_P.
16771           Makes (byte-compile) 2-3% faster.
16772         * config.h.in (gc_checking_assert): New.
16773         * alloc.c: Use gc_checking_assert().
16774         * .dbxrc: Make compatible with new object type implementation.
16775         * .gdbinit: Make compatible with new object type implementation.
16776         * alloc.c: Delete all symbols defined only for debugging, such as
16777         Lisp_Type_Vector and lrecord_charset.
16778
16779 2000-02-21  Andy Piper  <andy@xemacs.org>
16780
16781         * gui-msw.c (Fmswindows_shell_execute): fix file location
16782         problems.
16783
16784         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16785         unshowing so that set_window_buffer doesn't undo
16786         kill_buffer_hook's hard work.
16787
16788         * glyphs-widget.c (tab_control_query_geometry): don't count the
16789         first item when calculating geometry.
16790
16791         * glyphs.c (map_subwindow): remove redundant code.
16792         (update_frame_subwindows): be more circumspect about when to
16793         update subwindows.
16794
16795         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16796         when items haven't changed. Update faces if faces have changed as
16797         well as just the widget face.
16798         (x_tab_control_update): Update faces if faces have changed as well
16799         as just the widget face.
16800
16801 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16802
16803         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16804         registration.
16805         (build_syscolor_string): Use mswindows_color_to_string to try to
16806         get a named color.
16807         (mswindows_device_system_metrics): Reverse the foreground and
16808         background colors so that they match the documentation.
16809
16810         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16811         they match the default Windows palette.
16812         (mswindows_color_to_string): New function.
16813
16814 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16815
16816         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16817
16818 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16819
16820         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16821         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16822
16823         * symbols.c (init_symbols_once_early): Removed obsolete
16824         DATA_SEG_BITS related kludge.
16825         (defvar_magic): Ditto.
16826
16827         * malloc.c: Removed obsolete DATA_SEG_BITS
16828         * ralloc.c: Ditto.
16829         * mem-limits.h: Ditto.
16830
16831         * Makefile.in.in: Removed obsolete HAVE_SHM
16832         * emacs.c: Ditto.
16833
16834 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16835
16836         *  device-msw.c (mswindows_delete_device): Free DDE string
16837         handles.
16838
16839 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16840
16841         * keymap.c (get_keyelt):
16842         * unexnt.c (unexec):
16843         * vm-limit.c (memory_warnings):
16844         * ntheap.c (recreate_heap):
16845         * ntheap.h (UNINIT_PTR):
16846         * select-msw.c (Fmswindows_get_clipboard):
16847         (Fmswindows_set_clipboard):
16848         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16849         * objects-msw.c:
16850         * menubar-msw.c (displayable_menu_item):
16851         * glyphs-msw.c:
16852         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16853         * sysdep.c (sys_subshell):
16854         * process-nt.c (nt_create_process):
16855         * nt.c (normalize_filename):
16856         (dostounix_filename):
16857         (unixtodos_filename):
16858         * ntproc.c (win32_executable_type):
16859         * ntplay.c (play_sound_data_1):
16860         (play_sound_file):
16861         * editfns.c (get_home_directory):
16862         * event-msw.c (struct winsock_stream):
16863         (mswindows_dde_callback):
16864         * device-msw.c (msprinter_init_device):
16865         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16866
16867         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16868         mswindows_clear_toolbar were swapped!
16869
16870         * objects-msw.c:(colormap_t):
16871         (fontmap_t):
16872         * emacs.c (struct standard_args): Fixed const jumble.
16873
16874         * glyphs-widget.c (update_widget): Fixed comparison notation.
16875
16876         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16877
16878         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16879         __declspec(noreturn) syntax.
16880
16881 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16882
16883         * eldap.c (Fldap_open):
16884         (Fldap_search_basic):
16885         (Fldap_add):
16886         (Fldap_modify):
16887         Use new coding system conversion macros.
16888
16889 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16890
16891         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16892
16893 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16894
16895         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16896         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16897
16898         * eldap.c (Qadd, Qreplace): New constant symbols
16899         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16900         interruptions by XEmacs signals
16901         Remove unnecessary calls to slow_down_interrupts and
16902         speed_up_interrupts
16903         (Fldap_search_basic): Renamed from Fldap_search_internal
16904         Added new optional parameter VERBOSE that triggers the
16905         display of progress messages
16906         Remove unnecessary calls to slow_down_interrupts and
16907         speed_up_interrupts
16908         LDAP result code analysis rewritten
16909         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16910         (syms_of_eldap): Define the new symbols and functions
16911
16912
16913 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16914
16915         * realpath.c: Determine PATH_MAX maximally portably.
16916
16917         * insdel.c (bytecount_to_charcount): Optimize.
16918         The function used to be optimized for entirely ASCII sequences.
16919         Now it is optimized for successive characters from the same
16920         charset.  This also wins big for _mostly_ ASCII sequences.
16921
16922         * fileio.c (Ffile_truename): convert return from realpath() using
16923         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16924         - Rewrite GCPROing slightly.
16925
16926         * sysdep.c (sys_open): Do filename conversion, like all other
16927         sys_* functions.  Fixes bug:
16928         (let ((file-name-coding-system 'iso-8859-2))
16929            (write-region x y latin2-name))
16930         ==> writes filename using internal encoding.
16931
16932 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16933
16934         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16935         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16936         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16937         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16938         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16939         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16940         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16941         (CONST_IF_NOT_DEBUG): Delete.
16942         * alloc.c (this_one_is_unmarkable): Delete.
16943         (mark_object): Don't check for this_one_is_unmarkable. Use the
16944         c_readonly flag instead.
16945         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16946
16947 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16948
16949         * event-msw.c (mswindows_drain_windows_queue):
16950         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16951         away redundant repaint events.
16952
16953 2000-02-17  Andy Piper  <andy@xemacs.org>
16954
16955         * redisplay.h: declare mark_redisplay_structs.
16956
16957         * redisplay.c (redisplay_window):
16958         (redisplay_frame): don't check subwindows_state_changed.
16959         (mark_redisplay): mark gutters here.
16960
16961         * glyphs.c: (instantiate_image_instantiator): always layout if we
16962         haven't done so already.
16963         (allocate_image_instance): don't mark as dirty.
16964         (update_subwindow): bind inhibit_quit.
16965
16966         * gutter.c (mark_gutters): new function.
16967
16968         * glyphs-x.c (x_update_widget): Always resize to get round a
16969         widget bug.
16970
16971         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16972         breaking absolutely everything.
16973
16974         * gutter.h: declare mark_gutters.
16975
16976 2000-02-16  Martin Buchholz <martin@xemacs.org>
16977
16978         * XEmacs 21.2.29 is released.
16979
16980 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16981
16982         * fns.c (size_bit_vector): Fix computation of the size.
16983
16984 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16985
16986         * *.[ch]: Change CONST to const globally.
16987         find -name '*.[ch]' | \
16988         xargs global-replace \
16989         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16990         - Remove vestigial references to CONST_IS_LOSING
16991
16992 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16993
16994         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16995         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16996         events instead of dispatching them directly.
16997         (mswindows_handle_paint): New function to do repainting.
16998         (mswindows_wnd_proc):
16999         (emacs_mswindows_handle_magic_event): Call above function.
17000
17001 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
17002
17003         * objects-msw.c (mswindows_create_font_variant): Return the new
17004         font handle.
17005         (initialize_font_instance): Get font metrics from the underlined
17006         variant of the font to cope with the case where the underlined
17007         font has a bigger descent.
17008
17009 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17010
17011         * gui.c (gui_item_accelerator): Return the first underlined
17012         character in item name.
17013
17014 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17015
17016         * lisp.h: Added Qprinter.
17017
17018         * general.c (syms_of_general): Initialized it.
17019
17020         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
17021         (get_frame_dc):
17022         (get_frame_compdc): Made inline.
17023
17024         * console.h (struct console_methods): Added eject_page method.
17025
17026         * frame.h: Added FRAME_DISPLAY_P and friends.
17027         Aligned backslahes in many macros in more readable fashion.
17028         Added page_number to struct frame, and an accessor macro
17029         for it.
17030
17031         * defice.h: Added DEVICE_DISPLAY_P and friends.
17032
17033         * device.c (Fdevice_printer_p): Used these.
17034
17035         * frame.c (allocate_frame_core): Initialize page number.
17036         (Fprint_job_page_number):
17037         (Fprint_job_eject_page): Implemented.
17038
17039         * frame-msw.c (msprinter_eject_page): Added method.
17040         (msprinter_start_page): Added.
17041
17042         * window.c (Fwindow_truncated_p): Fixed docstring.
17043         (Fwindow_last_line_visible_height): Implemented.
17044
17045 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
17046
17047         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
17048
17049 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17050
17051         * syntax.c (scan_words): Always advance at least one character.
17052
17053 2000-02-13  Andy Piper  <andy@xemacs.org>
17054
17055         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
17056         to make sure the glyph is in the cachels.
17057
17058         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
17059         global image instance flag.
17060         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
17061         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
17062
17063         * glyphs.c (allocate_image_instance): set dirty bits correctly.
17064         (Fset_image_instance_property): mark layout as changed.
17065         (invalidate_glyph_geometry_maybe): mark layout as changed.
17066         (glyph_width): use new NEEDS_LAYOUT macro.
17067         (glyph_ascent): ditto.
17068         (glyph_descent): ditto.
17069         (glyph_height): ditto.
17070         (image_instance_layout): mark layout as clean after laying out.
17071         (update_subwindow): don't mark layout as clean here.
17072
17073         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
17074         should no longer be needed.
17075
17076         * glyphs-x.c (x_update_widget): sanitize asserts.
17077         (x_finalize_image_instance): sanitize assignment to widgets.
17078
17079         * glyphs-widget.c (widget_instantiate): don't need to clear the
17080         layout flag here.
17081
17082 2000-02-13  Martin Buchholz  <martin@xemacs.org>
17083
17084         * sysdep.c (getcwd): Use standard prototype.
17085         * sysdep.h (getcwd): Use standard prototype.
17086
17087         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
17088         (sequence, start, end).
17089         Remove redundant type checking.
17090         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
17091         view of `caller-protects') to avoid a crash where the real fix was
17092         found elsewhere.
17093
17094 2000-02-12  Martin Buchholz  <martin@xemacs.org>
17095
17096         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
17097
17098         * s/sol2.h: Remove feature macro initialization.
17099
17100         * alloc.c (alloc_lcrecord): Add more type checking assertions.
17101         (vector_hash): New.  Code from internal_hash.
17102         * lrecord.h:
17103         Fix up allocation subsystem comments.
17104
17105         * config.h.in: Add __EXTENSIONS__ for Solaris.
17106
17107         * systime.h (EMACS_GETTIMEOFDAY): New.
17108         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
17109         Remove Solaris-specific code.
17110         Use void* for the (ignored) second arg for gettimeofday().
17111
17112         * elhash.c (hash_table_hash): Implement it, finally.
17113         * elhash.c:  Use hashcode_t.
17114
17115         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
17116         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
17117
17118         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
17119         * fns.c (size_bit_vector):
17120         * alloc.c (size_vector):
17121         (make_vector_internal):
17122         (make_bit_vector_internal):
17123         (sweep_bit_vectors_1):
17124         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
17125
17126 2000-02-10  Martin Buchholz  <martin@xemacs.org>
17127
17128         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
17129         Include strings.h to avoid warnings for bzero and strcasecmp.
17130
17131 2000-02-10  Olivier Galibert  <galibert@pobox.com>
17132
17133         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
17134         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
17135
17136         * fns.c (size_bit_vector): New.  Declare bit vectors as a
17137         sequence.
17138
17139 2000-02-10  Olivier Galibert  <galibert@pobox.com>
17140
17141         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
17142         use a value field instead.
17143         (symbol_value_forward_forward): Use value field.
17144         (DEFVAR_SYMVAL_FWD): Use value field.
17145         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
17146         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
17147         (DEFVAR_CONST_INT): Ditto.
17148         (DEFVAR_BOOL): Ditto.
17149         (DEFVAR_CONST_BOOL): Ditto.
17150         (DEFVAR_INT_MAGIC): Ditto.
17151         (DEFVAR_BOOL_MAGIC): Ditto.
17152
17153         * symbols.c (guts_of_unbound_marker): Use value field.
17154         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
17155         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
17156
17157         * lisp.h: Declare dumpopaque and noninteractive1.
17158
17159         * alloc.c (dumpopaque): Added.
17160         (pdump_dump_opaquevec): Added.
17161         (pdump): Call pdump_dump_opaquevec to dump opaque data.
17162         (pdump_load): Reload opaque data.  Sync noninteractive1 with
17163         noninteractive.
17164
17165 2000-02-10  Andy Piper  <andy@xemacs.org>
17166
17167         * glyphs.c (image_instance_layout): if the size changes, mark it
17168         as such.
17169
17170         * redisplay-output.c (redisplay_output_layout): Update the
17171         subwindow here.
17172         (redisplay_output_subwindow): ditto.
17173
17174         * glyphs.c (update_subwindow): make sure we reset flags for
17175         layouts as well as everything else.
17176
17177         * glyphs-widget.c (layout_layout): don't need to set the instances
17178         dimensions here.
17179
17180 2000-02-09  Martin Buchholz  <martin@xemacs.org>
17181
17182         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
17183         not HAVE_DLOPEN, which is a lower-level thing.
17184
17185         * .cvsignore: Ignore gmon.out
17186
17187 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
17188
17189         * .cvsignore: Ignore portable dumper xemacs.dmp file
17190
17191 2000-02-09  Andy Piper  <andy@xemacs.org>
17192
17193         * redisplay-output.c (redisplay_output_layout): be more clever
17194         about when we output based on the changed flags.
17195
17196         * glyphs.h (struct image_instantiator_methods): add update_method.
17197         (struct Lisp_Image_Instance): add changed flags. Declare new
17198         macros for manipulating them.
17199
17200         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
17201         (image_instance_parent_glyph): find an image_instance's parent
17202         glyph or image_instance.
17203         (image_instance_layout): mark the size as changed.
17204         (set_image_instance_dirty_p): new function. mark an image
17205         instance, plus all of its parents, as dirty.
17206         (Fset_image_instance_property): use it.
17207         (Fglyph_animated_timeout_handler): use it.
17208         (update_subwindow): call update_widget and device methods for
17209         update_subwindow. Mark all changed flags as clean.
17210         (Fresize_subwindow): mark size as changed.
17211
17212         * glyphs-x.c (x_finalize_image_instance): try and detect gc
17213         failures.
17214         (x_update_subwindow): only resize subwindows here.
17215         (x_update_widget): new function. Update all changed properties of
17216         a widget.
17217         (x_resize_subwindow): deleted.
17218         (x_widget_set_property): deleted.
17219         (x_progress_gauge_set_property): deleted.
17220         (x_progress_gauge_update): new function. Implement recorded
17221         changes.
17222         (x_tab_control_update): ditto.
17223         (x_tab_control_set_property): deleted.
17224         (console_type_create_glyphs_x): declare new functions.
17225         (image_instantiator_format_create_glyphs_x): ditto.
17226
17227         * glyphs-widget.c (widget_set_property): mark text changed.
17228         (update_widget): new function. Update properties of a widget.
17229         (widget_instantiate): for layouts make sure we set their
17230         children's parent correctly.
17231         (tab_control_set_property): new function. Record changes that will
17232         take place under redisplay's control.
17233         (progress_gauge_set_property): ditto.
17234         (image_instantiator_progress_guage): declare new functions.
17235         (image_instantiator_tab_control): ditto.
17236
17237         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
17238         now.
17239         (mswindows_update_widget): new function. Update all properties on
17240         a widget that have changed.
17241         (mswindows_button_update): new function. Update a button's set
17242         state.
17243         (mswindows_tab_control_update): new function. Update the items in
17244         a tab.
17245         (mswindows_tab_control_set_property): deleted.
17246         (mswindows_progress_gauge_update): new function. Update the
17247         progress gauge's progress.
17248         (mswindows_widget_set_property): deleted. This is all done
17249         asynchronously now.
17250         (mswindows_progress_gauge_set_property): ditto.
17251         (console_type_create_glyphs_mswindows): declare new methods.
17252         (image_instantiator_format_create_glyphs_mswindows): ditto.
17253
17254         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
17255         (msprinter_set_frame_properties): ditto.
17256
17257         * console.h (struct console_methods): Add update_widget_method.
17258
17259 2000-02-09  Andy Piper  <andy@xemacs.org>
17260
17261         * gui-msw.c (Fmswindows_shell_execute): Make
17262         mswindows-shell-execute industrial strength.
17263
17264 2000-02-08  Martin Buchholz  <martin@xemacs.org>
17265
17266         * lrecord.h: Make macro argument `props' match member function `plist'.
17267         * fns.c (Fget):
17268         * fns.c (Fput):
17269         * fns.c (Fremprop):
17270         * fns.c (Fobject_plist):
17271         * alloc.c:
17272         * symbols.c:
17273         Object property list frobbing cleanup.
17274         - Allow any lisp object (compared with `eq'), not just symbols, as
17275           keys in object plists.
17276         - Move symbol plist frobbing into symbols.c, where it belongs.
17277         - Move string plist frobbing into alloc.c, where it belongs.
17278         - Everything's an lrecord now, so no need to test for symbolp, etc.
17279         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
17280
17281         * extents.c: Reorder code to remove declarations.
17282
17283         * frame.h (store_in_alist): Remove useless declaration.
17284
17285 2000-02-07  Martin Buchholz  <martin@xemacs.org>
17286
17287         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
17288         * config.h.in: Add HAVE_XCONVERTCASE.
17289
17290 2000-02-07  Andy Piper  <andy@xemacs.org>
17291
17292         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
17293         it breaks many things.
17294
17295 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
17296
17297         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
17298         actually can start a common comment type.
17299         * src/syntax.h (SYNTAX_END_P): ditto for end.
17300
17301 2000-02-07  Martin Buchholz <martin@xemacs.org>
17302
17303         * XEmacs 21.2.28 is released.
17304
17305 2000-02-06  Martin Buchholz  <martin@xemacs.org>
17306
17307         * event-Xt.c (x_keysym_to_character): New.
17308         (maybe_define_x_key_as_self_inserting_character): New.
17309         (x_has_keysym): New.
17310         Auto-define all keys on the keyboard as self-insert-key.
17311
17312 2000-02-02  Martin Buchholz  <martin@xemacs.org>
17313
17314         * menubar.c (vars_of_menubar): A small code simplification.
17315
17316         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
17317
17318         * ExternalShell.c:
17319         * ExternalClient.c:
17320         * EmacsShell-sub.c:
17321         * EmacsManager.c:
17322         * EmacsFrame.c:
17323         Use consistent style for specifying X resources.
17324
17325         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
17326         This makes (dontusethis-set-symbol-value-handler) actually usable.
17327
17328         * lrecord.h (lrecord_decription_type):
17329         * alloc.c (pdump_register_sub):
17330         (pdump_dump_data):
17331         (pdump_reloc_one):
17332         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
17333         Comply with XEmacs coding style.
17334         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
17335         args, and XD_LISP_OBJECT_ARRAY with 3 args.
17336
17337         * keymap.c (Faccessible_keymaps):
17338         Make (accessible-keymaps map "\C-h") do the Right Thing.
17339         Make (accessible-keymaps map []) do the Right Thing.
17340         Make (accessible-keymaps map "") do the Right Thing.
17341         (check_keymap_definition_loop): New function.
17342         (keymap_store_internal): Keep luser from shooting self in foot,
17343           via (define-key ctl-x-4-map "p" global-map).
17344         Remove fullness slot from struct Lisp_Keymap, since hash tables
17345         are now reliable.
17346         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17347
17348 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17349
17350         * redisplay.c (init_redisplay): Fix small memory leak.
17351         * elhash.h:
17352         * elhash.c (pdump_reorganize_hash_table):
17353         Rename from reorganize_hash_table. Change prototype.
17354         Reuse the original memory for hentries.  Save 100k.
17355         * alloc.c (PDUMP_READ): new macro.
17356         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17357         * alloc.c: No need to #ifndef before #undef.
17358
17359         * print.c: Allow debug_print() to print readably by modifying
17360         debug_print_readably.  Use consistent variable names.
17361
17362         * .dbxrc: Try to get things to work even if stopped in a function
17363         without source available by explicitly specifying source files.
17364 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17365
17366         * unexnt.c (_start): Removed bogus code which caused loading heap
17367         from differrent executable file.
17368         Removed bogus assignment to _fmode, which caused inconsistencies.
17369
17370 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17371
17372         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17373         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17374         Do not preliminary `#define signal sigset'.
17375
17376         * systime.h: Do not prototype environ on windows nt and cygwin,
17377         this conflicts with system header.
17378
17379         * syssignal.h: Use correct define for WINDOWSNT
17380
17381         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17382         with system header.
17383
17384         * sysdep.c (near start of file): Fixed commentary and rearranged
17385         ifdefs in readable order.
17386         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17387         (start_of_text):
17388         (end_of_text):
17389         (end_of_data): Do not compile in if using PDUMP.
17390
17391         * symsinit.h: Prototyped vars_of_nt().
17392
17393         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17394         (find_child_console): Use it.
17395         (sys_kill): Use it.
17396
17397         * ntheap.h: Do not extern os_subtype.
17398
17399         * ntheap.c (cache_system_info): Do not cache unneeded:
17400         nt_major_version, nt_minor_version and os_subtype.
17401         (recreate_heap): Do not compile in when PDUMPing.
17402
17403         * nt.c (geteuid and friends): Use the new varibale
17404         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17405         (init_user_info): Removed the above mentioned hackery.
17406         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17407         stat has been fixed in the C runtime.
17408         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17409
17410         * file-coding.c (struct file_coding_dump): Do not define
17411         ucs_to_mule_table in the struct if not MULE.
17412         (struct struct lrecord_description fcd_description_1): Do not dump
17413         the above.
17414
17415         * emacs.c (main_1): Call vars_of_nt().
17416         (right before Fdump_emacs_data): Don't need lastfile if using both
17417         portabe dumper and system malloc.
17418
17419         * alloc.c (Fmemory_limit): Conditionalized out.
17420         (pdump): Use OPEN_BINARY for the portable dump file.
17421         (pdump_load): Ditto.
17422
17423 2000-02-02  Mike Alexander  <mta@arbortext.com>
17424
17425         * nt.c (convert_time): Set tm_isdst before calling mktime and
17426         avoid calling it at all if the compiler supports 64 bit integers.
17427         Also initialize utc_base_ft before using it.
17428
17429 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17430
17431         * frame.c (change_frame_size_1): Take f->internal_border_width
17432         into consideration when calculating the width of the frame.
17433
17434 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17435
17436         * window.c (frame_min_height):
17437         (frame_size_valid_p):
17438         (frame_pixsize_valid_p): Added.
17439         (check_frame_size): Generalized.
17440
17441         * window.h: Prototyped the above.
17442
17443         * lisp.h:
17444         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17445         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17446         Deleted Vwin32_* and Vbinary_process_* unused variables.
17447
17448         * device-msw.c (msprinter_init_device): Do not get printer font
17449         list; Added DEVMODE functions.
17450
17451         * frame-msw.c: Added lots of printer code.
17452
17453         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17454         general.c.
17455
17456         * console-msw.h: Added more msprinter device private slots.
17457
17458 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17459
17460         * event-msw.c (key_needs_default_processing_p): Added.
17461         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17462
17463 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17464
17465         * glyphs.c (image_instance_layout): Mark image instance as clean
17466         after layout.
17467         (glyph_dirty_p): Removed redundant function.
17468         (invalidate_glyph_geometry_maybe): Added.
17469         (update_glyph_cachel_data): Call it.
17470
17471         * glyphs.h: Prototyped it.
17472
17473         * redisplay.c (add_glyph_rune): Call it.
17474         (redisplay_window): Reset glyphs cachels when frame faces have
17475         changed, thus forcing recomputation of built-in border glyphs.
17476
17477 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17478
17479         * Makefile.in.in: Make portable dumper and purify play well together.
17480         Add imperfect, but better than nothing, support for pdump.
17481         Remove xemacs.dmp when temacs is re-generated.
17482         Don't ignore errors when dumping xemacs.
17483
17484         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17485
17486 2000-01-28  Andy Piper  <andy@xemacs.org>
17487
17488         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17489         (setup_normal_frame): ditto.
17490         (setup_frame_without_minibuffer): ditto.
17491         (setup_minibuffer_frame): ditto.
17492         (delete_frame_internal): ditto.
17493         (Fmake_frame_invisible): ditto.
17494         (Ficonify_frame): ditto.
17495
17496         * window.h: change Fset_window_buffer signature.
17497
17498         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17499         (Fset_window_buffer): allow recording of buffer if the window is
17500         the selected window.
17501         (window_loop): Use new Fset_window signature.
17502
17503 2000-01-23  Daniel Pittman  <daniel@danann.net>
17504
17505         * config.h.in: Added template for `HAVE_ATHENA_3D'
17506
17507 2000-01-29  Andy Piper  <andy@xemacs.org>
17508
17509         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17510
17511         * gutter.c (output_gutter): Don't output if the window isn't live.
17512
17513 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17514
17515         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17516         of 01/12/00: Moved SetFocus back here where it belongs.
17517
17518 2000-01-23  Andy Piper  <andy@xemacs.org>
17519
17520         * s/cygwin32.h: declare printer things.
17521
17522 2000-01-26  Andy Piper  <andy@xemacs.org>
17523
17524         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17525         Alexander.
17526
17527 2000-01-24  Andy Piper  <andy@xemacs.org>
17528
17529         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17530         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17531
17532         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17533
17534         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17535
17536         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17537
17538         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17539         (mswindows_output_display_block): Avoid local shadows.
17540
17541         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17542         (mswindows_enqueue_mouse_button_event): ditto.
17543         (mswindows_handle_gui_wm_command): remove declaration.
17544
17545         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17546         warnings.
17547
17548         * console-msw.h: Avoid shadows.
17549         (mswindows_get_toolbar_button_text):
17550         (emacs_mswindows_create_stream_pair):
17551         (emacs_mswindows_delete_stream_pair):
17552         (mswindows_handle_toolbar_wm_command): declare.
17553
17554         * device-msw.c (build_syscolor_string): Avoid shadows.
17555
17556 2000-01-23  Andy Piper  <andy@xemacs.org>
17557
17558         * glyphs-widget.c (widget_instantiate): reverse the items for
17559         layouts so that children are in the expected order.
17560
17561 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17562
17563         * ralloc.c: safe_bcopy ==> memmove
17564         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17565         * s/msdos.h: Remove BCOPY macros.
17566         * insdel.c (gap_right): Remove BCOPY conditional code.
17567         * insdel.c (gap_left): Remove BCOPY conditional code.
17568         XEmacs demands a working ANSI C compiler - hence memmove.
17569
17570         * regex.c (regex_compile): Remove accidental use of trigraphs.
17571
17572 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17573
17574         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17575         event timestamp.
17576
17577 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17578
17579         * event-msw.c (mswindows_drain_windows_queue): Added the
17580         parameter.
17581         (mswindows_need_event): Commented the call to
17582         mswindows_drain_windows_queue().
17583         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17584         only.
17585
17586         * console-msw.h: Moved a few function prototypes here from
17587         event-msw.c.
17588
17589         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17590         parameter from unsigned short to unsigned long.
17591         (Fmswindows_shell_execute): Added return value.
17592
17593 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17594
17595         * sysdep.c (init_system_name):
17596           process-unix.c (unix_canonicalized_host_name):
17597         Don't call freeaddrinfo() if getaddrinfo() fails.
17598
17599         * process-unix.c (unix_open_unix_network_stream):
17600         Moved the code to get a port # into address loop.
17601
17602 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17603
17604         * buffer.c (reinit_vars_of_buffer):
17605         The right place to initialize conversion_in_dynarr and
17606         conversion_out_dynarr.
17607
17608         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17609
17610         * process-unix.c (unix_canonicalize_host_name): Muleize.
17611         (unix_open_network_stream): Muleize.
17612
17613         * buffer.h: Fix up prototypes for ralloc.c functions.
17614
17615 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17616         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17617         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17618                 instead of gethostbyname()
17619         * process-unix.c: In unix_canonicalize_host_name() and
17620                 unix_open_network_stream(), add code to use getaddrinfo()
17621                 instead of gethostbyname().
17622
17623 2000-01-27  Daniel Pittman <daniel@danann.net>
17624
17625         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17626         libs when built with flat Athena.
17627
17628 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17629
17630         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17631         Use coding standards for function prototypes.
17632
17633 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17634
17635         * dialog-msw.c (push_lisp_string_as_unicode):
17636         * doc.c (unparesseuxify_doc_string):
17637         * dired.c (Fuser_name_completion_1):
17638         * dired.c (Fuser_name_all_completions):
17639         * dired.c (free_user_cache):
17640         * dired.c (user_name_completion):
17641         * console-x.c (get_display_arg_connection):
17642         * minibuf.c (clear_echo_area_internal):
17643         * minibuf.c (echo_area_append):
17644         * eldap.c (Fldap_open):
17645         * eldap.c (Fldap_search_internal):
17646         * frame-x.c (x_set_frame_text_value):
17647         * frame-x.c (x_set_frame_properties):
17648         * frame-x.c (x_create_widgets):
17649         * redisplay-tty.c (term_get_fkeys_1):
17650         * objects-x.c (x_parse_nearest_color):
17651         * objects-x.c (x_valid_color_name_p):
17652         * objects-x.c (x_initialize_font_instance):
17653         * objects-x.c (x_list_fonts):
17654         * objects-x.c (x_find_charset_font):
17655         * tooltalk.c (Fadd_tooltalk_message_arg):
17656         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17657         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17658         * process-unix.c (unix_create_process):
17659         * ntproc.c (sys_spawnve):
17660         * sound.c (Fplay_sound_file):
17661         * sound.c (Fplay_sound):
17662         * buffer.c (init_initial_directory):
17663         * buffer.c (init_buffer):
17664         * editfns.c (init_editfns):
17665         * editfns.c (Ftemp_directory):
17666         * editfns.c (Fuser_full_name):
17667         * editfns.c (uncache_home_directory):
17668         * editfns.c (get_home_directory):
17669         * editfns.c (Fuser_home_directory):
17670         * editfns.c (Fformat_time_string):
17671         * editfns.c (Fcurrent_time_string):
17672         * gui-x.c (button_item_to_widget_value):
17673         * database.c (Fopen_database):
17674         * event-Xt.c (x_to_emacs_keysym):
17675         * event-Xt.c (x_event_to_emacs_event):
17676         * event-Xt.c (describe_event_window):
17677         * event-msw.c (mswindows_wnd_proc):
17678         * glyphs-eimage.c (jpeg_instantiate):
17679         * glyphs-eimage.c (gif_instantiate):
17680         * glyphs-eimage.c (png_instantiate):
17681         * glyphs-eimage.c (tiff_instantiate):
17682         * glyphs-x.c (xbm_instantiate_1):
17683         * glyphs-x.c (x_xbm_instantiate):
17684         * glyphs-x.c (x_xface_instantiate):
17685         * glyphs-x.c (autodetect_instantiate):
17686         * glyphs-x.c (cursor_font_instantiate):
17687         * glyphs-x.c (x_widget_instantiate):
17688         * glyphs-x.c (x_widget_set_property):
17689         * glyphs-x.c (x_widget_property):
17690         * glyphs-x.c (BUILD_GLYPH_INST):
17691         * print.c (write_string_to_stdio_stream):
17692         * print.c (output_string):
17693         * print.c (Falternate_debugging_output):
17694         * print.c (Fexternal_debugging_output):
17695         * glyphs-msw.c (extract_xpm_color_names):
17696         * glyphs-msw.c (mswindows_xpm_instantiate):
17697         * glyphs-msw.c (bmp_instantiate):
17698         * glyphs-msw.c (resource_name_to_resource):
17699         * glyphs-msw.c (mswindows_resource_instantiate):
17700         * glyphs-msw.c (xbm_instantiate_1):
17701         * glyphs-msw.c (mswindows_xbm_instantiate):
17702         * glyphs-msw.c (mswindows_xface_instantiate):
17703         * glyphs-msw.c (mswindows_widget_instantiate):
17704         * glyphs-msw.c (add_tree_item):
17705         * glyphs-msw.c (add_tab_item):
17706         * glyphs-msw.c (mswindows_combo_box_instantiate):
17707         * glyphs-msw.c (mswindows_widget_property):
17708         * glyphs-msw.c (mswindows_combo_box_property):
17709         * glyphs-msw.c (mswindows_widget_set_property):
17710         * console.c (stuff_buffered_input):
17711         * objects-msw.c (mswindows_initialize_color_instance):
17712         * objects-msw.c (mswindows_valid_color_name_p):
17713         * objects-msw.c (mswindows_list_fonts):
17714         * objects-msw.c (mswindows_font_instance_truename):
17715         * bytecode.c (optimize_compiled_function):
17716         * select-x.c (symbol_to_x_atom):
17717         * select-x.c (x_atom_to_symbol):
17718         * select-x.c (hack_motif_clipboard_selection):
17719         * select-x.c (selection_data_to_lisp_data):
17720         * select-x.c (lisp_data_to_selection_data):
17721         * select-x.c (Fx_get_cutbuffer_internal):
17722         * select-x.c (Fx_store_cutbuffer_internal):
17723         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17724         * buffer.h (TO_INTERNAL_FORMAT): New function.
17725         * emacs.c (make_arg_list_1):
17726         * emacs.c (make_argc_argv):
17727         * emacs.c (main_1):
17728         * emacs.c (Fdump_emacs):
17729         * emacs.c (split_string_by_emchar_1):
17730         * file-coding.h:
17731         * lisp.h:
17732         * lstream.h:
17733         * symsinit.h:
17734         * device-x.c (x_init_device):
17735         * device-x.c (Fx_valid_keysym_name_p):
17736         * device-x.c (Fx_get_font_path):
17737         * device-x.c (Fx_set_font_path):
17738         * glyphs.c (bitmap_to_lisp_data):
17739         * glyphs.c (pixmap_to_lisp_data):
17740         * alloc.c (make_ext_string): Use coding system arguments.  Update
17741         all callers.
17742         * alloc.c (build_string):
17743         * callproc.c (child_setup):
17744         * callproc.c (init_callproc):
17745         * fileio.c (lisp_strerror):
17746         * fileio.c (directory_file_name):
17747         * fileio.c (Fexpand_file_name):
17748         * fileio.c (Ffile_truename):
17749         * fileio.c (Fsysnetunam):
17750         * fileio.c (Fdo_auto_save):
17751         * sysdep.c (sys_readdir):
17752         * tests.c: New file.  Allow adding C tests.
17753         Replace GET_* macros with a more comprehensible and flexible
17754         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17755         Modify all calls.
17756         Any coding system can be used to do format conversion.
17757         Eliminate enum external_data_format.
17758         Eliminate convert_to_external_format.
17759         Eliminate convert_to_internal_format.
17760         Make sure file-name, keyboard, terminal, and ctext are always
17761         defined as coding systems or aliases.  Make
17762         file-name-coding-system, terminal-coding-system, and
17763         keyboard-coding-system magical variables that are equivalent to
17764         defining the corresponding coding system aliases.
17765
17766         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17767         * file-coding.c (Fcoding_system_alias_p): New function.
17768         * file-coding.c (Fcoding_system_aliasee): New function.
17769         * file-coding.c (append_suffix_to_symbol): New function.
17770         * file-coding.c (dangling_coding_system_alias_p): New function.
17771         * file-coding.c (Ffind_coding_system):
17772         * file-coding.c (Fcopy_coding_system):
17773         * file-coding.c (encode_coding_no_conversion):
17774         * file-coding.c (syms_of_file_coding):
17775         * file-coding.c (vars_of_file_coding):
17776         Rewrite coding system alias code.
17777         Allow nested aliases, like symbolic links.
17778         Allow redefinition of coding system aliases.
17779         Prevent existence of dangling coding system aliases.
17780
17781         * dired.c (Fuser_name_completion_1):
17782         * dired.c (Fuser_name_all_completions):
17783         A crash would happen if user did QUIT in the middle of building
17784         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17785
17786         * lisp.h:
17787         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17788
17789         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17790         an unsigned char *.  Update all callers.
17791
17792 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17793
17794         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17795
17796 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17797
17798         * elhash.c (hentry_description): Use more portable definition.
17799         (resize_hash_table): Initialize new hentries using
17800         xnew_array_and_zero, thereby simplifying the code.
17801
17802         * mule-charset.c (make_charset): Make sure entire object is
17803         initialized, to avoid Purify warnings.
17804
17805         * alloc.c (resize_string): Fix unlikely crash with big strings.
17806
17807 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17808
17809         * realpath.c (xrealpath):
17810         Don't call getwd().
17811
17812 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17813
17814         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17815
17816 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17817
17818         * unexelfsgi.c (unexec): Change the way we decide which segment
17819         should be extended.
17820
17821         Assumption that .bss section should be outside the PT_LOADable
17822         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17823         it's present) is inside the 'data' segment. This would fail the
17824         test which was used to find a segment to grow and cover new
17825         heap. Instead of this assumption, I created another one - on IRIX
17826         the segment to grow should start below .bss and it's address
17827         should extent above the end of .bss. Once this segment is
17828         identified, it's grown to accommodate the new heap and new
17829         zero-length .bss section is added at the end of .data2.
17830
17831 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17832
17833         * eval.c (Feval): Wrong number of arguments should use original
17834         function, not the indirect_function version of it.
17835
17836 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17837
17838         * glyphs-x.c (x_button_instantiate): Don't add image if
17839         it is not a pixmap.
17840         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17841         is relative.
17842
17843 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17844
17845         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17846         declaration.
17847         (DEFVAR_INT_MAGIC): Ditto.
17848         (DEFVAR_BOOL_MAGIC): Ditto.
17849         * glyphs.h: Reindent backslash.
17850
17851 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17852
17853         * glyphs-widget.c (layout_query_geometry):
17854         (layout_layout): Use correct types for gheight, gwidth.
17855
17856 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17857
17858         * EmacsManager.c (QueryGeometry): Purified.
17859
17860 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17861
17862         * alloc.c (make_float): Make sure entire object is initialized, to
17863         avoid Purify warnings.
17864         (pdump_register_sub): Remove useless assignment.
17865         (pdump): Use xmalloc, not malloc.
17866         (pdump_load): Use xmalloc, not malloc.
17867
17868 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17869
17870         * callproc.c:
17871         * dired-msw.c:
17872         * fileio.c:
17873         * process-nt.c:
17874         * redisplay-msw.c:
17875         * sysdep.c: Removed redundant #include <windows.h>
17876
17877 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17878
17879         * frame.c (delete_frame_internal): Do not delete device when its
17880         implementation so declares.
17881         (delete_frame_internal): Set device selected frame to nil when
17882         last frame goes away.
17883
17884         * device-msw.c (msprinter_device_system_metrics): Implemented.
17885         (mswindows_device_system_metrics): Added 'device-dpi property.
17886
17887         * device.c: (Fdevice_printer_p): Added.
17888         Added 'offset-workspace device metric.
17889
17890         * console.h (device_metrics): Declared DM_offset_workspace.
17891
17892 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17893
17894         * fileio.c (Ffile_truename): Remove pointless and confusing
17895         initialization of elen.
17896
17897         * glyphs-widget.c: Compiler warning fixes.
17898
17899 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17900
17901         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17902         instead of a Lisp_Object as argument to make it consistent with
17903         the other LIVE_P macros.
17904         (CHECK_LIVE_PROCESS): New macro.
17905
17906         * process.c: Declare Qprocess_live_p.
17907         (Fprocess_live_p): New function.
17908         (create_process): Use PROCESS_LIVE_P.
17909         (read_process_output): Ditto.
17910         (set_process_filter): Ditto.
17911         (Fdelete_process): Ditto.
17912         (kill_buffer_processes): Ditto
17913         (process_send_signal): Use CHECK_LIVE_PROCESS.
17914         (Fprocess_input_coding_system): Check whether process is still
17915         alive (fix PR#1061).
17916         (Fprocess_output_coding_system): Ditto.
17917         (Fprocess_coding_system): Ditto.
17918         (Fset_process_input_coding_system): Ditto.
17919         (Fset_process_output_coding_system): Ditto.
17920
17921 2000-01-23  Andy Piper  <andy@xemacs.org>
17922
17923         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17924         layout and widget.
17925
17926         * glyphs.c (mark_image_instance): take into account changed
17927         image_instance format.
17928         (image_instance_equal): ditto.
17929         (image_instance_hash): ditto.
17930
17931         * glyphs-widget.c (widget_instantiate): Incorporate layout
17932         instantiation here. Delay layout of the layout until later.
17933         (layout_instantiate): deleted.
17934         (layout_query_geometry): new function. get the geometry of a
17935         layout.
17936         (layout_layout): layout a layout dynamically.
17937         (image_instantiator_widget): New function - splitting up
17938         image_instantiator_format_create_glyphs_widget for netwinder
17939         compilation.
17940         (image_instantiator_buttons):
17941         (image_instantiator_edit_fields):
17942         (image_instantiator_combo_box):
17943         (image_instantiator_scrollbar):
17944         (image_instantiator_progress_guage):
17945         (image_instantiator_tree_view):
17946         (image_instantiator_tab_control):
17947         (image_instantiator_labels):
17948         (image_instantiator_layout): ditto.
17949         (image_instantiator_format_create_glyphs_widget): Call preceding
17950         functions.
17951
17952 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17953
17954         * process.c (Fset_process_coding_system):
17955         * device-x.c (Fx_keysym_hash_table):
17956         Docstring fixes.
17957
17958         * lstream.c (Lstream_write): Return documented value, not 0.
17959
17960         * fileio.c (directory_file_name):
17961         (Fsubstitute_in_file_name):
17962         (Fsubstitute_insert_file_contents_internal):
17963         (Fwrite_region_internal):
17964         * emacs.c:
17965         * sysdep.c:
17966         * getloadavg.c:
17967         * systty.h:
17968         Remove vestigial APOLLO-conditional code.
17969
17970 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17971
17972         * getpagesize.h: Add guard macros.
17973         * libsst.h: Add guard macros.
17974         * libst.h: Add guard macros.
17975         * line-number.h: Add guard macros.
17976         * ndir.h: Add guard macros.
17977         * sysfloat.h: Add guard macros.
17978         * sysfile.h: Add guard macros.
17979         * sysproc.h: Add guard macros.
17980         * syswait.h: Add guard macros.
17981         * xintrinsic.h: Add guard macros.
17982         * xintrinsicp.h: Add guard macros.
17983         * xmmanager.h: Add guard macros.
17984         * xmmanagerp.h: Add guard macros.
17985         * xmprimitive.h: Add guard macros.
17986         * xmu.h: Add guard macros.
17987         * gpmevent.h: Add copyright statement. Add guard macros.
17988         * miscplay.h: Add guard macros.
17989         * *.h: Use consistent C-standards-approved guard macro names.
17990
17991         * opaque.c (make_opaque): Switch parameter order.
17992         * opaque.h (make_opaque): Switch parameter order.
17993         Update all callers.
17994         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17995
17996         * config.h.in (type_checking_assert): Added.
17997         (bufpos_checking_assert): Added.
17998
17999 2000-01-21  Martin Buchholz  <martin@xemacs.org>
18000
18001         * alloc.c: Harmless pdump changes.
18002         - Use countof().
18003         - spell alignment correctly.
18004         * sysdep.c: Use countof()
18005
18006 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18007
18008         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
18009         initially_selected_for_input() console method, default to 0.
18010         (semi_canonicalize_console_connection): Try to delegate to
18011         canonicalize_console_connection if no such console method.
18012         (canonicalize_console_connection): Vice versa.
18013         (print_console): Do not print nil connection.
18014
18015         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
18016         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
18017         (XDEVIMPF_FRAMELESS_OK): Added.
18018         (CONSOLE_INHERITS_METHOD): Added.
18019
18020         * console-msw.c (mswindows_canonicalize_console_connection):
18021         Added.
18022         (mswindows_canonicalize_device_connection): Added.
18023
18024         * console-msw.h (struct msprinter_device): Added this struct and
18025         accessor macros.
18026         (mswindows_device): Made fontlist a lisp object.
18027
18028         * device.c (semi_canonicalize_device_connection):  Try to delegate
18029         to canonicalize_device_connection if no such console method.
18030         (canonicalize_device_connection): Vice versa.
18031         (print_device): Do not print nil connection.
18032
18033         * device-msw.c (mswindows_init_device): Call InitCommonControls
18034         when have widgets.
18035         (mswindows_delete_device): Removed fontlist deallocation.
18036         (mswindows_mark_device): Added.
18037
18038         * events.c (event_equal): Added abort() at unreached code.
18039         (event_hash): Ditto.
18040
18041         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
18042         fallback tags of Windows devices.
18043
18044         * general.c (syms_of_general): Initialized Qmsprinter.
18045
18046         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
18047         of fallback tags of Windows devices.
18048
18049         * lisp.h: Declared Qmsprinter.
18050
18051         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
18052         of strings.
18053         (mswindows_list_fonts): Ditto.
18054         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
18055         that it can be used by both mswindows and msprinter devices.
18056         (initialize_font_instance): Added.
18057         (mswindows_initialize_font_instance): Use it.
18058         (msprinter_initialize_font_instance): Added.
18059
18060         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
18061         and implementation flags check.
18062         (redisplay_without_hooks): Changed the call to the above.
18063         (Fredraw_device): Ditto.
18064         (Fredisplay_device): Ditto.
18065
18066         * redisplay-msw.c (get_frame_dc): Implemented.
18067         (get_frame_compdc): Implemented.
18068         (many functions): Use the two functions above to get device
18069         contexts, ether for a window or a printer.
18070
18071 2000-01-21  Olivier Galibert  <galibert@pobox.com>
18072
18073         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
18074         initialization here.
18075         (init_symbols_once_early): Call it.
18076         * emacs.c (main_1): Call it.
18077         * symsinit.h: Declare it.
18078
18079 2000-01-19  Olivier Galibert  <galibert@pobox.com>
18080
18081         * alloc.c: Use a lrecord_header * in the backtrace instead of a
18082         Lisp_Object.
18083         (pdump_backtrace): Ditto.
18084         (pdump_register_object): Ditto.  Cleanup use of the pointers.
18085         (pdump_get_entry): Abort if trying to register a null pointer.
18086         (pdump_dump_data): Cleanup types when relocating.
18087         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
18088         (pdump_dump_rtables): Remove bad casts.
18089         (pdump_load): Cleanup relocation w.r.t union type.  Use a
18090         Lisp_Object instead of a EMACS_INT for the hashtable
18091         reorganization.
18092
18093 2000-01-20  Martin Buchholz  <martin@xemacs.org>
18094
18095         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
18096
18097         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
18098
18099         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
18100
18101         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
18102
18103 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18104
18105         * faces.h (FACE_STRIKETHRU_P): Added.
18106
18107         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
18108         of font variants.
18109
18110         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
18111         (mswindows_set_dc_font): New function, aware of font variants,
18112         separated from mswindows_update_dc.
18113
18114         * objects-msw.h (struct mswindows_font_instance_data): Added
18115         definition.
18116
18117         * objects-msw.c (mswindows_finalize_font_instance): Delete all
18118         cached fonts and the data structure.
18119         (mswindows_initialize_font_instance): Added creation of font data
18120         structure.
18121         (mswindows_print_font_instance): Print at least something.
18122         (mswindows_create_font_variant): Implemented.
18123         (mswindows_get_hfont): Implemented.
18124
18125 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
18126
18127         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
18128         prototyping problem with msvc.
18129
18130         * emacs.c (main_1): added syms_of_gui_mswindows() call
18131
18132         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
18133         syms_of_gui_mswindows() function
18134
18135         * symsinit.h: added the prototype for syms_of_gui_mswindows()
18136
18137 2000-01-18  Martin Buchholz <martin@xemacs.org>
18138
18139         * XEmacs 21.2.27 is released.
18140
18141 2000-01-18  Martin Buchholz  <martin@xemacs.org>
18142
18143         * glyphs-eimage.c (struct tiff_error_struct):
18144         (tiff_error_func):
18145         (tiff_warning_func):
18146         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
18147
18148         * unexmips.c:
18149         * unexhp9k3.c:
18150         * unexfreebsd.c:
18151         * unexec.c: Remove vestigial Lucid C code.
18152         * unexalpha.c:
18153         * unexaix.c:
18154         * termcap.c:
18155         * libsst.c: Ansify.
18156         Remove declarations of errno and strerror().
18157
18158         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
18159
18160         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
18161
18162 2000-01-16  Martin Buchholz  <martin@xemacs.org>
18163
18164         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
18165         Optimize.
18166
18167 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18168
18169         * md5.c:
18170         * file-coding.c:
18171         * file-coding.h:
18172         Change enum eol_type to eol_type_t.
18173
18174 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18175
18176         * gui.c (get_gui_callback): Check cons before accessing car.
18177
18178 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18179
18180         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
18181         (XSETSPECIFIER_TYPE): Ditto.
18182
18183 2000-01-17  Didier Verna  <didier@xemacs.org>
18184
18185         * redisplay.c (generate_fstring_runes): compute string size in
18186         characters, not bytes.
18187
18188 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18189
18190         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
18191
18192 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
18193
18194         * print.c (print_error_message): Call print_prepare().
18195
18196 2000-01-14  Martin Buchholz  <martin@xemacs.org>
18197
18198         * .dbxrc: Renamed from dbxrc.
18199
18200         * events.c (event_to_character):
18201         Use `assert (foo)' instead of `if (!foo) abort()'
18202
18203         * .gdbinit (xtype): Add documentation.
18204         * .gdbinit (check-temacs): New function.
18205         * .gdbinit (check-xemacs): New function.
18206         * dbxrc (check-xemacs): New function.
18207         * dbxrc (check-xemacs): New function.
18208
18209 2000-01-14  Andy Piper  <andy@xemacs.org>
18210
18211         * glyphs-widget.c (widget_query_geometry): Make sure that we
18212         calculate default dimensions correctly.
18213
18214 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18215
18216         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
18217
18218         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
18219         pdump_wire'd variable.
18220
18221         * emacs.c: (main_1): Conditionalized calls to
18222         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
18223
18224 2000-01-13  Martin Buchholz  <martin@xemacs.org>
18225
18226         * window.c (Fset_window_configuration):
18227         * sysdep.c (_start):
18228         * input-method-motif.c (res):
18229         * event-Xt.c (Xt_process_to_emacs_event):
18230         Simple compiler warning fixes.
18231
18232         * bytecode.c (funcall_compiled_function): Use the original
18233         function symbol on the backtrace list in preference to the
18234         compiled_function object in error messages.
18235
18236 2000-01-13  Andy Piper  <andy@xemacs.org>
18237
18238         * glyphs-x.c (update_widget_face): Make sure we update the widget
18239         background as well as foreground.
18240
18241 2000-01-13  Andy Piper  <andy@xemacs.org>
18242
18243         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
18244         fields to subwindow.
18245         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
18246         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
18247         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18248         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18249
18250         * glyphs-widget.c (check_valid_tab_orientation): new function.
18251         (initialize_widget_image_instance): zero orientation and
18252         justification.
18253         (widget_instantiate): pick up orientation.
18254         (tab_control_query_geometry): return appropriate values for
18255         vertical tabs.
18256
18257         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
18258         appropriate creation flags for left, right and bottom tabs.
18259
18260         * s/cygwin32.h: add tab definitions.
18261
18262 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18263
18264         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
18265         frame upon hiding a subwindow.
18266         (mswindows_button_instantiate): Changed the push button style to
18267         BS_PUSHBUTTON.
18268         (mswindows_button_instantiate): Removed button BS_NOTIFY
18269         style.
18270         (mswindows_button_instantiate): Removed redundant check for
18271         a disabled gui item.
18272         (mswindows_button_instantiate): Made use of WS_TABSTOP
18273         consistent: "operable" controls (edit, button, tree, scroll) have
18274         this style, "display-only" ones (static, progress gauge) do
18275         not. This style is currently ignored by XEmacs though. Also,
18276         removed the WS_EX_CONTROLPARENT style - it is not for children,
18277         it is for their parents!
18278         (mswindows_edit_field_instantiate): Ditto.
18279         (mswindows_progress_gauge_instantiate): Ditto.
18280         (mswindows_tree_view_instantiate): Ditto.
18281         (mswindows_tab_control_instantiate): Ditto.
18282         (mswindows_scrollbar_instantiate): Ditto.
18283         (mswindows_combo_box_instantiate): Ditto.
18284         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
18285         style to the "clip" window.
18286         (mswindows_button_instantiate): Removed compilation warning by
18287         equally typing terms of the ?: operator.
18288
18289 2000-01-12  Didier Verna  <didier@xemacs.org>
18290
18291         * redisplay.c (generate_fstring_runes): new parameter holding the
18292         last modeline-format extent.
18293         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
18294         extent, fill the glyph block with it.
18295         (generate_fstring_runes): handle these parameters.
18296         (generate_formatted_string_db): ditto.
18297
18298         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
18299         glyphs'extents in the modeline.
18300
18301 1999-01-11  Mike Woolley  <mike@bulsara.com>
18302
18303         * ntheap.c: Reduced the reserved heap space from 1Gb down to
18304         256Mb, as a workaround for the non-starting problem many people
18305         have experienced.
18306
18307 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18308
18309         * console-tty.c (Fset_console_tty_output_coding_system):
18310         Force redrawing tty frame.
18311
18312 2000-01-10  Didier Verna  <didier@xemacs.org>
18313
18314         * redisplay.c (generate_fstring_runes): fix size computation bug.
18315
18316 2000-01-09  William M. Perry <wmperry@aventail.com>
18317
18318         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
18319
18320 2000-01-09  Andy Piper  <andy@xemacs.org>
18321
18322         * glyphs-msw.c: index -> i to avoid shadows.
18323         (xbm_create_bitmap_from_data): make static.
18324         (check_valid_string_or_int): deleted.
18325         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
18326
18327         * glyphs-x.c (x_update_subwindow): remove unused args.
18328
18329         * glyphs.c (glyph_image_instance): return the thing. Don't set the
18330         back pointer - this is done in allocate_image_instance.
18331         (query_string_font): return Qnil to make the compiler happy.
18332         (unmap_subwindow): set to ~0 to make the compiler happy.
18333         (glyph_query_geometry): comment out until used.
18334         (glyph_layout): ditto.
18335
18336 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18337
18338         * insdel.c (signal_after_change): Remove extraneous unbind_to().