19723a26d3cd8d5bfac2cf884ba54f7d505b94b8
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2013-05-02  MORIOKA Tomohiko  <tomo.git@chise.org>
2
3         * chartab.h (get_char_id_table_ce): Use
4         `load_char_attribute_maybe_cos' instead of
5         `load_char_attribute_maybe'.
6
7         * chartab.c (load_char_attribute_maybe_cos): Return NULL instead
8         of Qunbound as the default value.
9
10 2013-05-01  MORIOKA Tomohiko  <tomo.git@chise.org>
11
12         * chartab.h (load_char_attribute_maybe_cos): New prototype when
13         HAVE_LIBCHISE is defined.
14         (get_char_id_table_ce): New inline function when HAVE_LIBCHISE is
15         defined.
16
17         * mule-charset.c (charset_code_point): Use `get_char_id_table_ce'
18         instead of `get_char_id_table' when HAVE_LIBCHISE is defined.
19         (load_char_decoding_entry_maybe): Don't use
20         `decoding_table_put_char' to avoid GC.
21
22         * text-coding.c (concord_setup_env_maybe): Abolished.
23         (COMPOSE_ADD_CHAR): Use `open_chise_data_source_maybe' instead of
24         `concord_setup_env_maybe'.
25
26 2013-05-01  MORIOKA Tomohiko  <tomo.git@chise.org>
27
28         * chartab.c (open_chise_data_source_maybe): New implementation;
29         don't use `build_string' and `Fexpand_file_name' to avoid GC.
30         (char_table_get_db_cos): New function when HAVE_LIBCHISE is
31         defined.
32         (load_char_attribute_maybe_cos): Likewise.
33
34 2013-04-23  MORIOKA Tomohiko  <tomo.git@chise.org>
35
36         * text-coding.c (struct decoding_stream): Use COS_object instead
37         of Lisp_Object for `combining_table' if HAVE_LIBCHISE is defined.
38         (reset_decoding_stream): Likewise.
39         (COMPOSE_FLUSH_CHARS): Likewise.
40         (concord_setup_env_maybe): New function.
41         (COMPOSE_ADD_CHAR): Use COS API for `str->combining_table' if
42         HAVE_LIBCHISE is defined.
43
44 2013-02-16  MORIOKA Tomohiko  <tomo.git@chise.org>
45
46         * chartab.c (find_char_feature_in_family): New implementation;
47         don't support multiple parents; support non-list mother.
48
49 2012-06-11  MORIOKA Tomohiko  <tomo.git@chise.org>
50
51         * text-coding.c (Qenable_decomposition): New variable in XEmacs
52         CHISE.
53         (Fmake_coding_system): Add new property `enable-decomposition' in
54         XEmacs CHISE.
55         (char_encode_utf8): Don't decompose character if
56         CODING_SYSTEM_ENABLE_DECOMPOSITION (str->codesys) is false.
57         (syms_of_file_coding): Add new symbol `enable-decomposition' in
58         XEmacs CHISE.
59         (complex_vars_of_file_coding): Define new coding-system-property
60         `enable-decomposition' in XEmacs CHISE.
61
62         * file-coding.h (struct Lisp_Coding_System): Add
63         `enable_decomposition' in XEmacs CHISE.
64         (CODING_SYSTEM_ENABLE_DECOMPOSITION): New macro in XEmacs CHISE.
65         (XCODING_SYSTEM_ENABLE_DECOMPOSITION): New macro in XEmacs CHISE.
66
67 2012-02-17  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
68
69         * text-coding.c (DECODE_ADD_UCS_CHAR): Add `static'.
70
71 2012-02-11  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
72
73         * text-coding.c (DECODE_ADD_UCS_CHAR): Don't use `INLINE_HEADER'.
74
75         * chartab.c (UINT8_DECODE): Don't use `INLINE_HEADER'.
76         (UINT16_DECODE): Ditto.
77
78         * glyphs-eimage.c (png_instantiate):
79         - Use `png_get_image_height (png_ptr, info_ptr)' instead of
80           `info_ptr->height'.
81         - Use `png_get_image_width (png_ptr, info_ptr)' instead of
82           `info_ptr->width'.
83         - Use `png_get_color_type(png_ptr, info_ptr)' instead of
84           `info_ptr->color_type'.
85         - Use `png_get_bit_depth(png_ptr, info_ptr)' instead of
86           `info_ptr->bit_depth'.
87
88 2011-07-20  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
89
90         * mule-charset.c (charset_code_point): If nil is specified as a
91         feature-value, don't find in mother and return -1.
92
93 2011-07-22  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
94
95         * chartab.c (Fput_char_attribute): Accept nil as a value of
96         CCS-feature [it means that specified object does not have
97         code-point of the CCS-feature].
98
99 2011-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
100
101         * mule-charset.c (complex_vars_of_mule_charset): Use "jisx0208"
102         instead of "jisx0208\\.1990" as the X-registry of `=jis-x0208'.
103
104 2011-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
105
106         * text-coding.c (char_encode_as_entity_reference): Don't use
107         `DECODE_CHAR' to detect isolated characters.
108
109         * mule-charset.c (charset_code_point): Change the third argument
110         `defined_only' to `accepted_mode'; `accepted_mode' can be
111         CHAR_ISOLATED_ONLY, CHAR_ALL or CHAR_DEFINED_ONLY.
112
113         * char-ucs.h (CHAR_ISOLATED_ONLY): New macro.
114         (CHAR_ALL): New macro.
115         (CHAR_DEFINED_ONLY): New macro.
116
117 2011-03-14  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
118
119         * chartab.c (Fchar_feature_base_name_eq): New function when
120         UTF2000 is enabled.
121         (Fput_char_attribute): Use `Fchar_feature_base_name_eq'.
122         (syms_of_chartab): Add new builtin function
123         `char-feature-base-name=' when UTF2000 is enabled.
124
125 2011-02-17  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
126
127         * text-coding.c (Vdecomposition_feature_list): New variable when
128         UTF2000 is defined.
129         (char_encode_utf8): Refer variable `decomposition-feature-list'
130         instead of `=decomposition' feature.
131         (vars_of_file_coding): Add new variable
132         `decomposition-feature-list' when UTF2000 is defined.
133
134 2011-02-16  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
135
136         * chartab.c (Fput_char_attribute): Support `=decomposition@FOO' as
137         `=decomposition' feature.
138
139 2011-02-12  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
140
141         * mule-charset.c (Fmake_charset): Fix problem for 94^n or 96^n
142         coded-charsets with builtin characters.
143
144 2011-02-09  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
145
146         * text-coding.c (Qrep_decomposition): New extern.
147         (char_encode_utf8): Try to encode as combing sequence (or IVS).
148
149 2011-01-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
150
151         * concord.c (Fconcord_genre_ds): Add "#ifdef HAVE_LIBCHISE" ...
152         "#endif" for code to refer Vchise_system_db_directory.
153
154 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
155
156         * concord.c (Fconcord_object_put): Use `member' instead of `memq'.
157         (Fconcord_object_adjoin): New function.
158         (Fconcord_object_adjoinX): New function.
159         (syms_of_concord): Defsubred `Fconcord_object_adjoin' and
160         `Fconcord_object_adjoinX'.
161
162 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
163
164         * concord.c:
165         - Include "elconcord.h".
166         - Move EXFUNs for `Fconcord_decode_object', `Fconcord_object_put'
167           and `Fconcord_object_get' to elconcord.h.
168         (Lisp_CONCORD_DS): Moved to elconcord.h.
169         (struct Lisp_CONCORD_DS): Ditto.
170         (XCONCORD_DS): Ditto.
171         (XSET_CONCORD_DS): Ditto.
172         (CONCORD_DS_P): Ditto.
173         (CHECK_CONCORD_DS): Ditto.
174         (CONCHECK_CONCORD_DS): Ditto.
175         (Lisp_CONCORD_Object): Ditto.
176         (struct Lisp_CONCORD_Object): Ditto.
177         (XCONCORD_OBJECT): Ditto.
178         (XSET_CONCORD_OBJECT): Ditto.
179         (CONCORD_OBJECT_P): Ditto.
180         (CHECK_CONCORD_OBJECT): Ditto.
181         (CONCHECK_CONCORD_OBJECT): Ditto.
182         (CONCORD_OBJECT_GENRE): Ditto.
183         (CONCORD_OBJECT_ID): Ditto.
184         (XCONCORD_OBJECT_ID): Ditto.
185         (XCONCORD_OBJECT_GENRE): Ditto.
186         (concord_object_equal): New function.
187         (LRECORD_IMPLEMENTATION of "concord_object"): Use
188         `concord_object_equal'.
189
190         * elconcord.h: New file.
191
192 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
193
194         * concord.c (print_concord_object): Use readable form even if
195         `print-readably' is nil.
196
197 2010-11-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
198
199         * concord.c (print_concord_object): Don't display location of
200         data-source when `print-readably' is nil.
201
202 2010-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
203
204         * concord.c (Fconcord_genre_ds): Use Vchise_system_db_directory as
205         the default location of data-source.
206         (complex_vars_of_concord): Use Vchise_system_db_directory to
207         assign genre `character' and `feature'.
208
209         * chartab.h (Vchise_system_db_directory): New extern when
210         HAVE_CONCORD is defined.
211
212 2010-09-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
213
214         * concord.c: Include <chise.h> if HAVE_LIBCHISE is defined.
215         (Qcharacter): New variable when HAVE_LIBCHISE is defined.
216         (Qfeature): Ditto.
217         (Fconcord_object_genre): New function.
218         (syms_of_concord):
219         - Add new builtin symbols `character' and `feature' when
220           HAVE_LIBCHISE is defined.
221         - Add Add new builtin function `concord-object-genre'.  
222         (complex_vars_of_concord): New function; assign genres `character'
223         and `feature' when HAVE_LIBCHISE is defined.
224
225 2010-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
226
227         * emacs.c (main_1): Call `complex_vars_of_concord' when
228         HAVE_CONCORD is defined.
229
230         * symsinit.h (complex_vars_of_concord): New prototype.
231
232 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
233
234         * chartab.c (allocate_character): Add `static'.
235
236 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
237
238         * chartab.c (allocate_character): New function.
239         (Fdefine_char): Use allocate_character().
240
241 2010-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
242
243         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.25
244         (ÅŒkawara).
245
246 2010-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
247
248         * chartab.c (save_uint8_byte_table): Fixed problem when a property
249         is unloaded.
250         (save_uint16_byte_table): Likewise.
251
252 2010-02-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
253
254         * chartab.c (Fchar_feature_property): New function when LIBCHISE
255         is enabled.
256         (Fput_char_feature_property): Likewise.
257         (syms_of_chartab): Add new builtin functions
258         `char-feature-property' and `put-char-feature-property' when
259         LIBCHISE is enabled.
260
261 2009-04-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
262
263         * mule-charset.c (Fmake_charset): Add DOC-string of 'iso-ir and
264         '=>iso-ir.
265         (Fcharset_property): Regard '=>iso-ir as same as `iso_ir.
266
267 2009-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
268
269         * mule-charset.c (Qto_iso_ir): New variable for XEmacs CHISE.
270         (make_charset): Add new argument `iso_ir'.
271         (Fmake_charset): Add new property `=>iso-ir' in XEmacs CHISE.
272         (Fmake_reverse_direction_charset): Copy CHARSET_ISO_IR(cs) in
273         XEmacs CHISE.
274         (Fcharset_property): Support `iso-ir' in XEmacs CHISE.
275         (syms_of_mule_charset): Add new builtin symbol `=>iso-ir' in
276         XEmacs CHISE.
277         (complex_vars_of_mule_charset): Specify argument `iso_ir' of
278         function `make_charset'.
279
280         * char-ucs.h (LEADING_BYTE_*): Enclose negative value with ( ).
281         (struct Lisp_Charset): Add new member `iso_ir'.
282         (CHARSET_ISO_IR): New macro.
283
284 2009-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
285
286         * mule-charset.c (Fdecode_char): Fix problem when decoding GR
287         code-point by GL charset.
288
289 2008-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
290
291         * concord.c (concord_id_validate): New function.
292         (structure_type_create_concord): Use `concord_id_validate' instead
293         of `concord_name_validate' to accept integer and character as =id.
294
295 2008-09-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
296
297         * concord.c (func_for_each_object): Fix bug about GC-protection.
298
299 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
300
301         * concord.c (Fconcord_object_put): Check argument FEATURE is a
302         symbol.
303
304 2008-09-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
305
306         * text-coding.c (struct decoding_stream): Add new member
307         `bom_flag' in XEmacs CHISE.
308         (reset_decoding_stream): Ignore U+FEFF in the beginning of stream
309         in XEmacs CHISE.
310
311 2008-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
312
313         * mule-charset.c: Move definition of `=jis-x0208@1978' to
314         lisp/mule/mule-conf.el.
315
316 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
317
318         * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
319         (make_charset): Add new argument `partial'.
320         (Fmake_charset): Add new property 'partial in XEmacs CHISE.
321         (Fmake_reverse_direction_charset): Modify for `make_charset'.
322         (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
323         CHISE.
324         (complex_vars_of_mule_charset): Modify for `make_charset'; specify
325         `=jis-x0208' as a partial coded-charset.
326
327 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
328
329         * text-coding.c (decode_add_er_char): Fix problem when a character
330         represented by an entity-reference is not defined.
331
332 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
333
334         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
335         Qrep_*.
336
337 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
338
339         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
340         (Kasagi).
341
342 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
343
344         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
345         is a relation feature.
346
347 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
348
349         * chartab.c (syms_of_chartab): Define
350         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
351
352         * chartab.h (Q_denotational): New extern when UTF2000 or
353         HAVE_CONCORD is defined.
354         (Q_denotational_from): Likewise.
355         (Q_subsumptive): Likewise.
356         (Q_subsumptive_from): Likewise.
357
358 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
359
360         * concord.c (concord_object_put): New function.
361         (Fconcord_object_put): Use `concord_object_put'.
362
363 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
364
365         * concord.c (Fconcord_define_object): New function.
366         (syms_of_concord): Add new builtin function
367         `concord-define-object'.
368
369 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
370
371         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
372         (Kamo).
373
374 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
375
376         * concord.c: Add EXFUN for Fconcord_object_get.
377         (Vconcord_genre_object_hash_table): New variable.
378         (concord_genre_cache_get_object): New function.
379         (concord_genre_cache_put_object): New function.
380         (Fconcord_make_object): Use object cache; put object-ID into `=id'
381         feature.
382         (Fconcord_object_put): Call `concord_index_sync' after
383         `concord_index_strid_put_obj'.
384         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
385
386 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
387
388         * concord.c (Fconcord_decode_object): Do GCPRO for
389         Fconcord_make_object.
390         (func_for_each_object): Likewise; do GCPRO for
391         for_each_object_closure->function.
392         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
393         for_each_object_closure->function, for_each_object_closure->genre,
394         for_each_object_closure->ds and for_each_object_closure->ret.
395         (concord_object_validate): Do GCPRO for Fconcord_make_object.
396
397 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
398
399         * concord.c: Add EXFUNs for Fconcord_decode_object and
400         Fconcord_object_put.
401         (Fconcord_make_object): Change order of arguments.
402         (Fconcord_decode_object): Modify for Fconcord_make_object.
403         (func_for_each_object): Likewise.
404         (concord_object_validate): Likewise.
405         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
406
407 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
408
409         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
410
411 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
412
413         * concord.c (Fconcord_decode_object): Try to use readable print
414         form as a key of Concord-index.
415         (Fconcord_object_get): Try to use readable print form as an ID of
416         Concord-object.
417         (Fconcord_object_put): Try to use readable print form as an ID of
418         Concord-object and a feature value.
419         (Fconcord_object_spec): Try to use readable print form as an ID of
420         Concord-object.
421
422 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
423
424         * concord.c (print_concord_object): Support readable form.
425
426 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
427
428         * emacs.c (main_1): Call `structure_type_create_concord' when
429         HAVE_CONCORD is defined.
430
431         * symsinit.h (structure_type_create_concord): New prototype.
432
433         * concord.c (Qconcord_object): New variable.
434         (Qgenre): Likewise.
435         (Q_id): Likewise.
436         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
437         for directory.
438         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
439         char*> for genre-name.
440         (Fconcord_feature_list): Likewise.
441         (Fconcord_make_object): Likewise.
442         (Fconcord_decode_object): Likewise; use <char*> instead of
443         <unsigned char*> for feature_name and strid.
444         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
445         c_obj and feature_name.
446         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
447         char*> for c_value.
448         (struct closure_for_object_spec): Use <char*> instead of <unsigned
449         char*> for member `object_id'.
450         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
451         char*> for feature-name.
452         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
453         for c_obj.
454         (func_for_each_object): Cast to avoid warnings.
455         (Fconcord_foreach_object_in_feature): Use <char*> instead of
456         <unsigned char*> for genre_name and feature_name.
457         (concord_name_validate): New function.
458         (concord_object_validate): Likewise.
459         (concord_object_instantiate): Likewise.
460         (syms_of_concord): Add new builtin symbols `concord-object',
461         `genre' and `=id'.
462         (structure_type_create_concord): New function.
463
464 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
465
466         * concord.c (Vconcord_ds_hash_table): New variable.
467         (Vconcord_genre_hash_table): New variable.
468         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
469         (Fconcord_ds_directory): New function.
470         (Fconcord_assign_genre): New function.
471         (Fconcord_genre_directory): New function.
472         (Fconcord_genre_ds): New function.
473         (Fconcord_feature_list): Allow to omit `ds'.
474         (Fconcord_make_object): Likewise.
475         (Fconcord_decode_object): Likewise.
476         (Fconcord_foreach_object_in_feature): Likewise.
477         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
478         Fconcord_assign_genre, Fconcord_genre_directory and
479         Fconcord_genre_ds.
480         (vars_of_concord): Setup Vconcord_ds_hash_table and
481         Vconcord_genre_hash_table.
482
483 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
484
485         * concord.c (struct closure_for_each_object): Add new member
486         `ret'.
487         (func_for_each_object): Setup the return value to
488         `for_each_object_closure->ret'.
489         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
490         returns the value instead of Qt.
491
492 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
493
494         * concord.c: New file.
495
496 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
497
498         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
499         `lrecord_type_concord_object'.
500
501 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
502
503         * symsinit.h (syms_of_concord): New prototype.
504         (vars_of_concord): New prototype.
505
506         * emacs.c (main_1): Setup symbols and variable about concord if
507         HAVE_CONCORD is defined.
508
509         * config.h.in (HAVE_CONCORD): New macro.
510
511 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
512
513         * chartab.c (Fput_char_attribute): For each character relation
514         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
515
516 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
517
518         * chartab.c (Fput_char_attribute): Use
519         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
520         calling `put_char_composition'.
521
522 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
523
524         * chartab.c (Q_halfwidth_of): New variable.
525         (put_char_composition): Return `<-halfwidth' instead of
526         `=decomposition' for compatibility mapping to single character
527         tagged `narrow'.
528         (Fput_char_attribute): Convert char-specs in value of
529         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
530         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
531         for `<-halfwidth'.
532         (syms_of_chartab): Add new symbol `<-halfwidth'.
533
534 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
535
536         * chartab.c (put_char_composition): Return
537         `<-formed@{isolated|initial|medial|final}' for compatibility
538         mapping to single character tagged
539         `{isolated|initial|medial|final}'.
540
541 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
542
543         * chartab.c (Q_compat_of): Deleted.
544         (put_char_composition): Return `<-FOO' for compatibility mapping
545         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
546         of `symbol_name (XSYMBOL(...))'.
547         (Fput_char_attribute): Convert char-specs in value of
548         `{<-|->}font[^*]*' to characters and put reverse links.
549         (Fsave_char_attribute_table): Don't refer Q_compat_of.
550         (syms_of_chartab): Delete builtin symbol `<-compat'.
551
552 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
553
554         * chartab.c (Q_circled_of): New variable.
555         (put_char_composition): Return `<-circled' instead of
556         `=decomposition' for compatibility mapping to single character
557         tagged `circle'.
558         (Fput_char_attribute): Convert char-specs in value of
559         `{<-|->}circled[^*]*' to characters and put reverse links.
560         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
561         for `<-circled'.
562         (syms_of_chartab): Add new symbol `<-circled'.
563
564 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
565
566         * chartab.c (Qto_decomposition_at_circled): New variable.
567         (put_char_composition): Return `=>decomposition@circled' instead
568         of `=decomposition' for compatibility decomposition mapping tagged
569         `circle'.
570         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
571
572 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
573
574         * chartab.c (Q_subscript_of): New variable.
575         (put_char_composition): Return `<-subscript' instead of
576         `=decomposition' for compatibility mapping to single character
577         tagged `sub'.
578         (Fput_char_attribute): Convert char-specs in value of
579         `{<-|->}subscript[^*]*' to characters and put reverse links.
580         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
581         for `<-subscript'.
582         (syms_of_chartab): Add new symbol `<-subscript'.
583
584 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
585
586         * chartab.c (Q_superscript_of): New variable.
587         (put_char_composition): Return `<-superscript' instead of
588         `=decomposition' for compatibility mapping to single character
589         tagged `super'.
590         (Fput_char_attribute): Convert char-specs in value of
591         `{<-|->}superscript[^*]*' to characters and put reverse links.
592         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
593         for `<-superscript'.
594         (syms_of_chartab): Add new symbol `<-superscript'.
595
596 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
597
598         * chartab.c (Qto_decomposition_at_compat): Deleted.
599         (Qto_decomposition_at_superscript): New variable.
600         (put_char_composition): Use `=>decomposition@superscript' instead
601         of `=decomposition' for compatibility decomposition mapping tagged
602         `super'.
603         (Fput_char_attribute): Fix condition about `put_char_composition'.
604         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
605         add news symbol `=>decomposition@superscript'.
606
607 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
608
609         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
610         for compatibility decomposition mapping tagged FOO.
611         (Fput_char_attribute): Modify for `put_char_composition'.
612
613 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
614
615         * chartab.c (Qto_decomposition_at_compat): New variable.
616         (Q_compat_of): Renamed from `Q_compatibility_of'.
617         (put_char_composition): Rename `Q_compatibility_of' to
618         `Q_compat_of'; return `=>decomposition@compat' for compatibility
619         decomposition mapping.
620         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
621         `Q_compat_of'.
622         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
623         `<-compatibility' to `<-compat'.
624
625 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
626
627         * chartab.c (Q_compatibility_of): New variable.
628         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
629         object is proved to be a cons cell; return `<-compatibility' if
630         the first element of argument `value' is `compat'.
631         (Fput_char_attribute): Eliminate the first value if
632         `put_char_composition' returns `<-compatibility'.
633         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
634         for `<-compatibility'.
635         (syms_of_chartab): Add new symbol `<-compatibility'.
636
637 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
638
639         * chartab.c (Q_canonical): New variable.
640         (put_char_composition): Return a feature name: return
641         `->canonical' if argument `value' specifies single character.
642         (Fput_char_attribute): Use `put_char_composition' to determine
643         feature name for `=decomposition' or `->denotational'.
644         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
645         for `->canonical'.
646         (syms_of_chartab): Add new symbol `->canonical'.
647
648 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
649
650         * chartab.c (Qmap_decomposition): New variable.
651         (Fput_char_attribute): Convert `->decomposition' to
652         `=decomposition'.
653         (syms_of_chartab): Add new symbol `=decomposition'.
654
655 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
656
657         * chartab.c (Fget_range_char_table): Fix serious problem when
658         `range' is nil.
659
660 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
661
662         * chartab.c (char_table_get_db): Use `read_from_c_string'.
663
664 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
665
666         * lread.c (read_from_c_string): New function.
667
668         * lisp.h (read_from_c_string): New prototype.
669
670 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
671
672         * chartab.c (Fput_char_attribute): Convert char-specs in value of
673         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
674         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
675         for `{<-|->}Oracle-Bones[^*]*'.
676
677 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
678
679         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
680         (Kizu).
681
682 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
683
684         * text-coding.c (Qccs_priority_list): New variable in XEmacs
685         CHISE.
686         (Fmake_coding_system): Support new property `ccs-priority-list' in
687         XEmacs CHISE.
688         (Fcoding_system_property): Likewise.
689         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
690         Vdefault_coded_charset_priority_list in XEmacs CHISE.
691         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
692         XEmacs CHISE.
693         (complex_vars_of_file_coding): Define new coding-system-property
694         `ccs-priority-list' in XEmacs CHISE.
695
696         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
697
698 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
699
700         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
701         changed to normal function.
702         (encode_char_2): Likewise.
703
704         * mule-charset.c (decoding_table_put_char): Copied from
705         char-ucs.h; changed to normal function.
706         (encode_char_2): Likewise.
707
708 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
709
710         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
711         New extern.
712         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
713         (encode_char_2_search_children): New inline function.
714         (encode_char_2): Refer
715         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
716         and use `encode_char_2_search_children'.
717
718 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
719
720         * mule-charset.c
721         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
722         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
723         (vars_of_mule_charset): Add new variable
724         `display-coded-charset-priority-use-inheritance' and
725         `display-coded-charset-priority-use-hierarchy-order'.
726
727 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
728
729         * char-ucs.h (Q_subsumptive): New extern.
730         (Q_denotational): Likewise.
731         (encode_char_2): Search children specified by `->subsumptive' and
732         `->denotational'.
733
734 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
735
736         * mule-charset.c (complex_vars_of_mule_charset): Modify the
737         X-registry of `ucs-bmp'.
738
739 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
740
741         * chartab.c (char-variants): Refer `->subsumptive',
742         `->denotational' and `->identical' as same as `->ucs-unified'.
743
744 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
745
746         * chartab.c (Fput_char_attribute): Convert char-specs in value of
747         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
748         links.
749
750 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
751
752         * text-coding.c: Add EXFUN for `Fregexp_quote'.
753         (decode_add_er_char): Fix problem about infinite loop when a CCS
754         specified in `coded-charset-entity-reference-alist' is not
755         existed.
756
757 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
758
759         * mule-charset.c (syms_of_mule_charset): Rename
760         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
761
762 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
763
764         * fns.c (simplify_char_spec): Don't allocate new character-object
765         if specified char_spec does not have any CCS-features.
766
767         * chartab.h: Add EXFUN for Fdefine_char.
768
769         * chartab.c: Delete EXFUN for Fdefine_char.
770
771 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
772
773         * fns.c (simplify_char_spec): Use Fdefine_char instead of
774         Ffind_char for char-spec.
775
776 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
777
778         * lisp-disunion.h (XCHARVAL): Fix condition about
779         SIZEOF_EMACS_INT.
780
781 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
782
783         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
784         <int> for `code'.
785         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
786         point; use <Emchar> instead of <int> for character-id.
787
788 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
789
790         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
791         (make_char): Likewise.
792         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
793         environment.
794         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
795         instead of <int> as the type of return value; use <Lisp_Object>
796         instead of <Emchar> as the type of argument.
797         (XCHARVAL[macro version]): Cast the result into <Emchar>.
798
799         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
800         syntaxcode> instead of <int>.
801
802 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
803
804         * chartab.c (put_char_composition): Use DECODE_CHAR to get
805         character corresponding with UCS code point.
806         (Fput_char_attribute): Likewise.
807
808         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
809         character in the UCS decoding-table if the char-id is not equal to
810         the UCS code point.
811
812 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
813
814         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
815         for aliases; write `description'; write
816         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
817         not 0.
818
819 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
820
821         * chartab.c (Fsave_char_attribute_table): Don't use
822         `save_charset_properties'.
823
824         * mule-charset.c (Fsave_charset_properties): Renamed from
825         `save_charset_properties' and changed to Lisp function again;
826         write property `type' as `CCS'; write properties `final-byte' and
827         `mother' if they exists.
828         (syms_of_mule_charset): Revive builtin function
829         `save-charset-properties' when HAVE_LIBCHISE is defined.
830
831 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
832
833         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
834         instead of Vexec_directory.
835         (char_attribute_system_db_file): Likewise.
836
837 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
838
839         * chartab.c (Fsave_char_attribute_table): Use
840         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
841         defined.
842
843         * mule-charset.c (save_charset_properties): Renamed from
844         `Fsave_charset_properties'; changed to non-Lisp function.
845         (syms_of_mule_charset): Abolish builtin function
846         `save-charset-properties'.
847
848 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
849
850         * mule-charset.c (Fsave_charset_properties): New function when
851         HAVE_LIBCHISE is defined.
852         (syms_of_mule_charset): Add new builtin function
853         `save-charset-properties' when HAVE_LIBCHISE is defined.
854
855 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
856
857         * chartab.c (Fput_char_attribute): Convert char-specs in value of
858         `{<-|->}ancient[^*]*' to characters and put reverse links.
859         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
860         for `{<-|->}ancient[^*]*'.
861
862 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
863
864         * chartab.c (Fput_char_attribute): Convert char-specs in value of
865         `{<-|->}original[^*]*' to characters and put reverse links.
866         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
867         for `{<-|->}original[^*]*'.
868
869 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
870
871         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
872
873 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
874
875         * mule-charset.c (Qsystem_char_id): New variable.
876
877         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
878         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
879
880 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
881
882         * chartab.c (Fput_char_attribute): When processing a reference of
883         a character, put into the end of the reversed reference of each
884         target character.
885
886 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
887
888         * chartab.c (Q_same): Deleted.
889         (Q_same_of): Deleted.
890         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
891         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
892         for `{<-|->}same'.
893         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
894
895 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
896
897         * chartab.c (Q_vulgar): Deleted.
898         (Q_vulgar_of): Deleted.
899         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
900         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
901         for `{<-|->}vulgar'.
902         (syms_of_chartab): Don't define `{<-|->}vulgar'.
903
904 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
905
906         * chartab.c (Fput_char_attribute): Convert char-specs in value of
907         `{<-|->}wrong[^*]*' to characters and put reverse links.
908         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
909         for `{<-|->}wrong[^*]*'.
910
911 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
912
913         * chartab.c (Q_vulgar): New variable.
914         (Q_vulgar_of): New variable.
915         (Fput_char_attribute): Convert char-specs in value of
916         `{->|<-}vulgar' to characters and put reverse links.
917         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
918         for `{->|<-}vulgar'.
919         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
920
921 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
922
923         * text-coding.c (decode_add_er_char): Must to quote prefix string
924         as regexp.
925
926 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
927
928         * mule-charset.c (put_char_ccs_code_point): Store characters of
929         =ucs whose code_points >= 0xF0000.
930
931 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
932
933         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
934         CHISE.
935         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
936         CHISE.
937         (complex_vars_of_mule_charset): Add new coded-charset
938         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
939         builtin characters over 0xEFFFF.
940
941         * chartab.c (syms_of_chartab): Don't define symbol
942         `system-char-id' in every case.
943
944         * char-ucs.h (Qsystem_char_id): New extern variable.
945         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
946
947 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
948
949         * text-coding.c (char_encode_utf8): Try to use entity-references
950         for U-000F0000 ...  U-0010FFFF.
951
952 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
953
954         * text-coding.c (ER_BUF_SIZE): New macro.
955         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
956         `er_buf'.
957         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
958         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
959
960 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
961
962         * chartab.c (find_char_feature_in_family): New function.
963         (Fchar_feature): Use `find_char_feature_in_family' with
964         `->identical', `<-subsumptive' and `<-denotational'.
965
966 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
967
968         * text-coding.c (char_encode_as_entity_reference): Allow prefix
969         within 8 characters; fix infinite loop.
970
971 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
972
973         * chartab.c (Q_same): New variable.
974         (Q_same_of): New variable.
975         (Fput_char_attribute): Convert char-specs in value of
976         `{->|<-}same' to characters and put reverse links.
977         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
978         for `{->|<-}same'.
979         (syms_of_chartab): Add new symbols `{->|<-}same'.
980
981 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
982
983         * chartab.c (Q_component): New variable.
984         (Q_component_of): Likewise.
985         (Fput_char_attribute): Convert char-specs in value of
986         `{->|<-}ideographic-component-forms' to characters and put reverse
987         links.
988         (syms_of_chartab): Add new symbols
989         `{->|<-}ideographic-component-forms'.
990
991 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
992
993         * chartab.c (Q_identical): New variable.
994         (Q_identical_from): New variable.
995         (Fchar_feature): Regard `->identical' as a feature to find
996         ancestors.
997         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
998         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
999         for `{->|<-}identical'.
1000         (syms_of_chartab): Add new symbols `{->|<-}identical'.
1001
1002 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1003
1004         * char-ucs.h (encode_char_2): New inline function.
1005         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
1006
1007 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1008
1009         * chartab.c (Fput_char_attribute): Convert char-specs to
1010         characters in value of `ideographic-structure'.
1011         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
1012         for `{<-|->}simplified(@...)'.
1013         (Fdefine_char): Try to use predefined character's id.
1014
1015 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1016
1017         * fns.c (simplify_char_spec): Try to convert builtin chars to
1018         defined chars.
1019
1020 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1021
1022         * chartab.c (Fput_char_attribute): Convert char-specs in value of
1023         `<-simplified[^*]*' to characters and put reverse links.
1024
1025 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1026
1027         * chartab.c (Q_subsumptive): Renamed from Q_unified.
1028         (Q_subsumptive_from): Renamed from Q_unified_from.
1029         (Fchar_feature): Use `Q_subsumptive_from' instead of
1030         `Q_unified_from'.
1031         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
1032         `Q_unified'.
1033         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
1034         `<-unified' to `<-subsumptive'.
1035
1036 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1037
1038         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
1039         inheritance itself; fix typo; stop recursive search if cyclic
1040         inheritance is found.
1041
1042 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1043
1044         * chartab.c (Q_denotational): New variable.
1045         (Q_denotational_from): New variable.
1046         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
1047         (put_char_attribute): New function.
1048         (Fput_char_attribute): Use `put_char_attribute'; regard
1049         `->denotational' and `<-denotational' as same as `->unified' and
1050         `<-unified'.
1051         (syms_of_chartab): Add new symbols `->denotational' and
1052         `<-denotational'.
1053
1054 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1055
1056         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
1057         `Fget_char_attribute'.
1058         (Fchar_variants): Likewise.
1059         (get_char_table): Likewise.
1060         (Fchar_feature): New function.
1061         (put_char_composition): Use `Fchar_feature' instead of
1062         `Fget_char_attribute'.
1063         (Fput_char_attribute): Likewise; don't put the target character
1064         into its `->unified' value.
1065         (syms_of_chartab): Add new builtin function `char-feature'.
1066
1067 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1068
1069         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
1070         `Fget_char_attribute'.
1071         (char_encode_utf8): Likewise.
1072
1073         * chartab.h: Add an EXFUN for `Fchar_feature'.
1074
1075 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1076
1077         * chartab.c (Vnext_defined_char_id): New variable.
1078         (Fput_char_attribute): Accept characters in `->unified'.
1079         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
1080         new characters which are not related with builtin char-id ranges.
1081         (vars_of_chartab): Add new variable `next-defined-char-id'.
1082
1083 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1084
1085         * chartab.c (Q_unified): New variable.
1086         (Q_unified_from): New variable.
1087         (Fput_char_attribute): Add code for `->unified'.
1088         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
1089         XEmacs CHISE.
1090
1091 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1092
1093         * mule-charset.c (decode_ccs_conversion): New function.
1094         (decode_defined_char): Use `decode_ccs_conversion'.
1095         (decode_builtin_char): Likewise.
1096
1097 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1098
1099         * char-ucs.h: Change some charset-ids of private coded-charsets.
1100
1101 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1102
1103         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
1104         (char_encode_as_entity_reference): Likewise.
1105         (decode_coding_big5): Modify for `decode_defined_char' and
1106         `DECODE_CHAR'.
1107         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
1108         avoid compiler warning.
1109         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
1110
1111         * mule-charset.c (decode_defined_char): Add new argument
1112         `without_inheritance'.
1113         (Fdecode_char): Add new optional argument `without_inheritance'.
1114         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1115
1116         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
1117         (simplify_char_spec): Likewise.
1118
1119         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
1120         setting.
1121
1122         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
1123         (map_char_table): Likewise.
1124         (Fdefine_char): Use `Fdecode_char' without inheritance.
1125         (Ffind_char): Modify for `Fdecode_char'.
1126
1127         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
1128
1129         * char-ucs.h (decode_defined_char): Add new argument
1130         `without_inheritance'.
1131         (DECODE_CHAR): Likewise.
1132         (MAKE_CHAR): Modify for `DECODE_CHAR'.
1133
1134 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1135
1136         * chartab.c (Vchise_system_db_directory): New variable.
1137         (vars_of_chartab): Add new variable `chise-system-db-directory'.
1138
1139 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1140
1141         * chartab.c: EXFUN `Fmount_char_attribute_table'.
1142         (print_chartab_range): Don't define when `UTF2000' is defined.
1143         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
1144         `CHISE_DS_open'.
1145
1146 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1147
1148         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
1149         and optional argument `rehash' is specified, call
1150         `open_chise_data_source_maybe' before
1151         `chise_ds_foreach_char_feature_name' is called.
1152
1153 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1154
1155         * chartab.c (char_attribute_list_reset_map_func): New function
1156         when HAVE_LIBCHISE is defined.
1157         (Fchar_attribute_list): Add new optional argument `rehash' when
1158         HAVE_LIBCHISE is defined.
1159         (open_chise_data_source_maybe): Use "chise-db" instead of
1160         "char-db".
1161         (char_attribute_system_db_file): Likewise.
1162         (Fload_char_attribute_table): Use
1163         `chise_feature_foreach_char_with_value' instead of
1164         `chise_char_feature_value_iterate'.
1165
1166 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1167
1168         * chartab.c (Vchise_db_directory): New variable.
1169         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
1170
1171 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1172
1173         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
1174         instead of HAVE_CHISE to specify using with libchise.
1175
1176         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
1177
1178         * chartab.h: Don't use HAVE_CHISE_CLIENT.
1179
1180         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
1181         defined or HAVE_LIBCHISE_LIBCHISE is defined.
1182         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
1183         is defined.
1184         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
1185         HAVE_CHISE to specify using with libchise.
1186         (syms_of_chartab): Don't define symbol `system-char-id' when
1187         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
1188
1189 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1190
1191         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1192         specify CHISE DB support.
1193         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
1194         of `char_attribute_system_db_file' to check feature DB file.
1195
1196         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
1197         HAVE_CHISE_CLIENT to specify CHISE DB support.
1198
1199         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1200         specify CHISE DB support.
1201         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
1202         not defined.
1203         (Freset_char_attribute_table): Use `chise_feature_setup_db'
1204         instead of `char_attribute_system_db_file' to check feature DB
1205         file.
1206
1207 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1208
1209         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
1210         `HAVE_CHISE_CLIENT'.
1211
1212 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1213
1214         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
1215         (Fsave_charset_mapping_table): Don't use
1216         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1217
1218         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
1219         (HAVE_LIBCHISE): New macro.
1220
1221         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
1222
1223         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
1224         (Fsave_char_attribute_table): Don't use
1225         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1226
1227 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1228
1229         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
1230         defined.
1231         (save_uint16_byte_table): Likewise.
1232         (save_byte_table): Likewise.
1233         (char_table_get_db): Use `chise_ds_load_char_feature_value'
1234         instead of `chise_char_load_feature_value'.
1235         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
1236
1237 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1238
1239         * chartab.h (struct Lisp_Char_Table): Delete member
1240         `feature_table' if CHISE is defined.
1241
1242         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
1243         (Fcopy_char_table): Likewise.
1244         (char_table_open_db_maybe): Likewise.
1245         (char_table_close_db_maybe): Likewise.
1246         (char_table_get_db): Likewise.
1247         (Fmount_char_attribute_table): Likewise.
1248         (Fload_char_attribute_table): Likewise.
1249
1250 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1251
1252         * mule-charset.c (load_char_decoding_entry_maybe): Use
1253         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
1254         `chise_ccs_decode'.
1255
1256 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1257
1258         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
1259         instead of `chise_open_data_source'.
1260         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
1261         `chise_ds_close'.
1262
1263 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1264
1265         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
1266         instead of `chise_ds_open_feature_table'.
1267         (char_table_close_db_maybe): Don't use `chise_ft_close'.
1268
1269 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1270
1271         * mule-charset.c (Fsave_charset_mapping_table): Use
1272         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
1273         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
1274         `chise_ccs_sync' instead of `chise_ccst_close'.
1275         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
1276
1277         * chartab.c (open_chise_data_source_maybe): Modify for
1278         `chise_open_data_source'.
1279         (char_table_open_db_maybe): Modify for
1280         `chise_ds_open_feature_table'.
1281
1282 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1283
1284         * mule-charset.c (load_char_decoding_entry_maybe): Use
1285         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
1286         `chise_ccst_close'.
1287
1288 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1289
1290         * mule-charset.c (Fsave_charset_mapping_table): Use
1291         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
1292         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
1293         `chise_dt_put_char' and `chise_dt_close'.
1294         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
1295         `chise_ccs_decode' and `chise_ccst_close' instead of
1296         `chise_ds_open_decoding_table', `chise_dt_get_char' and
1297         `chise_dt_close'.
1298
1299         * chartab.c (char_table_get_db): Use
1300         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
1301         (load_char_attribute_table_map_func): Modify for
1302         `chise_char_feature_value_iterate'.
1303         (Fload_char_attribute_table): Use
1304         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
1305
1306 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1307
1308         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
1309
1310 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1311
1312         * chartab.c (put_char_table): Modify for inherited coded-charsets
1313         in XEmacs CHISE.
1314
1315 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1316
1317         * chartab.c (Fput_char_table_map_function): Fixed.
1318         (word_boundary_p): Don't check charset in XEmacs CHISE.
1319
1320 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1321
1322         * mule-charset.c (Fsave_charset_mapping_table): Use
1323         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1324         instead of `chise_open_decoding_table'; refer
1325         `default_chise_data_source'; use `chise_dt_close' instead of
1326         `chise_close_decoding_table'.
1327         (load_char_decoding_entry_maybe): Likewise.
1328
1329         * chartab.c (default_chise_data_source): New variable when `CHISE'
1330         is defined.
1331         (Fcopy_char_table): `ct->ds' is deleted.
1332         (open_chise_data_source_maybe): New function.
1333         (Fclose_char_data_source): New function.
1334         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1335         use `chise_ds_open_feature_table' instead of
1336         `chise_open_feature_table'.
1337         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1338         `chise_close_feature_table'; `cit->ds' is deleted.
1339         (syms_of_chartab): Add new builtin function
1340         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1341
1342         * chartab.h (default_chise_data_source): New extern variable.
1343         (open_chise_data_source_maybe): New prototype.
1344         (struct Lisp_Char_Table): Delete `ds'.
1345
1346 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1347
1348         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1349         `CHISE' is defined.
1350
1351 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1352
1353         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1354         not defined; add code for non-libchise setting.
1355         (char_table_close_db_maybe): Likewise.
1356         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1357         defined.
1358         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1359         even if `CHISE' is not defined.
1360         (Freset_char_attribute_table): Likewise.
1361         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1362         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1363         `char_table_get_db'.
1364         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1365         `char_table_close_db_maybe' even if `CHISE' is not defined.
1366
1367 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1368
1369         * chartab.c (char_table_open_db_maybe): New function.
1370         (char_table_close_db_maybe): New function.
1371         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1372         (Freset_char_attribute_table): Likewise.
1373         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1374         `char_table_close_db_maybe'.
1375         (Fload_char_attribute_table): Likewise.
1376
1377 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1378
1379         * chartab.c: Don't include <chise.h> because it is included in
1380         chartab.h.
1381         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1382         defined.
1383         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1384         `CHISE' is defined.
1385         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1386         `CHISE' is defined.
1387         (Fclose_char_attribute_table): Close `ct->feature_table' and
1388         `ct->ds' when `CHISE' is defined.
1389         (Freset_char_attribute_table): Likewise.
1390         (load_char_attribute_maybe): Use `cit->ds' and
1391         `cit->feature_table' when `CHISE' is defined.
1392         (Fload_char_attribute_table): Likewise.
1393
1394         * chartab.h: Include <chise.h> when `CHISE' is defined.
1395         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1396         when `CHISE' is defined.
1397
1398 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1399
1400         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1401         is defined.
1402         (char_table_description): Likewise.
1403         (Fmake_char_table): Likewise.
1404         (Fcopy_char_table): Likewise.
1405         (Fmount_char_attribute_table): Likewise.
1406         (Fclose_char_attribute_table): Likewise.
1407         (Freset_char_attribute_table): Likewise.
1408         (load_char_attribute_maybe): Likewise.
1409         (Fload_char_attribute_table): Likewise.
1410
1411         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1412         defined.
1413
1414 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1415
1416         * chartab.c (load_char_attribute_table_map_func): New function
1417         when CHISE is defined.
1418         (Qload_char_attribute_table_map_function): Don't define when CHISE
1419         is defined.
1420         (Fload_char_attribute_table_map_function): Likewise.
1421         (Fload_char_attribute_table): Use libchise when `CHISE' is
1422         defined.
1423         (syms_of_chartab): Don't define
1424         `load-char-attribute-table-map-function' when CHISE is defined.
1425
1426 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1427
1428         * chartab.c: Include <chise.h> when `CHISE' is defined.
1429         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1430
1431 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1432
1433         * mule-charset.c (charset_code_point): Fix problem when searching
1434         in mother CCS fails with `defined_only' mode.
1435
1436 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1437
1438         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1439         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1440         (put_char_composition): Likewise.
1441         (Fput_char_attribute): Likewise.
1442         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1443
1444 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1445
1446         * chartab.c (Q_ucs): Deleted.
1447         (Fput_char_attribute): Don't refer `->ucs'.
1448         (Fdefine_char): Likewise.
1449         (Ffind_char): Likewise.
1450         (syms_of_chartab): Delete `->ucs'.
1451
1452 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1453
1454         * mule-charset.c (Qmap_cns11643_2): Renamed from
1455         `Qchinese_cns11643_2'.
1456         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1457         `chinese-cns11643-2'.
1458         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1459         `=cns11643-2'.
1460
1461 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1462
1463         * mule-charset.c (Qmap_cns11643_1): Renamed from
1464         `Qchinese_cns11643_1'.
1465         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1466         `chinese-cns11643-1'.
1467         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1468         `=cns11643-1'.
1469
1470 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1471
1472         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1473         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1474         `chinese-gb12345'.
1475         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1476         `=gb12345'.
1477
1478 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1479
1480         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1481         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1482         `chinese-gb2312'.
1483         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1484         `=gb2312'.
1485
1486 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1487
1488         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1489         (syms_of_mule_charset): Add new symbol `=big5' instead of
1490         `chinese-big5'.
1491         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1492
1493 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1494
1495         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1496         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1497         `korean-ksc5601'.
1498         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1499         `=ks-x1001'.
1500
1501 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1502
1503         * mule-charset.c (Qmap_jis_x0212): Renamed from
1504         `Qjapanese_jisx0212'.
1505         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1506         `japanese-jisx0212'.
1507         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1508         `=jis-x0212'.
1509
1510 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1511
1512         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1513         `Qjapanese_jisx0208'.
1514         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1515         of `japanese-jisx0208'.
1516         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1517         `=jis-x0208-1983'.
1518
1519 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1520
1521         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1522         `Qjapanese_jisx0208_1978'.
1523         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1524         of `japanese-jisx0208-1978'.
1525         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1526         `=jis-x0208-1978'.
1527
1528 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1529
1530         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1531         only for XEmacs CHISE.
1532
1533 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1534
1535         * char-ucs.h: Compact non-ISO-IR charset-ids.
1536         (LEADING_BYTE_UCS): Changed to -177.
1537         (LEADING_BYTE_CONTROL_1): Changed to -77.
1538         (LEADING_BYTE_UCS_BMP): Changed to -176.
1539         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1540
1541 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1542
1543         * mule-charset.c (Qiso_ir): New variable.
1544         (Fmake_charset): Recognise new property `iso-ir'.
1545         (syms_of_mule_charset): Add new symbol `iso-ir'.
1546
1547 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1548
1549         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1550         n to -n; charset-id of non ISO-IR sets are changed to positive
1551         numbers.
1552
1553 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1554
1555         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1556         for &MCS-XXXXXXXX; values.
1557
1558 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1559
1560         * mule.c (Vxemacs_chise_version): Renamed from
1561         `Vutf_2000_version'.
1562         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1563         `utf-2000-version' as an alias for `xemacs-chise-version'.
1564
1565 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1566
1567         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1568         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1569         defined.
1570
1571         * config.h.in (CHISE): New macro.
1572
1573 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1574
1575         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1576         of `ucs'.
1577         (Qmap_ucs): New variable.
1578         (syms_of_mule_charset): Add new symbol `=ucs'.
1579         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1580
1581         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1582         (simplify_char_spec): Likewise.
1583
1584         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1585
1586         * char-ucs.h (Qmap_ucs): New extern variable.
1587
1588 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1589
1590         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1591         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1592         don't define it when UTF2000 is not defined.
1593         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1594         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1595         when UTF2000 is not defined.
1596         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1597         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1598
1599 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1600
1601         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1602
1603         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1604         (Qucs_gb): Deleted.
1605         (syms_of_mule_charset): Delete `ucs-gb'.
1606         (complex_vars_of_mule_charset): Likewise.
1607
1608 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1609
1610         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1611
1612         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1613         (Qucs_cns): Deleted.
1614         (syms_of_mule_charset): Delete `ucs-cns'.
1615         (complex_vars_of_mule_charset): Likewise.
1616
1617 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1618
1619         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1620
1621         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1622         (Qucs_jis): Deleted.
1623         (syms_of_mule_charset): Delete `ucs-jis'.
1624         (complex_vars_of_mule_charset): Likewise.
1625
1626 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1627
1628         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1629
1630         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1631         (Qucs_ks): Deleted.
1632         (syms_of_mule_charset): Delete `ucs-ks'.
1633         (complex_vars_of_mule_charset): Likewise.
1634
1635 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1636
1637         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1638         (Qideograph_daikanwa_2): Deleted.
1639         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1640         (complex_vars_of_mule_charset): Likewise.
1641
1642         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1643         (LEADING_BYTE_DAIKANWA_1): Deleted.
1644         (LEADING_BYTE_DAIKANWA_2): Deleted.
1645         (MIN_CHAR_DAIKANWA): Deleted.
1646         (MAX_CHAR_DAIKANWA): Deleted.
1647
1648 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1649
1650         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1651         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1652         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1653
1654         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1655         (Vcharset_ideograph_daikanwa): Deleted.
1656         (Qideograph_hanziku_{1..12}): Deleted.
1657         (Qideograph_daikanwa): Deleted.
1658         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1659         Vcharset_ideograph_daikanwa.
1660         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1661         `ideograph-hanziku-{1..12}'.
1662         (complex_vars_of_mule_charset): Likewise.
1663
1664 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1665
1666         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1667
1668         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1669         (Qideograph_gt_pj_{1..11}): Deleted.
1670         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1671         (complex_vars_of_mule_charset): Likewise.
1672
1673 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1674
1675         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1676         (Vcharset_ideograph_gt): Deleted.
1677         (Qucs_big5): Deleted.
1678         (Qideograph_gt): Deleted.
1679         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1680         `ideograph-gt'.
1681         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1682         and `ideograph-gt'.
1683
1684         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1685         (LEADING_BYTE_GT): Deleted.
1686         (MIN_CHAR_GT): Deleted.
1687         (MAX_CHAR_GT): Deleted.
1688
1689 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1690
1691         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1692
1693 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1694
1695         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1696         (save_uint16_byte_table): Likewise.
1697         (save_byte_table): Likewise; convert values by it.
1698         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1699         for `ideographic-structure'.
1700         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1701         as the filter for `ideographic-structure'.
1702
1703 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1704
1705         * chartab.c (put_char_composition): New function.
1706         (Fput_char_attribute): Use `put_char_composition'; use
1707         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1708
1709         * fns.c (simplify_char_spec): New function.
1710         (char_ref_simplify_spec): New function.
1711         (Fchar_refs_simplify_char_specs): New function.
1712         (syms_of_fns): Add new builtin function
1713         `char-refs-simplify-char-specs'.
1714
1715 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1716
1717         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1718         (Qideograph_cbeta): Deleted.
1719         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1720         (complex_vars_of_mule_charset): Likewise.
1721
1722         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1723         (MIN_CHAR_CBETA): Comment out.
1724         (MAX_CHAR_CBETA): Likewise.
1725
1726 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1727
1728         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1729         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1730         CHISE client feature.
1731
1732 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1733
1734         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1735
1736 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1737
1738         * mule-charset.c (charset_lookup_description_1): Use
1739         `NUM_LEADING_BYTES' in UTF-2000.
1740
1741 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1742
1743         * char-ucs.h (GC_CHARSETP): Deleted.
1744
1745 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1746
1747         * char-ucs.h (MAX_CHAR_GT): Updated.
1748
1749 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1750
1751         * text-coding.c: Sync with XEmacs 21.4.10.
1752
1753 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1754
1755         * mule-charset.c (Vcharset_china3_jef): Deleted.
1756         (Qchina3_jef): Deleted.
1757         (syms_of_mule_charset): Don't define `china3-jef'.
1758         (complex_vars_of_mule_charset): Likewise.
1759
1760         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1761         (MIN_CHAR_CHINA3_JEF): Comment out.
1762         (MAX_CHAR_CHINA3_JEF): Comment out.
1763
1764 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1765
1766         * mule-charset.c (Vcharset_ucs_gb): New variable.
1767         (Qucs_gb): New variable.
1768         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1769         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1770
1771         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1772
1773 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1774
1775         * mule-charset.c (charset_code_point): if a coded-charset has a
1776         final-byte, don't inherit the builtin range of the mother CCS.
1777
1778 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1779
1780         * mule-charset.c (charset_code_point): Fix problem about
1781         inheritance.
1782
1783 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1784
1785         * mule-charset.c (decode_builtin_char): Reorganized.
1786
1787 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1788
1789         * text-coding.c (char_encode_as_entity_reference): Modify for
1790         `charset_code_point'.
1791         (char_encode_shift_jis): Likewise.
1792         (char_encode_big5): Likewise.
1793         (char_encode_utf8): Likewise.
1794         (char_encode_iso2022): Likewise.
1795
1796         * mule-charset.c (charset_code_point): Add new argument
1797         `defined_only'.
1798         (Fencode_char): Add new optional argument `defined_only'.
1799
1800         * chartab.c (put_char_table): Modify for `charset_code_point'.
1801
1802         * char-ucs.h (charset_code_point): Add new argument
1803         `defined_only'.
1804         (encode_char_1): Modify for `charset_code_point'.
1805
1806 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1807
1808         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1809         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1810
1811 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1812
1813         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1814         (Qjis_x0208): Likewise.
1815         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1816         XCHARSET_FINAL(charset).
1817         (charset_code_point): Modify condition for final-byte based
1818         builtin-chars.
1819         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1820         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1821         in UTF-2000; specify `=jis-x0208' as the mother of
1822         `japanese-jisx0208-1978', `japanese-jisx0208' and
1823         `japanese-jisx0208-1990' in UTF-2000.
1824
1825 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1826
1827         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1828
1829 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1830
1831         * text-coding.c (decode_coding_utf16): Support UTF-16.
1832         (char_encode_utf16): Fixed.
1833
1834 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1835
1836         * text-coding.c (Qutf16): New variable in MULE.
1837         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1838         (Fcoding_system_type): Add `utf-16' in MULE.
1839         (struct detection_state): Add a structure for utf16 in MULE.
1840         (detect_coding_type): Setup st->utf16.mask in MULE.
1841         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1842         MULE.
1843         (reset_encoding_stream): Use `char_encode_utf16' and
1844         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1845         (detect_coding_utf16): New function [incomplete].
1846         (decode_coding_utf16): New function [support only UCS-2].
1847         (char_encode_utf16): New function.
1848         (char_finish_utf16): New function.
1849         (syms_of_file_coding): Add new symbol `utf-16'; setup
1850         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1851
1852         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1853         UTF-2000.
1854         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1855         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1856
1857 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1858
1859         * chartab.c (put_char_table): When a charset is specified as a
1860         range in UTF-2000, don't support builtin characters.
1861
1862 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1863
1864         * mule-charset.c (decode_defined_char): Don't refer external
1865         database if Qunbound or Qnil are found.
1866         (Fsave_charset_mapping_table): Don't define it if
1867         HAVE_CHISE_CLIENT is not defined.
1868         (Freset_charset_mapping_table): New function.
1869         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1870         found in external database.
1871         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1872         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1873         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1874
1875 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1876
1877         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1878         not.
1879
1880 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1881
1882         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1883         Q_lowercase, Q_uppercase in UTF-2000.
1884
1885         * chartab.c (get_char_table): Add special code for the standard
1886         case table to use character attribute `->downcase' and
1887         `->uppercase' for case operations in UTF-2000.
1888
1889         * casetab.c (Qflippedcase): New variable in UTF-2000.
1890         (Q_lowercase): Likewise.
1891         (Q_uppercase): Likewise.
1892         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1893         and `->uppercase' in UTF-2000.
1894         (complex_vars_of_casetab): Assign attribute name `downcase' to
1895         downcase and CANON table of Vstandard_case_table in UTF-2000;
1896         assign attribute name `flippedcase' to upcase and EQV table of
1897         Vstandard_case_table in UTF-2000.
1898
1899 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1900
1901         * text-coding.c (decode_add_er_char): Support isolated-chars.
1902         (char_encode_as_entity_reference): Likewise.
1903
1904 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1905
1906         * emacs.c (Vutf_2000_lisp_directory): New variable.
1907         (Vconfigure_utf_2000_lisp_directory): Likewise.
1908         (complex_vars_of_emacs): Add new variable
1909         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1910
1911 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1912
1913         * char-ucs.h (DECODE_CHAR): Delete special code for
1914         `chinese-big5-1' and `chinese-big5-2'.
1915
1916         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1917         (Qbig5_2): Likewise.
1918         (decode_defined_char): Support CONVERSION_BIG5_1 and
1919         CONVERSION_BIG5_2.
1920         (decode_builtin_char): Likewise.
1921         (charset_code_point): Likewise.
1922         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1923         'conversion in UTF-2000.
1924         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1925         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1926         `chinese-big5-2' as children of `chinese-big5'.
1927
1928         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1929         (CONVERSION_BIG5_2): New macro.
1930
1931 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1932
1933         * text-coding.c (char_encode_big5): Support entity-reference.
1934
1935 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1936
1937         * text-coding.c (char_encode_as_entity_reference): New function.
1938         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1939
1940 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1941
1942         * text-coding.c (decode_coding_big5): Support entity-reference
1943         decoding feature.
1944
1945 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1946
1947         * text-coding.c (allocate_coding_system): Initialize initial
1948         charsets for CODESYS_UTF8.
1949         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1950         charset-g2 for CODESYS_UTF8.
1951         (decode_coding_utf8): Use charset-g0.
1952         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1953         to force variants to map to UCS.
1954
1955 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1956
1957         * text-coding.c (Qutf_8_mcs): New variable.
1958         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1959         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1960         instead of `utf-8' in UTF-2000.
1961
1962 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1963
1964         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1965         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1966         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1967         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1968         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1969         CONVERSION_96x96x96x96 are introduced.
1970         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1971         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1972         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1973
1974         * char-ucs.h (CONVERSION_94): New macro.
1975         (CONVERSION_96): New macro.
1976         (CONVERSION_94x94): New macro.
1977         (CONVERSION_96x96): New macro.
1978         (CONVERSION_94x94x94): New macro.
1979         (CONVERSION_96x96x96): New macro.
1980         (CONVERSION_94x94x94x60): New macro.
1981         (CONVERSION_94x94x94x94): New macro.
1982         (CONVERSION_96x96x96x96): New macro.
1983
1984 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1985
1986         * chartab.c (Vcharacter_variant_table): Deleted.
1987         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1988         of `Vcharacter_variant_table'.
1989         (Fput_char_attribute): Likewise.
1990         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1991         (complex_vars_of_chartab): Likewise.
1992
1993 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1994
1995         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1996
1997         * fns.c (Qideographic_structure): New variable.
1998         (Qkeyword_char): New variable.
1999         (ids_format_unit): New function.
2000         (Fideographic_structure_to_ids): New function.
2001         (syms_of_fns): Add new symbols `ideographic-structure' and
2002         `:char'; add new builtin function `ideographic-structure-to-ids'.
2003
2004         * data.c (Fchar_ref_p): New function.
2005         (syms_of_data): Add new builtin function `char-ref-p'.
2006
2007         * chartab.h: Add an EXFUN for `Ffind_char'.
2008
2009 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2010
2011         * text-coding.c (Vcharacter_composition_table): Deleted.
2012         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
2013         in every UTF-2000.
2014
2015         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
2016         UTF-2000.
2017         (Vcharacter_composition_table): Deleted.
2018         (Fget_composite_char): Use the implementation for external-DB
2019         support in every UTF-2000.
2020         (Fput_char_attribute): Likewise.
2021         (char_attribute_system_db_file): Don't define if external-DB
2022         feature is not available.
2023         (Fsave_char_attribute_table): Likewise.
2024         (Fmount_char_attribute_table): Likewise.
2025         (Fclose_char_attribute_table): Likewise.
2026         (Freset_char_attribute_table): Likewise.
2027         (Fload_char_attribute_table): Likewise.
2028         (syms_of_chartab): Don't define `save-char-attribute-table',
2029         `mount-char-attribute-table', `reset-char-attribute-table',
2030         `close-char-attribute-table' and `load-char-attribute-table' if
2031         external-DB feature is not available.
2032         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
2033
2034 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2035
2036         * text-coding.c (Qcomposition): Add extern if external-DB feature
2037         is supported.
2038         (Vcharacter_composition_table): Don't add extern if external-DB
2039         feature is supported.
2040         (COMPOSE_ADD_CHAR): Modify for new data-representation of
2041         character composition rule if external-DB feature is supported.
2042
2043         * chartab.c (Vcharacter_composition_table): Don't define if
2044         external-DB feature is supported.
2045         (Qcomposition): New variable.
2046         (Fget_composite_char): New implementation for external-DB support.
2047         (Fput_char_attribute): Use `composition' property of each
2048         character instead of `Vcharacter_composition_table' to store
2049         character-composition rules if external-DB feature is supported.
2050         (syms_of_chartab): Add new symbol `composition'.
2051         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
2052         external-DB feature is supported.
2053
2054 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2055
2056         * chartab.c (Vchar_db_stingy_mode): New variable.
2057         (load_char_attribute_maybe): Close database if
2058         Vchar_db_stingy_mode is not NIL.
2059         (Fload_char_attribute_table_map_function): Use
2060         `get_char_id_table_0' instead of `get_char_id_table'.
2061         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
2062
2063         * chartab.h (get_char_id_table_0): New inline function.
2064         (get_char_id_table): Use `get_char_id_table_0'.
2065
2066 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2067
2068         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
2069         and `COMPOSE_ADD_CHAR'.
2070         (decode_coding_iso2022): Use `decode_flush_er_chars'.
2071
2072 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2073
2074         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
2075         instead of `DECODE_ADD_UCS_CHAR'.
2076         (COMPOSE_ADD_CHAR): Likewise.
2077
2078 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2079
2080         * text-coding.c (decode_flush_er_chars): New inline function.
2081         (decode_add_er_char): New function.
2082         (decode_coding_utf8): Use `decode_flush_er_chars' and
2083         `decode_add_er_char'.
2084
2085 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2086
2087         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
2088         done before `decode_output_utf8_partial_char'.
2089
2090         * mule-charset.c (complex_vars_of_mule_charset): Specify
2091         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
2092         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
2093
2094 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2095
2096         * mule-charset.c (decode_defined_char): New function; search
2097         mother.
2098         (decode_builtin_char): Don't search mother if
2099         XCHARSET_MAX_CODE(charset) == 0.
2100         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
2101         == 0 even if code >= XCHARSET_MAX_CODE(charset).
2102         (Fdecode_char): Use `decode_defined_char' instead of
2103         `DECODE_DEFINED_CHAR'.
2104         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
2105         mother of `Vcharset_ucs_jis'.
2106
2107         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
2108         instead of `DECODE_DEFINED_CHAR'.
2109
2110         * char-ucs.h (decode_defined_char): Renamed from
2111         `DECODE_DEFINED_CHAR'; changed to normal function.
2112         (DECODE_CHAR): Use `decode_defined_char' instead of
2113         `DECODE_DEFINED_CHAR'.
2114
2115         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
2116
2117 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2118
2119         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
2120
2121         * text-coding.c (Vcoded_charset_entity_reference_alist): New
2122         variable.
2123         (Quse_entity_reference): New variable.
2124         (Qd): New variable.
2125         (Qx): New variable.
2126         (QX): New variable.
2127         (coding_system_description): Add description for
2128         `ccs_priority_list'.
2129         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
2130         (allocate_coding_system): Initialize `ccs_priority_list' in
2131         UTF-2000.
2132         (Fmake_coding_system): Add description about
2133         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
2134         (codesys).
2135         (Fcoding_system_property): Accept `disable-composition' and
2136         `use-entity-reference' in UTF-2000.
2137         (struct decoding_stream): Add new member `er_counter' and `er_buf'
2138         in UTF-2000.
2139         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
2140         (decode_coding_utf8): Decode entity-reference if
2141         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
2142         (char_encode_utf8): Encode non-Unicode characters as
2143         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
2144         (str->codesys).
2145         (syms_of_file_coding): Add new symbols `use-entity-reference',
2146         `d', `x', `X'.
2147         (vars_of_file_coding): Add new variable
2148         `coded-charset-entity-reference-alist'.
2149         (complex_vars_of_file_coding): Declare `disable-composition' and
2150         `use-entity-reference' to be coding-system-properties in UTF-2000.
2151
2152         * file-coding.h (struct Lisp_Coding_System): Add new member
2153         `use_entity_reference' and `ccs_priority_list'.
2154         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2155         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
2156         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2157
2158 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2159
2160         * chartab.c (save_uint8_byte_table): Don't clear the table.
2161         (save_uint16_byte_table): Likewise.
2162         (save_byte_table): Likewise.
2163         (Fmount_char_attribute_table): New function.
2164         (syms_of_chartab): Add new builtin function
2165         `mount-char-attribute-table'.
2166
2167 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2168
2169         * mule-charset.c (Fsave_charset_mapping_table): Open database as
2170         "w+" mode.
2171         (load_char_decoding_entry_maybe): Open database as read-only mode.
2172
2173         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
2174         open database as "w+" mode.
2175         (load_char_attribute_maybe): Open database as read-only mode.
2176         (Fload_char_attribute_table): Likewise.
2177
2178 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2179
2180         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
2181         (char_table_description): Delete member `db_file'.
2182         (Fmake_char_table): Don't refer `ct->db_file'.
2183         (Fcopy_char_table): Likewise.
2184         (Fsave_char_attribute_table): Likewise.
2185         (Fclose_char_attribute_table): Likewise.
2186         (Freset_char_attribute_table): Likewise.
2187         (load_char_attribute_maybe): Likewise.
2188         (Fload_char_attribute_table): Likewise.
2189
2190         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
2191
2192 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2193
2194         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
2195         (Fsave_char_attribute_table): Don't check `ct->db_file' if
2196         `ct->db' is living.
2197         (load_char_attribute_maybe): Likewise.
2198         (Fload_char_attribute_table): Likewise.
2199
2200 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2201
2202         * chartab.c (Fclose_char_attribute_table): Set Qnil on
2203         `ct->db_file' unconditionally.
2204
2205 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2206
2207         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
2208         UTF-2000.
2209         (char_table_description): Add description for `db_file' and `db'
2210         in UTF-2000.
2211         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
2212         UTF-2000.
2213         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
2214         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
2215         (Fclose_char_attribute_table): New function.
2216         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
2217         (load_char_attribute_maybe): Change interface; use `cit->db_file'
2218         and `cit->db'.
2219         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
2220         (syms_of_chartab): Add new builtin function
2221         `Fclose_char_attribute_table'.
2222
2223 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2224
2225         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
2226         `db' in UTF-2000.
2227         (load_char_attribute_maybe): Change interface.
2228         (get_char_id_table): Modify for `load_char_attribute_maybe'.
2229
2230 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2231
2232         * database.h: Add an EXFUN for `Fdatabase_live_p'.
2233
2234 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2235
2236         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
2237         instead of `DECODE_CHAR' for mother; don't use special code for
2238         chinese-big5 to use code space of chinese-big5-1 and
2239         chinese-big5-2.
2240         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
2241         `MAX_CHAR_BIG5_CDP' for chinese-big5.
2242
2243         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
2244         (MAX_CHAR_BIG5_CDP): Revival.
2245
2246 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2247
2248         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
2249         the XLFD registry-encoding name of `chinese-big5'.
2250
2251 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2252
2253         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
2254         (Qchinese_big5_cdp): Deleted.
2255         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
2256         (complex_vars_of_mule_charset): Delete coded-charset
2257         `chinese-big5-cdp'.
2258
2259         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
2260         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
2261         `CHARSET_ID_OFFSET - n' for private CCS.
2262         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
2263         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
2264         of `MIN_LEADING_BYTE'.
2265         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
2266         `(CHARSET_ID_OFFSET - 97)'.
2267         (MIN_CHAR_BIG5_CDP): Deleted.
2268         (MAX_CHAR_BIG5_CDP): Deleted.
2269
2270 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2271
2272         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
2273
2274 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2275
2276         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
2277         (vars_of_mule): Add new variable `utf-2000-version' [moved from
2278         chartab.c].
2279
2280         * chartab.c (Vutf_2000_version): Moved to mule.c.
2281         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
2282
2283 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2284
2285         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
2286         when HAVE_CHISE_CLIENT is not defined.
2287
2288         * mule.c (vars_of_mule): Provide feature `chise' when
2289         HAVE_CHISE_CLIENT is defined.
2290
2291 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2292
2293         * config.h.in (UTF2000): Add comment.
2294         (HAVE_CHISE_CLIENT): New macro.
2295
2296 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2297
2298         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
2299         CONSP.
2300         (Fput_char_attribute): Likewise.
2301         (char_attribute_system_db_file): Encode file-name of attribute.
2302         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
2303         the initial value.
2304
2305 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2306
2307         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
2308         (Fsave_charset_mapping_table): Use
2309         `char_attribute_system_db_file'.
2310         (load_char_decoding_entry_maybe): Likewise.
2311
2312         * chartab.h (Qsystem_char_id): New external variable.
2313         (char_attribute_system_db_file): New prototype.
2314
2315         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2316         (char_attribute_system_db_file): New function.
2317         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2318         (Freset_char_attribute_table): Likewise.
2319         (load_char_attribute_maybe): Likewise.
2320         (Fload_char_attribute_table): Likewise.
2321         (syms_of_chartab): Add new symbol `system-char-id'.
2322
2323 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2324
2325         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2326         `XCHARSET_GRAPHIC(ccs)'.
2327
2328 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2329
2330         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2331
2332 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2333
2334         * chartab.c (Q_ucs_variants): New variable.
2335         (syms_of_chartab): Add new symbol `->ucs-variants'.
2336         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2337         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2338         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2339
2340         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2341
2342         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2343         `HAVE_DATABASE' is defined.
2344         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2345         `HAVE_DATABASE' is defined.
2346
2347 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2348
2349         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2350         attribute-table.
2351         (Freset_char_attribute_table): New function.
2352         (syms_of_chartab): Add new builtin function
2353         `reset-char-attribute-table'.
2354
2355 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2356
2357         * chartab.c (load_char_attribute_maybe): Don't make directories.
2358
2359 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2360
2361         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2362
2363         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2364         for decoding-table.
2365
2366 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2367
2368         * mule-charset.c (Fsave_charset_mapping_table): Use
2369         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2370
2371         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2372         instead of `XCHARSET_CHARS'.
2373
2374 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2375
2376         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2377         (XCHARSET_BYTE_SIZE): Likewise.
2378
2379         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2380         mule-charset.c].
2381         (XCHARSET_BYTE_SIZE): Likewise.
2382
2383 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2384
2385         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2386         data-directory to store database.
2387         (Fsave_char_attribute_table): Likewise.
2388         (load_char_attribute_maybe): Likewise.
2389         (Fload_char_attribute_table): Likewise.
2390
2391 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2392
2393         * mule-charset.c (Fsave_charset_mapping_table): New function.
2394         (syms_of_mule_charset): Add new builtin function
2395         `save-charset-mapping-table'.
2396
2397 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2398
2399         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2400         (get_ccs_octet_table): New inline function.
2401         (put_ccs_octet_table): Likewise.
2402         (decoding_table_put_char): Use `get_ccs_octet_table' and
2403         `put_ccs_octet_table'.
2404         (decoding_table_remove_char): Use `decoding_table_put_char'.
2405         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2406
2407         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2408         into encoding_table.
2409         (make_charset): Use Qunbound instead Qnil as initial value of
2410         decoding_table.
2411
2412 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2413
2414         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2415         element is Qunloaded.
2416         (map_over_uint16_byte_table): Likewise.
2417         (map_over_byte_table): Likewise.
2418         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2419         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2420         database support, load encoding-table of the specified
2421         coded-charset if it is not loaded yet.
2422         (save_uint8_byte_table): New function of UTF-2000 with external
2423         database support.
2424         (save_uint16_byte_table): Likewise.
2425         (save_byte_table): Likewise.
2426         (Fput_char_attribute): Don't store value into external database
2427         even if the external database feature is supported in UTF-2000;
2428         set `attribute' as name of char-table if the external database
2429         feature is supported.
2430         (Fsave_char_attribute_table): New function in UTF-2000.
2431         (syms_of_chartab): Add new builtin function
2432         `save-char-attribute-table' in UTF-2000.
2433
2434 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2435
2436         * chartab.c (char_attribute_table_to_put): New variable in
2437         UTF-2000.
2438         (Qput_char_table_map_function): Likewise.
2439         (value_to_put): Likewise.
2440         (Fput_char_table_map_function): New function in UTF-2000.
2441         (put_char_table): Use `Fmap_char_attribute' for
2442         CHARTAB_RANGE_CHARSET in UTF-2000.
2443         (Fput_char_attribute): Store symbol instead of string in
2444         `XCHAR_TABLE_NAME (table)'.
2445         (load_char_attribute_maybe): Likewise.
2446         (syms_of_chartab): Add new symbol/function
2447         `put-char-table-map-function'.
2448
2449 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2450
2451         * database.h: Add new EXFUN for `Fmap_database'.
2452
2453         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2454         (syms_of_database): Likewise.
2455
2456         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2457         UTF-2000.
2458         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2459         (XCHAR_TABLE_UNLOADED): Likewise.
2460
2461         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2462         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2463         HAVE_DATABASE is defined.
2464         (char_attribute_table_to_load): New variable of UTF-2000 with
2465         external database support.
2466         (Qload_char_attribute_table_map_function): Likewise.
2467         (Fload_char_attribute_table_map_function): New function of
2468         UTF-2000 with external database support.
2469         (Fload_char_attribute_table): New function of UTF-2000.
2470         (Fmap_char_attribute): Call Fload_char_attribute_table if
2471         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2472         (syms_of_chartab): Add new symbol and function
2473         `load-char-attribute-table-map-function' in UTF-2000 with external
2474         database support; add new function `load-char-attribute-table' in
2475         UTF-2000.
2476
2477 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2478
2479         * chartab.h (load_char_attribute_maybe): New prototype for
2480         UTF-2000 with DATABASE support.
2481         (get_char_id_table): Use `load_char_attribute_maybe' if
2482         HAVE_DATABASE is defined.
2483
2484         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2485         with DATABASE support.
2486
2487 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2488
2489         * chartab.c (Fput_char_attribute): Use S-expression as key of
2490         external database.
2491
2492         * chartab.h (get_char_id_table): Use S-expression as key of
2493         external database.
2494
2495 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2496
2497         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2498         if an element is not loaded, load the corresponding attributes
2499         from an external database.
2500         (map_over_uint16_byte_table): Likewise.
2501         (map_over_byte_table): Likewise.
2502         (map_char_table): Modify for `map_over_uint8_byte_table',
2503         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2504         element is not loaded, load the corresponding attributes from an
2505         external database.
2506         (Fput_char_attribute): Change initial values to Qunloaded.
2507
2508         * chartab.h (get_char_id_table): If a character attribute is not
2509         loaded and the attribute value is not found in an external
2510         database, store Qunbound as the attribute value.
2511
2512 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2513
2514         * chartab.c (BT_UINT8_unloaded): New macro.
2515         (UINT8_VALUE_P): Accept Qunloaded.
2516         (UINT8_ENCODE): Likewise.
2517         (UINT8_DECODE): Likewise.
2518         (BT_UINT16_unloaded): New macro.
2519         (UINT16_VALUE_P): Accept Qunloaded.
2520         (UINT16_ENCODE): Likewise.
2521         (UINT16_DECODE): Likewise.
2522         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2523         BT_UINT16_unloaded.
2524         (mark_char_table): Mark `ct->name' in UTF-2000.
2525         (char_table_description): Add `name' in UTF-2000.
2526         (Fmake_char_table): Initialize `ct->name'.
2527         (Fcopy_char_table): Copy `ct->name'.
2528         (Fput_char_attribute): Store value into an external database if
2529         HAVE_DATABASE is defined.
2530
2531         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2532         UTF-2000.
2533         (CHAR_TABLE_NAME): New macro in UTF-2000.
2534         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2535         (get_char_id_table): Try to read an external database if Qunloaded
2536         is stored in a table.
2537
2538         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2539         Qunloaded.
2540
2541 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2542
2543         * database.h: Add EXFUN definitions for Fopen_database,
2544         Fput_database, Fget_database and Fclose_database.
2545
2546         * data.c (Qunloaded): New variable in UTF-2000.
2547
2548         * lisp.h (Qunloaded): New variable in UTF-2000.
2549
2550 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2551
2552         * mule-charset.c (put_char_ccs_code_point): Modify for
2553         `decoding_table_remove_char' and `decoding_table_put_char'.
2554         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2555
2556         * char-ucs.h (decoding_table_remove_char): Change arguments to
2557         hide decoding_table vector.
2558         (decoding_table_put_char): Likewise.
2559
2560 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2561
2562         * mule-charset.c (decoding_table_remove_char): Moved to
2563         char-ucs.h.
2564         (decoding_table_put_char): Likewise.
2565
2566         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2567         from mule-charset.c].
2568         (decoding_table_remove_char): New inline function [moved from
2569         mule-charset.c].
2570         (decoding_table_put_char): Likewise.
2571
2572 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2573
2574         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2575         extension.
2576
2577 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2578
2579         * mule-charset.c (decode_builtin_char): Support mother charsets.
2580
2581 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2582
2583         * mule-charset.c (Q94x94x60): New variable.
2584         (charset_code_point): Support conversion `94x94x60'.
2585         (Fmake_charset): Likewise.
2586         (syms_of_mule_charset): Add new symbol `94x94x60'.
2587
2588         * char-ucs.h (CONVERSION_94x94x60): New macro.
2589
2590 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2591
2592         * mule-charset.c (charset_code_point): Unify code about
2593         `code-offset'.
2594
2595 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2596
2597         * mule-charset.c (charset_code_point): Merge code about builtin
2598         characters into code about mother charsets; don't use
2599         `range_charset_code_point'.
2600         (range_charset_code_point): Deleted.
2601
2602 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2603
2604         * mule-charset.c (Qcode_offset): New variable.
2605         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2606         `max-code'; accept new property `code-offset'.
2607         (syms_of_mule_charset): Add new symbol `code-offset'.
2608
2609 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2610
2611         * mule-charset.c (range_charset_code_point): Fixed.
2612
2613 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2614
2615         * mule-charset.c (decode_builtin_char): Change semantics of
2616         code-offset of coded-charset.
2617         (charset_code_point): Likewise.
2618         (range_charset_code_point): Likewise.
2619         (complex_vars_of_mule_charset): Modify for the change.
2620
2621 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2622
2623         * mule-charset.c (Fencode_char): Reverse arguments.
2624
2625         * mule-charset.c (charset_code_point): Fixed.
2626
2627 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2628
2629         * mule-charset.c (Vcharset_mojikyo): Deleted.
2630         (Vcharset_mojikyo_2022_1): Deleted.
2631         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2632         (Qmin_code): New variable in UTF-2000.
2633         (Qmax_code): Likewise.
2634         (Qmother): Likewise.
2635         (Qconversion): Likewise.
2636         (Q94x60): Likewise.
2637         (Qmojikyo): Deleted.
2638         (Qmojikyo_2022_1): Deleted.
2639         (Qmojikyo_pj_{1..22}): Deleted.
2640         (mark_charset): Mark `cs->mother'.
2641         (charset_description): Add description for `mother'.
2642         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2643         new arguments `mother' and `conversion'; use
2644         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2645         (charset_code_point): Moved from char-ucs.h; support `mother'
2646         charset feature.
2647         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2648         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2649         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2650         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2651         allow 2 as the value of `graphic' in UTF-2000; add new properties
2652         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2653         require `final' in UTF-2000; modify for `make_charset'.
2654         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2655         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2656         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2657         (Fencode_char): New function.
2658         (syms_of_mule_charset): Add new builtin function `encode-char' in
2659         UTF-2000; add new symbols `min-code', `max-code', `mother',
2660         `conversion' and `94x60'; delete symbols `mojikyo',
2661         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2662         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2663         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2664         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2665
2666         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2667         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2668
2669         * char-ucs.h (Vcharset_mojikyo): Deleted.
2670         (Vcharset_mojikyo_2022_1): Deleted.
2671         (LEADING_BYTE_MOJIKYO): Deleted.
2672         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2673         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2674         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2675         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2676         add new member `mother'; add new member `conversion'.
2677         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2678         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2679         (CHARSET_MOTHER): New macro.
2680         (CHARSET_CONVERSION): New macro.
2681         (CONVERSION_IDENTICAL): New macro.
2682         (CONVERSION_94x60): New macro.
2683         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2684         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2685         (XCHARSET_MOTHER): New macro.
2686         (XCHARSET_CONVERSION): New macro.
2687         (MIN_CHAR_MOJIKYO): Deleted.
2688         (MAX_CHAR_MOJIKYO): Deleted.
2689         (DECODE_MOJIKYO_2022): Deleted.
2690         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2691         (charset_code_point): Changed to non-inline function.
2692         (encode_char_1): Use `charset_code_point'.
2693         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2694
2695 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2696
2697         * lread.c (read_compiled_function): Fix prototype.
2698         (read_vector): Likewise.
2699
2700 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2701
2702         * lrecord.h (struct lrecord_header): Delete `older'.
2703         (set_lheader_implementation): Delete code for `older'.
2704         (set_lheader_older_implementation): Deleted.
2705         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2706         (OLDER_RECORD_P): Deleted.
2707         (OLDER_RECORD_HEADER_P): Deleted.
2708         (alloc_older_lcrecord): Deleted.
2709         (alloc_older_lcrecord_type): Deleted.
2710
2711         * alloc.c (all_older_lcrecords): Deleted.
2712         (alloc_older_lcrecord): Deleted.
2713         (disksave_object_finalization_1): Delete code for older objects.
2714         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2715         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2716
2717 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2718
2719         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2720         instead of `make_older_vector'.
2721         (put_char_ccs_code_point): Likewise.
2722         (mark_charset): Mark `cs->decoding_table'.
2723         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2724
2725         * lisp.h (make_older_vector): Deleted.
2726         (make_vector_newer): Deleted.
2727
2728         * config.h.in (HAVE_GGC): Deleted.
2729
2730         * alloc.c (make_older_vector): Deleted.
2731         (make_vector_newer_1): Deleted.
2732         (make_vector_newer): Deleted.
2733
2734 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2735
2736         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2737         (Qideograph_daikanwa_2): New variable.
2738         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2739         (complex_vars_of_mule_charset): Add new coded-charset
2740         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2741         `LEADING_BYTE_DAIKANWA'.
2742
2743         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2744         (LEADING_BYTE_DAIKANWA_1): New macro.
2745         (LEADING_BYTE_DAIKANWA_2): New macro.
2746         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2747
2748 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2749
2750         * mule-charset.c (complex_vars_of_mule_charset): Change
2751         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2752         the second revised version.
2753
2754 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2755
2756         * mule-charset.c (Vcharset_ucs_smp): New variable.
2757         (Vcharset_ucs_sip): New variable.
2758         (Qucs_smp): New variable.
2759         (Qucs_sip): New variable.
2760         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2761         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2762         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2763         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2764         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2765         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2766
2767         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2768         (LEADING_BYTE_UCS_SIP): New macro.
2769         (MIN_CHAR_SMP): New macro.
2770         (MAX_CHAR_SMP): New macro.
2771         (MIN_CHAR_SIP): New macro.
2772         (MAX_CHAR_SIP): New macro.
2773
2774 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2775
2776         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2777         utf-2000.
2778
2779 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2780
2781         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2782         value; don't store value into `encoding_table' of `Lisp_Charset'.
2783         (mark_charset): `encoding_table' was deleted.
2784         (charset_description): Likewise.
2785         (make_charset): Likewise.
2786         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2787         `put_char_ccs_code_point'.
2788
2789         * chartab.h (Fput_char_attribute): New EXFUN.
2790
2791         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2792         is unified with normal symbol space.
2793         (Fget_char_attribute): Likewise.
2794         (Fput_char_attribute): Likewise; behavior of
2795         `put_char_ccs_code_point' is changed.
2796
2797         * char-ucs.h: Include "elhash.h".
2798         (Vchar_attribute_hash_table): New external variable.
2799         (struct Lisp_Charset): Delete `encoding_table'.
2800         (CHARSET_ENCODING_TABLE): New implementation; refer
2801         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2802         `Lisp_Charset'.
2803
2804 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2805
2806         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2807         (cs) == 0.
2808
2809 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2810
2811         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2812         `chinese-big5'.
2813
2814 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2815
2816         * chartab.c (uint8_byte_table_description): New constant.
2817         (uint8-byte-table): Use `uint8_byte_table_description'.
2818         (uint16_byte_table_description): New constant.
2819         (uint16-byte-table): Use `uint16_byte_table_description'.
2820
2821 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2822
2823         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2824         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2825
2826 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2827
2828         * mule-charset.c (Vcharset_ucs_ks): New variable.
2829         (Qucs_ks): New variable.
2830         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2831         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2832
2833         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2834
2835 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2836
2837         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2838         (Fdecode_char): Likewise.
2839
2840         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2841         chartab.h.
2842         (Fdefine_char): Modify for Fdecode_char.
2843         (Ffind_char): Likewise.
2844
2845         * mule-charset.c (Fdecode_char): Add new optional argument
2846         `defined-only'.
2847         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2848
2849 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2850
2851         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2852         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2853         (allocate_coding_system): Initialize initial-charsets of
2854         CODESYS_BIG5 in XEmacs UTF-2000.
2855         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2856         CODESYS_BIG5 in XEmacs UTF-2000.
2857         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2858         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2859
2860         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2861         variables.
2862         (Qideograph_hanziku_{1 .. 12}): Likewise.
2863         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2864         .. 12}'.
2865         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2866         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2867         `ideograph-hanziku-{1 .. 12}'.
2868
2869         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2870         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2871         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2872         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2873         (DECODE_DEFINED_CHAR): New inline function.
2874         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2875
2876 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2877
2878         * mule-charset.c (Vcharset_china3_jef): Renamed from
2879         `Vcharset_japanese_jef_china3'.
2880         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2881         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2882         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2883         (syms_of_mule_charset): Rename `china3-jef' from
2884         `japanese-jef-china3'.
2885         (complex_vars_of_mule_charset): Likewise; rename
2886         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2887
2888         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2889         `LEADING_BYTE_JEF_CHINA3'.
2890         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2891         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2892
2893 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2894
2895         * mule-charset.c (encode_builtin_char_1): Comment out special code
2896         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2897
2898         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2899         (MAX_CHAR_MOJIKYO_0): Comment out.
2900         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2901         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2902         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2903         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2904
2905 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2906
2907         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2908         (Qideograph_cbeta): New variable.
2909         (encode_builtin_char_1): Comment out special code for
2910         coded-charset `mojikyo' and `japanese-jef-china3'.
2911         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2912         (complex_vars_of_mule_charset): Add new coded-charset
2913         `ideograph-cbeta'.
2914
2915         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2916         (MIN_CHAR_CBETA): New macro.
2917         (MAX_CHAR_CBETA): New macro.
2918
2919 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2920
2921         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2922         (LEADING_BYTE_JEF_CHINA3): New macro.
2923         (MIN_CHAR_JEF_CHINA3): New macro.
2924         (MAX_CHAR_JEF_CHINA3): Likewise.
2925         (DECODE_CHAR): Fixed.
2926
2927 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2928
2929         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2930         (Qjapanese_jef_china3): New variable.
2931         (encode_builtin_char_1): Support `japanese-jef-china3'.
2932         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2933         (complex_vars_of_mule_charset): Add new coded-charset
2934         `japanese-jef-china3'.
2935
2936 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2937
2938         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2939         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2940         94^4, 96^3, 96^4, 128^n and 256^n set.
2941         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2942         (map_char_table): Likewise.
2943
2944 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2945
2946         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2947         UTF-2000.
2948
2949 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2950
2951         * chartab.h (get_char_id_table): New inline function.
2952
2953         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2954         function.
2955
2956 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2957
2958         * chartab.h (decode_char_table_range): New prototype in XEmacs
2959         UTF-2000.
2960         (put_char_id_table): New inline function in XEmacs UTF-2000.
2961
2962         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2963         function.
2964         (decode_char_table_range): Delete static declaration in XEmacs
2965         UTF-2000.
2966
2967 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2968
2969         * chartab.c (put_char_id_table): Use `put_char_table'.
2970
2971 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2972
2973         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2974         (map_over_uint16_byte_table): Likewise.
2975         (map_over_byte_table): Likewise.
2976         (map_char_table): Modify for `map_over_uint8_byte_table',
2977         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2978         UTF-2000.
2979
2980 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2981
2982         * chartab.c (struct map_char_table_for_charset_arg): New
2983         structure.
2984         (map_char_table_for_charset_fun): New function.
2985         (map_char_table): Use `map_char_table' for encoding_table of
2986         `range->charset'.
2987
2988 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2989
2990         * chartab.c (map_char_table): Check a character is found in
2991         range->charset instead of non default value is defined in
2992         char-table when range is CHARTAB_RANGE_ROW.
2993
2994 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2995
2996         * chartab.c (map_char_id_table): Deleted.
2997         (Fmap_char_attribute): Use `map_char_table' instead of
2998         `map_char_id_table'.
2999
3000 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3001
3002         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
3003         UTF-2000.
3004         (update_syntax_table): Deleted in XEmacs UTF-2000.
3005
3006         * syntax.c (find_defun_start): Use `syntax_table' instead of
3007         `mirror_syntax_table' in XEmacs UTF-2000.
3008         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
3009         UTF-2000.
3010         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
3011         XEmacs UTF-2000.
3012         (Fmatching_paren): Likewise.
3013         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
3014         in XEmacs UTF-2000.
3015         (find_start_of_comment): Likewise.
3016         (find_end_of_comment): Likewise.
3017         (Fforward_comment): Likewise.
3018         (scan_lists): Likewise.
3019         (char_quoted): Likewise.
3020         (Fbackward_prefix_chars): Likewise.
3021         (scan_sexps_forward): Likewise.
3022         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
3023         (update_syntax_table): Likewise.
3024
3025         * search.c (skip_chars): Use `syntax_table' instead of
3026         `mirror_syntax_table' in XEmacs UTF-2000.
3027         (wordify): Likewise.
3028         (Freplace_match): Likewise.
3029
3030         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
3031         `mirror_syntax_table' in XEmacs UTF-2000.
3032         (WORDCHAR_P_UNSAFE): Likewise.
3033         (re_match_2_internal): Likewise.
3034
3035         * font-lock.c (find_context): Use `buf->syntax_table' instead of
3036         `buf->mirror_syntax_table' in XEmacs UTF-2000.
3037
3038         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
3039         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
3040
3041         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
3042         XEmacs UTF-2000.
3043
3044         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
3045         UTF-2000.
3046         (print_char_table): Print `default_value' in XEmacs UTF-2000.
3047         (char_table_description): Delete `mirror_table' in XEmacs
3048         UTF-2000.
3049         (fill_char_table): Don't call `update_syntax_table' in XEmacs
3050         UTF-2000.
3051         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
3052         (Fcopy_char_table): Likewise.
3053         (put_char_table): Don't call `update_syntax_table' in XEmacs
3054         UTF-2000.
3055
3056         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
3057         `buf->mirror_syntax_table' in XEmacs UTF-2000.
3058         (casify_region_internal): Likewise.
3059
3060         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
3061
3062         * buffer.c (common_init_complex_vars_of_buffer): Don't use
3063         `mirror_syntax_table' in XEmacs UTF-2000.
3064
3065         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
3066         `buf->mirror_syntax_table' in XEmacs UTF-2000.
3067         (Fexpand_abbrev): Likewise.
3068
3069 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3070
3071         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
3072
3073 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3074
3075         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
3076         (map_over_uint16_byte_table): Likewise.
3077         (map_over_byte_table): Likewise.
3078         (get_char_id_table): Refer `cit->default_value'.
3079         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
3080         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
3081         of character-id ranges.
3082         (mark_char_table): Mark `ct->default_value'.
3083         (char_table_description): Add `default_value'.
3084         (fill_char_table): Use `default_value'.
3085         (decode_char_table_range): Decode `nil' as
3086         `CHARTAB_RANGE_DEFAULT'.
3087         (get_char_id_table): Refer `cit->default_value'.
3088         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
3089         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
3090         temporary hack; check value of char-table is bound or not.
3091         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
3092
3093         * chartab.h (struct Lisp_Char_Table): Add new member
3094         `default_value' in XEmacs UTF-2000.
3095         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
3096         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
3097         UTF-2000.
3098
3099 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3100
3101         * chartab.h (Lisp_Char_ID_Table): Deleted.
3102
3103         * chartab.c (char_table_description): Fix typo.
3104         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
3105         `Lisp_Char_ID_Table'.
3106
3107 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3108
3109         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
3110         `CHAR_ID_TABLE_P'.
3111
3112         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
3113         `CHAR_ID_TABLE_P'.
3114
3115         * chartab.h (XCHAR_ID_TABLE): Deleted.
3116         (XSETCHAR_ID_TABLE): Deleted.
3117         (CHAR_ID_TABLE_P): Deleted.
3118
3119         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
3120         `CHAR_ID_TABLE_P'.
3121         (Fget_composite_char): Likewise.
3122         (put_char_table): Likewise.
3123         (add_char_attribute_alist_mapper): Fixed.
3124         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
3125         `CHAR_ID_TABLE_P'.
3126         (Fget_char_attribute): Likewise.
3127         (Fget_char_attribute): Likewise.
3128         (Fmap_char_attribute): Likewise.
3129
3130         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
3131         `CHAR_ID_TABLE_P'.
3132         (encode_char_1): Likewise.
3133
3134 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3135
3136         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
3137         `XCHAR_ID_TABLE'.
3138
3139         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
3140         instead of `XCHAR_ID_TABLE'.
3141         (remove_char_ccs): Likewise.
3142
3143         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
3144         `XCHAR_ID_TABLE'.
3145         (Fget_composite_char): Likewise.
3146         (Fchar_variants): Likewise.
3147         (put_char_table): Likewise.
3148         (add_char_attribute_alist_mapper): Likewise.
3149         (Fchar_attribute_alist): Likewise.
3150         (Fget_char_attribute): Likewise.
3151         (Fput_char_attribute): Likewise.
3152         (Fmap_char_attribute): Likewise.
3153         (Fmap_char_attribute): Likewise.
3154
3155         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
3156         `XCHAR_ID_TABLE'.
3157         (encode_char_1): Likewise.
3158
3159 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3160
3161         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
3162         `Lisp_Char_ID_Table'.
3163         (mark_char_id_table): Deleted.
3164         (print_char_id_table): Likewise.
3165         (char_id_table_equal): Likewise.
3166         (char_id_table_hash): Likewise.
3167         (char_id_table_description): Likewise.
3168         (char_id_table): Likewise.
3169         (make_char_id_table): Use `Fmake_char_table' and
3170         `fill_char_table'.
3171         (get_char_id_table): Use `Lisp_Char_Table' instead of
3172         `Lisp_Char_ID_Table'.
3173         (put_char_id_table): Likewise.
3174         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
3175         `XCHAR_ID_TABLE'.
3176         (Fremove_char_attribute): Likewise.
3177         (syms_of_chartab): Don't define type `char-id-table'.
3178
3179         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
3180         (char_id_table): Likewise.
3181         (GC_CHAR_ID_TABLE_P): Likewise.
3182         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
3183         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
3184         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
3185         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
3186         (get_char_id_table): Use `Lisp_Char_Table' instead of
3187         `Lisp_Char_ID_Table'.
3188         (put_char_id_table_0): Likewise.
3189         (put_char_id_table): Likewise.
3190
3191 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3192
3193         * chartab.h: Lisp_Byte_Table related codes are moved from
3194         chartab.h.
3195
3196         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
3197
3198 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3199
3200         * chartab.h: Don't include "chartab.h".
3201         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
3202         (Lisp_Char_ID_Table): Likewise.
3203         (char_id_table): Likewise.
3204         (XCHAR_ID_TABLE): Likewise.
3205         (XSETCHAR_ID_TABLE): Likewise.
3206         (CHAR_ID_TABLE_P): Likewise.
3207         (GC_CHAR_ID_TABLE_P): Likewise.
3208         (get_char_id_table): Likewise.
3209
3210         * char-ucs.h: Include "chartab.h".
3211         (struct Lisp_Char_ID_Table): Moved to chartab.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 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3221
3222         * chartab.c (copy_uint8_byte_table): New function.
3223         (copy_uint16_byte_table): New function.
3224         (copy_byte_table): New function.
3225         (map_over_uint8_byte_table): Modify to avoid huge numbers of
3226         characters to call.
3227         (map_over_uint16_byte_table): Likewise.
3228         (map_over_byte_table): Likewise.
3229         (get_byte_table): Move prototype to chartab.h.
3230         (put_byte_table): Likewise.
3231         (put_char_id_table_0): Moved to chartab.h.
3232         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
3233         (char_table_entry_equal): Likewise.
3234         (char_table_entry_hash): Likewise.
3235         (char_table_entry_description): Likewise.
3236         (char_table_entry): Likewise.
3237         (make_char_table_entry): Likewise.
3238         (copy_char_table_entry): Likewise.
3239         (get_non_ascii_char_table_value): Likewise.
3240         (map_over_charset_ascii): Likewise.
3241         (map_over_charset_control_1): Likewise.
3242         (map_over_charset_row): Likewise.
3243         (map_over_other_charset): Likewise.
3244         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
3245         (print_char_table): Likewise.
3246         (char_table_equal): Likewise.
3247         (char_table_hash): Likewise.
3248         (char_table_description): Likewise.
3249         (fill_char_table): Likewise.
3250         (Fcopy_char_table): Likewise.
3251         (get_char_table): Likewise.
3252         (Fget_range_char_table): Likewise.
3253         (put_char_table): Likewise.
3254         (map_char_table): Likewise.
3255         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
3256         UTF-2000.
3257
3258 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3259
3260         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
3261         `Vauto_fill_chars' in XEmacs UTF-2000.
3262
3263         * chartab.h (get_byte_table): New prototype [moved from
3264         chartab.c].
3265         (put_byte_table): Likewise [moved from chartab.c].
3266         (put_char_id_table_0): New inline function [moved from chartab.c].
3267         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
3268         (Lisp_Char_Table_Entry): Likewise.
3269         (char_table_entry): Likewise.
3270         (XCHAR_TABLE_ENTRY): Likewise.
3271         (XSETCHAR_TABLE_ENTRY): Likewise.
3272         (CHAR_TABLE_ENTRYP): Likewise.
3273         (CHECK_CHAR_TABLE_ENTRY): Likewise.
3274         (NUM_ASCII_CHARS): Likewise.
3275         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
3276         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
3277
3278 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3279
3280         * chartab.c (get_char_id_table): Change interface.
3281         (put_char_id_table_0): New function.
3282         (put_char_id_table): Change interface; new implementation.
3283         (Fget_composite_char): Modify for interface change of
3284         `get_char_id_table'.
3285         (Fchar_variants): Likewise.
3286         (add_char_attribute_alist_mapper): Likewise.
3287         (Fchar_attribute_alist): Likewise.
3288         (Fget_char_attribute): Likewise.
3289         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
3290         as same as character as the first argument like `put-char-table';
3291         modify for interface change of `put_char_id_table'.
3292         (Fremove_char_attribute): Modify for interface change of
3293         `put_char_id_table'.
3294
3295 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3296
3297         * text-coding.c: Sync up with XEmacs 21.2.41.
3298         (COMPOSE_ADD_CHAR): Modify for interface change of
3299         `get_char_id_table'.
3300
3301         * mule-charset.c (put_char_ccs_code_point): Modify for interface
3302         change of `put_char_id_table'.
3303         (remove_char_ccs): Likewise.
3304
3305         * chartab.h (put_char_id_table): Change interface.
3306
3307         * char-ucs.h (get_char_id_table): Change interface.
3308         (charset_code_point): Modify for interface change of
3309         `get_char_id_table'.
3310         (encode_char_1): Likewise.
3311
3312 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3313
3314         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3315         argument `ccs'.
3316         (map_over_uint16_byte_table): Likewise.
3317         (map_over_byte_table): Likewise.
3318         (map_char_id_table): Add new argument `range' like
3319         `map_char_table'.
3320         (Fmap_char_attribute): Add new argument `range' like
3321         `Fmap_char_table'.
3322
3323 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3324
3325         * chartab.c (map_over_uint8_byte_table): Change interface of
3326         mapping function to use struct chartab_range instead of Emchar.
3327         (map_over_uint16_byte_table): Likewise.
3328         (map_over_byte_table): Likewise.
3329         (map_char_id_table): Likewise.
3330         (struct slow_map_char_id_table_arg): Deleted.
3331         (slow_map_char_id_table_fun): Deleted.
3332         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3333         function `slow_map_char_table_fun' instead of struct
3334         `slow_map_char_id_table_arg' and function
3335         `slow_map_char_id_table_fun'.
3336
3337 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3338
3339         * mule-charset.c: Move char-it-table related codes to chartab.c.
3340         (Vutf_2000_version): Moved to chartab.c.
3341         (Fdefine_char): Likewise.
3342         (Ffind_char): Likewise.
3343         (syms_of_mule_charset): Move types `uint8-byte-table',
3344         `uint16-byte-table', `byte-table' and `char-id-table' to
3345         chartab.c; move functions `char_attribute_list,
3346         `find_char_attribute_table, `char_attribute_alist,
3347         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3348         `map_char_attribute, `define_char, `find_char, `char_variants and
3349         `get_composite_char to chartab.c; move symbols `=>ucs',
3350         `->decomposition', `compat', `isolated', `initial', `medial',
3351         `final', `vertical', `noBreak', `fraction', `super', `sub',
3352         `circle', `square', `wide', `narrow', `small' and `font' to
3353         chartab.c.
3354         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3355         setting codes for `Vcharacter_composition_table' and
3356         `Vcharacter_variant_table' to chartab.c.
3357         (complex_vars_of_mule_charset): Move setting code for
3358         `Vchar_attribute_hash_table' to chartab.c.
3359
3360         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3361         (make_char_id_table): New prototype.
3362         (put_char_id_table): Likewise.
3363         (Fget_char_attribute): Likewise.
3364
3365         * chartab.c: Move char-id-table related code from mule-charset.c.
3366         (Vutf_2000_version): Moved from mule-charset.c.
3367
3368         * char-ucs.h (Qucs): New external variable.
3369         (put_char_ccs_code_point): New prototype.
3370         (remove_char_ccs): Likewise.
3371
3372 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3373
3374         * mule-charset.c (Vcharset_ucs_jis): New variable.
3375         (Qucs_jis): Likewise.
3376         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3377         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3378
3379         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3380
3381 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3382
3383         * mule-charset.c (map_over_uint8_byte_table): New function.
3384         (map_over_uint16_byte_table): Likewise.
3385         (map_over_byte_table): Likewise.
3386         (map_char_id_table): Likewise.
3387         (slow_map_char_id_table_fun): Likewise.
3388         (Fmap_char_attribute): Likewise.
3389         (syms_of_mule_charset): Add new function `map-char-attribute'.
3390
3391 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3392
3393         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3394         (syms_of_mule_charset): Add new function `find-char'.
3395
3396 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3397
3398         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3399         XEmacs UTF-2000.
3400         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3401         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3402         XEmacs UTF-2000.
3403         (complex_vars_of_mule_charset): Add new coded-charset
3404         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3405         `ideograph-gt-pj-*'.
3406
3407         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3408
3409 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3410
3411         * mule-charset.c (encode_builtin_char_1): Purge codes about
3412         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3413         {MIN|MAX}_CHAR_HEBREW.
3414         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3415         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3416
3417         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3418         (MAX_CHAR_GREEK): Purged.
3419         (MIN_CHAR_CYRILLIC): Purged.
3420         (MAX_CHAR_CYRILLIC): Purged.
3421         (MIN_CHAR_HEBREW): Commented out.
3422         (MAX_CHAR_HEBREW): Likewise.
3423
3424 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3425
3426         * mule-charset.c (Qto_ucs): New variable.
3427         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3428         (Fdefine_char): Likewise.
3429         (syms_of_mule_charset): Add new symbol `=>ucs'.
3430
3431 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3432
3433         * mule-charset.c (Fdecode_char): Fixed.
3434
3435 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3436
3437         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3438         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3439         "tcvn5712-1".
3440
3441 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3442
3443         * mule-charset.c (Vcharset_ucs_big5): New variable.
3444         (Qucs_big5): Likewise.
3445         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3446         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3447
3448         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3449
3450 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3451
3452         * mule-charset.c (decode_builtin_char): Check Big5 code range
3453         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3454
3455 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3456
3457         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3458         (Qchinese_gb12345): Likewise.
3459         (Fdecode_builtin_char): Fixed.
3460         (syms_of_mule_charset): Add `chinese-gb12345'.
3461         (complex_vars_of_mule_charset): Add coded-charset
3462         `chinese-gb12345'.
3463
3464         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3465         (LEADING_BYTE_CHINESE_GB12345): New macro.
3466
3467 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3468
3469         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3470         and `latin-viscii-upper' for `latin-viscii'.
3471
3472 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3473
3474         * mule-charset.c (Fdecode_builtin_char): Comment out
3475         regularization code for ISO-IR GR representation.
3476
3477 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3478
3479         * mule-charset.c (decode_builtin_char): New function; renamed from
3480         `make_builtin_char'; return -1 instead of signal.
3481         (Fdecode_builtin_char): Use `decode_builtin_char'.
3482
3483         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3484         `make_builtin_char'.
3485         (DECODE_CHAR): Use `decode_builtin_char' instead of
3486         `make_builtin_char'; use mapping table of `chinese-big5' for
3487         `chinese-big5-{1,2}'.
3488
3489 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3490
3491         * text-coding.c (char_encode_big5): New function.
3492         (char_finish_big5): Likewise.
3493         (reset_encoding_stream): Use `char_encode_big5' and
3494         `char_finish_big5' for CODESYS_BIG5.
3495         (mule_encode): Don't use `encode_coding_big5'.
3496         (encode_coding_big5): Deleted.
3497
3498 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3499
3500         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3501         0x81- in XEmacs UTF-2000.
3502         (detect_coding_big5): Likewise.
3503
3504 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3505
3506         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3507         generate character-id if the CCS property does not have
3508         corresponding predefined character.
3509         (make_builtin_char): Return -1 if corresponding predefined
3510         character is not found.
3511         (Fdecode_char): Return nil if corresponding character is not
3512         found.
3513         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3514         don't map to builtin ucs space.
3515
3516 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3517
3518         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3519         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3520
3521 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3522
3523         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3524         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3525         (Qideograph_gt): Likewise.
3526         (Qideograph_gt_pj_{1..11}): Likewise.
3527         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3528         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3529         `ideograph-gt-pj-11'.
3530         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3531         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3532         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3533
3534         * char-ucs.h (LEADING_BYTE_GT): New macro.
3535         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3536         (MIN_CHAR_GT): Likewise.
3537         (MAX_CHAR_GT): Likewise.
3538
3539 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3540
3541         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3542         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3543
3544         * doprnt.c (unsigned_int_converters): Add `c'.
3545         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3546
3547         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3548         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3549         `MIN_CHAR_MOJIKYO'.
3550         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3551         (MAX_CHAR_MOJIKYO_0): New macro.
3552         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3553
3554 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3555
3556         * mule-charset.c (Fdefine_char): Delete cemented out code.
3557         (encode_builtin_char_1): Modify for new allocation of builtin
3558         Mojikyo characters.
3559
3560         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3561
3562 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3563
3564         * mule-charset.c (Vcharset_ucs_cns): New variable.
3565         (Qucs_cns): New variable.
3566         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3567         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3568
3569 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3570
3571         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3572
3573 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3574
3575         * search.c (search_buffer): Make `charset_base_code' as
3576         character-id >> 6 to eliminate the corresponding last byte in
3577         UTF-8 representation [I'm not sure it is right thing].
3578         (boyer_moore): Likewise.
3579
3580 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3581
3582         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3583         representation in MULE.
3584
3585 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3586
3587         * text-coding.c (Fmake_coding_system): Use
3588         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3589         `EXTERNAL_PROPERTY_LIST_LOOP'.
3590
3591 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3592
3593         * text-coding.c (decode_output_utf8_partial_char): New function.
3594         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3595
3596 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3597
3598         * text-coding.c (decode_coding_utf8): Output original byte
3599         sequence if it is broken; change order of conditions.
3600
3601         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3602         of conditions.
3603
3604         * mb-multibyte.h (BYTE_ASCII_P):
3605         Use bit ops for char-signedness safety.
3606         (BYTE_C0_P): Use bit ops for char-signedness safety.
3607         (BYTE_C1_P): Use bit ops for char-signedness safety.
3608
3609         * character.h: (XCHAR_OR_CHAR_INT):
3610         Always use inline function.
3611         Remove redundant type checking assert() - XINT will abort quite
3612         nicely.
3613
3614 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3615
3616         * text-coding.c: (Fencode_shift_jis_char):
3617         (Fencode_big5_char):
3618         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3619         Replace 0 with '\0' when working with bytes.
3620         Replace initial "(" with "\(" in docstrings.
3621
3622         (Fmake_coding_system):
3623         When type is ccl and value is vector, register it with a proper
3624         symbol.  And checks whether the given ccl program is valid.
3625         (mule_decode): When calling ccl_driver, if src indicates
3626         NULL pointer, set an empty string instead.
3627         (mule_encode): Likewise.
3628
3629         (detect_eol_type):
3630         (detect_coding_sjis):
3631         (decode_coding_sjis):
3632         (detect_coding_big5):
3633         (decode_coding_big5):
3634         (detect_coding_ucs4):
3635         (decode_coding_ucs4):
3636         (detect_coding_utf8):
3637         (decode_coding_utf8):
3638         (detect_coding_iso2022):
3639         (decode_coding_iso2022):
3640         (decode_coding_no_conversion):
3641         (mule_decode):
3642         Make all detecting and decoding functions take an Extbyte * arg.
3643         (text_encode_generic):
3644         (encode_coding_big5):
3645         (encode_coding_no_conversion):
3646         (mule_encode):
3647         Make all encoding functions take a Bufbyte * arg.
3648         Use size_t instead of unsigned int for memory sizes.
3649         Only cast to unsigned char whenever dereferencing Extbyte *.
3650
3651         (struct lrecord_description fcd_description_1): Use countof.
3652         (complex_vars_of_file_coding):
3653         Use countof instead of sizeof.
3654         Use CHECK_NATNUM instead of CHECK_INT.
3655
3656 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3657
3658         * mule-charset.c (Fget_char_attribute): Add new optional argument
3659         `default-value'.
3660         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3661         (remove_char_ccs): Likewise.
3662
3663 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3664
3665         * text-coding.c (char_encode_shift_jis): New implementation in
3666         UTF-2000.
3667         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3668         ...)'.
3669
3670         * mule-charset.c (Vcharset_chinese_big5): New variable in
3671         UTF-2000.
3672         (Qchinese_big5): New variable in UTF-2000.
3673         (BIG5_SAME_ROW): New macro in UTF-2000.
3674         (make_builtin_char): Use builtin characters of
3675         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3676         characters of `Vcharset_chinese_big5'.
3677         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3678         (complex_vars_of_mule_charset): Add new coded-charset
3679         `chinese-big5' in UTF-2000.
3680
3681         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3682         (Vcharset_chinese_big5): New external variable declaration.
3683         (Vcharset_japanese_jisx0208_1990): Likewise.
3684
3685 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3686
3687         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3688         function.
3689         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3690
3691 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3692
3693         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3694         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3695         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3696         `mojikyo-pj-*'.
3697
3698 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3699
3700         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3701
3702 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3703
3704         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3705         to 0.17.
3706
3707 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3708
3709         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3710         for `CHARSET_BY_ATTRIBUTES'.
3711         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3712         `CHARSET_BY_ATTRIBUTES'.
3713
3714         * text-coding.c (struct decoding_stream): Rename member `CH' to
3715         `CPOS'.
3716         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3717         (decode_coding_sjis): Likewise.
3718         (decode_coding_big5): Likewise.
3719         (decode_coding_ucs4): Likewise.
3720         (decode_coding_utf8): Likewise.
3721         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3722         `CHARSET_BY_ATTRIBUTES'.
3723         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3724         `str->counter'; decode 3, 4 bytes sets.
3725         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3726         sets.
3727         (decode_coding_no_conversion): Use `str->cpos' instead of
3728         `str->ch'.
3729
3730         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3731         (Qmojikyo_2022_1): New variable.
3732         (make_charset): Don't use `CHARSET_TYPE_*'.
3733         (range_charset_code_point): Support coded-charset
3734         `mojikyo-2022-1'.
3735         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3736         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3737         `CHARSET_BY_ATTRIBUTES'.
3738         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3739         `CHARSET_BY_ATTRIBUTES'.
3740         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3741         (complex_vars_of_mule_charset): Add new coded-charset
3742         `mojikyo-2022-1'.
3743
3744         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3745         interface; changed to inline function.
3746
3747         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3748         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3749         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3750         (CHARSET_TYPE_94): Deleted.
3751         (CHARSET_TYPE_94X94): Deleted.
3752         (CHARSET_TYPE_96): Deleted.
3753         (CHARSET_TYPE_96X96): Deleted.
3754         (CHARSET_TYPE_128): Deleted.
3755         (CHARSET_TYPE_128X128): Deleted.
3756         (CHARSET_TYPE_256): Deleted.
3757         (CHARSET_TYPE_256X256): Deleted.
3758         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3759         to inline function.
3760         (DECODE_MOJIKYO_2022): New inline function.
3761         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3762         `Vcharset_mojikyo_2022_1'.
3763
3764 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3765
3766         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3767         instead of `EQ'.
3768         (put_byte_table): Likewise.
3769         (char_id_table_equal): Use `get_byte_table' [new implementation].
3770
3771 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3772
3773         * mule-charset.c: Include <limits.h> in UTF-2000.
3774         (BT_UINT8_MIN): New macro in UTF-2000.
3775         (BT_UINT8_MAX): New macro in UTF-2000.
3776         (BT_UINT8_t): New macro in UTF-2000.
3777         (BT_UINT8_nil): New macro in UTF-2000.
3778         (BT_UINT8_unbound): New macro in UTF-2000.
3779         (INT_UINT8_P): New inline function in UTF-2000.
3780         (UINT8_VALUE_P): New inline function in UTF-2000.
3781         (UINT8_ENCODE): New inline function in UTF-2000.
3782         (UINT8_DECODE): New inline function in UTF-2000.
3783         (mark_uint8_byte_table): New function in UTF-2000.
3784         (print_uint8_byte_table): New function in UTF-2000.
3785         (uint8_byte_table_equal): New function in UTF-2000.
3786         (uint8_byte_table_hash): New function in UTF-2000.
3787         (make_uint8_byte_table): New function in UTF-2000.
3788         (uint8_byte_table_same_value_p): New function in UTF-2000.
3789         (BT_UINT16_MIN): New macro in UTF-2000.
3790         (BT_UINT16_MAX): New macro in UTF-2000.
3791         (BT_UINT16_t): New macro in UTF-2000.
3792         (BT_UINT16_nil): New macro in UTF-2000.
3793         (BT_UINT16_unbound): New macro in UTF-2000.
3794         (INT_UINT16_P): New inline function in UTF-2000.
3795         (UINT16_VALUE_P): New inline function in UTF-2000.
3796         (UINT16_ENCODE): New inline function in UTF-2000.
3797         (UINT16_DECODE): New inline function in UTF-2000.
3798         (UINT8_TO_UINT16): New inline function in UTF-2000.
3799         (mark_uint16_byte_table): New function in UTF-2000.
3800         (print_uint16_byte_table): New function in UTF-2000.
3801         (uint16_byte_table_equal): New function in UTF-2000.
3802         (uint16_byte_table_hash): New function in UTF-2000.
3803         (make_uint16_byte_table): New function in UTF-2000.
3804         (uint16_byte_table_same_value_p): New function in UTF-2000.
3805         (print_byte_table): New function in UTF-2000.
3806         (byte-table): Use `print_byte_table' as printer.
3807         (make_byte_table): Delete second argument `older'.
3808         (byte_table_same_value_p): New function in UTF-2000.
3809         (copy_byte_table): Deleted.
3810         (get_byte_table): New function in UTF-2000.
3811         (put_byte_table): New function in UTF-2000.
3812         (print_char_id_table): New function in UTF-2000.
3813         (char-id-table): Use `print_char_id_table' as printer.
3814         (make_char_id_table): Delete second argument `older'.
3815         (get_char_id_table): Use `get_byte_table [new implementation].
3816         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3817         implementation].
3818         (Ffind_char_attribute_table): New function in UTF-2000.
3819         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3820         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3821         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3822         (syms_of_mule_charset): Add new function
3823         `find-char-attribute-table' in UTF-2000.
3824
3825         * lrecord.h (enum lrecord_type): Add
3826         `lrecord_type_uint16_byte_table' and
3827         `lrecord_type_uint8_byte_table'.
3828
3829         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3830         (Lisp_Uint8_Byte_Table): New type.
3831         (XUINT8_BYTE_TABLE): New macro.
3832         (XSETUINT8_BYTE_TABLE): New macro.
3833         (UINT8_BYTE_TABLE_P): New macro.
3834         (GC_UINT8_BYTE_TABLE_P): New macro.
3835         (struct Lisp_Uint16_Byte_Table): New structure.
3836         (Lisp_Uint16_Byte_Table): New type.
3837         (XUINT16_BYTE_TABLE): New macro.
3838         (XSETUINT16_BYTE_TABLE): New macro.
3839         (UINT16_BYTE_TABLE_P): New macro.
3840         (GC_UINT16_BYTE_TABLE_P): New macro.
3841
3842 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3843
3844         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3845         (Vcharacter_ideographic_strokes_table): Deleted.
3846         (Vcharacter_total_strokes_table): Deleted.
3847         (Vcharacter_morohashi_daikanwa_table): Deleted.
3848         (Vcharacter_decomposition_table): Deleted.
3849         (Qname): Deleted because it is duplicated.
3850         (Qideographic_radical): Deleted.
3851         (Qideographic_strokes): Deleted.
3852         (Qtotal_strokes): Deleted.
3853         (Qmorohashi_daikanwa): Deleted.
3854         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3855         `ideographic-radical', `ideographic-strokes', `total-strokes',
3856         `morohashi-daikanwa' and `->decomposition'.
3857         (Fget_char_attribute): Likewise.
3858         (Fput_char_attribute): Likewise; use `make-vector' instead of
3859         `make_older_vector' for `->decomposition' value.
3860         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3861         `ideograph-daikanwa'.
3862         (syms_of_mule_charset): Delete builtin symbols `name',
3863         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3864         `morohashi-daikanwa'.
3865         (vars_of_mule_charset): Don't setup
3866         `Vcharacter_ideographic_radical_table',
3867         `Vcharacter_ideographic_strokes_table',
3868         `Vcharacter_total_strokes_table',
3869         `Vcharacter_morohashi_daikanwa_table' and
3870         `Vcharacter_decomposition_table'.
3871
3872 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3873
3874         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3875         `make_older_vector', `make_vector_newer_1' and
3876         `make_vector_newer'.
3877
3878         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3879         `make_older_vector' and `make_vector_newer'.
3880
3881         * config.h.in (HAVE_GGC): New macro.
3882
3883 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3884
3885         * mule-charset.c (struct char_attribute_list_closure): New
3886         structure in UTF-2000.
3887         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3888         (Fchar_attribute_list): Likewise.
3889         (Fset_charset_mapping_table): Use `make_vector_newer'.
3890         (Fdecode_builtin_char): New function in UTF-2000.
3891         (syms_of_mule_charset): Add new function `char-attribute-list' and
3892         `decode-builtin-char' in UTF-2000.
3893
3894         * lisp.h (make_vector_newer): New prototype.
3895
3896         * alloc.c (make_vector_newer_1): New function.
3897         (make_vector_newer): New function.
3898
3899 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3900
3901         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3902         50100)'.
3903
3904 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3905
3906         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3907         (Vcharacter_attribute_table): Deleted.
3908         (Vcharacter_name_table): Deleted.
3909         (put_char_attribute): Deleted.
3910         (remove_char_attribute): Deleted.
3911         (struct char_attribute_alist_closure): New structure.
3912         (add_char_attribute_alist_mapper): New function.
3913         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3914         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3915         (Fget_char_attribute): Likewise.
3916         (Fput_char_attribute): Likewise.
3917         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3918         of `remove_char_attribute'.
3919         (Fdefine_char): Return character.
3920         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3921         and `Vcharacter_name_table'.
3922         (complex_vars_of_mule_charset): Likewise
3923         `Vchar_attribute_hash_table'.
3924
3925 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3926
3927         * character.h (CHARC_CHARSET): New macro.
3928         (CHARC_CHARSET_ID): New macro.
3929         (CHARC_CODE_POINT): New macro.
3930         (CHARC_COLUMNS): New macro.
3931         (CHARC_TO_CHAR): New inline function.
3932         (CHARC_EQ): New inline function.
3933         (CHARC_ASCII_EQ): New inline function.
3934         (CHARC_IS_SPACE): New inline function.
3935         (ASCII_TO_CHARC): New inline function.
3936
3937         * char-ucs.h (encode_char_2): Deleted.
3938         (ENCODE_CHAR): Use `encode_char_1' again.
3939         (breakup_char_1): Likewise.
3940         (CHAR_TO_CHARC): New inline function.
3941
3942         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3943
3944 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3945
3946         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3947         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3948         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3949         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3950         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3951         `CHARC_IS_SPACE'.
3952         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3953
3954         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3955         `CHARC_CODE_POINT'.
3956         (x_output_display_block): Use `CHARC_CHARSET' and
3957         `CHARC_ASCII_EQ'.
3958
3959         * redisplay-tty.c (tty_output_display_block): Use
3960         `CHARC_ASCII_EQ'.
3961         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3962
3963         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3964
3965         * insdel.c (find_charsets_in_charc_string): Use
3966         `CHARC_CHARSET_ID'.
3967         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3968         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3969         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3970         (convert_charc_string_into_malloced_string): Likewise.
3971
3972 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3973
3974         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3975         instead of <Emchar_dynarr *> for buf; use
3976         `convert_bufbyte_string_into_charc_dynarr' instead of
3977         `convert_bufbyte_string_into_emchar_dynarr'; use
3978         `find_charsets_in_charc_string' instead of
3979         `find_charsets_in_emchar_string'.
3980
3981         * redisplay.h:
3982         - Include "character.h".
3983         (struct rune): New member `cglyph'; delete member `chr'.
3984
3985         * redisplay.c (redisplay_text_width_charc_string): New function;
3986         delete `redisplay_text_width_emchar_string'.
3987         (rtw_charc_dynarr): New variable; renamed from
3988         `rtw_emchar_dynarr'.
3989         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3990         `rtw_emchar_dynarr'; use
3991         `convert_bufbyte_string_into_charc_dynarr' instead of
3992         `convert_bufbyte_string_into_emchar_dynarr'; use
3993         `redisplay_text_width_charc_string' instead of
3994         `redisplay_text_width_emchar_string'.
3995         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3996         instead of `rtw_emchar_dynarr'; use
3997         `convert_bufbyte_string_into_charc_dynarr' instead of
3998         `convert_bufbyte_string_into_emchar_dynarr'.
3999         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
4000         `redisplay_text_width_charc_string' instead of
4001         `redisplay_text_width_emchar_string'.
4002         (create_text_block): Modify for <struct rune> change.
4003         (generate_formatted_string_db): Likewise.
4004         (create_string_text_block): Likewise.
4005         (pixel_to_glyph_translation): Likewise.
4006
4007         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
4008         instead of <const Emchar *>.
4009         (x_text_width): Likewise.
4010         (x_output_display_block): Use <Charc_dynarr *> instead
4011         <Emchar_dynarr *>; modify for <structure rune> change.
4012         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
4013         *>.
4014
4015         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
4016         <const Emchar *>; use `charc_string_displayed_columns' instead of
4017         `emchar_string_displayed_columns'.
4018         (tty_output_display_block): Use <Charc_dynarr *> instead of
4019         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
4020         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
4021         (tty_output_charc_dynarr_dynarr): New variable; renamed from
4022         `tty_output_emchar_dynarr_dynarr'.
4023         (tty_output_charc_dynarr): New function; delete
4024         `tty_output_charc_dynarr'.
4025
4026         * redisplay-output.c (compare_runes): Modify for `struct rune'.
4027         (redisplay_output_layout): Use <Charc_dynarr *> instead of
4028         <Emchar_dynarr *> for buf; use
4029         `convert_bufbyte_string_into_charc_dynarr' instead of
4030         `convert_bufbyte_string_into_emchar_dynarr'.
4031
4032         * frame.c (title_string_charc_dynarr): New variable; renamed from
4033         `title_string_emchar_dynarr'.
4034         (generate_title_string): Use `title_string_charc_dynarr' instead
4035         of `title_string_emchar_dynarr'; use
4036         `convert_charc_string_into_malloced_string' instead of
4037         `convert_emchar_string_into_malloced_string'.
4038         (init_frame): Use `title_string_charc_dynarr' instead of
4039         `title_string_emchar_dynarr'.
4040
4041         * console.h:
4042         - Include "character.h".
4043         (struct console_methods): Use <const Charc *> instead of <const
4044         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
4045         <Emchar_dynarr *> in output_string_method.
4046
4047         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
4048         <Emchar_dynarr *>.
4049
4050         * console-stream.c (stream_text_width): Use <const Charc *>
4051         instead of <const Emchar *>.
4052
4053         * character.h (Charc_dynarr): New type.
4054
4055         * char-ucs.h (structure Charc): New structure; define new type
4056         `Charc'.
4057
4058         * char-lb.h (DECODE_CHAR): New inline function.
4059         (encode_char_1): New inline function.
4060         (ENCODE_CHAR): New macro.
4061         (structure Charc): New structure; define new type `Charc'.
4062
4063         * char-1byte.h (Vcharset_control_1): New macro.
4064         (Vcharset_latin_iso8859_1): New macro.
4065         (DECODE_CHAR): New inline function.
4066         (encode_char_1): New inline function.
4067         (ENCODE_CHAR): New macro.
4068         (structure Charc): New structure; define new type `Charc'.
4069
4070         * insdel.c (find_charsets_in_charc_string): New function; delete
4071         `find_charsets_in_emchar_string'.
4072         (charc_string_displayed_columns): New function; delete
4073         `emchar_string_displayed_columns'.
4074         (convert_bufbyte_string_into_charc_dynarr): New function; delete
4075         `convert_bufbyte_string_into_emchar_dynarr'.
4076         (convert_charc_string_into_bufbyte_dynarr): New function; delete
4077         `convert_charc_string_into_bufbyte_dynarr'.
4078         (convert_charc_string_into_malloced_string): New function; delete
4079         `convert_charc_string_into_malloced_string'.
4080
4081         * buffer.h (find_charsets_in_charc_string): New prototype; delete
4082         `find_charsets_in_emchar_string'.
4083         (charc_string_displayed_columns): New prototype; delete
4084         `emchar_string_displayed_columns'.
4085         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
4086         `convert_charc_string_into_bufbyte_dynarr'.
4087         (convert_charc_string_into_malloced_string): New prototype; delete
4088         `convert_charc_string_into_malloced_string'.
4089
4090 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4091
4092         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
4093
4094 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4095
4096         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
4097
4098         * char-ucs.h: Use <short> for <Charset_ID>.
4099
4100         * mule-charset.h, char-1byte.h: Use <unsigned char> for
4101         <Charset_ID>.
4102
4103 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4104
4105         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4106         to 0.16.
4107
4108 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4109
4110         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
4111         variable.
4112         (Qmorohashi_daikanwa): New variable.
4113         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
4114         for `morohashi-daikanwa' attribute.
4115         (Fget_char_attribute): Likewise.
4116         (Fput_char_attribute): Likewise.
4117         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
4118         has the same value of `ideograph-daikanwa'.
4119         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
4120         (vars_of_mule_charset): Setup
4121         `Vcharacter_morohashi_daikanwa_table'.
4122
4123 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4124
4125         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
4126         attributes.
4127         (add_charset_to_list_mapper): Add `key' instead of
4128         `XCHARSET_NAME (value)' to return aliases.
4129
4130 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4131
4132         * mule-charset.c (Vcharacter_ideographic_radical_table): New
4133         variable.
4134         (Vcharacter_ideographic_strokes_table): New variable.
4135         (Qideographic_radical): New variable.
4136         (Qideographic_strokes): New variable.
4137         (Fchar_attribute_alist): Use
4138         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
4139         attribute; use `Vcharacter_ideographic_strokes_table' for
4140         `ideographic-strokes' attribute.
4141         (Fget_char_attribute): Likewise.
4142         (Fput_char_attribute): Likewise.
4143         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
4144         `ideographic-strokes'.
4145         (vars_of_mule_charset): Setup
4146         `Vcharacter_ideographic_radical_table' and
4147         `Vcharacter_ideographic_strokes_table'.
4148
4149 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4150
4151         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
4152         (Qtotal_strokes): New variable.
4153         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
4154         `total-strokes' attribute.
4155         (Fget_char_attribute): Likewise.
4156         (Fput_char_attribute): Likewise.
4157         (syms_of_mule_charset): Add new symbol `total-strokes'.
4158         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
4159
4160 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4161
4162         * mule-charset.c (Vcharacter_decomposition_table): New variable.
4163         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
4164         are found.
4165         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
4166         `->decomposition' attribute.
4167         (Fput_char_attribute): Likewise.
4168         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
4169
4170 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4171
4172         * mule-charset.c (decoding_table_check_elements): New function.
4173         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
4174
4175 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4176
4177         * mule-charset.c (Fset_charset_mapping_table): Use
4178         `put_char_ccs_code_point'.
4179
4180 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4181
4182         * mule-charset.c (decoding_table_put_char): New inline function.
4183         (put_char_ccs_code_point): Use `decoding_table_put_char'.
4184
4185 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4186
4187         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
4188         (XCHARSET_BYTE_SIZE): New macro.
4189         (decoding_table_remove_char): New inline function.
4190         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
4191         `decoding_table_remove_char'.
4192         (remove_char_ccs): Use `decoding_table_remove_char'.
4193         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
4194
4195 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4196
4197         * mule-charset.c (Vcharacter_name_table): New variable.
4198         (Qname): New variable.
4199         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
4200         attribute.
4201         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
4202         `Vcharacter_name_table' for `name' attribute.
4203         (Fremove_char_attribute): Use function `remove_char_ccs'.
4204         (put_char_ccs_code_point): New function.
4205         (remove_char_ccs): New function.
4206         (syms_of_mule_charset): Add new symbol `name'.
4207         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
4208
4209 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4210
4211         * mule-charset.c (make_byte_table): Add new argument `older'.
4212         (make_char_id_table): Likewise.
4213         (copy_char_id_table): Comment out because it is not used.
4214         (put_char_id_table): Modify for `make_byte_table'.
4215         (Fput_char_attribute): Make encoding_table as older object;
4216         inherit older bit of `Vcharacter_composition_table'.
4217         (mark_charset): Don't mark `cs->encoding_table'.
4218         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
4219         normal object; make `Vcharacter_composition_table' as an older
4220         object; delete staticpro for `Vcharacter_composition_table'; make
4221         `Vcharacter_variant_table' as a normal object.
4222
4223         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
4224         (mark_object): Don't check older object in UTF-2000.
4225
4226         * lrecord.h (struct lrecord_header): Add new member `older' in
4227         UTF-2000.
4228         (set_lheader_implementation): Setup `SLI_header->older' in
4229         UTF-2000.
4230         (set_lheader_older_implementation): New macro in UTF-2000.
4231         (OLDER_RECORD_P): New macro in UTF-2000.
4232         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
4233         (alloc_older_lcrecord): New prototype in UTF-2000.
4234         (alloc_older_lcrecord_type): New macro in UTF-2000.
4235
4236 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4237
4238         * mule-charset.c (byte_table_description): Use
4239         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
4240         (char_id_table_description): Delete bogus `, 1'.
4241         (Fget_char_attribute): Refer encoding_table of each coded-charset
4242         to get value of coded-charset attribute of a character.
4243         (Fput_char_attribute): Use `make_older_vector' instead of
4244         `make_vector'; use encoding_table of each coded-charset to store
4245         value of coded-charset attribute of a character.
4246         (Fremove_char_attribute): Use encoding_table of each coded-charset
4247         to store value of coded-charset attribute of a character.
4248         (mark_charset): Mark `cs->encoding_table'; don't mark
4249         `cs->decoding_table'.
4250         (charset_description): Add description of new member
4251         `encoding_table'.
4252         (make_charset): Initialize `encoding_table'.
4253
4254         * char-ucs.h (struct Lisp_Charset): Add new member
4255         `encoding_table'.
4256         (CHARSET_ENCODING_TABLE): New macro.
4257         (XCHARSET_ENCODING_TABLE): New macro.
4258         (charset_code_point): New implementation.
4259         (encode_char_1): Likewise.
4260
4261         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
4262         (disksave_object_finalization_1): Call finalizers of
4263         `all_older_lcrecords' in UTF-2000.
4264         (make_older_vector): New function in UTF-2000.
4265         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
4266         UTF-2000.
4267
4268         * lisp.h (make_older_vector): New prototype in UTF-2000.
4269
4270 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4271
4272         * lrecord.h (enum lrecord_type): Rename
4273         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
4274
4275         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
4276         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
4277         `get_char_code_table'.
4278
4279         * mule-charset.c (mark_char_id_table): Renamed from
4280         `mark_char_code_table'.
4281         (char_id_table_equal): Renamed from `char_code_table_equal'.
4282         (char_id_table_hash): Renamed from `char_code_table_hash'.
4283         (make_char_id_table): Renamed from `make_char_code_table'.
4284         (copy_char_id_table): Renamed from `copy_char_code_table'.
4285         (get_char_id_table): Renamed from `get_char_code_table'.
4286         (put_char_id_table): Renamed from `put_char_code_table'.
4287         (to_char_id): Renamed from `to_char_code'.
4288
4289         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
4290         `Lisp_Char_Code_Table'.
4291         (char_id_table): Renamed from `char_code_table'.
4292         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
4293         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
4294         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
4295         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
4296         (get_char_id_table): Renamed from `get_char_code_table'.
4297
4298 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4299
4300         * lrecord.h (enum lrecord_type): Rename
4301         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
4302
4303         * mule-charset.c (mark_byte_table): Renamed from
4304         `mark_char_byte_table'.
4305         (byte_table_equal): Renamed from `char_byte_table_equal'.
4306         (byte_table_hash): Renamed from `byte_table_hash'.
4307         (make_byte_table): Renamed from `make_byte_table'.
4308         (copy_byte_table): Renamed from `copy_char_byte_table'.
4309
4310         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4311         `Lisp_Char_Byte_Table'.
4312         (byte_table): Renamed from `char_byte_table'.
4313         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4314         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4315         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4316         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4317
4318 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4319
4320         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4321         (dfc_convert_to_internal_format): Likewise.
4322         
4323         * text-coding.c (Fcoding_system_canonical_name_p): New function.
4324         * text-coding.c (Fcoding_system_alias_p): New function.
4325         * text-coding.c (Fcoding_system_aliasee): New function.
4326         * text-coding.c (append_suffix_to_symbol): New function.
4327         * text-coding.c (dangling_coding_system_alias_p): New function.
4328         * text-coding.c (Ffind_coding_system):
4329         * text-coding.c (Fcopy_coding_system):
4330         * text-coding.c (encode_coding_no_conversion):
4331         * text-coding.c (syms_of_file_coding):
4332         * text-coding.c (vars_of_file_coding):
4333         Rewrite coding system alias code.
4334         Allow nested aliases, like symbolic links.
4335         Allow redefinition of coding system aliases.
4336         Prevent existence of dangling coding system aliases.
4337         Eliminate convert_to_external_format.
4338         Eliminate convert_to_internal_format.
4339         
4340         * text-coding.c: Change enum eol_type to eol_type_t.
4341
4342 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4343
4344         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4345         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4346
4347         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4348         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4349
4350 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4351
4352         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4353         `ideograph-daikanwa'.
4354
4355         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4356         (Vcharset_ucs_bmp): Likewise.
4357         (Vcharset_mojikyo): Add new extern variable definition.
4358         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4359         (Vcharset_latin_iso8859_3): Likewise.
4360         (Vcharset_latin_iso8859_4): Likewise.
4361         (Vcharset_latin_iso8859_9): Likewise.
4362         (Vcharset_latin_viscii_lower): Likewise.
4363         (Vcharset_latin_viscii_upper): Likewise.
4364         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4365         `mojikyo' code-point is used to decode.
4366         (encode_char_2): New function [to convert `mojikyo' code-point to
4367         Mojikyo font encoding].
4368         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4369         (breakup_char_1): Likewise.
4370         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4371
4372 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4373
4374         * text-coding.c (Fmake_coding_system): Add document about
4375         `disable-composition' property.
4376
4377 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4378
4379         * text-coding.c (Qdisable_composition): New variable; delete
4380         `Qcomposite'.
4381         (Fmake_coding_system): Add new property `disable-composite';
4382         delete property `composite'.
4383         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4384         instead of `!CODING_SYSTEM_COMPOSITE'.
4385         (syms_of_file_coding): Add new symbol `disable-composition';
4386         delete symbol `composite'.
4387
4388         * file-coding.h (struct Lisp_Coding_System): Add
4389         `disable_composition'; delete `enable_composition'.
4390         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4391         `CODING_SYSTEM_COMPOSITE'.
4392         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4393         `XCODING_SYSTEM_COMPOSITE'.
4394
4395 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4396
4397         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4398         to 0.15.
4399
4400 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4401
4402         * text-coding.c (Qcomposite): New variable.
4403         (Fmake_coding_system): Add new property `composite'.
4404         (struct decoding_stream): Add `combined_char_count',
4405         `combined_chars' and `combining_table' in UTF-2000.
4406         (COMPOSE_FLUSH_CHARS): New macro.
4407         (COMPOSE_ADD_CHAR): New macro.
4408         (reset_decoding_stream): Reset `str->combined_char_count' and
4409         `str->combining_table' in UTF-2000.
4410         (decode_coding_iso2022): Modify for character-decomposition.
4411         (syms_of_file_coding): Add new symbol `composite'.
4412
4413 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4414
4415         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4416         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4417         of `Vcharacter_composition_table' if `->decomposition' property
4418         has only 1 element.
4419         (Qlatin_tcvn5712): New variable.
4420         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4421         (complex_vars_of_mule_charset): Add new coded-charset
4422         `latin-tcvn5712'.
4423
4424         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4425
4426 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4427
4428         * file-coding.h (struct Lisp_Coding_System): Add
4429         `enable_composition'.
4430         (CODING_SYSTEM_COMPOSITE): New macro.
4431         (XCODING_SYSTEM_COMPOSITE): New macro.
4432
4433 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4434
4435         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4436
4437 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4438
4439         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4440         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4441
4442 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4443
4444         * mule-charset.c (Vcharset_mojikyo): New variable.
4445         (Fdefine_char): Don't use coded-charset which does not have
4446         non-builtin character range to allocate character-id.
4447         (Qmojikyo): New variable.
4448         (syms_of_mule_charset): Add new symbol `mojikyo'.
4449         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4450
4451         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4452         (LEADING_BYTE_MOJIKYO): New macro.
4453         (MIN_CHAR_MOJIKYO): New macro.
4454         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4455         (MAX_CHAR_MOJIKYO): New macro.
4456
4457 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4458
4459         * mule-charset.c (remove_char_attribute): Fixed.
4460
4461 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4462
4463         * mule-charset.c (remove_char_attribute): New function.
4464         (Fremove_char_attribute): New function.
4465         (encode_builtin_char_1): Comment out builtin-support for
4466         greek-iso8859-7 and cyrillic-iso8859-5.
4467         (Fdecode_char): Check `code' is an integer.
4468         (syms_of_mule_charset): Add `remove-char-attribute'.
4469         (MIN_CHAR_GREEK): Deleted.
4470         (MAX_CHAR_GREEK): Likewise.
4471         (MIN_CHAR_CYRILLIC): Likewise.
4472         (MAX_CHAR_CYRILLIC): Likewise.
4473         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4474         MAX_CHAR_GREEK for `greek-iso8859-7'.
4475
4476         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4477         (MAX_CHAR_GREEK): Likewise.
4478         (MIN_CHAR_CYRILLIC): Likewise.
4479         (MAX_CHAR_CYRILLIC): Likewise.
4480
4481 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4482
4483         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4484         format is used without `ucs' property.
4485         (Fdecode_char): Fix problem with GR representation.
4486         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4487         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4488
4489 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4490
4491         * mule-charset.c (make_builtin_char): New function.
4492         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4493         (Fset_charset_mapping_table): Modify for new representation of
4494         code-point.
4495         (Fdecode_char): New function.
4496         (syms_of_mule_charset): Add new builtin function `decode-char' in
4497         UTF-2000.
4498
4499         * char-ucs.h (make_builtin_char): New prototype.
4500         (DECODE_CHAR): New inline function.
4501         (MAKE_CHAR): Use `DECODE_CHAR'.
4502
4503 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4504
4505         * text-coding.c (parse_charset_conversion_specs): Use
4506         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4507         `XCHARSET_TYPE'.
4508         (iso2022_designate): Likewise.
4509
4510         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4511         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4512
4513         * mule-charset.c (Vcharset_ucs): New variable.
4514         (print_charset): Change design; use `CHARSET_CHARS' and
4515         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4516         (make_charset): Change signature to specify `chars' and
4517         `dimension' instead of `type'.
4518         (range_charset_code_point): Modify for 256^n-set.
4519         (encode_builtin_char_1): Encode as `ucs' in default.
4520         (Fmake_charset): Modify for `make_charset'.
4521         (Fmake_reverse_direction_charset): Likewise.
4522         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4523         UTF-2000.
4524         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4525         for `make_charset'.
4526
4527         * char-ucs.h (Vcharset_ucs): New variable.
4528         (LEADING_BYTE_UCS): New macro.
4529         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4530         and `chars' to `unsigned short' from `unsigned int'.
4531         (CHARSET_TYPE): Deleted.
4532         (XCHARSET_TYPE): Deleted.
4533
4534 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4535
4536         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4537
4538         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4539         (ENCODE_CHAR): New macro.
4540
4541 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4542
4543         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4544         to 0.14 (Kawachi-Katakami).
4545
4546 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4547
4548         * text-coding.c (char_encode_shift_jis): Modify for
4549         `charset_code_point'.
4550         (char_encode_iso2022): Likewise.
4551
4552         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4553         (integer) instead of list of <Lisp_Object>s (integers) as the
4554         format of code-point of a coded-charset.
4555         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4556         (encode_builtin_char_1): New function; delete
4557         `split_builtin_char'.
4558         (charset_code_point): Return <int> instead of <Lisp_Object>.
4559         (Fsplit_char): Don't use `SPLIT_CHAR'.
4560
4561         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4562         prototype for `split_builtin_char'.
4563         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4564         (charset_code_point): Likewise.
4565         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4566         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4567
4568 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4569
4570         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4571         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4572
4573 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4574
4575         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4576
4577         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4578         (MAX_CHAR_OBS_94x94): Deleted.
4579
4580 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4581
4582         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4583
4584         * char-ucs.h (MAX_CHAR_BMP): New macro.
4585
4586 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4587
4588         * text-coding.c: Sync with r21-2-24.
4589
4590 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4591
4592         * file-coding.c: Modify for UTF-2000.
4593
4594 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4595
4596         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4597         to 0.13 (Takaida).
4598
4599 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4600
4601         * mule-charset.c (split_builtin_char): Delete builtin support for
4602         `katakana-jisx0201'.
4603         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4604         BMP area in builtin representation.
4605
4606         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4607         `Vcharset_katakana_jisx0201'.
4608
4609 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4610
4611         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4612         (Qisolated): New variable.
4613         (Qinitial): New variable.
4614         (Qmedial): New variable.
4615         (Qfinal): New variable.
4616         (Qvertical): New variable.
4617         (Qsmall): New variable.
4618         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4619         `Qvertical' and `Qsmall'.
4620         (Qmojikyo_pj_[1 .. 21]): New variable.
4621         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4622         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4623         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4624         .. 21]'.
4625
4626 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4627
4628         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4629         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4630         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4631
4632 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4633
4634         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4635         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4636         BMP.
4637         (Qjapanese_jisx0208_1990): New variable.
4638         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4639         (complex_vars_of_mule_charset): Add new coded-charset
4640         `japanese-jisx0208-1990'.
4641
4642         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4643         (MIN_CHAR_JIS_X0208_1990): New macro.
4644         (MAX_CHAR_JIS_X0208_1990): New macro.
4645
4646 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4647
4648         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4649         coded-charset is not found.
4650
4651 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4652
4653         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4654         (Fdefine_char): Use `Fmake_char'.
4655
4656 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4657
4658         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4659         (Vcharset_hiragana_jisx0208): Deleted.
4660         (Vcharset_katakana_jisx0208): Deleted.
4661         (Qideograph_daikanwa): New variable.
4662         (Qhiragana_jisx0208): Deleted.
4663         (Qkatakana_jisx0208): Deleted.
4664         (split_builtin_char): Split `ideograph-daikanwa'.
4665         (Fsplit_char): New implementation for UTF-2000.
4666         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4667         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4668         (complex_vars_of_mule_charset): Add new coded-charset
4669         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4670         `katakana-jisx0208'.
4671
4672         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4673         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4674         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4675         (MIN_CHAR_DAIKANWA): New macro.
4676         (MAX_CHAR_DAIKANWA): New macro.
4677
4678 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4679
4680         * data.c (Fstring_to_number): Don't recognize floating point if
4681         base is not 10.
4682
4683 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4684
4685         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4686
4687 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4688
4689         * mule-charset.c (Qsquare): New variable.
4690         (to_char_code): Add `Qsquare'.
4691         (syms_of_mule_charset): Add new symbol `square'.
4692
4693 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4694
4695         * mule-charset.c (Qcircle): New variable.
4696         (to_char_code): Add `Qcircle'.
4697         (syms_of_mule_charset): Add new symbol `circle'.
4698
4699 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4700
4701         * mule-charset.c (Qfont): New variable.
4702         (to_char_code): Add `Qfont'.
4703         (syms_of_mule_charset): Add new symbol `font'.
4704
4705 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4706
4707         * mule-charset.c (Qsub): New variable.
4708         (to_char_code): Add `Qsub'.
4709         (syms_of_mule_charset): Add new symbol `sub'.
4710
4711 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4712
4713         * mule-charset.c (Fput_char_attribute): Convert each element of
4714         VALUE to GL position if ATTRIBUTE is a GR-set,
4715
4716 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4717
4718         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4719         coded-charset is a GR-set.
4720
4721 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4722
4723         * mule-charset.c (Fput_char_attribute): Check each element of
4724         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4725
4726 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4727
4728         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4729         UTF-2000.
4730         (Qethiopic_ucs): New variable in UTF-2000.
4731         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4732         (complex_vars_of_mule_charset): Add new coded-charset
4733         `ethiopic-ucs' in UTF-2000.
4734
4735         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4736         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4737         9)'.
4738         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4739         10)'.
4740         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4741
4742 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4743
4744         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4745         `ascii'.
4746
4747 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4748
4749         * mule-charset.c (Vcharacter_variant_table): New variable.
4750         (Q_ucs): New variable.
4751         (Fchar_variants): New function.
4752         (Fput_char_attribute): Register `->ucs' value to
4753         `Vcharacter_variant_table'.
4754         (syms_of_mule_charset): Add new function `char-variants' and new
4755         symbol `->ucs'.
4756         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4757
4758 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4759
4760         * mule-charset.c (get_char_code_table): Allow negative character
4761         code.
4762         (put_char_code_table): Likewise.
4763         (Vcharacter_composition_table): New variable.
4764         (Q_decomposition): New variable.
4765         (Qwide): New variable.
4766         (Qnarrow): New variable.
4767         (Qcompat): New variable.
4768         (QnoBreak): New variable.
4769         (Qsuper): New variable.
4770         (Qfraction): New variable.
4771         (to_char_code): New function.
4772         (Fget_composite_char): New function.
4773         (Fput_char_attribute): Register `->decomposition' value to
4774         `Vcharacter_composition_table'.
4775         (syms_of_mule_charset): Add new function `get-composite-char', new
4776         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4777         `super' and `fraction'.
4778         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4779
4780 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4781
4782         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4783         character; copy the return value.
4784
4785 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4786
4787         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4788
4789         * mule-charset.c (range_charset_code_point): Must use make_int.
4790         (split_builtin_char): New function.
4791
4792 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4793
4794         * mule-charset.c (char_byte_table): Change name from
4795         "char-code-table" to "char-byte-table".
4796         (mark_char_code_table): New function.
4797         (char_code_table_equal): New function.
4798         (char_code_table_hash): New function.
4799         (char_code_table_description): New constant.
4800         (char_code_table): New type.
4801         (make_char_code_table): New function.
4802         (copy_char_code_table): New function.
4803         (get_char_code_table): Modify for `char_code_table' type.
4804         (put_char_code_table): Likewise.
4805         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4806         (Kashiwara).
4807
4808         * char-ucs.h (char_code_table): New type.
4809         (XCHAR_CODE_TABLE): New macro.
4810         (XSETCHAR_CODE_TABLE): New macro.
4811         (CHAR_CODE_TABLE_P): New macro.
4812         (GC_CHAR_CODE_TABLE_P): New macro.
4813         (struct Lisp_Char_Code_Table): New structure.
4814
4815 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4816
4817         * mule-charset.c (Fmake_charset): Setup byte_offset for
4818         {94|96}^n-set.
4819
4820 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4821
4822         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4823         character.
4824
4825 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4826
4827         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4828         is found.
4829
4830 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4831
4832         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4833         charset, it is regarded as a charset.
4834         (put_char_attribute): New function in UTF-2000.
4835         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4836         charset, mapping-table of the charset is modified.
4837         (Fdefine_char): New function in UTF-2000.
4838         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4839         `Fput_char_attribute'.
4840         (syms_of_mule_charset): Add new function `define-char' and new
4841         symbol `ucs' in UTF-2000.
4842         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4843
4844 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4845
4846         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4847         non-UTF-2000 configuration.
4848
4849 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4850
4851         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4852         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4853
4854         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4855         deleted.
4856         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4857         (Fset_charset_mapping_table): Likewise.
4858
4859         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4860         (CHARSET_ENCODING_TABLE): Delete.
4861         (XCHARSET_ENCODING_TABLE): Delete.
4862         (charset_code_point): New interface.
4863
4864 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4865
4866         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4867         instead of `charset_get_byte1' and `charset_get_byte2'.
4868
4869         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4870         (charset_get_byte2): Deleted.
4871
4872 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4873
4874         * char-ucs.h (SPLIT_CHAR): New inline function.
4875         (breakup_char_1): Use `SPLIT_CHAR'.
4876
4877         * mule-charset.c (range_charset_code_point): New function.
4878         (charset_code_point): New function.
4879
4880         * char-ucs.h (range_charset_code_point): New interface.
4881         (breakup_char_1): Use `range_charset_code_point'.
4882
4883 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4884
4885         * mule-charset.c (Fmake_charset): Delete unused local variable
4886         `code_offset'.
4887
4888         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4889         (breakup_char_1): Find a charset and code-point in
4890         `Vcharacter_attribute_table'.
4891
4892 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4893
4894         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4895         to 0.10 (Yao).
4896
4897 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4898
4899         * mule-charset.c (Vcharacter_attribute_table): New variable.
4900         (Fchar_attribute_alist): New function.
4901         (Fget_char_attribute): New function.
4902         (Fput_char_attribute): New function.
4903         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4904         too.
4905         (syms_of_mule_charset): Add new function `char-attribute-alist',
4906         `get-char-attribute' and `put-char-attribute'.
4907         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4908
4909 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4910
4911         * mule-charset.c (Fmake_charset): Just use
4912         `get_unallocated_leading_byte'.
4913
4914         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4915         sets; don't use final-byte based number for private sets.
4916
4917 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4918
4919         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4920         integer.
4921
4922 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4923
4924         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4925         to 0.9.
4926
4927 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4928
4929         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4930         of `CHAR_LEADING_BYTE' in UTF-2000.
4931
4932         * insdel.c (find_charsets_in_bufbyte_string): Use
4933         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4934         (find_charsets_in_emchar_string): Likewise.
4935
4936         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4937         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4938
4939         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4940         (CHAR_CHARSET_ID): New macro.
4941
4942 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4943
4944         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4945         charset-id - MIN_LEADING_BYTE.
4946         (put_char_table): Likewise.
4947
4948 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4949
4950         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4951         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4952         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4953         (CHARSET_ID_OFFSET): New macro.
4954         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4955         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4956         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4957         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4958         4).
4959         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4960         5).
4961         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4962         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4963         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4964         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4965         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4966
4967 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4968
4969         * mule-charset.c (next_allocated_leading_byte): New variable in
4970         UTF-2000.
4971         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4972         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4973         (get_unallocated_leading_byte): Simply use
4974         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4975         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4976         UTF-2000.
4977
4978         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4979         (MAX_LEADING_BYTE_PRIVATE): New macro.
4980         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4981         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4982
4983 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4984
4985         * mule-charset.c (Fmake_charset): Allocate final-byte based
4986         charset-id for 94-set, 96-set and 94x94-set.
4987
4988 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4989
4990         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4991         ambiguous `else'.
4992         (Fmake_charset): Likewise.
4993         (complex_vars_of_mule_charset): Modify the font registry of
4994         `ucs-bmp' not to match `Ethiopic-Unicode'.
4995
4996 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4997
4998         * mule-charset.c (complex_vars_of_mule_charset): Add font
4999         registory of `ucs-bmp'.
5000
5001 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5002
5003         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
5004         coded-charsets in `default-coded-charset-priority-list' when
5005         breaking up a character.
5006
5007         * mule-charset.c (Vcharset_latin_viscii): New variable.
5008         (Qlatin_viscii): New variable.
5009         (make_charset): Don't use `decoding_table'.
5010         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
5011         byte_offset.
5012         (Fset_charset_mapping_table): New implementation.
5013         (syms_of_mule_charset): Add new symbol `latin-viscii'.
5014         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
5015         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
5016         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
5017         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
5018         charset `latin_viscii'.
5019
5020         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
5021         (CHARSET_TYPE_94X94): Change to 1 from 2.
5022         (CHARSET_TYPE_96): Change to 2 from 1.
5023         (CHARSET_TYPE_128): New macro.
5024         (CHARSET_TYPE_128X128): Change to 5 from 4.
5025         (CHARSET_TYPE_256): New macro.
5026         (CHARSET_TYPE_256X256): Change to 7 from 5.
5027         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
5028
5029 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5030
5031         * text-coding.c (char_encode_shift_jis): Refer
5032         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
5033         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
5034
5035         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
5036         (char_byte_table_equal): New function in UTF-2000.
5037         (char_byte_table_hash): New function in UTF-2000.
5038         (char_byte_table_description): New constant in UTF-2000.
5039         (char_byte_table): New type in UTF-2000.
5040         (make_char_byte_table): New function in UTF-2000.
5041         (copy_char_byte_table): New function in UTF-2000.
5042         (make_char_code_table): New macro in UTF-2000.
5043         (get_char_code_table): New function in UTF-2000.
5044         (put_char_code_table): New function in UTF-2000.
5045         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
5046         (charset_description): Add setting in UTF-2000.
5047         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
5048         `CHARSET_TO_BYTE1_TABLE(cs)'.
5049         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
5050         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
5051         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
5052         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
5053         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
5054         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
5055         `CHARSET_TO_BYTE2_TABLE(cs)'.
5056
5057         * char-ucs.h (char_byte_table): New type.
5058         (XCHAR_BYTE_TABLE): New macro.
5059         (XSETCHAR_BYTE_TABLE): New macro.
5060         (CHAR_BYTE_TABLE_P): New macro.
5061         (GC_CHAR_BYTE_TABLE_P): New macro.
5062         (struct Lisp_Char_Byte_Table): New structure.
5063         (get_char_code_table): New interface.
5064         (Emchar_to_byte_table): Deleted.
5065         (get_byte_from_character_table): Deleted.
5066         (struct Lisp_Charset): Add `encoding_table'; delete
5067         `to_byte1_table' and `to_byte2_table'.
5068         (CHARSET_ENCODING_TABLE): New macro.
5069         (CHARSET_TO_BYTE1_TABLE): Deleted.
5070         (CHARSET_TO_BYTE2_TABLE): Deleted.
5071         (XCHARSET_ENCODING_TABLE): New macro.
5072         (XCHARSET_TO_BYTE1_TABLE): Deleted.
5073         (XCHARSET_TO_BYTE2_TABLE): Deleted.
5074
5075 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5076
5077         * mule-charset.c (syms_of_mule_charset): Delete charset alias
5078         `vietnamese-viscii-*'.
5079
5080 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5081
5082         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
5083         (Qvietnamese_viscii_upper): New variable.
5084         (Fdefine_charset_alias): New function.
5085         (syms_of_mule_charset): Add new function `define-charset-alias'.
5086         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
5087         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
5088         `latin-viscii-*'.
5089
5090 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
5091
5092         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
5093         (MAX_CHAR_OBS_94x94): New macro.
5094         (breakup_char_1): Support obsolete XEmacs-UCS private code space
5095         for 94x94 sets.
5096
5097         * mule-charset.c (put_byte_from_character_table): Change unit size
5098         from 128 to 256.
5099         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
5100         not defined.
5101         (Fmake_reverse_direction_charset): Modify dummy argument of
5102         `make_charset' for non-UTF-2000 environment.
5103
5104 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5105
5106         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
5107
5108         * mule-charset.c (destroy_byte_from_character_table): New macro.
5109         (latin_jisx0201_to_ucs): Deleted.
5110         (latin_iso8859_2_to_ucs): Deleted.
5111         (latin_iso8859_3_to_ucs): Deleted.
5112         (latin_iso8859_4_to_ucs): Deleted.
5113         (latin_iso8859_9_to_ucs): Deleted.
5114         (latin_viscii_lower_to_ucs): Deleted.
5115         (latin_viscii_upper_to_ucs): Deleted.
5116         (mark_charset): Mark `cs->decoding_table'.
5117         (Fcharset_mapping_table): Fix DOC-string.
5118         (Fset_charset_mapping_table): New function.
5119         (syms_of_mule_charset): Add nwe function
5120         `set-charset-mapping-table'.
5121         (complex_vars_of_mule_charset): Don't setup and use
5122         `latin_*_to_ucs'.
5123
5124 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5125
5126         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
5127         charset.
5128
5129 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5130
5131         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
5132         (Vcharset_katakana_jisx0208): New variable.
5133         (Qhiragana_jisx0208): New variable.
5134         (Qkatakana_jisx0208): New variable.
5135         (make_charset): Add new argument `byte_offset'.
5136         (charset_get_byte1): Modify for new coded-charset definition; use
5137         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5138         `XCHARSET_BYTE_OFFSET'.
5139         (Fmake_charset): Modify for `make_charset'.
5140         (Fmake_reverse_direction_charset): Likewise.
5141         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
5142         `katakana-jisx0208'.
5143         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
5144         `.'  in font registry of charset `katakana-jisx0201',
5145         `latin-jisx0201', `vietnamese-viscii-lower' and
5146         `vietnamese-viscii-upper'; modify DOC-string of charset
5147         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
5148         registry of charset `japanese-jisx0208' not to use font for JIS
5149         X0208:1990; add new charset `hiragana-jisx0208' and
5150         `katakana-jisx0208'.
5151
5152         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
5153         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
5154         (struct Lisp_Charset): Add `byte_offset'.
5155         (CHARSET_BYTE_OFFSET): New macro.
5156         (XCHARSET_UCS_MIN): New macro.
5157         (XCHARSET_UCS_MAX): New macro.
5158         (XCHARSET_CODE_OFFSET): New macro.
5159         (XCHARSET_BYTE_OFFSET): New macro.
5160         (MIN_CHAR_HIRAGANA): New macro.
5161         (MAX_CHAR_HIRAGANA): New macro.
5162         (MIN_CHAR_KATAKANA): New macro.
5163         (MAX_CHAR_KATAKANA): New macro.
5164         (MAKE_CHAR): Modify for new coded-charset definition; use
5165         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5166         `XCHARSET_BYTE_OFFSET'.
5167
5168 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5169
5170         * mule-charset.c (CHAR96): Deleted.
5171         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
5172         <Lisp_Object>.
5173         (latin_iso8859_2_to_ucs): Likewise.
5174         (latin_iso8859_3_to_ucs): Likewise.
5175         (latin_iso8859_4_to_ucs): Likewise.
5176         (latin_iso8859_9_to_ucs): Likewise.
5177         (latin_viscii_lower_to_ucs): Likewise.
5178         (latin_viscii_upper_to_ucs): Likewise.
5179         (latin_tcvn5712_to_ucs): Commented out.
5180         (make_charset): Change type of argument `decoding_table' from
5181         <Emchar*> to <Lisp_Object> [vector of characters].
5182         (Fmake_charset): Modify for `make_charset'.
5183         (Fmake_reverse_direction_charset): Likewise.
5184         (Fcharset_mapping_table): New function in UTF-2000.
5185         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
5186         UTF-2000.
5187         (complex_vars_of_mule_charset): Modify for type change of
5188         `*_to_ucs'; modify for `make_charset'.
5189
5190         * char-ucs.h (struct Lisp_Charset): Change type of
5191         `decoding_table' from <Emchar*> to <Lisp_Object>.
5192         (MAKE_CHAR): Modify for new specification of `decoding_table'.
5193
5194 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
5195
5196         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
5197         error with non-UTF-2000-Mule.
5198
5199 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
5200
5201         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
5202         in lisp again].
5203         (Vcharset_chinese_cns11643_4): Likewise.
5204         (Vcharset_chinese_cns11643_5): Likewise.
5205         (Vcharset_chinese_cns11643_6): Likewise.
5206         (Vcharset_chinese_cns11643_7): Likewise.
5207         (Qchinese_cns11643_3): Likewise.
5208         (Qchinese_cns11643_4): Likewise.
5209         (Qchinese_cns11643_5): Likewise.
5210         (Qchinese_cns11643_6): Likewise.
5211         (Qchinese_cns11643_7): Likewise.
5212         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
5213         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5214         and `chinese-cns11643-7' to lisp/mule/chinese.el.
5215         (complex_vars_of_mule_charset): Likewise.
5216
5217 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
5218
5219         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
5220         96-set.
5221         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
5222         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
5223
5224 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5225
5226         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
5227         0xFF60.
5228         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
5229         (breakup_char_1): Likewise.
5230
5231         * text-coding.c (char_encode_iso2022): Keep designated charsets if
5232         one of them includes the specified character.
5233
5234 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5235
5236         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
5237
5238 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5239
5240         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
5241
5242 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5243
5244         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
5245         definition for non-UTF-2000 Mule.
5246         (latin_iso8859_3_to_ucs): Likewise.
5247         (latin_iso8859_4_to_ucs): Likewise.
5248         (latin_iso8859_9_to_ucs): Likewise.
5249         (latin_jisx0201_to_ucs): Likewise.
5250         (MIN_CHAR_THAI): Likewise.
5251         (MAX_CHAR_THAI): Likewise.
5252         (MIN_CHAR_GREEK): Likewise.
5253         (MAX_CHAR_GREEK): Likewise.
5254         (MIN_CHAR_HEBREW): Likewise.
5255         (MAX_CHAR_HEBREW): Likewise.
5256         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
5257         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
5258         (MIN_CHAR_CYRILLIC): Likewise.
5259         (MAX_CHAR_CYRILLIC): Likewise.
5260
5261 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5262
5263         * char-ucs.h (breakup_char_1): Use
5264         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
5265         thai-tis620 and katakana-jisx0201 area.
5266
5267 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5268
5269         * char-ucs.h (breakup_char_1): Use
5270         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
5271         area.
5272
5273         * text-coding.c (reset_encoding_stream): Fixed.
5274         (char_encode_ucs4): Delete `& 255'.
5275
5276         * char-ucs.h (breakup_char_1): Use
5277         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
5278
5279 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5280
5281         * file-coding.c (Fmake_coding_system): Don't set up
5282         `codesys->fixed.size'.
5283         (encode_coding_no_conversion): Don't refer
5284         `str->codesys->fixed.size'.
5285
5286 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5287
5288         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
5289         (latin_a_char_to_byte1): Deleted.
5290         (latin_a_char_to_byte2): Deleted.
5291
5292 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5293
5294         * mule-charset.c (make_charset): Add new argument `ucs_min',
5295         `ucs_max' and `code_offset'.
5296         (charset_get_byte1): New implementation [delete specific charset
5297         depended implementations].
5298         (Fmake_charset): Modify for `make_charset'.
5299         (Fmake_reverse_direction_charset): Likewise.
5300         (complex_vars_of_mule_charset): Likewise.
5301
5302         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
5303         `code_offset'.
5304         (CHARSET_UCS_MIN): New macro.
5305         (CHARSET_UCS_MAX): New macro.
5306         (CHARSET_CODE_OFFSET): New macro.
5307         (MAKE_CHAR): Delete charset depended definitions [except
5308         katakana-jisx0201].
5309
5310 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
5311
5312         * char-ucs.h (breakup_char_1): Use
5313         `Vdefault_coded_charset_priority_list' for C0-Controls,
5314         Basic-Latin, C1-Controls and Latin-1-Supplement area.
5315
5316 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5317
5318         * char-ucs.h (charset_get_byte1): New function.
5319         (XCHARSET_GET_BYTE1): Deleted.
5320         (charset_get_byte2): New function.
5321         (XCHARSET_GET_BYTE2): Deleted.
5322         (Vdefault_coded_charset_priority_list): New external variable.
5323         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5324         `Vdefault_preferred_coded_charset_list'.
5325
5326         * mule-charset.c (charset_get_byte1): New function.
5327         (charset_get_byte2): New function.
5328         (Vdefault_coded_charset_priority_list): New variable.
5329         (vars_of_mule_charset): Add new variable
5330         `default-coded-charset-priority-list'.
5331
5332 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5333
5334         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5335         (XCHARSET_GET_BYTE2): New inline function.
5336         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5337         `XCHARSET_GET_BYTE2'.
5338
5339 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5340
5341         * mule-charset.c (make_charset): Initialize
5342         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5343         NULL if table is not defined.
5344
5345 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5346
5347         * text-coding.c (char_encode_shift_jis): Use
5348         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5349         `ucs_to_latin_jisx0201'.
5350
5351         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5352         (ucs_to_latin_iso8859_2): Deleted.
5353         (ucs_to_latin_iso8859_3): Deleted.
5354         (ucs_to_latin_iso8859_4): Deleted.
5355         (ucs_to_latin_iso8859_9): Deleted.
5356         (ucs_to_latin_viscii_lower): Deleted.
5357         (ucs_to_latin_viscii_upper): Deleted.
5358         (ucs_to_latin_tcvn5712): Deleted.
5359         (make_charset): Add new argument `decoding_table'; set up
5360         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5361         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5362         `decoding_table' is defined in UTF-2000.
5363         (Fmake_charset): Modify for `make_charset'.
5364         (Fmake_reverse_direction_charset): Likewise.
5365         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5366         and `GENERATE_96_SET'.
5367
5368         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5369         (ucs_to_latin_jisx0201): Deleted.
5370         (latin_iso8859_2_to_ucs): Deleted.
5371         (ucs_to_latin_iso8859_2): Deleted.
5372         (latin_iso8859_3_to_ucs): Deleted.
5373         (ucs_to_latin_iso8859_3): Deleted.
5374         (latin_iso8859_4_to_ucs): Deleted.
5375         (ucs_to_latin_iso8859_4): Deleted.
5376         (latin_iso8859_9_to_ucs): Deleted.
5377         (ucs_to_latin_iso8859_9): Deleted.
5378         (latin_viscii_lower_to_ucs): Deleted.
5379         (ucs_to_latin_viscii_lower): Deleted.
5380         (latin_viscii_upper_to_ucs): Deleted.
5381         (ucs_to_latin_viscii_upper): Deleted.
5382         (struct Lisp_Charset): Renamed `encoding_table' to
5383         `to_byte1_table'; add `to_byte2_table'.
5384         (CHARSET_DECODING_TABLE): New macro.
5385         (CHARSET_TO_BYTE1_TABLE): New macro.
5386         (CHARSET_TO_BYTE2_TABLE): New macro.
5387         (XCHARSET_DECODING_TABLE): New macro.
5388         (XCHARSET_TO_BYTE1_TABLE): New macro.
5389         (XCHARSET_TO_BYTE2_TABLE): New macro.
5390         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5391         tables.
5392         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5393         don't use `ucs_to_*' tables.
5394
5395 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5396
5397         * text-coding.c (Fmake_coding_system): Don't set up
5398         `codesys->fixed.size'.
5399         (encode_coding_no_conversion): Use `if' instead of `switch'.
5400
5401         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5402
5403 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5404
5405         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5406         (Fmake_charset): Modify for `make_charset'.
5407         (Fmake_reverse_direction_charset): Likewise.
5408         (complex_vars_of_mule_charset): Likewise.
5409
5410 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5411
5412         * text-coding.c (char_encode_shift_jis): Use table
5413         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5414
5415 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5416
5417         * text-coding.c (text_encode_generic): Use `if' instead of
5418         `switch'.
5419         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5420         decode JIS-Latin.
5421
5422 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5423
5424         * text-coding.c (encode_coding_sjis): Deleted.
5425         (char_encode_shift_jis): New function.
5426         (char_finish_shift_jis): New function.
5427         (reset_encoding_stream): Set up `encode_char' and `finish' for
5428         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5429         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5430         (char_encode_utf8): Treat `eol_type'.
5431
5432 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5433
5434         * file-coding.c (decode_coding_iso2022): Use
5435         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5436
5437 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5438
5439         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5440         to 0.7 (Hirano).
5441
5442 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5443
5444         * char-lb.h (CHAR_COLUMNS): New macro.
5445
5446 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5447
5448         * text-coding.c (char_encode_ucs4): New function.
5449         (char_finish_ucs4): New function.
5450         (encode_coding_ucs4): Deleted.
5451         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5452         (text_encode_generic): Delete local variable `charset' and `half'.
5453         (ucs_to_mule_table): Deleted.
5454         (mule_to_ucs_table): Deleted.
5455         (Fset_ucs_char): Deleted.
5456         (ucs_to_char): Deleted.
5457         (Fucs_char): Deleted.
5458         (Fset_char_ucs): Deleted.
5459         (Fchar_ucs): Deleted.
5460         (decode_ucs4): Deleted.
5461         (mule_char_to_ucs4): Deleted.
5462         (encode_ucs4): Deleted.
5463         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5464         (decode_coding_utf8): Likewise.
5465         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5466         (char_encode_iso2022): Fixed.
5467         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5468         `Fset_char_ucs' and `Fchar_ucs'.
5469         (complex_vars_of_file_coding): Don't initialize
5470         `ucs_to_mule_table'.
5471
5472         * objects-tty.c (tty_initialize_font_instance): Don't use
5473         `XCHARSET_COLUMNS'.
5474
5475         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5476         UTF-2000.
5477
5478         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5479         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5480
5481         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5482         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5483         (emchar_string_displayed_columns): Likewise.
5484
5485         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5486         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5487         (string_column_at_point): Likewise.
5488         (Fmove_to_column): Likewise.
5489
5490         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5491         `encoding_table' and `decoding_table'.
5492         (CHARSET_REP_BYTES): Deleted.
5493         (XCHARSET_REP_BYTES): Deleted.
5494         (XCHARSET_COLUMNS): Deleted.
5495         (CHAR_COLUMNS): New macro.
5496         (lookup_composite_char): Deleted unconditionally.
5497         (composite_char_string): Likewise.
5498
5499 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5500
5501         * char-ucs.h (Emchar_to_byte_table): New type.
5502         (get_byte_from_character_table): New function interface.
5503         (Vcharset_latin_jisx0201): New variable.
5504         (latin_jisx0201_to_ucs): New variable.
5505         (ucs_to_latin_jisx0201): New variable.
5506         (Vcharset_latin_iso8859_2): New variable.
5507         (latin_iso8859_2_to_ucs): New variable.
5508         (ucs_to_latin_iso8859_2): New variable.
5509         (Vcharset_latin_iso8859_3): New variable.
5510         (latin_iso8859_3_to_ucs): New variable.
5511         (ucs_to_latin_iso8859_3): New variable.
5512         (Vcharset_latin_iso8859_4): New variable.
5513         (latin_iso8859_4_to_ucs): New variable.
5514         (ucs_to_latin_iso8859_4): New variable.
5515         (Vcharset_latin_iso8859_9): New variable.
5516         (latin_iso8859_9_to_ucs): New variable.
5517         (ucs_to_latin_iso8859_9): New variable.
5518         (Vcharset_latin_viscii_lower): New variable.
5519         (latin_viscii_lower_to_ucs): New variable.
5520         (ucs_to_latin_viscii_lower): New variable.
5521         (Vcharset_latin_viscii_upper): New variable.
5522         (latin_viscii_upper_to_ucs): New variable.
5523         (ucs_to_latin_viscii_upper): New variable.
5524         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5525         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5526         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5527         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5528         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5529         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5530         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5531         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5532         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5533         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5534
5535         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5536         (Vcharset_latin_viscii_upper): New variable.
5537         (make_byte_from_character_table): New function.
5538         (put_byte_from_character_table): New function.
5539         (get_byte_from_character_table): New function.
5540         (CHAR96): New macro.
5541         (ucs_to_latin_jisx0201): New variable.
5542         (latin_jisx0201_to_ucs): New variable.
5543         (ucs_to_latin_iso8859_2): New variable.
5544         (latin_iso8859_2_to_ucs): New variable.
5545         (ucs_to_latin_iso8859_3): New variable.
5546         (latin_iso8859_3_to_ucs): New variable.
5547         (ucs_to_latin_iso8859_4): New variable.
5548         (latin_iso8859_4_to_ucs): New variable.
5549         (ucs_to_latin_iso8859_9): New variable.
5550         (latin_iso8859_9_to_ucs): New variable.
5551         (ucs_to_latin_viscii_lower): New variable.
5552         (latin_viscii_lower_to_ucs): New variable.
5553         (ucs_to_latin_viscii_upper): New variable.
5554         (latin_viscii_upper_to_ucs): New variable.
5555         (ucs_to_latin_tcvn5712): New variable.
5556         (latin_tcvn5712_to_ucs): New variable.
5557         (Qlatin_viscii_lower): New variable.
5558         (Qlatin_viscii_upper): New variable.
5559         (syms_of_mule_charset): Set up new symbol
5560         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5561         (complex_vars_of_mule_charset): Set up new charset
5562         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5563         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5564         `ucs_to_<CHARSET>' tables.
5565
5566 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5567
5568         * text-coding.c: New file.
5569
5570 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5571
5572         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5573
5574         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5575         (MAKE_CHAR): Modify for `ucs-bmp'.
5576         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5577         non-MULE characters of BMP.
5578
5579 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5580
5581         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5582         to 0.6.
5583
5584 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5585
5586         * lstream.h:
5587         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5588         - Include character.h for `CHAR_ASCII_P'.
5589
5590         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5591
5592         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5593         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5594
5595         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5596         (BYTE_C0_P): Likewise.
5597         (BYTE_C1_P): Likewise.
5598         (Lstream_get_emchar_1): Likewise.
5599         (Lstream_fput_emchar): Likewise.
5600         (Lstream_funget_emchar): Likewise.
5601         (copy_internal_to_external): Likewise.
5602         (copy_external_to_internal): Likewise.
5603
5604         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5605         (BYTE_C0_P): Likewise.
5606         (BYTE_C1_P): Likewise.
5607         (Lstream_get_emchar_1): Likewise.
5608         (Lstream_fput_emchar): Likewise.
5609         (Lstream_funget_emchar): Likewise.
5610         (copy_internal_to_external): Likewise.
5611         (copy_external_to_internal): Likewise.
5612
5613         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5614         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5615
5616         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5617         (BYTE_ASCII_P): Moved to mb-1byte.h.
5618
5619 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5620
5621         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5622
5623         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5624         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5625         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5626         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5627         (VALIDATE_CHARPTR_FORWARD): Likewise.
5628         (simple_charptr_emchar): Moved to mb-multibyte.h.
5629         (simple_set_charptr_emchar): Likewise.
5630         (simple_charptr_copy_char): Likewise.
5631         (non_ascii_charptr_emchar): Likewise.
5632         (non_ascii_set_charptr_emchar): Likewise.
5633         (non_ascii_charptr_copy_char): Likewise.
5634         (charptr_emchar): Moved to mb-*byte.h.
5635         (set_charptr_emchar): Likewise.
5636         (charptr_copy_char): Likewise.
5637
5638         * mb-1byte.h, mb-multibyte.h: New files.
5639
5640 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5641
5642         * mb-utf-8.h (MULTIBYTE): New macro.
5643         (MAX_EMCHAR_LEN): Moved from buffer.h.
5644         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5645
5646         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5647
5648         * mb-lb.h, multibyte.h: New files.
5649
5650         * char-1byte.h (Charset_ID): Moved from buffer.h.
5651         (MIN_LEADING_BYTE): Likewise.
5652         (LEADING_BYTE_ASCII): Likewise.
5653         (NUM_LEADING_BYTES): Likewise.
5654         (CHARSETP): Likewise.
5655         (CHARSET_BY_LEADING_BYTE): Likewise.
5656         (XCHARSET_LEADING_BYTE): Likewise.
5657         (XCHARSET_GRAPHIC): Likewise.
5658         (XCHARSET_COLUMNS): Likewise.
5659         (XCHARSET_DIMENSION): Likewise.
5660         (CHAR_CHARSET): Likewise.
5661         (CHAR_LEADING_BYTE): Likewise.
5662         (BREAKUP_CHAR): Likewise.
5663         (Vcharset_ascii): Likewise.
5664
5665         * buffer.h: Include multibyte.h unconditionally.
5666         (VALID_CHARPTR_P): Moved to multibyte.h.
5667         (ASSERT_VALID_CHARPTR): Likewise.
5668         (REAL_INC_CHARPTR): Likewise.
5669         (REAL_INC_CHARBYTIND): Likewise.
5670         (REAL_DEC_CHARPTR): Likewise.
5671         (INC_CHARPTR): Likewise.
5672         (INC_CHARBYTIND): Likewise.
5673         (DEC_CHARPTR): Likewise.
5674         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5675         (VALIDATE_CHARPTR_FORWARD): Likewise.
5676         (charptr_n_addr): Likewise.
5677         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5678         (simple_charptr_emchar): Moved to multibyte.h.
5679         (simple_set_charptr_emchar): Likewise.
5680         (simple_charptr_copy_char): Likewise.
5681         (non_ascii_charptr_emchar): Likewise.
5682         (non_ascii_set_charptr_emchar): Likewise.
5683         (non_ascii_charptr_copy_char): Likewise.
5684         (charptr_emchar): Likewise.
5685         (set_charptr_emchar): Likewise.
5686         (charptr_copy_char): Likewise.
5687         (charptr_emchar_n): Likewise.
5688         (Charset_ID): Moved to char-1byte.h.
5689         (Vcharset_ascii): Likewise.
5690         (CHAR_CHARSET): Likewise.
5691         (CHAR_LEADING_BYTE): Likewise.
5692         (LEADING_BYTE_ASCII): Likewise.
5693         (NUM_LEADING_BYTES): Likewise.
5694         (MIN_LEADING_BYTE): Likewise.
5695         (CHARSETP): Likewise.
5696         (CHARSET_BY_LEADING_BYTE): Likewise.
5697         (XCHARSET_LEADING_BYTE): Likewise.
5698         (XCHARSET_GRAPHIC): Likewise.
5699         (XCHARSET_COLUMNS): Likewise.
5700         (XCHARSET_DIMENSION): Likewise.
5701         (BREAKUP_CHAR): Likewise.
5702
5703 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5704
5705         * character.h: Add document about interface for characters.
5706
5707         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5708         (MAKE_CHAR): Delete comment about
5709         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5710         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5711         (BREAKUP_CHAR): Modify name of arguments.
5712         (CHAR_CHARSET): Modify name of argument.
5713
5714         * buffer.h: Delete document about Emchar accessors.
5715
5716 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5717
5718         * character.h (CHAR_INTP): Moved from buffer.h
5719         (CHAR_OR_CHAR_INTP): Likewise.
5720         (XCHAR_OR_CHAR_INT): Likewise.
5721         (CHECK_CHAR_COERCE_INT): Likewise.
5722
5723         * buffer.h (CHAR_INTP): Moved to character.h
5724         (CHAR_OR_CHAR_INTP): Likewise.
5725         (XCHAR_OR_CHAR_INT): Likewise.
5726         (CHECK_CHAR_COERCE_INT): Likewise.
5727
5728 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5729
5730         * character.h:
5731         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5732         - Include char-1byte.h, char-lb.h or char-ucs.h.
5733
5734         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5735
5736         * buffer.h: Include character unconditionally.
5737         (valid_char_p): Moved to char-*.h.
5738         (non_ascii_valid_char_p): Moved to char-lb.h.
5739
5740         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5741
5742 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5743
5744         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5745         in UTF-2000 because it is not ported yet and not to use
5746         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5747         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5748         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5749
5750         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5751         (CHAR_ASCII_P): Moved from character.h.
5752
5753         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5754         (CHAR_ASCII_P): Likewise.
5755         (CHAR_FIELD1_MASK): Deleted.
5756         (CHAR_FIELD2_MASK): Deleted.
5757         (CHAR_FIELD3_MASK): Deleted.
5758         (MAX_CHAR_BASIC_LATIN): New macro.
5759         (CHAR_FIELD1): Deleted.
5760         (CHAR_FIELD2_INTERNAL): Deleted.
5761         (CHAR_FIELD3_INTERNAL): Deleted.
5762         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5763         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5764         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5765         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5766         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5767         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5768         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5769         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5770         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5771         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5772         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5773         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5774         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5775         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5776         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5777         (MIN_CHAR_COMPOSITION): Deleted.
5778         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5779         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5780
5781 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5782
5783         * buffer.h: Include mb-utf-8.h in UTF-2000.
5784
5785         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5786
5787         * mb-utf-8.h: New file.
5788
5789 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5790
5791         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5792         instead of `int'.
5793
5794         * mule-charset.h, buffer.h (Charset_ID): New type.
5795
5796 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5797
5798         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5799         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5800         instead of `MULE_CHAR_PRIVATE_OFFSET',
5801         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5802         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5803         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5804
5805         * character.h (Vcharset_japanese_jisx0212): New variable
5806         definition.
5807
5808 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5809
5810         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5811         (charset_by_attributes): Delete array about direction.
5812         (latin_a_char_to_charset): New variable in UTF-2000.
5813         (latin_a_char_to_byte1): New variable in UTF-2000.
5814         (latin_a_char_to_byte2): New variable in UTF-2000.
5815         (Qucs_bmp): New variable.
5816         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5817         `Bufbyte'.
5818         (next_allocated_2_byte_leading_byte): Likewise.
5819         (non_ascii_set_charptr_emchar): Likewise.
5820         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5821         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5822         `charset_by_attributes'.
5823         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5824         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5825         and `CHARSET_BY_LEADING_BYTE'.
5826         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5827         `utf-2000-version' to `vars_of_mule_charset'.
5828         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5829         define `leading-code-private-11' in UTF-2000; move setting of
5830         `utf-2000-version' from `syms_of_mule_charset'.
5831         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5832         UTF-2000.
5833
5834         * character.h (Charset_ID): New type.
5835         (LEADING_BYTE_UCS_BMP): New macro.
5836         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5837         (CHARSET_ID_OFFSET_94): New macro.
5838         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5839         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5840         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5841         final-byte.
5842         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5843         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5844         (CHARSET_ID_OFFSET_96): New macro.
5845         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5846         CHARSET_ID_OFFSET_96 and final-byte.
5847         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5848         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5849         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5850         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5851         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5852         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5853         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5854         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5855         (LEADING_BYTE_THAI_TIS620): Likewise.
5856         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5857         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5858         (CHARSET_ID_OFFSET_94x94): New macro.
5859         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5860         CHARSET_ID_OFFSET_94x94 and final-byte.
5861         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5862         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5863         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5864         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5865         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5866         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5867         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5868         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5869         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5870         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5871         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5872         (CHARSET_TYPE_128X128): New macro.
5873         (CHARSET_TYPE_256X256): New macro.
5874         (XCHARSET_PRIVATE_P): Delete unconditionally.
5875         (charset_by_attributes): Delete array about direction.
5876         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5877         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5878         (MIN_CHAR_94): New macro.
5879         (MAX_CHAR_94): New macro.
5880         (MIN_CHAR_96): New macro.
5881         (MAX_CHAR_96): New macro.
5882         (MIN_CHAR_94x94): New macro.
5883         (MAX_CHAR_94x94): New macro.
5884         (MIN_CHAR_96x96): New macro.
5885         (MAX_CHAR_96x96): New macro.
5886         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5887         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5888         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5889         - 32)'.
5890         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5891         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5892         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5893         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5894         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5895         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5896         `XCHARSET_LEADING_BYTE' to make code-point.
5897         (latin_a_char_to_charset): New variable.
5898         (latin_a_char_to_byte1): New variable.
5899         (latin_a_char_to_byte2): New variable.
5900         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5901         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5902         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5903
5904         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5905         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5906         (find_charsets_in_emchar_string): Likewise.
5907         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5908
5909         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5910         `int'.
5911         (decode_coding_iso2022): Likewise.
5912
5913         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5914         of `unsigned char'.
5915
5916         * redisplay.c (redisplay_text_width_emchar_string): Use
5917         `Charset_ID' instead of `unsigned char'.
5918         (redisplay_frame_text_width_string): Likewise.
5919
5920         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5921         `unsigned char'.
5922
5923         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5924         instead of `unsigned char'.
5925         (face_cachel_charset_font_metric_info): Likewise.
5926
5927         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5928         (get_non_ascii_char_table_value): Likewise.
5929         (get_char_table): Likewise.
5930         (put_char_table): Likewise.
5931         (map_over_other_charset): Likewise.
5932         (map_char_table): Likewise.
5933
5934         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5935         instead of `unsigned char'.
5936
5937 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5938
5939         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5940         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5941
5942         * mule-charset.c (leading_code_private_11): Don't define in
5943         UTF-2000.
5944
5945         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5946         in UTF-2000 because it is not ported yet and not to use
5947         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5948
5949 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5950
5951         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5952
5953 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5954
5955         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5956         in UTF-2000.
5957
5958         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5959         of unsigned char to store leading-byte.
5960
5961         * chartab.c (get_non_ascii_char_table_value): Don't use
5962         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5963
5964         * file-coding.c (encode_coding_big5): Delete bogus implementation
5965         in UTF2000.
5966
5967         * character.h (LEADING_BYTE_*): Delete definition for
5968         non-UTF-2000.
5969         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5970         (LEADING_BYTE_PREFIX_P): Deleted.
5971         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5972         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5973         (BUFBYTE_LEADING_BYTE_P): Deleted.
5974         (CHARSET_PRIVATE_P): Deleted unconditionally.
5975         (rep_bytes_by_first_byte): Deleted unconditionally.
5976         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5977         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5978         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5979         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5980         (CHAR_FIELD2): Deleted.
5981         (CHAR_FIELD3): Deleted.
5982         (MAKE_CHAR): Delete definition for non-UTF-2000.
5983         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5984         (breakup_char_1): New implementation.
5985         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5986         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5987
5988 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5989
5990         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5991         condition.
5992
5993 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5994
5995         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5996         (CHARSET_PRIVATE_P): Likewise.
5997         (XCHARSET_PRIVATE_P): Likewise.
5998         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5999
6000         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
6001         UTF2000.
6002         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
6003
6004 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
6005
6006         * character.h (LEADING_BYTE_*): Changed in UTF2000.
6007         (NUM_LEADING_BYTES): Changed from 128 to 256.
6008         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
6009         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
6010         UTF2000.
6011         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
6012
6013         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
6014         UTF2000.
6015         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
6016         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
6017         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
6018         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
6019         (Qchinese_cns11643_3): New variable in UTF2000.
6020         (Qchinese_cns11643_4): New variable in UTF2000.
6021         (Qchinese_cns11643_5): New variable in UTF2000.
6022         (Qchinese_cns11643_6): New variable in UTF2000.
6023         (Qchinese_cns11643_7): New variable in UTF2000.
6024         (syms_of_mule_charset): Define `chinese-cns11643-3',
6025         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
6026         and `chinese-cns11643-7' in UTF2000.
6027         (vars_of_mule_charset): Initialize
6028         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
6029         + 1 in UTF2000.
6030         (complex_vars_of_mule_charset): Setup charset
6031         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
6032         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
6033
6034 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
6035
6036         * mule-charset.c: Move setting for `leading-code-private-11' from
6037         `syms_of_mule_charset' to `vars_of_mule_charset'.
6038
6039 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
6040
6041         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
6042         and `NUM_LEADING_BYTES' in assert.
6043
6044 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
6045
6046         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
6047         instead of 128.
6048         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
6049         `NUM_LEADING_BYTES' instead of 128.
6050
6051 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
6052
6053         * mule-charset.h (charset_by_leading_byte): Use
6054         `NUM_LEADING_BYTES' instead of 128.
6055         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
6056
6057         * mule-charset.c (charset_by_leading_byte): Use
6058         `NUM_LEADING_BYTES' instead of 128.
6059         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
6060
6061         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
6062         128.
6063
6064 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
6065
6066         * mule-charset.c (syms_of_mule_charset): Update to
6067         0.4 (Shin-Imamiya).
6068
6069 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
6070
6071         * file-coding.c (encode_coding_sjis): New implementation for
6072         UTF2000.  (decode_coding_sjis): Ditto.
6073
6074 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
6075
6076         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
6077         Don't define in UTF2000.
6078
6079         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
6080         defined.
6081
6082         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
6083         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
6084         MULE.
6085
6086 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
6087
6088         * config.h.in (CHAR_IS_UCS4): New macro.
6089
6090         * mule-charset.c (rep_bytes_by_first_byte): Modify for
6091         conventional MULE representation.
6092         (syms_of_mule_charset): Update to 0.3 (Imamiya).
6093
6094         * mule-charset.h: Reverted to original.
6095
6096         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
6097         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
6098         "mule-charset.h" if CHAR_IS_UCS4 is defined.
6099
6100         * character.h: New file.
6101
6102         * file-coding.c (Fmake_coding_system): Set 1 to
6103         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
6104         defined.
6105         (encode_coding_no_conversion): New implementation for UTF2000.
6106
6107         * file-coding.h (struct Lisp_Coding_System): Add new member
6108         `fixed.size'.
6109
6110 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
6111
6112         * file-coding.c (decode_coding_iso2022): Code-point arguments of
6113         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
6114         (encode_coding_iso2022): New implementation for UTF2000.
6115
6116 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6117
6118         * mule-canna.c (c2mu): New implementation for UTF2000.
6119         (m2c): Likewise.
6120
6121 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6122
6123         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
6124
6125 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6126
6127         * file-coding.c (reset_encoding_stream): Set 0 to
6128         `str->iso2022.current_char_boundary' in UTF2000.
6129         (encode_utf8): Don't define in UTF2000.
6130         (encode_coding_utf8): New implementation for UTF-8 representation
6131         of UTF2000.
6132         (complex_vars_of_file_coding): Define coding-system `utf-8'.
6133
6134 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6135
6136         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
6137
6138         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
6139         UTF2000.
6140         (REP_BYTES_BY_FIRST_BYTE): Likewise.
6141
6142         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
6143
6144         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
6145         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
6146         as UTF-8 in UTF2000.
6147         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
6148         (non_ascii_valid_char_p): Don't define in UTF2000.
6149         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
6150         (Lstream_get_emchar_1): Likewise.
6151         (utf-2000-version): New variable in UTF2000.
6152
6153         * lread.c (read_escape): Add new reader `u'.
6154
6155         * insdel.c (three_to_one_table): Don't define in UTF2000.
6156         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
6157         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6158         UTF2000.
6159         (bytind_to_bufpos_func): Likewise.
6160         (buffer_mule_signal_inserted_region): Likewise.
6161         (vars_of_insdel): Don't initialize `three_to_one_table'.
6162         (init_buffer_text): Use `buf->text->mule_size' instead of
6163         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6164         UTF2000.
6165
6166         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
6167         UTF-8 representation in UTF2000.
6168         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
6169         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
6170         (decode_coding_iso2022): Don't define local variable `lb' in
6171         UTF2000; don't use LEADING_BYTE in UTF2000; use
6172         `DECODE_ADD_UCS_CHAR' in UTF2000.
6173         (convert_to_external_format): Decode as UTF-8 in UTF2000.
6174
6175         * config.h.in (UTF2000): New macro.
6176
6177         * buffer.h (struct buffer_text): Add new member `mule_size' and
6178         don't add `mule_shifter' and `mule_three_p' in UTF2000.
6179         (valid_char_p): Return always 1 in UTF2000.
6180         (MAX_EMCHAR_LEN): 6 in UTF2000.
6181         (three_to_one_table): Don't define in UTF2000.
6182         (real_bufpos_to_bytind): Modify for UTF-8 representation in
6183         UTF2000.
6184         (real_bytind_to_bufpos): Likewise.
6185
6186         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
6187
6188 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
6189
6190         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
6191         representation change.
6192         (Vutf_2000_version): New variable.
6193         (leading_code_private_11): New variable.
6194         (syms_of_mule_charset): Add new variables `utf-2000-version' and
6195         `leading-code-private-11'.
6196
6197         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
6198         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
6199         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
6200         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
6201         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
6202         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
6203         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
6204         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
6205         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
6206         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
6207         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
6208         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
6209         (MIN_CHAR_GREEK): New macro.
6210         (MAX_CHAR_GREEK): New macro.
6211         (MIN_CHAR_CYRILLIC): New macro.
6212         (MAX_CHAR_CYRILLIC): New macro.
6213         (MIN_CHAR_HEBREW): New macro.
6214         (MAX_CHAR_HEBREW): New macro.
6215         (MIN_CHAR_THAI): New macro.
6216         (MAX_CHAR_THAI): New macro.
6217         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
6218         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
6219         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
6220         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
6221         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
6222         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
6223         (CHAR_FIELD2): New inline function.
6224         (CHAR_FIELD3): New inline function.
6225         (MULE_CHAR_PRIVATE_OFFSET): New macro.
6226         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
6227         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
6228         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
6229         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
6230         (MIN_CHAR_COMPOSITION): Likewise.
6231         (CHAR_LEADING_BYTE): Modified for character representation change.
6232         (MAKE_CHAR): Likewise.
6233
6234         * lisp.h (Vcharset_latin_iso8859_1): New variable.
6235         (Vcharset_greek_iso8859_7): Likewise.
6236         (Vcharset_cyrillic_iso8859_5): Likewise.
6237         (Vcharset_hebrew_iso8859_8): Likewise.
6238         (Vcharset_thai_tis620): Likewise.
6239         (Vcharset_katakana_jisx0201): Likewise.
6240
6241 2008-12-28  Vin Shelton  <acs@xemacs.org>
6242
6243         * XEmacs 21.4.22 is released
6244
6245 2008-12-27  Vin Shelton  <acs@xemacs.org>
6246
6247         * syswindows.h: Don't define wide character interfaces for Cygwin
6248         1.7 and up.
6249
6250 2008-03-05  Dominique Quatravaux  <domq@cpan.org>
6251
6252         * glyphs-gtk.c: Fixed compilation under gcc 4.x.
6253
6254 2008-11-01  Stephen J. Turnbull  <stephen@xemacs.org>
6255
6256         * regex.c (re_search_2): Fix at_dot by changing charpos to bytepos.
6257         From Julian Bradfield <18654.1143.304851.782755@krk.inf.ed.ac.uk>.
6258
6259 2008-12-25  Vin Shelton  <acs@xemacs.org>
6260
6261         * mule-ccl.c (ccl_driver): Fix off-by-one error.
6262         By Julian Bradfield in
6263         <18691.16568.526264.972026@krk.inf.ed.ac.uk>.
6264
6265         * mule-ccl.c (ccl_driver): 
6266
6267 2007-10-07  Vin Shelton  <acs@xemacs.org>
6268
6269         * XEmacs 21.4.21 is released
6270
6271 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
6272
6273         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
6274
6275 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
6276
6277         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
6278         (png_instantiate): Initialize setjmp_buffer early, and avoid
6279         recursive entry to error handler.
6280
6281 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
6282
6283         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
6284         a typo fix.
6285
6286 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
6287
6288         * event-Xt.c (x_reset_modifier_mapping):
6289         * event-gtk.c (gtk_reset_modifier_mapping):
6290         Zero out the device's modifier map once we've freed it, to prevent
6291         a double free on a re-entrant call. 
6292
6293 2007-05-17  Vin Shelton  <acs@xemacs.org>
6294
6295         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
6296         64-bit linux.  Patch from Hans de Graaff.
6297
6298 2007-05-02  Vin Shelton  <acs@xemacs.org>
6299
6300         * dumper.c (pdump): Don't close pdump_fd (already closed by
6301         fclose() call.  Patch from Steve Higham.
6302         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
6303         already closed.  Patch inspired by Steve Higham.
6304
6305 2007-05-01  Vin Shelton  <acs@xemacs.org>
6306
6307         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
6308         (mswindows_fstat): Ditto.
6309         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
6310
6311 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
6312
6313         * postgresql.c: Update Steve Baur's email address by his request.
6314         * postgresql.h: Ditto.
6315
6316 2007-01-04  Vin Shelton  <acs@xemacs.org>
6317
6318         * fileio.c (check_writable): Check old-style readonly bit only for
6319         non-directories.
6320
6321 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
6322
6323         * src/fileio.c (check_writable): 
6324         Cope with the fact that the read-only attribute trumps Windows NTFS
6325         ACLS.
6326
6327
6328 2006-12-09  Vin Shelton  <acs@xemacs.org>
6329
6330         * XEmacs 21.4.20 is released
6331
6332 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
6333
6334         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
6335         relocated the definitions to be used sooner in file.
6336         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6337         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6338         overflow.
6339
6340 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
6341
6342         * sound.c (init_native_sound):
6343         Only X11 and GTK devices can possibly not be on the console of the
6344         associated machine. Fixes a crash when init_native_sound is called
6345         on a msprinter device. 
6346
6347 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
6348
6349         * buffer.c (buffer-file-name): Document invariant.
6350         (buffer-file-truename): Sync wording to buffer-file-name.
6351         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6352         and discussion.
6353
6354 2006-11-19  Benson Margulies  <benson@dchbk.us>
6355
6356         * fileio.c: Add code to use full Win32 API to check for write
6357         access.  Win32 has the general design policy that you aren't
6358         supposed to ask this question, since security checks change
6359         depending on asynchronous processes.  Nonetheless, there is a way,
6360         by acting as if we are a server doing interpretive access
6361         control.
6362
6363 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6364
6365         * bytecode.c: Use xnew_array instead of alloca.
6366
6367 2006-07-04  Vin Shelton  <acs@xemacs.org>
6368
6369         * redisplay-msw.c: Fix tiny, but crucial typo.
6370
6371 2006-06-22  Jerry James  <james@xemacs.org>
6372
6373         * EmacsShell-sub.c (ChangeManaged):
6374         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6375         NULL.
6376         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6377         checking if it is NULL.  Also fix a memory leak.
6378         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6379         dereference it, not the other way around.
6380         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6381         overflow check.
6382         * dumper.c (pdump_register_struct): Ditto.
6383         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6384         to (short) warnpath overflow warnpath.
6385         * extents.c (detach_all_extents): Call extent_list_delete_all with
6386         a non-NULL parameter only.
6387         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6388         NULL width and height.
6389         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6390         xic before checking if they are NULL.
6391         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6392         allocated array.
6393         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6394         * nas.c (Err): Fix a memory leak.
6395         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6396         Don't create the buffer if there is nothing to do.
6397         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6398         * redisplay-output.c (redisplay_output_layout): Ditto.
6399         * redisplay-tty.c (tty_output_display_block): Ditto.
6400         * redisplay-x.c (x_output_display_block): Ditto.
6401         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6402         dereference instance->scrollbar_data if it is NULL.
6403         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6404         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6405         for sb->scrollbar_data.
6406         * sound.c (init_native_sound): Avoid a buffer overflow by
6407         allocating a buffer with the appropriate size.
6408
6409 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6410
6411         * EmacsShell-sub.c (RootGeometryManager):
6412         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6413         Based on a suggestion by Francois L'Archeveque.
6414
6415 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6416
6417         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6418         current values found in GNU Emacs.
6419
6420 2006-03-17  Vin Shelton  <acs@xemacs.org>
6421
6422         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6423         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6424
6425         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6426         'hex_initialized' because it conflicts with 'initialized' in
6427         lisp.h.
6428
6429 2006-01-28  Vin Shelton  <acs@xemacs.org>
6430
6431         * XEmacs 21.4.19 is released
6432
6433 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6434
6435         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6436
6437 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6438
6439         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6440         5000 to INT_MAX.
6441
6442 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6443
6444         * database.c: Suppress compiler warning under Cygwin.
6445         * database.c: Removed __FreeBSD__ check, should be handled by
6446         HAVE_U_xxx_T defines.
6447
6448 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6449
6450         * console.c (stuff_buffered_input): Compile body only if
6451         HAVE_TTY.
6452
6453 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6454
6455         * callproc.c: #include sysdir.h, so that any appropriate Mule
6456         magic happens with the chdir() call when calling a subprocess. 
6457
6458 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6459
6460         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6461         * mule-ccl.c: Check that a character set exists before using it
6462         to create a character. 
6463
6464 2005-12-06  Vin Shelton  <acs@xemacs.org>
6465
6466         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6467         to INT_MAX.
6468
6469 2005-12-03  Vin Shelton <acs@xemacs.org>
6470
6471         * XEmacs 21.4.18 is released
6472
6473 2005-11-27  Kean Johnston <kean@armory.com>
6474
6475         * redisplay-tty.c (set_tty_modes):
6476         (reset_tty_modes): disable auto-margins if the terminal supports
6477         them.
6478         (init_tty_for_redisplay): fix cursor shape.
6479
6480 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6481
6482         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6483         for control-1 characters properly, both when reading multibyte
6484         characters and writing them. 
6485
6486 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6487
6488         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6489         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6490         were seeing with incremental selection transfer failing. 
6491
6492 2005-11-26  Vin Shelton  <acs@xemacs.org>
6493
6494         * callproc.c (Fold_call_process_internal): Create the buffer if it
6495         does not already exist.  The original patch came from Ben Wing in
6496         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6497
6498 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6499
6500         * callproc.c: Process-related docstring improvements spurred by
6501         Norbert Koch.
6502
6503 2005-11-25  Vin Shelton  <acs@xemacs.org>
6504
6505         * depend: Regenerated.
6506
6507 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6508
6509         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6510         says it clashes with a global with the same name.
6511
6512 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6513
6514         * sysdll.c (dll_open): Under MacOS X return NULL under the
6515         filename is NULL.  Fixes problems finding local symbols under 10.4
6516         (Tiger)
6517
6518 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6519         
6520         * config.h.in: New HAVE_U_INT*_T defines.
6521         
6522         * database.c: Only use u_int*_t typedefs if not already
6523         defined.
6524
6525 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6526
6527         * src/process-unix.c (unix_open_network_stream): moved
6528           'portbuf' buffer out of an inner block as it is used in the
6529           entire function. With gcc4, the stack may get corrupted
6530           after leaving this block. This patches adjusts the size of
6531           the used buffer also; static '128' bytes are far too much
6532           currently and might not suffice for future architectures
6533           (e.g. for 512 bit ones ;)). Instead of, use only the really
6534           required space (max octets * ln(256)/ln(10) chars + space
6535           for '\0' and the sign)
6536
6537 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6538
6539         * callproc.c: Include sysdir.h, so any necessary Mule processing
6540         is done on the current directory name before starting a new
6541         process.
6542
6543 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6544
6545         * chartab.c (Fchar_table_p):
6546         (Fget_range_char_table):
6547         (Fput_char_table):
6548         (Fmap_char_table):
6549         Describe range representation and fix typo.
6550
6551 2005-02-12  Vin Shelton  <acs@xemacs.org>
6552
6553         * emacs.c (shut_down_emacs): Advise users to send email to the
6554         xemacs-beta list instead of crashes@xemacs.org.
6555
6556 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6557
6558         * process-unix.c (unix_send_process): Flush the last chunk, even
6559         when the pipe is blocked.
6560
6561 2005-02-06  Vin Shelton <acs@xemacs.org>
6562
6563         * XEmacs 21.4.17 is released
6564
6565 2005-01-31  Ben Wing  <ben@xemacs.org>
6566
6567         * emacs.c:
6568         Define assert_failed() always.
6569         * lisp.h:
6570         Always define ABORT().
6571
6572 2005-01-25  Ben Wing  <ben@xemacs.org>
6573
6574         * Makefile.in.in:
6575         * Makefile.in.in (%.o):
6576         Don't compile executable as Windows (-mwindows) under Cygwin.
6577         Semi-recent changes to Cygwin's executable-startup handling make
6578         it impossible to access the TTY this way.
6579
6580         Don't use special linker file under Cygwin (cygwin.sc) except
6581         when non-PDUMP (even in this case it is highly questionable); you
6582         get errors like
6583
6584       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6585    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6586
6587 2005-01-29  Ben Wing  <ben@xemacs.org>
6588
6589         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6590
6591         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6592
6593 2005-01-29  Ben Wing  <ben@xemacs.org>
6594
6595         * bytecode.c (optimize_compiled_function):
6596         * print.c (FROB):
6597         * print.c (long_to_string):
6598         Add casts to avoid warning.
6599         
6600         * glyphs-eimage.c:
6601         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6602         #### The better solution is to move the TIFF and JPEG code to
6603         different files.
6604         
6605         * glyphs-msw.c (mswindows_xbm_instantiate):
6606         Define __STDC__ to avoid problems with compface.h.
6607         
6608         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6609         * EmacsShell-sub.c:
6610         * EmacsShell-sub.c (ABORT):
6611         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6612         * EmacsShell-sub.c (RootGeometryManager):
6613         * EmacsShell.c:
6614         * EmacsShell.c (ABORT):
6615         * EmacsShell.c (EmacsShellUpdateSizeHints):
6616         * alloc.c (free_lcrecord):
6617         * alloca.c (i00afunc):
6618         * buffer.c (delete_from_buffer_alist):
6619         * buffer.c (MARKED_SLOT):
6620         * bytecode.c (execute_rare_opcode):
6621         * bytecode.c (optimize_byte_code):
6622         * bytecode.c (Ffetch_bytecode):
6623         * chartab.c (char_table_type_to_symbol):
6624         * chartab.c (Freset_char_table):
6625         * chartab.c (decode_char_table_range):
6626         * chartab.c (Fget_range_char_table):
6627         * chartab.c (check_valid_char_table_value):
6628         * chartab.c (map_char_table):
6629         * chartab.c (slow_map_char_table_fun):
6630         * chartab.c (chartab_instantiate):
6631         * cm.c (cmcheckmagic):
6632         * console-msw.c (DHEADER):
6633         * console.c (MARKED_SLOT):
6634         * data.c (finish_marking_weak_lists):
6635         * data.c (encode_weak_list_type):
6636         * debug.h (DASSERT):
6637         * device-gtk.c (gtk_init_device):
6638         * device-msw.c (mswindows_get_default_margin):
6639         * device-tty.c (tty_init_device):
6640         * device-x.c (get_device_from_display):
6641         * device-x.c (x_get_visual_depth):
6642         * doprnt.c (parse_doprnt_spec):
6643         * doprnt.c (get_doprnt_args):
6644         * dumper.c (pdump_get_indirect_count):
6645         * dumper.c (pdump_register_sub):
6646         * dumper.c (pdump_register_object):
6647         * dumper.c (pdump_register_struct):
6648         * dumper.c (pdump_dump_data):
6649         * dumper.c (pdump_reloc_one):
6650         * elhash.c (print_hash_table):
6651         * elhash.c (make_standard_lisp_hash_table):
6652         * elhash.c (hash_table_instantiate):
6653         * emacs.c:
6654         * emacs.c (Fforce_debugging_signal):
6655         * emacs.c (sort_args):
6656         * emacs.c (main):
6657         * emacs.c (assert_failed):
6658         * eval.c (throw_or_bomb_out):
6659         * eval.c (signal_1):
6660         * eval.c (Fsignal):
6661         * event-Xt.c:
6662         * event-Xt.c (emacs_Xt_mapping_action):
6663         * event-Xt.c (Xt_process_to_emacs_event):
6664         * event-msw.c:
6665         * event-stream.c (check_event_stream_ok):
6666         * event-stream.c (Fadd_timeout):
6667         * event-stream.c (Fadd_async_timeout):
6668         * event-stream.c (Fdiscard_input):
6669         * event-stream.c (execute_internal_event):
6670         * event-stream.c (Frecent_keys):
6671         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6672         * event-stream.c (lookup_command_event):
6673         * event-unixoid.c (poll_fds_for_input):
6674         * events.c:
6675         * events.c (mark_event):
6676         * events.c (event_equal):
6677         * events.c (event_hash):
6678         * events.c (Fmake_event):
6679         * events.c (Fdeallocate_event):
6680         * events.c (event_chain_find_previous):
6681         * events.c (event_to_character):
6682         * events.c (format_event_object):
6683         * events.c (Fevent_type):
6684         * events.c (event_pixel_translation):
6685         * events.c (Fevent_properties):
6686         * extents.c (extent_in_region_p):
6687         * extents.c (print_extent):
6688         * extents.c (process_extents_for_insertion_mapper):
6689         * extents.c (report_extent_modification_mapper):
6690         * extents.c (glyph_layout_to_symbol):
6691         * faces.c (face_validate):
6692         * file-coding.c (eol_type_to_symbol):
6693         * file-coding.c (subsidiary_coding_system):
6694         * file-coding.c (Fcoding_system_type):
6695         * file-coding.c (Fcoding_system_property):
6696         * file-coding.c (mule_decode):
6697         * file-coding.c (mule_encode):
6698         * file-coding.c (encode_coding_ucs4):
6699         * file-coding.c (encode_coding_utf8):
6700         * file-coding.c (parse_iso2022_esc):
6701         * file-coding.c (encode_coding_iso2022):
6702         * fileio.c:
6703         * fns.c (concat):
6704         * fns.c (Fsubseq):
6705         * fns.c (mapcar1):
6706         * fns.c (Fbase64_encode_region):
6707         * fns.c (Fbase64_encode_string):
6708         * fns.c (Fbase64_decode_region):
6709         * fns.c (Fbase64_decode_string):
6710         * font-lock.c (find_context):
6711         * font-lock.c (context_to_symbol):
6712         * frame-gtk.c (gtk_set_frame_pointer):
6713         * frame-gtk.c (gtk_update_frame_external_traits):
6714         * frame-x.c (x_wm_mark_shell_size_user_specified):
6715         * frame-x.c (x_wm_mark_shell_position_user_specified):
6716         * frame-x.c (x_wm_set_shell_iconic_p):
6717         * frame-x.c (x_wm_set_cell_size):
6718         * frame-x.c (x_wm_set_variable_size):
6719         * frame-x.c (x_wm_store_class_hints):
6720         * frame-x.c (x_wm_maybe_store_wm_command):
6721         * frame-x.c (x_initialize_frame_size):
6722         * frame-x.c (x_update_frame_external_traits):
6723         * frame.c:
6724         * frame.c (delete_frame_internal):
6725         * frame.c (mouse_pixel_position_1):
6726         * frame.c (change_frame_size_1):
6727         * free-hook.c (check_free):
6728         * free-hook.c (check_realloc):
6729         * free-hook.c (note_block_input):
6730         * free-hook.c (log_gcpro):
6731         * gccache-gtk.c (gc_cache_lookup):
6732         * glyphs-eimage.c (tiff_memory_write):
6733         * glyphs-gtk.c (gtk_finalize_image_instance):
6734         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6735         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6736         * glyphs-gtk.c (gtk_xpm_instantiate):
6737         * glyphs-gtk.c (gtk_unmap_subwindow):
6738         * glyphs-gtk.c (gtk_map_subwindow):
6739         * glyphs-gtk.c (gtk_button_redisplay):
6740         * glyphs-msw.c:
6741         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6742         * glyphs-x.c (init_image_instance_from_xbm_inline):
6743         * glyphs-x.c (extract_xpm_color_names):
6744         * glyphs-x.c (x_xpm_instantiate):
6745         * glyphs.c (get_image_instantiator_governing_domain):
6746         * glyphs.c (print_image_instance):
6747         * glyphs.c (image_instance_equal):
6748         * glyphs.c (image_instance_hash):
6749         * glyphs.c (encode_image_instance_type):
6750         * glyphs.c (make_image_instance_1):
6751         * glyphs.c (inherit_instantiate):
6752         * glyphs.c (image_instantiate):
6753         * glyphs.c (allocate_glyph):
6754         * glyphs.c (Fglyph_type):
6755         * glyphs.c (redisplay_subwindow):
6756         * glyphs.c (display_table_entry):
6757         * gtk-glue.c (xemacs_list_to_gtklist):
6758         * gtk-glue.c (xemacs_gtklist_to_list):
6759         * gtk-glue.c (xemacs_list_to_array):
6760         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6761         * gutter.c (gutter_was_visible):
6762         * gutter.c (get_gutter_coords):
6763         * input-method-xlib.c (get_XIM_input):
6764         * insdel.c (bufpos_to_bytind_func):
6765         * insdel.c (bytind_to_bufpos_func):
6766         * insdel.c (move_gap):
6767         * intl.c (x_get_composed_input):
6768         * keymap.c (keymap_lookup_directly):
6769         * keymap.c (keymap_delete_inverse_internal):
6770         * keymap.c (ensure_meta_prefix_char_keymapp):
6771         * keymap.c (accessible_keymaps_mapper_1):
6772         * keymap.c (where_is_recursive_mapper):
6773         * lisp.h:
6774         * lisp.h (ABORT):
6775         * lread.c (read_atom):
6776         * lstream.c (Lstream_delete):
6777         * lstream.c (make_lisp_buffer_stream_1):
6778         * macros.c (pop_kbd_macro_event):
6779         * malloc.c (malloc):
6780         * malloc.c (free):
6781         * marker.c (bi_marker_position):
6782         * marker.c (set_bi_marker_position):
6783         * menubar-gtk.c (menu_descriptor_to_widget_1):
6784         * menubar-msw.c (prune_menubar):
6785         * menubar-x.c (set_frame_menubar):
6786         * mule-charset.c (get_unallocated_leading_byte):
6787         * mule-charset.h (CHAR_LEADING_BYTE):
6788         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6789         * nt.c (init_environment):
6790         * nt.c (generate_inode_val):
6791         * ntproc.c (delete_child):
6792         * ntproc.c (_sys_read_ahead):
6793         * ntproc.c (create_child):
6794         * objects.c (color_instantiate):
6795         * objects.c (font_instantiate):
6796         * objects.c (face_boolean_instantiate):
6797         * print.c (printing_major_badness):
6798         * process-nt.c (nt_send_process):
6799         * process-unix.c (unix_send_process):
6800         * process.c (get_process):
6801         * ralloc.c (obtain):
6802         * ralloc.c (relinquish):
6803         * ralloc.c (relocate_blocs):
6804         * ralloc.c (resize_bloc):
6805         * ralloc.c (r_alloc_free):
6806         * ralloc.c (r_re_alloc):
6807         * ralloc.c (r_alloc_thaw):
6808         * ralloc.c (init_ralloc):
6809         * ralloc.c (Free_Addr_Block):
6810         * ralloc.c (r_alloc):
6811         * redisplay-gtk.c (gtk_output_display_block):
6812         * redisplay-msw.c (mswindows_output_display_block):
6813         * redisplay-output.c (get_next_display_block):
6814         * redisplay-output.c (get_cursor_size_and_location):
6815         * redisplay-output.c (redisplay_output_layout):
6816         * redisplay-output.c (redisplay_clear_region):
6817         * redisplay-tty.c (tty_output_display_block):
6818         * redisplay-x.c (x_output_display_block):
6819         * redisplay.c (add_propagation_runes):
6820         * redisplay.c (add_glyph_rune):
6821         * redisplay.c (create_text_block):
6822         * redisplay.c (add_margin_runes):
6823         * redisplay.c (create_left_glyph_block):
6824         * redisplay.c (create_right_glyph_block):
6825         * redisplay.c (create_string_text_block):
6826         * redisplay.c (regenerate_window):
6827         * redisplay.c (REGEN_INC_FIND_START_END):
6828         * redisplay.c (redisplay_frame):
6829         * redisplay.c (point_in_line_start_cache):
6830         * regex.c:
6831         * regex.c (ABORT):
6832         * regex.c (re_compile_fastmap):
6833         * regex.c (re_match_2_internal):
6834         * regex.c (regerror):
6835         * scrollbar-gtk.c (gtk_scrollbar_loop):
6836         * scrollbar-gtk.c (scrollbar_cb):
6837         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6838         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6839         * scrollbar-x.c (x_update_scrollbar_instance_status):
6840         * scrollbar-x.c (x_scrollbar_loop):
6841         * scrollbar-x.c (x_update_frame_scrollbars):
6842         * search.c (search_command):
6843         * search.c (Fmatch_data):
6844         * select-x.c (motif_clipboard_cb):
6845         * signal.c (interrupt_signal):
6846         * specifier.c (specifier_add_spec):
6847         * specifier.c (specifier_instance_from_inst_list):
6848         * specifier.c (specifier_instance):
6849         * specifier.h:
6850         * specifier.h (struct specifier_methods):
6851         * strftime.c (add_num_time_t):
6852         * sunplay.c (init_device):
6853         * symbols.c (Fsetplist):
6854         * symbols.c (do_symval_forwarding):
6855         * symbols.c (store_symval_forwarding):
6856         * symbols.c (Fset):
6857         * symbols.c (Fbuilt_in_variable_type):
6858         * symbols.c (decode_magic_handler_type):
6859         * symbols.c (handler_type_from_function_symbol):
6860         * syntax.c (update_syntax_cache):
6861         * sysdep.c (init_baud_rate):
6862         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6863         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6864         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6865         * toolbar.c (get_toolbar_coords):
6866         * ui-gtk.c (build_gtk_boxed):
6867         * ui-gtk.c (describe_gtk_arg):
6868         * ui-gtk.c (gtk_type_to_lisp):
6869         * ui-gtk.c (lisp_to_gtk_type):
6870         * ui-gtk.c (lisp_to_gtk_ret_type):
6871         * ui-gtk.c (lisp_to_flag):
6872         * unexnt.c (read_in_bss):
6873         * unexnt.c (map_in_heap):
6874         * window.c (real_window):
6875         * window.c (window_display_lines):
6876         * window.c (window_display_buffer):
6877         * window.c (set_window_display_buffer):
6878         * window.c (window_modeline_height):
6879         * window.c (unshow_buffer):
6880         * window.c (window_loop):
6881         * window.c (Fget_lru_window):
6882         * window.c (Fsplit_window):
6883         * window.c (Fset_window_configuration):
6884         * window.c (saved_window_index):
6885         * xgccache.c (gc_cache_lookup):
6886         abort() -> ABORT().  Eliminate preprocessor games with abort()
6887         since it creates huge problems in VC7, solvable only by including
6888         massive amounts of files in every compile (and not worth it).
6889
6890         * sysdep.c:
6891         * sysproc.h:
6892         Inclusion of process.h does not need to be before lisp.h any more.
6893         Move later and remove comment about abort().
6894
6895 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6896
6897         * regex.c (re_match_2_internal):
6898         Correctly initialize loop which clears uninitialized registers.
6899
6900 2005-01-28  Vin Shelton  <acs@xemacs.org>
6901
6902         * sheap.c (more_static_core): Applied Ben's version of the long
6903         string patch.
6904
6905 2005-01-24  Vin Shelton  <acs@xemacs.org>
6906
6907         * sheap.c (more_static_core): Reformatted printf string so
6908         gcc-3.3.3 will compile this on Cygwin.
6909
6910 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6911
6912         * console.c (function_key_map): Reference `key-binding'.
6913
6914         * keymap.c (Vkey_translation_map): Improve docstring.
6915
6916 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6917
6918         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6919         * window.c (window_loop): [fix] Take into account
6920         `allow-deletion-of-last-visible-frame' variable.
6921         * window.c (replace-buffer-in-windows): Ditto.
6922
6923 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6924
6925         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6926
6927 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6928
6929         * event-gtk.c: Recognise AltGr as a valid modifier.
6930
6931 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6932
6933         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6934
6935 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6936
6937         Fix backreference bug caught by test suite.
6938
6939         * regex.c (regex_compile):
6940         Make backref duplicate internal register.
6941
6942 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6943
6944         Documentation, code clarification, and warning suppression.
6945         
6946         * regex.c (regex_compile):
6947         Improve comments.
6948         (re_match_2_internal):
6949         Improve comments and avoid redundant braces.  [Most of the big hunk
6950         at l. 4710 is indentation; use diff -w to see the real changes.]
6951         (alt_match_null_string_p):
6952         (common_op_match_null_string_p):
6953         Avoid shadowing global on Mac OS X 10.4, at least.
6954
6955 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6956
6957         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6958         introduced with shy groups fix).  [Already applied, probably
6959         with the second "fix shy groups" patch of 2004-10-07.] 
6960
6961 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6962
6963         From Andrey Slusar <anrays@gmail.com>:
6964
6965         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6966
6967 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6968
6969         * Makefile (RECURSIVE_MAKE): Removed.
6970         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6971         handling parallel builds.
6972
6973 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6974
6975         * Makefile.in.in: Enable support for parallel builds.
6976
6977 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6978
6979         From Andrey Slusar <anrays@gmail.com>:
6980
6981         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6982         FreeBSD version is >= 199701 _and_ < 600006.
6983
6984 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6985
6986         * scrollbar.c (compute_scrollbar_instance_usage):
6987         Only call device method compute_scrollbar_instance_usage() if it
6988         is defined.
6989
6990 2004-12-05  Vin Shelton <acs@xemacs.org>
6991
6992         * XEmacs 21.4.16 is released
6993
6994 2004-12-04  Vin Shelton  <acs@xemacs.org>
6995
6996         * depend: Regenerated.
6997
6998 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6999
7000         * regex.c (re_match_2_internal): Map internal to external
7001         registers.  Fixes bug identified by Steve Youngs 2004-09-30
7002         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
7003
7004 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
7005
7006         * buffer.c (Frecord_buffer): Make sure the argument is buffer
7007         to fix a crash.  Also, check the buffer is live and it
7008         really exists in buffer_list.  If the buffer is not in the list,
7009         prepend it.
7010
7011 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
7012
7013         Fix shy groups by implementing recording of all groups for
7014         repetition and backtracking.  Backport from 21.5.
7015         
7016         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
7017         external_to_internal_register, external_to_internal_register_size,
7018         and update comments for re_nsub.
7019
7020         * regex.c (re_opcode_t): Update comments.
7021         (print_compiled_pattern): Ouput external_to_internal_register,
7022         external_to_internal_register_size, and re_ngroups for debugging.
7023         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
7024         (regex_compile): Update header comment.
7025         Ensure that all groups are recorded so that repeat matches and
7026         backtracking work correctly.  Comment related warning for groups >
7027         255.
7028         (re_search_2): Construct map of API indexes (which count only
7029         nonshy groups) to internal register numbers, and keep it updated.
7030
7031 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
7032
7033         * frame-gtk.c (gtk_make_frame_visible):
7034         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
7035         show/hide.  This is what X uses and is prevents previously hidden
7036         widgets from suddenly reappearing.
7037         * gtk-xemacs.c (gtk_xemacs_paint):
7038         * gtk-xemacs.c (gtk_xemacs_draw):
7039         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
7040         drawable.
7041         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
7042         size and location changes so that they can be seen before the next
7043         idle event.  Without this rapid changes to scrollbar properties
7044         are not seen.
7045
7046 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
7047
7048         * console-gtk.h:
7049         * console-gtk.h (struct gtk_frame):
7050         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
7051           Add hash tables track tab_control callback data.
7052           Added #defines for GTK object data names.
7053           Declaration of gtk_widget_to_frame().
7054         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
7055         * frame-gtk.c (gtk_widget_to_frame): New.
7056         * frame-gtk.c (gtk_create_widgets):
7057         * frame-gtk.c (allocate_gtk_frame_struct):
7058         * frame-gtk.c (gtk_mark_frame):
7059         Manage frame callbakc hash tables.
7060         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
7061         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
7062         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
7063         of widget size.
7064         * glyphs-gtk.c (gtk_widget_query_geometry): New
7065         * glyphs-gtk.c (gtk_register_gui_item): New
7066         * glyphs-gtk.c (gtk_add_tab_item): New
7067         * glyphs-gtk.c (gtk_tab_control_callback): New
7068         * glyphs-gtk.c (gtk_tab_control_instantiate): New
7069         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
7070         Use correct list when loading item.
7071         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
7072         Register new methods.
7073         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
7074         default size, for widgets.
7075         * gui-x.c:  Improved comment.
7076         * menubar-gtk.c (__generic_button_callback): Use
7077         gtk_widget_to_frame instead of __get_channel.
7078         * scrollbar-gtk.c:
7079         * ui-gtk.c: Use symbolic names for GTK object data.
7080
7081 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
7082
7083         * s/usg5-4.h (NSIG): Define only inside emacs binary.
7084
7085 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
7086
7087         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
7088
7089 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
7090
7091         * malloc.c (morecore): siz is a long because in some architectures
7092         (eg ia-64) an int cannot hold the address range.  Additional patch
7093         from the SuSe distribution.
7094
7095 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
7096
7097         * emacs.c:
7098         * malloc.c: lim_data is a long because in some architectures
7099         (eg ia-64) an int cannot hold the address range.
7100         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
7101         instead of ulimit() because ulimit() always returns -1.
7102
7103 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
7104
7105         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
7106
7107 2004-06-11  David Kastrup  <dak@gnu.org>
7108
7109         * search.c (match_limit): Don't flag an error if match-data
7110         exceeding the allocated search_regs.num_regs gets requested, just
7111         return Qnil.
7112
7113 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7114
7115         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
7116         replace symbolic color entries with the real colors specified in
7117         xpm-color-symbols, before passing the XPM to gtk.
7118         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
7119         instead of a GTK specific field, so that it is used in by generic
7120         code.
7121
7122 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
7123
7124        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
7125         coredump from deref of NULL ptr (ExtData)
7126
7127 2004-04-19  Jerry James  <james@xemacs.org>
7128
7129         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
7130         VALBITS to compute the location of the sign bit.
7131         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
7132         of VALBITS with EMACS_INT_MAX.
7133         * events.c (Fevent_timestamp): Ditto.
7134         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
7135         compute the halfway point to timestamp wraparound.
7136         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
7137         EMACS_INT_MIN instead of using VALBITS.
7138         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
7139         incorrect number with VALBITS.
7140         * fns.c (Frandom): Correct number of integer bits in docstring.
7141         Use INT_VALBITS instead of VALBITS to compute the denominator.
7142         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
7143         build random numbers.
7144
7145 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7146         * event-gtk.c:
7147         * event-gtk.c (gtk_event_to_emacs_event):
7148         * menubar-gtk.c:
7149         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
7150         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
7151         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
7152         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
7153         * menubar-gtk.c (__activate_menu):
7154         * menubar-gtk.c (convert_underscores):
7155         * menubar-gtk.c (remove_underscores):
7156         * menubar-gtk.c (menu_convert):
7157         * menubar-gtk.c (menu_descriptor_to_widget_1):
7158         * menubar-gtk.c (menu_descriptor_to_widget):
7159         * menubar-gtk.c (menu_can_reuse_widget):
7160         * menubar-gtk.c (menu_create_menubar):
7161         * menubar-gtk.c (gtk_popup_menu):
7162         * menubar-gtk.c (Fgtk_build_xemacs_menu):
7163         Added support for Gtk menu bar and menu item mnemonics.
7164
7165 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7166
7167         * sysdll.c: (dll_function): Added support for finding symbols in
7168         Darwin shared libraries as well in Darwin bundles.
7169         * sysdll.c (image_for_address): New
7170         * sysdll.c (my_find_image): New
7171         * sysdll.c (search_linked_libs): New
7172
7173 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7174
7175         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
7176         return to GTK requires a different API to marshalling data to use
7177         as GTK parameters.
7178         * ui-gtk.c (lisp_to_gtk_ret_type): New.
7179
7180 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
7181
7182         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
7183
7184 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7185
7186         * glyphs.c (process_image_string_instantiator):
7187         (Fset_console_type_image_conversion_list):
7188         Stop GCC from warning about shadowing of `exp'.
7189
7190         * redisplay-x.c (x_output_string): Fix unsigned lossage.
7191
7192 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7193
7194         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
7195
7196 2004-02-03  Vin Shelton  <acs@xemacs.org>
7197
7198         * glyphs.c (image_instance_layout): Remove pointless assertion.
7199         * regex.c (regex_grow_registers): Return type is void.
7200
7201 2004-02-02  Vin Shelton <acs@xemacs.org>
7202
7203         * XEmacs 21.4.15 is released
7204
7205 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
7206
7207         * device-x.c (x_error_handler): Don't call stderr_out
7208
7209 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
7210
7211         * buffer.c (other-buffer): Clarify documentation of order of
7212         arguments for FSF Emacs.
7213
7214 2003-10-11  Olivier Galibert  <galibert@pobox.com>
7215
7216         * window.c (Fdelete_window): Dirty the mirror structure _before_
7217         marking the window deleted.
7218
7219 2003-09-15  Jerry James  <james@xemacs.org>
7220
7221         * event-msw.c (debug_mswin_messages): Conditionally compile
7222         messages missing from the Cygwin headers.
7223
7224 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
7225
7226         * data.c (eq_with_ebola_notice): Fix typo in comment.
7227         (Ftrue_list_p): Improve docstring.
7228
7229 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
7230
7231         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
7232
7233 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
7234
7235         * search.c (trivial_regexp_p): Regexps containing "\{" are
7236         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
7237         Stefan Monnier for suggesting a diagnosis.
7238
7239 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
7240
7241         * elhash.c (make-hash-table): Clarify use of :test #'equal.
7242
7243 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
7244
7245         * search.c (Fsearch_forward):
7246         (Fsearch_backward):
7247         Document negative count.
7248
7249 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
7250
7251         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
7252
7253 2003-09-13  Martin Buchholz  <martin@xemacs.org>
7254
7255         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
7256
7257 2003-09-15  Vin Shelton  <acs@xemacs.org>
7258
7259         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
7260         21.5.
7261
7262 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7263
7264         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
7265         (re_search_2): Match the first byte of Bufbyte, not Emchar.
7266         (re_match_2_internal): Use TRANSLATE instead of
7267         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
7268         non-ASCII char case conversion.
7269
7270 2003-09-08  Mike Sperber  <mike@xemacs.org>
7271
7272         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
7273         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
7274
7275 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
7276
7277        * .gdbinit (pobj): fix printing of symbol name.
7278
7279 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
7280
7281         * frame-x.c (x_layout_widgets): When resizing is about to cause
7282         frame size slip, mark it for redisplay.
7283
7284 2003-08-18  Jerry James  <james@xemacs.org>
7285
7286         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
7287
7288 2003-09-03  Vin Shelton <acs@xemacs.org>
7289
7290         * XEmacs 21.4.14 is released
7291
7292 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
7293
7294         * config.h.in (REGEX_MALLOC): Make it configure'able.
7295
7296 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
7297
7298         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
7299         linking.
7300         * sysdll.c (dll_init):
7301         * sysdll.c (dll_open):
7302         * sysdll.c (dll_close):
7303         * sysdll.c (dll_function):
7304         * sysdll.c (dll_variable):
7305         * sysdll.c (dll_error):
7306         Add support for loading bundles using Darwin/MacOSX
7307         native API.
7308
7309 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
7310
7311         * process.c (start-process-internal): Document coding systems.
7312
7313 2003-07-30  Jerry James  <james@xemacs.org>
7314
7315         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
7316
7317 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
7318
7319         * event-msw.c (mswindows_enqueue_mouse_button_event):
7320         * event-msw.c (mswindows_wnd_proc):
7321           enqueue button event when scrollwheel event isn't handled by 
7322           mswindows_handle_mousewheel_event, such as when the scrollbars
7323           are not showing.
7324
7325 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
7326
7327         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
7328
7329 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
7330
7331         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
7332
7333 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
7334
7335         * regex.c (re_match_2_internal): Fix matching degenerate word
7336         boundaries.
7337
7338 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
7339
7340         * XEmacs 21.4.13 is released
7341
7342 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
7343
7344         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
7345         * lisp.h (<inttypes.h>):
7346         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
7347         the definition.
7348
7349 2003-03-15  Martin Buchholz  <martin@xemacs.org>
7350
7351         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7352         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7353         Result: "temacs can only be run in -batch mode."
7354         Fix: Check xemacs executable candidate for directory-ness.
7355
7356 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7357
7358         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7359           they conflict with <sys/types.h>.
7360
7361 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7362
7363         * database.c: Berkeley DB wants __STDC__ to be defined.
7364
7365 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7366
7367         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7368
7369 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7370
7371         * process-unix.c (unix_send_process): Fix C++ compile error.
7372
7373 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7374
7375         * Added .dylib as an acceptable shared library file extension
7376         * to support MacOSX.
7377
7378 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7379
7380         * EmacsFrameP.h (EmacsFramePart):
7381         Kludge to allow compiling with Motif1, but linking with Motif2.
7382
7383 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7384
7385         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7386
7387
7388 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7389
7390         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7391
7392 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7393
7394         * sysdll.c: Included lisp.h to define needed alloca_array.
7395
7396 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7397
7398         Make XEmacs redisplay 10 times faster.
7399         If, that is, you're using a slow X connection and MoveOpaque.
7400         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7401         Use compress_motion = TRUE.
7402         * EmacsFrame.c (emacsFrameClassRec): 
7403         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7404         * EmacsManager.c (emacsManagerClassRec):
7405         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7406
7407 2003-01-30  Vin Shelton  <acs@xemacs.org>
7408
7409         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7410
7411 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7412
7413         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7414         Patch by Martin Buchholz.
7415
7416 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7417
7418         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7419         Thanks to icc for warning and Martin Buchholz for reporting.
7420
7421 2003-01-29  Vin Shelton <acs@xemacs.org>
7422
7423         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7424
7425         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7426         remember to multiply by the element size.
7427
7428 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7429
7430         * XEmacs 21.4.12 "Portable Code" is released.
7431
7432 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7433
7434         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7435         * s/cygwin.sc: new linker file.
7436
7437 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7438
7439         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7440
7441         * redisplay-x.c (x_output_string): Use X11-specified types.
7442         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7443         * emacs.c (__free_hook): Use typeof with Intel compiler.
7444         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7445
7446 2003-01-08  Andy Piper  <andy@xemacs.org>
7447
7448         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7449         reserve size during unexec().
7450
7451 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7452
7453         * process-unix.c (unix_create_process): Don't let outchannel block.
7454
7455 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7456
7457         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7458         Needed for IsBadReadPtr().
7459
7460 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7461
7462         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7463
7464 2002-12-14  Ben Wing  <ben@xemacs.org>
7465
7466         * callint.c: Declaration error.
7467         * dumper.c (pdump):
7468         * dumper.c (pdump_load): Warning fix.
7469         * process.c: GCPRO error.
7470         * glyphs.c (unmap_subwindow):
7471         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7472         * event-stream.c (maybe_kbd_translate): Wrong argument to
7473         character_to_event().
7474
7475         * alloc.c (garbage_collect_1):
7476         * emacs.c:
7477         * emacs.c (debug_can_access_memory):
7478         * emacs.c (fatal_error_signal):
7479         * emacs.c (mswindows_handle_hardware_exceptions):
7480         * emacs.c (main_1):
7481         * emacs.c (main):
7482         * emacs.c (assert_failed):
7483         * emacs.c (syms_of_emacs):
7484         * lisp.h:
7485         * print.c:
7486         * print.c (std_handle_out_va):
7487         * print.c (write_string_to_stdio_stream):
7488         * print.c (write_fmt_string):
7489         * print.c (printing_badness):
7490         * print.c (printing_major_badness):
7491         * print.c (print_internal):
7492         * print.c (debug_print_no_newline):
7493         * print.c (debug_backtrace):
7494         Be more defensive in handling bad values when printing.  Add code
7495         from trunk involving inhibit_non_essential_printing_operations.
7496         When going down or in debug_print(), don't do external conversion
7497         and such and try really, really hard when printing to avoid core
7498         dumping.  Add force-debugging-signal, debug_break().
7499
7500 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7501
7502         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7503         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7504
7505 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7506
7507         * database.c: Fix open_database. Berkeley DB API has changed in
7508         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7509
7510 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7511
7512         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7513
7514 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7515
7516         * event-Xt.c (Xt_timeout):
7517         (Xt_timeout_callback):
7518         (emacs_Xt_add_timeout):
7519         (emacs_Xt_remove_timeout):
7520         (Xt_timeout_to_emacs_event):
7521         Turn completed_timeouts from a stack into a queue.  Fixes
7522         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7523
7524 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7525
7526         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7527         * emacs.c (main): Assert that mmap'd allocation is disabled.
7528
7529 2002-10-14  Andy Piper  <andy@xemacs.org>
7530
7531         * glyphs-widget.c (layout_query_geometry): add in fiddle
7532         factor. Include border text in width layout calculation.
7533         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7534
7535 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7536
7537         * XEmacs 21.4.10 "Military Intelligence" is released.
7538
7539 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7540
7541         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7542         using the NAS private array SoundFileInfo that no longer exists in
7543         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7544         and earlier.  This is broken for some versions between 1.5a and
7545         1.5f.
7546
7547 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7548
7549         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7550
7551         * emacs.c (shut_down_emacs): Improve crash message.
7552
7553 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7554
7555         * file-coding.c (determine_real_coding_system): Check for coding
7556         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7557         shebangs and Python PEP 263.
7558
7559 2002-10-08  Andy Piper  <andy@xemacs.org>
7560
7561         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7562         if static sizes haven't been set.
7563
7564 2002-08-30  Mike Alexander  <mta@arbortext.com>
7565
7566         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7567         to close a socket.
7568
7569 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7570
7571         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7572
7573 2002-09-20  Mike Sperber <mike@xemacs.org>
7574
7575         (This partially gets back my patch from 2002-07-20 without the
7576         bug.)
7577         * callproc.c (child_setup): Remove Ben's comment noting confusion
7578         over the file descriptors >= 3: close_process_descs() doesn't
7579         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7580         * process-unix.c (unix_create_process): Call
7581         begin_dont_check_for_quit to inhibit unwanted interaction (and
7582         thus breaking of X event synchronicity) in the child.
7583
7584 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7585
7586         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7587         widget.
7588
7589 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7590
7591         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7592         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7593         the xemacs process did not exit, but looped infinitely here.  This
7594         fixes that problem.
7595
7596 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7597
7598         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7599         (find_context): Improve comments.
7600
7601         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7602         (re_match_2): An XCHAR_TABLE operation was missing.
7603
7604         Many of the following changes were inspired by Andy Piper's (now
7605         obsolete) patch to make syntax-table text property lookup optional.
7606
7607         [Documentation]
7608
7609         * syntax.h (top level): Document semantics of syntax flags.
7610         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7611         * syntax.c, syntax.h (top level): Document syntax cache better in
7612         comments.
7613
7614         [Instrument syntax caching (temporary change)]
7615
7616         * syntax.h (enum syntax_cache_statistics_functions, struct
7617         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7618         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7619         * syntax.c (scan_words, Fforward_comment, scan_lists,
7620         Fbackward_prefix_characters):
7621         * font-lock.c (find_context):
7622         Use them to instrument syntax caching. 
7623         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7624         syntax_cache_statistics_function_names): New type and variables.
7625         * syntax.c (update_syntax_cache): Update and report statistics.
7626
7627         [Major syntax cache optimizations]
7628
7629         syntax.c (lookup_syntax_properties): Default off.
7630
7631         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7632         * syntax.c (update_syntax_cache):
7633         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7634
7635         [Minor syntax cache optimizations and code clarifications]
7636
7637         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7638         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7639         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7640         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7641         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7642         (Code clarification.)
7643
7644         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7645         scan_lists): Compute code from syncode, use Boolean macros instead
7646         of redundant masking operations.  (Code clarification; any decent
7647         compiler can do this optimization.)
7648
7649         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7650         for clarity.
7651
7652         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7653         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7654         use F*_single_property_change instead of F*_extent_change.
7655         Currently F*_single_property_change is _much_ less efficient.
7656
7657         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7658         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7659         syntax_cache.object properly, don't leave Qt or Qnil.
7660         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7661         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7662         tests for Qt or Qnil.
7663
7664 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7665
7666         * redisplay.c (point_in_line_start_cache): 
7667         * extents.c (print_extent_1):
7668         Fix warnings.
7669
7670         * extents.c (Fset_extent_property): Document `syntax-table' property.
7671
7672         * extents.h (Fnext_single_property_change): EXFUN it.
7673
7674 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7675
7676         * search.c (clear_unused_search_regs): New static function.
7677         (search_buffer): 
7678         (simple_search): 
7679         (boyer_moore):
7680         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7681         Minor clarifications in comments.
7682
7683         * regex.c (re_match_2_internal): Ensure no stale submatches.
7684
7685 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7686
7687         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7688
7689 2002-08-29  Jerry James  <james@xemacs.org>
7690
7691         * lisp.h: structrures -> structures.
7692
7693 2002-06-03  Andy Piper  <andy@xemacs.org>
7694
7695         * frame.c (frame_conversion_internal): add conversion appropriate
7696         for setting frame dimensions in pixels.
7697
7698         * console.h (struct console_methods): add device-specific widget
7699         layout functions.
7700
7701         * emacs.c (main_1): initialize glyph vars.
7702
7703         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7704         (handle_focus_event_2): new function. Allow focus to
7705         be set to a particular window and widget.
7706         (enqueue_focus_event): new function. Create a
7707         synthetic focus event.
7708         (emacs_Xt_handle_magic_event): call
7709         handle_focus_event_2.
7710
7711         * frame.c (Fset_frame_pixel_height): new function. Allow
7712         pixel-based sizing. Does the right thing on character-oriented
7713         displays.
7714         (Fset_frame_pixel_width): ditto.
7715         (Fset_frame_pixel_size): ditto.
7716         (syms_of_frame): declare.
7717
7718         * general-slots.h: add :vertically-justify and
7719         :horizontally-justify.
7720
7721         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7722         (mswindows_widget_border_width): new function.
7723         (mswindows_combo_box_instantiate): set border widths.
7724         (console_type_create_glyphs_mswindows): declare.
7725
7726         * glyphs-widget.c:
7727         (check_valid_justification): allow vertical and horizontal
7728         justification.
7729         (widget_border_width): new function. Call device methods.
7730         (widget_instance_border_width): ditto.
7731         (logical_unit_height): new function. Determine the height of a
7732         logical-unit. Logical units are intended to provide grid-like
7733         layout for subcontrols in a layout. If the layout is
7734         :vertically-justify top then subcontrols will be positioned on
7735         logical-unit boundaries, thus allowing adjacent subcontrols to
7736         line up.
7737         (widget_logical_unit_height): ditto for widgets.
7738         (redisplay_widget): misc cleanup.
7739         (widget_spacing): new function. Call device specific
7740         methods. Intended to be the default gap between adjacent widgets.
7741         (widget_query_geometry): use new spacing functions to determine
7742         appropriate geometry.
7743         (initialize_widget_image_instance): initialize horizontal and
7744         vertical justification.
7745         (widget_instantiate): use logica-units where appropriate for
7746         sizing large widgets.
7747         (button_query_geometry): use widget_instance_border_width.
7748         (tree_view_query_geometry): ditto.
7749         (tab_control_query_geometry): ditto.
7750         (edit_field_query_geometry): new function.
7751         (layout_update): pick up :justify, :horizontally-justify and
7752         :vertically-justify none of which worked previously. :justify is
7753         used as a fallback for both horizontal and vertical justification.
7754         (layout_query_geometry): use logical units to size appropriately.
7755         (layout_layout): ditto.
7756         (Fwidget_logical_to_character_width): new function. Allow users to
7757         convert from logical units to characters so that frame sizes can
7758         be set appropriately.
7759         (Fwidget_logical_to_character_height): ditto.
7760         (syms_of_glyphs_widget): declare.
7761         (image_instantiator_edit_fields): add edit_field_query_geometry.
7762         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7763         :horizontally-justify.
7764         (specifier_vars_of_glyphs_widget): new function. Declare
7765         Vwidget_border_width which is not yet used.
7766
7767         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7768         (x_widget_border_width): new function.
7769         (x_widget_instantiate): create a sensible name for widgets.
7770         (console_type_create_glyphs_x): declare x_widget_border_width.
7771
7772         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7773         (struct Lisp_Image_Instance): add :vertically-justify and
7774         :horizontally-justify.
7775         (LAYOUT_JUSTIFY_TOP): new.
7776         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7777         (ROUND_UP): new macro. Round argument up to next integral
7778         interval.
7779
7780         * redisplay-output.c (redisplay_output_layout): misc formatting.
7781
7782         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7783
7784 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7785
7786         * XEmacs 21.4.9 "Informed Management" is released.
7787
7788 2002-08-19  Andy Piper  <andy@xemacs.org>
7789
7790         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7791         win32 format.
7792
7793         * realpath.c (xrealpath): normalize drive spec also so that dir
7794         sep chars are not mixed on cygwin.
7795
7796 2002-08-06  Jerry James  <james@xemacs.org>
7797
7798         * window.c (Fsplit_window): Count only half of the divider width
7799         against the left window when splitting horizontally. 
7800
7801 2002-06-24  Andy Piper  <andy@xemacs.org>
7802
7803         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7804         toolbar was cleared.
7805
7806         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7807         function. Split out from mswindows_output_frame_toolbars.
7808         (mswindows_output_frame_toolbars): move clear pieces to
7809         mswindows_output_frame_toolbars.
7810
7811         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7812         out from gtk_output_frame_toolbars.
7813         (gtk_output_frame_toolbars): move clear pieces to
7814         gtk_clear_frame_toolbars.
7815
7816         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7817         the frame is cleared. How this ever worked before is a mystery.
7818         (x_output_frame_toolbars): Only output toolbars.
7819         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7820
7821         * gutter.c (update_gutter_geometry):
7822         Mark frame layout changed.
7823         (update_frame_gutter_geometry, update_frame_gutters):
7824         Respect frame_layout_changed.
7825
7826         * console.h (struct console_methods): add
7827         clear_frame_toolbars_method.
7828
7829         * redisplay.c (redisplay_frame): call
7830         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7831
7832         * toolbar.h: declare update_frame_toolbars_geometry.
7833
7834         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7835         out from update_frame_toolbars.  Call clear_frame_toolbars.
7836         (update_frame_toolbars): only output, do not change geometry.
7837
7838         * redisplay.c: add frame_layout_changed.
7839
7840         * redisplay.h: add frame_layout_changed.
7841         (CLASS_RESET_CHANGED_FLAGS): set it.
7842         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7843         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7844         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7845
7846         * device.h (struct device): add frame_layout_changed.
7847         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7848
7849         * frame.h (struct frame): add frame_layout_changed.
7850         (MARK_FRAME_LAYOUT_CHANGED): new.
7851
7852 2002-06-30  Mike Alexander  <mta@arbortext.com>
7853
7854         * event-msw.c (mswindows_need_event): Don't wait for a new message
7855         if the queue is not empty.  Suggested by Paul Moore.
7856
7857 2002-06-12  Andy Piper  <andy@xemacs.org>
7858
7859         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7860         for printing on accurately.
7861
7862 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7863
7864         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7865         WM_ACTIVATE message. Make sure that the frame is visible if the
7866         window is visible. This seemss to fix the problem where XEmacs
7867         appears to freeze after switching desktops with certain virtual
7868         window managers.
7869         (debug_output_mswin_message): Added code to output message
7870         parameters for WM_WINDOWPOSCHANGED, 
7871         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7872
7873 2002-05-25  Andy Piper  <andy@xemacs.org>
7874
7875         * select-x.c (vars_of_select_x): Fix docstring of
7876         x-selection-strict-motif-ownership
7877
7878 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7879
7880         * keymap.c (get_keymap):
7881         Add comment about do_autoload GCPROs own args.
7882
7883 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7884
7885         * bytecode.c (execute_optimized_program): check_opcode ifdef
7886         ERROR_CHECK_BYTE_CODE.
7887
7888 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7889
7890         Thanks to Ben Wing and Michael Sperber.
7891
7892         * eval.c (Fcommand_execute):
7893         (Feval):
7894         (Ffuncall):
7895         (Fmacroexpand_internal):
7896         (function_argcount):
7897         callint.c (Fcall_interactively):
7898         Add comment about do_autoload GCPROs own args.
7899
7900         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7901
7902         * eval.c (Ffuncall): Extra braces to placate GCC.
7903
7904 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7905
7906         * backtrace.h (grow_specpdl):
7907         (SPECPDL_RESERVE):
7908         * EmacsFrame.c (EmacsFrameSetValues):
7909         * eval.c (grow_specpdl):
7910         * ExternalShell.c (hack_event_masks_1):
7911         * glyphs-x.c (convert_EImage_to_XImage): 
7912         (x_finalize_image_instance):
7913         * ralloc.c (page_size):
7914         (r_alloc_sbrk):
7915         * xgccache.c (gc_cache_hash):
7916         Fix unsigned comparison warnings.
7917
7918 2002-07-29  Jerry James  <james@xemacs.org>
7919
7920         * lread.c (locate_file): Any nonnegative return value indicates
7921         success if MODE is nonnegative.
7922
7923 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7924
7925         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7926         argument. 
7927
7928 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7929
7930         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7931
7932         * dumper.c (pdump_get_indirect_count):
7933         (pdump_scan_by_alignment):
7934         (pdump_dump_root_struct_ptrs):
7935         (pdump_dump_rtables):
7936         (pdump_dump_root_objects):
7937         (pdump):
7938         * nas.c (WaveOpenDataForReading):
7939         * fns.c (print_bit_vector):
7940         * font-lock.c (SINGLE_SYNTAX_STYLE):
7941         * glyphs.c (check_for_ignored_expose):
7942         (find_matching_subwindow):
7943         * glyphs-eimage.c:
7944         * imgproc.c (get_histogram):
7945         * redisplay.c (point_in_line_start_cache):
7946         * redisplay-output.c (redisplay_unmap_subwindows):
7947         * symbols.c (defsymbol_massage_name_1):
7948         (defkeyword_massage_name):
7949         (deferror_massage_name_and_message):
7950         * redisplay-x.c (x_output_string): 
7951         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7952         * frame.h (struct frame):
7953         * filelock.c (current_lock_owner):
7954         * doprnt.c (emacs_doprnt_1):
7955         * lisp.h (struct Lisp_Bit_Vector):
7956         (DO_REALLOC):
7957         Fix warnings.
7958
7959 2002-02-13  Ben Wing  <ben@xemacs.org>
7960
7961         * event-stream.c (reset_key_echo):
7962         * event-stream.c (reset_this_command_keys):
7963         * event-stream.c (execute_command_event):
7964         If console is dead as a result of C-x 5 0, then post-command stuff
7965         needs to be careful and do only non-console-specific stuff.
7966
7967 2002-07-01  Mike Sperber <mike@xemacs.org>
7968
7969         * process-unix.c (unix_send_process): Mark coding_outstream as
7970         non-open upon SIGPIPE.
7971
7972         * event-stream.c (Fnext_event): Reorder switch cases to something
7973         that makes sense.
7974
7975 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7976
7977         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7978         Don't bogusly reinitialize ascii_character property.
7979
7980 2002-07-08  Mike Sperber <mike@xemacs.org>
7981
7982         * process.c (Fstart_process_internal): Do error checking before we
7983         fork off the child, so the child can't muck with the state of the
7984         parent.
7985
7986 2002-07-08  Mike Sperber <mike@xemacs.org>
7987
7988         * ralloc.c (init_ralloc): Allocate properly for pdump.
7989
7990 2002-06-12  Andy Piper  <andy@xemacs.org>
7991
7992         * glyphs.c (query_string_geometry): check the string.
7993
7994         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7995         widget names.
7996
7997 2002-06-17  Jerry James  <james@xemacs.org>
7998
7999         * sysdll.c: Remove RTLD_GLOBAL initialization.
8000         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
8001
8002 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
8003
8004         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
8005
8006 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
8007
8008         * sysdep.c (sys_rename): Make sys_rename work for the case where
8009         Windows rename sets errno to EACCES if target file exists.
8010
8011 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
8012
8013         * device-msw.c (mswindows_handle_page_setup_dialog_box):
8014         Fix detection of metric units to work on Win95
8015
8016 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
8017
8018         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
8019
8020 2002-04-25  Andy Piper  <andy@xemacs.org>
8021
8022         * redisplay.c (create_text_block): Remove extra comment trailer.
8023
8024 2002-04-24  Andy Piper  <andy@xemacs.org>
8025
8026         * redisplay.c (create_text_block): Don't actually add propagation
8027         data if the line ends after we have added a glyph.
8028
8029 2002-04-22  Andy Piper  <andy@xemacs.org>
8030
8031         * extents.c (extent_fragment_update): check for glyphs we have
8032         previously displayed.
8033         * extents.c (print_extent_1): warning removal.
8034         * extents.h: change prototype.
8035         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
8036         widths correctly for wide glyphs.
8037         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
8038         * redisplay.c (prop_type): add PROP_GLYPH.
8039         * redisplay.c (struct prop_block): add glyph type
8040         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
8041         to the propagation data.
8042         * redisplay.c (create_text_block): if there is a glyph in the
8043         propagation data use it to salt extent_fragment_update.
8044         * redisplay.c (create_string_text_block): ditto.
8045
8046 2002-04-13  Nix  <nix@esperi.demon.co.uk>
8047
8048         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
8049         * redisplay-output.c (compare_runes): Compare them.
8050         * redisplay.c: Update copyright date.
8051         * redisplay.c (pos_data): Add need_baseline_computation field.
8052         * redisplay.c (add_glyph_rune): Update ascent, descent, and
8053         need_baseline_computation; zero yoffset. Set max_pixmap_height
8054         for all pixmaps, not just automatically positioned ones.
8055         * redisplay.c (calculate_yoffset): New, compute yoffset values.
8056         * redisplay.c (calculate_baseline): New, compute textual baseline.
8057         * redisplay.c (add_glyph_rune): Call them.
8058         * redisplay.c (create_text_block): Likewise.
8059         * redisplay.c (create_overlay_glyph_block): Likewise.
8060         * redisplay.c (add_margin_runes): Likewise.
8061         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
8062
8063         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
8064         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
8065         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
8066         * redisplay-msw.c (mswindows_output_string): Likewise.
8067         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
8068         * redisplay-gtk.c (gtk_output_display_block): Likewise.
8069         * redisplay-x.c (x_output_display_block): Likewise.
8070
8071 2002-03-28  Ben Wing  <ben@xemacs.org>
8072
8073         * redisplay.c: Fixed bug in redisplay
8074         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
8075         and down of the lines, since they're bigger than the line
8076         size. (It was seen most obviously when there's a horizontal scroll
8077         bar, e.g. do C-h a glyph or something like that.) The problem was
8078         that the glyph-contrib-p setting on glyphs was ignored even if it
8079         was set properly, which it wasn't until now.
8080
8081 2002-04-24  Andy Piper  <andy@xemacs.org>
8082
8083         * lisp.h (Dynarr_end): Fix definition.
8084
8085 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
8086
8087         * redisplay.c (mark_redisplay): Remove call to
8088         update_frame_window_mirror.
8089
8090 2001-11-15  Andy Piper  <andy@xemacs.org>
8091
8092         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
8093         cygwin (again).
8094
8095 2002-02-13  Andy Piper  <andy@xemacs.org>
8096
8097         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
8098         we did in fact enqueue the XM_MAPFRAME event.
8099
8100 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
8101
8102         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
8103         to fix problem switching between virtual desktops under virtuawin
8104         virtual window manager.
8105
8106 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
8107
8108         * event-msw.c: Typo fix.
8109         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
8110         magic XM_MAPFRAME event has been sent.
8111
8112 2001-11-23  Andy Piper  <andy@xemacs.org>
8113
8114         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
8115
8116 2001-11-21  Andy Piper  <andy@xemacs.org>
8117
8118         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
8119         mouse events outside the frame.
8120
8121 2002-03-20  Andy Piper  <andy@xemacs.org>
8122
8123         * menubar-msw.c (mswindows_popup_menu): warning removal.
8124         * dialog-msw.c (dialog_popped_down): ditto.
8125
8126 2001-12-11  Andy Piper  <andy@xemacs.org>
8127
8128         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
8129         * dialog-msw.c (mswindows_make_dialog_box_internal): set
8130         popup_up_p.
8131         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
8132         * menubar-msw.c (mswindows_handle_wm_command): ditto.
8133         * menubar-msw.c (mswindows_popup_menu): ditto.
8134
8135 2001-10-29  Andy Piper  <andy@xemacs.org>
8136
8137         * dialog-msw.c (handle_directory_dialog_box): quit if the user
8138         cancels.
8139
8140 2002-01-03  Andy Piper  <andy@xemacs.org>
8141
8142         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
8143         letters.
8144         (xrealpath): ditto.
8145
8146 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
8147
8148         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
8149         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
8150         * device-msw.c (mswindows_handle_page_setup_dialog_box):
8151         Detect and handle case where machine is set up for metric units
8152
8153 2002-04-02  Andy Piper  <andy@xemacs.org>
8154
8155         * dired-msw.c (mswindows_get_files): 
8156         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
8157         completely handled by XEmacs. Suggested by Thomas Vogler
8158         <mail@thomas-vogler.de>.
8159
8160 2001-11-14  Andy Piper  <andy@xemacs.org>
8161
8162         * nt.c (REG_ROOT): change registry key to XEmacs.
8163
8164 2002-04-27  Andy Piper  <andy@xemacs.org>
8165
8166         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
8167
8168 2002-04-26  Andy Piper  <andy@xemacs.org>
8169
8170         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
8171         behavior.
8172
8173 2002-03-14  Mike Alexander  <mta@arbortext.com>
8174
8175         * event-msw.c (mswindows_unwait_process): New, remove process from
8176         wait list
8177         * process-nt.c (nt_finalize_process_data): Call
8178         mswindows_unwait_process
8179         * console-msw.h: Declare mswindows_unwait_process
8180
8181 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
8182
8183         * editfns.c (Fdecode_time):
8184         (Fformat_time_string):
8185         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
8186         (make_time): Warning elimination (change arg name).
8187
8188 2001-11-24  Andy Piper  <andy@xemacs.org>
8189
8190         * window.c (Fsplit_window): Doc return type.
8191
8192 2002-04-01  Andy Piper  <andy@xemacs.org>
8193
8194         * emacs.c (Fkill_emacs): Only output message box in interactive
8195         mode.
8196
8197 2002-04-26  Andy Piper  <andy@xemacs.org>
8198  
8199         * config.h.in: pull in 21.5.x change to stop alloca warnings under
8200         cygwin.
8201
8202 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
8203
8204         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
8205         bit platform.
8206
8207 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
8208
8209         * XEmacs 21.4.8 "Honest Recruiter" is released.
8210
8211 2002-05-07  Nix  <nix@esperi.demon.co.uk>
8212
8213         Supersedes 2002-04-17 patch.
8214
8215         * process.h (PROCESS_LIVE_P): Use the process status as
8216         evidence of health, not the state of the input stream.
8217         (PROCESS_READABLE_P): Say if the process is readable
8218         from. (It may be dead nonetheless.)
8219         (CHECK_READABLE_PROCESS): Test for that condition.
8220
8221         * process.c (create_process): Use PROCESS_READABLE_P.
8222         (read_process_output, set_process_filter): Likewise.
8223
8224         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
8225         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
8226
8227         This code is #if 0'd, this is not the time to add new functions:
8228
8229         * process.c (Fprocess_readable_p): Report readability status.
8230         * process.c (Qprocess_readable_p): New, associated symbol...
8231         * process.c (syms_of_process): ... initialize it.
8232
8233 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
8234
8235         * XEmacs 21.4.7 "Economic Science" is released.
8236
8237 2002-04-17  Nix  <nix@esperi.demon.co.uk>
8238
8239         * process.h (PROCESS_LIVE_P): Use the process status as
8240         evidence of health, not the state of the input stream.
8241
8242 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
8243
8244         * sysdep.c (sys_siglist): change "signum" to "signal"
8245
8246 2001-04-21  Martin Buchholz  <martin@xemacs.org>
8247
8248         * s/darwin.h: New file.
8249         Thanks to Greg Parker <gparker@cs.stanford.edu>.
8250         
8251 2002-04-23  Andreas Jaeger  <aj@suse.de>
8252
8253         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
8254         which use lib64 for 64-bit libs.
8255         (START_FILES): Likewise.
8256
8257 2002-02-11  Mike Sperber  <mike@xemacs.org>
8258
8259         * device-x.c: 
8260         (x_IO_error_handler):
8261         (x_init_device): Temporarily keep device in static variable
8262         `device_being_initialized' so we can recover gracefully from
8263         internal XOpenDevice failure.  (XOpenDevice is documented to
8264         return NULL on failure, but sometimes calls the IO error handler
8265         instead.)
8266
8267 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
8268
8269         * dired.c (Ffile_name_all_completions): Change documentation --
8270         remove reference to completion-ignored-extensions.
8271         * dired.c (vars_of_dired): Change documentation for
8272         completion-ignored-extensions -- remove reference to
8273         file-name-all-completions.
8274
8275 2002-03-06  Jerry James  <james@xemacs.org>
8276
8277         * emodules.c (emodules_load): Fix multiple loading of same module.
8278
8279 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
8280         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
8281         RTLD_LAZY to avoid incorrect symbol binding when using nested
8282         shared libraries on Solaris.
8283
8284 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
8285
8286         * fileio.c (Ffind_file_name_handler): Improve docstring.
8287
8288 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
8289
8290         * fns.c (Fmapconcat): Improve docstring.
8291
8292 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
8293
8294         * device-gtk.c: Add prototype for
8295         emacs_gtk_selection_clear_event_handle.
8296         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
8297         selection.  Setup signal handler for "selection_clear_event"
8298         (emacs_gtk_selection_clear_event_handle).
8299
8300         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
8301         other applications owning the clipboard (based on
8302         x_handle_selection_clear).
8303
8304 2001-12-23  William M. Perry  <wmperry@gnu.org>
8305
8306         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
8307         
8308 2002-01-04  Martin Buchholz  <martin@xemacs.org>
8309
8310         * keymap.c (define_key_alternate_name): Parenthesize EQ.
8311
8312 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
8313
8314         * XEmacs 21.4.6 "Common Lisp" is released.
8315
8316 2001-12-16  Torsten Duwe  <duwe@caldera.de>
8317
8318         * search.c (Freplace_match): Add missing sub-expression functionality.
8319
8320         * buffer.c (decode_buffer): Add a check for pointer type to
8321         decode_buffer, before gcc's CSE optimization reorders a
8322         dereference in front of the allow_string test.
8323
8324 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
8325
8326         * window.c (window_loop): Fix bug that sometimes prevented
8327         window_loop() from iterating across multiple devices.  Also, at
8328         Ben's request, changed infloop-detecting code to abort() instead
8329         of silently terminating window_loop().
8330
8331 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
8332
8333         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
8334         * editfns.c (make_time): New function.
8335         (Fencode_time): Use it instead of wasteful_word_to_lisp.
8336         * lisp.h (make_time): Prototype and comment it.
8337         * dired.c (wasteful_word_to_lisp): Deprecate.
8338         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8339
8340 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
8341
8342         * fileio.c (auto_save_1): Use current coding system, not
8343         escape-quoted.
8344
8345 2001-11-13  Ben Wing  <ben@xemacs.org>
8346
8347         * window.c:
8348         * window.c (window_truncation_on):
8349         * window.c (syms_of_window):
8350         truncate-partial-width-windows should respect the buffer being
8351         displayed, like other redisplay vars.
8352
8353 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8354
8355         * event-stream.c (Fread_key_sequence): save current buffer.
8356
8357 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8358
8359         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8360
8361 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8362
8363         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8364
8365 2001-10-26  Mike Alexander  <mta@arbortext.com>
8366
8367         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8368
8369 2001-10-25  Andy Piper  <andy@xemacs.org>
8370
8371         * ChangeLog:
8372         * dialog-msw.c (handle_directory_proc): new function.
8373          (handle_directory_dialog_box): new fucntion.
8374          (handle_file_dialog_box): use new directory dialog support.
8375          (mswindows_make_dialog_box_internal): ditto.
8376         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8377         handling.
8378         (mswindows_find_frame): make global.
8379         * fileio.c (Fexpand_file_name): build fix.
8380         * general-slots.h: add Qdirectory.
8381         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8382         handling.
8383         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8384         cygwin not leaving win32 paths unchanged.
8385         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8386         cygwin runtime to do path conversion.
8387         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8388         (syms_of_win32): add new function.
8389         * window.c (window_loop): build fix.
8390
8391 2001-10-15  Andy Piper  <andy@xemacs.org>
8392
8393         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8394
8395 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8396
8397         * XEmacs 21.4.5 "Civil Service" is released.
8398
8399 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8400
8401         * glyphs-x.c: Force buffer-tab highlight update when moving the
8402         buffer, avoiding an ugly black border, used for keyboard focus
8403         indication, on a widget that can never have keyboard focus, the
8404         buffer tab.
8405
8406 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8407
8408         * process-unix.c (unix_open_multicast_group): Remove too much
8409         conversion between host and network byte order.
8410
8411 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8412
8413         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8414         before replacing them.
8415
8416         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8417         operation.
8418
8419         * src/window.c (undedicate_windows): Use it.
8420         * src/window.h: Add prototype.
8421
8422 2001-09-17  Ben Wing  <ben@xemacs.org>
8423
8424         * fileio.c (normalize_filename):
8425         * fileio.c (Fexpand_file_name):
8426         Fix various C++ compile errors in Andy's recent code.
8427         
8428         * callint.c (Fcall_interactively):
8429         * editfns.c (Ftemp_directory):
8430         * editfns.c (Fuser_full_name):
8431         * emacs.c (argmatch):
8432         * lread.c (locate_file_map_suffixes):
8433         * redisplay-x.c (x_ring_bell):
8434         Fix sign-compare warnings.
8435         
8436 2001-09-08  Andy Piper  <andy@xemacs.org>
8437
8438         * fileio.c (normalize_filename): copied from nt.c
8439         * (Ffile_name_directory): enable win32 paths under cygwin.
8440         * (Ffile_name_nondirectory): ditto.
8441         * (directory_file_name): ditto.
8442         * (Fexpand_file_name): ditto.
8443         * (Ffile_truename): ditto.
8444         * (Fsubstitute_in_file_name): ditto.
8445         * (Ffile_name_absolute_p): ditto.
8446         * (Ffile_readable_p): ditto.
8447
8448 2001-09-08  Andy Piper  <andy@xemacs.org>
8449
8450         * device-msw.c (mswindows_finish_init_device): remove dde
8451         initialization.
8452         * device-msw.c (mswindows_init_dde): factor out from
8453         mswindows_finish_init_device()
8454         * device-msw.c (init_mswindows_very_early): new function
8455         initialize but don't enable dde.
8456         * emacs.c (main_1): call init_mswindows_very_early.
8457         * event-msw.c:
8458         * event-msw.c (mswindows_dde_callback): only execute when we are
8459         ready.
8460         * symsinit.h: declare init_mswindows_very_early.
8461
8462 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8463
8464         [sjt: This has been in 21.5 for months with no complaints.]
8465
8466         * console.h (struct console_methods): Added flags member.
8467         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8468         (CONMETH_IMPL_FLAG):
8469         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8470         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8471
8472         * device.c (window_system_pixelated_geometry): Use the above macros.
8473
8474         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8475         implememntation flag.
8476         * device.h (DEVICE_DISPLAY_P): Use it.
8477
8478         * frame.c (delete_frame_internal): Use the above macro.
8479
8480         * redisplay.c (redisplay_device): Use it.
8481         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8482         (redisplay_frame): Ditto.
8483
8484         * device-msw.c (mswindows_device_implementation_flags): Removed.
8485         (msprinter_device_implementation_flags): Removed.
8486         (console_type_create_device_mswindows): Removed references to
8487         implementation_flags methods, set implementation flags here.
8488         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8489
8490         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8491         (console_type_create_device_gtk): Removed method declaration.
8492         Added commented out statement which semantically matches the
8493         commented out statement in the above removed method.
8494
8495 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8496
8497         The attached patch fixes a few warnings. 
8498
8499         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8500         * src/frame-gtk.c: guard against GNOME calls in GTK only
8501         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8502         * src/select-gtk.c: prototype lisp_to_time
8503
8504 2001-06-08  Ben Wing  <ben@xemacs.org>
8505
8506         ------ gc-in-window-procedure fixes ------
8507         
8508         * alloc.c:
8509         * alloc.c (struct post_gc_action):
8510         * alloc.c (register_post_gc_action):
8511         * alloc.c (run_post_gc_actions):
8512         * alloc.c (garbage_collect_1):
8513         Create "post-gc actions", to avoid those dreaded "GC during window
8514         procedure" problems.
8515
8516         * event-msw.c:
8517         Abort, clean and simple, when GC in window procedure.  We want
8518         to flush these puppies out.
8519
8520         * glyphs-msw.c:
8521         * glyphs-msw.c (finalize_destroy_window):
8522         * glyphs-msw.c (mswindows_finalize_image_instance):
8523         Use a post-gc action when destroying subwindows.
8524
8525         * lisp.h:
8526         Declare register_post_gc_action().
8527
8528         * scrollbar-msw.c:
8529         * scrollbar-msw.c (unshow_that_mofo):
8530         Use a post-gc action when unshowing scrollbar windows, if in gc.
8531
8532         * redisplay.c (mark_redisplay):
8533         Add comment about the utter evilness of what's going down here.
8534
8535         ------ cygwin setitimer fixes ------
8536         
8537         * Makefile.in.in (sheap_objs):
8538         * Makefile.in.in (profile_objs):
8539         * Makefile.in.in (objs):
8540         Compile profile.c only when HAVE_SETITIMER.
8541         
8542         * nt.c (mswindows_sigset):
8543         * nt.c (mswindows_sighold):
8544         * nt.c (mswindows_sigrelse):
8545         * nt.c (mswindows_sigpause):
8546         * nt.c (mswindows_raise):
8547         * nt.c (close_file_data):
8548         Style fixes.
8549         
8550         * nt.c:
8551         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8552         
8553         * profile.c:
8554         * profile.c (Fstart_profiling):
8555         * profile.c (Fstop_profiling):
8556         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8557         instead of just plain setitimer().
8558         
8559         * signal.c:
8560         * signal.c (set_one_shot_timer):
8561         * signal.c (alarm):
8562         Define qxe_setitimer() as an encapsulation around setitimer() --
8563         call setitimer() directly unless Cygwin or MS Win, in which case
8564         we use our simulated version in win32.c.
8565         
8566         * systime.h:
8567         * systime.h (struct itimerval):
8568         * systime.h (ITIMER_REAL):
8569         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8570         comment about "qxe" and the policy regarding encapsulation.
8571
8572         * win32.c:
8573         * win32.c (setitimer_helper_proc):
8574         * win32.c (setitimer_helper_period):
8575         * win32.c (setitimer_helper):
8576         * win32.c (mswindows_setitimer):
8577         Move setitimer() emulation here, so Cygwin can use it.
8578         Rename a couple of functions and variables to be longer and more
8579         descriptive.  In setitimer_helper_proc(), send the signal
8580         using either mswindows_raise() or (on Cygwin) kill().  If for
8581         some reason we are still getting lockups, we'll change the kill()
8582         to directly invoke the signal handlers.
8583
8584         ------ windows shell fixes ------
8585         
8586         * callproc.c:
8587         * ntproc.c:
8588         Comments about how these two files must die.
8589
8590         * callproc.c (init_callproc):
8591         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8592         not just COMSPEC. (more correct and closer to FSF.) Don't
8593         force a value for SHELL into the environment. (Comments added
8594         to explain why not.)
8595         
8596         * nt.c (init_user_info):
8597         Don't shove a fabricated SHELL into the environment.  See above.
8598
8599 2001-06-01  Ben Wing  <ben@xemacs.org>
8600
8601         * Makefile.in.in (ldflags):
8602         eliminate that pesky "defaulting to 00401000" warning.
8603         * nt.h:
8604         eliminate warnings.
8605
8606 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8607
8608         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8609         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8610
8611 2001-04-24  Jerry James <james@xemacs.org>
8612
8613         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8614         correct order.
8615
8616 2001-06-01  Ben Wing  <ben@xemacs.org>
8617
8618         * event-msw.c (debug_mswin_messages):
8619         conditionalize the messages that were causing compile errors.
8620         (if only macros could generate #ifdef statements ...)
8621
8622 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8623
8624         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8625
8626 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8627
8628         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8629
8630 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8631
8632         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8633         * process-unix.c (unix_canonicalize_host_name):
8634         sysdep.c (init_system_name):
8635         Use it to conditionally support IPv6 canonicalization.
8636
8637 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8638
8639         * event-msw.c:
8640         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8641
8642 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8643
8644         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8645         attempt is made to scroll when no scroll bar is available.
8646
8647 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8648
8649         * input-method-motif.c (XIM_delete_frame): New callback.
8650         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8651         got deleted from 21.4.3.)
8652
8653 2001-06-01  Ben Wing  <ben@xemacs.org>
8654
8655         * nt.c (mswindows_utime):
8656         * nt.c (close_file_data):
8657         fix off-by-one-indirection error.
8658
8659 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8660
8661         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8662         because set_file_times() now takes Lisp_Object path, instead of
8663         char*.
8664         * nt.c: Include buffer.h.
8665         * nt.c (convert_from_time_t): New.
8666         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8667         not set mtime correctly.
8668         * nt.h: Declare mswindows_utime().
8669         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8670         path, instead of char*.
8671         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8672
8673 2001-05-30  Ben Wing  <ben@xemacs.org>
8674
8675         For 21.4:
8676
8677         (Stephen, just take all event-msw.c patches.  This includes
8678         the "iconify" fix below.)
8679
8680         * event-msw.c:
8681         * event-msw.c (mswindows_dequeue_dispatch_event):
8682         * event-msw.c (assert):
8683         * event-msw.c (emacs_mswindows_quit_p):
8684         * event-msw.c (debug_mswin_messages):
8685         * event-msw.c (debug_output_mswin_message):
8686         * event-msw.c (vars_of_event_mswindows):
8687         Fix yet more problems with C-g handling.
8688         Implement debug-mswindows-events.
8689         
8690 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8691
8692         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8693         
8694 2001-05-23  Ben Wing  <ben@xemacs.org>
8695
8696         * event-msw.c (winsock_writer):
8697         * event-msw.c (winsock_closer):
8698         prior kludgy code was clobbering the buffer, thinking it was
8699         "unused" space to store an unneeded return value; instead, use
8700         the variable we've already got staring us in the face.
8701
8702 2001-05-17  Andy Piper  <andy@xemacs.org>
8703
8704         * sysfile.h: don't assume that file attributes are boolean
8705
8706 2001-05-23  Ben Wing  <ben@xemacs.org>
8707
8708         * device-msw.c (msprinter_init_device):
8709         signal an error rather than crash with an unavailable network
8710         printer (from Mike Alexander).
8711         
8712         * event-msw.c:
8713         * event-msw.c (struct winsock_stream):
8714         * event-msw.c (winsock_writer):
8715         * event-msw.c (winsock_closer):
8716         * event-msw.c (make_winsock_stream_1):
8717         cleanup headers.  fix (hopefully) an error with data corruption
8718         when sending to a network connection.
8719
8720         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8721         to handle the ~user prefix by (a) always assuming we're referencing
8722         ourselves and not even verifying the user -- hence any file with
8723         a tilde as its first char is invalid! (b) if there wasn't a slash
8724         following the filename, the pointer was set *past* the end of
8725         file and we started reading from uninitialized memory.  Now we
8726         simply treat these as files, always.
8727
8728         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8729         
8730 2001-05-19  Ben Wing  <ben@xemacs.org>
8731
8732         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8733
8734         * process-nt.c:
8735         * process-nt.c (vars_of_process_nt):
8736         remove unused mswindows-quote-process-args.  rec for 21.4.
8737         
8738 2001-05-12  Ben Wing  <ben@xemacs.org>
8739
8740         * event-msw.c (mswindows_dde_callback):
8741         * event-msw.c (mswindows_wnd_proc):
8742         eliminate cygwin warnings.
8743
8744 2001-05-06  Ben Wing  <ben@xemacs.org>
8745
8746         * console-msw.h:
8747         * device-msw.c:
8748         * device-msw.c (print_dialog_worker):
8749         * device-msw.c (mswindows_handle_print_dialog_box):
8750         * device-msw.c (syms_of_device_mswindows):
8751         * dialog-msw.c (mswindows_make_dialog_box_internal):
8752         * general-slots.h:
8753         implement printing the selection when it's selected.
8754
8755 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8756
8757         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8758
8759 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8760
8761         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8762         EMACS_INT is signed.
8763
8764 2001-04-15  Michael Lausch  <mla@1012surf.net>
8765
8766         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8767         gtk_widget_request_size() to give scrollbar >0 width for
8768         GTK >1.2.8.
8769
8770 2001-05-30  William M. Perry  <wmperry@gnu.org>
8771
8772         * event-gtk.c: Check for buttons as modifier keys.
8773
8774 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8775
8776         * s\mingw32.h:
8777         Properly find MinGW's <process.h> inside Cygwin's restructured
8778         include directories.  Don't try to include <cygwin/version.h>
8779         since we are dropping support for MinGW in versions of Cygwin
8780         earlier than b21.
8781         * nt.c:
8782         Drop support for MinGW in versions of Cygwin before b21.
8783         * sysdep.c:
8784         Properly find MinGW's <process.h> inside Cygwin's restructured
8785         include directories.
8786         * syswindows.h:
8787         Drop support for MinGW in versions of Cygwin before b21.
8788         * unexcw.c:
8789         Even though a.out.h is no longer detected by configure, allow
8790         MinGW to use it until we figure out how to do the job with Win32.
8791
8792 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8793
8794         * syntax.c (find_start_of_comment):
8795         Fix `unbalanced parentheses' bug when dealing with mixed comment
8796         styles in c++/java/etc. mode
8797
8798 2001-05-29  Mike Alexander  <mta@arbortext.com>
8799
8800         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8801         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8802
8803 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8804
8805         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8806
8807 2001-03-31  Mike Sperber <mike@xemacs.org>
8808
8809         * search.c (Freplace_match): Support FSF-style specification of
8810         match subexpression when applied to a buffer.
8811
8812 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8813
8814         * event-stream.c (is_scrollbar_event): add missing semicolon
8815
8816 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8817
8818         * Makefile.in.in: Use TAR macro instead of hardcoding
8819           tar.  Allows use of GNU tar instead of system tar
8820
8821 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8822
8823         * event-stream.c (is_scrollbar_event): add missing semicolon
8824
8825 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8826
8827         * XEmacs 21.4.3 "Academic Rigor" is released.
8828
8829 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8830
8831         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8832
8833 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8834
8835         * buffer.c (Vcase_fold_search): Remove obsolete
8836           comment about non ASCII case-fold-search.  This
8837           bug has been fixed by case-table changes.
8838
8839 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8840
8841         * event-msw.c: Restore include of events-mod.h.
8842
8843 2001-04-22   zhaoway  <zw@debian.org>
8844
8845         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8846         !HAVE_SCROLLBARS.
8847
8848 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8849
8850         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8851
8852 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8853
8854         * mule-charset.c (Fmake_charset): Add missing else.
8855
8856 2001-04-23  Ben Wing  <ben@xemacs.org>
8857
8858         * event-msw.c (FAKE_MOD_QUIT):
8859         * event-msw.c (mswindows_dequeue_dispatch_event):
8860         * event-msw.c (mswindows_wnd_proc):
8861         * event-msw.c (emacs_mswindows_quit_p):
8862         Get critical quit working.
8863
8864 2001-05-05  Ben Wing  <ben@xemacs.org>
8865
8866         * console-msw.h:
8867         * device-msw.c:
8868         * device-msw.c (mswindows_get_default_margin):
8869         * frame-msw.c (mswindows_size_frame_internal):
8870         * frame-msw.c (msprinter_init_frame_1):
8871         * frame-msw.c (vars_of_frame_mswindows):
8872         Change top/bottom margin defaults to 0.5 inches.
8873
8874 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8875
8876         Fix link error with gcc 3.0 on Linux.
8877         * terminfo.c (UP): Remove.
8878         * terminfo.c (BC): Remove.
8879         * terminfo.c (PC): Remove.
8880         They weren't used, and in any case, these symbols should be
8881         defined in the *library*.
8882
8883 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8884
8885         * s/aix4.h: Fix crash with xlc -O3.
8886         Improve comment explaining how -O3 works.
8887
8888 2001-04-15  Ben Wing  <ben@xemacs.org>
8889
8890         * event-stream.c:
8891         * event-stream.c (Fnext_event):
8892         * event-stream.c (is_scrollbar_event):
8893         * event-stream.c (execute_command_event):
8894         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8895         crash' problem.  His fix introduces other problems.  We filter
8896         out scrollbar events specifically, making them somewhat invisible
8897         to command-building, and not appearing in `this-command-keys'.
8898         More work is still needed (see comments in event-stream.c), but
8899         this fixes all the major problems.
8900
8901 2001-04-20  Ben Wing  <ben@xemacs.org>
8902
8903         * .cvsignore: Added stuff for Windows.
8904
8905 2001-04-28  Ben Wing  <ben@xemacs.org>
8906
8907         * buffer.c (Ferase_buffer):
8908         * editfns.c (buffer_insert1):
8909         * editfns.c (Finsert_before_markers):
8910         * editfns.c (Finsert_string):
8911         * editfns.c (Finsert_char):
8912         * editfns.c (Fdelete_region):
8913         * editfns.c (Fwiden):
8914         * editfns.c (Fnarrow_to_region):
8915         remove bogus lines setting zmacs_region_stays to 0.
8916         
8917 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8918
8919         * process-unix.c (unix_open_network_stream): If connect() fails
8920         invalidate file descriptor after closing it.
8921
8922 2001-03-08  Mike Alexander  <mta@arbortext.com>
8923
8924         * event-msw.c (mswindows_need_event_in_modal_loop):
8925         Don't dispatch a message if we didn't get one.
8926         (mswindows_need_event):
8927         Terminate the correct process when one exits instead of the first
8928         one on Vprocess_list and look for process termination when in
8929         mswindows_protect_modal_loop.
8930
8931 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8932
8933         * XEmacs 21.4.1 "Copyleft" is released.
8934
8935 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8936
8937         * input-method-motif.c (XIM_delete_frame): New callback.
8938         (XIM_init_frame): Register it.
8939
8940 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8941
8942         * XEmacs 21.4.0 "Solid Vapor" is released.
8943
8944 2001-04-15  Ben Wing  <ben@xemacs.org>
8945
8946         * cmdloop.c (call_command_loop):
8947         Fix braino in bit-rotting code.
8948         
8949 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8950
8951         * extents.c (Fset_extent_endpoints): Force creation of extent info
8952         in buffer_or_string.
8953
8954         * extents.c (process_extents_for_insertion_mapper): Correctly
8955         check for open-open zero-length extents.
8956
8957 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8958
8959         * lisp.h: New typedefs Memory_count, Element_count.
8960         * regex.c:
8961         * regex.h:
8962         Sign-compare warning elimination: several unsigned -> signed.
8963         Based on work by Ben Wing <ben@xemacs.org>.
8964
8965 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8966
8967         * XEmacs 21.2.47 "Zephir" is released.
8968
8969 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8970
8971         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8972
8973 2001-04-03  Mike Sperber <mike@xemacs.org>
8974
8975         * search.c: Revert previous patch due because of release.
8976
8977 2001-03-30  Ben Wing  <ben@xemacs.org>
8978
8979         * s\cygwin32.h:
8980         Add missing killpg prototype.
8981
8982         * elhash.c:
8983         Add a comment about fixing problems when a new entry is added
8984         while mapping.
8985
8986         * frame-msw.c (mswindows_init_frame_1):
8987         Fix compile warnings.
8988
8989         * menubar.c (vars_of_menubar):
8990         Provide `menu-accelerator-support' to indicate that we properly
8991         support %_ in menu specifications, so that package code can
8992         conditionalize on this (and remove %_ from menu specifications
8993         on older versions).
8994
8995         * event-msw.c:
8996         * scrollbar-msw.c:
8997         * scrollbar-msw.c (can_scroll):
8998         * scrollbar-msw.h:
8999         Fix handling of mouse wheel under Windows to follow standards --
9000         now scrolls window under pointer, not selected window.
9001
9002 2001-03-31  Mike Sperber <mike@xemacs.org>
9003
9004         * search.c (Freplace_match): Support FSF-style specification of
9005         match subexpression when applied to a buffer.
9006
9007 2001-03-15  Martin Buchholz  <martin@xemacs.org>
9008
9009         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
9010         function to modify KEYMAP, so map over a copy of the hash table.
9011
9012 2001-03-21  Martin Buchholz <martin@xemacs.org>
9013
9014         * XEmacs 21.2.46 "Urania" is released.
9015
9016 2001-03-20  Dan Holmsand  <dan@eyebee.com>
9017
9018         * realpath.c (xrealpath): Make file-truename work with symlinks to
9019         /cygdrive paths on cygwin. Always lowercase drive-letters on
9020         native windows.
9021         (cygwin_readlink): Don't try to find canonical filename unless
9022         file exists.
9023
9024 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
9025
9026         * ChangeLog: Log GTK merge.
9027
9028         * dumper.c:
9029         * select-x.c:
9030         * specifier.c:
9031         * symeval.h:
9032         Revert gratuitous whitespace changes from GTK merge.
9033
9034         * emacs.c: Document end of complex #ifdef @ l. 1495.
9035
9036
9037 2001-03-12  Andy Piper  <andy@xemacs.org>
9038
9039         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
9040         have to do likewise.
9041
9042 2001-03-12  Andy Piper  <andy@xemacs.org>
9043
9044         * sysdep.c: we only support mingw now.
9045
9046 2001-03-09  Andy Piper  <andy@xemacs.org>
9047
9048         * unexcw.c (copy_executable_and_dump_data_section): making approx
9049         overrun a warning only.
9050
9051 2001-03-10  William M. Perry  <wmperry@aventail.com>
9052
9053         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
9054         satisfy Stephen's identical-after-cpp plea.
9055
9056 2001-03-02  Ben Wing  <ben@xemacs.org>
9057
9058         * cmds.c:
9059         * cmds.c (Fforward_char):
9060         * syntax.c:
9061         * window.c:
9062
9063         Augment documentation of the most common motion commands to make
9064         note of the shifted-motion support.
9065         
9066 2001-03-02  Ben Wing  <ben@xemacs.org>
9067
9068         * nt.c (mswindows_fstat):
9069         * nt.c (mswindows_stat):
9070         * search.c (boyer_moore):
9071         Fix compile warnings under Windows.
9072         
9073         * sysdep.c (sys_readdir):
9074         Fix buggy filename-conversion code under Mule.
9075
9076 2001-03-09  William M. Perry  <wmperry@aventail.com>
9077
9078         * Makefile.in.in:
9079         * config.h.in:
9080         * console.c:
9081         * console.h:
9082         * device.c:
9083         * device.h:
9084         * dragdrop.c:
9085         * emacs.c:
9086         * event-stream.c:
9087         * events.c:
9088         * events.h:
9089         * faces.c:
9090         * frame.h:
9091         * general-slots.h:
9092         * glyphs.c:
9093         * gutter.c:
9094         * inline.c:
9095         * lisp.h:
9096         * lrecord.h:
9097         * make-src-depend:
9098         * redisplay-output.c:
9099         * redisplay.c:
9100         * symsinit.h:
9101         * sysfile.h:
9102         * toolbar.c:
9103         * window.c:
9104         The Great GTK Merge.
9105
9106         * ChangeLog.GTK:
9107         * console-gtk.c:
9108         * console-gtk.h:
9109         * device-gtk.c:
9110         * emacs-marshals.c:
9111         * emacs-widget-accessors.c:
9112         * event-gtk.c:
9113         * frame-gtk.c:
9114         * gccache-gtk.c:
9115         * gccache-gtk.h:
9116         * glade.c:
9117         * glyphs-gtk.c:
9118         * glyphs-gtk.h:
9119         * gtk-glue.c:
9120         * gtk-xemacs.c:
9121         * gtk-xemacs.h:
9122         * gui-gtk.c:
9123         * gui-gtk.h:
9124         * menubar-gtk.c:
9125         * native-gtk-toolbar.c:
9126         * objects-gtk.c:
9127         * objects-gtk.h:
9128         * redisplay-gtk.c:
9129         * scrollbar-gtk.c:
9130         * scrollbar-gtk.h:
9131         * select-gtk.c:
9132         * toolbar-gtk.c:
9133         * ui-byhand.c:
9134         * ui-gtk.c:
9135         * ui-gtk.h:
9136         The Great GTK Merge: new files.
9137
9138 2001-02-26  Ben Wing  <ben@xemacs.org>
9139
9140         Reapplied Lstream change.
9141
9142 2001-02-26  Ben Wing  <ben@xemacs.org>
9143
9144         Undid the last change, since it is more controversial than I
9145         thought.  It should be back in at some point soon.
9146         
9147 2001-02-25  Ben Wing  <ben@xemacs.org>
9148
9149         * buffer.c:
9150         * callproc.c (Fold_call_process_internal):
9151         * event-msw.c (ntpipe_slurp_reader):
9152         * event-msw.c (ntpipe_shove_writer):
9153         * event-msw.c (winsock_reader):
9154         * event-msw.c (winsock_writer):
9155         * file-coding.c:
9156         * file-coding.c (detect_eol_type):
9157         * file-coding.c (detect_coding_type):
9158         * file-coding.c (determine_real_coding_system):
9159         * file-coding.c (Fdetect_coding_region):
9160         * file-coding.c (decoding_reader):
9161         * file-coding.c (decoding_writer):
9162         * file-coding.c (mule_decode):
9163         * file-coding.c (Fdecode_coding_region):
9164         * file-coding.c (encoding_reader):
9165         * file-coding.c (encoding_writer):
9166         * file-coding.c (mule_encode):
9167         * file-coding.c (Fencode_coding_region):
9168         * file-coding.c (detect_coding_sjis):
9169         * file-coding.c (decode_coding_sjis):
9170         * file-coding.c (encode_coding_sjis):
9171         * file-coding.c (detect_coding_big5):
9172         * file-coding.c (decode_coding_big5):
9173         * file-coding.c (encode_coding_big5):
9174         * file-coding.c (detect_coding_ucs4):
9175         * file-coding.c (decode_coding_ucs4):
9176         * file-coding.c (encode_coding_ucs4):
9177         * file-coding.c (detect_coding_utf8):
9178         * file-coding.c (decode_coding_utf8):
9179         * file-coding.c (encode_coding_utf8):
9180         * file-coding.c (detect_coding_iso2022):
9181         * file-coding.c (decode_coding_iso2022):
9182         * file-coding.c (encode_coding_iso2022):
9183         * file-coding.c (decode_coding_no_conversion):
9184         * file-coding.c (encode_coding_no_conversion):
9185         * glyphs-x.c (write_lisp_string_to_temp_file):
9186         * gpmevent.c (tty_get_foreign_selection):
9187         * lisp.h:
9188         * lstream.c:
9189         * lstream.c (Lstream_flush_out):
9190         * lstream.c (Lstream_adding):
9191         * lstream.c (Lstream_write_1):
9192         * lstream.c (Lstream_write):
9193         * lstream.c (Lstream_raw_read):
9194         * lstream.c (Lstream_read_more):
9195         * lstream.c (Lstream_read):
9196         * lstream.c (Lstream_unread):
9197         * lstream.c (Lstream_fputc):
9198         * lstream.c (stdio_reader):
9199         * lstream.c (stdio_writer):
9200         * lstream.c (filedesc_reader):
9201         * lstream.c (filedesc_writer):
9202         * lstream.c (lisp_string_reader):
9203         * lstream.c (struct fixed_buffer_stream):
9204         * lstream.c (make_fixed_buffer_input_stream):
9205         * lstream.c (make_fixed_buffer_output_stream):
9206         * lstream.c (fixed_buffer_reader):
9207         * lstream.c (fixed_buffer_writer):
9208         * lstream.c (struct resizing_buffer_stream):
9209         * lstream.c (resizing_buffer_writer):
9210         * lstream.c (dynarr_writer):
9211         * lstream.c (lisp_buffer_reader):
9212         * lstream.c (lisp_buffer_writer):
9213         * lstream.h:
9214         * lstream.h (lstream_implementation):
9215         * lstream.h (struct lstream):
9216         * md5.c (Fmd5):
9217         * process-nt.c (nt_send_process):
9218         * process-unix.c (unix_send_process):
9219         
9220         Correct Lstream lossage due to mixing of signed and unsigned
9221         quantities.  All Lstream uses of size_t and ssize_t are now a
9222         single signed data type Lstream_data_count.  This fixes problems
9223         under Windows with sending large quantities of data to a process,
9224         and may well fix other subtle bugs.
9225
9226 2001-02-23  Martin Buchholz <martin@xemacs.org>
9227
9228         * XEmacs 21.2.45 "Thelxepeia" is released.
9229
9230 2001-02-21  Martin Buchholz  <martin@xemacs.org>
9231
9232         * lisp-union.h (XSETINT): 
9233         (XSETCHAR):
9234         (XSETOBJ): 
9235         Reverse previous change of 2001-02-06.
9236
9237 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
9238
9239         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
9240         buffers.
9241         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9242         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
9243         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
9244         * regex.c (POS_AS_IN_BUFFER): removed
9245         * regex.c (re_search_2):
9246         * regex.c (re_match_2):
9247         Don't use an offset of 1 when calculating buffer positions, since
9248         `BI_BUF_BEGV' does it already.
9249
9250 2001-02-18  Wim Dumon  <wim@easics.be>
9251
9252         * insdel.c (prepare_to_modify_buffer): Also check for
9253         supersession when clash-detection is enabled. 
9254
9255 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
9256
9257         * regex.c (re_match_2_internal):
9258         Convert temp characters from 'const unsigned char' to 're_char'.
9259         Fix crashing bug with extended characters under mule.
9260         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
9261         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
9262         font-lock, pdump, and new syntax-table code.
9263         * syntax.c (find_start_of_comment):
9264         (find_end_of_comment):
9265         (forward-comment):
9266         Fix crashing bugs involving moving beyond end of buffer.
9267         * syntax.c (find_start_of_comment):
9268         Fixed logic to allow proper detection of cases where the same
9269         character is used to end both a two-char comment start and a
9270         two-char comment end sequence. Fixes `(forward-comment -1)'.
9271         * syntax.c (find_start_of_comment):
9272         Return position just past last comment-end character for all cases
9273         (previously was only done for two-char comment-end sequences).
9274         * syntax.c (forward-comment):
9275         Take value returned from `find_end_of_comment', rather than
9276         incrementing it.
9277         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9278         Properly deal with BUFFERP (syntax_cache.object)
9279
9280 2001-02-17  Martin Buchholz  <martin@xemacs.org>
9281
9282         * alloc.c (Fgarbage_collect): 
9283         * alloc.c (make_bit_vector_from_byte_vector):
9284         -Wsign-compare-correctness.
9285
9286 2001-02-16  Martin Buchholz  <martin@xemacs.org>
9287
9288         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
9289         (XSETCHAR): Likewise.
9290         (XSETOBJ): Likewise.
9291
9292 2001-02-15  Martin Buchholz  <martin@xemacs.org>
9293
9294         * mule-canna.c (canna-func-delete_previous): 
9295         Rename to canna-func-delete-previous.
9296
9297 2001-02-14  Martin Buchholz  <martin@xemacs.org>
9298
9299         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
9300
9301 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
9302
9303         * font-lock.c (find_context): Fix C++ compile errors introduced by
9304         recent patch
9305
9306 2001-02-13  Martin Buchholz  <martin@xemacs.org>
9307
9308         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
9309         pragma, but earlier ones barf on the same pragma.
9310
9311 2001-02-06  Mike Sperber <mike@xemacs.org>
9312
9313         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
9314         `configure-mule-lisp-directory'.
9315
9316 2001-02-12  Martin Buchholz  <martin@xemacs.org>
9317
9318         Make sure dump-id.c is compiled in the same way as other .c's.
9319         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
9320         * dump-id.h: Remove.
9321         * emacs.c: Move dump-id.h into dumper.h.
9322         * dumper.h: Move dump-id.h into dumper.h.
9323         * Makefile.in.in:
9324         Use standard .c.o rule for building dump-id.o.
9325         Remove preprocessor flags from link command.
9326         Add dump-id.o to ${otherobjs} if PDUMP.
9327
9328 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
9329
9330         Port FSF 20.7 syntax table improvements.
9331         * syntax.c.
9332         * syntax.h.
9333
9334         Fixups for new syntax table stuff.
9335         * dired.c: Include syntax.c.
9336         (Fdirectory_files): Initialize regex_match_object and
9337         regex_emacs_buffer.
9338         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9339         and Fget_char_property.
9340
9341         Use ported FSF 20.7 syntax table improvements.
9342         * font-lock.c.
9343         * regex.c.
9344         * search.c.
9345         
9346 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9347
9348         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9349         Unixware's enum boolean from sys/types.h.
9350
9351 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9352
9353         Fix support for building with latest Purify.
9354         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9355         (PURIFY_FLAGS): Likewise.
9356
9357 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9358
9359         * fileio.c (lisp_string_set_file_times): New.
9360         * fileio.c (Fcopy_file): Use it.
9361         Fixes bug:
9362         (copy-file filename non-ascii-filename t t)
9363         ==> No such file or directory, non-ascii-filename
9364
9365 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9366
9367         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9368         USHRT_MAX seems clearer than ~0 anyways.
9369
9370 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9371
9372         dumper improvements.  Inspired by Olivier.
9373         * dumper.c (pdump_max_align): New.
9374         * dumper.c (pdump_add_entry): Use pdump_max_align.
9375         * dumper.c (pdump_get_entry_list): Likewise.
9376         * dumper.c (pdump_scan_by_alignment): Likewise.
9377         Don't iterate through unnecessary alignments.
9378         * dumper.c (pdump_file_get): No need to align result of malloc().
9379         * dumper.c (pdump_mallocadr): Remove.  
9380         The result of malloc() is guaranteed to be maximally aligned.
9381         * dumper.c: s/elmt/elt/g;
9382         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9383         * dumper.c (pdump_alert_undump_object): Likewise.
9384         * dumper.c (pdump_align_table): 
9385         Don't support alignments > 64.
9386         Store ALIGNOF's, not shift counts, in table.
9387
9388 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9389
9390         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9391         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9392         * systime.h: Use HAVE_UTIME.
9393         * sysdep.c (struct utimbuf): Remove.
9394         * sysdep.c (set_file_times): Prefer utime() to utimes().
9395         * config.h.in (HAVE_UTIME): New.
9396         * config.h.in (HAVE_UTIME_H): Remove.
9397         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9398
9399 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9400
9401         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9402
9403 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9404
9405         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9406
9407 2001-02-08  Martin Buchholz <martin@xemacs.org>
9408
9409         * XEmacs 21.2.44 "Thalia" is released.
9410
9411 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9412
9413         Fixes crashes in kill-emacs on some systems.
9414         * process-unix.c (unix_kill_child_process):
9415         It's OK for kill() to fail with ESRCH.
9416
9417 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9418
9419         Contortions to make .gdbinit tricks work on most systems.
9420         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9421         * alloc.c (dbg_valmask): Make non-const.
9422         * alloc.c (dbg_typemask): Make non-const.
9423         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9424         * alloc.c (dbg_valbits): Make non-const.
9425         * alloc.c (dbg_gctypebits): Make non-const.
9426         * .gdbinit (decode_object): Make it work with AIX cc.
9427
9428 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9429
9430         * elhash.c (make_general_lisp_hash_table):
9431         Use simpler and more efficient calloc to clear entries.
9432
9433 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9434
9435         * window.c (window_scroll): Work around an AIX C compiler bug.
9436         Fixes 'scroll-up' does nothing problem with xlC.
9437
9438 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9439
9440         * .gdbinit: Remove obsolete comment.
9441
9442 2001-01-31  Mike Alexander  <mta@arbortext.com>
9443
9444         * select.c (Fown_selection_internal): Set owned_p for device
9445         method correctly.
9446
9447 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9448
9449         Port to g++ 2.97.
9450         "not" cannot be used as a macro name as it is an operator in C++
9451         * config.h.in: Stop #defining `not'.
9452         * chartab.c (check_category_char): not ==> not_p
9453         * chartab.h: Likewise.
9454         * regex.c (re_match_2_internal): Likewise.
9455
9456 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9457
9458         * lisp-disunion.h: Fix up comments.
9459
9460 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9461
9462         * keymap.c (define_key_check_and_coerce_keysym):
9463         (syms_of_keymap):
9464         Support mouse-6 and mouse-7 bindings in the obvious way.
9465
9466 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9467
9468         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9469
9470 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9471
9472         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9473         Previous patch missed DEFVAR_INT_MAGIC.
9474         Make sure future DEFVAR_foo use correct types.
9475         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9476         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9477         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9478         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9479         * (DEFVAR_INT): Likewise.
9480         * redisplay.c (vertical_clip): Should be of type Fixnum.
9481         * redisplay.c (horizontal_clip): Likewise.
9482         * lisp.h (dump_add_opaque_int): New.
9483         (dump_add_opaque_fixnum): New.
9484
9485 2001-01-29  Andy Piper  <andy@xemacs.org>
9486
9487         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9488         since they can be eval'ed
9489
9490 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9491
9492         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9493         Oops, XEmacs redefines `class'.  Use `typename' instead.
9494
9495 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9496
9497         * dumper.c: Fix C++ compile errors.
9498
9499 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9500
9501         * tparam.c: Use correct prototypes.
9502
9503 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9504
9505         * sysproc.h: #include util.h for NetBSD's openpty.
9506
9507 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9508
9509         More 64-bit correctness.
9510         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9511         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9512         Fix up comments.
9513         This finally finishes the 64-bit SGI port.
9514         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9515         * symbols.c: Fix up comments and type casts.
9516         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9517         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9518         * symeval.h (Fixnum): New type.
9519         * symeval.h (symbol_value_type): Fix up comment.
9520
9521         * commands.h:
9522         * nt.c:
9523         * emacs.c:
9524         * data.c:
9525         * redisplay.c:
9526         * abbrev.c:
9527         * dired-msw.c:
9528         * event-Xt.c:
9529         * eldap.c:
9530         * window.c:
9531         * sound.c:
9532         * event-stream.c:
9533         * eval.c:
9534         * buffer.c:
9535         * mule-canna.c: A million DEFVAR_INTs here...
9536         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9537         * extents.c:
9538         * cmdloop.c:
9539         * lisp.h:
9540         * select-x.c:
9541         * console-x.h:
9542         * event-msw.c:
9543         * mule-wnnfns.c:
9544         * hpplay.c:
9545         * ralloc.c:
9546         * alloc.c:
9547         * keymap.c:
9548         * profile.c:
9549         s/int/Fixnum/g in DEFVAR_INT declarations.
9550
9551 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9552
9553         Port pdump to SGI alignment-sensitive environment.
9554         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9555         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9556         properly aligned.
9557         Define and use aligned reading and writing macros.
9558         Use buffered stdio instead of posix i/o for faster dumping.
9559         Eliminate kludgy 256 byte space for header.
9560         Read and write from dump file using structs for alignment safety.
9561         * dumper.c (pdump_align_stream): New.
9562         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9563         * dumper.c (PDUMP_READ_ALIGNED): New.
9564         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9565         * dumper.c (pdump_static_Lisp_Object): New struct.
9566         * dumper.c (pdump_static_pointer): New struct.
9567         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9568         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9569         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9570         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9571
9572         * dumper.c (pdump_backtrace):
9573         * dumper.c (pdump_get_indirect_count):
9574         * dumper.c (pdump_register_object):
9575         * dumper.c (pdump_register_struct):
9576         * dumper.c (pdump_reloc_one):
9577         * dumper.c (pdump_scan_by_alignment):
9578         * dumper.c (pdump_dump_from_root_struct_ptrs):
9579         * dumper.c (pdump_dump_opaques):
9580         * dumper.c (pdump_dump_rtables):
9581         * dumper.c (pdump_dump_from_root_objects):
9582         * dumper.c (pdump):
9583         * dumper.c (pdump_load_finish):
9584         Use aligned reading and writing.
9585
9586         * dumper.c (pdump_free): Make static.
9587         * dumper.c (pdump_hFile): Likewise.
9588         * dumper.c (pdump_hMap): Likewise.
9589
9590 2001-01-26  Martin Buchholz <martin@xemacs.org>
9591
9592         * XEmacs 21.2.43 "Terspichore" is released.
9593
9594 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9595
9596         Type fiddling for window_config.saved_windows_count
9597         * window.c (struct window_config): 
9598         Make saved_windows_count member unsigned.
9599         * window.c (sizeof_window_config_for_n_windows): 
9600         Make parameter unsigned.
9601         * window.c (mark_window_config):
9602         * window.c (window_config_equal):
9603         * window.c (free_window_configuration):
9604         * window.c (Fset_window_configuration):
9605         * window.c (count_windows):
9606         * window.c (Fcurrent_window_configuration):
9607         * window.c (reinit_vars_of_window):
9608         Update all callers and users.
9609
9610 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9611
9612         Alignment correctness for flexible arrays.
9613         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9614         Make alignment-correct. Add interesting comments.
9615         * alloc.c (size_vector):
9616         * alloc.c (make_vector_internal):
9617         * alloc.c (make_bit_vector_internal):
9618         * alloc.c (sweep_bit_vectors_1):
9619         * fns.c (size_bit_vector):
9620         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9621         * window.c (sizeof_window_config_for_n_windows): 
9622         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9623
9624 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9625
9626         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9627
9628 2001-01-23  Andy Piper  <andy@xemacs.org>
9629
9630         * select.c (Fown_selection_internal): pass owned_p
9631
9632         * select-msw.c (mswindows_own_selection): New Signature.
9633
9634         * console.h (struct console_methods): add owned_p to
9635         _own_selection.
9636
9637         * select-x.c (x_own_selection): pass owned_p
9638         (hack_motif_clipboard_selection): use owned_p
9639         (vars_of_select_x): new variable -
9640         x_selection_strict_motif_ownership.
9641
9642 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9643
9644         * specifier.h (specifier_data_offset): Remove pointless parens.
9645         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9646
9647 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9648
9649         Make Lisp_Object sizeof methods be alignment-correct.
9650         pdump must restore objects to the same alignment as the C compiler
9651         assumes.  It really matters on SGIs.
9652         * lstream.c (aligned_sizeof_lstream): New.
9653         (sizeof_lstream): Use aligned_sizeof_lstream.
9654         (Lstream_new): Likewise.
9655         * opaque.c (aligned_sizeof_opaque): New.
9656         (sizeof_opaque): Use aligned_sizeof_opaque.
9657         (make_opaque): Likewise.
9658         * specifier.c (aligned_sizeof_specifier): New.
9659         (sizeof_specifier): Use aligned_sizeof_specifier.
9660         (make_specifier_internal): Likewise.
9661
9662 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9663
9664         * lstream.h (struct lstream): Use max_align_t for trailing data.
9665         * specifier.h (struct Lisp_Specifier): Likewise.
9666
9667 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9668
9669         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9670         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9671         (CCL_SUSPEND): Likewise.
9672         (CCL_INVALID_CMD): Likewise.
9673         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9674         (ccl_driver): Likewise.
9675         (CCL_WRITE_CHAR): Macro hygiene.
9676         (CCL_WRITE_STRING): Macro hygiene.
9677
9678 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9679
9680         Port "portable" dumper to SunOS 4 and HP-UX.
9681         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9682         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9683         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9684
9685 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9686
9687         * lisp.h (ALIGNOF): A better definition for C++.
9688
9689 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9690
9691         Macro hygiene.
9692         Fix printf warnings: int format, long int arg.
9693         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9694         (PUSH_FAILURE_POINT): Use correct printf formats.
9695         (POP_FAILURE_POINT): Use correct printf formats.  
9696         Use do {...} while (0)
9697
9698 2001-01-20  Martin Buchholz <martin@xemacs.org>
9699
9700         * XEmacs 21.2.42 "Poseidon" is released.
9701
9702 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9703
9704         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9705
9706 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9707
9708         De-kludgify FIXED_TYPE free list frobbing.
9709         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9710         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9711         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9712         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9713         * alloc.c (LRECORD_FREE_P): New.
9714         * alloc.c (MARK_LRECORD_AS_FREE): New.
9715         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9716         * alloc.c (STRUCT_FREE_P): Deleted.
9717         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9718         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9719         * alloc.c (STRING_CHARS_FREE_P): New.
9720         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9721         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9722         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9723         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9724         * alloc.c (resize_string): Use new definitions.
9725         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9726         * alloc.c (verify_string_chars_integrity): Use new definitions.
9727         * alloc.c (compact_string_chars): Use new definitions.
9728         * alloc.c: Update monster comments.
9729         * lrecord.h (lrecord_type): Add some new lrecord types for
9730         alloc.c's use.
9731
9732 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9733
9734         Improve alignment hackery.
9735         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9736         (max_align_t): Moved from opaque.h - general purpose.
9737         (ALIGN_PTR): Use size_t, not long.
9738         * opaque.h (max_align_t): Move to lisp.h.
9739
9740 2001-01-18  Norbert Koch  <nk@LF.net>
9741
9742         * gui.h: Fix and add prototypes to fix build problems.
9743
9744 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9745
9746         temacs is going away, so `dump-temacs' is now a bad name.
9747         * .dbxrc (dump-temacs): Rename to `dmp'.
9748         * .gdbinit (dump-temacs): Rename to `dmp'.
9749
9750 2001-01-17  Andy Piper  <andy@xemacs.org>
9751
9752         * glyphs.c (print_image_instance): comment to make martin happy.
9753
9754         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9755         change.
9756
9757         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9758         activation.
9759         (mswindows_tab_control_redisplay): warning suppression.
9760
9761         * glyphs-widget.c (widget_update): re-write to cope with updated
9762         items.
9763         (widget_instantiate): use new gui_item functions.
9764         (tab_control_update): deleted.
9765         (progress_gauge_update): deleted.
9766         (image_instantiator_progress_guage): take out update reference.
9767         (image_instantiator_tree_view): ditto.
9768         (image_instantiator_tab_control): ditto.
9769
9770         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9771         Right the new way.
9772         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9773         return whether anything was changed.
9774         (update_gui_item_keywords): as it sounds.
9775
9776         * gui.h: declare widget_gui_parse_item_keywords.
9777
9778         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9779         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9780
9781 2001-01-17  Martin Buchholz <martin@xemacs.org>
9782
9783         * XEmacs 21.2.41 "Polyhymnia" is released.
9784
9785 2001-01-16  Didier Verna  <didier@xemacs.org>
9786
9787         * glyphs.c (image_instantiate): don't use fallbacks when
9788         instantiating a face's background pixmap by inheritance.
9789
9790 2001-01-14  Mike Sperber <mike@xemacs.org>
9791
9792         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9793         Conditionalize accordingly.
9794
9795 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9796
9797         * dumper.c (pdump_file_get): Fix a compiler warning.
9798
9799 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9800
9801         Make Purify happy when pdumping.
9802         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9803         iniitalizing all bits of new lisp object memory.
9804         * symbols.c (Fmake_local_variable): Likewise.
9805         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9806         * symbols.c (Fdefvaralias): Likewise.
9807         * mule-charset.c (vars_of_mule_charset): Likewise.
9808
9809 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9810         Add the `-nd' flag when running pre-dump operations under the debugger.
9811         * .dbxrc (run-temacs): Add `-nd'.
9812         * .dbxrc (update-elc): Likewise.
9813         * .dbxrc (dump-temacs): Likewise.
9814         * .gdbinit (run-temacs): Likewise.
9815         * .gdbinit (check-temacs): Likewise.
9816         * .gdbinit (update-elc): Likewise.
9817         * .gdbinit (dump-temacs): Likewise.
9818
9819 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9820
9821         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9822         export OBJECT_MODE=64
9823         configure --pdump --use-union-type=no
9824         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9825         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9826
9827         * miscplay.c (sndcnv8U_2mono):
9828         Avoid two uses of `++' in the same expression.
9829         Suppresses a GCC warning.
9830
9831 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9832
9833         Make sure future compilers don't miscompile alloc.c.
9834         * alloc.c:
9835         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9836         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9837
9838 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9839
9840         * dumper.c: A little post-pdump-rename comment fixup.
9841
9842 2001-01-09  Jerry James  <james@eecs.ku.edu>
9843
9844         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9845
9846 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9847
9848         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9849         script:
9850         #!/bin/sh
9851         replace_symbol () {
9852           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9853         }
9854
9855         replace_symbol pdump_wire_lists pdump_weak_object_chains
9856         replace_symbol pdump_wire_list dump_add_weak_object_chain
9857
9858         replace_symbol pdump_wires pdump_root_objects
9859         replace_symbol pdump_wire dump_add_root_object
9860
9861         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9862         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9863
9864         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9865         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9866         replace_symbol dumpstructinfo pdump_root_struct_ptr
9867         replace_symbol dumpstruct dump_add_root_struct_ptr
9868
9869         replace_symbol dumpopaque dump_add_opaque
9870         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9871         replace_symbol dumpopaqueinfos pdump_opaques
9872         replace_symbol dumpopaqueinfo pdump_opaque
9873
9874         replace_symbol nb_structdump nb_root_struct_ptrs
9875         replace_symbol nb_opaquedump nb_opaques
9876
9877         replace_symbol align_table pdump_align_table
9878         replace_symbol dump_header pdump_header
9879
9880         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9881         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9882
9883
9884 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9885
9886         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9887         optimizing bytecount_to_charcount().
9888
9889 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9890
9891         * config.h.in:
9892         (HAVE_DLFCN_H): Removed.
9893         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9894
9895 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9896
9897         Portable dumper maintainability improvements.
9898         * alloc.c (staticpro):
9899         * alloc.c (staticpro_nodump):
9900         * alloc.c (garbage_collect_1):
9901         * alloc.c (reinit_alloc_once_early):
9902         * alloc.c (init_alloc_once_early):
9903         * alloc.c: Move dumper functions to alloc.c.
9904         * dumper.c (pdump_backtrace):
9905         * dumper.c (pdump_dump_structs):
9906         * dumper.c (pdump_dump_opaques):
9907         * dumper.c (pdump_dump_rtables):
9908         * dumper.c (pdump_dump_wired):
9909         * dumper.c (pdump):
9910         * dumper.c (pdump_load_check):
9911         * dumper.c (pdump_load_finish):
9912         * dumper.c (pdump_file_unmap):
9913         * dumper.c (pdump_file_get):
9914         * dumper.c (pdump_resource_free):
9915         * dumper.c (pdump_resource_get):
9916         * dumper.c (pdump_file_free):
9917         * dumper.c (pdump_file_try):
9918         * dumper.c (pdump_load):
9919         Remove fixed size limits on staticpro(), staticpro_nodump(),
9920         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9921         Remove custom code for dumping lrecord_implementations_table - use
9922         dumpopaque instead.
9923         Remove (most of the) custom code for dumping staticpros - dump it
9924         like any other dynarr.
9925
9926         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9927         * dumper.c: Moved functions from alloc.c.
9928         * alloc.c (dumpstruct): Moved to dumper.c.
9929         * alloc.c (dumpopaque): Likewise.
9930         * alloc.c (pdump_wire): Likewise.
9931         * alloc.c (pdump_wire_list): Likewise.
9932
9933         * lisp.h (Dynarr_sizeof): New.
9934         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9935         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9936         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9937
9938         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9939         * lisp.h (dumpopaque): ditto.
9940         * lisp.h (pdump_wire): ditto.
9941         * lisp.h (pdump_wire_list): ditto.
9942
9943 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9944
9945         * make-src-depend (PrintPatternDeps):
9946         Use `sort' to make output independent of perl version.
9947
9948 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9949
9950         Port to Netbsd 1.5.
9951         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9952         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9953
9954 2001-01-03  Didier Verna  <didier@xemacs.org>
9955
9956         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9957         that `focus_frame' is alive before thinking of calling
9958         `redisplay_redraw_cursor' on it.
9959
9960 2001-01-08  Martin Buchholz <martin@xemacs.org>
9961
9962         * XEmacs 21.2.40 is released.
9963
9964 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9965
9966         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9967
9968 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9969
9970         * alloc.c (dbg_valmask): Make const.
9971         * alloc.c (dbg_typemask): Make const.
9972         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9973         * alloc.c (dbg_valbits): Make const.
9974         * alloc.c (dbg_gctypebits): Make const.
9975
9976 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9977
9978         * redisplay-x.c (x_bevel_area):
9979         redisplay.h (struct rune):
9980         Typo fixes in comments.
9981
9982 2001-01-05  Andy Piper  <andy@xemacs.org>
9983
9984         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9985         adjustment.
9986
9987         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9988
9989 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9990
9991         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9992
9993         * mule-ccl.c (stack_idx_of_map_multiple):
9994         Non const global data must not be initialized!
9995         Found by MIYASHITA Hisashi.
9996
9997 2001-01-02  Andy Piper  <andy@xemacs.org>
9998
9999         * frame.c (change_frame_size): make sure frame size is always
10000         marked as changed.
10001
10002         * glyphs.c (image_instance_layout): minor code reuse.
10003
10004         * window.c (Fcurrent_window_configuration): revert previous
10005         change.
10006
10007 2001-01-02  Martin Buchholz  <martin@xemacs.org>
10008
10009         * glyphs.h:
10010         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
10011
10012 2000-12-31  Andy Piper  <andy@xemacs.org>
10013
10014         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
10015         when widget gets unmapped.
10016
10017         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
10018         function. Make sure widgets losing focus don't just drop it.
10019         (handle_focus_event_1): record the widget with focus.
10020
10021 2000-12-31  Andy Piper  <andy@xemacs.org>
10022
10023         * window.c (allocate_window): use
10024         make_image_instance_cache_hash_table.
10025         (make_dummy_parent): ditto.
10026         (Fset_window_configuration): ditto.
10027
10028         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
10029
10030         * glyphs.c (process_image_string_instantiator): use
10031         INSTANTIATOR_TYPE.
10032         (get_image_instantiator_governing_domain): ditto.
10033         (normalize_image_instantiator): ditto.
10034         (instantiate_image_instantiator): ditto.
10035         (make_image_instance_1): ditto.
10036         (image_instantiate): ditto. Key on glyph *and* instantiator type.
10037         (instantiator_eq_equal): new function for use with instance hash
10038         tables.
10039         (instantiator_eq_hash): ditto.
10040         (make_image_instance_cache_hash_table): create a suitable hash
10041         table for storing image instances.
10042
10043         * elhash.h (hash_table_weakness): new internal weakness type
10044         HASH_TABLE_KEY_CAR_VALUE_WEAK.
10045         declare new functions.
10046
10047         * elhash.c (finish_marking_weak_hash_tables): introduce yet
10048         another weakness type for glyphs.
10049         (make_standard_lisp_hash_table): new function split out from
10050         make_general_lisp_hash_table.
10051         (make_lisp_hash_table): call make_standard_lisp_hash_table.
10052         (hash_table_instantiate): ditto.
10053         (Fmake_hash_table): ditto.
10054
10055 2000-12-31  Martin Buchholz <martin@xemacs.org>
10056
10057         * XEmacs 21.2.39 is released.
10058
10059 2000-12-29  Andy Piper  <andy@xemacs.org>
10060
10061         * menubar.c (menubar_visible_p_changed): signal the frame changed.
10062
10063         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
10064         the frame has changed so that we pick up geometry changes such as
10065         menubar visibility.
10066
10067 2000-12-28  Andy Piper  <andy@xemacs.org>
10068
10069         * lastfile.c (my_ebss): make a char array so we can pad the
10070         bss. Fixes cygwin unexec.
10071
10072         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
10073
10074 2000-12-26  Andy Piper  <andy@xemacs.org>
10075
10076         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
10077         comments and try and be more precise about a non-/SIGIO world.
10078         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
10079         SIGIO.
10080
10081         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
10082         we don't normalize to zero width or height.
10083
10084 2000-12-24  Andy Piper  <andy@xemacs.org>
10085
10086         * Makefile.in.in (ldflags): add -mwindows when appropriate.
10087
10088 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
10089
10090         * s/sco5.h: SCO 5 has pty support.
10091
10092 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
10093
10094         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
10095         input-method-xlib.c contains whole contents of input-method-xfs.c,
10096         so we can use input-method-xlib.c's code for USE_XFONTSET
10097         using #ifdefs.
10098         * input-method-xfs.c: removed.
10099
10100 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
10101
10102         * file-coding.h (enum coding_category_type): reorder enumerators to
10103         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
10104         (now one greater than largest real coding_category_type enumerator).
10105         * file-coding.c (coding_category_symbol, coding_category_by_priority,
10106         coding_category_system, fcd_descriptihon_1, decode_coding_category,
10107         Fcoding_category_list, Fset_coding_priority_list,
10108         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
10109         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
10110
10111 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10112
10113         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
10114         * redisplay-output.c (redisplay_output_window): Clear top of window
10115         when face is changed.
10116         * redisplay-x.c (x_redraw_exposed_window): Call
10117         redisplay_clear_top_of_window.
10118         * redisplay.h: Publish redisplay_clear_top_of_window.
10119
10120 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10121
10122         * buffer.c (Fkill_buffer): Map over all devices.
10123         * window.c (window_loop): Remove UNSHOW_BUFFER code.
10124         (list_windows): New function.
10125         (list_all_windows): Ditto.
10126         (Freplace_buffer_in_windows): Use them.
10127
10128 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
10129
10130         * database.c (berkdb_subtype): Recognize new subtype `queue'.
10131         (Fopen_database): Use `db_create' instead of `db_open'.
10132         (syms_of_database): Initialize Qqueue.
10133
10134 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10135
10136         * buffer.c (common_init_complex_vars_of_buffer): Initialize
10137         buffer_local_face_property.
10138         * buffer.h (struct buffer): New member buffer_local_face_property.
10139         * window.c (Fset_window_buffer):  Mark window's face as changed
10140         when buffer has buffer local face.
10141         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
10142         * objects.c (color_after_change): Set buffer_local_face_property
10143         when locale of face specifier is buffer.
10144         * objects.c (font_after_change): Ditto.
10145         * objects.c (face_boolean_after_change): Ditto.
10146         * glyphs.c (image_after_change): Ditto.
10147
10148 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10149
10150         * nt.c (mswindows_fstat): Report file permissions, volume serial
10151         number, etc. Code adapted from FSF Emacs 20.7.
10152
10153 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10154
10155         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
10156         of stat when we don't have symbolic links, to make sure
10157         mswindows_stat is called on mswindows.
10158
10159 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
10160
10161         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
10162
10163 2000-12-12  Martin Buchholz  <martin@xemacs.org>
10164
10165         * doprnt.c (emacs_doprnt_1): More printing fixes.
10166         Make printing of numbers compatible with libc and FSF Emacs.
10167         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
10168         Use the system printf to do most of the hard work of formatting,
10169         instead of doprnt_1().
10170         Calculate memory to allocate for format string.
10171         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
10172         (doprnt_1): Cleaner code and documentation.
10173
10174 2000-12-01  Jerry James  <james@eecs.ukans.edu>
10175
10176         * Makefile.in.in: Use the loop variable to install headers.
10177
10178 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10179
10180         * window.c (Fsplit_window): Don't invalidate face cache.
10181
10182 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10183
10184         * minibuf.c (Fall_completions): Undo the previous change
10185         which removed checking elements start with space.
10186
10187 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10188
10189         * mule-canna.c: Didier suppression.
10190
10191 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10192
10193         * mule-canna.c: rename static unsigned char buf[] to key_buffer
10194         (warning suppression).  Add English comment translations.
10195
10196 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10197
10198         * unexelfsgi.c (unexec): Better test for mmap failure.
10199
10200 2000-12-05  Martin Buchholz <martin@xemacs.org>
10201
10202         * XEmacs 21.2.38 is released.
10203
10204 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10205
10206         * redisplay.c (bar-cursor): Make a user variable.
10207
10208         * symsinit.h: Add init_postgresql_from_environment.
10209
10210 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10211
10212         * regex.c: Convert to clean C.
10213
10214 2000-12-05  Dan Holmsand  <dan@eyebee.com>
10215
10216         * realpath.c:
10217         Don't #include sysfile.h. Revert to duplicating PATH_MAX
10218         initialization.
10219         (sys_readlink): renamed to system_readlink to avoid conflict with
10220         the other sys_readlink.
10221
10222 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
10223
10224         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
10225
10226 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
10227
10228         * postgresql.c (init_postgresql_from_environment): new function.
10229         (vars_of_postgresql): Move code initializing Lisp variables out and
10230         into init_postgresql_from_environment.
10231         emacs.c (main_1): Call init_postgresql_from_environment if and only
10232         if running a dumped XEmacs.
10233
10234 2000-08-31  Dan Holmsand  <dan@eyebee.com>
10235
10236         * buffer.c: Make find-file-compare-truenames default to true on
10237         windows.
10238
10239         * realpath.c (win32_abs_start):
10240         (cygwin_readlink):
10241         (win32_readlink): New functions.
10242         (xrealpath): Return really real filenames on windows.
10243
10244         * fileio.c (Ffile_truename): Make file-truename work on windows.
10245
10246 2000-11-29  Didier Verna  <didier@xemacs.org>
10247
10248         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
10249         * faces.c (update_face_cachel_data): use it.
10250         * faces.c (add_face_cachel): use it. Complete background pixmap
10251         frobbing in face cache if `update_face_cachel_data' has not done so.
10252
10253 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
10254
10255         * search.c (string_match_1): Don't set last_thing_searched
10256         when search failed.
10257
10258 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
10259
10260         * buffer.c: Include casetab.h
10261         (common_init_complex_vars_of_buffer): Use new case-table object.
10262         * buffer.h: Include casetab.h
10263         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
10264         (DOWNCASE_TABLE_OF): Ditto.
10265         * bufslots.h: Remove char-tables and add case-table.
10266         * casetab.c: Include casetab.h
10267         (CASE_TABLE_P): Removed.
10268         (mark_case_table): New function.
10269         (allocate_case_table): New function.
10270         (Fcase_table_p): Use new case-table.
10271         (case_table_char): New function.
10272         (Fget_case_table): Ditto.
10273         (Fput_case_table): Ditto.
10274         (Fput_case_table_pair): Ditto.
10275         (Fcopy_case_table): Ditto.
10276         (Fcurrent_case_table): Return case-table.
10277         (Fstandard_case_table): Return case-table.
10278         (Fset_case_table): Fix doc-string.
10279         (set_case_table): Use case-table
10280         (syms_of_casetab): DEFSUBR new functions.
10281         (complex_vars_of_casetab): Set up standard case-table.
10282         * casetab.h: New file.
10283         * editfns.c: Include casetab.h
10284         (Fcompare_buffer_substrings): Use case-table.
10285         * inline.c: Include casetab.h
10286         * lisp.h: Remove bogus extern.
10287         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
10288         * search.c: Include casetab.h
10289         (TRANSLATE_ASCII): Removed.
10290         (TRANSLATE): Unconditionally translate character.
10291         (looking_at_1): Use case-table.
10292         (string_match_1): Ditto.
10293         (fast_string_match): Ditto.
10294         (search_command): Ditto.
10295         (search_buffer): Separate boyer_moore.  Check whether
10296         boyer_moore is possible.
10297         (simple_search): New function.
10298         (boyer_moore): Separated from search_buffer. Translate char.
10299
10300 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10301
10302         * regex.c (RE_TR_ASCII): Removed.
10303         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
10304         (PATFETCH): Call PATFETCH_RAW.
10305         (PATFETCH_RAW): Fetch Emchar.
10306         (PATUNFETCH): Decrement charptr.
10307         (GET_BUFFER_SPACE): Rename b to buf_end.
10308         (BUF_PUSH): Ditto.
10309         (BUF_PUSH_2): Ditto.
10310         (BUF_PUSH_3): Ditto.
10311         (EXTEND_BUFFER): Ditto.
10312         (SET_LIST_BIT): Ditto.
10313         (regex_compile): Ditto.  Translate non ASCII char.
10314         (compile_range): Ditto.
10315         (re_search_2): Ditto.
10316         (re_match_2_internal): Compare Emchar.
10317         (bcmp_translate): Ditto.
10318
10319 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
10320
10321         * lisp.h (basic char/int typedefs):  comment improvement.
10322
10323 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
10324
10325         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
10326         unstomp inhibit_site_lisp.  Improve comments.
10327
10328 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
10329
10330         * mule-charset.c (Fcharset_property):  improve type checking, comments.
10331
10332 2000-11-28  Andy Piper  <andy@xemacs.org>
10333
10334         * redisplay-output.c (redisplay_output_subwindow): make sure we do
10335         clipped display for windows in the gutter also.
10336         (redisplay_display_boxes_in_window_p): change semantics of return
10337         codes to be more intuitive.
10338
10339         * gutter.h: declare display_boxes_in_gutter_p.
10340
10341         * gutter.c (display_boxes_in_gutter_p): new function for
10342         redisplay.
10343
10344 2000-11-22  Andy Piper  <andy@xemacs.org>
10345
10346         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10347         autodetect domain.
10348
10349 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10350
10351         * callproc.c (Fold_call_process_internal):
10352         * gpm.c (Freceive_gpm_event):
10353         (tty_get_foreign_selection): Might be just warning supression.
10354         * fileio.c (Fwrite_region_internal):
10355         (Fset_visited_file_modtime):
10356         * keymap.c (event_matches_key_specifier_p):
10357         Initialize GCPROed variable.
10358
10359         * menubar-x.c (command_builder_find_menu_accelerator):
10360         Initialize before use.
10361
10362 2000-11-23  Andy Piper  <andy@xemacs.org>
10363
10364         * unexcw.c (unexec): make the resulting executable executable.
10365
10366 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10367
10368         * doc.c (get_doc_string):
10369         Use size_t, not int, for result of XSTRING_LENGTH.
10370
10371         * cmds.c (Fdelete_char):
10372         * cmds.c (Fpoint_at_eol):
10373         * cmds.c (Fself_insert_command):
10374         Use EMACS_INT, not int, for result of XINT.
10375         Someday, someone will want to insert more than 2**31 identical characters.
10376
10377         * cmds.c (Fdelete_char):
10378         * cmds.c (Fdelete_backward_char):
10379         * syntax.c (Fforward_word):
10380         * syntax.c (Fforward_comment):
10381         Make COUNT argument optional, for consistency with forward-char et al.
10382
10383 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10384
10385         * lisp.h:
10386         * print.c (long_to_string):
10387         Return a useful value: the pointer at end of data written.
10388
10389         * doprnt.c:
10390         Use `static const char * const' for constant strings.
10391         (union printf_arg): Delete `i', `ui' members.
10392         (get_doprnt_args):
10393         (emacs_doprnt_1):
10394         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10395         Do all printf-ing via the `l' specifier.
10396         Use EMACS_INT instead of int.
10397         Optimize.
10398
10399 2000-11-20  Didier Verna  <didier@xemacs.org>
10400
10401         * faces.c (update_face_cachel_data): don't frob the background
10402         pixmap when the window is being created. The face is needed but
10403         does not exist yet.
10404
10405 2000-11-20  Andy Piper  <andy@xemacs.org>
10406
10407         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10408         messing with a debug environment.
10409
10410 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10411
10412         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10413
10414 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10415
10416         * casetab.c (Fcase_table_p): Fix compile error and crash.
10417
10418 2000-11-18  Philip Aston  <philipa@mail.com>
10419
10420         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10421
10422 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10423
10424         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10425         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10426
10427 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10428
10429         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10430         * unexelf.c: Use HAVE_ELF_H.
10431         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10432         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10433         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10434         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10435         for testing.
10436         So this is an unexelfsgi.c from a different line of development.
10437
10438 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10439
10440         * regex.c (RE_TR_ASCII): New function.
10441         (RE_TRANSLATE): Call it.
10442
10443 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10444
10445         * buffer.h (TRT_TABLE_OF): Remove assert.
10446         (IN_TRT_TABLE_DOMAIN): Removed.
10447
10448 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10449
10450         * free-hook.c (log_gcpro):
10451         (show_gcprohist): Add support for GCPRO5.
10452
10453 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10454
10455         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10456
10457 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10458
10459         * symeval.h: Declare flush_all_buffer_local_cache.
10460
10461         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10462         (flush_buffer_local_cache): Added.
10463         (flush_all_buffer_local_cache): Added.
10464
10465         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10466
10467         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10468         (pdump_dump_data): Ditto.
10469         (pdump_reloc_one): Ditto.
10470         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10471         before dumping.
10472
10473
10474 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10475
10476         * buffer.c: Remove if 0'ed entry.
10477         * buffer.h: Rewrite TRT to use char-table.
10478         * bufslots.h: Remove mirror tables.
10479         * casetab.c: Remove mirror tables.
10480         (CASE_TABLE_P): New macro.
10481         (Fcase_table_p): Element of a case table is string or char-table.
10482         (make_mirror_trt_table): Removed.
10483         (set_case_table): Setup char-table from strings for backward
10484         compatibility.
10485         * dired.c (Fdirectory_files):
10486         * dired-msw.c: (mswindows_get_files):
10487         * lisp.h: Change prototype of re_pattern_buffer.
10488         * regex.c: (RE_TRANSLATE): New macro.
10489         (TRANSLATE_P): Ditto.
10490         Change translate to type RE_TRANSLATE_TYPE.
10491         * regex.h: Define RE_TRANSLATE_TYPE
10492         * search.c (TRANSLATE): New macro.
10493         (TRANSLATE_ASCII): New macro.
10494         Translate table is changed to Lisp_Object.
10495         (signal_failure): Inhibit return.
10496
10497 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10498
10499         * device-msw.c:
10500         * eldap.c:
10501         * event-Xt.c:
10502         * event-stream.c:
10503         * print.c:
10504         Do UNGCPRO before return.
10505
10506 2000-11-14  Martin Buchholz <martin@xemacs.org>
10507
10508         * XEmacs 21.2.37 is released.
10509
10510 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10511
10512         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10513         Add comments about discarded return value.
10514
10515 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10516
10517         * callint.c:
10518         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10519
10520 2000-10-27  Andy Piper  <andy@xemacs.org>
10521
10522         * gutter.c (Fset_default_gutter_position): default left and right
10523         gutters to visible.
10524         (calculate_gutter_size): calculate resonable heuristic for left
10525         and right gutter sizes.
10526         (specifier_vars_of_gutter): change left and right gutter sizes to
10527         autodetect.
10528         (calculate_gutter_size_from_display_lines): new function.
10529         (output_gutter): check for resizing on left and right gutters.
10530         (clear_gutter): don't special case top and left gutters.
10531         (specifier_vars_of_gutter): use new signature for
10532         set_specifier_caching.
10533
10534         * glyphs-x.c (x_redisplay_widget): spelling fix.
10535         * glyphs.c (specifier_vars_of_glyphs):
10536         * menubar.c (specifier_vars_of_menubar):
10537         * redisplay.c (specifier_vars_of_redisplay):
10538         * toolbar.c (specifier_vars_of_toolbar):
10539         * window.c (specifier_vars_of_window):
10540         * scrollbar.c (specifier_vars_of_scrollbar):
10541         (complex_vars_of_scrollbar): use new signature for
10542         set_specifier_caching.
10543
10544         * specifier.c (set_specifier_caching): include recompute flag.
10545         (recompute_one_cached_specifier_in_window): always recompute if
10546         flag set.
10547         (recompute_one_cached_specifier_in_frame): ditto.
10548
10549         * specifier.h (struct specifier_caching): add recompute flag.
10550
10551 2000-10-24  Andy Piper  <andy@xemacs.org>
10552
10553         * unexcw.c (copy_executable_and_dump_data_section): add new
10554         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10555         5.0 happy.
10556
10557 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10558
10559         * console-x.h (x_device): New member modifier_release_time.
10560         * event-Xt.c (x_handle_sticky_modifiers):
10561         Bound interval modifier keys are sticky.
10562         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10563         * events.h: extern it.
10564
10565 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10566
10567         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10568
10569 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10570
10571         * event-stream.c (execute_command_event): Preserve current_events
10572         and the like when event is misc-user-event.
10573         Inhibit quit during the call to maybe_echo_keys.
10574
10575 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10576
10577         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10578         symlink when buffer is killed.
10579         (inhibit_clash_detection): New variable.
10580
10581 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10582
10583         * console.c (Fset_input_method): Trigger redisplay on tty.
10584
10585 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10586
10587         * process.c (Fprocess_status): Revert to previous behavior:
10588         (process-status "nosuchprocess") ==> nil
10589
10590 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10591
10592         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10593         Work around another GCC 2.95.2 optimizer bug.
10594
10595 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10596
10597         * process.c (Fget_process): Use LIST_LOOP_2.
10598         (kill_buffer_processes): Use LIST_LOOP_2.
10599
10600         * minibuf.c (Fall_completions):
10601         Delete old non-functional code for FSF fourth argument.
10602
10603         * frame.c (frame_matches_frame_spec):
10604         Renamed from `frame_matches_frametype'.  Update all callers.
10605         (device_matches_device_spec):
10606         Renamed from 'device_matches_console_spec'.  Update all callers.
10607
10608         * doc.c (Fsubstitute_command_keys):
10609         Remove buffer overflow crash.  Small code cleanups.
10610
10611         * casetab.c (check_case_table): Simpler code.
10612
10613         * window.c (Freplace_buffer_in_windows):
10614         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10615         (and similar implementation) as Fdelete_windows_on.
10616         Update all callers.
10617
10618         * alloc.c (Fmake_list):
10619         * alloc.c (make_vector):
10620         * alloc.c (Fmake_vector):
10621         * alloc.c (make_bit_vector):
10622         * alloc.c (Fmake_bit_vector):
10623         * alloc.c (Fbit_vector):
10624         * alloc.c (Fmake_string):
10625         * alloc.c (Fpurecopy):
10626         * alloc.c (Fmemory_limit):
10627         * buffer.c:
10628         * buffer.c (Fget_buffer):
10629         * buffer.c (Fkill_buffer):
10630         * buffer.c (complex_vars_of_buffer):
10631         * bytecode.c (Fcompiled_function_stack_depth):
10632         * callint.c (Fprefix_numeric_value):
10633         * event-stream.c:
10634         * event-stream.c (Fread_key_sequence):
10635         * casetab.c:
10636         * casetab.c (Fcase_table_p):
10637         * casetab.c (check_case_table):
10638         * casetab.c (Fset_case_table):
10639         * casetab.c (Fset_standard_case_table):
10640         * chartab.c:
10641         * chartab.c (Fchar_table_type):
10642         * chartab.c (Freset_char_table):
10643         * chartab.c (Fget_char_table):
10644         * chartab.c (Fget_range_char_table):
10645         * chartab.c (Fput_char_table):
10646         * chartab.c (Fmap_char_table):
10647         * chartab.c (Fcategory_table_p):
10648         * chartab.c (Fcheck_category_at):
10649         * chartab.c (Fchar_in_category_p):
10650         * chartab.c (Fcategory_table):
10651         * chartab.c (Fcopy_category_table):
10652         * chartab.c (Fset_category_table):
10653         * chartab.c (Fcategory_designator_p):
10654         * chartab.c (Fcategory_table_value_p):
10655         * cmds.c (Fdelete_char):
10656         * cmds.c (Fdelete_backward_char):
10657         * cmds.c (Fself_insert_command):
10658         * cmds.c (Fself_insert_internal):
10659         * console.c (Fvalid_console_type_p):
10660         * console.c (Fcdfw_console):
10661         * console.c (Fconsole_type):
10662         * console.c (Fconsole_name):
10663         * console.c (Fconsole_device_list):
10664         * console.c (Fconsole_on_window_system_p):
10665         * data.c:
10666         * data.c (Feq):
10667         * data.c (Fold_eq):
10668         * data.c (Fsubr_interactive):
10669         * data.c (Fchar_to_int):
10670         * data.c (Fint_to_char):
10671         * data.c (Fsetcar):
10672         * data.c (Fsetcdr):
10673         * data.c (Fnumber_to_string):
10674         * data.c (Fstring_to_number):
10675         * data.c (Frem):
10676         * database.c (mark_database):
10677         * database.c (finalize_database):
10678         * database.c (Fdatabase_live_p):
10679         * database.c (Fdatabasep):
10680         * device-x.c (Fx_get_resource):
10681         * device.c (Fdfw_device):
10682         * dired.c:
10683         * dired.c (Ffile_name_completion):
10684         * dired.c (Ffile_name_all_completions):
10685         * dired.c (Fuser_name_completion):
10686         * dired.c (Fuser_name_completion_1):
10687         * dired.c (Fuser_name_all_completions):
10688         * doc.c (Fdocumentation):
10689         * doc.c (Fdocumentation_property):
10690         * doc.c (Fsubstitute_command_keys):
10691         * editfns.c:
10692         * editfns.c (Fchar_to_string):
10693         * editfns.c (Fstring_to_char):
10694         * editfns.c (Ftemp_directory):
10695         * editfns.c (Finsert_char):
10696         * editfns.c (Fbuffer_substring_no_properties):
10697         * editfns.c (Fnarrow_to_region):
10698         * editfns.c (Fchar_equal):
10699         * editfns.c (Fchar_Equal):
10700         * editfns.c (Ftranspose_regions):
10701         * emacs.c (Fdump_emacs):
10702         * eval.c (Fthrow):
10703         * eval.c (Fcommand_execute):
10704         * eval.c (Fautoload):
10705         * eval.c (Fbacktrace):
10706         * eval.c (Fbacktrace_frame):
10707         * events.c:
10708         * events.c (Fcopy_event):
10709         * events.c (Fcharacter_to_event):
10710         * events.c (Fevent_button):
10711         * events.c (Fevent_process):
10712         * extents.c:
10713         * extents.c (Fnext_extent_change):
10714         * extents.c (Fextent_property):
10715         * faces.c (Ffacep):
10716         * faces.c (Fmake_face):
10717         * file-coding.c:
10718         * file-coding.c (Fencode_shift_jis_char):
10719         * file-coding.c (Fencode_big5_char):
10720         * fileio.c (Ffile_name_directory):
10721         * fileio.c (Ffile_name_nondirectory):
10722         * fileio.c (Ffile_name_as_directory):
10723         * fileio.c (Fdirectory_file_name):
10724         * fileio.c (Ffile_truename):
10725         * fileio.c (Fsubstitute_in_file_name):
10726         * fileio.c (Ffile_modes):
10727         * fileio.c (Fset_file_modes):
10728         * fileio.c (Fset_default_file_modes):
10729         * fileio.c (Fverify_visited_file_modtime):
10730         * floatfns.c (Facos):
10731         * floatfns.c (Fasin):
10732         * floatfns.c (Fatan):
10733         * floatfns.c (Fcos):
10734         * floatfns.c (Fsin):
10735         * floatfns.c (Ftan):
10736         * floatfns.c (Fbessel_j0):
10737         * floatfns.c (Fbessel_j1):
10738         * floatfns.c (Fbessel_jn):
10739         * floatfns.c (Fbessel_y0):
10740         * floatfns.c (Fbessel_y1):
10741         * floatfns.c (Fbessel_yn):
10742         * floatfns.c (Ferf):
10743         * floatfns.c (Ferfc):
10744         * floatfns.c (Flog_gamma):
10745         * floatfns.c (Fexp):
10746         * floatfns.c (Fexpt):
10747         * floatfns.c (Flog):
10748         * floatfns.c (Flog10):
10749         * floatfns.c (Fsqrt):
10750         * floatfns.c (Fcube_root):
10751         * floatfns.c (Facosh):
10752         * floatfns.c (Fasinh):
10753         * floatfns.c (Fatanh):
10754         * floatfns.c (Fcosh):
10755         * floatfns.c (Fsinh):
10756         * floatfns.c (Ftanh):
10757         * floatfns.c (Fabs):
10758         * floatfns.c (Ffloat):
10759         * floatfns.c (Flogb):
10760         * floatfns.c (Fceiling):
10761         * floatfns.c (Ffloor):
10762         * floatfns.c (Fround):
10763         * floatfns.c (Ftruncate):
10764         * floatfns.c (Ffceiling):
10765         * floatfns.c (Fffloor):
10766         * floatfns.c (Ffround):
10767         * floatfns.c (Fftruncate):
10768         * fns.c (Fstring_equal):
10769         * fns.c (Fstring_lessp):
10770         * fns.c (concat2):
10771         * fns.c (concat3):
10772         * fns.c (vconcat2):
10773         * fns.c (vconcat3):
10774         * fns.c (Fsubstring):
10775         * fns.c (Fassoc):
10776         * fns.c (Fold_assoc):
10777         * fns.c (assoc_no_quit):
10778         * fns.c (Fassq):
10779         * fns.c (Fold_assq):
10780         * fns.c (assq_no_quit):
10781         * fns.c (Frassoc):
10782         * fns.c (Fold_rassoc):
10783         * fns.c (Frassq):
10784         * fns.c (Fold_rassq):
10785         * fns.c (rassq_no_quit):
10786         * fns.c (Fremassoc):
10787         * fns.c (remassoc_no_quit):
10788         * fns.c (Fremassq):
10789         * fns.c (remassq_no_quit):
10790         * fns.c (Fremrassoc):
10791         * fns.c (Fremrassq):
10792         * fns.c (remrassq_no_quit):
10793         * fns.c (Fsort):
10794         * fns.c (Fplist_get):
10795         * fns.c (Fplist_put):
10796         * fns.c (Fplist_remprop):
10797         * fns.c (Fplist_member):
10798         * fns.c (Flax_plist_get):
10799         * fns.c (Flax_plist_put):
10800         * fns.c (Flax_plist_remprop):
10801         * fns.c (Flax_plist_member):
10802         * fns.c (Fequal):
10803         * fns.c (Fold_equal):
10804         * fns.c (Frequire):
10805         * fns.c (Fbase64_encode_region):
10806         * fns.c (Fbase64_encode_string):
10807         * fns.c (Fbase64_decode_region):
10808         * frame.c:
10809         * frame.c (frame_matches_frame_spec):
10810         * frame.c (device_matches_device_spec):
10811         * frame.c (next_frame):
10812         * frame.c (previous_frame):
10813         * frame.c (Fnext_frame):
10814         * frame.c (Fprevious_frame):
10815         * frame.c (Fframe_property):
10816         * frame.c (Fset_frame_height):
10817         * frame.c (Fset_frame_size):
10818         * frame.h:
10819         * glyphs.c:
10820         * glyphs.c (if):
10821         * glyphs.c (decode_error_behavior_flag):
10822         * glyphs.c (Fmake_image_instance):
10823         * indent.c (Findent_to):
10824         * intl.c (Fignore_defer_gettext):
10825         * keymap.c (Fkeymapp):
10826         * keymap.c (Flookup_key):
10827         * lread.c:
10828         * lread.c (Fload_internal):
10829         * lread.c (Feval_buffer):
10830         * lread.c (Feval_region):
10831         * macros.c (Fexecute_kbd_macro):
10832         * marker.c (set_marker_internal):
10833         * marker.c (Fset_marker):
10834         * marker.c (set_marker_restricted):
10835         * marker.c (Fcopy_marker):
10836         * marker.c (noseeum_copy_marker):
10837         * menubar.c:
10838         * menubar.c (Fpopup_menu):
10839         * minibuf.c:
10840         * mule-charset.c (Fcharset_name):
10841         * mule-charset.c (Fchar_charset):
10842         * mule-charset.c (Fchar_octet):
10843         * mule-charset.c (Fsplit_char):
10844         * mule-wnnfns.c (Fwnn_open):
10845         * mule-wnnfns.c (Fwnn_dict_comment):
10846         * mule-wnnfns.c (Fwnn_quit_henkan):
10847         * mule-wnnfns.c (Fwnn_word_toroku):
10848         * mule-wnnfns.c (Fwnn_word_sakujo):
10849         * mule-wnnfns.c (Fwnn_word_use):
10850         * mule-wnnfns.c (Fwnn_hindo_set):
10851         * objects.c:
10852         * objects.c (Fmake_color_instance):
10853         * objects.c (Fmake_font_instance):
10854         * print.c (Fwrite_char):
10855         * process.c:
10856         * process.c (mark_process):
10857         * process.c (print_process):
10858         * process.c (get_process_from_usid):
10859         * process.c (Fprocessp):
10860         * process.c (Fprocess_live_p):
10861         * process.c (Fget_process):
10862         * process.c (Fget_buffer_process):
10863         * process.c (get_process):
10864         * process.c (Fprocess_id):
10865         * process.c (Fprocess_name):
10866         * process.c (Fprocess_command):
10867         * process.c (init_process_io_handles):
10868         * process.c (start_process_unwind):
10869         * process.c (Fstart_process_internal):
10870         * process.c (Fopen_multicast_group_internal):
10871         * process.c (Fset_process_window_size):
10872         * process.c (read_process_output):
10873         * process.c (send_process):
10874         * process.c (Fprocess_tty_name):
10875         * process.c (Fset_process_buffer):
10876         * process.c (Fprocess_buffer):
10877         * process.c (Fprocess_mark):
10878         * process.c (set_process_filter):
10879         * process.c (Fset_process_filter):
10880         * process.c (Fprocess_filter):
10881         * process.c (Fprocess_send_region):
10882         * process.c (Fprocess_send_string):
10883         * process.c (exec_sentinel):
10884         * process.c (Fset_process_sentinel):
10885         * process.c (Fprocess_sentinel):
10886         * process.c (status_notify):
10887         * process.c (Fprocess_status):
10888         * process.c (Fprocess_exit_status):
10889         * process.c (process_send_signal):
10890         * process.c (Fprocess_send_eof):
10891         * process.c (deactivate_process):
10892         * process.c (remove_process):
10893         * process.c (Fdelete_process):
10894         * process.c (kill_buffer_processes):
10895         * process.c (Fprocess_kill_without_query):
10896         * process.c (Fprocess_kill_without_query_p):
10897         * rangetab.c:
10898         * rangetab.c (Fget_range_table):
10899         * rangetab.c (Fput_range_table):
10900         * rangetab.c (Fremove_range_table):
10901         * rangetab.c (Fclear_range_table):
10902         * search.c:
10903         * search.c (Fskip_chars_forward):
10904         * search.c (Fskip_chars_backward):
10905         * search.c (Fskip_syntax_forward):
10906         * search.c (Fskip_syntax_backward):
10907         * search.c (search_command):
10908         * search.c (Freplace_match):
10909         * search.c (Fregexp_quote):
10910         * select.c (Fown_selection_internal):
10911         * select.c (Fselection_owner_p):
10912         * select.c (Fselection_exists_p):
10913         * select.c (Fget_selection_internal):
10914         * specifier.c:
10915         * symbols.c:
10916         * symbols.c (Fintern):
10917         * symbols.c (Fintern_soft):
10918         * symbols.c (Funintern):
10919         * symbols.c (Fapropos_internal):
10920         * symbols.c (Fset_default):
10921         * syntax.c:
10922         * syntax.c (Fsyntax_table_p):
10923         * syntax.c (Fcopy_syntax_table):
10924         * syntax.c (Fset_syntax_table):
10925         * syntax.c (Fchar_syntax):
10926         * syntax.c (syntax_match):
10927         * syntax.c (Fmatching_paren):
10928         * syntax.c (Fforward_word):
10929         * syntax.c (scan_lists):
10930         * syntax.c (Fscan_lists):
10931         * syntax.c (Fscan_sexps):
10932         * syntax.c (Fparse_partial_sexp):
10933         * toolbar.c (Fcheck_toolbar_button_syntax):
10934         * tooltalk.doc:
10935         * window.c:
10936         * window.c (Fwindowp):
10937         * window.c (Fwindow_live_p):
10938         * window.c (Fwindow_point):
10939         * window.c (Fdelete_window):
10940         * window.c (Fnext_window):
10941         * window.c (Fprevious_window):
10942         * window.c (Fother_window):
10943         * window.c (window_loop):
10944         * window.c (Fget_lru_window):
10945         * window.c (Fsplit_window):
10946         * window.c (Fenlarge_window):
10947         * window.c (Fenlarge_window_pixels):
10948         * window.c (Fshrink_window):
10949         * window.c (Fshrink_window_pixels):
10950         * window.c (change_window_height):
10951         * window.c (Fwindow_configuration_p):
10952         * window.c (Fcurrent_window_configuration):
10953         * window.h:
10954         * casefiddle.c (casify_object):
10955         * casefiddle.c (Fupcase):
10956         * casefiddle.c (Fdowncase):
10957         * casefiddle.c (Fcapitalize):
10958         * casefiddle.c (Fupcase_initials):
10959         * casefiddle.c (casify_region_internal):
10960         * casefiddle.c (casify_region):
10961         * casefiddle.c (Fupcase_region):
10962         * casefiddle.c (Fdowncase_region):
10963         * casefiddle.c (Fcapitalize_region):
10964         * casefiddle.c (Fupcase_initials_region):
10965         * casefiddle.c (Fupcase_word):
10966         * casefiddle.c (Fdowncase_word):
10967         * casefiddle.c (Fcapitalize_word):
10968         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10969         Replace 0 with '\0' when working with bytes.
10970         Replace initial "(" with "\(" in docstrings.
10971
10972 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10973
10974         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10975
10976         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10977
10978 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10979
10980         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10981
10982 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10983
10984         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10985         correctly.
10986
10987 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10988
10989         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10990         (inhibit_auto_save_session): New variable.
10991         (vars_of_fileio): Declare and initialize them.
10992         * fileio.c (Fdo_auto_save): Don't create session file if
10993         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10994
10995 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10996
10997         * sgiplay.c (play_internal): C++ compilability.
10998         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10999         * callproc.c (Fold_call_process_internal):
11000         Remove unused vars `env', `first'.
11001         * scrollbar.c (update_scrollbar_instance):
11002         #### unused var `current_window'.
11003         * redisplay-tty.c: Put currently unused vars insert_mode_on,
11004         etc. within #ifdef NOT_YET.
11005         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
11006         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
11007         * specifier.c (specifier_instance):
11008         #### unused var `tag'.
11009         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
11010
11011 2000-10-27  Martin Buchholz  <martin@xemacs.org>
11012
11013         * fns.c (Fbutlast):
11014         * fns.c (list_sort):
11015         * fns.c (Ffillarray):
11016         * fns.c (bytecode_nconc2):
11017         * fns.c (Fnconc):
11018         * fns.c (mapcar1):
11019         * fns.c (Fmapconcat):
11020         Be pedantically 64-bit correct.  For the time when someone will
11021         want to have a list with length > 2**32.
11022
11023         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11024         Work around MIPSpro compiler bug.
11025
11026         * process-unix.c (unix_kill_child_process): Add snarky comment.
11027         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
11028
11029         * config.h.in: Oops, _getpt ==> _getpty
11030
11031 2000-10-26  Martin Buchholz  <martin@xemacs.org>
11032
11033         * config.h.in:
11034         * regex.c:
11035         Use void*, not char*, as return type of alloca().
11036
11037         * alloc.c (free_marker): Side effect inside assert expression!
11038
11039 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
11040
11041         * mule-charset.c (Fset_charset_ccl_program): To check
11042         if the given ccl program is valid, use setup_ccl_program()
11043         instead of CHECK_VECTOR().
11044         (Fmake_charset): Likewise.
11045
11046 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
11047
11048         * faces.c (get_extent_fragment_face_cache_index):
11049         Fix cachel.merged_faces memory leak.
11050
11051 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
11052
11053         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
11054         Reset MSB of octets obtained by DECODE_SJIS
11055         because of the incompatibility with Emacs.
11056         (ccl_driver)<CCL_ENCODE_SJIS>:
11057         Set MSB of octets before passing them to
11058         ENCODE_SJIS because of the incompatibility
11059         with Emacs.
11060
11061 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
11062
11063         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
11064         (DECLARE_LRECORD): Undo the last change.
11065         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
11066
11067 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
11068
11069         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
11070         the implementation to lrecord_implementations_table.
11071
11072 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
11073
11074         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
11075         initial value of `lrecord_type_##c_name' and
11076         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
11077         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
11078         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
11079         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
11080         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
11081
11082 2000-10-17  Martin Buchholz  <martin@xemacs.org>
11083
11084         * miscplay.c (sndcnv8S_2mono):
11085         (sndcnv2monounsigned):
11086         (sndcnvULaw_2linear):
11087         (sndcnv16swap):
11088         Remove implementation-defined behavior.
11089
11090 2000-10-12  Martin Buchholz  <martin@xemacs.org>
11091
11092         * input-method-xlib.c: Warning suppression.
11093
11094 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
11095
11096         * mule-ccl.c: Sync up with Emacs 21.0.90.
11097         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
11098         Do nothing.
11099         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
11100         Likewise.
11101         (ccl_driver[WriteMultibyteChar2]): Bug fix.
11102         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
11103         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
11104         leading char belongs to official 2-dimensional charset.
11105         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
11106         write the given character as is.  Otherwise,
11107         if it is a multibyte char, convert it by
11108         non_ascii_set_charptr_emchar, then write it.
11109         (CCL_WRITE_STRING): Likewise.
11110         (ccl_get_compiled_code): New function.
11111         (setup_ccl_program): When ccl_prog is invalid,
11112         return -1.
11113         (Fregister_code_conversion_map): New function.
11114         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
11115
11116         * mule-ccl.h: Sync up with Emacs 21.0.90.
11117         (Fregister_ccl_program): export it.
11118
11119         * redisplay-msw.c (separate_textual_runs):
11120         If ccl program is not valid, don't do ccl conversion.
11121
11122         * redisplay-x.c (separate_textual_runs): Ditto.
11123
11124         * file-coding.c (Fmake_coding_system):
11125         When type is ccl and value is vector, register it
11126         with a proper symbol.  And checks whether the
11127         given ccl program is valid.
11128         (mule_decode): When calling ccl_driver, if src indicates
11129         NULL pointer, set an empty string instead.
11130         (mule_encode): Likewise.
11131
11132 2000-10-11  Martin Buchholz  <martin@xemacs.org>
11133
11134         The following large batch of changes gets us back to a state of
11135         C++ compilability.  Extbyte is now a char, which means that
11136         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
11137
11138         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
11139
11140         * sound.c (Fplay_sound): Type correctness.
11141
11142         * select-x.c (hack_motif_clipboard_selection): Type correctness.
11143         (x_get_window_property): Type correctness.
11144         (receive_incremental_selection): unsigned char ==> Extbyte
11145         (selection_data_to_lisp_data): unsigned char ==> Extbyte
11146         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
11147         (Fx_store_cutbuffer_internal): Type correctness.
11148
11149         * process-unix.c (try_to_initialize_subtty): Type correctness.
11150
11151         * objects-x.c (x_print_color_instance): Type correctness.
11152         (x_print_font_instance): Type correctness.
11153         (x_list_fonts): SExtbyte ==> Extbyte.
11154         (valid_x_font_name_p): SExtbyte ==> Extbyte.
11155         (x_find_charset_font): SExtbyte ==> Extbyte.
11156         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
11157         (truename_via_XListFonts): SExtbyte ==> Extbyte.
11158         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
11159         Use bufbyte_strcmp.
11160
11161         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
11162         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
11163         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
11164         (BYTE_C0_P): Use bit ops for char-signedness safety.
11165         (BYTE_C1_P): Use bit ops for char-signedness safety.
11166         (CHARSET_BY_LEADING_BYTE):
11167         (CHARSET_BY_ATTRIBUTES):
11168         Always use inline function.
11169         Use type_checking_assert.
11170         Hide chlook.
11171
11172         * mule-charset.c (non_ascii_charptr_copy_char):
11173         Modify to work with both ASCII and non-ASCII characters.
11174         Improve docs and variable names.
11175         Replace over-clever fall-through switch with a simple loop.
11176         (Lstream_get_emchar_1):
11177         Replace over-clever fall-through switch with a simple loop.
11178
11179         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11180         Warning suppression.
11181
11182         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
11183         the return value of Lstream_getc, which could be EOF as well.
11184
11185         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
11186
11187         * lisp.h: Make Extbyte a char, not unsigned char, so that external
11188         APIs can be used on Extbytes without casts.  Risky!
11189         (SExtbyte): Remove.
11190         (UExtbyte): Remove.
11191
11192         * input-method-xlib.c (XIM_init_device):
11193         Use Xlib.h instead of IntrinsicP.h.
11194         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
11195         which will break in X11R7.
11196         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
11197         to call XRegisterIMInstantiateCallback with correct types.
11198
11199         * gui-x.c (button_item_to_widget_value): Type correctness.
11200
11201         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
11202
11203         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
11204         (xbm_instantiate_1): Type correctness.
11205         (BUILD_GLYPH_INST):  Type correctness.
11206
11207         * fileio.c (Fsubstitute_in_file_name): Type correctness.
11208
11209         * file-coding.c:
11210         (decode_coding_sjis):
11211         (decode_coding_big5):
11212         (decode_coding_ucs4):
11213         (decode_coding_utf8):
11214         (decode_coding_iso2022):
11215         (decode_coding_no_conversion):
11216         Make all decoding functions take an Extbyte * arg.
11217         (encode_coding_sjis):
11218         (encode_coding_big5):
11219         (encode_coding_ucs4):
11220         (encode_coding_utf8):
11221         (encode_coding_iso2022):
11222         (encode_coding_no_conversion):
11223         Make all encoding functions take a Bufbyte * arg.
11224         Use size_t instead of unsigned int for memory sizes.
11225         Only cast to unsigned char whenever dereferencing Extbyte *.
11226
11227         * doc.c (unparesseuxify_doc_string): Type correctness.
11228
11229         * console-x.c (split_up_display_spec):
11230         Rewrite without using details of internal string representation.
11231         (x_semi_canonicalize_device_connection): Type correctness.
11232
11233         * config.h.in:
11234         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
11235         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
11236         (HAVE_XFREE386): Removed.
11237
11238         * buffer.h (DEC_CHARPTR): `const' correctness.
11239         (bufbyte_strcmp): New.
11240         (bufbyte_memcmp): New.
11241
11242         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
11243
11244         * buffer.h (XCHAR_OR_CHAR_INT):
11245         Always use inline function.
11246         Remove redundant type checking assert() - XINT will abort quite nicely.
11247
11248 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11249
11250         * search.c (Freplace_match): Set newtext to an empty string.
11251
11252 2000-10-10  Martin Buchholz  <martin@xemacs.org>
11253
11254         * s/decosf1-3.h: Remove #include of stropts.h
11255         * s/ptx.h: Remove #include of stropts.h
11256         * s/usg5-4.h: Remove #include of stropts.h
11257         * sysproc.h:
11258         * config.h.in:
11259         Use stropts.h, not sys/stropts.h.
11260         Use strtio.h, not sys/strtio.h.
11261
11262 2000-10-04  Martin Buchholz <martin@xemacs.org>
11263
11264         * XEmacs 21.2.36 is released.
11265
11266 2000-09-21  Andy Piper  <andy@xemacs.org>
11267
11268         * glyphs-x.c (x_redisplay_widget): make sure non-structural
11269         changes still involve copying the widget tree.
11270         (update_widget_face): make sure a change is register in the widget
11271         tree. Call update_tab_widget_face appropriately.
11272         (update_tab_widget_face): ditto.
11273         (x_tab_control_redisplay): make sure non-structural changes still
11274         involve copying the widget tree.
11275
11276 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
11277
11278         * lread.c (locate_file): Check the path element is non-nil.
11279
11280 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11281
11282         * lisp.h: Warning suppression for SCO compilers.
11283
11284         * redisplay-tty.c (reset_tty_modes): Fix crash.
11285         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
11286
11287 2000-09-27  Martin Buchholz  <martin@xemacs.org>
11288
11289         Big signal/process handling overhaul.  Bugs fixed:
11290         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
11291         M-x comint-kill-subjob should work for both values nil and t of
11292         process-connection-type. It was broken on most platforms.
11293         Testing on Irix and Cygwin still needed.  Other plaforms tested.
11294         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
11295         * process-unix.c: Signal/Process handling overhaul.
11296         (pty_name): make 64 bytes, as `expect' does, for paranoia.
11297         (allocate_pty): Use all available modern methods of allocating
11298         ptys, falling back to old style BSD allocation as a last resort.
11299         Use allegedly more secure Unix98 pty allocation by default.
11300         (allocate_pty_the_old_fashioned_way): New. the last resort.
11301         (unix_create_process): Push ptem, ldterm, ttcompat where
11302         available.  Autoconfiscate.
11303         (try_to_initialize_subtty): New.
11304         (unix_kill_child_process): Proper signal handling for ptys on most
11305         platforms, using special knowledge of AIX, BSD, etc...
11306         (unix_create_process): Always disconnect_controlling_terminal() for
11307         subprocesses, whether using ptys or not.
11308         * process.h: Remove old getpt-dependent PTY code.
11309         * process.c (Fprocess_send_signal): New, obvious generic function.
11310         (decode_signal): New.
11311         (Finterrupt_process):
11312         (Fkill_process):
11313         (Fquit_process):
11314         (Fstop_process):
11315         (Fcontinue_process):
11316         (Fsignal_process): Use decode_signal.
11317         (process_send_signal):
11318         Many docstring corrections.
11319         Allow any signal to be sent to a process object.
11320         * config.h.in: Add symbols for big signal/process overhaul.
11321         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
11322         * sysproc.h: Include process-related headers, where available:
11323         sys/stropts.h sys/strtio.h pty.h libutil.h
11324         * s/irix4-0.h:
11325         * s/irix5-0.h:
11326         * s/cygwin32.h:
11327         * s/gnu.h:
11328         * s/linux.h:
11329         * s/hpux.h:
11330         * s/aix3-1.h:
11331         Remove old S&M pty stuff.
11332         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
11333         * systty.h: Simplify cpp hackery, improve comments.
11334         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
11335
11336         * editfns.c (Fformat_time_string):
11337         Be a little more paranoid with the return value of ctime.
11338
11339         * fileio.c (check_executable):
11340         (check_writable):
11341         Use symbolic constants X_OK, W_OK.
11342
11343         * console-x.c (split_up_display_spec): Fix a warning.
11344
11345 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11346
11347         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11348         * ntproc.c (sys_spawnve): make_string ==> build_string
11349         Small clarity improvements.
11350
11351 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11352
11353         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11354
11355         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11356
11357         * config.h.in (HAVE_STRCASECMP): Remove.
11358
11359 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11360
11361         * redisplay-output.c (redisplay_output_pixmap):
11362         Cleaner and possibly more 64-bit correct code.
11363
11364 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11365
11366         * dumper.c (pdump_load_finish): move restoration of
11367         `noninteractive1' to emacs.c (main_1).
11368         * emacs.c (main_1): protect LISP-visible command-line flags
11369         from pdump_load().
11370
11371 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11372
11373         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11374         DUMP_TARGET instead of literal program names.
11375
11376 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11377
11378         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11379
11380 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11381
11382         * *: Spelling mega-patch
11383
11384 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11385
11386         * fns.c (bad_bad_turtle):
11387         Delete "Eek!" comment, since we fixed the bug to which it refers.
11388
11389 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11390
11391         * alloca.c: Replace REGISTER with register.
11392
11393 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11394
11395         * file-coding.c (ucs_to_char): Use countof.
11396
11397 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11398
11399         * file-coding.c: (ucs_to_char):
11400         (complex_vars_of_file_coding):
11401         Use countof instead of sizeof.
11402         Use CHECK_NATNUM instead of CHECK_INT.
11403
11404         * sysdep.c (strcasecmp): Remove.
11405         * device-x.c (ascii_strcasecmp): New.
11406         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11407         Avoid using non-standard non-portable strcasecmp.
11408
11409 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11410
11411         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11412         * font-lock.c: remove reference to emacsfns.h.
11413         * search.c: small doc improvement.
11414         * event-Xt.c: correct file names in comments.
11415         * console-x.h Correct file names in comments.
11416         * frame.c: Correct file names in comments.
11417         * event-stream.c: remove Energize from comments.
11418
11419 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11420
11421         * symeval.h (DEFERROR_STANDARD):
11422         (DEFERROR):
11423         (DEFSYMBOL):
11424         (DEFSYMBOL_NO_DUMP):
11425         (DEFSYMBOL_MULTIWORD_PREDICATE):
11426         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11427         (DEFKEYWORD):
11428         The construct &##name is not sensible C.
11429         Fixes compilation errors with Unixware native compiler.
11430
11431 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11432
11433         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11434         (next_frame_internal): Removed.  We now just have next_frame.
11435         (next_frame):
11436         Write a simpler and cleaner one-pass algorithm.
11437         Remove called_from_delete_device arg and #ifdefed-out code.
11438         (previous_frame):
11439         Renamed from prev_frame.  Update callers.
11440         Cleaned up to have an analogous implementation to next_frame.
11441         (other_visible_frames_internal): Remove the
11442         called_from_delete_device bogus arg, and hence, remove this
11443         function.  Just use other_visible_frames().
11444
11445         * window.c (Fnext_window):
11446         Prettify docstring.
11447         Since next_frame() is guaranteed to return a frame, remove check
11448         for nil inserted in previous patch.
11449         (Fprevious_window):
11450         Prettify docstring.
11451         Make code look more like Fnext_window.
11452         (window_loop):
11453         Respect the `console' arg when iterating through windows.
11454         Fixes bug: (get-buffer-window buffer t device) not respecting
11455         the `device' arg.
11456         This function needs more work, as others have pointed out.
11457
11458         * frame.h: Rename prev_frame to previous_frame.
11459         device_matches_console_spec no longer takes a `frame' arg.
11460
11461         * s/gnu.h:
11462         * s/linux.h:
11463         * s/hpux.h:
11464         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11465         From "Golubev I. N." <gin@mo.msk.ru>.
11466
11467         * make-src-depend: Fix typo.
11468
11469 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11470
11471         * window.c (Fnext_window):
11472         next_frame() might return nil, not a frame.
11473         Fixes this crash:
11474         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11475
11476         * frame.c (next_frame_internal):
11477         We've passed a frame if we've passed its device.
11478         Fixes this crash:
11479         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11480 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11481
11482 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11483
11484         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11485         Allow option to suppress accelerators in menu/dialog items.
11486         (populate_or_checksum_helper): Pass dialog title through above.
11487
11488 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11489
11490         * event-msw.c (mswindows_key_to_emacs_keysym):
11491         Add "pause" key, fix "menu" key.
11492
11493 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11494
11495         * eval.c (reinit_vars_of_eval):
11496         Increase max_lisp_eval_depth to 1000,
11497         required for thai-xtis.el to byte-compile under some circumstances.
11498
11499 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11500
11501         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11502         From Kenichi Handa.
11503
11504 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11505
11506         * make-src-depend: Make the generated Makefiles smaller.
11507
11508         * s/hpux.h (SETUP_SLAVE_PTY):
11509         Provide a %d in the format string for the errno argument.
11510
11511         * editfns.c (Ftemp_directory):
11512         Warning fix.
11513         Avoid buffer overrun on very long file name.
11514
11515         * input-method-xlib.c (XIM_init_device):
11516         6th parameter of XRegisterIMInstantiateCallback has different
11517         pointer types on different OSes, so simply cast to (void *).
11518
11519         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11520
11521         * sysdll.c (dll_open):
11522         shl_load will hang hard if passed a NULL filename.
11523         Simply return NULL for compatibility with dlopen.
11524         * sysdll.c: Conform to XEmacs coding standards.
11525
11526         * sysdep.c (get_pty_max_bytes):
11527         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11528
11529 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11530
11531         * tooltalk.c: Add #include <syssignal.h>
11532
11533 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11534
11535         * s/hpux.h: Don't use undefined function sigunblock().
11536
11537 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11538
11539         * config.h.in: Add HAVE_BALLOON_HELP.
11540         * emacs.c: Use HAVE_BALLOON_HELP.
11541         * Makefile.in.in (x_objs):
11542         Make Balloon Help conditional on finding shape.h.
11543
11544 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11545
11546         * syntax.c (regex_emacs_buffer_p): New variable.
11547         * syntax.h (regex_emacs_buffer_p): extern.
11548         * search.c (looking_at_1):
11549         (string_match_1):
11550         (fast_string_match):
11551         (search_buffer): Set regex_emacs_buffer_p.
11552         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11553         when before_dot, at_dot, after_dot.
11554
11555 2000-08-23  Andy Piper  <andy@xemacs.org>
11556
11557         * gui-x.c (popup_selection_callback): Only set action_occurred
11558         when we really have an image instance.
11559         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11560
11561 2000-08-23  Andy Piper  <andy@xemacs.org>
11562
11563         * gui-msw.c (mswindows_handle_gui_wm_command): set
11564         action_occurred.
11565         * gui-x.c (popup_selection_callback): ditto.
11566
11567         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11568         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11569         (struct Lisp_Image_Instance): add action_occurred flag.
11570
11571         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11572         (image_instance_changed): ditto.
11573         (reset_frame_subwindow_instance_cache): only unmap windows - do
11574         not remove them from the cache also.
11575
11576         * glyphs-widget.c (tab_control_update): better debug.
11577         (progress_gauge_update): ditto.
11578         (layout_update): ditto.
11579         (layout_instantiate): ditto.
11580         (tab_control_order_only_changed): cope with null pending items.
11581
11582         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11583         debug. Force selection of an item when an action occurred. Cope
11584         with null pending_items.
11585         (mswindows_progress_gauge_redisplay): better debug.
11586         * glyphs-x.c (x_tab_control_redisplay): ditto.
11587
11588         * redisplay.c (redisplay_frame): reset the frame cache if the
11589         frame is garbaged.
11590
11591         * window.c (Fset_window_configuration): potentially re-enable
11592         frame cache reset.
11593         (window_unmap_subwindows): need to finalize instances here since
11594         it is only used in mark_window_as_deleted.
11595
11596 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11597
11598         * nas.c (SndOpenDataForReading):
11599         nas.c (WaveOpenDataForReading):
11600         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11601         Somehow escaped from the 2000-08-14 patch.
11602
11603 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11604
11605         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11606         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11607
11608 2000-08-21  Andy Piper  <andy@xemacs.org>
11609
11610         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11611         window if it is not already displayed.
11612
11613         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11614         it is not already displayed.
11615
11616         * window.c (Fset_window_configuration): don't reset the frame
11617         cache.
11618
11619         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11620         instances from the frame cache if we are actually finalizing them.
11621         (reset_frame_subwindow_instance_cache): reset frame cache only
11622         after unmapping everything.
11623         (map_subwindow): set displayed flag after mapping.
11624
11625 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11626
11627         * data.c (indirect_function):
11628         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11629
11630         * eval.c (function_argcount):
11631         Use original function when signaling errors.
11632
11633 2000-08-18  Andy Piper  <andy@xemacs.org>
11634
11635         * frame.c (delete_frame_internal): use new
11636         free_frame_subwindow_instances name.
11637
11638         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11639         (add_tab_item): make return type correct.
11640         (mswindows_tab_control_instantiate): assert index of tab.
11641         (mswindows_tab_control_redisplay): Re-code to use
11642         gui_item_equal_sans_selected and gui_item_list_find_selected.
11643
11644         * glyphs-widget.c (tab_control_update): Correct comment.
11645
11646         * window.c (window_unmap_subwindows): use new
11647         unmap_subwindow_instance_cache_mapper.
11648         (window_unmap_subwindows_cache_mapper): deleted.
11649         (Fset_window_configuration): comparisons should now be with
11650         EQ. Preserve the subwindow instance cache across configuration
11651         changes.
11652         (allocate_window): ditto.
11653         (make_dummy_parent): ditto.
11654
11655         * glyphs.c (free_frame_subwindow_instances): rename from
11656         free_frame_subwindow_instance_cache. finalize all instances rather
11657         than just those in the display cache.
11658         (finalize_all_subwindow_instances): walk windows unmapping and
11659         finalizing subwindows.
11660         (unmap_subwindow_instance_cache_mapper): moved from
11661         window.c. Allow finalization as well as unmapping.
11662
11663         * gui.c (gui_item_list_find_selected): new function.
11664
11665         * gui.h (gui_item_list_find_selected): declare.
11666
11667         * glyphs-x.c (x_tab_control_redisplay): pick tab
11668         explicitly. Re-code to use gui_item_equal_sans_selected and
11669         gui_item_list_find_selected.
11670
11671         * glyphs-x.h: add lwlib-utils.h
11672
11673         * buffer.c (Frecord_buffer): undo previous change.
11674
11675 2000-08-09  Vin Shelton  <acs@xemacs.org>
11676
11677         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11678         possible.  Create temporary files more securely.  The patch was
11679         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11680         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11681         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11682         for details.
11683
11684 2000-08-07  Ben Wing  <ben@xemacs.org>
11685
11686         * getloadavg.c: remove duplicate (and windows-breaking)
11687         includes of fcntl.h and sys/file.h.
11688
11689         * nt.c: remove duplicate getloadavg() definition.
11690
11691         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11692         encodings.
11693
11694 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11695
11696         * eval.c (function_argcount): If function needs to be autoloaded
11697         actually use the loaded definition.
11698         GCPRO function.
11699
11700 2000-08-05  Ben Wing  <ben@xemacs.org>
11701
11702         * getloadavg.c: add prototype for getloadavg().  remove
11703         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11704         of the code).  remove duplicate header includes.
11705
11706         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11707
11708         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11709         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11710         useful load average.
11711
11712         * alloc.c (reinit_alloc_once_early): removed references to
11713         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11714         the lisp vars are the only things referencing the malloc_sbrk_*
11715         vars, and they were already if 0'd out.  these vars only exist
11716         in the older malloc.c, which is basically unused, and they're
11717         only for informational purposes.
11718
11719         * m\*.h: removed useless VIRT_ADDR_VARIES.
11720
11721         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11722
11723 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11724
11725         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11726         color if the image is a mono pixmap.
11727
11728 2000-07-30  Ben Wing  <ben@xemacs.org>
11729
11730         * Makefile.in.in (release):
11731         Remove stray @.
11732
11733         * buffer.c (directory_is_current_directory):
11734         * dired-msw.c (mswindows_get_files):
11735         * dired.c:
11736         * dired.c (Fdirectory_files):
11737         * dired.c (file_name_completion_stat):
11738         * dired.c (Ffile_attributes):
11739         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11740         preprocessor tricks, to avoid problems on some machines
11741         (e.g. SCO).
11742
11743         * callproc.c (egetenv): GC docs.
11744
11745         * console-msw.h:
11746         * console-msw.h (struct mswindows_dialog_id):
11747         * lrecord.h (lrecord_type):
11748         New object for use with MSW dialogs.
11749
11750         * console.h (struct console_methods):
11751         New enable/disable frame methods, for proper modal dialogs.
11752
11753         * device-msw.c (msprinter_default_printer): Fix to follow
11754         proper Mule conventions.
11755
11756         * device-msw.c:
11757         * device-msw.c (signal_open_printer_error):
11758         * device-msw.c (msprinter_init_device):
11759         * device-msw.c (ensure_not_printing):
11760         * device-msw.c (plist_get_margin):
11761         * device-msw.c (Fmsprinter_select_settings):
11762         * device-msw.c (finalize_devmode):
11763         * device-msw.c (Fmsprinter_settings_despecialize):
11764         * device-msw.c (signal_enum_priner_error):
11765         * extents.c (decode_extent):
11766         * extents.c (decode_map_extents_flags):
11767         * extents.c (decode_extent_at_flag):
11768         * extents.c (Fextent_at):
11769         * extents.c (Fextents_at):
11770         * extents.c (symbol_to_glyph_layout):
11771         [[[[2]]]] Use structured errors.
11772
11773         * dialog-msw.c:
11774         * dialog-msw.c (mswindows_is_dialog_msg):
11775         * dialog-msw.c (mark_mswindows_dialog_id):
11776         * dialog-msw.c (dialog_proc):
11777         * dialog-msw.c (handle_question_dialog_box):
11778         * dialog-msw.c (syms_of_dialog_mswindows):
11779         Define new object to clean up marking; use it as a dialog identifier.
11780         Call new delete-dialog-box-hook.
11781
11782         * dialog-x.c (dbox_selection_callback):
11783         * dialog-x.c (dbox_descriptor_to_widget_value):
11784         * dialog-x.c (x_make_dialog_box_internal):
11785         Call new delete-dialog-box-hook.
11786         Return an id.
11787
11788         * dialog.c:
11789         * dialog.c (syms_of_dialog):
11790         * dialog.c (vars_of_dialog):
11791         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11792
11793         * eval.c:
11794         * eval.c (signal_call_debugger):
11795         when noninteractive, output stack traces on the console instead
11796         of in a (never-seen) buffer.
11797
11798         * eval.c (signal_type_error):
11799         * eval.c (invalid_argument_2):
11800         * lisp.h:
11801         new funs for use w/structured errors.
11802
11803         * event-Xt.c:
11804         * event-Xt.c (x_to_emacs_keysym):
11805         * event-Xt.c (describe_event):
11806         * event-Xt.c (emacs_Xt_event_handler):
11807         * event-Xt.c (vars_of_event_Xt):
11808         * event-msw.c:
11809         * event-msw.c (mswindows_wnd_proc):
11810         * event-msw.c (vars_of_event_mswindows):
11811         rename {x,mswindows}-debug-events to debug-{}-events for
11812         consistency with other debug-foo variables.
11813
11814         * event-stream.c:
11815         document next-event more clearly.
11816
11817         * fileio.c (Ffile_name_directory):
11818         * fileio.c (Ffile_name_nondirectory):
11819         * fileio.c (Funhandled_file_name_directory):
11820         * fileio.c (file_name_as_directory):
11821         * fileio.c (Ffile_name_as_directory):
11822         * fileio.c (directory_file_name):
11823         * fileio.c (Fdirectory_file_name):
11824         * fileio.c (Fmake_temp_name):
11825         * fileio.c (Ffile_truename):
11826         * fileio.c (Fsubstitute_in_file_name):
11827         * fileio.c (expand_and_dir_to_file):
11828         * fileio.c (barf_or_query_if_file_exists):
11829         * fileio.c (check_executable):
11830         * fileio.c (Ffile_exists_p):
11831         * fileio.c (Ffile_writable_p):
11832         * fileio.c (Ffile_directory_p):
11833         * fileio.c (Ffile_regular_p):
11834         * fileio.c (Ffile_modes):
11835         * fileio.c (Ffile_newer_than_file_p):
11836         * fileio.c (Fverify_visited_file_modtime):
11837         * fileio.c (Fset_visited_file_modtime):
11838         * fileio.c (auto_save_1):
11839         (1). (2).
11840         fix up gcpro's.
11841
11842         * frame-msw.c:
11843         * frame-msw.c (mswindows_init_frame_1):
11844         * frame-msw.c (mswindows_enable_frame):
11845         * frame-msw.c (error_frame_unsizable):
11846         * frame-msw.c (msprinter_init_frame_1):
11847         * frame-msw.c (msprinter_init_frame_3):
11848         * frame-msw.c (console_type_create_frame_mswindows):
11849         (2).
11850         implement new enable/disable frame methods.
11851
11852         * frame-x.c:
11853         * frame-x.c (x_enable_frame):
11854         * frame-x.c (console_type_create_frame_x):
11855         implement new enable/disable frame methods.
11856
11857         * frame.c:
11858         * frame.c (Fdisable_frame):
11859         * frame.c (syms_of_frame):
11860         * frame.h (struct frame):
11861         implement new enable/disable frame methods/functions.
11862
11863         * general-slots.h:
11864         add initial-focus.
11865
11866         * glyphs-msw.c (mswindows_widget_instantiate):
11867         comment that initial-focus should be implemented.
11868
11869         * glyphs-widget.c:
11870         * glyphs-widget.c (check_valid_instantiator):
11871         * glyphs-widget.c (check_valid_orientation):
11872         * glyphs-widget.c (check_valid_tab_orientation):
11873         * glyphs-widget.c (check_valid_justification):
11874         * glyphs-widget.c (check_valid_border):
11875         * glyphs-widget.c (check_valid_callback):
11876         * glyphs-widget.c (check_valid_int_or_function):
11877         * glyphs-widget.c (check_valid_string_or_vector):
11878         * glyphs-widget.c (check_valid_item_list_1):
11879         * glyphs-widget.c (widget_validate):
11880         * glyphs-widget.c (combo_box_validate):
11881         * glyphs-widget.c (widget_instantiate):
11882         * glyphs-widget.c (syms_of_glyphs_widget):
11883         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11884         * glyphs-widget.c (image_instantiator_combo_box):
11885         * glyphs-widget.c (image_instantiator_scrollbar):
11886         * glyphs-widget.c (image_instantiator_tab_control):
11887         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11888         (2).
11889         support (unimplemented) keyword initial-focus.
11890         reindent long macros.
11891
11892         * glyphs-x.c (x_redisplay_widget):
11893         * glyphs-x.c (x_button_instantiate):
11894         * glyphs-x.c (x_button_redisplay):
11895         * glyphs-x.c (x_progress_gauge_instantiate):
11896         * glyphs-x.c (x_edit_field_instantiate):
11897         * glyphs-x.c (x_combo_box_instantiate):
11898         * glyphs-x.c (x_tab_control_instantiate):
11899         * glyphs-x.c (x_label_instantiate):
11900         * gui-x.c:
11901         * gui-x.c (button_item_to_widget_value):
11902         * gui-x.c (gui_items_to_widget_values_1):
11903         * gui-x.c (gui_item_children_to_widget_values):
11904         * gui-x.c (gui_items_to_widget_values):
11905         * gui-x.h:
11906         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11907         add new flag to gui-parsing routines to indicate whether
11908         accelerator specs should be supported.
11909
11910         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11911
11912         * glyphs.h (struct Lisp_Image_Instance):
11913         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11914         add initial-focus flag.
11915
11916         * gui.c:
11917         * gui.c (syms_of_gui):
11918         * gui.c (vars_of_gui):
11919         clean up menu-no-selection-hook.
11920
11921         * gui.h:
11922         support delete-dialog-box-hook.
11923
11924         * lread.c (Fload_internal):
11925         * lread.c (locate_file_in_directory_mapper):
11926         (1).
11927
11928         * lrecord.h:
11929         * lrecord.h (struct toolbar_button):
11930         * lrecord.h (syms_of_toolbar):
11931         document how to create a new object.
11932
11933         * menubar-msw.c (mswindows_char_is_accelerator):
11934         may be called on frames w/o menus.
11935
11936         * menubar.c (vars_of_menubar):
11937         clean up :filter docs.
11938
11939         * nt.c (readdir):
11940         * ntproc.c:
11941         (1).
11942
11943         * process-nt.c:
11944         * process-nt.c (validate_signal_number):
11945         * process-nt.c (signal_cannot_launch):
11946         * process-nt.c (nt_create_process):
11947         * process-nt.c (nt_send_process):
11948         * process-nt.c (nt_kill_child_process):
11949         * process-nt.c (nt_open_network_stream):
11950         * process-nt.c (syms_of_process_nt):
11951         (2).
11952         delete quote-handling.  call new lisp code that does it better.
11953
11954         * process-unix.c (connect_to_file_descriptor):
11955         * process-unix.c (allocate_pty):
11956         * process-unix.c (unix_send_process):
11957         * process-unix.c (unix_kill_child_process):
11958         * process-unix.c (unix_open_network_stream):
11959         * process-unix.c (unix_open_multicast_group):
11960         (1). (2).
11961
11962         * process.c:
11963         * process.c (Fstart_process_internal):
11964         (2).  need to canonicalize process path even if absolute.
11965
11966         * select-msw.c (symbol_to_ms_cf):
11967         * select-msw.c (ms_cf_to_symbol):
11968         * select-msw.c (cf_is_autofreed):
11969         * select-msw.c (mswindows_destroy_selection):
11970         * select.c:
11971         * select.c (syms_of_select):
11972         * select.h:
11973         support dibv5, fix bugs. (from Mike Alexander)
11974
11975         * select.c (Fget_selection_internal):
11976         * select.c (select_convert_out):
11977
11978         * sysdep.c:
11979         * sysdep.c (xemacs_stat):
11980         renamed.
11981
11982         * sysdep.c (mkdir):
11983         * sysdep.c (rmdir):
11984         but keep original stat() here because we provide encapsulation
11985         around these funs.
11986
11987         * sysfile.h:
11988         * sysfile.h (fstat):
11989         remove stat garbage.
11990
11991         * syswindows.h:
11992         fix X/MSW conflict.
11993         don't include tchar.h.  it's inappropriate because it makes
11994         compile-time distinctions when we want runtime distinctions.
11995         (we provide our own tchar replacements)
11996
11997         * toolbar.c:
11998         use default object printer for toolbar-button.
11999
12000         * unexcw.c:
12001         make sure we don't encapsulate.
12002
12003         * window.c (vars_of_window):
12004         emphasize that temp-buffer-show-hook is obsolete.
12005
12006 2000-08-05  Martin Buchholz  <martin@xemacs.org>
12007
12008         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
12009         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
12010
12011         * events.c (Fevent_timestamp_lessp):
12012         Not 64-bit clean.  Use EMACS_INT, not int.
12013
12014 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
12015
12016         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
12017         unsigned int and changed the last enum to
12018         lrecord_type_last_built_in_type.
12019         (lrecord_implementations_table): changed prototype to know how
12020         long the array is supposed to be.
12021         (lrecord_type_count): new unsigned int to keep track of the
12022         current number of lisp lrecord types.
12023         (DEFINE_EXTERNAL_LRECORD):
12024         (DECLARE_EXTERNAL_LRECORD): Added these two for external
12025         dynamic-modules to declare new lisp types. They are the same
12026         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
12027         int for each new type, and increment lrecord_type_count by 1.
12028
12029         * alloc.c (lrecord_implementations_table): Changed to reference
12030         lrecord_type_last_built_in_type for the size of the array.
12031         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
12032
12033 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12034
12035         * glyphs.h (check_valid_item_list): Renamed from
12036         check_valid_item_list_1.
12037
12038 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
12039
12040         * select.c (Qselect_coerce): New.
12041         * select.c (Vselection_coercion_alist): New.
12042         * select.c (syms_of_select): Declare.
12043         * select.c (get-selection-internal): Use it.
12044         Use the new select-coerce functionality.
12045
12046         * select.c (select_coerce): New.
12047         * select.h (select_coerce): Declare.
12048         New function to coerce one type of data into another.
12049
12050 2000-08-03  Martin Buchholz  <martin@xemacs.org>
12051
12052         * callproc.c (Fcall_process_internal):
12053         (Fcall_process_internal):
12054         * process-unix.c (unix_create_process):
12055         Save and restore the value of errno, so that error messages are accurate.
12056
12057 2000-08-01  Martin Buchholz  <martin@xemacs.org>
12058
12059         * elhash.c (print_hash_table):
12060         Fix printing of hash tables to also use `key-and-value' instead of `t'.
12061         Prettify docstrings and indentation.
12062
12063 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
12064
12065         * window.c (Fwindow_pixel_edges): Subtract frame border and
12066         gutter size.
12067
12068 2000-07-31  Andy Piper  <andy@xemacs.org>
12069
12070         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
12071         will acknowledge the change.
12072
12073         * glyphs.h: declare tab_control_order_only_changed.
12074
12075         * glyphs-x.c (x_tab_control_redisplay): use
12076         tab_control_order_only_changed.
12077
12078         * glyphs-widget.c (tab_control_order_only_changed): new function.
12079
12080         * glyphs-msw.c (mswindows_tab_control_redisplay): use
12081         tab_control_order_only_changed.
12082
12083         * gui.c (gui_item_equal_sans_selected): new function.
12084         (gui_item_equal): use it.
12085
12086         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
12087         :properties in favor of :items..
12088
12089         * glyphs-widget.c (check_valid_item_list): rename from
12090         check_valid_item_list_1.
12091         (check_valid_item_list_1): renamed.
12092         (combo_box_validate): deprecate :properties in favor of :items.
12093         (widget_instantiate): ditto.
12094         (tab_control_update): ditto.
12095         (image_instantiator_combo_box): ditto.
12096         (image_instantiator_tree_view): ditto.
12097         (image_instantiator_tab_control): ditto.
12098         (layout_post_instantiate): remove dead code.
12099
12100         * print.c (debug_print_no_newline): only write to debugger if in
12101         WIN32_NATIVE.
12102
12103         * elhash.c (Fmake_hash_table): update doc string.
12104
12105         * event-msw.c (mswindows_wnd_proc): don't allow processing of
12106         messages whilst in GC. This at least stops XEmacs crashing but has
12107         the potential for wierd behaviour.
12108
12109 2000-07-31  Martin Buchholz  <martin@xemacs.org>
12110
12111         * config.h.in:
12112         Make existence of s&m files optional.
12113
12114         * s/bsd386.h: Remove HAVE_GETLOADAVG.
12115         * s/freebsd.h: Remove HAVE_GETLOADAVG.
12116         * s/gnu.h: Remove HAVE_GETLOADAVG.
12117         * s/netbsd.h: Remove HAVE_GETLOADAVG.
12118         * s/sol2.h: Remove HAVE_GETLOADAVG.
12119         * lisp.h: Remove getloadavg() declaration.
12120         * fns.c:
12121         Include <sys/loadavg.h> if available.
12122         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
12123         * config.h.in:  Group together getloadavg()-related macros.
12124         Use only configure-time tests to detect getloadavg().
12125
12126 2000-07-30  Martin Buchholz  <martin@xemacs.org>
12127
12128         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
12129
12130 2000-07-25  Andy Piper  <andy@xemacs.org>
12131
12132         * syswindows.h: add tchar.h for native builds.
12133
12134         * frame.c (syms_of_frame): remove set-glyph-image.
12135
12136         * general-slots.h: add Qset_glyph_image.
12137
12138         * glyphs-widget.c (layout_update): add domain arg to
12139         set-glyph-image.
12140         (syms_of_glyphs_widget): remove set-glyph-image.
12141
12142 2000-07-23  Ben Wing  <ben@xemacs.org>
12143
12144         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
12145         Vpopup_frame_list.
12146
12147 2000-07-22  Andy Piper  <andy@xemacs.org>
12148
12149         * symsinit.h: add syms_of_win32().
12150
12151         * gui-msw.c (syms_of_gui_mswindows): remove
12152         Fmswindows_shell_execute.
12153         (Fmswindows_shell_execute): moved to win32.c.
12154
12155         * emacs.c (main_1): add syms_of_win32 ().
12156
12157         * win32.c (init_potentially_nonexistent_functions): rewrite in
12158         compiler-friendly terms.
12159         (Fmswindows_shell_execute): move here from gui-msw.c.
12160         (syms_of_win32): new.
12161
12162         * device-msw.c (Fmswindows_printer_list): clean up args to
12163         EnumPrinters.
12164         Don't include tchar under cygwin or mingw.
12165         (msprinter_default_printer): make cygwin-friendly.
12166
12167 2000-07-21  Andy Piper  <andy@xemacs.org>
12168
12169         * glyphs-widget.c (image_instantiator_tree_view): use tab
12170         control's update function.
12171         (layout_property): new function. Retrieve items.
12172
12173         * glyphs-msw.c (mswindows_tree_view_redisplay): new
12174         function. Re-populate the tree view from the pending items.
12175
12176         * glyphs.c (instantiate_image_instantiator): Make sure the domain
12177         is designated the parent if the domain is an image instance. This
12178         is needed so that dirtiness can be cascade up the hierarchy and
12179         thus for layout children to be redisplayed correctly.
12180         (allocate_image_instance): rename glyph -> parent.
12181
12182         * redisplay.h: change redisplay_output_layout signature.
12183
12184         * redisplay-msw.c (mswindows_output_display_block): use domain
12185         arg.
12186
12187         * redisplay-x.c (x_output_display_block): use domain arg.
12188
12189 2000-07-10  Andy Piper  <andy@xemacs.org>
12190
12191         * window.c (Fset_window_configuration): add comment.
12192
12193         * redisplay-output.c (compare_runes):
12194         (redisplay_output_subwindow): redisplay rather than update subwindow.
12195         (redisplay_output_layout): ditto.
12196
12197         * redisplay-msw.c (mswindows_frame_output_end):
12198         (mswindows_frame_output_end): make defer window pos optional.
12199
12200         * lisp.h: add Flast.
12201
12202         * glyphs.h (struct image_instantiator_methods): add dest_mask top
12203         normalize method. Change update method to be for changed
12204         instantiators. Add redisplay method. Change signature of layout
12205         method.
12206         (struct Lisp_Image_Instance): add instantiator.
12207         (IMAGE_INSTANCE_INSTANTIATOR): new.
12208         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
12209         (XIMAGE_INSTANCE_INSTANTIATOR): new.
12210         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
12211
12212         * glyphs.c:
12213         (find_instantiator_differences): new function.
12214         (Fset_instantiator_property): new convenience function.
12215         (check_image_instance_structure): strictly check for vector
12216         instantiators.
12217         (normalize_image_instantiator): make non-static.
12218         (instantiate_image_instantiator): pass on dest_mask and use new
12219         signatures for image_instance_layout and friends.
12220         (mark_image_instance): mark the instantiator. Mark the subwindow
12221         face not the widget face.
12222         (image_instance_equal): add instantiator.
12223         (image_instance_hash): ditto.
12224         (allocate_image_instance): ditto.
12225         (Fset_image_instance_property): removed.
12226         (Fimage_instance_file_name): ditto.
12227         (Fcolorize_image_instance): ditto.
12228         (image_instance_layout): add offsets to be set.
12229         (update_image_instance): new function. update an image instance
12230         from its changed instantiator.
12231         (inherit_normalize): add dest_mask.
12232         (xbm_normalize): ditto.
12233         (xface_normalize): ditto.
12234         (xpm_normalize): ditto.
12235         (text_update): set_property -> update.
12236         (image_instantiate): use the glyph identity as a hash key, not the
12237         instantiator.
12238         (glyph_width): use new image_instance_layout signature.
12239         (glyph_ascent): ditto.
12240         (glyph_descent): ditto.
12241         (glyph_height): ditto.
12242         (glyph_query_geometry): ressurrect.
12243         (glyph_layout): ditto.
12244         (redisplay_subwindow): update -> redisplay.
12245         (syms_of_glyphs): add Fset_instantiator_property.
12246         (image_instantiator_format_create): set_property -> update.
12247
12248         * glyphs-x.c:
12249         (autodetect_normalize): add dest_maks to signature.
12250         (x_redisplay_subwindow): update -> redisplay.
12251         (x_redisplay_widget): ditto.
12252         (x_button_redisplay): ditto.
12253         (x_progress_gauge_redisplay): ditto.
12254         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
12255         stacking order.
12256         (console_type_create_glyphs_x): update -> redisplay.
12257         (image_instantiator_format_create_glyphs_x): ditto.
12258
12259         * glyphs-widget.c:
12260         (check_valid_instantiator): disallow glyphs in the instantiator,
12261         they must now be vectors.
12262         (check_valid_instantiator_list): ditto.
12263         (glyph_instantiator_to_glyph): use internal symbol rather than
12264         intern.
12265         (widget_update): renamed from widget_set_property. Call cascaded
12266         update methods.
12267         (redisplay_widget): renamed from update_widget.
12268         (widget_layout): image_instance_layout now takes position as well
12269         as size.
12270         (widget_normalize): ditto.
12271         (widget_instantiate): ditto.
12272         (tab_control_query_geometry) ditto.:
12273         (tab_control_update): renamed from tab_control_set_property.
12274         (progress_gauge_update): set_property -> update.
12275         (layout_normalize): rewrite so that child instantiators are
12276         normalized also.
12277         (layout_update): new function. Create glyphs from the normalized
12278         children and cope with any other layout keywords. We do not
12279         instantiate children here that will be take care of by
12280         redisplay_output_layout.
12281         (layout_instantiate): call layout_update and not much else.
12282         (layout_post_instantiate): not sure whether this is needed
12283         anymore.
12284         (layout_query_geometry): query glyph geometry rather than
12285         image_instance geometry.
12286         (layout_layout): set offsets from pass in parameters. Use glyph
12287         geometry and layout functions rather than image instance ones.
12288         (native_layout_layout): ditto.
12289         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
12290         (image_instantiator_widget): set_property -> update.
12291         (image_instantiator_buttons): ditto.
12292         (image_instantiator_progress_guage): ditto.
12293         (image_instantiator_tab_control): ditto.
12294         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
12295         (image_instantiator_layout): add update method.
12296
12297         * glyphs-msw.c (bmp_normalize):
12298         (mswindows_resource_normalize): add dest_mask so that it can be
12299         proprogated by layout_normalize.
12300         (begin_defer_window_pos): make optional because it may not be the
12301         right thing to do and it introduces differences with X.
12302         (mswindows_unmap_subwindow): ditto.
12303         (mswindows_map_subwindow): ditto.
12304         (mswindows_redisplay_subwindow): renamed from
12305         mswindows_update_subwindow.
12306         (mswindows_redisplay_widget): ditto.
12307         (mswindows_button_redisplay): renamed from
12308         mswindows_button_update. Update is now what the instantiation
12309         function does for a changed instantiator.
12310         (mswindows_progress_gauge_instantiate): set the progress value
12311         here if appropriate.
12312         (mswindows_tab_control_redisplay): cope with re-ordering of the
12313         members of the tab widget by simply selecting the new top
12314         widget. This makes things appear ok if you click on a tab.
12315         (mswindows_combo_box_instantiate): image_instance_layout now takes
12316         position as well as size.
12317         (mswindows_progress_gauge_redisplay): renamed from
12318         mswindows_progress_gauge_update.
12319         (console_type_create_glyphs_mswindows): fix update -> redisplay.
12320         (image_instantiator_format_create_glyphs_mswindows): ditto.
12321
12322         * glyphs-eimage.c (jpeg_normalize):
12323         (gif_normalize):
12324         (png_normalize):
12325         (tiff_normalize): add dest_mask so that it can be proprogated by
12326         layout_normalize.
12327
12328         * elhash.c:
12329         (print_hash_table):
12330         (hash_table_weakness_validate):
12331         (decode_hash_table_weakness):
12332         (Fhash_table_weakness):
12333         (Fhash_table_type):
12334         (syms_of_elhash): use Ben's naming scheme for hashtable types..
12335
12336         * console.h (struct console_methods): move update_* to
12337         redisplay_*.
12338
12339 2000-07-20  Ben Wing  <ben@xemacs.org>
12340
12341         * *.[ch] (XSETOBJ): remove unused middle argument.
12342         lisp-disunion.h: correct wrap_object() to one argument.
12343
12344 2000-07-15  Ben Wing  <ben@xemacs.org>
12345
12346         * s/cygwin32.h:
12347         * s/cygwin32.h (CYGWIN_CONV_PATH):
12348         Add missing logb prototype for v1.1.
12349         Use post-b20 names and alias to pre-b20 names when pre-b20.
12350
12351         * s/windowsnt.h: [5].
12352
12353 2000-07-15  Ben Wing  <ben@xemacs.org>
12354
12355         * Makefile.in.in (x_objs):
12356         * Makefile.in.in (sheap_objs):
12357         * Makefile.in.in (objs):
12358         added win32.o, cosmetic cleanups.
12359
12360         * alloc.c (Fmake_byte_code):
12361         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12362         etc. macros which declare their own args now.
12363
12364         * alloc.c (syms_of_alloc):
12365         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12366
12367         * buffer.c:
12368         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12369
12370         * buffer.c (Fget_file_buffer):
12371         Fixed GCPRO problem.
12372
12373         * buffer.c (get_truename_buffer):
12374         Fixed comment about GC checking.
12375
12376         * buffer.c (syms_of_buffer):
12377         Undeclared those dedicated frame funs.
12378         [2].
12379
12380         * buffer.h:
12381         Define convenience macros for internal/external conversions.
12382         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12383         and Qenvironment_variable_encoding for cleaner code.
12384
12385         * bufslots.h:
12386         Remove dedicated-frame; in lisp.
12387
12388         * bytecode.c (funcall_compiled_function):
12389         [1].
12390
12391         * bytecode.c (syms_of_bytecode):
12392         [2].
12393
12394         * console-msw.c:
12395         * console-msw.c (mswindows_show_console): Rewrote.
12396
12397         * console-msw.c (Fmswindows_debugging_output): New.
12398         Sends to OutputDebugString (special MSWin debugger interface).
12399
12400         * console-msw.c (Fmswindows_message_box):
12401         Fixed stupid bugs so it works when called from kill-emacs.
12402
12403         * console-msw.c (syms_of_console_mswindows):
12404         Declare Fmswindows_debugging_output.
12405
12406         * console-msw.h:
12407         New MSWin prototypes.
12408
12409         * console-msw.h (struct mswindows_frame):
12410         New entry last-click-mods for improved button-modifier support.
12411
12412         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12413         New struct entry `popup' with corresponding accessor.
12414
12415         * console-x.c:
12416         * console-x.c (split_up_display_spec):
12417         * console-x.c (get_display_arg_connection):
12418         * console-x.c (x_semi_canonicalize_console_connection):
12419         * console-x.c (x_canonicalize_device_connection):
12420         [[[6]]]: Change char to more specific type.
12421         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12422
12423         * console-x.c (x_semi_canonicalize_console_connection):
12424         * console-x.c (x_canonicalize_device_connection):
12425         [[[9]]]: Fix up error signalling to use new structured error system.
12426
12427         * console-x.h:
12428         [[[4]]]: Define codesys aliases:
12429         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12430         Qx_color_name_encoding, Qx_display_name_encoding.
12431
12432         * console.h (struct console_methods):
12433         New method make_dialog_box_internal supersedes older
12434         popup_dialog_box method.
12435
12436         * data.c:
12437         Define many new errors, part of new structured errors.
12438
12439         * data.c (init_errors_once_early):
12440         * data.c (syms_of_data):
12441         [2].
12442
12443         * device-msw.c (mswindows_init_device):
12444         [[[5]]]: Cleanup to support NT 3.51.
12445
12446         * device-msw.c (decode_devmode): Cleanup.
12447
12448         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12449         * device-msw.c (mswindows_handle_print_dialog_box):
12450         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12451         * device-msw.c (syms_of_device_mswindows):
12452         Delete the dialog box primitives recently introduced by Kirill and
12453         instead interface to general dialog box interface.
12454
12455         * device-x.c:
12456         * device-x.c (compute_x_app_name):
12457         * device-x.c (x_init_device):
12458         * device-x.c (Fx_valid_keysym_name_p):
12459         * device-x.c (Fx_set_font_path):
12460         [6].
12461         [7].
12462
12463         * device.h (wrap_device): New.
12464         First of its kind; meant to replace XSETDEVICE.
12465
12466         * dialog-msw.c: Many file-dialog symbols.
12467
12468         * dialog-msw.c (mswindows_register_popup_frame): New.
12469         * dialog-msw.c (mswindows_is_dialog_msg): New.
12470         For supporting kbd traversal in dialog boxes.
12471
12472         * dialog-msw.c (dialog_proc):
12473         Support hitting ESC in dialogs.
12474
12475         * dialog-msw.c (struct):
12476         Common dialog box errors.
12477
12478         * dialog-msw.c (handle_file_dialog_box): New.
12479         Add file dialog code.
12480
12481         * dialog-msw.c (handle_question_dialog_box):
12482         Redo existing code to support new question dialog syntax.
12483
12484         * dialog-msw.c (console_type_create_dialog_mswindows):
12485         We support new dialog console method.
12486
12487         * dialog-msw.c (syms_of_dialog_mswindows):
12488         * dialog-msw.c (vars_of_dialog_mswindows):
12489         New file dialog symbols, vars.
12490
12491         * dialog-x.c:
12492         * dialog-x.c (maybe_run_dbox_text_callback):
12493         * dialog-x.c (dbox_descriptor_to_widget_value):
12494         * dialog-x.c (x_make_dialog_box_internal):
12495         * dialog-x.c (console_type_create_dialog_x):
12496         Mule-ize entire file.
12497         Redo to support question dialog syntax.
12498         [6].
12499
12500         * dialog.c:
12501         * dialog.c (Fmake_dialog_box_internal):
12502         * dialog.c (syms_of_dialog):
12503         Kill old popup-dialog-box, replace with new primitive.
12504         Just call device method or signal error.
12505
12506         * eldap.c (Fldap_open):
12507         * eldap.c (Fldap_search_basic):
12508         * eldap.c (Fldap_add):
12509         * eldap.c (Fldap_modify):
12510         [1].
12511         [7].
12512
12513         * emacs.c:
12514         * emacs.c (make_arg_list_1):
12515         * emacs.c (make_arg_list):
12516         Mule-ize call to dll_init().
12517         [6].
12518         [8].
12519
12520         * emacs.c (make_argc_argv):
12521         * emacs.c (free_argc_argv):
12522         * emacs.c (init_cmdargs):
12523         * emacs.c (main_1):
12524         * emacs.c (Fkill_emacs):
12525         * emacs.c (Fdump_emacs):
12526         Update comments about what can be used in syms_* etc.
12527         Call init_win32() when necessary.
12528         Fix up MS Win dialog box in kill-buffer to actually work right.
12529         [7].
12530
12531         * eval.c:
12532         * eval.c (For):
12533         * eval.c (Fand):
12534         * eval.c (Fprogn):
12535         * eval.c (Fprog1):
12536         * eval.c (Fprog2):
12537         * eval.c (FletX):
12538         * eval.c (Flet):
12539         * eval.c (condition_case_3):
12540         * eval.c (Feval):
12541         * eval.c (function_argcount):
12542         * eval.c (funcall_lambda):
12543         [1].
12544
12545         * eval.c (type_error): New.
12546         * eval.c (maybe_type_error): New.
12547         * eval.c (continuable_type_error): New.
12548         * eval.c (maybe_continuable_type_error): New.
12549         * eval.c (type_error_with_frob): New.
12550         * eval.c (maybe_type_error_with_frob): New.
12551         * eval.c (continuable_type_error_with_frob): New.
12552         * eval.c (maybe_continuable_type_error_with_frob): New.
12553         New functions for use with structured errors.
12554
12555         * event-Xt.c:
12556         * event-Xt.c (x_event_to_emacs_event):
12557         Buttons are now modifiers too.
12558
12559         * event-Xt.c (emacs_Xt_current_event_timestamp):
12560         Implement new event method.
12561         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12562
12563         * event-msw.c:
12564         * event-msw.c (ntpipe_shove_writer): [5].
12565         * event-msw.c (mswindows_enqueue_mouse_button_event):
12566         * event-msw.c (mswindows_drain_windows_queue):
12567         * event-msw.c (mswindows_wnd_proc): [7].
12568         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12569         * event-msw.c (mswindows_modifier_state):
12570         Throughout: support new button modifiers.
12571
12572         * event-msw.c (emacs_mswindows_current_event_timestamp):
12573         Implement new event method.
12574         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12575
12576         * event-stream.c:
12577         * event-stream.c (event_stream_current_event_timestamp): New.
12578         * event-stream.c (maybe_kbd_translate): New functionality.
12579         * event-stream.c (vars_of_event_stream):
12580         Document new kbd-translate-table functionality.
12581
12582         * event-stream.c (Fcurrent_event_timestamp): New.
12583         New primitive for use in fabricated events.
12584         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12585
12586         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12587
12588         * events.c:
12589         * events.c (Fmake_event):
12590         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12591         [1].
12592         [9].
12593
12594         * events.c (format_event_object): fix gcc warnings.
12595
12596         * events.c (Fevent_timestamp): Document new primitives.
12597
12598         * events.c (TIMESTAMP_HALFSPACE): New.
12599
12600         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12601         comparing timestamps correctly (half-space algorithm).
12602
12603         * events.c (Fevent_modifier_bits): Doc fix.
12604
12605         * events.c (Fevent_modifiers): Major doc addition.
12606         * events.c (event_x_y_pixel_internal): Typo fix.
12607         * events.c (syms_of_events): Declare new primitives.
12608
12609         * events.h:
12610         Update long comment for button modifiers, timestamps.
12611
12612         * events.h (struct event_stream):
12613         New current_event_timestamp method.
12614
12615         * extents.c:
12616         * extents.c (extent_in_region_p):
12617         * extents.c (decode_extent):
12618         * extents.c (Fset_extent_parent):
12619         * extents.c (decode_map_extents_flags):
12620         Fix gcc warnings.
12621         [9].
12622
12623         * extents.c (struct extent_at_arg):
12624         * extents.c (decode_extent_at_flag):
12625         * extents.c (extent_at_mapper):
12626         * extents.c (extent_at_bytind):
12627         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12628         * extents.c (Fextents_at): New primitive. [9].
12629         * extents.c (symbol_to_glyph_layout): [9].
12630         Support new primitive `extents-at'.
12631
12632
12633         * extents.c (get_text_property_bytind):
12634         extent_at_bytind has another arg.
12635         [9].
12636
12637         * extents.c (syms_of_extents): New primitive.
12638
12639         * file-coding.c (Fmake_coding_system): [1].
12640         * file-coding.c (subsidiary_coding_system): fix gcc warning
12641         * file-coding.c (syms_of_file_coding): [2].
12642
12643         * fileio.c (Fexpand_file_name):
12644         * fileio.c (Fsysnetunam):
12645         * fileio.c (Ffile_exists_p):
12646         * fileio.c (Ffile_executable_p):
12647         * fileio.c (Fverify_visited_file_modtime):
12648         Clean up GCPROing.
12649
12650         * fileio.c (syms_of_fileio): [2].
12651
12652         * filelock.c (lock_file_1):
12653         * filelock.c (current_lock_owner):
12654         * filelock.c (lock_if_free):
12655         * filelock.c (lock_file):
12656         * filelock.c (unlock_file):
12657         Clean up GCPROing.
12658
12659         * fns.c (concat): Fix gcc warning.
12660
12661         * fns.c (Fmember):
12662         * fns.c (Fold_member):
12663         * fns.c (Fmemq):
12664         * fns.c (Fold_memq):
12665         * fns.c (memq_no_quit):
12666         * fns.c (Fassoc):
12667         * fns.c (Fold_assoc):
12668         * fns.c (Fassq):
12669         * fns.c (Fold_assq):
12670         * fns.c (assq_no_quit):
12671         * fns.c (Frassoc):
12672         * fns.c (Fold_rassoc):
12673         * fns.c (Frassq):
12674         * fns.c (Fold_rassq):
12675         * fns.c (rassq_no_quit):
12676         * fns.c (Fdelete):
12677         * fns.c (Fold_delete):
12678         * fns.c (Fdelq):
12679         * fns.c (Fold_delq):
12680         * fns.c (delq_no_quit):
12681         * fns.c (Fremassoc):
12682         * fns.c (Fremassq):
12683         * fns.c (remassq_no_quit):
12684         * fns.c (Fremrassoc):
12685         * fns.c (Fremrassq):
12686         * fns.c (remrassq_no_quit):
12687         * fns.c (Freverse):
12688         * fns.c (mapcar1):
12689         [1].
12690
12691         * frame-msw.c (mswindows_init_frame_1):
12692         * frame-msw.c (mswindows_delete_frame):
12693         Register popups with dialog code so keyboard traversing works.
12694
12695         * frame-tty.c (tty_raise_frame_no_select): [1].
12696
12697         * frame-x.c:
12698         * frame-x.c (x_set_frame_text_value):
12699         * frame-x.c (x_set_frame_properties):
12700         * frame-x.c (x_create_widgets):
12701         [7].
12702
12703         * frame.c:
12704         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12705
12706         * frame.h (wrap_frame): New.
12707         Macro like wrap_device.
12708
12709         * general.c:
12710         * general.c (SYMBOL):
12711         * general.c (syms_of_general):
12712         Major reorg.  This is now just a wrapper and symbols themselves
12713         are listed in general-slots.h.
12714
12715         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12716         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12717
12718         * glyphs-msw.c (mswindows_native_layout_instantiate):
12719         Add DS_CONTROL so keyboard traversal will work.
12720
12721         * glyphs-widget.c:
12722         * glyphs-widget.c (syms_of_glyphs_widget):
12723         Move some symbols to general-slots.h.
12724
12725         * glyphs-x.c:
12726         * glyphs-x.c (xbm_instantiate_1):
12727         * glyphs-x.c (x_xbm_instantiate):
12728         * glyphs-x.c (x_xface_instantiate):
12729         * glyphs-x.c (autodetect_instantiate):
12730         * glyphs-x.c (cursor_font_instantiate):
12731         * glyphs-x.c (x_update_widget):
12732         * glyphs-x.c (x_widget_instantiate):
12733         * glyphs.c (bitmap_to_lisp_data):
12734         * glyphs.c (pixmap_to_lisp_data):
12735         [7].
12736
12737         * glyphs.c (syms_of_glyphs):
12738         [2].
12739
12740         * gui-x.c:
12741         * gui-x.c (print_widget_value):
12742         * gui-x.c (menu_separator_style_and_to_external):
12743         * gui-x.c (add_accel_and_to_external):
12744         * gui-x.c (button_item_to_widget_value):
12745         * gui-x.c (gui_items_to_widget_values_1):
12746         * gui-x.c (gui_items_to_widget_values):
12747         * gui-x.c (syms_of_gui_x):
12748         * gui-x.c (vars_of_gui_x):
12749         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12750         [9].
12751
12752         * gui-x.h:
12753         Muleize, prototype changes matching gui-x.c.
12754
12755         * gui.c:
12756         * gui.c (separator_string_p):
12757         * gui.c (gui_item_add_keyval_pair):
12758         * gui.c (make_gui_item_from_keywords_internal):
12759         * gui.c (signal_too_long_error):
12760         * gui.c (parse_gui_item_tree_item):
12761         * gui.c (syms_of_gui):
12762         * gui.c (vars_of_gui):
12763         * gui.h:
12764         menu-no-selection-hook moved here (used by MSWin).
12765         Move some symbols to general-slots.h.
12766         [6].
12767         [9].
12768
12769         * insdel.c (get_buffer_pos_char):
12770         * insdel.c (get_buffer_range_char):
12771         Add GC comments.
12772
12773         * keymap.c (keymap_lookup_directly):
12774         * keymap.c (keymap_store):
12775         * keymap.c (ensure_meta_prefix_char_keymapp):
12776         * keymap.c (describe_map):
12777         * keymap.h:
12778         Support new button modifiers.
12779
12780         * lisp-disunion.h (wrap_object):
12781         * lisp-disunion.h (XSETOBJ):
12782         Rename make_obj to wrap_object.
12783
12784         * lisp-union.h:
12785         * lisp-union.h (make_int):
12786         * lisp-union.h (make_char):
12787         Support wrap_object.
12788
12789         * lisp.h:
12790         * lisp.h (LIST_LOOP):
12791         * lisp.h (EXTERNAL_LIST_LOOP):
12792         * lisp.h (LIST_LOOP_2):
12793         * lisp.h (EXTERNAL_LIST_LOOP_1):
12794         * lisp.h (EXTERNAL_LIST_LOOP_2):
12795         * lisp.h (EXTERNAL_LIST_LOOP_3):
12796         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12797         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12798         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12799         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12800         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12801         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12802         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12803         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12804         * lisp.h (struct Lisp_Symbol):
12805         * lisp.h (maybe_continuable_error_with_frob):
12806         Fix up section comments.
12807         Add new types for char to indicate usage.
12808         Delete symbols auto-generated from general-slots.h.
12809         Add prototypes for structured error functions.
12810         Add long comments describing looping macros and change interface
12811         so that lvalues are automatically declared.
12812         Add NO_DECLARE macro in case callers want to declare lvalues
12813         themselves.
12814
12815         * lread.c (read_syntax_error):
12816         * lread.c (continuable_read_syntax_error):
12817         * lread.c (read_structure):
12818         * lread.c (sequence_reader):
12819         * lread.c (read_list_conser):
12820         * lread.c (read_compiled_function):
12821         Rename syntax_error and continuable_syntax_error to avoid clash
12822         with same-named structured error functions.
12823
12824         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12825         * menubar-msw.c (populate_menu_add_item):
12826         * menubar-msw.c (populate_or_checksum_helper):
12827         [5].
12828         [9].
12829
12830         * menubar-x.c:
12831         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12832         Mule-ize whole file.
12833
12834         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12835
12836         * mule-charset.c (Fmake_charset):
12837         * mule-wnnfns.c (Fwnn_set_param):
12838         [1].
12839
12840         * ntproc.c (create_child):
12841         * ntproc.c (Fwin32_set_current_locale):
12842         Add comments portending doom.
12843
12844         * objects-msw.c:
12845         * objects-msw.c (old_font_enum_callback_2):
12846         * objects-msw.c (font_enum_callback_1):
12847         * objects-msw.c (mswindows_enumerate_fonts):
12848         [5].
12849
12850         * objects-x.c:
12851         * objects-x.c (allocate_nearest_color):
12852         * objects-x.c (x_parse_nearest_color):
12853         * objects-x.c (x_initialize_color_instance):
12854         * objects-x.c (x_print_color_instance):
12855         * objects-x.c (x_finalize_color_instance):
12856         * objects-x.c (x_valid_color_name_p):
12857         * objects-x.c (x_initialize_font_instance):
12858         * objects-x.c (x_print_font_instance):
12859         * objects-x.c (valid_x_font_name_p):
12860         * objects-x.c (truename_via_FONT_prop):
12861         * objects-x.c (truename_via_random_props):
12862         * objects-x.c (truename_via_XListFonts):
12863         * objects-x.c (x_font_truename):
12864         * objects-x.c (x_font_instance_truename):
12865         * objects-x.c (x_font_instance_properties):
12866         * objects-x.c (x_list_fonts):
12867         * objects-x.c (x_find_charset_font):
12868         Mule-ize entire file.
12869         [7].
12870
12871         * objects-x.h:
12872         Mule-verify.
12873
12874         * print.c:
12875         * print.c (std_handle_out_external):
12876         * print.c (debug_print_no_newline):
12877         * print.c (syms_of_print):
12878         Output to all debugger kinds in debug-print.
12879         Fix console-output code under MSWin to actually work.
12880
12881         * process-nt.c (send_signal):
12882         * process-nt.c (nt_create_process):
12883         Use newer Unicode macros.
12884
12885         * process-unix.c (unix_create_process):
12886         * process-unix.c (unix_canonicalize_host_name):
12887         * process-unix.c (unix_open_network_stream):
12888         [7].
12889
12890         * scrollbar-x.c:
12891         Mule-verify.
12892
12893         * search.c (syms_of_search):
12894         [2].
12895
12896         * select-msw.c (mswindows_destroy_selection):
12897         Use LIST_LOOP_2.
12898
12899         * select-x.c (symbol_to_x_atom):
12900         [7].
12901
12902         * select.c (syms_of_select):
12903         [2].
12904
12905         * sound.c (Fplay_sound_file):
12906         [7].
12907
12908         * specifier.c:
12909         * specifier.c (decode_specifier_type):
12910         * specifier.c (Fvalid_specifier_locale_type_p):
12911         * specifier.c (check_valid_locale_or_locale_type):
12912         * specifier.c (decode_locale):
12913         * specifier.c (decode_locale_type):
12914         * specifier.c (decode_locale_list):
12915         * specifier.c (check_valid_domain):
12916         * specifier.c (decode_specifier_tag_set):
12917         * specifier.c (Fcanonicalize_tag_set):
12918         * specifier.c (Fdefine_specifier_tag):
12919         * specifier.c (Fspecifier_tag_predicate):
12920         * specifier.c (check_valid_inst_list):
12921         * specifier.c (check_valid_spec_list):
12922         * specifier.c (decode_how_to_add_specification):
12923         * specifier.c (check_modifiable_specifier):
12924         * specifier.c (specifier_add_spec):
12925         * specifier.c (boolean_validate):
12926         * specifier.c (display_table_validate):
12927         [9].
12928
12929         * specifier.c (syms_of_specifier):
12930         Move some symbols to general-slots.h.
12931         [2].
12932
12933         * symbols.c:
12934         * symbols.c (Fmapatoms):
12935         * symbols.c (Fapropos_internal):
12936         Add GCPROs.
12937
12938         * symbols.c (set_default_buffer_slot_variable):
12939         * symbols.c (set_default_console_slot_variable):
12940         [1].
12941
12942         * symbols.c (defsymbol_massage_name_1):
12943         * symbols.c (defkeyword_massage_name):
12944         * symbols.c (deferror_1):
12945         * symbols.c (deferror):
12946         * symbols.c (deferror_massage_name_and_message):
12947         * symeval.h:
12948         * symeval.h (DEFSYMBOL):
12949         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12950
12951         * symbols.c (syms_of_symbols):
12952         [2].
12953
12954         * symsinit.h:
12955         * symsinit.h (init_win32): New.
12956         Also new is syms_of_dialog_mswindows.
12957
12958         * syswindows.h:
12959         Add new Unicode macros, missing Cygwin wide-char functions,
12960         convenience conversion macros for Qmswindows_tstr, macros for
12961         encapsulating required MSWin <-> Cygwin filename conversions,
12962         prototype for dynamically-extracted (not in NT 3.51) functions.
12963
12964         * toolbar-x.c:
12965         Mule-verify.
12966
12967         * tooltalk.c (Fadd_tooltalk_message_arg):
12968         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12969         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12970         [7].
12971
12972         * tooltalk.c (syms_of_tooltalk):
12973         [2].
12974
12975         * unexnt.c:
12976         * unexnt.c (unexec):
12977         Fix up headers, declaration of unexec() to be more standard.
12978
12979 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12980
12981         * offix.h: Revert change to guard macros - they're used in offix.c!
12982
12983 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12984
12985         * lisp.h: Defsubred Fdelete.
12986
12987         * console-msw.h:  (msprinter_default_printer): Added.
12988
12989         * console-msw.c (msprinter_canonicalize_console_connection):
12990         (msprinter_canonicalize_device_connection): Added.
12991
12992         * device-msw.c (msprinter_default_printer):
12993         (Fmswingows_get_default_printer):
12994         (signal_enum_priner_error):
12995         (Fmswingows_printer_list): Added.
12996
12997 2000-07-19  Martin Buchholz <martin@xemacs.org>
12998
12999         * XEmacs 21.2.35 is released.
13000
13001 2000-07-19  Martin Buchholz  <martin@xemacs.org>
13002
13003         * select-x.c (x_handle_selection_request):
13004         Text selected in xemacs and pasted into xterm failed to appear.
13005         Spelling fixes and cosmetic changes.
13006
13007 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13008
13009         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
13010         XEmacs frame (fix for doubling chars in dialog boxes).
13011
13012 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
13013
13014         * select.c (select_convert_in, select_convert_out):
13015         Don't call intern() every time.
13016
13017         * select.c (Qselect_convert_in, Qselect_convert_out): New.
13018         * select.c (vars_of_select): Initialise them.
13019
13020 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
13021
13022         * select.c (selection-coercible-types): New.
13023
13024         * select.c (own-selection-internal):
13025         * select.c (get-selection-internal):
13026         MULE bug fix - these should default to COMPOUND_TEXT and not
13027         STRING for MULE. I think.
13028
13029         * select.c (select_convert_out): Use selection-coercible-types
13030         to find types that we can attempt to perform coercions on.
13031
13032 2000-07-18  Martin Buchholz  <martin@xemacs.org>
13033
13034         * mule-wnnfns.c:
13035         * mule-canna.c:
13036         Add coding: cookie to identify encoding.
13037
13038         * mule-canna.c (CANNA_mode_keys): make static.
13039         Use proper prototypes, even for functions of no arguments.
13040         Remove external prototype for Fding().
13041
13042         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
13043
13044         * select.c (syms_of_select): Add missing DEFSUBR.
13045
13046 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
13047
13048         * select.c (get_selection_internal, own_selection_internal):
13049         Make the type default to STRING, rather than placing a nil type
13050         into Vselection_alist.
13051
13052 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
13053
13054         * gpmevent.c (tty_selection_exists_p):
13055         * gpmevent.c (tty_own_selection):
13056         Updated parameter lists.
13057
13058 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
13059
13060         * select.h (selection-alist): Removed declaration.
13061
13062         * select.h (get_local_selection):
13063         * select.c (get_local_selection):
13064         Made static.
13065
13066         * select.h (convert_selection): Removed declaration.
13067         * select.c (convert_selection): Removed.
13068         This function belongs in Lisp.
13069
13070         * select.h (select_convert_in): Declare.
13071         * select.h (select_convert_out): Declare.
13072         * select.c (select_convert_in): New.
13073         * select.c (select_convert_out): New.
13074         New conversion functions for other files to call.
13075
13076         * select.h (select_notify_buffer_kill): Declare.
13077         * select.c (select_notify_buffer_kill): New.
13078         New functions that get called from kill-buffer.
13079
13080         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
13081         X-specific lisp code.
13082
13083         * select.h: Declare some of the lisp-visible functions for
13084         external use.
13085
13086         * select.c (clean_local_selection_data): Removed. This was
13087         a disgusting function, and previously should have been in
13088         select-x.c in any case. The functionality is now provided
13089         in select-convert-from-integer (select.el).
13090
13091         * select.c (available-selection-types): Fixed stupidity where
13092         INTEGER and ATOM got added twice. Also add STRING when we see an
13093         extent.
13094
13095         * select.c (get-selection-internal): Removed symbol stripping. No
13096         longer causes conversion when data comes from the internal cache.
13097
13098         * select.c (syms_of_select): Added new functions.
13099
13100         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
13101         error checking - previously this called abort!
13102
13103         * select-x.c (x_own_selection): Changed comment.
13104
13105         * select-x.c (x_handle_selection_request): Use select_convert_out.
13106         Don't mess with selection-alist; it's an internal variable of select.c.
13107
13108         * select-x.c (x_get_foreign_selection): Use select_convert_in.
13109
13110         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
13111         rather than messing with selection-alist.
13112
13113         * select-msw.c (mswindows_get_foreign_selection):
13114         Use TO_INTERNAL_FORMAT rather than hacking.
13115
13116 2000-07-14  Martin Buchholz  <martin@xemacs.org>
13117
13118         * process-unix.c (unix_open_multicast_group):
13119         (unix_open_multicast_group): Remove useless casts.
13120
13121 2000-07-13  Martin Buchholz  <martin@xemacs.org>
13122
13123         * sound.c (Fplay_sound): Fix `unused variable' warning.
13124
13125         * emacs.c (main): Use correct type for _environ on SCO5.
13126
13127 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
13128
13129         * console.h (own_selection_method):
13130         * console.h (selection_exists_p_method):
13131         * console.h (available_selection_types_method): New.
13132         * console.h (register_selection_data_type_method): New.
13133         * console.h (selection_data_type_name): New.
13134
13135         * console-msw.h (mswindows_destroy_selection): Declare it.  New
13136         function & alist to track GlobalAlloc()'d handles that need
13137         releasing when the clipboard data gets replaced or emptied.
13138
13139         * event-msw.c (mswindows_wnd_proc): Call it.
13140
13141         * lisp.h, general.c (Qappend): New symbol representing a
13142         `how-to-add' mode.
13143
13144         * select.c (own-selection-internal):
13145         * select.c (selection-exists-p):
13146         * select.c (available-selection-types): New.
13147         * select.c (register-selection-data-type): New.
13148         * select.c (selection-data-type-name): New.  New functions to deal
13149         with device-specific selection data formats.
13150         * select.c (selection-converter-out-alist): Renamed.
13151         * select.c (selection-converter-in-alist): New.
13152         * select.c (selection-appender-alist): New.  Added new alists.
13153         * select.c (syms_of_select, vars_of_select): Added new symbols &
13154         variables.
13155         * select.c (get_local_selection): Split.
13156         * select.c: Removed spurious type checking - selections may now be
13157         of any type, not just strings.
13158         * select.c (own-selection-internal):
13159
13160         * select.h, select.c (convert_selection): New. Created
13161         convert_selection() function based on get_local_selection().
13162         * select.h, select.c (QCF_*): New symbols representing mswindows
13163         clipboard formats.
13164         * select.h, select.c (Qreplace_all, Qreplace_existing): New
13165         symbols representing `how-to-add' modes.
13166
13167         * select-msw.c (x_sym_p): New.
13168         * select-msw.c (symbol_to_ms_cf): New.
13169         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
13170         symbols & clipboard formats. Can also handle string names.
13171         * select-msw.c (mswindows_own_selection):
13172         * select-msw.c (mswindows_selection_exists_p):
13173         Added `data-type' parameter. Use it.
13174         * select-msw.c (mswindows_available_selection_types): New.
13175         * select-msw.c (mswindows_register_selection_data_type): New.
13176         * select-msw.c (mswindows_selection_data_type_name): New.
13177         * select-msw.c (mswindows_own_selection):
13178         * select-msw.c (mswindows_get_foreign_selection):
13179         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
13180         * select-msw.c (console_create_select_mswindows): Added new methods.
13181         * select-msw.c (mswindows_destroy_selection): New.
13182         * select-msw.c (Vhandle_alist): New list.
13183         * select-msw.c (mswindows_own_selection):
13184
13185         * select-x.c (x_own_selection):
13186         * select-x.c (x_selection_exists_p):
13187         * select-x.c: Added some comments about maybe using new
13188         functionality.
13189         * select-x.c (x_own_selection):
13190
13191         * specifier.c: Remove definition of Qappend (now in general.c)
13192         * specifier.c (syms_of_specifier): Remove Qappend.
13193
13194 2000-07-12  Martin Buchholz  <martin@xemacs.org>
13195
13196         * config.h.in: Add socklen_t.
13197
13198         * s/decosf4-0.h: No special compiler flags needed or desired.
13199         In particular, undefine _BSD for DEC OSF 4.0.
13200
13201 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13202
13203         * redisplay-msw.c (msprinter_frame_output_end): Added.
13204         (console_type_create_redisplay_mswindows): Referred the above.
13205
13206         * frame.c (setup_frame_without_minibuffer): Do not create a
13207         default minibuffer frame on a printer device.
13208
13209         * frame-msw.c (apply_dc_geometry): Added.
13210         (msprinter_start_page):
13211         (msprinter_init_frame_3):
13212         (msprinter_eject_page): Use it.
13213
13214         * console-msw.h (struct msprinter_frame): Added pix_left and top,
13215         and removed residual duplex and orientation properties.
13216
13217 2000-07-11  Martin Buchholz  <martin@xemacs.org>
13218
13219         * eval.c (function_argcount): Work around a DEC CC compiler bug.
13220
13221         * unexalpha.c: Remove system prototypes from C sources!
13222
13223 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
13224
13225         * eval.c: Remove references to M-x edit-options in DEFUNs for
13226         `defvar' and `defconst'.
13227
13228 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13229
13230         * config.h.in: Remove SMART_INCLUDE hackery.
13231
13232         PostgreSQL hacking:
13233         * config.h.in: Don't use SMART_INCLUDE.
13234
13235         * postgresql.h: Include libpq-fe.h here.  Fix typo.
13236         * inline.c: Simply #include "postgresql.h"
13237         * postgresql.c:
13238         - Don't use SMART_INCLUDE
13239         - Use simply "const".
13240         - Use standard doc string conventions.
13241         - Use correct type for result of PQstatus.
13242
13243 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13244
13245         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
13246
13247         C++ compilation changes.
13248         * config.h.in (EXTERN_C): Define.
13249         * config.h.in (not): This is also a C++ keyword.
13250         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
13251         * cm.c: Use EXTERN_C.
13252         * redisplay-tty.c: Use EXTERN_C.
13253         * sysdep.c: Use EXTERN_C.  Remove Gould support.
13254
13255 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13256
13257         * general.c: Remove duplicate definition for Qfunction.
13258
13259 2000-07-08  Ben Wing  <ben@xemacs.org>
13260
13261         * device-msw.c (msprinter_init_device):
13262         * device-msw.c (sync_printer_with_devmode):
13263         * device-msw.c (handle_devmode_changes):
13264         * device-msw.c (print_dialog_worker):
13265         * device-msw.c (Fmsprinter_apply_settings):
13266         * device-msw.c (hash_devmode):
13267         * device-msw.c (Fmsprinter_settings_despecialize):
13268         use Qmswindows_tstr, not Qctext.
13269
13270         * vm-limit.c (check_memory_limits):
13271         avoid infinite loop printing warning messages.
13272
13273 2000-07-05  Craig Lanning  <lanning@scra.org>
13274
13275         * Makefile.in.in: Add support for including the Windows resources
13276         when building with the cygwin and mingw targets.
13277
13278         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
13279         not set or not correct.
13280         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
13281         (init_initial_directory): Don't try to use $PWD on the
13282         WIN32_NATIVE target.
13283
13284         * s\cygwin32.h:
13285         [[Add -mwindows to eliminate console window.]] not required --ben
13286         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13287         (MAIL_USE_POP): removed; now handled by configure.
13288
13289         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
13290         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
13291         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13292         (MAIL_USE_POP): removed; now handled by configure.
13293         (ENCAPSULATE_STAT): from Dan Holmsand, added.
13294         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
13295         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
13296         constant string.
13297         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
13298         up from <winsock.h> via systime.h.
13299         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
13300         (getpagesize): from Dan Holmsand, added.
13301         Added #endif which was left dangling by Ben's mega patch; added
13302         comment to help prevent this in the future.
13303
13304         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
13305
13306 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13307
13308         * console-msw.h (struct mswindows_device): Removed unnecessary
13309         cached device geometry values.
13310         Added update_tick and an accessor macro.
13311         (Lisp_Devmode): Added lrecord declaration.
13312         (struct msprinter_device): Contain devmode as a Lisp object.
13313         Added mswindows_get_selected_frame_hwnd();
13314
13315         * console.h (struct console_methods): Indentation nitpicking.
13316
13317         * device-msw.c (mswindows_init_device): Do not initialize geometry
13318         cache. Initialize update tick.
13319         (mswindows_device_system_metrics): Ask the device for its geometry.
13320         (global_free_2_maybe):
13321         (devmode_to_hglobal):
13322         (handle_printer_changes):
13323         (ensure_not_printing):
13324         (print_dialog_worker):
13325         (Fmsprinter_print_setup_dialog):
13326         (Fmsprinter_print_dialog):
13327         (plist_get_margin):
13328         (plist_set_margin):
13329         (Fmsprinter_page_setup_dialog): Added functions.
13330         (sync_printer_with_devmode):
13331         (handle_devmode_changes):
13332         (Fmsprinter_get_settings):
13333         (Fmsprinter_select_settings):
13334         (Fmsprinter_apply_settings):
13335         (allocate_devmode):
13336         (Fmsprinter_settings_copy):
13337         (Fmsprinter_settings_despecialize):
13338         (print_devmode):
13339         (finalize_devmode):
13340         (equal_devmode):
13341         (hash_devmode): Added functions
13342         (syms_of_device_mswindows): Init devmode lrecord class.
13343
13344         * device.h: Added an exfun for find-device.
13345
13346         * event-msw.c (mswindows_wnd_proc): Do not update the cached
13347         geometry; although, recreate the device compatible DC.
13348
13349         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13350         (msprinter_init_frame_3):
13351         (msprinter_frame_property):
13352         (msprinter_internal_frame_property_p):
13353         (msprinter_frame_properties):
13354         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13355         print job properties (will move to device settings).
13356
13357         * lisp.h: Added symbols.
13358
13359         * general.c (syms_of_general): Declared them.
13360
13361         * hash.c (string_hash): Added.
13362
13363         * lrecord.h (lrecord_type): Added devmode lrecord type.
13364
13365 2000-07-02  Mike Sperber <mike@xemacs.org>
13366
13367         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13368         FreeBSD 4.0.
13369
13370 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13371
13372         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13373         integer.
13374
13375 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13376
13377         * data.c (Fstring_to_number): Don't recognize floating point if
13378         base is not 10.
13379
13380 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13381
13382         * glyphs-widget.c (tab_control_query_geometry):
13383         (widget_query_geometry):
13384         (button_query_geometry):
13385         * glyphs.c (text_query_geometry):
13386         Enforce type correctness.
13387
13388 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13389
13390         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13391         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13392
13393 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13394
13395         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13396         conflicts with gcc's fixincluded version of FOO.h.
13397
13398         * glyphs.h (image_instance_geometry): Remove trailing `,'
13399
13400 2000-06-08  Mike Alexander  <mta@arbortext.com>
13401
13402         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13403         (shove_thread): Don't write the same output twice
13404         (make_ntpipe_output_stream): Increase priority of shove thread
13405         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13406         chance to run
13407         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13408         it.
13409
13410 2000-06-12  Ben Wing  <ben@xemacs.org>
13411
13412         * s\mingw32.h (sigset):
13413         * s\windowsnt.h (sigset):
13414         rename msw_ to mswindows_ for consistency with general convention.
13415
13416 2000-06-12  Ben Wing  <ben@xemacs.org>
13417
13418         * console-msw.c:
13419         * console-msw.c (mswindows_get_console_hwnd):
13420         * console-msw.c (mswindows_ensure_console_allocated):
13421         * console-msw.c (mswindows_hide_console):
13422         * console-msw.c (mswindows_show_console):
13423         * console-msw.c (mswindows_ensure_console_buffered):
13424         * console-msw.c (mswindows_output_console_string):
13425         * console-msw.c (mswindows_windows9x_p):
13426         * console-msw.h:
13427         * device-msw.c (mswindows_get_workspace_coords):
13428         * device-msw.c (mswindows_device_system_metrics):
13429         * dialog-msw.c (mswindows_popup_dialog_box):
13430         * event-msw.c (mswindows_wnd_proc):
13431         * frame-msw.c (mswindows_size_frame_internal):
13432         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13433         * menubar-msw.c (displayable_menu_item):
13434         * menubar-msw.c (mswindows_char_is_accelerator):
13435         * nt.c:
13436         * nt.c (mswindows_sigset):
13437         * nt.c (mswindows_sigrelse):
13438         * nt.c (mswindows_sigpause):
13439         * nt.c (mswindows_raise):
13440         * nt.c (timer_proc):
13441         * ntproc.c:
13442         * ntproc.c (find_child_console):
13443         * ntproc.c (sys_kill):
13444         * print.c:
13445         * print.c (std_handle_out_external):
13446         * process-nt.c (find_child_console):
13447         * process-nt.c (send_signal_the_95_way):
13448         * process-nt.c (ensure_console_window_exists):
13449         * process-nt.c (nt_create_process):
13450         * syssignal.h:
13451         rename msw_ to mswindows_ for consistency with general convention.
13452
13453         * emacs.c:
13454         * dumper.c:
13455         include nt.h, not syswindows.h.
13456
13457         * nt.c (mswindows_fstat):
13458         * nt.c (mswindows_stat):
13459         prefix mswindows_ instead of attempting to directly override the
13460         library functions.  fix declarations.
13461
13462         * nt.h:
13463         include syswindows.h.  move some sysdep.h stuff here.
13464
13465         * ntheap.h:
13466         include syswindows.h, not <windows.h>.
13467
13468         * ntplay.c:
13469         clean up headers.
13470
13471         * sysdep.c:
13472         clean up headers.
13473
13474         * sysdep.c (sys_fstat):
13475         * sysdep.c (sys_stat):
13476         call mswindows versions when appropriate.
13477
13478         * sysdep.h:
13479         move mswin decls to nt.h.
13480
13481         * syswindows.h:
13482         add long comment describing appropriate use of the various windows
13483         headers.
13484
13485 2000-06-11  Ben Wing  <ben@xemacs.org>
13486
13487         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13488
13489 2000-06-10  Ben Wing  <ben@xemacs.org>
13490
13491         * Makefile.in.in (release):
13492         Correction to make sure xemacs.exe always dumped when correct.
13493
13494         * alloca.c:
13495         * balloon_help.c:
13496         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13497
13498         * buffer.c (set_buffer_internal):
13499         [[[[2]]]]: Remove HAVE_FEP code.
13500
13501         * buffer.c (init_initial_directory):
13502         [3].
13503
13504         * bytecode.c:
13505         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13506         individual files.
13507
13508         * callproc.c:
13509         * callproc.c (call_process_cleanup):
13510         * callproc.c (Fold_call_process_internal):
13511         * callproc.c (child_setup):
13512         * callproc.c (getenv_internal):
13513         * callproc.c (init_callproc):
13514         * callproc.c (vars_of_callproc):
13515         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13516         __CYGWIN32__ -> CYGWIN.
13517         DOS_NT -> WIN32_NATIVE.
13518         Remove MSDOS support/references, converting to WIN32_NATIVE
13519           where correct.
13520         __MINGW32__ -> MINGW.
13521         Fix windows.h includes.
13522         Remove bogus HAVE_NTGUI.
13523
13524         * config.h.in:
13525         [2].
13526
13527         * console-msw.c:
13528         mswindows_message_outputted added for use in allowing startup
13529         errors on the console to be seen.
13530
13531         * console-msw.c (msw_ensure_console_allocated):
13532         * console-msw.c (msw_output_console_string):
13533         * console-msw.c (DHEADER):
13534         * console-msw.c (DOPAQUE_DATA):
13535         * console-msw.c (DEVENT):
13536         * console-msw.c (DCONS):
13537         * console-msw.c (DCONSCDR):
13538         * console-msw.c (DSTRING):
13539         * console-msw.c (DVECTOR):
13540         * console-msw.c (DSYMBOL):
13541         * console-msw.c (DSYMNAME):
13542         Fix warnings.
13543
13544         * console-stream.c (stream_init_console):
13545         Fix text/binary problems.
13546
13547         * device-msw.c:
13548         * device-msw.c (mswindows_finish_init_device):
13549         * device-msw.c (mswindows_delete_device):
13550         [1].
13551
13552         * device.c (handle_asynch_device_change):
13553         [3].
13554
13555         * dgif_lib.c:
13556         * dgif_lib.c (DGifOpenFileName):
13557         * dgif_lib.c (DGifOpenFileHandle):
13558         * dgif_lib.c (DGifGetLine):
13559         * dgif_lib.c (DGifGetPixel):
13560         Added config.h/lisp.h, fix up includes.
13561         [1].
13562
13563         * dired-msw.c:
13564         [4].
13565
13566         * dired.c:
13567         * dired.c (file_name_completion):
13568         * dired.c (Ffile_attributes):
13569         * dired.c (syms_of_dired):
13570         [1].
13571
13572         * dumper.c:
13573         * dumper.c (pdump_file_unmap):
13574         * dumper.c (pdump_load):
13575         [1].
13576
13577         * editfns.c:
13578         * editfns.c (Ftemp_directory):
13579         * editfns.c (user_login_name):
13580         * editfns.c (Fuser_real_login_name):
13581         * editfns.c (get_home_directory):
13582         [1].
13583
13584         * elhash.c (finish_marking_weak_hash_tables):
13585         [[[[5]]]]: Fix GCC warnings.
13586
13587         * emacs.c:
13588         * emacs.c (mswindows_handle_hardware_exceptions):
13589         * emacs.c (make_arg_list_1):
13590         * emacs.c (main_1):
13591         * emacs.c (Fkill_emacs):
13592         * emacs.c (Fdump_emacs):
13593         [1].
13594         Fix problems with nested crashes, add long comment.
13595
13596         * event-Xt.c (init_event_Xt_late):
13597         [1].
13598
13599         * event-msw.c:
13600         * event-msw.c (mswindows_dde_callback):
13601         * event-msw.c (mswindows_handle_sticky_modifiers):
13602         * event-msw.c (mswindows_wnd_proc):
13603         [1].
13604         [5].
13605
13606         * events.c (character_to_event):
13607         [1].
13608
13609         * fileio.c:
13610         * fileio.c (Ffile_name_directory):
13611         * fileio.c (Ffile_name_nondirectory):
13612         * fileio.c (directory_file_name):
13613         * fileio.c (Fexpand_file_name):
13614         * fileio.c (Fsubstitute_in_file_name):
13615         * fileio.c (Ffile_name_absolute_p):
13616         * fileio.c (check_executable):
13617         * fileio.c (Ffile_readable_p):
13618         * fileio.c (Ffile_accessible_directory_p):
13619         * fileio.c (Ffile_modes):
13620         * fileio.c (Funix_sync):
13621         * fileio.c (vars_of_fileio):
13622         [1]. [4].
13623
13624         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13625
13626         Expand getdefdir defn.
13627         Fix bogus rename() comment.
13628
13629         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13630         to use standard XEmacs include files, e.g. sysfile.h, rather
13631         than system-specific includes.
13632
13633         * fns.c:
13634         * fns.c (Fsubseq):
13635         [5]. [6].
13636
13637         * frame.c (vars_of_frame):
13638         [1].
13639
13640         * getloadavg.c:
13641         * getloadavg.c (getloadavg):
13642         [1]. [6].
13643         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13644         (We don't use it elsewhere in the code; just add a comment.)
13645
13646         * gif_io.c:
13647         [6].
13648         Add config.h.
13649
13650         * glyphs-msw.c:
13651         * glyphs-msw.c (mswindows_resource_instantiate):
13652         [1].
13653
13654         * glyphs-x.c (x_native_layout_instantiate):
13655         [5].
13656
13657         * gui-msw.c (Fmswindows_shell_execute):
13658         [1].
13659
13660         * insdel.c:
13661         [4].
13662
13663         * lisp.h:
13664         [4]. [5].
13665
13666         * lread.c (locate_file_in_directory_mapper):
13667         [1].
13668
13669         * lstream.c:
13670         [4].
13671
13672         * mem-limits.h:
13673         * mem-limits.h (get_lim_data):
13674         [1].
13675
13676         * menubar-msw.c:
13677         [4].
13678
13679         * ndir.h:
13680         [1].
13681
13682         * nt.c:
13683         * nt.c (getwd):
13684         * nt.c (closedir):
13685         * nt.c (rva_to_section):
13686         * nt.c (mswindows_executable_type):
13687         [1]. [6].
13688         Fix closedir() defn.
13689
13690         * nt.h:
13691         [[[[8]]]]: *_OK defs moved to sysfile.h.
13692
13693         * ntproc.c:
13694         [6]. [7].
13695
13696         * objects-x.c:
13697         [4].
13698
13699         * print.c:
13700         * print.c (std_handle_out_external):
13701         [1]. [4].
13702
13703         * process-nt.c:
13704         * process-nt.c (nt_create_process):
13705         [6].
13706         try to fix process quoting somewhat.
13707
13708         * process-unix.c (unix_create_process):
13709         [1].
13710
13711         * process.c:
13712         * process.c (vars_of_process):
13713         Add Vnull_device.
13714
13715         * process.h:
13716         [1].
13717
13718         * realpath.c:
13719         * realpath.c (xrealpath):
13720         [1].
13721
13722         * redisplay-tty.c (init_tty_for_redisplay):
13723         [3].
13724
13725         * redisplay.c:
13726         [4]. [6].
13727
13728         * scrollbar-msw.c:
13729         [4].
13730
13731         * sheap.c:
13732         * sheap.c (more_static_core):
13733         * sheap.c (report_sheap_usage):
13734         [5]. [6].
13735
13736         * signal.c:
13737         * signal.c (alarm_signal):
13738         [1]. [6].
13739
13740         * sound.c:
13741         [6].
13742
13743         * strftime.c:
13744         * strftime.c (zone_name):
13745         [1]. [5].
13746
13747         * symsinit.h (init_sunpro):
13748         [1].
13749
13750         * syscommctrl.h:
13751         commctrl.h not in Cygwin b20.1.
13752
13753         * sysdep.c:
13754         * sysdep.c (endif):
13755         * sysdep.c (sys_subshell):
13756         * sysdep.c (init_baud_rate):
13757         * sysdep.c (emacs_get_tty):
13758         * sysdep.c (emacs_set_tty):
13759         * sysdep.c (tty_init_sys_modes_on_device):
13760         * sysdep.c (init_system_name):
13761         * sysdep.c (sys_open):
13762         * sysdep.c (interruptible_open):
13763         * sysdep.c (sys_fopen):
13764         * sysdep.c (sys_mkdir):
13765         * sysdep.c (sys_rename):
13766         * sysdep.c (get_process_times_1):
13767         [1]. [6].
13768
13769         * sysdep.h:
13770         [1].
13771
13772         * sysdir.h:
13773         * sysdir.h (DIRENTRY_NONEMPTY):
13774         [1]. [6].
13775
13776         * sysdll.c (dll_init):
13777         * sysdll.h:
13778         [1].
13779
13780         * sysfile.h:
13781         [1]. [6]. [8].
13782         added text/binary defs.
13783
13784         * sysfloat.h:
13785         [1].
13786
13787         * sysproc.h:
13788         * sysproc.h (EDESTADDRREQ):
13789         * sysproc.h (poll_fds_for_input):
13790         [1]. [6].
13791
13792         * syspwd.h:
13793         [6].
13794
13795         * syssignal.h:
13796         [1].
13797
13798         * systime.h:
13799         [1]. [6].
13800
13801         * systty.h:
13802         [1].
13803
13804         * syswindows.h:
13805         [1].
13806         Always define WIN32_LEAN_AND_MEAN.
13807
13808         * unexcw.c (unexec):
13809         [5].
13810
13811         * unexec.c:
13812         * unexec.c (copy_text_and_data):
13813         * unexec.c (adjust_lnnoptrs):
13814         [1].
13815
13816         * unexnt.c:
13817         * unexnt.c (_start):
13818         [1].
13819
13820 2000-06-07  Ben Wing  <ben@xemacs.org>
13821
13822         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13823         was used only as a model.  We've long since extracted any useful
13824         logic or code out of this. (I just did an exhaustive search.)
13825
13826         * s\msdos.h: Removed.
13827
13828         * s\windows95.h: Removed.
13829
13830 2000-06-10  Ben Wing  <ben@xemacs.org>
13831
13832         * s\cygwin32.h:
13833         [1]. [5].
13834         Don't use extern with fun defs.
13835
13836         * s\mingw32.h:
13837         [1]. [7].
13838         Remove nt\inc include.
13839         Remove getdisk, getdefdir. (The former is unused, the latter
13840         expanded in fileio.h.)
13841
13842         * s\windowsnt.h:
13843         * s\windowsnt.h (WIN32_NATIVE):
13844         * s\windowsnt.h (HAVE_STRCASECMP):
13845         [1]. [7].
13846         Add long comment about preprocessor changes.
13847         Remove getdisk, getdefdir. (The former is unused, the latter
13848         expanded in fileio.h.)
13849
13850 2000-06-10  Ben Wing  <ben@xemacs.org>
13851
13852         * m\arm.h:
13853         * m\delta.h:
13854         * m\intel386.h:
13855         * m\sequent.h:
13856         * m\template.h:
13857         * m\windowsnt.h:
13858         [1].
13859         Remove bogus/unused NO_SOCK_SIGIO.
13860
13861 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13862
13863         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13864         not an Emchar.
13865
13866 2000-06-04  Mike Sperber <mike@xemacs.org>
13867
13868         * casetab.c (set_case_table): For `set-standard-case-table',
13869         actually deposit the new case tables where the rest of XEmacs can
13870         see them.
13871
13872 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13873
13874         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13875
13876 2000-06-05  Ben Wing  <ben@xemacs.org>
13877
13878         * callproc.c (child_setup): Don't do close_load_descs() under
13879         MS Windows.  Put in a comment explaining why.
13880
13881 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13882
13883         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13884         Toolkit shell" which breaks `kill-compilation' on Windows NT
13885         native, retaining STDERR handling improvements.
13886
13887 2000-06-01  Andreas Jaeger  <aj@suse.de>
13888
13889         * s/s390.h: Support for S390, based on a patch by Martin
13890         Schwidefsky <schwidefsky@de.ibm.com>.
13891
13892 2000-05-30  Andy Piper  <andy@xemacs.org>
13893
13894         * window.c (allocate_window):
13895         (make_dummy_parent):
13896         (Fset_window_configuration): use new hashtable type.
13897
13898         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13899         (struct image_instantiator_methods):
13900         (struct Lisp_Image_Instance): make instance geometry signed.
13901
13902         * glyphs.c (instantiate_image_instantiator):
13903         (image_instance_query_geometry):
13904         (image_instance_layout):
13905         (image_instance_layout):
13906         (query_string_geometry):
13907         (text_query_geometry):
13908         (image_instantiate):
13909         (image_instantiate):
13910         (cache_subwindow_instance_in_frame_maybe):
13911         (subwindow_query_geometry): make instance geometry signed.
13912
13913         * glyphs-widget.c (widget_query_geometry):
13914         (widget_layout):
13915         (button_query_geometry):
13916         (tree_view_query_geometry):
13917         (tab_control_query_geometry):
13918         (layout_query_geometry):
13919         (layout_layout):
13920         (native_layout_layout): make instance geometry signed.
13921
13922 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13923
13924         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13925         constant.
13926
13927         * general.c (syms_of_general): Add Qfull_assoc symbol.
13928
13929         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13930         correctly.
13931         (decode_weak_list_type): Decode full-assoc type.
13932         (encode_weak_list_type): Encode full-assoc type.
13933         (Fmake_weak_list): Update doc string.
13934
13935 2000-05-30  Andy Piper  <andy@xemacs.org>
13936
13937         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13938
13939         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13940         (decode_hash_table_weakness): ditto.
13941         (Fhash_table_weakness): ditto.
13942         (Fhash_table_type): ditto.
13943         (finish_marking_weak_hash_tables): ditto.
13944         (hash_table_weakness_validate): ditto.
13945         (syms_of_elhash): ditto.
13946
13947 2000-05-28  Martin Buchholz <martin@xemacs.org>
13948
13949         * XEmacs 21.2.34 is released.
13950
13951 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13952
13953         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13954         start cache.
13955         (updating_line_start_cache): Gone.
13956         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13957         generic code to force a minimum of 1 line laid out in the
13958         CMOTION_DISP case.
13959
13960 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13961
13962         * glyphs.c (instantiate_image_instantiator): Check for initialized
13963         height & width no longer special cases IMAGE_NOTHING.
13964         (nothing_instantiate): Set height and width of instance.
13965
13966 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13967
13968         * unexelf.c (unexec): Search for ".data" section.
13969         Initialize new_data2_offset from old_data_index.
13970         Remove redundant check for ElfW.
13971
13972 2000-05-23  Andy Piper  <andy@xemacs.org>
13973
13974         * glyphs.c (get_image_instantiator_governing_domain): allow more
13975         specific domains as the governing domain rather than expecting an
13976         exact match. This fixes problems with layouts.
13977
13978 2000-05-22  Andy Piper  <andy@xemacs.org>
13979
13980         * redisplay-output.c (compare_runes): check for non-images
13981
13982         * glyphs.c (set_glyph_dirty_p): ditto.
13983         (update_glyph_cachel_data): ditto.
13984
13985         * glyphs-widget.c (layout_post_instantiate): ditto.
13986         (layout_post_instantiate): ditto.
13987
13988         * event-msw.c (mswindows_wnd_proc): warning removal.
13989
13990 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13991
13992         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13993
13994         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13995
13996         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13997
13998         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13999         (mswindows_executable_type): mingw32 now has enough headers for
14000         this to work.
14001
14002 2000-05-20  Andy Piper  <andy@xemacs.org>
14003
14004         * console-msw.c (mswindows_output_last_error): ; -> ,
14005
14006 2000-05-12  Andy Piper  <andy@xemacs.org>
14007
14008         * console-msw.c (FROB): compare ints with ints.
14009
14010 2000-05-11  Andy Piper  <andy@xemacs.org>
14011
14012         * glyphs-x.c (x_finalize_image_instance): make minimal build
14013         happy.
14014
14015 2000-05-20  Ben Wing  <ben@xemacs.org>
14016
14017         * event-Xt.c:
14018         * event-Xt.c (vars_of_event_Xt):
14019         move modifier-keys-are-sticky to event-stream.c.
14020
14021         * event-msw.c:
14022         * event-msw.c (mswindows_enqueue_mouse_button_event):
14023         * event-msw.c (key_needs_default_processing_p):
14024         * event-msw.c (XEMSW_LCONTROL):
14025         * event-msw.c (mswindows_handle_sticky_modifiers):
14026         * event-msw.c (FROB):
14027         * event-msw.c (clear_sticky_modifiers):
14028         * event-msw.c (output_modifier_keyboard_state):
14029         * event-msw.c (output_alt_keyboard_state):
14030         * event-msw.c (mswindows_wnd_proc):
14031         * event-msw.c (mswindows_modifier_state):
14032         * event-msw.c (emacs_mswindows_handle_magic_event):
14033         implement sticky modifiers.
14034
14035         * event-stream.c:
14036         * event-stream.c (vars_of_event_stream):
14037         move modifier-keys-are-sticky here.
14038
14039         * lisp.h:
14040         add CHECK_FUNCTION.
14041
14042         * rangetab.c:
14043         implement map-range-table.
14044
14045
14046 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
14047
14048         * redisplay-tty.c (reset_tty_modes):
14049         (tty_redisplay_shutdown): Adjust argument type to
14050         tty_frame_output_end.
14051
14052 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14053
14054         * eval.c (Fbacktrace): Don't output a line with only right
14055         parenthesis.
14056
14057 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
14058
14059         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
14060         (Fpq_reset_poll): Ditto.
14061
14062 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
14063
14064         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
14065
14066 2000-05-16  Ben Wing  <ben@xemacs.org>
14067
14068         * buffer.c:
14069         * buffer.c (dfc_convert_to/from_internal_format):
14070         * buffer.c (reinit_vars_of_buffer):
14071         Fix conversion functions to allow reentrancy.
14072
14073         * console-msw.c:
14074         * console-msw.c (mswindows_output_last_error):
14075         New fun, generally useful -- output a human-readable
14076         version of GetLastError() on the console.
14077
14078         * console-msw.h:
14079         * console-msw.h (struct mswindows_frame):
14080         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
14081
14082         * console-stream.c (stream_output_begin):
14083         * console-stream.c (stream_output_end):
14084         * console-stream.c (stream_output_vertical_divider):
14085         * console-stream.c (stream_clear_region):
14086         * console-stream.c (stream_flash):
14087         * console-stream.c (console_type_create_stream):
14088         Delete blank stream methods, not needed.
14089
14090         * console.h (struct console_methods):
14091         Split begin/end methods into window and frame.
14092
14093         * event-msw.c:
14094         * event-msw.c (mswindows_handle_paint):
14095         * event-msw.c (output_alt_keyboard_state):
14096         * event-msw.c (mswindows_wnd_proc):
14097         * event-msw.c (vars_of_event_mswindows):
14098         Comment about problems with ignored-expose.
14099         Define mswindows-debug-events; not really implemented.
14100
14101         * frame-msw.c (mswindows_init_frame_1):
14102         random cleanups.
14103
14104         * glyphs-msw.c:
14105         * glyphs-msw.c (begin_defer_window_pos):
14106         * glyphs-msw.c (mswindows_unmap_subwindow):
14107         * glyphs-msw.c (mswindows_map_subwindow):
14108         * glyphs-msw.c (mswindows_resize_subwindow):
14109         Use DeferWindowPos to reduce flashing when mapping/unmapping.
14110
14111         * glyphs.c (make_image_instance_1):
14112         Fix crash.
14113
14114         * gutter.c (Fredisplay_gutter_area):
14115         Use new begin/end methods.
14116
14117         * lisp.h (Dynarr_new2):
14118         New creation fun.
14119
14120         * redisplay-msw.c:
14121         * redisplay-msw.c (mswindows_frame_output_begin):
14122         * redisplay-msw.c (mswindows_frame_output_end):
14123         * redisplay-msw.c (console_type_create_redisplay_mswindows):
14124         New begin/end methods -- handle DeferWindowPos.
14125
14126         * redisplay-output.c (redisplay_move_cursor):
14127         * redisplay-output.c (redraw_cursor_in_window):
14128         * redisplay-output.c (redisplay_update_line):
14129         * redisplay-output.c (redisplay_output_window):
14130         New begin/end methods.
14131
14132         * redisplay-tty.c:
14133         * redisplay-tty.c (tty_frame_output_begin):
14134         * redisplay-tty.c (tty_frame_output_end):
14135         * redisplay-tty.c (console_type_create_redisplay_tty):
14136         New begin/end methods.
14137
14138         * redisplay-x.c:
14139         * redisplay-x.c (x_window_output_begin):
14140         * redisplay-x.c (x_window_output_end):
14141         * redisplay-x.c (console_type_create_redisplay_x):
14142         New begin/end methods.
14143
14144         * redisplay.c (redisplay_frame):
14145         * redisplay.c (Fredisplay_echo_area):
14146         New begin/end methods.
14147         use MAYBE_DEVMETH for clear_frame; it may not exist.
14148
14149         * window.h (WINDOW_XFRAME):
14150         WINDOW_XFOO macros -- get locale and decode struct pointer.
14151
14152
14153 2000-05-12  Ben Wing  <ben@xemacs.org>
14154
14155         * emacs.c:
14156         * emacs.c (ensure_no_quitting_from_now_on):
14157         * emacs.c (fatal_error_signal):
14158         * emacs.c (mswindows_handle_hardware_exceptions):
14159         * emacs.c (main):
14160         * emacs.c (Fkill_emacs):
14161         * emacs.c (shut_down_emacs):
14162         * emacs.c (assert_failed):
14163         various improvements in fatal error handling.
14164
14165         * eval.c:
14166         move preparing_for_armageddon to emacs.c.
14167
14168         * lisp.h:
14169         declare fatal_error_in_progress.
14170
14171         * print.c:
14172         * print.c (std_handle_out_external):
14173         * print.c (std_handle_out_va):
14174         * print.c (stderr_out):
14175         * print.c (stdout_out):
14176         use console under mswin when no standard output.
14177         don't do code conversion during fatal error.
14178
14179         * scrollbar.c (Fscrollbar_page_up):
14180         * scrollbar.c (Fscrollbar_page_down):
14181         fix missing else.  reindent.
14182
14183 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
14184
14185         Emergency fix.
14186
14187         * glyphs.h (GLYPH_CACHEL_DESCENT):
14188         (GLYPH_CACHEL_DESCENT):
14189         (GLYPH_CACHEL_DESCENT):
14190         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
14191         used in case these are inline functions.
14192         Use more absurd values to error check.
14193
14194         include window.h for error check functions.
14195
14196 2000-05-11  Ben Wing  <ben@xemacs.org>
14197
14198         * cmdloop.c (Freally_early_error_handler):
14199         Display message box under windows; otherwise, message will disappear
14200         before it can be viewed.
14201
14202         * console-msw.c:
14203         * console-msw.c (Fmswindows_message_box):
14204         * console-msw.c (FROB):
14205         * console-msw.c (syms_of_console_mswindows):
14206         Define new fun `mswindows-message-box'.
14207         #### I will merge this into `popup-dialog-box'; just give me
14208         a bit of time.
14209
14210         * general.c:
14211         * general.c (syms_of_general):
14212         Some new symbols used in `mswindows-message-box'.
14213
14214         * glyphs.c:
14215         * glyphs.c (Fset_image_instance_property):
14216         put warning in this fun.
14217
14218         * glyphs.h:
14219         * glyphs.h (GLYPH_CACHEL_WIDTH):
14220         * glyphs.h (GLYPH_CACHEL_ASCENT):
14221         * glyphs.h (GLYPH_CACHEL):
14222         * glyphs.h (GLYPH_CACHEL_GLYPH):
14223         define error-checking versions to try to catch a bug i've seen --
14224         redisplay gets in an infinite loop because the glyph width of the
14225         continuation glyph is 65535.
14226
14227         * lisp.h:
14228         Extern message-box stuff.
14229
14230         * window.c (allocate_window):
14231         * window.c (make_dummy_parent):
14232         * window.c (Fset_window_configuration):
14233         Use EQUAL not EQ for subwindow caches to make them work a bit
14234         better. (Something is still very broken.)
14235
14236
14237 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14238
14239         * glyphs.c (image_instantiate): Suppress gcc warnings.
14240         (Fmake_image_instance): Fix doc string.
14241         * specifier.c (Fmake_specifier): Ditto.
14242
14243 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
14244
14245         * paths.h.in (PATH_LOCK): Removed.
14246         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
14247         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
14248
14249 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14250
14251         * fns.c (Ffeaturep): Update e-mail address in doc-string.
14252         Document (featurep '(and xemacs 21.02)).
14253
14254 2000-05-09  Ben Wing  <ben@xemacs.org>
14255
14256         * buffer.c (complex_vars_of_buffer):
14257         update modeline-format doc.
14258
14259         * device.h:
14260         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
14261
14262         * emacs.c:
14263         timeline of all released versions of Emacs, for use in creating
14264         authorship comments and in synching up.
14265
14266         * glyphs-widget.c (image_instantiator_buttons):
14267         * glyphs-widget.c (image_instantiator_edit_fields):
14268         * glyphs-widget.c (image_instantiator_combo_box):
14269         * glyphs-widget.c (image_instantiator_scrollbar):
14270         * glyphs-widget.c (image_instantiator_progress_guage):
14271         * glyphs-widget.c (image_instantiator_tree_view):
14272         * glyphs-widget.c (image_instantiator_tab_control):
14273         * glyphs-widget.c (image_instantiator_labels):
14274         * glyphs-widget.c (image_instantiator_layout):
14275         * glyphs-widget.c (image_instantiator_native_layout):
14276         rename decode_domain method to governing_domain.
14277
14278         * glyphs.c:
14279         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
14280         * glyphs.c (add_entry_to_device_ii_format_list):
14281         make sure we don't put an entry more than once into the list.
14282         * glyphs.c (check_instance_cache_mapper):
14283         *************************************************************
14284         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14285         HAVE BEEN GETTING.
14286         *************************************************************
14287         * glyphs.c (get_image_instantiator_governing_domain):
14288         clean up, expand on new concept of governing domain.
14289         * glyphs.c (instantiate_image_instantiator):
14290         * glyphs.c (allocate_image_instance):
14291         use governing_domain instead of cache_domain in naming.
14292         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
14293         * glyphs.c (make_image_instance_1):
14294         * glyphs.c (Fmake_image_instance):
14295         allow for any domain (not just device), and process the
14296         governing domain correctly.  very big doc fix.
14297         * glyphs.c (Fimage_instance_domain):
14298         new primitive, to retrieve the governing domain of an image instance.
14299         * glyphs.c (image_instantiate):
14300         use new governing_domain stuff.  this fixes a crash you could get
14301         by instantiating certain widget glyphs in frame locales. (should
14302         signal an error instead of crashing.)
14303         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
14304         * glyphs.c (Fglyphp): clean up doc.
14305         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
14306         * glyphs.c (syms_of_glyphs):
14307         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
14308         * glyphs.c (image_instantiator_format_create): add some comments about
14309         bogus code.
14310         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
14311         for current-display-table. (Apparently Hrjove implemented in 1998 a
14312         design I wrote up in 1996, but didn't update the doc string.)
14313
14314         * glyphs.h: clean up a doc string.
14315         * glyphs.h (governing_domain):
14316         * glyphs.h (struct image_instantiator_methods):
14317         changes for governing_domain stuff.
14318
14319         * gutter.c:
14320         * gutter.c (Fgutter_specifier_p):
14321         * gutter.c (Fgutter_size_specifier_p):
14322         * gutter.c (Fgutter_visible_specifier_p):
14323         * objects.c:
14324         * objects.c (Fcolor_specifier_p):
14325         * objects.c (Ffont_specifier_p):
14326         * objects.c (Fface_boolean_specifier_p):
14327         doc strings moved to make-*-specifier.
14328
14329         * redisplay.c (add_disp_table_entry_runes_1):
14330         * redisplay.c (generate_fstring_runes):
14331         * redisplay.c (screen):
14332         add random comments and doc strings.
14333
14334         * specifier.c:
14335         * specifier.c (Fmake_specifier):
14336         major overhaul of this doc string.
14337
14338         * specifier.c (Fvalid_specifier_domain_p):
14339         comment about the bogosity of image instances being domains.
14340         * specifier.c (decode_domain):
14341         now non-static, used in glyphs.c.
14342         * specifier.c (specifier_instance):
14343         comment about the bogosity of image instances being domains.
14344         * specifier.c (Fgeneric_specifier_p):
14345         move doc string to make-generic-specifier.
14346         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14347         rebackslashify.
14348
14349         * specifier.h:
14350         * specifier.h (DOMAIN_FRAME):
14351         * specifier.h (DOMAIN_LIVE_P):
14352         * specifier.h (DOMAIN_XDEVICE):
14353         rebackslashify.
14354         add comments about problems with these macros.
14355         prototype for decode_domain.
14356
14357         * toolbar.c:
14358         * toolbar.c (Ftoolbar_specifier_p):
14359         move doc string to `make-toolbar-specifier'.
14360
14361         * window.c (window_unmap_subwindows_cache_mapper):
14362         *************************************************************
14363         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14364         HAVE BEEN GETTING.
14365         *************************************************************
14366
14367 2000-05-09  Andy Piper  <andy@xemacs.org>
14368
14369         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14370
14371         * window.c (Fset_window_configuration): reset the frame subwindow
14372         cache and re-initialize the window subwindow caches.
14373
14374         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14375
14376 2000-05-09  Ben Wing  <ben@xemacs.org>
14377
14378         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14379         DWORD.
14380
14381 2000-04-26  Mike Woolley  <mike@bulsara.com>
14382
14383         * ntheap.c: Changed recreate_heap to limit the amount reserved
14384         for the heap to that which is actually available. Also now
14385         displays a message box (with some dignostics) in the event that
14386         it still can't start.
14387
14388 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14389
14390         * callproc.c (Fold_call_process_internal): GCPRO path
14391
14392 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14393
14394         Patch by Bill Perry.
14395
14396         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14397         back data instead of #ifdef.
14398         (Fscrollbar_page_down): ditto.
14399
14400 2000-05-07  Ben Wing  <ben@xemacs.org>
14401
14402         * buffer.h:
14403         Kludge for defining Qmswindows_tstr.
14404
14405         * nt.c:
14406         * nt.c (open_input_file):
14407         * nt.c (open_output_file):
14408         * nt.c (rva_to_section):
14409         * nt.c (mswindows_executable_type):
14410         Move all memory-mapped-file routines here (some were in unexnt.c,
14411         which is bad because they are used by process-nt.c, and unexnt
14412         won't be around when portable dumping).  Synched the above routines
14413         with FSF 20.6.
14414
14415         * nt.h:
14416         Removed ifdef'd out bogus code.
14417         Fixed some prototypes.
14418
14419         * nt.h (file_data):
14420         * nt.h (OFFSET_TO_RVA):
14421         * nt.h (RVA_TO_OFFSET):
14422         * nt.h (RVA_TO_PTR):
14423         Moved the memory-mapped-file structures, macros and prototypes
14424         here, to parallel nt.c.  ntheap.h should really be removed
14425         entirely, and it's a non-portable-dumper specific file.
14426
14427         * ntheap.h (round_to_next):
14428         Moved the memory-mapped-file structures, macros and prototypes
14429         to nt.h.
14430
14431         * ntproc.c (compare_env):
14432         Moved rva_to_section and mswindows_executable_type to nt.c.
14433         Moved compare_env to process-nt.c.
14434         ntproc.c will die, one day.
14435
14436         * ntproc.c (sys_spawnve):
14437         Account for win32_ -> mswindows_.
14438
14439         * process-nt.c:
14440         * process-nt.c (struct nt_process_data):
14441         * process-nt.c (ensure_console_window_exists):
14442         * process-nt.c (compare_env):
14443         * process-nt.c (nt_create_process):
14444         * process-nt.c (nt_kill_process_by_pid):
14445         * process-nt.c (syms_of_process_nt):
14446         * process-nt.c (vars_of_process_nt):
14447         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14448         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14449         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14450         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14451         Move compare_env here from ntproc.c.
14452
14453         * process.c (Fprocess_send_region):
14454         Takes an optional fourth argument, BUFFER, which should fix some
14455         problems with call-process.
14456
14457         * syscommctrl.h:
14458         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14459
14460         * syswindows.h:
14461         Move ICC_BAR_CLASSES to syscommctrl.h.
14462         Add preliminary macros for MSWindows/Mule.  More to come.
14463
14464         * unexnt.c:
14465         * unexnt.c (unexec):
14466         open_output_file moved to nt.c.
14467
14468
14469 2000-05-05  Andy Piper  <andy@xemacs.org>
14470
14471         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14472         instance from the frame cache also since GC may catch up too late
14473         to make frame deletion sane.
14474
14475 2000-05-04  Andy Piper  <andy@xemacs.org>
14476
14477         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14478         (x_finalize_image_instance): ungcpro on deletion.
14479
14480         * glyphs.c (image_instantiator_format_create): give pointers a
14481         query geometry method so that the geometry is at least set.
14482
14483         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14484         initialize layouts if using widgets.
14485
14486 2000-05-03  Andy Piper  <andy@xemacs.org>
14487
14488         * nt.c: remove bogus reference to sysmmsystem.h
14489
14490         * gui-x.c (popup_selection_callback): fix no selection abort.
14491
14492 2000-05-02  Andy Piper  <andy@xemacs.org>
14493
14494         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14495         (mswindows_widget_instantiate): ditto.
14496
14497         * glyphs-widget.c (initialize_widget_image_instance): initialize
14498         children correctly.
14499         (widget_instantiate): cope with children and items in the same
14500         instance.
14501
14502         * glyphs.c (mark_image_instance): cope with children as a first
14503         class member.
14504         (image_instance_equal): ditto.
14505         (image_instance_hash): ditto.
14506         (image_instance_changed): ditto.
14507
14508 2000-04-30  Andy Piper  <andy@xemacs.org>
14509
14510         * glyphs.c (subwindow_query_geometry): new function. Return some
14511         defaults.
14512         (subwindow_instantiate): don't assign dimensions if none have been
14513         given.
14514         (image_instantiator_format_create): add subwindow_query_geometry.
14515         (print_image_instance): cope with layouts as widgets.
14516
14517 2000-04-29  Andy Piper  <andy@xemacs.org>
14518
14519         * frame.c (delete_frame_internal): call
14520         free_frame_subwindow_instance_cache so that all subwindows are
14521         finalized before their parent.
14522         (mark_frame): remove subwindow_cachels.
14523         (Fmake_frame): remove subwindow_cachel manipulation.
14524         (allocate_frame_core): subwindow_instance_cache is a weak list.
14525         (delete_frame_internal): set subwindow_instance_cache to nil.
14526
14527         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14528         finalization safe.
14529         (mswindows_finalize_image_instance): use the device
14530         not the domain as the domain may have died already.
14531
14532         * glyphs-x.c (x_finalize_image_instance): ditto.
14533         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14534         HEIGHT.
14535
14536         * redisplay-output.c (redisplay_unmap_subwindows): update for
14537         subwindow instance cache as a weak list.
14538         (redisplay_unmap_subwindows_maybe): ditto.
14539         (redisplay_unmap_subwindows_except_us): ditto.
14540
14541         * glyphs.c (unmap_subwindow): error checking will check the domain
14542         so don't deal with it here. Don't use cachels anymore.
14543         (map_subwindow): ditto.
14544         (update_subwindow_cachel_data): remove old accessor names.
14545         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14546         (Fresize_subwindow): don't update cachel.
14547         (mark_subwindow_cachels):
14548         (update_subwindow_cachel_data):
14549         (add_subwindow_cachel):
14550         (get_subwindow_cachel_index):
14551         (update_subwindow_cachel):
14552         (reset_subwindow_cachels):
14553         (mark_subwindow_cachels_as_not_updated): deleted.
14554         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14555         subwindow instance to the frame cache.
14556         (find_matching_subwindow): update for subwindow instance cache as
14557         a weak list.
14558         (update_widget_instances): ditto.
14559         (image_instance_type_to_mask):inlined.
14560         (free_frame_subwindow_instance_cache): new function. finalize all
14561         subwindows that are instantiated.
14562
14563         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14564         of cachel information.
14565         (IMAGE_INSTANCE_DISPLAY_X):
14566         (IMAGE_INSTANCE_DISPLAY_Y):
14567         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14568         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14569         (XIMAGE_INSTANCE_DISPLAY_X):
14570         (XIMAGE_INSTANCE_DISPLAY_Y):
14571         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14572         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14573         remove subwindow_cachel structure and function references.
14574         (image_instance_type_to_mask): inline from glyphs.c
14575
14576         * redisplay.c (redisplay_frame): remove subwindow_cachel
14577         references.
14578
14579         * frame.h (struct frame): remove subwindow_cachels.
14580         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14581
14582         * frameslots.h: add subwindow_instance_cache.
14583
14584         * window.c (replace_window): check subwindow cache of replacement.
14585         (window_unmap_subwindows_cache_mapper):
14586         (window_unmap_subwindows): new functions. Unmap all subwindows
14587         cached on this window.
14588         (mark_window_as_deleted): unmap all subwindows.
14589
14590 2000-04-27  Andy Piper  <andy@xemacs.org>
14591
14592         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14593
14594         * glyphs-widget.c (widget_layout): return something.
14595         (layout_layout): return something. Fail if not initialized.
14596         (layout_query_geometry): ditto.
14597         (image_instantiator_native_layout): new function. Initialized the
14598         native layout type.
14599         (widget_instantiate): don't do layout stuff here.
14600
14601         * glyphs.c (instantiate_image_instantiator): reorded calling or
14602         instantiate and post_instantiate with layout in between.
14603         (image_instance_layout): be more selective about deciding whether
14604         the layout has been done or not.
14605
14606         * glyphs.h (struct image_instantiator_methods): return a value
14607         from layout_method.
14608
14609 2000-04-26  Andy Piper  <andy@xemacs.org>
14610
14611         * glyphs.c (allocate_image_instance): make initial width and
14612         height unspecified. Set initialized to 0.
14613
14614         * syscommctrl.h new file. Encapsulates commctrl.h.
14615
14616         * syswindows.h new file. Encapsulates windows.h.
14617
14618         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14619         * nt.c: ditto.
14620         * console-msw.h: ditto.
14621
14622         * redisplay-tty.c (tty_output_display_block): remove layout references.
14623
14624         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14625         window handle rather than just the frame.
14626
14627         * glyphs.c (mark_image_instance): remove layout references.
14628         (print_image_instance): ditto.
14629         (image_instance_equal): ditto.
14630         (image_instance_hash): ditto.
14631         (decode_image_instance_type): ditto.
14632         (encode_image_instance_type): ditto.
14633         (image_instantiate): ditto.
14634         (allocate_glyph): ditto.
14635         (Fimage_instance_height): ditto.
14636         (Fimage_instance_width): ditto.
14637         (update_subwindow): ditto.
14638
14639         * redisplay-x.c (x_output_display_block): recode for layouts as
14640         widgets.
14641
14642         * redisplay-output.c (redisplay_output_layout): recode for layouts
14643         as widgets.
14644         (compare_runes): remove layout references.
14645
14646         * redisplay-msw.c (mswindows_output_display_block): recode for
14647         layouts as widgets.
14648
14649         * glyphs-widget.c (image_instantiator_layout): remove
14650         layout_possible_dest_types.
14651         (layout_possible_dest_types): deleted.
14652
14653         * glyphs.h (image_instance_type): remove layout references.
14654         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14655         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14656         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14657
14658 2000-04-25  Andy Piper  <andy@xemacs.org>
14659
14660         * glyphs-widget.c (image_instantiator_buttons):
14661         (image_instantiator_edit_fields):
14662         (image_instantiator_combo_box):
14663         (image_instantiator_scrollbar):
14664         (image_instantiator_progress_guage):
14665         (image_instantiator_tree_view):
14666         (image_instantiator_tab_control):
14667         (image_instantiator_labels):
14668         (image_instantiator_layout): call default post_instantiate method.
14669         (widget_post_instantiate): new function. Simply lays out the
14670         widgets.
14671
14672         * glyphs.h (struct image_instantiator_methods): add
14673         post_instantiate method.
14674
14675         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14676         method calls.
14677
14678 2000-04-23  Andy Piper  <andy@xemacs.org>
14679
14680         * glyphs.h (struct image_instantiator_methods): add
14681         decode_domain_method.
14682         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14683         derived from the domain.
14684         (IMAGE_INSTANCE_FRAME): new accessor.
14685         (XIMAGE_INSTANCE_FRAME): ditto.
14686
14687         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14688         instead of _SUBWINDOW_FRAME.
14689         (finalize_image_instance): ditto.
14690         (Fimage_instance_foreground): ditto.
14691         (Fimage_instance_background): ditto.
14692         (image_instantiate): ditto.
14693         (update_subwindow_cachel): ditto.
14694         (update_subwindow): ditto.
14695         (unmap_subwindow): ditto.
14696         (map_subwindow): ditto
14697         (subwindow_instantiate): ditto.
14698         * glyphs-msw.c (mswindows_update_widget): ditto.
14699         (mswindows_progress_gauge_instantiate): ditto.
14700         (mswindows_tab_control_update): ditto.
14701         * glyphs-x.c (x_update_widget): ditto.
14702         (x_widget_instantiate): ditto.
14703         (x_tab_control_instantiate): ditto.
14704         (x_tab_control_update): ditto.
14705         * event-msw.c (mswindows_wnd_proc): ditto
14706
14707         * glyphs-widget.c (image_instantiator_layout): use
14708         subwindow_decode_domain.
14709         (image_instantiator_buttons): ditto.
14710         (image_instantiator_edit_fields): ditto.
14711         (image_instantiator_combo_box): ditto.
14712         (image_instantiator_scrollbar): ditto.
14713         (image_instantiator_progress_guage): ditto.
14714         (image_instantiator_tree_view): ditto.
14715         (image_instantiator_tab_control): ditto.
14716         (image_instantiator_labels): ditto.
14717         (image_instantiator_layout): ditto.
14718
14719         * glyphs.c: add instance error checking to many functions.
14720         (instantiate_image_instantiator): decode device from cache_domain.
14721         (image_instantiate): partially rewrite by using
14722         decode_image_instantiator_domain to determine what domain the
14723         instance needs to be cached in.
14724         (decode_image_instantiator_domain): new function. Determine what
14725         domain the image needs to be cached in.
14726         (check_window_subwindow_cache): new error checking function.
14727         (check_instance_cache_mapper): ditto.
14728         (check_image_instance_structure): ditto.
14729         (subwindow_decode_domain): new function. Encodes a window as a
14730         subwindow's cache domain.
14731         (image_instantiator_format_create): use it for text and
14732         subwindows.
14733
14734 2000-04-21  Andy Piper  <andy@xemacs.org>
14735
14736         * glyphs.c (image_instance_device): new function.
14737         (image_instance_frame): new function.
14738         (image_instance_window): new function.
14739         (image_instance_live_p): new function.
14740
14741         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14742         cache to nil.
14743
14744         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14745         (IMAGE_INSTANCE_DOMAIN): new accessor.
14746         (XIMAGE_INSTANCE_DOMAIN): ditto.
14747
14748         * glyphs-x.c (x_finalize_image_instance): device->domain.
14749
14750         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14751         (mswindows_finalize_image_instance): ditto.
14752
14753         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14754         (gif_instantiate): ditto.
14755         (png_instantiate): ditto.
14756         (tiff_instantiate): ditto.
14757
14758         * glyphs.c (instantiate_image_instantiator): use domain rather
14759         than device.
14760         (mark_image_instance): device -> domain.
14761         (print_image_instance): ditto.
14762         (finalize_image_instance): ditto.
14763         (image_instance_equal): ditto.
14764         (allocate_image_instance): ditto.
14765         (Fcolorize_image_instance): ditto.
14766         (query_string_geometry): ditto.
14767         (image_instantiate): ditto
14768         (query_string_font): ditto.
14769         (image_instantiate): ditto.
14770         (update_subwindow): ditto.
14771         (unmap_subwindow): ditto.
14772         (map_subwindow): ditto.
14773         (subwindow_instantiate): ditto.
14774
14775         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14776         (DOMAIN_FRAME): ditto.
14777         (DOMAIN_WINDOW): ditto.
14778         (DOMAIN_LIVE_P): ditto.
14779         (XDOMAIN_DEVICE): ditto.
14780         (XDOMAIN_FRAME): ditto.
14781         (XDOMAIN_WINDOW): ditto.
14782
14783         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14784         a valid specifier domain.
14785
14786 2000-04-19  Andy Piper  <andy@xemacs.org>
14787
14788         * glyphs-widget.c (syms_of_glyphs_widget): remove
14789         widget-callback-current-channel.
14790         (vars_of_glyphs_widget): ditto.
14791         * glyphs.h: ditto
14792
14793         * gui.c (get_gui_callback): revert to previous behaviour.
14794
14795 2000-04-18  Andy Piper  <andy@xemacs.org>
14796
14797         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14798         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14799         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14800
14801         * glyphs.c (image_instance_equal): add margin_width.
14802         (image_instance_hash): ditto.
14803
14804         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14805         (layout_query_geometry): ditto.
14806         (layout_layout): ditto.
14807         (syms_of_glyphs_widget): add margin-width.
14808         (image_instantiator_layout): allow margin-width.
14809
14810         * glyphs.c (update_widget_instances): make a normal function.
14811         (syms_of_glyphs): remove Qupdate_widget_instances.
14812         * glyphs.h: ditto.
14813
14814         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14815         so that we don't corrupt ideas about the last event or
14816         command. Remove widget-callback-current-channel fiddling.
14817         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14818
14819 2000-05-01  Martin Buchholz <martin@xemacs.org>
14820
14821         * XEmacs 21.2.33 is released.
14822
14823 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14824
14825         * make-src-depend: Allow dots in header file name.
14826
14827 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14828
14829         * mule-charset.h (struct charset_lookup): Add
14830         next_allocated_1_byte_leading_byte and
14831         next_allocated_2_byte_leading_byte.
14832         * mule-charset.c: Move above two variables so that those values
14833         will be dumped.
14834
14835 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14836
14837         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14838         when string length is zero.
14839         (find_charsets_in_emchar_string): Ditto.
14840
14841 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14842
14843         * lisp.h: extern Qdialog and Qmenubar.
14844
14845         * gui-x.c: added events.h.
14846                 also fixed typo which made the file uncompilable.
14847
14848         * general.c: Added Qmenubar and Qdialog
14849
14850 2000-04-28  Ben Wing  <ben@xemacs.org>
14851
14852         * frame-msw.c (mswindows_init_frame_1):
14853         * frame-msw.c (mswindows_mark_frame):
14854         * event-msw.c (mswindows_enqueue_dispatch_event):
14855         * console-msw.h:
14856         * console-msw.h (struct mswindows_frame):
14857         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14858         there are now three hash tables for callbacks.
14859         mswindows_enqueue_dispatch_event is no longer static.
14860
14861         * dialog-x.c (maybe_run_dbox_text_callback):
14862         * dialog-x.c (dbox_descriptor_to_widget_value):
14863         switch to new cons3 form for callbacks.
14864
14865         * glyphs-msw.c (mswindows_register_gui_item):
14866         * glyphs-msw.c (mswindows_widget_instantiate):
14867         * glyphs-msw.c (add_tree_item):
14868         * glyphs-msw.c (add_tab_item):
14869         new image instance parameter, so it can be passed to callback-ex.
14870         respect :callback-ex as well as :callback.
14871
14872         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14873         add :callback-ex.
14874
14875         * glyphs.c (print_image_instance):
14876         prettify, e.g. now prints widget type.
14877
14878         * gui-x.h:
14879         certain funs have new image instance parameter.
14880
14881         * gui.c:
14882         * gui.c (get_gui_callback):
14883         * gui.c (gui_item_add_keyval_pair):
14884         * gui.c (gui_item_init):
14885         * gui.c (gui_add_item_keywords_to_plist):
14886         * gui.c (mark_gui_item):
14887         * gui.c (gui_item_hash):
14888         * gui.c (gui_item_equal):
14889         * gui.c (copy_gui_item):
14890         * gui.c (syms_of_gui):
14891         recognize callback-ex in a number of places.
14892         also, fix the annoying "can't get out of yes-no dialog" bug.
14893
14894         * gui.h:
14895         * gui.h (struct Lisp_Gui_Item):
14896         recognize callback-ex in a number of places.
14897
14898         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14899         new parameter in button_item_to_widget_value.
14900
14901         * glyphs-x.c (x_update_widget):
14902         * glyphs-x.c (x_button_instantiate):
14903         * glyphs-x.c (x_button_update):
14904         * glyphs-x.c (x_progress_gauge_instantiate):
14905         * glyphs-x.c (x_edit_field_instantiate):
14906         * glyphs-x.c (x_combo_box_instantiate):
14907         * glyphs-x.c (x_tab_control_instantiate):
14908         * glyphs-x.c (x_label_instantiate):
14909         new image instance parameter in various places.
14910
14911         * event-Xt.c:
14912         * event-Xt.c (enqueue_Xt_dispatch_event):
14913         this fun gets exported.
14914
14915         * gui-msw.c:
14916         * gui-msw.c (mswindows_handle_gui_wm_command):
14917         handle both :callback and :callback-ex, and generate our own
14918         event because it's one of the callback-ex arguments.
14919
14920         * gui-x.c:
14921         * gui-x.c (popup_selection_callback):
14922         handle both :callback and :callback-ex, and generate our own
14923         event because it's one of the callback-ex arguments.
14924         * gui-x.c (button_item_to_widget_value):
14925         * gui-x.c (gui_items_to_widget_values_1):
14926         * gui-x.c (gui_item_children_to_widget_values):
14927         * gui-x.c (gui_items_to_widget_values):
14928         new image instance parameter in various places.
14929
14930         * fns.c (Freplace_list):
14931         fix small typo in doc string.
14932
14933         * lisp.h:
14934         declare enqueue_Xt_dispatch_event.
14935
14936 2000-04-28  Ben Wing  <ben@xemacs.org>
14937
14938         * buffer.c:
14939         * buffer.c (Frecord_buffer):
14940         * buffer.c (syms_of_buffer):
14941         delete record-buffer-hook.
14942
14943         * fns.c:
14944         * fns.c (Freplace_list):
14945         * fns.c (syms_of_fns):
14946         new primitive replace-list.
14947
14948         * frameslots.h:
14949         slot for old buffer-alist.
14950
14951         * lisp.h:
14952         exfun replace-list.
14953
14954         * redisplay.c:
14955         * redisplay.c (redisplay_frame):
14956         * redisplay.c (syms_of_redisplay):
14957         * redisplay.c (vars_of_redisplay):
14958         new hook buffer-list-changed-hook.
14959         call it.
14960
14961 2000-04-27  Ben Wing  <ben@xemacs.org>
14962
14963         * extents.h: extern in_modeline_generation.
14964
14965         * redisplay.c (generate_formatted_string_db): set
14966         in_modeline_generation.
14967
14968         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14969         flags if in modeline generation.  otherwise frame-modified-tick
14970         is ticked far too often.
14971         Declare in_modeline_generation.
14972
14973 2000-04-26  Ben Wing  <ben@xemacs.org>
14974
14975         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14976         option.
14977         (vars_of_emacs): add quick-build as an error-checking option.
14978         A bit kludgy, but there doesn't seem much point in creating
14979         a real var for this.
14980
14981         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14982
14983 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14984
14985         * redisplay.h (struct display_line): Add a new variable,
14986         line_continuation.
14987
14988         * redisplay.c (create_text_block): Set dl->line_continuation if
14989         the line continues.
14990         (create_string_text_block): Ditto.
14991         (regenerate_window_incrementally): Use line_continuation instead
14992         of searching continuation glyph.
14993         (add_margin_runes): Call add_glyph_rune.
14994         (add_glyph_rune): Handle margin glyph.
14995
14996 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14997
14998         * filelock.c (fill_in_lock_file_name):
14999         ANSIfy.
15000         Check for IS_ANY_SEP instead of '/'.
15001         (lock_file_1):
15002         Avoid generating gratuitous garbage.  Call user_login_name() directly.
15003         Never check errno without first seeing that system call failed.
15004         (unlock_file): Add GCPRO.
15005         (Flock_buffer): Fix docstring.
15006         (Ffile_locked_p): Fix docstring.  Add GCPRO.
15007
15008 2000-04-19  Martin Buchholz  <martin@xemacs.org>
15009
15010         * sysdep.c (get_pty_max_bytes):
15011         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
15012         strings longer than 252 bytes.
15013
15014         * md5.c: Unconditionally include ANSI header <limits.h>
15015
15016         * glyphs-x.c (convert_EImage_to_XImage):
15017         * lisp-union.h (union Lisp_Object):
15018         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
15019
15020 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
15021
15022         * filelock.c (current_lock_owner): Remove unused variable o, p.
15023
15024 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
15025
15026         * callint.c: Remove multiply defined symbol Qlet
15027         (syms_of_callint): ditto.
15028
15029 2000-04-14  Andy Piper  <andy@xemacs.org>
15030
15031         * general.c (syms_of_general): add last-command, this-command, let
15032         and funcall.
15033
15034         * lisp.h: declare various symbols.
15035
15036         * glyphs.h: declare Qwidget_callback_current_channel;
15037
15038         * glyphs-widget.c (syms_of_glyphs_widget): add
15039         Qgui_callback_current_channel.
15040         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
15041
15042         * gui-msw.c (mswindows_handle_gui_wm_command): bind
15043         widget-callback-current-channel when invoking the interactive
15044         arg. Also bind last-command and next-command when invoking the
15045         widget updates.
15046         * gui-x.c (popup_selection_callback): ditto.
15047
15048         * gui.c (get_gui_callback): massage args so that we are always
15049         calling eval. This allows us to add our own variable bindings
15050         outside.
15051
15052         * glyphs-x.c (x_button_instantiate): use
15053         gui_items_to_widget_values since this is GC safe.
15054         (x_progress_gauge_instantiate): ditto.
15055         (x_edit_field_instantiate): ditto.
15056         (x_label_instantiate): ditto.
15057
15058         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
15059         (emacs_Xt_event_widget_focus_out): new function
15060         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
15061         focus.
15062         (emacs_Xt_event_add_widget_actions): new function. add focus
15063         functions as actions.
15064         (init_event_Xt_late): use it.
15065
15066 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
15067
15068         * event-stream.c (Fdispatch_event): Doc fix.
15069
15070 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
15071
15072         * postgresql.c: Remove all references to PQsetenv*.
15073
15074         * postgresql.h: Remove references to PGsetenvHandler object.
15075         * lrecord.h (lrecord_type): Ditto.
15076
15077 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15078
15079         * glyphs-msw.h (struct mswindows_image_instance_data): Added
15080         real_heigh and real_width members, and accessor macros for these.
15081
15082         * glyphs-msw.c (init_image_instance_geometry): New function.
15083         (init_image_instance_from_dibitmap): Use it.
15084         (mswindows_resource_instantiate): Use it.
15085         (init_image_instance_from_xbm_inline): Use it.
15086         (mswindows_initialize_image_instance_mask): Use real bitmap
15087         geometry.
15088         (mswindows_create_resized_bitmap): Ditto.
15089         (mswindows_create_resized_mask): Ditto.
15090
15091         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
15092         and bitmap to their surface size.
15093
15094 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
15095
15096         * process-unix.c (unix_send_process): Guard against process MIA
15097         after Faccept_process_output.
15098
15099 2000-04-11  Ben Wing  <ben@xemacs.org>
15100
15101         * eval.c (unbind_to_hairy): fix brokenness introduced by
15102         nanosecond speed improvements.
15103
15104 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
15105
15106         * sunplay.c (init_device): To play sounds correctly, the device
15107         apparently needs to be initialized at least once by XEmacs.  Make
15108         it so.
15109
15110 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15111
15112         * redisplay.c (add_margin_runes): Add text image glyph
15113           handling.
15114
15115 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
15116
15117         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
15118         gcc is newer than 2.5.
15119
15120 2000-04-06  Colin Rafferty  <colin@xemacs.org>
15121
15122         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
15123
15124         * fns.c (size_bit_vector):
15125         * alloc.c (size_vector):
15126         (make_vector_internal):
15127         (make_bit_vector_internal):
15128         (sweep_bit_vectors_1):
15129         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
15130
15131 2000-04-06  Andy Piper  <andy@xemacs.org>
15132
15133         * gmalloc.c (malloc): undo previous change.
15134         (malloc): ditto.
15135         (free): ditto.
15136         (realloc): ditto.
15137
15138 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
15139
15140         * line-number.c (buffer_line_number): Revert to former version.
15141
15142 2000-04-06  Andy Piper  <andy@xemacs.org>
15143
15144         * gmalloc.c (malloc): add error checking.
15145         (malloc): ditto.
15146         (free): ditto.
15147         (realloc): ditto.
15148
15149         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
15150         button_item_to_widget_value arg.
15151
15152         * glyphs-x.c (x_button_instantiate): add extra
15153         button_item_to_widget_value arg.
15154         (x_progress_gauge_instantiate): ditto.
15155         (x_edit_field_instantiate): ditto.
15156         (x_label_instantiate): ditto.
15157
15158         * gui-x.c (gui_items_to_widget_values_1): add extra
15159         button_item_to_widget_value arg.
15160         (button_item_to_widget_value): add extra menu_item_p arg.
15161
15162         * gui-x.h: change signature of button_item_to_widget_value.
15163
15164         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
15165         button_item_to_widget_value arg.
15166
15167 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
15168
15169         * buffer.h (struct buffer): auto_save_modified should be long.
15170
15171 2000-04-05  Andy Piper  <andy@xemacs.org>
15172
15173         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
15174         type.
15175         (button_query_geometry): give a little more room so that athena
15176         buttons fit.
15177
15178 2000-04-05  Andy Piper  <andy@xemacs.org>
15179
15180         * faces.c (complex_vars_of_faces): The widget face should inherit
15181         the font of the gui-element face.
15182
15183 2000-04-04  Andy Piper  <andy@xemacs.org>
15184
15185         * glyphs-x.c (x_button_update): new function. unconditionally
15186         update a button's state when the instance is dirty.
15187         (image_instantiator_format_create_glyphs_x): add x_button_update.
15188         (x_widget_instantiate): remove old resize cruft.
15189
15190 2000-04-02  Andy Piper  <andy@xemacs.org>
15191
15192         * frame.c (change_frame_size_1): The introduction of gutters means
15193         that we need to allow 0 as a potential frame dimension.
15194
15195 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15196
15197         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
15198         image glyph if allow_cursor.
15199         (add_hscroll_rune): Don't allow cursor to border glyph.
15200         (create_text_block): Ditto.
15201
15202         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
15203         text not in buffer.
15204         (redisplay_output_layout): Call ensure_face_cachel_complete for
15205         text image glyph.
15206
15207
15208 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15209
15210         * redisplay.c (add_glyph_rune): Adding text image as text runes.
15211
15212         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
15213         not in buffer
15214
15215         * redisplay-tty.c (tty_output_display_block): Delete the routine
15216         for text image glyph
15217         * redisplay-x.c (x_output_display_block): ditto
15218         * redisplay-msw.c (mswindows_output_display_block): ditto
15219
15220 2000-02-02  Mike Alexander  <mta@arbortext.com>
15221
15222         Note: Some of these were committed by accident as part of other
15223         patches.
15224
15225         * regex.c (regex_compile): Avoid compiler warnings.
15226
15227         * ntproc.c (sys_spawnve): Avoid compiler warnings.
15228
15229         * nt.h: Declare term_ntproc correctly.
15230
15231         * nt.c: Remove incorrect declaration of get_home_directory which
15232         is declared correctly in lisp.h.
15233
15234         * keymap.c (get_keyelt): Avoid compiler warnings.
15235         (raw_lookup_key_mapper): Avoid compiler warnings.
15236
15237         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
15238
15239         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
15240
15241         * filemode.c (mode_string): Avoid compiler warnings.
15242
15243         * file-coding.c (Fcoding_system_aliasee): Add return statement to
15244         avoid warning.
15245
15246         * events-mod.h: Undef some things that winuser.h defines differently.
15247
15248         * data.c (Faset): Avoid compiler warnings.
15249
15250         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
15251
15252 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15253
15254         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
15255         Fall through to simple beep on error.
15256         Replace "extern" by real header file.
15257
15258         * linuxplay.c: Use nativesound.h
15259         (play_sound_data): Return error code. Be less verbose on error.
15260
15261         * sunplay.c: Use nativesound.h
15262         (play_sound_data): Return error code. Be less verbose on error.
15263
15264         * ntplay.c: Use nativesound.h
15265         (play_sound_data): Return fake error code
15266
15267         * sgiplay.c: Use nativesound.h
15268         (play_sound_data): Return error code
15269
15270         * hpplay.c: Use nativesound.h, partially implement
15271         new error code. Break compilation until finished.
15272         (play_sound_data): error code.
15273
15274         * nativesound.h (play_sound_file):
15275           (play_sound_data): Prototype in new header.
15276
15277 2000-03-31  Andy Piper  <andy@xemacs.org>
15278
15279         * glyphs-widget.c: (button_query_geometry): new function. Adjust
15280         for toggle and radio buttons.
15281         (image_instantiator_buttons): use it.
15282
15283 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15284
15285         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
15286         (x_update_horizontal_scrollbar_callback): Return if no mirror was
15287         found. Scrollbar event probably belonged to some old config.
15288
15289 2000-03-31  Andy Piper  <andy@xemacs.org>
15290
15291         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
15292         than 1.
15293         (initialize_widget_image_instance): default layout to
15294         LAYOUT_HORIZONTAL rather than 0.
15295         (widget_instantiate): reverse the item list at the end rather than
15296         every iteration.
15297         (layout_layout): re-code for the border text at the front of the
15298         item list rather than at the end.
15299         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
15300         provided by the user.
15301         (widget_query_geometry): comment.
15302
15303 2000-03-30  Andy Piper  <andy@xemacs.org>
15304
15305         * glyphs-widget.c (image_instantiator_layout): allow standard
15306         widget keywords in layouts.
15307
15308         * gutter.c (output_gutter): cope with nil gutter contents.
15309
15310         * frame.c (Fset_frame_properties): add gutter docs.
15311
15312 2000-03-29  Andy Piper  <andy@xemacs.org>
15313
15314         * toolbar-msw.c (TBSTYLE_FLAT): add.
15315         (mswindows_output_toolbar): minor fiddling.
15316
15317 2000-03-29  Andy Piper  <andy@xemacs.org>
15318
15319         * gutter.c (output_gutter): force gutter size recalculation if
15320         what we are trying to display won't fit.
15321         (update_gutter_geometry): new function. A per-gutter version of
15322         update_frame_gutter_geometry.
15323         (update_frame_gutter_geometry): use it.
15324         (redraw_exposed_gutter): add extra debugging output.
15325
15326 2000-03-28  Mike Alexander  <mta@arbortext.com>
15327
15328         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
15329         (pdump_file_unmap): Implement it on Windows
15330         (pdump_file_get): Save alocated handles for pdump_file_unmap
15331
15332 2000-03-28  Andy Piper  <andy@xemacs.org>
15333
15334         * gui.c (get_gui_callback): treat Quit specially.
15335
15336 2000-03-27  Andy Piper  <andy@xemacs.org>
15337
15338         * glyphs.c (image_instantiate): be careful to check in the same
15339         way we assigned.
15340
15341 2000-03-27  Didier Verna  <didier@xemacs.org>
15342
15343         * config.h.in: define the proper SMART_INCLUDE macro.
15344         handle renaming of `foo_h_path' to `foo_h_file'.
15345
15346         * database.c: ditto.
15347
15348         * emacs.c: ditto.
15349
15350         * linuxplay.c: ditto.
15351
15352         * terminfo.c: ditto.
15353
15354         * tooltalk.h: ditto.
15355
15356 2000-03-27  Andy Piper  <andy@xemacs.org>
15357
15358         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15359         gets updated whenever the face might have changed.
15360
15361 2000-03-26  Mike Alexander  <mta@arbortext.com>
15362
15363         * dumper.c (pdump_resource_free): Fix the comment.
15364
15365 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15366
15367         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15368
15369 2000-03-22  Mike Alexander  <mta@arbortext.com>
15370
15371         * dumper.c: Include Windows headers on Windows
15372         (pdump_resource_free): Add a body to the function
15373         (pdump_load): exe_name -> exe_path and add some comments.
15374
15375 2000-03-25  Mike Alexander  <mta@arbortext.com>
15376
15377         * gui.c (copy_gui_item_tree): Return a value in all cases
15378
15379 2000-03-21  Didier Verna  <didier@xemacs.org>
15380
15381         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15382         lwlib/config.h.in.
15383         (SMART_INCLUDE): new macro.
15384         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15385         the proper location.
15386
15387         * postgresql.c: use it.
15388
15389         * inline.c: ditto.
15390
15391 2000-03-24  Andy Piper  <andy@xemacs.org>
15392
15393         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15394         do this.
15395
15396 2000-03-24  Andy Piper  <andy@xemacs.org>
15397
15398         * redisplay-output.c (compare_runes): use image_instance_changed
15399         to detect changes. Do not depend on glyphs_changed, only depend on
15400         dirtiness.
15401          (redisplay_output_layout): add debug messages.
15402         (compare_runes): ditto.
15403
15404         * glyphs.h: declare new functions.
15405         (struct Lisp_Image_Instance): remove percent and associated
15406         accessors.
15407
15408         * gui.h: declare new copying functions.
15409
15410         * gui.c (copy_gui_item_tree): new function.
15411         (copy_gui_item): new function.
15412         (gui_item_id_hash): revert to standard hash.
15413         (gui_item_hash): ditto.
15414         (gui_item_hash_internal): deleted.
15415         (mark_gui_item): mark value.
15416         (gui_item_add_keyval_pair): add value.
15417         (gui_item_init): ditto.
15418         (gui_add_item_keywords_to_plist): ditto.
15419         (gui_item_equal): ditto.
15420         (syms_of_gui): add Q_value.
15421
15422         * glyphs-x.c (x_progress_gauge_update): use pending items and
15423         value for setting the state.
15424         (x_update_widget): don't set items from pending here.
15425
15426         * glyphs-widget.c (update_widget): update items here.
15427         (progress_gauge_set_property): use items for storing value. Put
15428         new value in pending items.
15429
15430         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15431         items for new value. Convert percent -> value.
15432         (mswindows_tab_control_update): don't update items here.
15433
15434         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15435         (update_subwindow): ditto.
15436         (image_instance_changed): new function. Compare hash values and
15437         past and present widget items.
15438         (image_instantiate): We more careful about where we instantiate
15439         things.
15440         (image_instantiate): add error checking.
15441
15442         * gutter.c (syms_of_gutter): use -hook.
15443
15444 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15445
15446         * console-tty.c (Fset_console_tty_input_coding_system): Use
15447         Qkeyboard.
15448         (Fset_console_tty_output_coding_system): Use Qterminal.
15449         (tty_init_console): Use Qkeyboard and Qterminal.
15450
15451 2000-03-21  Ben Wing  <ben@xemacs.org>
15452
15453         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15454         From Mike Alexander <mta@arbortext.com>.
15455
15456 2000-03-21  Ben Wing  <ben@xemacs.org>
15457
15458         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15459         process brokenness.  Proper implementation to come.
15460         * callproc.c:
15461         Rename call-process-internal to old-call-process-internal.
15462         New impl. in process.el.
15463
15464 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15465
15466         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15467
15468 2000-03-20  Andy Piper  <andy@xemacs.org>
15469
15470         * glyphs.c (full_list_hash): make hashes of the same elements in
15471         different orders return different values.
15472
15473 2000-03-20  Martin Buchholz <martin@xemacs.org>
15474
15475         * XEmacs 21.2.32 is released.
15476
15477 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15478
15479         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15480         (DFC_MALLOC_USE_CONVERTED_DATA):
15481         Add aliasing-safe casts to allow use with char* or unsigned char*
15482         lvalues.
15483
15484         * eldap.c (Fldap_open):
15485         (Fldap_search_basic):
15486         (Fldap_add):
15487         (Fldap_modify):
15488         Make C++-compilable.
15489         Make sure GCPRO'ed variables are initialized.
15490         Use temp variables to avoid repeated calls to Flength.
15491
15492 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15493
15494         * sysfile.h:
15495         Make sure PATH_MAX is always defined.
15496         Include limits.h for PATH_MAX.
15497         Deprecate use of MAXPATHLEN.
15498
15499 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15500
15501         * emacs.c: Add reinit_vars_of_fileio.
15502         * symsinit.h: Add reinit_vars_of_fileio.
15503         * fileio.c (reinit_vars_of_fileio): New.
15504         * fileio.c (Fmake_temp_name):
15505         Initialize temp_name random number from microseconds to make
15506         collisions even less likely.  Initialize always at process startup
15507         time.  (make-temp-name) used to return the same file name twice in
15508         a row when PDUMP.
15509         Random stylistic fiddling.
15510         Comment fixes.
15511
15512 2000-03-20  Andy Piper  <andy@xemacs.org>
15513
15514         * glyphs.c (image_instantiate): allow text glyphs to be
15515         instantiated in the minibuffer window.
15516
15517 2000-03-19  Andy Piper  <andy@xemacs.org>
15518
15519         * glyphs.c (image_instance_hash): be careful about which items we
15520         hash on.
15521
15522         * glyphs-widget.c (tab_control_set_property): record into pending
15523         items rather than the actual items.
15524
15525         * glyphs-x.c (x_update_widget): use pending items to update with.
15526
15527         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15528         to update with.
15529
15530         * glyphs.c (mark_image_instance): mark pending items.
15531
15532         * window.c (Fset_window_configuration): record the buffer.
15533         (Fselect_window): totally revert previous change which breaks many
15534         things.
15535
15536 2000-03-18  Andy Piper  <andy@xemacs.org>
15537
15538         * glyphs-msw.c (mswindows_tab_control_update): force selected
15539         item.
15540
15541         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15542         window domain cache, otherwise we get inconsistencies at
15543         startup. There is something fishy at startup which can lead to the
15544         minibuffer being the selected window when the gutter content is
15545         instantiated.
15546
15547         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15548         gcpros.
15549         (parse_gui_item_tree_children): ditto.
15550         (parse_gui_item_tree_item): ditto.
15551
15552         * glyphs.c (Fupdate_widget_instances): return something.
15553
15554 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15555
15556         * window.c (Fselect_window): Undo 2000-03-17 change.
15557
15558 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15559
15560         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15561         against v7.0 libraries.  Insta-coredump city until the postgres
15562         folks fix it.
15563
15564 2000-03-17  Andy Piper  <andy@xemacs.org>
15565
15566         * faces.c (complex_vars_of_faces): don't give the widget face an
15567         inherited background pixmap.
15568
15569         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15570         selected item.
15571
15572         * event-stream.c (Fdispatch_non_command_events): return something.
15573
15574         * gutter.c (output_gutter): use widget face.
15575         (clear_gutter): ditto.
15576
15577         * NEWS: adjust again.
15578
15579         * window.c (Fselect_window): make sure this runs to completion to
15580         avoid oddities with Fset_window_configuration.
15581         (Fcurrent_window_configuration): in general do not save the
15582         minibuffer as the selected window.
15583
15584         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15585
15586 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15587
15588         * emacs.c (Frunning_temacs_p): Revert previous patch.
15589         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15590
15591 2000-03-16  Andy Piper  <andy@xemacs.org>
15592
15593         * glyphs-x.c (x_tab_control_update): if no widget values then
15594         return.
15595
15596         * NEWS: update for new features.
15597
15598         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15599         synthetic event to the native system.
15600         (reinit_vars_of_event_Xt): set force_event_pending to
15601         emacs_Xt_force_event_pending.
15602
15603         * events.h (struct event_stream): add force_event_pending.
15604
15605         * specifier.c (recompute_one_cached_specifier_in_window): add
15606         comment.
15607
15608         * redisplay.c (redisplay_frame): don't call
15609         update_frame_subwindows. Reset subwindow cachels when
15610         subwindows_changed, removing this was an optimization too far.
15611
15612         * redisplay-output.c (compare_runes): reorganize so that we catch
15613         glyph changes when we want them. Set optimize_output when this
15614         would help layouts.
15615         (redisplay_output_layout): remove frame_really_changed, use
15616         optimize_output instead.
15617
15618         * redisplay-msw.c (mswindows_output_display_block): reset
15619         optimize_output after outputting a glyph.
15620         * redisplay-x.c (x_output_display_block): ditto.
15621         * redisplay-tty.c (tty_output_display_block): ditto.
15622
15623         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15624         functions.
15625         (gutter_specs_changed): do specific gutter positions.
15626         (top_gutter_specs_changed): new function. Only update the
15627         specified gutter specs.
15628         (bottom_gutter_specs_changed): ditto.
15629         (left_gutter_specs_changed): ditto.
15630         (right_gutter_specs_changed): ditto.
15631
15632         * gui.c (gui_item_hash_internal): new function, does a real hash.
15633         (gui_item_id_hash): use it.
15634         (gui_item_hash): hash the eval'ed gui_item.
15635
15636         * gui-x.c (popup_selection_callback): send an eval event to call
15637         Fupdate_widget_instances.
15638
15639         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15640         to call Fupdate_widget_instances.
15641
15642         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15643         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15644
15645         * glyphs.c: (update_frame_subwindows): deleted.
15646         (Fupdate_widget_instances): new function for updating the dirty
15647         state of widgets that might have changed.
15648         (syms_of_glyphs): add Qupdate_widget_instances.
15649         (full_list_hash): hash a list completely.
15650         (image_instance_hash): use it for items and properties.
15651
15652         * frame-msw.c (mswindows_size_frame_internal): remove unused
15653         variable.
15654
15655         * faces.h (struct face_cachel): fix comment.
15656
15657         * event-stream.c (Fdispatch_non_command_events): new
15658         function. Process non-command events, forcing an event cycle
15659         beforehand.
15660         (syms_of_event_stream): declare.
15661         (event_stream_force_event_pending): new function. Force an event
15662         on the native event queue so that an event cycle will occur next
15663         time we check.
15664
15665         * event-msw.c:
15666         (struct ntpipe_shove_stream):
15667         (mswindows_enqueue_dispatch_event):
15668         (mswindows_dequeue_dispatch_event):
15669         (mswindows_cancel_dispatch_event):
15670         (mswindows_pump_outstanding_events):
15671         (mswindows_drain_windows_queue):
15672         (mswindows_handle_paint):
15673         (mswindows_wnd_proc):
15674         (mswindows_key_to_emacs_keysym):
15675         (get_process_input_waitable):
15676         (emacs_mswindows_delete_stream_pair): re-indent file.
15677         (mswindows_need_event): do not process further fds if the windows
15678         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15679         fixes the 100% cpu problem.
15680         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15681
15682 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15683
15684         * alloc.h: New.
15685         * dumper.h: New.
15686         * dumper.c: New.
15687
15688         * emacs.c: Moved dump file searching to dumper.c.
15689         (Frunning_temacs_p): Fixed.
15690
15691         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15692         last_lrecord_type_index_assigned.
15693
15694 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15695
15696         * symsinit.h: Added reinit parameter to init_console_stream
15697         declaration.
15698
15699         * lisp.h: Added file parameter to pdump_load declaration.
15700
15701         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15702         support.  Added dump file searching.
15703
15704         * config.h.in: Added EMACS_PROGNAME.
15705
15706         * console-stream.c (init_console_stream): Fix reinitialisation
15707         when running from temacs.
15708
15709         * alloc.c (pdump): Add id support.
15710         (pdump_load): Add file parameter and signature/id support.
15711
15712         * Makefile.in.in: Add full pdump support.
15713
15714 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15715
15716         * postgresql.c: Update documentation to reflect latest code
15717         status.
15718         (print_result): Show tuple counts in printed representation when
15719         appropriate.
15720         (Fpq_put_nbytes): MULE-ize.
15721         (Fpq_get_line_async): Ditto.
15722
15723 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15724
15725         * postgresql.c (Fpq_lo_import): Fix return value.
15726         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15727
15728 2000-03-13  Ben Wing  <ben@xemacs.org>
15729
15730         * alloc.c (pdump_load):
15731         Fix compile warning under mswin.
15732
15733 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15734
15735         * postgresql.c: Mule-ization, bug fixes.
15736         Use PG_CODING to encapsulate coding system name changes.
15737         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15738         (pg-coding-system): Create.
15739
15740         (Fpq_conn_defaults): Mule-ize.
15741         (Fpq_connectdb): Mule-ize & bug fix.
15742         (Fpq_connect_start): Mule-ize.
15743         (Fpq_set_client_encoding): Mule-ize.
15744         (Fpq_finish): Document `DEAD' connection status.
15745         (Fpq_clear): Ditto.
15746         (Fpq_pgconn): Mule-ize.
15747         (Fpq_exec): Mule-ize & bug fix.
15748         (Fpq_send_query): Ditto.
15749         (Fpq_get_result): Ditto.
15750         (Fpq_res_status): Mule-ize.
15751         (Fpq_result_error_message): Mule-ize.
15752         (Fpq_ntuples): fix comments.
15753         (Fpq_fname): Mule-ize.
15754         (Fpq_fnumber): Mule-ize.
15755         (Fpq_ftype): fix comments.
15756         (Fpq_get_value): Mule-ize.
15757         (Fpq_cmd_status): Ditto.
15758         (Fpq_cmd_tuples): Ditto.
15759         (Fpq_oid_value): Ditto.
15760         (Fpq_notifies): Ditto.
15761         (Fpq_lo_import): Ditto.
15762         (Fpq_lo_export): Ditto.
15763         (Fpq_get_line): Ditto.
15764         (Fpq_put_line): Mule-ize and bug fix.
15765         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15766
15767 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15768
15769         * postgresql.c (vars_of_postgresql): Mule-ize.
15770         (Fpq_conn_defaults): Ditto.
15771
15772 2000-03-12  Ben Wing  <ben@xemacs.org>
15773
15774         * alloc.c (Fmake_byte_code):
15775         * alloc.c (debug_string_purity_print):
15776         * alloc.c (pdump_backtrace):
15777         * alloc.c (pdump_get_indirect_count):
15778         * alloc.c (pdump_register_sub):
15779         * alloc.c (pdump_register_object):
15780         * alloc.c (pdump_register_struct):
15781         * alloc.c (pdump_dump_data):
15782         * alloc.c (pdump_reloc_one):
15783         Minor cleanups.
15784
15785         * console-msw.c:
15786         * console-msw.c (GetConsoleHwnd):
15787         * console-msw.c (msw_hide_console):
15788         * console-msw.c (msw_show_console):
15789         * console-msw.c (msw_ensure_console_buffered):
15790         * console-msw.c (msw_output_console_string):
15791         * console-msw.c (console_type_create_mswindows):
15792
15793         a) Added functions to manipulate the console window for use with
15794         shell support.
15795
15796         b) Added support for writing text to the console, which is now
15797         used under Windows when xemacs is not being run non-interactively,
15798         to write text that would otherwise be destined for stdout because
15799         under these circumstances, text written to stdout tends to
15800         disappear and not be seen.
15801
15802         * console-msw.h:
15803         * event-Xt.c:
15804         * event-Xt.c (x_event_to_emacs_event):
15805         * event-Xt.c (describe_event_window):
15806         * events-mod.h (XEMACS_MOD_CONTROL):
15807         * events.c:
15808         * events.c (Fmake_event):
15809         * events.c (character_to_event):
15810         * events.c (event_to_character):
15811         * events.c (format_event_object):
15812         * events.c (Fevent_modifiers):
15813         * events.h:
15814         * events.h (struct key_data):
15815         * events.h (struct button_data):
15816         * events.h (struct misc_user_data):
15817         * frame-x.c (Fcde_start_drag_internal):
15818         * frame-x.c (Foffix_start_drag_internal):
15819         * gpmevent.c (Freceive_gpm_event):
15820         * keymap.c:
15821         * keymap.c (bucky_sym_to_bucky_bit):
15822         * keymap.c (control_meta_superify):
15823         * keymap.c (make_key_description):
15824         * keymap.c (keymap_lookup_directly):
15825         * keymap.c (create_bucky_submap):
15826         * keymap.c (keymap_store):
15827         * keymap.c (define_key_check_and_coerce_keysym):
15828         * keymap.c (define_key_parser):
15829         * keymap.c (define_key_alternate_name):
15830         * keymap.c (Fdefine_key):
15831         * keymap.c (raw_lookup_key_mapper):
15832         * keymap.c (struct map_keymap_unsorted_closure):
15833         * keymap.c (map_keymap_unsorted_mapper):
15834         * keymap.c (map_keymap_sort_predicate):
15835         * keymap.c (map_keymap_sorted):
15836         * keymap.c (accessible_keymaps_mapper_1):
15837         * keymap.c (where_is_recursive_mapper):
15838         * keymap.c (describe_map_mapper):
15839         * keymap.c (describe_map_sort_predicate):
15840         * keymap.c (describe_map):
15841         * keymap.c (complex_vars_of_keymap):
15842         And a number of other files, the key modifier preprocessor
15843         constants that xemacs uses have names that conflict with constants
15844         defined under MS Windows for other purposes, so they were renamed
15845         to begin with the prefix XEMACS_. The variables that hold such
15846         modifiers were changed to consistently be of type int to fix
15847         various compile warnings.
15848
15849         * console.c (complex_vars_of_console):
15850         * device.c:
15851         * device-msw.c:
15852         * device-msw.c (mswindows_finish_init_device):
15853         * device-msw.c (msw_get_workspace_coords):
15854         * device-msw.c (mswindows_device_system_metrics):
15855         and various other files, added support for a new
15856         device property called offset-workspace which returns the position
15857         of the upper left corner of the workspace area and goes along with
15858         the existing size-workspace property.
15859
15860         * dialog-msw.c:
15861         * dialog-msw.c (push_bufbyte_string_as_unicode):
15862         * dialog-msw.c (mswindows_popup_dialog_box):
15863         Added support for XEmacs-style accelerator specifications in
15864         button text.  Note: I didn't add support for this under X Windows,
15865         and somebody needs to do this.
15866
15867         * dialog.c:
15868         * dialog.c (Fpopup_dialog_box):
15869         Documented the support for accelerators that was just mentioned.
15870
15871         editfns.c (get_home_directory): Changed behavior under Windows
15872         when HOME not defined; former behavior was irretrievably broken.
15873
15874         * emacs.c:
15875         * emacs.c (main_1):
15876         * emacs.c (main):
15877         * minibuf.c (clear_echo_area_internal):
15878         * minibuf.c (echo_area_append):
15879         * print.c:
15880         * print.c (std_handle_out_external):
15881         * print.c (std_handle_out_va):
15882         * print.c (fatal):
15883         * print.c (write_string_to_stdio_stream):
15884         * print.c (output_string):
15885         * print.c (debug_print):
15886         * print.c (debug_backtrace):
15887         * print.c (debug_short_backtrace):
15888         Cleaned up the code that prints text to stdout so that this can be
15889         changed to output into a console window instead under MS Windows,
15890         as described above.
15891
15892         * eval.c:
15893         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15894         * eval.c (internal_catch):
15895         * eval.c (unwind_to_catch):
15896         * eval.c (throw_or_bomb_out):
15897         * eval.c (condition_case_1):
15898         * eval.c (signal_1):
15899         * eval.c (check_error_state_sanity):
15900         * eval.c (call_with_suspended_errors_1):
15901         * eval.c (call_with_suspended_errors):
15902         * eval.c (reinit_vars_of_eval):
15903         Added code to catch throw loops and check for a pesky bug that may
15904         be gone now.
15905
15906         * event-msw.c:
15907         * event-msw.c (key_needs_default_processing_p):
15908         * event-msw.c (mswindows_wnd_proc):
15909         * event-msw.c (mswindows_modifier_state):
15910         * event-msw.c (emacs_mswindows_quit_p):
15911         * event-msw.c (vars_of_event_mswindows):
15912         a) Added support for using the alt key to select menu items as is
15913         standard under MS Windows.  This is controlled using the variable
15914         menu-accelerator-enabled, just like under X Windows.  There is an
15915         option on the options menu to turn this support on.  I really
15916         think that it should be on by default under Windows, but I'm not
15917         going to make this change yet.
15918
15919         b)  Added support for dynamic display size changes under Windows.
15920
15921         * event-stream.c:
15922         * event-stream.c (maybe_echo_keys):
15923         * event-stream.c (Fnext_event):
15924         * event-stream.c (command_builder_find_leaf):
15925         * event-stream.c (lookup_command_event):
15926         * event-stream.c (execute_command_event):
15927         * event-stream.c (pre_command_hook):
15928         * event-stream.c (post_command_hook):
15929         * event-stream.c (syms_of_event_stream):
15930         * event-stream.c (vars_of_event_stream):
15931         * event-stream.c (complex_vars_of_event_stream):
15932         * events.h (struct command_builder):
15933
15934         a) Tried to clean up a little bit the horribly written x-specific
15935         accelerator code that crept into this file.  I moved this code
15936         into menubar-x.c where it belongs. I also needed to move the
15937         command builder structure into the file events.h because it is
15938         accessed directly by this accelerator code.  What I didn't do, but
15939         which should be done at some point, is to properly abstract this
15940         code using device methods instead of the kludgy way that it
15941         currently hooks into the event code.
15942
15943         b) Added the lisp variables this-command-properties and
15944         last-command- properties, which should be used to synchronize two
15945         adjacent commands in preference to playing games with the variable
15946         this-command, which is typically what happens.
15947
15948         c) Added some slightly nasty code to hook into the lisp support
15949         for shifted- motion-key selection.  This is actually necessary for
15950         somewhat complicated reasons, which are described in
15951         simple.el. (NB: I think the proper thing would be to have the code
15952         that calls the pre and post command hooks also call out to generic
15953         lisp functions in simple.el, where all built-in stuff could be
15954         added.  I will think about this more.)
15955
15956         * event-unixoid.c (poll_fds_for_input):
15957         * lread.c (readchar):
15958         * redisplay-tty.c (tty_clear_frame):
15959         * redisplay-x.c (x_get_gc):
15960         * signal.c (interrupt_signal):
15961         And a whole bunch of other files: fixed up places that printed
15962         directly to stderr to instead call the function stderr_out so that
15963         the changes I made under Windows work correctly.
15964
15965         * filemode.c (mode_string):
15966         Warning fixes.
15967
15968         * frame-msw.c:
15969         * frame-msw.c (mswindows_size_frame_internal):
15970         Fixed the computation of frame size and position to keep the frame
15971         within the workspace area, rather than within the physical
15972         dimensions of the screen, so that the frame doesn't overlap window
15973         manager decorations, such as the start menu and toolbar, typically
15974         at the bottom of the screen.
15975
15976         * frame.c (vars_of_frame):
15977         Changed the default frame title format under MS Windows to consist
15978         of buffername-XEmacs, which is standard under MS Windows.  I think
15979         it might be a good idea to change this everywhere because I think
15980         it is superior to the current frame title format, but this is the
15981         kind of change that is likely to cause some people to get annoyed,
15982         so I'm not making it.
15983
15984         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15985
15986         * gui-msw.c (mswindows_handle_gui_wm_command):
15987         Fixed compile warnings.
15988
15989         * gui-x.c:
15990         * gui-x.c (strdup_and_add_accel):
15991         * gui-x.c (button_item_to_widget_value):
15992         * gui-x.h:
15993         Added code to automatically put an accelerator onto the beginning
15994         of menu items that don't have one as is now the standard, and is
15995         described more later.  Also fixed things so that the menu item
15996         name can be an evaluated expression, again a new standard.
15997
15998         * gui.c:
15999         * gui.c (gui_item_add_keyval_pair):
16000         * gui.c (make_gui_item_from_keywords_internal):
16001         * gui.c (gui_add_item_keywords_to_plist):
16002         * gui.c (gui_item_accelerator):
16003         * gui.c (gui_name_accelerator):
16004         * gui.c (gui_item_included_p):
16005         * gui.c (gui_item_display_flush_left):
16006         * gui.c (gui_item_display_flush_right):
16007         * gui.c (parse_gui_item_tree_item):
16008         * gui.c (parse_gui_item_tree_children):
16009         * gui.c (parse_gui_item_tree_list):
16010         Mule-ized.  Cleanup.  GCPRO addition.
16011
16012         * line-number.c (buffer_line_number):
16013         * lisp.h:
16014         * lisp.h (EMACS_INT_MAX):
16015         Added the manifest constant EMACS_INT_MIN corresponding to the
16016         existing constant EMACS_INT_MAX.  This is partially to fix compile
16017         warnings under Windows, and partly for cleanliness.
16018
16019         * menubar-msw.c:
16020         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
16021         * menubar-msw.c (msw_translate_menu_or_dialog_item):
16022         * menubar-msw.c (displayable_menu_item):
16023         * menubar-msw.c (populate_menu_add_item):
16024         * menubar-msw.c (populate_or_checksum_helper):
16025         * menubar-msw.c (populate_menu):
16026         * menubar-msw.c (update_frame_menubar_maybe):
16027         * menubar-msw.c (prune_menubar):
16028         * menubar-msw.c (msw_char_is_accelerator):
16029         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
16030         * menubar-msw.c (mswindows_handle_wm_command):
16031         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
16032         * menubar-msw.c (mswindows_handle_wm_initmenu):
16033         * menubar-msw.c (mswindows_update_frame_menubars):
16034         * menubar-msw.c (mswindows_free_frame_menubars):
16035         * menubar-msw.c (mswindows_popup_menu):
16036         Fixed a bug in handling accelerators where an extra character
16037         would be displayed in the menu item.  Also generalized the
16038         function displayable_menu_item because it is now used by the
16039         dialog box code as well.  And finally, added code in the functions
16040         that create the menubar to extract a list of accelerators for the
16041         top level menubar, which is used in the event code to determine
16042         whether a particular alt-key combination should be used to invoke
16043         a menu item, or should be passed through to access the standard
16044         XEmacs keymap binding for this key combination.
16045
16046         Much needed GCPROing.
16047
16048         * menubar-x.c:
16049         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
16050         * menubar-x.c (menu_item_descriptor_to_widget_value):
16051         * menubar-x.c (restore_in_menu_callback):
16052         * menubar-x.c (x_popup_menu):
16053         * menubar-x.c (menu_move_up):
16054         * menubar-x.c (menu_move_down):
16055         * menubar-x.c (menu_move_left):
16056         * menubar-x.c (menu_move_right):
16057         * menubar-x.c (menu_select_item):
16058         * menubar-x.c (command_builder_operate_menu_accelerator):
16059         * menubar-x.c (menu_accelerator_junk_on_error):
16060         * menubar-x.c (command_builder_find_menu_accelerator):
16061         * menubar-x.c (Faccelerate_menu):
16062         * menubar.h:
16063         Moved a whole bunch of code here that was previously in
16064         event-stream.c as described above.  There is also code connected
16065         to the new standard of adding an accelerator to the beginning of
16066         menu items that don't have one as described above and below.
16067
16068         * menubar.c:
16069         * menubar.c (menu_parse_submenu_keywords):
16070         * menubar.c (Fmenu_find_real_submenu):
16071         * menubar.c (Fnormalize_menu_item_name):
16072         * menubar.c (syms_of_menubar):
16073         * menubar.c (vars_of_menubar):
16074         * menubar.c (complex_vars_of_menubar):
16075
16076         a) Cleaned up a bunch of documentation and improved it.
16077
16078         b) XEmacs now automatically adds an accelerator onto the beginning
16079         of any menu items that don't have one.  I did this because there
16080         will inevitably be some menu items on the main menubar that don't
16081         have accelerators on them because the package that adds that
16082         particular menu item hasn't yet been fixed up to have accelerators
16083         in them and it looked rather strange to have some items with and
16084         some items without accelerators, especially since even in items
16085         without accelerators, you can, at least under windows, still
16086         access the item through an accelerator corresponding to the first
16087         character in the item's name.  If people don't like this behavior,
16088         I can add a variable to turn it off optionally, but I'm not sure
16089         this is a good idea because we really do need to have accelerators
16090         on all of the menu items, and if a package doesn't like the
16091         accelerators being put on the first character, then it should put
16092         the accelerators where they belong.
16093
16094         c) I made a behavior change, which is that the descriptor that
16095         specifies the text of the menu item, which formerly was just a
16096         string, can now also be an evaluated expression.  This makes this
16097         descriptor parallel with all of the others, which could also be
16098         evaluated expressions.  This also obviates the need for the
16099         keyword :label, which was previously listed in the documentation
16100         as unimplemented, and which was for the same purpose.
16101
16102         d) GCPROing.
16103
16104         * ntproc.c:
16105         * ntproc.c (new_child):
16106         * ntproc.c (sys_spawnve):
16107         * ntproc.c (find_child_console):
16108         * ntproc.c (sys_kill):
16109         Fixed compile warnings.  By the way, this file should really go
16110         away entirely, and this will happen as soon as Kirill makes his
16111         final round of process cleanups, which affect the function
16112         call-process.
16113
16114         * process-nt.c:
16115         * process-nt.c (struct nt_process_data):
16116         * process-nt.c (find_process_from_pid):
16117         * process-nt.c (send_signal_the_nt_way):
16118         * process-nt.c (enable_child_signals):
16119         * process-nt.c (find_child_console):
16120         * process-nt.c (send_signal_the_95_way):
16121         * process-nt.c (nt_finalize_process_data):
16122         * process-nt.c (ensure_console_window_exists):
16123         * process-nt.c (nt_create_process):
16124         * process-nt.c (nt_kill_child_process):
16125         * process-nt.c (nt_kill_process_by_pid):
16126         * process-nt.c (nt_open_network_stream):
16127         * process-nt.c (vars_of_process_nt):
16128         Copied over code from Emacs 20.5 to correctly send signals to sub-
16129         processes under Windows 95.  Also added code to automatically
16130         create and hide console window when a sub-process is created under
16131         Windows 95, which obviates the need for the separate runemacs.exe
16132         executable, and finally implemented some variables that were
16133         implemented in Emacs 20.5, but previously not in XEmacs.  These
16134         include mswindows- start-process-share-console and
16135         mswindows-start-process-inherit-error-mode. (Both of these only
16136         apply to Windows 95.)
16137
16138         * regex.c (regex_compile): Fixed a compile warning.
16139
16140         * select-msw.c:
16141         * select-msw.c (mswindows_own_selection):
16142         * select-msw.c (mswindows_get_foreign_selection):
16143         * select-msw.c (mswindows_disown_selection):
16144         * select-msw.c (console_type_create_select_mswindows):
16145         * select-msw.c (syms_of_select_mswindows):
16146         Cleaned up the file and implemented the device method
16147         selection_exists_p, which had accidentally been left out.  Also
16148         removed four lisp functions that were remnants from before the
16149         time when the selection code was properly device abstracted.
16150         These functions are no longer needed because there are generic
16151         equivalents, and because they were added recently and don't exist
16152         in FSF Emacs, I don't think there's any problem with just deleting
16153         them.
16154
16155         * sysdep.c:
16156         * sysdep.c (sys_subshell):
16157         Fixed a compile warning, although in this case there's probably
16158         something wrong with this code, and it ought to be looked into
16159         more thoroughly by somebody who understands it.
16160
16161         * window.c:
16162         * window.c (Fwindow_text_area_height):
16163         * window.c (Fwindow_width):
16164         * window.c (Fwindow_full_width):
16165         * window.c (Fwindow_pixel_width):
16166         * window.c (debug_print_window):
16167         * window.c (syms_of_window):
16168         Added functions window-text-area-height and window-full-width,
16169         which are functions for returning various width and height
16170         characteristics of a window. (One of these functions is necessary
16171         for making the file dialog box work correctly, and the other one
16172         was added for completeness.)  Also added a table to the
16173         documentation for window-height which describes the entire scheme
16174         for accessing width and height characteristics of a window.
16175
16176 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16177
16178         * nt.c (fstat): Added a comment for another problem with
16179         non-encapsulated [f]stat(), reported by Adrian Aichner
16180         <aichner@ecf.teradyne.com>.
16181
16182 2000-03-11  Andy Piper  <andy@xemacs.org>
16183
16184         * window.c (make_dummy_parent): initialize subwindow instance
16185         cache.
16186         (Fset_window_configuration): zero extent_modiff.
16187
16188 2000-03-10  Andy Piper  <andy@xemacs.org>
16189
16190         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
16191         more changes can be triggered.
16192         (Fredisplay_frame): ditto.
16193         (Fredraw_device): ditto.
16194         (Fredisplay_device): ditto.
16195         (redisplay_frame): make non-static.
16196         (redisplay_frame): call update_frame_gutter_geometry outside of
16197         display proper.
16198
16199         * gutter.h: declare update_frame_gutter_geometry.
16200
16201         * redisplay.h: declare redisplay_frame.
16202
16203         * gutter.c (update_frame_gutter_geometry): move geometry changes
16204         in update_frame_gutters here. Geometry changes can only occur
16205         outside of redisplay.
16206         (update_frame_gutters): remove geometry change code.
16207         (Fredisplay_gutter_area): make sure that we are in display when we
16208         update and that we have flushed any size changes.
16209
16210 2000-03-11  Andy Piper  <andy@xemacs.org>
16211
16212         * alloc.c (pdump_dump_data): remove i & count shadows.
16213
16214 2000-02-27  Mike Alexander  <mta@arbortext.com>
16215
16216         * sysdep.h: Declare pdump_read_file
16217
16218         * sysdep.c (pdump_read_file): New function
16219
16220         * alloc.c (pdump_load): Call pdump_read_file to get the portable
16221         dump data
16222
16223 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
16224
16225         * lrecord.h: add `lrecord_type_pgsetenv'.
16226
16227 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
16228
16229         * symsinit.h: declare (vars|syms)_of* functions.
16230         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
16231
16232 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
16233
16234         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
16235
16236         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
16237         GCCs.
16238
16239         * emacs.c (main_1): Call postgres initialization code.
16240
16241         * postgresql.h: New file.  PostgreSQL RDBMS support.
16242         * postgresql.c: New file.
16243
16244 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
16245
16246         * redisplay-output.c (redisplay_output_display_block): Disable
16247         redundant code.
16248
16249 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16250
16251         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
16252         (Fcanna_henkan_next): Ditto.
16253         (Fcanna_bunsetu_henkou): Ditto.
16254         (Fcanna_henkan_kakutei): Ditto.
16255         (Fcanna_henkan_end): Ditto.
16256         (Fcanna_henkan_quit): Ditto.
16257         (Fcanna_henkan_next): Set retun value correctly.
16258         (c2mu): Use unsigned char instead of signed char.
16259
16260 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16261
16262         * emacs.c (main_1): Always call syms_of_gui.
16263         * inline.c: include gui.h
16264
16265 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16266
16267         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
16268         converted to Lisp_Object.
16269         (Qtop_bottom): New variable.
16270         (syms_of_redisplay): Initialize it.
16271         * redisplay.h (Vvisible_bell): Ditto.
16272         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
16273         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
16274         only flash top and bottom.
16275
16276 2000-03-08  Andy Piper  <andy@xemacs.org>
16277
16278         * buffer.c (Frename_buffer): record new buffer name the right way.
16279
16280 2000-03-08  Andy Piper  <andy@xemacs.org>
16281
16282         * glyphs.c (update_subwindow): increase hash depth so that widget
16283         items get picked up properly.
16284
16285         * redisplay-output.c (compare_runes): increase hash depth so that
16286         widget items get picked up properly.
16287
16288 2000-03-08  Andy Piper  <andy@xemacs.org>
16289
16290         * gutter.c (output_gutter): add some debug.
16291
16292         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
16293         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
16294         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
16295
16296         * redisplay-output.c (compare_runes): use display_hash to
16297         determine if glyphs really are not the same.
16298
16299         * glyphs.c (update_subwindow): check display_hash to see if
16300         anything really needs to be updated. If not then do
16301         nothing. Record the display_hash after updating.
16302         (image_instance_equal): compare the image_instance face also.
16303
16304 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
16305
16306         * redisplay.h: Fix comment style.
16307
16308 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16309
16310         * consle-msw.h (struct mswindows_frame):
16311         Added new member paint_pending to indicate whether a WM_PAINT
16312         magic event has been queued for this frame.
16313
16314         * event-msw.c (mswindows_drain_windows_queue):
16315         Don't queue a WM_PAINT magic event if one is already queued.
16316         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
16317
16318         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
16319
16320 2000-03-07  Didier Verna  <didier@xemacs.org>
16321
16322         * dired.c: #include `regex.h' after `sysfile.h'.
16323
16324 2000-03-06  Martin Buchholz  <martin@xemacs.org>
16325
16326         * sound.c (init_nas_sound): Fix compiler warning.
16327
16328         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
16329         (FREE_STRUCT_P):
16330         (MARK_STRUCT_AS_FREE):
16331         (MARK_STRUCT_AS_NOT_FREE):
16332         Make `gcc -fstrict-aliasing' work properly.
16333
16334 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16335
16336         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16337         (mswindows_delete_device): Call CoUnnitialize().
16338
16339         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16340
16341 2000-02-25    <CraigL@DyCon.com>
16342
16343         * process-nt.c: MinGW now has <shellapi.h>, but still needs
16344         <errno.h>.
16345
16346         * sysdep.c: This extern declaration for environ prevents MinGW
16347         from finding the variable in CRTDLL.DLL.
16348
16349         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16350         windows headers.
16351         (SHGFI_EXETYPE): ..
16352         (WM_MOUSEWHEEL): ..
16353         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16354         definitions.
16355         (MMRESULT): Removed, now defined in cygwin's windows headers.
16356         (TIMECAPS): ..
16357         (uid_t,gid_t,pid_t,ssize_t): ..
16358         (_timeb): Removed, MinGW defines both _timeb and timeb.
16359         (HAVE_H_ERRNO): Added.
16360         (HAVE_TZNAME): Added, configure is not detecting this.
16361
16362 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16363
16364         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16365         * syntax.c (syntax_match): Use it.
16366
16367         * cmds.c: Import auto-fill-chars from FSF Emacs.
16368         (Vauto_fill_chars): New variables.
16369         (internal_self_insert): Check Vauto_fill_chars.
16370         (vars_of_cmds):
16371         Declare auto-fill-chars as a Lisp variable and initialize it.
16372
16373 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16374
16375         * fileio.c (Fmake_symbolic_link):
16376         (Ffile_symlink_p):
16377         Run handlers even if local machine doesn't have symlinks.
16378
16379 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16380
16381         * event-msw.c (mswindows_drain_windows_queue):
16382         Don't generate paint magic events for non-XEmacs frames.
16383
16384 2000-03-05  Andy Piper  <andy@xemacs.org>
16385
16386         * redisplay.c (redisplay_frame): generate_displayable_area and
16387         friends assumes that we are not in GC, we therefore have to make
16388         sure that this doesn't happen.
16389
16390         * gutter.c (calculate_gutter_size): generate_displayable_area
16391         assumes that we are not in GC, we therefore have to make sure that
16392         this doesn't happen.
16393
16394 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16395
16396         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16397
16398 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16399
16400         * redisplay.c (regenerate_window): Make sure we set a sane value
16401         for end_pos even if we jump out of the loop.
16402         (regenerate_window): Answer Ben's question :-).
16403         (start_end_of_last_line): Add may_error argument.
16404         (start_of_last_line):
16405         (end_of_last_line): Pass may_error = 0.
16406         (end_of_last_line_may_error): New function.
16407         (pixel_to_glyph_translation): Use it, so we don't crash in
16408         event_to_glyph.
16409
16410 2000-03-04  Andy Piper  <andy@xemacs.org>
16411
16412         * window.h (struct window): add gutter_extent_modiff.
16413
16414         * window.c (allocate_window): zero out gutter_extent_modiff.
16415
16416         * redisplay.h: declare sync_display_line_structs.
16417
16418         * redisplay.c (add_glyph_rune): add a better comment.
16419
16420         * redisplay-output.c (sync_display_line_structs): made non-static.
16421         (compare_runes): remove unneccesary glyph cachel access.
16422
16423         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16424
16425         * gutter.c (output_gutter): don't output the gutter if extent
16426         changes only involve extents in buffers. use 4 sets of display
16427         lines.
16428         (gutter_extent_signal_changed_region_maybe): new function. Mark
16429         extents in gutters as changed.
16430         (update_frame_gutters): use 4 sets of display lines.
16431         (reset_gutter_display_lines): ditto.
16432         (free_frame_gutters): ditto.
16433         (redraw_exposed_gutter): force output of gutters.
16434
16435         * frame.h (struct frame): add 4 sets of gutter display lines.
16436
16437         * extents.c: (extent_changed_for_redisplay): signal changes to
16438         extents in strings in the gutter as well as extents in buffers.
16439
16440 2000-03-02  Andy Piper  <andy@xemacs.org>
16441
16442         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16443
16444         * frame.c (Fmake_frame): make sure the gutters get initialized
16445         after the frame is visible.
16446         (set_frame_selected_window): re-arrange compilation macros a
16447         little.
16448         (change_frame_size_1): mark gutters changed.
16449
16450         * device.c (Fset_device_class): mark gutters changed.
16451
16452 2000-03-01  Andy Piper  <andy@xemacs.org>
16453
16454         * window.c (window_top_frame_gutter_height): deleted.
16455         (window_bottom_frame_gutter_height): ditto.
16456         (window_left_frame_gutter_height): ditto.
16457         (window_right_frame_gutter_height): ditto.
16458         (window_top_gutter_height): don't use them.
16459         (window_bottom_gutter_height): ditto.
16460         (window_left_gutter_width): ditto.
16461         (window_right_gutter_width): ditto.
16462         (Fsplit_window): ditto.
16463         (Fwindow_pixel_edges): don't use border dimensions here.
16464
16465         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16466         (update_scrollbar_instance): ditto.
16467
16468         * redisplay.c (generate_modeline): don't take gutters into account.
16469         (generate_modeline): ditto.
16470         (redisplay_frame): small gutter display optimization.
16471
16472         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16473
16474         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16475         gutters into account.
16476
16477         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16478         for window position and type.
16479
16480         * gutter.c (get_gutter_coords): fix for frame gutters.
16481         (update_frame_gutters): update frame geometry if the gutters have
16482         changed.
16483         (init_frame_gutters): record current gutter geometries.
16484
16485         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16486         var.
16487         (mswindows_widget_instantiate): ditto.
16488
16489         * frame.h (struct frame): add current_gutter_bounds.
16490
16491         * frame.c (change_frame_size_1): position window and minibuffer
16492         appropriately taking into account the frame gutters.
16493
16494         * frame-x.c: (x_initialize_frame_size): take into account the
16495         frame gutters.
16496
16497 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16498
16499         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16500
16501 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16502
16503         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16504
16505 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16506
16507         * file-coding.c (reset_decoding_stream): Clear previous
16508         detection state when autodetect.
16509
16510 2000-02-29  Didier Verna  <didier@xemacs.org>
16511
16512         * extents.c (set_extent_glyph_1): don't require extents to be
16513         attached.
16514
16515 2000-02-27  Andy Piper  <andy@xemacs.org>
16516
16517         * gutter.c (Fset_default_gutter_position): don't default left and
16518         right gutter visibility to t.
16519         (Fset_default_gutter_position): run
16520         default-gutter-position-changed-hook.
16521         (syms_of_gutter): add default-gutter-position-changed-hook.
16522
16523 2000-02-26  Andy Piper  <andy@xemacs.org>
16524
16525         * specifier.c (Fmake_specifier): add gutter references.
16526
16527         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16528
16529         * lisp.h: declare Fvalid_plist_p.
16530
16531         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16532         as changed.
16533         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16534         well as its visibility so that it gets reconstructed.
16535         (construct_window_gutter_spec): new function. Construct a string
16536         to be displayed in the gutter from a plist of strings. Take care
16537         to only use elements that are declared as visible.
16538         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16539         WINDOW_GUTTER.
16540         (gutter_validate): allow plists of strings in the specifier.
16541         (gutter_specs_changed): construct the real_gutter from the gutter
16542         specs using construct_window_gutter_spec.
16543         (gutter_visible_validate): gutter-visible is a new specifier type.
16544         (Fgutter_visible_specifier_p): new function for the new specifier.
16545         (syms_of_gutter): declare gutter-visible and
16546         Fgutter_visible_specifier_p.
16547         (specifier_type_create_gutter): intitalize new gutter-visible
16548         specifier.
16549         (reinit_specifier_type_create_gutter): ditto.
16550         (specifier_vars_of_gutter): use new specifier type for gutter
16551         visibility.
16552         (init_frame_gutters): construct real_gutter correctly.
16553         (Fgutter_specifier_p): beef up documentation.
16554         (Fgutter_size_specifier_p): ditto.
16555
16556         * winslots.h: add real_gutter slots.
16557
16558 2000-02-25  Andy Piper  <andy@xemacs.org>
16559
16560         * device-msw.c: Be kind to older cygwin versions. From Raymond
16561         Toy <toy@rtp.ericsson.se>.
16562
16563         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16564         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16565
16566 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16567
16568         * elhash.c (MARK_OBJ): Practice macro hygiene.
16569
16570 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16571
16572         * miscplay.c: s/__inline__/inline/g;
16573         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16574         (get_device_compdc): INLINE ==> static inline
16575         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16576         find -name '*.h' | \
16577         xargs global-replace \
16578         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16579
16580 2000-02-25  Andy Piper  <andy@xemacs.org>
16581
16582         * window.c (window_top_frame_gutter_height): new function.
16583         (window_top_window_gutter_height): ditto.
16584         (window_top_gutter_height): use them.
16585         (window_bottom_frame_gutter_height): new function.
16586         (window_bottom_window_gutter_height): ditto.
16587         (window_bottom_gutter_height): use them.
16588         (window_left_window_gutter_width): new function.
16589         (window_left_frame_gutter_width): ditto.
16590         (window_left_gutter_width): use them.
16591         (window_right_window_gutter_width): new function.
16592         (window_right_frame_gutter_width): ditto.
16593         (window_right_gutter_width): use them.
16594         (window_pixel_height): new function. calulate window pixel height
16595         with frame gutter involvement.
16596         (Fsplit_window): calculate new sizes taking frame gutters into
16597         account.
16598         (window_char_height_to_pixel_height): don't include frame gutters.
16599         (window_char_height): use window_pixel_height.
16600         (window_pixheight): rename from window_pixel_height.
16601         (change_window_height): use it.
16602         (window_pixel_height_to_char_height): don't include frame gutters.
16603         (window_char_width_to_pixel_width): ditto.
16604
16605 2000-02-25  Andy Piper  <andy@xemacs.org>
16606
16607         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16608         if it is.
16609
16610 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16611
16612         * alloc.c (staticpro):
16613         (staticpro_nodump):
16614         (dumpstruct):
16615         (dumpopaque):
16616         (pdump_wire):
16617         (pdump_wire_list):
16618         (compact_string_chars):
16619         (pdump_dump_wired):
16620         Convert:  if (foo) abort();  ==>  assert (! foo);
16621
16622         * eldap.c (Fldap_search_basic):
16623         (Fldap_add):
16624         (Fldap_modify):
16625         (Fldap_delete):
16626         Fix compiler warnings, and possible crashes if (random) return
16627         value were to be used.
16628
16629 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16630
16631         * device-msw.c: Workaround ResetDC failure.
16632
16633         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16634         applying a devmode.
16635
16636         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16637         (mswindows_text_width): Do not start printer page.
16638
16639         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16640
16641         * glyphs-msw.c: Added image methods to msprinter console and
16642         msprinter-specific image instantiation.
16643
16644 2000-02-20  Mike Alexander  <mta@arbortext.com>
16645
16646         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16647         to avoid crashes when selection-sets-clipboard is on
16648         (mswindows_own_selection): ditto
16649
16650 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16651
16652         * glyphs-msw.c:
16653         * redisplay-msw.c (get_frame_dc):
16654         (get_frame_compdc):
16655         * console-msw.h:
16656         * device-msw.c (mswindows_init_device):
16657         (mswindows_delete_device):
16658         (msprinter_init_device):
16659         (msprinter_delete_device):
16660         * frame-msw.c (mswindows_init_frame_1):
16661         (mswindows_delete_frame):
16662         (msprinter_init_frame_3):
16663         (msprinter_delete_frame): Move compatible DC to device object from
16664         frame object, for both mswindows and msprinter. Only one at a time
16665         is needed, it is a real waste to have one per frame!
16666
16667 2000-02-23  Andy Piper  <andy@xemacs.org>
16668
16669         * glyphs.c: add dynamic width and height elements.
16670         (image_instance_equal): ditto.
16671
16672         * glyphs-widget.c (widget_query_geometry): calculate width and
16673         height dynamically if required.
16674         (initialize_widget_image_instance): initialize dynamic dimensions.
16675         (widget_instantiate): pick-up dynamic dimensions.
16676
16677         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16678         dynamic determination. Add appropriate macros.
16679
16680         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16681         dimensions safe.
16682         (WINDOW_GUTTER_SIZE): ditto.
16683         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16684
16685         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16686         inline.
16687         (get_frame_dc): ditto.
16688
16689         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16690         here.
16691
16692 2000-02-23  Martin Buchholz <martin@xemacs.org>
16693
16694         * XEmacs 21.2.31 is released.
16695
16696 2000-02-22  Ben Wing <ben@xemacs.org>
16697
16698         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16699
16700 2000-02-22  Andy Piper  <andy@xemacs.org>
16701
16702         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16703
16704 2000-02-21  Mike Sperber <mike@xemacs.org>
16705
16706         * .dbxrc:
16707         * .gdbinit:
16708         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16709         variables.
16710
16711 2000-02-21  Mike Sperber <mike@xemacs.org>
16712
16713         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16714
16715 2000-02-21  Martin Buchholz <martin@xemacs.org>
16716
16717         * XEmacs 21.2.30 is released.
16718
16719 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16720
16721         Performance hacking.
16722         * *.c (syms_of_*):
16723         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16724         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16725         * emacs.c (main_1):
16726         * lisp.h (DEFUN):
16727         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16728         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16729         * symeval.h (DEFVAR_SYMVAL_FWD):
16730         * symbols.c (guts_of_unbound_marker):
16731         Make all c_readonly objects also lisp_readonly and marked for life.
16732         * lrecord.h (struct lrecord_implementation):
16733         Document flags better.
16734         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16735         * lrecord.h (DECLARE_LRECORD):
16736         * lrecord.h (XSETRECORD):
16737         * lrecord.h (RECORDP):
16738         * lrecord.h (RECORD_TYPEP):
16739         * lrecord.h (RECORD_MARKER): New.
16740         * lrecord.h (error_check_*):
16741         * lrecord.h (CONCHECK_NONRECORD):
16742         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16743         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16744         * lrecord.h (set_lheader_implementation):
16745         * lrecord.h (enum lrecord_type): New.
16746         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16747         * alloc.c (disksave_object_finalization_1):
16748         * alloc.c (mark_object):
16749         * alloc.c (lrecord_type_index):
16750         * alloc.c (tick_lcrecord_stats):
16751         * alloc.c (Fgarbage_collect):
16752         * alloc.c (init_alloc_once_early):
16753         * alloc.c (pdump_load):
16754         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16755         * alloc.c (lrecord_type_index): Delete.
16756         Make lisp object type indexes be constant.
16757           Makes (byte-compile) 5% faster.
16758         Put all marker functions into their own array.
16759           Makes (garbage-collect) 5% faster.
16760         Optimize SYMBOL_VALUE_MAGIC_P.
16761           Makes (byte-compile) 2-3% faster.
16762         * config.h.in (gc_checking_assert): New.
16763         * alloc.c: Use gc_checking_assert().
16764         * .dbxrc: Make compatible with new object type implementation.
16765         * .gdbinit: Make compatible with new object type implementation.
16766         * alloc.c: Delete all symbols defined only for debugging, such as
16767         Lisp_Type_Vector and lrecord_charset.
16768
16769 2000-02-21  Andy Piper  <andy@xemacs.org>
16770
16771         * gui-msw.c (Fmswindows_shell_execute): fix file location
16772         problems.
16773
16774         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16775         unshowing so that set_window_buffer doesn't undo
16776         kill_buffer_hook's hard work.
16777
16778         * glyphs-widget.c (tab_control_query_geometry): don't count the
16779         first item when calculating geometry.
16780
16781         * glyphs.c (map_subwindow): remove redundant code.
16782         (update_frame_subwindows): be more circumspect about when to
16783         update subwindows.
16784
16785         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16786         when items haven't changed. Update faces if faces have changed as
16787         well as just the widget face.
16788         (x_tab_control_update): Update faces if faces have changed as well
16789         as just the widget face.
16790
16791 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16792
16793         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16794         registration.
16795         (build_syscolor_string): Use mswindows_color_to_string to try to
16796         get a named color.
16797         (mswindows_device_system_metrics): Reverse the foreground and
16798         background colors so that they match the documentation.
16799
16800         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16801         they match the default Windows palette.
16802         (mswindows_color_to_string): New function.
16803
16804 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16805
16806         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16807
16808 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16809
16810         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16811         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16812
16813         * symbols.c (init_symbols_once_early): Removed obsolete
16814         DATA_SEG_BITS related kludge.
16815         (defvar_magic): Ditto.
16816
16817         * malloc.c: Removed obsolete DATA_SEG_BITS
16818         * ralloc.c: Ditto.
16819         * mem-limits.h: Ditto.
16820
16821         * Makefile.in.in: Removed obsolete HAVE_SHM
16822         * emacs.c: Ditto.
16823
16824 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16825
16826         *  device-msw.c (mswindows_delete_device): Free DDE string
16827         handles.
16828
16829 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16830
16831         * keymap.c (get_keyelt):
16832         * unexnt.c (unexec):
16833         * vm-limit.c (memory_warnings):
16834         * ntheap.c (recreate_heap):
16835         * ntheap.h (UNINIT_PTR):
16836         * select-msw.c (Fmswindows_get_clipboard):
16837         (Fmswindows_set_clipboard):
16838         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16839         * objects-msw.c:
16840         * menubar-msw.c (displayable_menu_item):
16841         * glyphs-msw.c:
16842         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16843         * sysdep.c (sys_subshell):
16844         * process-nt.c (nt_create_process):
16845         * nt.c (normalize_filename):
16846         (dostounix_filename):
16847         (unixtodos_filename):
16848         * ntproc.c (win32_executable_type):
16849         * ntplay.c (play_sound_data_1):
16850         (play_sound_file):
16851         * editfns.c (get_home_directory):
16852         * event-msw.c (struct winsock_stream):
16853         (mswindows_dde_callback):
16854         * device-msw.c (msprinter_init_device):
16855         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16856
16857         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16858         mswindows_clear_toolbar were swapped!
16859
16860         * objects-msw.c:(colormap_t):
16861         (fontmap_t):
16862         * emacs.c (struct standard_args): Fixed const jumble.
16863
16864         * glyphs-widget.c (update_widget): Fixed comparison notation.
16865
16866         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16867
16868         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16869         __declspec(noreturn) syntax.
16870
16871 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16872
16873         * eldap.c (Fldap_open):
16874         (Fldap_search_basic):
16875         (Fldap_add):
16876         (Fldap_modify):
16877         Use new coding system conversion macros.
16878
16879 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16880
16881         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16882
16883 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16884
16885         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16886         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16887
16888         * eldap.c (Qadd, Qreplace): New constant symbols
16889         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16890         interruptions by XEmacs signals
16891         Remove unnecessary calls to slow_down_interrupts and
16892         speed_up_interrupts
16893         (Fldap_search_basic): Renamed from Fldap_search_internal
16894         Added new optional parameter VERBOSE that triggers the
16895         display of progress messages
16896         Remove unnecessary calls to slow_down_interrupts and
16897         speed_up_interrupts
16898         LDAP result code analysis rewritten
16899         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16900         (syms_of_eldap): Define the new symbols and functions
16901
16902
16903 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16904
16905         * realpath.c: Determine PATH_MAX maximally portably.
16906
16907         * insdel.c (bytecount_to_charcount): Optimize.
16908         The function used to be optimized for entirely ASCII sequences.
16909         Now it is optimized for successive characters from the same
16910         charset.  This also wins big for _mostly_ ASCII sequences.
16911
16912         * fileio.c (Ffile_truename): convert return from realpath() using
16913         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16914         - Rewrite GCPROing slightly.
16915
16916         * sysdep.c (sys_open): Do filename conversion, like all other
16917         sys_* functions.  Fixes bug:
16918         (let ((file-name-coding-system 'iso-8859-2))
16919            (write-region x y latin2-name))
16920         ==> writes filename using internal encoding.
16921
16922 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16923
16924         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16925         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16926         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16927         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16928         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16929         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16930         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16931         (CONST_IF_NOT_DEBUG): Delete.
16932         * alloc.c (this_one_is_unmarkable): Delete.
16933         (mark_object): Don't check for this_one_is_unmarkable. Use the
16934         c_readonly flag instead.
16935         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16936
16937 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16938
16939         * event-msw.c (mswindows_drain_windows_queue):
16940         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16941         away redundant repaint events.
16942
16943 2000-02-17  Andy Piper  <andy@xemacs.org>
16944
16945         * redisplay.h: declare mark_redisplay_structs.
16946
16947         * redisplay.c (redisplay_window):
16948         (redisplay_frame): don't check subwindows_state_changed.
16949         (mark_redisplay): mark gutters here.
16950
16951         * glyphs.c: (instantiate_image_instantiator): always layout if we
16952         haven't done so already.
16953         (allocate_image_instance): don't mark as dirty.
16954         (update_subwindow): bind inhibit_quit.
16955
16956         * gutter.c (mark_gutters): new function.
16957
16958         * glyphs-x.c (x_update_widget): Always resize to get round a
16959         widget bug.
16960
16961         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16962         breaking absolutely everything.
16963
16964         * gutter.h: declare mark_gutters.
16965
16966 2000-02-16  Martin Buchholz <martin@xemacs.org>
16967
16968         * XEmacs 21.2.29 is released.
16969
16970 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16971
16972         * fns.c (size_bit_vector): Fix computation of the size.
16973
16974 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16975
16976         * *.[ch]: Change CONST to const globally.
16977         find -name '*.[ch]' | \
16978         xargs global-replace \
16979         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16980         - Remove vestigial references to CONST_IS_LOSING
16981
16982 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16983
16984         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16985         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16986         events instead of dispatching them directly.
16987         (mswindows_handle_paint): New function to do repainting.
16988         (mswindows_wnd_proc):
16989         (emacs_mswindows_handle_magic_event): Call above function.
16990
16991 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16992
16993         * objects-msw.c (mswindows_create_font_variant): Return the new
16994         font handle.
16995         (initialize_font_instance): Get font metrics from the underlined
16996         variant of the font to cope with the case where the underlined
16997         font has a bigger descent.
16998
16999 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17000
17001         * gui.c (gui_item_accelerator): Return the first underlined
17002         character in item name.
17003
17004 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17005
17006         * lisp.h: Added Qprinter.
17007
17008         * general.c (syms_of_general): Initialized it.
17009
17010         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
17011         (get_frame_dc):
17012         (get_frame_compdc): Made inline.
17013
17014         * console.h (struct console_methods): Added eject_page method.
17015
17016         * frame.h: Added FRAME_DISPLAY_P and friends.
17017         Aligned backslahes in many macros in more readable fashion.
17018         Added page_number to struct frame, and an accessor macro
17019         for it.
17020
17021         * defice.h: Added DEVICE_DISPLAY_P and friends.
17022
17023         * device.c (Fdevice_printer_p): Used these.
17024
17025         * frame.c (allocate_frame_core): Initialize page number.
17026         (Fprint_job_page_number):
17027         (Fprint_job_eject_page): Implemented.
17028
17029         * frame-msw.c (msprinter_eject_page): Added method.
17030         (msprinter_start_page): Added.
17031
17032         * window.c (Fwindow_truncated_p): Fixed docstring.
17033         (Fwindow_last_line_visible_height): Implemented.
17034
17035 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
17036
17037         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
17038
17039 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17040
17041         * syntax.c (scan_words): Always advance at least one character.
17042
17043 2000-02-13  Andy Piper  <andy@xemacs.org>
17044
17045         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
17046         to make sure the glyph is in the cachels.
17047
17048         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
17049         global image instance flag.
17050         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
17051         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
17052
17053         * glyphs.c (allocate_image_instance): set dirty bits correctly.
17054         (Fset_image_instance_property): mark layout as changed.
17055         (invalidate_glyph_geometry_maybe): mark layout as changed.
17056         (glyph_width): use new NEEDS_LAYOUT macro.
17057         (glyph_ascent): ditto.
17058         (glyph_descent): ditto.
17059         (glyph_height): ditto.
17060         (image_instance_layout): mark layout as clean after laying out.
17061         (update_subwindow): don't mark layout as clean here.
17062
17063         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
17064         should no longer be needed.
17065
17066         * glyphs-x.c (x_update_widget): sanitize asserts.
17067         (x_finalize_image_instance): sanitize assignment to widgets.
17068
17069         * glyphs-widget.c (widget_instantiate): don't need to clear the
17070         layout flag here.
17071
17072 2000-02-13  Martin Buchholz  <martin@xemacs.org>
17073
17074         * sysdep.c (getcwd): Use standard prototype.
17075         * sysdep.h (getcwd): Use standard prototype.
17076
17077         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
17078         (sequence, start, end).
17079         Remove redundant type checking.
17080         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
17081         view of `caller-protects') to avoid a crash where the real fix was
17082         found elsewhere.
17083
17084 2000-02-12  Martin Buchholz  <martin@xemacs.org>
17085
17086         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
17087
17088         * s/sol2.h: Remove feature macro initialization.
17089
17090         * alloc.c (alloc_lcrecord): Add more type checking assertions.
17091         (vector_hash): New.  Code from internal_hash.
17092         * lrecord.h:
17093         Fix up allocation subsystem comments.
17094
17095         * config.h.in: Add __EXTENSIONS__ for Solaris.
17096
17097         * systime.h (EMACS_GETTIMEOFDAY): New.
17098         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
17099         Remove Solaris-specific code.
17100         Use void* for the (ignored) second arg for gettimeofday().
17101
17102         * elhash.c (hash_table_hash): Implement it, finally.
17103         * elhash.c:  Use hashcode_t.
17104
17105         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
17106         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
17107
17108         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
17109         * fns.c (size_bit_vector):
17110         * alloc.c (size_vector):
17111         (make_vector_internal):
17112         (make_bit_vector_internal):
17113         (sweep_bit_vectors_1):
17114         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
17115
17116 2000-02-10  Martin Buchholz  <martin@xemacs.org>
17117
17118         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
17119         Include strings.h to avoid warnings for bzero and strcasecmp.
17120
17121 2000-02-10  Olivier Galibert  <galibert@pobox.com>
17122
17123         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
17124         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
17125
17126         * fns.c (size_bit_vector): New.  Declare bit vectors as a
17127         sequence.
17128
17129 2000-02-10  Olivier Galibert  <galibert@pobox.com>
17130
17131         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
17132         use a value field instead.
17133         (symbol_value_forward_forward): Use value field.
17134         (DEFVAR_SYMVAL_FWD): Use value field.
17135         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
17136         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
17137         (DEFVAR_CONST_INT): Ditto.
17138         (DEFVAR_BOOL): Ditto.
17139         (DEFVAR_CONST_BOOL): Ditto.
17140         (DEFVAR_INT_MAGIC): Ditto.
17141         (DEFVAR_BOOL_MAGIC): Ditto.
17142
17143         * symbols.c (guts_of_unbound_marker): Use value field.
17144         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
17145         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
17146
17147         * lisp.h: Declare dumpopaque and noninteractive1.
17148
17149         * alloc.c (dumpopaque): Added.
17150         (pdump_dump_opaquevec): Added.
17151         (pdump): Call pdump_dump_opaquevec to dump opaque data.
17152         (pdump_load): Reload opaque data.  Sync noninteractive1 with
17153         noninteractive.
17154
17155 2000-02-10  Andy Piper  <andy@xemacs.org>
17156
17157         * glyphs.c (image_instance_layout): if the size changes, mark it
17158         as such.
17159
17160         * redisplay-output.c (redisplay_output_layout): Update the
17161         subwindow here.
17162         (redisplay_output_subwindow): ditto.
17163
17164         * glyphs.c (update_subwindow): make sure we reset flags for
17165         layouts as well as everything else.
17166
17167         * glyphs-widget.c (layout_layout): don't need to set the instances
17168         dimensions here.
17169
17170 2000-02-09  Martin Buchholz  <martin@xemacs.org>
17171
17172         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
17173         not HAVE_DLOPEN, which is a lower-level thing.
17174
17175         * .cvsignore: Ignore gmon.out
17176
17177 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
17178
17179         * .cvsignore: Ignore portable dumper xemacs.dmp file
17180
17181 2000-02-09  Andy Piper  <andy@xemacs.org>
17182
17183         * redisplay-output.c (redisplay_output_layout): be more clever
17184         about when we output based on the changed flags.
17185
17186         * glyphs.h (struct image_instantiator_methods): add update_method.
17187         (struct Lisp_Image_Instance): add changed flags. Declare new
17188         macros for manipulating them.
17189
17190         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
17191         (image_instance_parent_glyph): find an image_instance's parent
17192         glyph or image_instance.
17193         (image_instance_layout): mark the size as changed.
17194         (set_image_instance_dirty_p): new function. mark an image
17195         instance, plus all of its parents, as dirty.
17196         (Fset_image_instance_property): use it.
17197         (Fglyph_animated_timeout_handler): use it.
17198         (update_subwindow): call update_widget and device methods for
17199         update_subwindow. Mark all changed flags as clean.
17200         (Fresize_subwindow): mark size as changed.
17201
17202         * glyphs-x.c (x_finalize_image_instance): try and detect gc
17203         failures.
17204         (x_update_subwindow): only resize subwindows here.
17205         (x_update_widget): new function. Update all changed properties of
17206         a widget.
17207         (x_resize_subwindow): deleted.
17208         (x_widget_set_property): deleted.
17209         (x_progress_gauge_set_property): deleted.
17210         (x_progress_gauge_update): new function. Implement recorded
17211         changes.
17212         (x_tab_control_update): ditto.
17213         (x_tab_control_set_property): deleted.
17214         (console_type_create_glyphs_x): declare new functions.
17215         (image_instantiator_format_create_glyphs_x): ditto.
17216
17217         * glyphs-widget.c (widget_set_property): mark text changed.
17218         (update_widget): new function. Update properties of a widget.
17219         (widget_instantiate): for layouts make sure we set their
17220         children's parent correctly.
17221         (tab_control_set_property): new function. Record changes that will
17222         take place under redisplay's control.
17223         (progress_gauge_set_property): ditto.
17224         (image_instantiator_progress_guage): declare new functions.
17225         (image_instantiator_tab_control): ditto.
17226
17227         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
17228         now.
17229         (mswindows_update_widget): new function. Update all properties on
17230         a widget that have changed.
17231         (mswindows_button_update): new function. Update a button's set
17232         state.
17233         (mswindows_tab_control_update): new function. Update the items in
17234         a tab.
17235         (mswindows_tab_control_set_property): deleted.
17236         (mswindows_progress_gauge_update): new function. Update the
17237         progress gauge's progress.
17238         (mswindows_widget_set_property): deleted. This is all done
17239         asynchronously now.
17240         (mswindows_progress_gauge_set_property): ditto.
17241         (console_type_create_glyphs_mswindows): declare new methods.
17242         (image_instantiator_format_create_glyphs_mswindows): ditto.
17243
17244         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
17245         (msprinter_set_frame_properties): ditto.
17246
17247         * console.h (struct console_methods): Add update_widget_method.
17248
17249 2000-02-09  Andy Piper  <andy@xemacs.org>
17250
17251         * gui-msw.c (Fmswindows_shell_execute): Make
17252         mswindows-shell-execute industrial strength.
17253
17254 2000-02-08  Martin Buchholz  <martin@xemacs.org>
17255
17256         * lrecord.h: Make macro argument `props' match member function `plist'.
17257         * fns.c (Fget):
17258         * fns.c (Fput):
17259         * fns.c (Fremprop):
17260         * fns.c (Fobject_plist):
17261         * alloc.c:
17262         * symbols.c:
17263         Object property list frobbing cleanup.
17264         - Allow any lisp object (compared with `eq'), not just symbols, as
17265           keys in object plists.
17266         - Move symbol plist frobbing into symbols.c, where it belongs.
17267         - Move string plist frobbing into alloc.c, where it belongs.
17268         - Everything's an lrecord now, so no need to test for symbolp, etc.
17269         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
17270
17271         * extents.c: Reorder code to remove declarations.
17272
17273         * frame.h (store_in_alist): Remove useless declaration.
17274
17275 2000-02-07  Martin Buchholz  <martin@xemacs.org>
17276
17277         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
17278         * config.h.in: Add HAVE_XCONVERTCASE.
17279
17280 2000-02-07  Andy Piper  <andy@xemacs.org>
17281
17282         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
17283         it breaks many things.
17284
17285 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
17286
17287         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
17288         actually can start a common comment type.
17289         * src/syntax.h (SYNTAX_END_P): ditto for end.
17290
17291 2000-02-07  Martin Buchholz <martin@xemacs.org>
17292
17293         * XEmacs 21.2.28 is released.
17294
17295 2000-02-06  Martin Buchholz  <martin@xemacs.org>
17296
17297         * event-Xt.c (x_keysym_to_character): New.
17298         (maybe_define_x_key_as_self_inserting_character): New.
17299         (x_has_keysym): New.
17300         Auto-define all keys on the keyboard as self-insert-key.
17301
17302 2000-02-02  Martin Buchholz  <martin@xemacs.org>
17303
17304         * menubar.c (vars_of_menubar): A small code simplification.
17305
17306         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
17307
17308         * ExternalShell.c:
17309         * ExternalClient.c:
17310         * EmacsShell-sub.c:
17311         * EmacsManager.c:
17312         * EmacsFrame.c:
17313         Use consistent style for specifying X resources.
17314
17315         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
17316         This makes (dontusethis-set-symbol-value-handler) actually usable.
17317
17318         * lrecord.h (lrecord_decription_type):
17319         * alloc.c (pdump_register_sub):
17320         (pdump_dump_data):
17321         (pdump_reloc_one):
17322         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
17323         Comply with XEmacs coding style.
17324         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
17325         args, and XD_LISP_OBJECT_ARRAY with 3 args.
17326
17327         * keymap.c (Faccessible_keymaps):
17328         Make (accessible-keymaps map "\C-h") do the Right Thing.
17329         Make (accessible-keymaps map []) do the Right Thing.
17330         Make (accessible-keymaps map "") do the Right Thing.
17331         (check_keymap_definition_loop): New function.
17332         (keymap_store_internal): Keep luser from shooting self in foot,
17333           via (define-key ctl-x-4-map "p" global-map).
17334         Remove fullness slot from struct Lisp_Keymap, since hash tables
17335         are now reliable.
17336         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17337
17338 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17339
17340         * redisplay.c (init_redisplay): Fix small memory leak.
17341         * elhash.h:
17342         * elhash.c (pdump_reorganize_hash_table):
17343         Rename from reorganize_hash_table. Change prototype.
17344         Reuse the original memory for hentries.  Save 100k.
17345         * alloc.c (PDUMP_READ): new macro.
17346         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17347         * alloc.c: No need to #ifndef before #undef.
17348
17349         * print.c: Allow debug_print() to print readably by modifying
17350         debug_print_readably.  Use consistent variable names.
17351
17352         * .dbxrc: Try to get things to work even if stopped in a function
17353         without source available by explicitly specifying source files.
17354 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17355
17356         * unexnt.c (_start): Removed bogus code which caused loading heap
17357         from differrent executable file.
17358         Removed bogus assignment to _fmode, which caused inconsistencies.
17359
17360 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17361
17362         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17363         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17364         Do not preliminary `#define signal sigset'.
17365
17366         * systime.h: Do not prototype environ on windows nt and cygwin,
17367         this conflicts with system header.
17368
17369         * syssignal.h: Use correct define for WINDOWSNT
17370
17371         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17372         with system header.
17373
17374         * sysdep.c (near start of file): Fixed commentary and rearranged
17375         ifdefs in readable order.
17376         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17377         (start_of_text):
17378         (end_of_text):
17379         (end_of_data): Do not compile in if using PDUMP.
17380
17381         * symsinit.h: Prototyped vars_of_nt().
17382
17383         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17384         (find_child_console): Use it.
17385         (sys_kill): Use it.
17386
17387         * ntheap.h: Do not extern os_subtype.
17388
17389         * ntheap.c (cache_system_info): Do not cache unneeded:
17390         nt_major_version, nt_minor_version and os_subtype.
17391         (recreate_heap): Do not compile in when PDUMPing.
17392
17393         * nt.c (geteuid and friends): Use the new varibale
17394         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17395         (init_user_info): Removed the above mentioned hackery.
17396         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17397         stat has been fixed in the C runtime.
17398         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17399
17400         * file-coding.c (struct file_coding_dump): Do not define
17401         ucs_to_mule_table in the struct if not MULE.
17402         (struct struct lrecord_description fcd_description_1): Do not dump
17403         the above.
17404
17405         * emacs.c (main_1): Call vars_of_nt().
17406         (right before Fdump_emacs_data): Don't need lastfile if using both
17407         portabe dumper and system malloc.
17408
17409         * alloc.c (Fmemory_limit): Conditionalized out.
17410         (pdump): Use OPEN_BINARY for the portable dump file.
17411         (pdump_load): Ditto.
17412
17413 2000-02-02  Mike Alexander  <mta@arbortext.com>
17414
17415         * nt.c (convert_time): Set tm_isdst before calling mktime and
17416         avoid calling it at all if the compiler supports 64 bit integers.
17417         Also initialize utc_base_ft before using it.
17418
17419 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17420
17421         * frame.c (change_frame_size_1): Take f->internal_border_width
17422         into consideration when calculating the width of the frame.
17423
17424 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17425
17426         * window.c (frame_min_height):
17427         (frame_size_valid_p):
17428         (frame_pixsize_valid_p): Added.
17429         (check_frame_size): Generalized.
17430
17431         * window.h: Prototyped the above.
17432
17433         * lisp.h:
17434         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17435         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17436         Deleted Vwin32_* and Vbinary_process_* unused variables.
17437
17438         * device-msw.c (msprinter_init_device): Do not get printer font
17439         list; Added DEVMODE functions.
17440
17441         * frame-msw.c: Added lots of printer code.
17442
17443         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17444         general.c.
17445
17446         * console-msw.h: Added more msprinter device private slots.
17447
17448 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17449
17450         * event-msw.c (key_needs_default_processing_p): Added.
17451         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17452
17453 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17454
17455         * glyphs.c (image_instance_layout): Mark image instance as clean
17456         after layout.
17457         (glyph_dirty_p): Removed redundant function.
17458         (invalidate_glyph_geometry_maybe): Added.
17459         (update_glyph_cachel_data): Call it.
17460
17461         * glyphs.h: Prototyped it.
17462
17463         * redisplay.c (add_glyph_rune): Call it.
17464         (redisplay_window): Reset glyphs cachels when frame faces have
17465         changed, thus forcing recomputation of built-in border glyphs.
17466
17467 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17468
17469         * Makefile.in.in: Make portable dumper and purify play well together.
17470         Add imperfect, but better than nothing, support for pdump.
17471         Remove xemacs.dmp when temacs is re-generated.
17472         Don't ignore errors when dumping xemacs.
17473
17474         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17475
17476 2000-01-28  Andy Piper  <andy@xemacs.org>
17477
17478         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17479         (setup_normal_frame): ditto.
17480         (setup_frame_without_minibuffer): ditto.
17481         (setup_minibuffer_frame): ditto.
17482         (delete_frame_internal): ditto.
17483         (Fmake_frame_invisible): ditto.
17484         (Ficonify_frame): ditto.
17485
17486         * window.h: change Fset_window_buffer signature.
17487
17488         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17489         (Fset_window_buffer): allow recording of buffer if the window is
17490         the selected window.
17491         (window_loop): Use new Fset_window signature.
17492
17493 2000-01-23  Daniel Pittman  <daniel@danann.net>
17494
17495         * config.h.in: Added template for `HAVE_ATHENA_3D'
17496
17497 2000-01-29  Andy Piper  <andy@xemacs.org>
17498
17499         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17500
17501         * gutter.c (output_gutter): Don't output if the window isn't live.
17502
17503 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17504
17505         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17506         of 01/12/00: Moved SetFocus back here where it belongs.
17507
17508 2000-01-23  Andy Piper  <andy@xemacs.org>
17509
17510         * s/cygwin32.h: declare printer things.
17511
17512 2000-01-26  Andy Piper  <andy@xemacs.org>
17513
17514         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17515         Alexander.
17516
17517 2000-01-24  Andy Piper  <andy@xemacs.org>
17518
17519         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17520         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17521
17522         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17523
17524         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17525
17526         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17527
17528         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17529         (mswindows_output_display_block): Avoid local shadows.
17530
17531         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17532         (mswindows_enqueue_mouse_button_event): ditto.
17533         (mswindows_handle_gui_wm_command): remove declaration.
17534
17535         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17536         warnings.
17537
17538         * console-msw.h: Avoid shadows.
17539         (mswindows_get_toolbar_button_text):
17540         (emacs_mswindows_create_stream_pair):
17541         (emacs_mswindows_delete_stream_pair):
17542         (mswindows_handle_toolbar_wm_command): declare.
17543
17544         * device-msw.c (build_syscolor_string): Avoid shadows.
17545
17546 2000-01-23  Andy Piper  <andy@xemacs.org>
17547
17548         * glyphs-widget.c (widget_instantiate): reverse the items for
17549         layouts so that children are in the expected order.
17550
17551 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17552
17553         * ralloc.c: safe_bcopy ==> memmove
17554         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17555         * s/msdos.h: Remove BCOPY macros.
17556         * insdel.c (gap_right): Remove BCOPY conditional code.
17557         * insdel.c (gap_left): Remove BCOPY conditional code.
17558         XEmacs demands a working ANSI C compiler - hence memmove.
17559
17560         * regex.c (regex_compile): Remove accidental use of trigraphs.
17561
17562 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17563
17564         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17565         event timestamp.
17566
17567 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17568
17569         * event-msw.c (mswindows_drain_windows_queue): Added the
17570         parameter.
17571         (mswindows_need_event): Commented the call to
17572         mswindows_drain_windows_queue().
17573         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17574         only.
17575
17576         * console-msw.h: Moved a few function prototypes here from
17577         event-msw.c.
17578
17579         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17580         parameter from unsigned short to unsigned long.
17581         (Fmswindows_shell_execute): Added return value.
17582
17583 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17584
17585         * sysdep.c (init_system_name):
17586           process-unix.c (unix_canonicalized_host_name):
17587         Don't call freeaddrinfo() if getaddrinfo() fails.
17588
17589         * process-unix.c (unix_open_unix_network_stream):
17590         Moved the code to get a port # into address loop.
17591
17592 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17593
17594         * buffer.c (reinit_vars_of_buffer):
17595         The right place to initialize conversion_in_dynarr and
17596         conversion_out_dynarr.
17597
17598         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17599
17600         * process-unix.c (unix_canonicalize_host_name): Muleize.
17601         (unix_open_network_stream): Muleize.
17602
17603         * buffer.h: Fix up prototypes for ralloc.c functions.
17604
17605 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17606         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17607         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17608                 instead of gethostbyname()
17609         * process-unix.c: In unix_canonicalize_host_name() and
17610                 unix_open_network_stream(), add code to use getaddrinfo()
17611                 instead of gethostbyname().
17612
17613 2000-01-27  Daniel Pittman <daniel@danann.net>
17614
17615         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17616         libs when built with flat Athena.
17617
17618 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17619
17620         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17621         Use coding standards for function prototypes.
17622
17623 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17624
17625         * dialog-msw.c (push_lisp_string_as_unicode):
17626         * doc.c (unparesseuxify_doc_string):
17627         * dired.c (Fuser_name_completion_1):
17628         * dired.c (Fuser_name_all_completions):
17629         * dired.c (free_user_cache):
17630         * dired.c (user_name_completion):
17631         * console-x.c (get_display_arg_connection):
17632         * minibuf.c (clear_echo_area_internal):
17633         * minibuf.c (echo_area_append):
17634         * eldap.c (Fldap_open):
17635         * eldap.c (Fldap_search_internal):
17636         * frame-x.c (x_set_frame_text_value):
17637         * frame-x.c (x_set_frame_properties):
17638         * frame-x.c (x_create_widgets):
17639         * redisplay-tty.c (term_get_fkeys_1):
17640         * objects-x.c (x_parse_nearest_color):
17641         * objects-x.c (x_valid_color_name_p):
17642         * objects-x.c (x_initialize_font_instance):
17643         * objects-x.c (x_list_fonts):
17644         * objects-x.c (x_find_charset_font):
17645         * tooltalk.c (Fadd_tooltalk_message_arg):
17646         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17647         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17648         * process-unix.c (unix_create_process):
17649         * ntproc.c (sys_spawnve):
17650         * sound.c (Fplay_sound_file):
17651         * sound.c (Fplay_sound):
17652         * buffer.c (init_initial_directory):
17653         * buffer.c (init_buffer):
17654         * editfns.c (init_editfns):
17655         * editfns.c (Ftemp_directory):
17656         * editfns.c (Fuser_full_name):
17657         * editfns.c (uncache_home_directory):
17658         * editfns.c (get_home_directory):
17659         * editfns.c (Fuser_home_directory):
17660         * editfns.c (Fformat_time_string):
17661         * editfns.c (Fcurrent_time_string):
17662         * gui-x.c (button_item_to_widget_value):
17663         * database.c (Fopen_database):
17664         * event-Xt.c (x_to_emacs_keysym):
17665         * event-Xt.c (x_event_to_emacs_event):
17666         * event-Xt.c (describe_event_window):
17667         * event-msw.c (mswindows_wnd_proc):
17668         * glyphs-eimage.c (jpeg_instantiate):
17669         * glyphs-eimage.c (gif_instantiate):
17670         * glyphs-eimage.c (png_instantiate):
17671         * glyphs-eimage.c (tiff_instantiate):
17672         * glyphs-x.c (xbm_instantiate_1):
17673         * glyphs-x.c (x_xbm_instantiate):
17674         * glyphs-x.c (x_xface_instantiate):
17675         * glyphs-x.c (autodetect_instantiate):
17676         * glyphs-x.c (cursor_font_instantiate):
17677         * glyphs-x.c (x_widget_instantiate):
17678         * glyphs-x.c (x_widget_set_property):
17679         * glyphs-x.c (x_widget_property):
17680         * glyphs-x.c (BUILD_GLYPH_INST):
17681         * print.c (write_string_to_stdio_stream):
17682         * print.c (output_string):
17683         * print.c (Falternate_debugging_output):
17684         * print.c (Fexternal_debugging_output):
17685         * glyphs-msw.c (extract_xpm_color_names):
17686         * glyphs-msw.c (mswindows_xpm_instantiate):
17687         * glyphs-msw.c (bmp_instantiate):
17688         * glyphs-msw.c (resource_name_to_resource):
17689         * glyphs-msw.c (mswindows_resource_instantiate):
17690         * glyphs-msw.c (xbm_instantiate_1):
17691         * glyphs-msw.c (mswindows_xbm_instantiate):
17692         * glyphs-msw.c (mswindows_xface_instantiate):
17693         * glyphs-msw.c (mswindows_widget_instantiate):
17694         * glyphs-msw.c (add_tree_item):
17695         * glyphs-msw.c (add_tab_item):
17696         * glyphs-msw.c (mswindows_combo_box_instantiate):
17697         * glyphs-msw.c (mswindows_widget_property):
17698         * glyphs-msw.c (mswindows_combo_box_property):
17699         * glyphs-msw.c (mswindows_widget_set_property):
17700         * console.c (stuff_buffered_input):
17701         * objects-msw.c (mswindows_initialize_color_instance):
17702         * objects-msw.c (mswindows_valid_color_name_p):
17703         * objects-msw.c (mswindows_list_fonts):
17704         * objects-msw.c (mswindows_font_instance_truename):
17705         * bytecode.c (optimize_compiled_function):
17706         * select-x.c (symbol_to_x_atom):
17707         * select-x.c (x_atom_to_symbol):
17708         * select-x.c (hack_motif_clipboard_selection):
17709         * select-x.c (selection_data_to_lisp_data):
17710         * select-x.c (lisp_data_to_selection_data):
17711         * select-x.c (Fx_get_cutbuffer_internal):
17712         * select-x.c (Fx_store_cutbuffer_internal):
17713         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17714         * buffer.h (TO_INTERNAL_FORMAT): New function.
17715         * emacs.c (make_arg_list_1):
17716         * emacs.c (make_argc_argv):
17717         * emacs.c (main_1):
17718         * emacs.c (Fdump_emacs):
17719         * emacs.c (split_string_by_emchar_1):
17720         * file-coding.h:
17721         * lisp.h:
17722         * lstream.h:
17723         * symsinit.h:
17724         * device-x.c (x_init_device):
17725         * device-x.c (Fx_valid_keysym_name_p):
17726         * device-x.c (Fx_get_font_path):
17727         * device-x.c (Fx_set_font_path):
17728         * glyphs.c (bitmap_to_lisp_data):
17729         * glyphs.c (pixmap_to_lisp_data):
17730         * alloc.c (make_ext_string): Use coding system arguments.  Update
17731         all callers.
17732         * alloc.c (build_string):
17733         * callproc.c (child_setup):
17734         * callproc.c (init_callproc):
17735         * fileio.c (lisp_strerror):
17736         * fileio.c (directory_file_name):
17737         * fileio.c (Fexpand_file_name):
17738         * fileio.c (Ffile_truename):
17739         * fileio.c (Fsysnetunam):
17740         * fileio.c (Fdo_auto_save):
17741         * sysdep.c (sys_readdir):
17742         * tests.c: New file.  Allow adding C tests.
17743         Replace GET_* macros with a more comprehensible and flexible
17744         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17745         Modify all calls.
17746         Any coding system can be used to do format conversion.
17747         Eliminate enum external_data_format.
17748         Eliminate convert_to_external_format.
17749         Eliminate convert_to_internal_format.
17750         Make sure file-name, keyboard, terminal, and ctext are always
17751         defined as coding systems or aliases.  Make
17752         file-name-coding-system, terminal-coding-system, and
17753         keyboard-coding-system magical variables that are equivalent to
17754         defining the corresponding coding system aliases.
17755
17756         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17757         * file-coding.c (Fcoding_system_alias_p): New function.
17758         * file-coding.c (Fcoding_system_aliasee): New function.
17759         * file-coding.c (append_suffix_to_symbol): New function.
17760         * file-coding.c (dangling_coding_system_alias_p): New function.
17761         * file-coding.c (Ffind_coding_system):
17762         * file-coding.c (Fcopy_coding_system):
17763         * file-coding.c (encode_coding_no_conversion):
17764         * file-coding.c (syms_of_file_coding):
17765         * file-coding.c (vars_of_file_coding):
17766         Rewrite coding system alias code.
17767         Allow nested aliases, like symbolic links.
17768         Allow redefinition of coding system aliases.
17769         Prevent existence of dangling coding system aliases.
17770
17771         * dired.c (Fuser_name_completion_1):
17772         * dired.c (Fuser_name_all_completions):
17773         A crash would happen if user did QUIT in the middle of building
17774         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17775
17776         * lisp.h:
17777         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17778
17779         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17780         an unsigned char *.  Update all callers.
17781
17782 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17783
17784         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17785
17786 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17787
17788         * elhash.c (hentry_description): Use more portable definition.
17789         (resize_hash_table): Initialize new hentries using
17790         xnew_array_and_zero, thereby simplifying the code.
17791
17792         * mule-charset.c (make_charset): Make sure entire object is
17793         initialized, to avoid Purify warnings.
17794
17795         * alloc.c (resize_string): Fix unlikely crash with big strings.
17796
17797 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17798
17799         * realpath.c (xrealpath):
17800         Don't call getwd().
17801
17802 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17803
17804         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17805
17806 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17807
17808         * unexelfsgi.c (unexec): Change the way we decide which segment
17809         should be extended.
17810
17811         Assumption that .bss section should be outside the PT_LOADable
17812         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17813         it's present) is inside the 'data' segment. This would fail the
17814         test which was used to find a segment to grow and cover new
17815         heap. Instead of this assumption, I created another one - on IRIX
17816         the segment to grow should start below .bss and it's address
17817         should extent above the end of .bss. Once this segment is
17818         identified, it's grown to accommodate the new heap and new
17819         zero-length .bss section is added at the end of .data2.
17820
17821 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17822
17823         * eval.c (Feval): Wrong number of arguments should use original
17824         function, not the indirect_function version of it.
17825
17826 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17827
17828         * glyphs-x.c (x_button_instantiate): Don't add image if
17829         it is not a pixmap.
17830         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17831         is relative.
17832
17833 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17834
17835         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17836         declaration.
17837         (DEFVAR_INT_MAGIC): Ditto.
17838         (DEFVAR_BOOL_MAGIC): Ditto.
17839         * glyphs.h: Reindent backslash.
17840
17841 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17842
17843         * glyphs-widget.c (layout_query_geometry):
17844         (layout_layout): Use correct types for gheight, gwidth.
17845
17846 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17847
17848         * EmacsManager.c (QueryGeometry): Purified.
17849
17850 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17851
17852         * alloc.c (make_float): Make sure entire object is initialized, to
17853         avoid Purify warnings.
17854         (pdump_register_sub): Remove useless assignment.
17855         (pdump): Use xmalloc, not malloc.
17856         (pdump_load): Use xmalloc, not malloc.
17857
17858 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17859
17860         * callproc.c:
17861         * dired-msw.c:
17862         * fileio.c:
17863         * process-nt.c:
17864         * redisplay-msw.c:
17865         * sysdep.c: Removed redundant #include <windows.h>
17866
17867 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17868
17869         * frame.c (delete_frame_internal): Do not delete device when its
17870         implementation so declares.
17871         (delete_frame_internal): Set device selected frame to nil when
17872         last frame goes away.
17873
17874         * device-msw.c (msprinter_device_system_metrics): Implemented.
17875         (mswindows_device_system_metrics): Added 'device-dpi property.
17876
17877         * device.c: (Fdevice_printer_p): Added.
17878         Added 'offset-workspace device metric.
17879
17880         * console.h (device_metrics): Declared DM_offset_workspace.
17881
17882 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17883
17884         * fileio.c (Ffile_truename): Remove pointless and confusing
17885         initialization of elen.
17886
17887         * glyphs-widget.c: Compiler warning fixes.
17888
17889 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17890
17891         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17892         instead of a Lisp_Object as argument to make it consistent with
17893         the other LIVE_P macros.
17894         (CHECK_LIVE_PROCESS): New macro.
17895
17896         * process.c: Declare Qprocess_live_p.
17897         (Fprocess_live_p): New function.
17898         (create_process): Use PROCESS_LIVE_P.
17899         (read_process_output): Ditto.
17900         (set_process_filter): Ditto.
17901         (Fdelete_process): Ditto.
17902         (kill_buffer_processes): Ditto
17903         (process_send_signal): Use CHECK_LIVE_PROCESS.
17904         (Fprocess_input_coding_system): Check whether process is still
17905         alive (fix PR#1061).
17906         (Fprocess_output_coding_system): Ditto.
17907         (Fprocess_coding_system): Ditto.
17908         (Fset_process_input_coding_system): Ditto.
17909         (Fset_process_output_coding_system): Ditto.
17910
17911 2000-01-23  Andy Piper  <andy@xemacs.org>
17912
17913         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17914         layout and widget.
17915
17916         * glyphs.c (mark_image_instance): take into account changed
17917         image_instance format.
17918         (image_instance_equal): ditto.
17919         (image_instance_hash): ditto.
17920
17921         * glyphs-widget.c (widget_instantiate): Incorporate layout
17922         instantiation here. Delay layout of the layout until later.
17923         (layout_instantiate): deleted.
17924         (layout_query_geometry): new function. get the geometry of a
17925         layout.
17926         (layout_layout): layout a layout dynamically.
17927         (image_instantiator_widget): New function - splitting up
17928         image_instantiator_format_create_glyphs_widget for netwinder
17929         compilation.
17930         (image_instantiator_buttons):
17931         (image_instantiator_edit_fields):
17932         (image_instantiator_combo_box):
17933         (image_instantiator_scrollbar):
17934         (image_instantiator_progress_guage):
17935         (image_instantiator_tree_view):
17936         (image_instantiator_tab_control):
17937         (image_instantiator_labels):
17938         (image_instantiator_layout): ditto.
17939         (image_instantiator_format_create_glyphs_widget): Call preceding
17940         functions.
17941
17942 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17943
17944         * process.c (Fset_process_coding_system):
17945         * device-x.c (Fx_keysym_hash_table):
17946         Docstring fixes.
17947
17948         * lstream.c (Lstream_write): Return documented value, not 0.
17949
17950         * fileio.c (directory_file_name):
17951         (Fsubstitute_in_file_name):
17952         (Fsubstitute_insert_file_contents_internal):
17953         (Fwrite_region_internal):
17954         * emacs.c:
17955         * sysdep.c:
17956         * getloadavg.c:
17957         * systty.h:
17958         Remove vestigial APOLLO-conditional code.
17959
17960 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17961
17962         * getpagesize.h: Add guard macros.
17963         * libsst.h: Add guard macros.
17964         * libst.h: Add guard macros.
17965         * line-number.h: Add guard macros.
17966         * ndir.h: Add guard macros.
17967         * sysfloat.h: Add guard macros.
17968         * sysfile.h: Add guard macros.
17969         * sysproc.h: Add guard macros.
17970         * syswait.h: Add guard macros.
17971         * xintrinsic.h: Add guard macros.
17972         * xintrinsicp.h: Add guard macros.
17973         * xmmanager.h: Add guard macros.
17974         * xmmanagerp.h: Add guard macros.
17975         * xmprimitive.h: Add guard macros.
17976         * xmu.h: Add guard macros.
17977         * gpmevent.h: Add copyright statement. Add guard macros.
17978         * miscplay.h: Add guard macros.
17979         * *.h: Use consistent C-standards-approved guard macro names.
17980
17981         * opaque.c (make_opaque): Switch parameter order.
17982         * opaque.h (make_opaque): Switch parameter order.
17983         Update all callers.
17984         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17985
17986         * config.h.in (type_checking_assert): Added.
17987         (bufpos_checking_assert): Added.
17988
17989 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17990
17991         * alloc.c: Harmless pdump changes.
17992         - Use countof().
17993         - spell alignment correctly.
17994         * sysdep.c: Use countof()
17995
17996 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17997
17998         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17999         initially_selected_for_input() console method, default to 0.
18000         (semi_canonicalize_console_connection): Try to delegate to
18001         canonicalize_console_connection if no such console method.
18002         (canonicalize_console_connection): Vice versa.
18003         (print_console): Do not print nil connection.
18004
18005         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
18006         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
18007         (XDEVIMPF_FRAMELESS_OK): Added.
18008         (CONSOLE_INHERITS_METHOD): Added.
18009
18010         * console-msw.c (mswindows_canonicalize_console_connection):
18011         Added.
18012         (mswindows_canonicalize_device_connection): Added.
18013
18014         * console-msw.h (struct msprinter_device): Added this struct and
18015         accessor macros.
18016         (mswindows_device): Made fontlist a lisp object.
18017
18018         * device.c (semi_canonicalize_device_connection):  Try to delegate
18019         to canonicalize_device_connection if no such console method.
18020         (canonicalize_device_connection): Vice versa.
18021         (print_device): Do not print nil connection.
18022
18023         * device-msw.c (mswindows_init_device): Call InitCommonControls
18024         when have widgets.
18025         (mswindows_delete_device): Removed fontlist deallocation.
18026         (mswindows_mark_device): Added.
18027
18028         * events.c (event_equal): Added abort() at unreached code.
18029         (event_hash): Ditto.
18030
18031         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
18032         fallback tags of Windows devices.
18033
18034         * general.c (syms_of_general): Initialized Qmsprinter.
18035
18036         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
18037         of fallback tags of Windows devices.
18038
18039         * lisp.h: Declared Qmsprinter.
18040
18041         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
18042         of strings.
18043         (mswindows_list_fonts): Ditto.
18044         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
18045         that it can be used by both mswindows and msprinter devices.
18046         (initialize_font_instance): Added.
18047         (mswindows_initialize_font_instance): Use it.
18048         (msprinter_initialize_font_instance): Added.
18049
18050         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
18051         and implementation flags check.
18052         (redisplay_without_hooks): Changed the call to the above.
18053         (Fredraw_device): Ditto.
18054         (Fredisplay_device): Ditto.
18055
18056         * redisplay-msw.c (get_frame_dc): Implemented.
18057         (get_frame_compdc): Implemented.
18058         (many functions): Use the two functions above to get device
18059         contexts, ether for a window or a printer.
18060
18061 2000-01-21  Olivier Galibert  <galibert@pobox.com>
18062
18063         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
18064         initialization here.
18065         (init_symbols_once_early): Call it.
18066         * emacs.c (main_1): Call it.
18067         * symsinit.h: Declare it.
18068
18069 2000-01-19  Olivier Galibert  <galibert@pobox.com>
18070
18071         * alloc.c: Use a lrecord_header * in the backtrace instead of a
18072         Lisp_Object.
18073         (pdump_backtrace): Ditto.
18074         (pdump_register_object): Ditto.  Cleanup use of the pointers.
18075         (pdump_get_entry): Abort if trying to register a null pointer.
18076         (pdump_dump_data): Cleanup types when relocating.
18077         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
18078         (pdump_dump_rtables): Remove bad casts.
18079         (pdump_load): Cleanup relocation w.r.t union type.  Use a
18080         Lisp_Object instead of a EMACS_INT for the hashtable
18081         reorganization.
18082
18083 2000-01-20  Martin Buchholz  <martin@xemacs.org>
18084
18085         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
18086
18087         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
18088
18089         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
18090
18091         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
18092
18093 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18094
18095         * faces.h (FACE_STRIKETHRU_P): Added.
18096
18097         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
18098         of font variants.
18099
18100         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
18101         (mswindows_set_dc_font): New function, aware of font variants,
18102         separated from mswindows_update_dc.
18103
18104         * objects-msw.h (struct mswindows_font_instance_data): Added
18105         definition.
18106
18107         * objects-msw.c (mswindows_finalize_font_instance): Delete all
18108         cached fonts and the data structure.
18109         (mswindows_initialize_font_instance): Added creation of font data
18110         structure.
18111         (mswindows_print_font_instance): Print at least something.
18112         (mswindows_create_font_variant): Implemented.
18113         (mswindows_get_hfont): Implemented.
18114
18115 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
18116
18117         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
18118         prototyping problem with msvc.
18119
18120         * emacs.c (main_1): added syms_of_gui_mswindows() call
18121
18122         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
18123         syms_of_gui_mswindows() function
18124
18125         * symsinit.h: added the prototype for syms_of_gui_mswindows()
18126
18127 2000-01-18  Martin Buchholz <martin@xemacs.org>
18128
18129         * XEmacs 21.2.27 is released.
18130
18131 2000-01-18  Martin Buchholz  <martin@xemacs.org>
18132
18133         * glyphs-eimage.c (struct tiff_error_struct):
18134         (tiff_error_func):
18135         (tiff_warning_func):
18136         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
18137
18138         * unexmips.c:
18139         * unexhp9k3.c:
18140         * unexfreebsd.c:
18141         * unexec.c: Remove vestigial Lucid C code.
18142         * unexalpha.c:
18143         * unexaix.c:
18144         * termcap.c:
18145         * libsst.c: Ansify.
18146         Remove declarations of errno and strerror().
18147
18148         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
18149
18150         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
18151
18152 2000-01-16  Martin Buchholz  <martin@xemacs.org>
18153
18154         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
18155         Optimize.
18156
18157 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18158
18159         * md5.c:
18160         * file-coding.c:
18161         * file-coding.h:
18162         Change enum eol_type to eol_type_t.
18163
18164 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18165
18166         * gui.c (get_gui_callback): Check cons before accessing car.
18167
18168 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18169
18170         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
18171         (XSETSPECIFIER_TYPE): Ditto.
18172
18173 2000-01-17  Didier Verna  <didier@xemacs.org>
18174
18175         * redisplay.c (generate_fstring_runes): compute string size in
18176         characters, not bytes.
18177
18178 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18179
18180         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
18181
18182 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
18183
18184         * print.c (print_error_message): Call print_prepare().
18185
18186 2000-01-14  Martin Buchholz  <martin@xemacs.org>
18187
18188         * .dbxrc: Renamed from dbxrc.
18189
18190         * events.c (event_to_character):
18191         Use `assert (foo)' instead of `if (!foo) abort()'
18192
18193         * .gdbinit (xtype): Add documentation.
18194         * .gdbinit (check-temacs): New function.
18195         * .gdbinit (check-xemacs): New function.
18196         * dbxrc (check-xemacs): New function.
18197         * dbxrc (check-xemacs): New function.
18198
18199 2000-01-14  Andy Piper  <andy@xemacs.org>
18200
18201         * glyphs-widget.c (widget_query_geometry): Make sure that we
18202         calculate default dimensions correctly.
18203
18204 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18205
18206         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
18207
18208         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
18209         pdump_wire'd variable.
18210
18211         * emacs.c: (main_1): Conditionalized calls to
18212         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
18213
18214 2000-01-13  Martin Buchholz  <martin@xemacs.org>
18215
18216         * window.c (Fset_window_configuration):
18217         * sysdep.c (_start):
18218         * input-method-motif.c (res):
18219         * event-Xt.c (Xt_process_to_emacs_event):
18220         Simple compiler warning fixes.
18221
18222         * bytecode.c (funcall_compiled_function): Use the original
18223         function symbol on the backtrace list in preference to the
18224         compiled_function object in error messages.
18225
18226 2000-01-13  Andy Piper  <andy@xemacs.org>
18227
18228         * glyphs-x.c (update_widget_face): Make sure we update the widget
18229         background as well as foreground.
18230
18231 2000-01-13  Andy Piper  <andy@xemacs.org>
18232
18233         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
18234         fields to subwindow.
18235         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
18236         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
18237         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18238         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18239
18240         * glyphs-widget.c (check_valid_tab_orientation): new function.
18241         (initialize_widget_image_instance): zero orientation and
18242         justification.
18243         (widget_instantiate): pick up orientation.
18244         (tab_control_query_geometry): return appropriate values for
18245         vertical tabs.
18246
18247         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
18248         appropriate creation flags for left, right and bottom tabs.
18249
18250         * s/cygwin32.h: add tab definitions.
18251
18252 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18253
18254         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
18255         frame upon hiding a subwindow.
18256         (mswindows_button_instantiate): Changed the push button style to
18257         BS_PUSHBUTTON.
18258         (mswindows_button_instantiate): Removed button BS_NOTIFY
18259         style.
18260         (mswindows_button_instantiate): Removed redundant check for
18261         a disabled gui item.
18262         (mswindows_button_instantiate): Made use of WS_TABSTOP
18263         consistent: "operable" controls (edit, button, tree, scroll) have
18264         this style, "display-only" ones (static, progress gauge) do
18265         not. This style is currently ignored by XEmacs though. Also,
18266         removed the WS_EX_CONTROLPARENT style - it is not for children,
18267         it is for their parents!
18268         (mswindows_edit_field_instantiate): Ditto.
18269         (mswindows_progress_gauge_instantiate): Ditto.
18270         (mswindows_tree_view_instantiate): Ditto.
18271         (mswindows_tab_control_instantiate): Ditto.
18272         (mswindows_scrollbar_instantiate): Ditto.
18273         (mswindows_combo_box_instantiate): Ditto.
18274         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
18275         style to the "clip" window.
18276         (mswindows_button_instantiate): Removed compilation warning by
18277         equally typing terms of the ?: operator.
18278
18279 2000-01-12  Didier Verna  <didier@xemacs.org>
18280
18281         * redisplay.c (generate_fstring_runes): new parameter holding the
18282         last modeline-format extent.
18283         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
18284         extent, fill the glyph block with it.
18285         (generate_fstring_runes): handle these parameters.
18286         (generate_formatted_string_db): ditto.
18287
18288         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
18289         glyphs'extents in the modeline.
18290
18291 1999-01-11  Mike Woolley  <mike@bulsara.com>
18292
18293         * ntheap.c: Reduced the reserved heap space from 1Gb down to
18294         256Mb, as a workaround for the non-starting problem many people
18295         have experienced.
18296
18297 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18298
18299         * console-tty.c (Fset_console_tty_output_coding_system):
18300         Force redrawing tty frame.
18301
18302 2000-01-10  Didier Verna  <didier@xemacs.org>
18303
18304         * redisplay.c (generate_fstring_runes): fix size computation bug.
18305
18306 2000-01-09  William M. Perry <wmperry@aventail.com>
18307
18308         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
18309
18310 2000-01-09  Andy Piper  <andy@xemacs.org>
18311
18312         * glyphs-msw.c: index -> i to avoid shadows.
18313         (xbm_create_bitmap_from_data): make static.
18314         (check_valid_string_or_int): deleted.
18315         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
18316
18317         * glyphs-x.c (x_update_subwindow): remove unused args.
18318
18319         * glyphs.c (glyph_image_instance): return the thing. Don't set the
18320         back pointer - this is done in allocate_image_instance.
18321         (query_string_font): return Qnil to make the compiler happy.
18322         (unmap_subwindow): set to ~0 to make the compiler happy.
18323         (glyph_query_geometry): comment out until used.
18324         (glyph_layout): ditto.
18325
18326 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18327
18328         * insdel.c (signal_after_change): Remove extraneous unbind_to().