update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2013-02-16  MORIOKA Tomohiko  <tomo.git@chise.org>
2
3         * chartab.c (find_char_feature_in_family): New implementation;
4         don't support multiple parents; support non-list mother.
5
6 2012-06-11  MORIOKA Tomohiko  <tomo.git@chise.org>
7
8         * text-coding.c (Qenable_decomposition): New variable in XEmacs
9         CHISE.
10         (Fmake_coding_system): Add new property `enable-decomposition' in
11         XEmacs CHISE.
12         (char_encode_utf8): Don't decompose character if
13         CODING_SYSTEM_ENABLE_DECOMPOSITION (str->codesys) is false.
14         (syms_of_file_coding): Add new symbol `enable-decomposition' in
15         XEmacs CHISE.
16         (complex_vars_of_file_coding): Define new coding-system-property
17         `enable-decomposition' in XEmacs CHISE.
18
19         * file-coding.h (struct Lisp_Coding_System): Add
20         `enable_decomposition' in XEmacs CHISE.
21         (CODING_SYSTEM_ENABLE_DECOMPOSITION): New macro in XEmacs CHISE.
22         (XCODING_SYSTEM_ENABLE_DECOMPOSITION): New macro in XEmacs CHISE.
23
24 2012-02-17  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
25
26         * text-coding.c (DECODE_ADD_UCS_CHAR): Add `static'.
27
28 2012-02-11  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
29
30         * text-coding.c (DECODE_ADD_UCS_CHAR): Don't use `INLINE_HEADER'.
31
32         * chartab.c (UINT8_DECODE): Don't use `INLINE_HEADER'.
33         (UINT16_DECODE): Ditto.
34
35         * glyphs-eimage.c (png_instantiate):
36         - Use `png_get_image_height (png_ptr, info_ptr)' instead of
37           `info_ptr->height'.
38         - Use `png_get_image_width (png_ptr, info_ptr)' instead of
39           `info_ptr->width'.
40         - Use `png_get_color_type(png_ptr, info_ptr)' instead of
41           `info_ptr->color_type'.
42         - Use `png_get_bit_depth(png_ptr, info_ptr)' instead of
43           `info_ptr->bit_depth'.
44
45 2011-07-20  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
46
47         * mule-charset.c (charset_code_point): If nil is specified as a
48         feature-value, don't find in mother and return -1.
49
50 2011-07-22  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
51
52         * chartab.c (Fput_char_attribute): Accept nil as a value of
53         CCS-feature [it means that specified object does not have
54         code-point of the CCS-feature].
55
56 2011-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
57
58         * mule-charset.c (complex_vars_of_mule_charset): Use "jisx0208"
59         instead of "jisx0208\\.1990" as the X-registry of `=jis-x0208'.
60
61 2011-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
62
63         * text-coding.c (char_encode_as_entity_reference): Don't use
64         `DECODE_CHAR' to detect isolated characters.
65
66         * mule-charset.c (charset_code_point): Change the third argument
67         `defined_only' to `accepted_mode'; `accepted_mode' can be
68         CHAR_ISOLATED_ONLY, CHAR_ALL or CHAR_DEFINED_ONLY.
69
70         * char-ucs.h (CHAR_ISOLATED_ONLY): New macro.
71         (CHAR_ALL): New macro.
72         (CHAR_DEFINED_ONLY): New macro.
73
74 2011-03-14  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
75
76         * chartab.c (Fchar_feature_base_name_eq): New function when
77         UTF2000 is enabled.
78         (Fput_char_attribute): Use `Fchar_feature_base_name_eq'.
79         (syms_of_chartab): Add new builtin function
80         `char-feature-base-name=' when UTF2000 is enabled.
81
82 2011-02-17  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
83
84         * text-coding.c (Vdecomposition_feature_list): New variable when
85         UTF2000 is defined.
86         (char_encode_utf8): Refer variable `decomposition-feature-list'
87         instead of `=decomposition' feature.
88         (vars_of_file_coding): Add new variable
89         `decomposition-feature-list' when UTF2000 is defined.
90
91 2011-02-16  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
92
93         * chartab.c (Fput_char_attribute): Support `=decomposition@FOO' as
94         `=decomposition' feature.
95
96 2011-02-12  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
97
98         * mule-charset.c (Fmake_charset): Fix problem for 94^n or 96^n
99         coded-charsets with builtin characters.
100
101 2011-02-09  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
102
103         * text-coding.c (Qrep_decomposition): New extern.
104         (char_encode_utf8): Try to encode as combing sequence (or IVS).
105
106 2011-01-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
107
108         * concord.c (Fconcord_genre_ds): Add "#ifdef HAVE_LIBCHISE" ...
109         "#endif" for code to refer Vchise_system_db_directory.
110
111 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
112
113         * concord.c (Fconcord_object_put): Use `member' instead of `memq'.
114         (Fconcord_object_adjoin): New function.
115         (Fconcord_object_adjoinX): New function.
116         (syms_of_concord): Defsubred `Fconcord_object_adjoin' and
117         `Fconcord_object_adjoinX'.
118
119 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
120
121         * concord.c:
122         - Include "elconcord.h".
123         - Move EXFUNs for `Fconcord_decode_object', `Fconcord_object_put'
124           and `Fconcord_object_get' to elconcord.h.
125         (Lisp_CONCORD_DS): Moved to elconcord.h.
126         (struct Lisp_CONCORD_DS): Ditto.
127         (XCONCORD_DS): Ditto.
128         (XSET_CONCORD_DS): Ditto.
129         (CONCORD_DS_P): Ditto.
130         (CHECK_CONCORD_DS): Ditto.
131         (CONCHECK_CONCORD_DS): Ditto.
132         (Lisp_CONCORD_Object): Ditto.
133         (struct Lisp_CONCORD_Object): Ditto.
134         (XCONCORD_OBJECT): Ditto.
135         (XSET_CONCORD_OBJECT): Ditto.
136         (CONCORD_OBJECT_P): Ditto.
137         (CHECK_CONCORD_OBJECT): Ditto.
138         (CONCHECK_CONCORD_OBJECT): Ditto.
139         (CONCORD_OBJECT_GENRE): Ditto.
140         (CONCORD_OBJECT_ID): Ditto.
141         (XCONCORD_OBJECT_ID): Ditto.
142         (XCONCORD_OBJECT_GENRE): Ditto.
143         (concord_object_equal): New function.
144         (LRECORD_IMPLEMENTATION of "concord_object"): Use
145         `concord_object_equal'.
146
147         * elconcord.h: New file.
148
149 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
150
151         * concord.c (print_concord_object): Use readable form even if
152         `print-readably' is nil.
153
154 2010-11-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
155
156         * concord.c (print_concord_object): Don't display location of
157         data-source when `print-readably' is nil.
158
159 2010-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
160
161         * concord.c (Fconcord_genre_ds): Use Vchise_system_db_directory as
162         the default location of data-source.
163         (complex_vars_of_concord): Use Vchise_system_db_directory to
164         assign genre `character' and `feature'.
165
166         * chartab.h (Vchise_system_db_directory): New extern when
167         HAVE_CONCORD is defined.
168
169 2010-09-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
170
171         * concord.c: Include <chise.h> if HAVE_LIBCHISE is defined.
172         (Qcharacter): New variable when HAVE_LIBCHISE is defined.
173         (Qfeature): Ditto.
174         (Fconcord_object_genre): New function.
175         (syms_of_concord):
176         - Add new builtin symbols `character' and `feature' when
177           HAVE_LIBCHISE is defined.
178         - Add Add new builtin function `concord-object-genre'.  
179         (complex_vars_of_concord): New function; assign genres `character'
180         and `feature' when HAVE_LIBCHISE is defined.
181
182 2010-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
183
184         * emacs.c (main_1): Call `complex_vars_of_concord' when
185         HAVE_CONCORD is defined.
186
187         * symsinit.h (complex_vars_of_concord): New prototype.
188
189 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
190
191         * chartab.c (allocate_character): Add `static'.
192
193 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
194
195         * chartab.c (allocate_character): New function.
196         (Fdefine_char): Use allocate_character().
197
198 2010-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
199
200         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.25
201         (Ōkawara).
202
203 2010-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
204
205         * chartab.c (save_uint8_byte_table): Fixed problem when a property
206         is unloaded.
207         (save_uint16_byte_table): Likewise.
208
209 2010-02-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
210
211         * chartab.c (Fchar_feature_property): New function when LIBCHISE
212         is enabled.
213         (Fput_char_feature_property): Likewise.
214         (syms_of_chartab): Add new builtin functions
215         `char-feature-property' and `put-char-feature-property' when
216         LIBCHISE is enabled.
217
218 2009-04-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
219
220         * mule-charset.c (Fmake_charset): Add DOC-string of 'iso-ir and
221         '=>iso-ir.
222         (Fcharset_property): Regard '=>iso-ir as same as `iso_ir.
223
224 2009-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
225
226         * mule-charset.c (Qto_iso_ir): New variable for XEmacs CHISE.
227         (make_charset): Add new argument `iso_ir'.
228         (Fmake_charset): Add new property `=>iso-ir' in XEmacs CHISE.
229         (Fmake_reverse_direction_charset): Copy CHARSET_ISO_IR(cs) in
230         XEmacs CHISE.
231         (Fcharset_property): Support `iso-ir' in XEmacs CHISE.
232         (syms_of_mule_charset): Add new builtin symbol `=>iso-ir' in
233         XEmacs CHISE.
234         (complex_vars_of_mule_charset): Specify argument `iso_ir' of
235         function `make_charset'.
236
237         * char-ucs.h (LEADING_BYTE_*): Enclose negative value with ( ).
238         (struct Lisp_Charset): Add new member `iso_ir'.
239         (CHARSET_ISO_IR): New macro.
240
241 2009-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
242
243         * mule-charset.c (Fdecode_char): Fix problem when decoding GR
244         code-point by GL charset.
245
246 2008-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
247
248         * concord.c (concord_id_validate): New function.
249         (structure_type_create_concord): Use `concord_id_validate' instead
250         of `concord_name_validate' to accept integer and character as =id.
251
252 2008-09-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
253
254         * concord.c (func_for_each_object): Fix bug about GC-protection.
255
256 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
257
258         * concord.c (Fconcord_object_put): Check argument FEATURE is a
259         symbol.
260
261 2008-09-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
262
263         * text-coding.c (struct decoding_stream): Add new member
264         `bom_flag' in XEmacs CHISE.
265         (reset_decoding_stream): Ignore U+FEFF in the beginning of stream
266         in XEmacs CHISE.
267
268 2008-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
269
270         * mule-charset.c: Move definition of `=jis-x0208@1978' to
271         lisp/mule/mule-conf.el.
272
273 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
274
275         * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
276         (make_charset): Add new argument `partial'.
277         (Fmake_charset): Add new property 'partial in XEmacs CHISE.
278         (Fmake_reverse_direction_charset): Modify for `make_charset'.
279         (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
280         CHISE.
281         (complex_vars_of_mule_charset): Modify for `make_charset'; specify
282         `=jis-x0208' as a partial coded-charset.
283
284 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
285
286         * text-coding.c (decode_add_er_char): Fix problem when a character
287         represented by an entity-reference is not defined.
288
289 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
290
291         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
292         Qrep_*.
293
294 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
295
296         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
297         (Kasagi).
298
299 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
300
301         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
302         is a relation feature.
303
304 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
305
306         * chartab.c (syms_of_chartab): Define
307         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
308
309         * chartab.h (Q_denotational): New extern when UTF2000 or
310         HAVE_CONCORD is defined.
311         (Q_denotational_from): Likewise.
312         (Q_subsumptive): Likewise.
313         (Q_subsumptive_from): Likewise.
314
315 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
316
317         * concord.c (concord_object_put): New function.
318         (Fconcord_object_put): Use `concord_object_put'.
319
320 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
321
322         * concord.c (Fconcord_define_object): New function.
323         (syms_of_concord): Add new builtin function
324         `concord-define-object'.
325
326 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
327
328         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
329         (Kamo).
330
331 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
332
333         * concord.c: Add EXFUN for Fconcord_object_get.
334         (Vconcord_genre_object_hash_table): New variable.
335         (concord_genre_cache_get_object): New function.
336         (concord_genre_cache_put_object): New function.
337         (Fconcord_make_object): Use object cache; put object-ID into `=id'
338         feature.
339         (Fconcord_object_put): Call `concord_index_sync' after
340         `concord_index_strid_put_obj'.
341         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
342
343 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
344
345         * concord.c (Fconcord_decode_object): Do GCPRO for
346         Fconcord_make_object.
347         (func_for_each_object): Likewise; do GCPRO for
348         for_each_object_closure->function.
349         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
350         for_each_object_closure->function, for_each_object_closure->genre,
351         for_each_object_closure->ds and for_each_object_closure->ret.
352         (concord_object_validate): Do GCPRO for Fconcord_make_object.
353
354 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
355
356         * concord.c: Add EXFUNs for Fconcord_decode_object and
357         Fconcord_object_put.
358         (Fconcord_make_object): Change order of arguments.
359         (Fconcord_decode_object): Modify for Fconcord_make_object.
360         (func_for_each_object): Likewise.
361         (concord_object_validate): Likewise.
362         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
363
364 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
365
366         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
367
368 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
369
370         * concord.c (Fconcord_decode_object): Try to use readable print
371         form as a key of Concord-index.
372         (Fconcord_object_get): Try to use readable print form as an ID of
373         Concord-object.
374         (Fconcord_object_put): Try to use readable print form as an ID of
375         Concord-object and a feature value.
376         (Fconcord_object_spec): Try to use readable print form as an ID of
377         Concord-object.
378
379 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
380
381         * concord.c (print_concord_object): Support readable form.
382
383 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
384
385         * emacs.c (main_1): Call `structure_type_create_concord' when
386         HAVE_CONCORD is defined.
387
388         * symsinit.h (structure_type_create_concord): New prototype.
389
390         * concord.c (Qconcord_object): New variable.
391         (Qgenre): Likewise.
392         (Q_id): Likewise.
393         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
394         for directory.
395         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
396         char*> for genre-name.
397         (Fconcord_feature_list): Likewise.
398         (Fconcord_make_object): Likewise.
399         (Fconcord_decode_object): Likewise; use <char*> instead of
400         <unsigned char*> for feature_name and strid.
401         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
402         c_obj and feature_name.
403         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
404         char*> for c_value.
405         (struct closure_for_object_spec): Use <char*> instead of <unsigned
406         char*> for member `object_id'.
407         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
408         char*> for feature-name.
409         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
410         for c_obj.
411         (func_for_each_object): Cast to avoid warnings.
412         (Fconcord_foreach_object_in_feature): Use <char*> instead of
413         <unsigned char*> for genre_name and feature_name.
414         (concord_name_validate): New function.
415         (concord_object_validate): Likewise.
416         (concord_object_instantiate): Likewise.
417         (syms_of_concord): Add new builtin symbols `concord-object',
418         `genre' and `=id'.
419         (structure_type_create_concord): New function.
420
421 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
422
423         * concord.c (Vconcord_ds_hash_table): New variable.
424         (Vconcord_genre_hash_table): New variable.
425         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
426         (Fconcord_ds_directory): New function.
427         (Fconcord_assign_genre): New function.
428         (Fconcord_genre_directory): New function.
429         (Fconcord_genre_ds): New function.
430         (Fconcord_feature_list): Allow to omit `ds'.
431         (Fconcord_make_object): Likewise.
432         (Fconcord_decode_object): Likewise.
433         (Fconcord_foreach_object_in_feature): Likewise.
434         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
435         Fconcord_assign_genre, Fconcord_genre_directory and
436         Fconcord_genre_ds.
437         (vars_of_concord): Setup Vconcord_ds_hash_table and
438         Vconcord_genre_hash_table.
439
440 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
441
442         * concord.c (struct closure_for_each_object): Add new member
443         `ret'.
444         (func_for_each_object): Setup the return value to
445         `for_each_object_closure->ret'.
446         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
447         returns the value instead of Qt.
448
449 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
450
451         * concord.c: New file.
452
453 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
454
455         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
456         `lrecord_type_concord_object'.
457
458 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
459
460         * symsinit.h (syms_of_concord): New prototype.
461         (vars_of_concord): New prototype.
462
463         * emacs.c (main_1): Setup symbols and variable about concord if
464         HAVE_CONCORD is defined.
465
466         * config.h.in (HAVE_CONCORD): New macro.
467
468 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
469
470         * chartab.c (Fput_char_attribute): For each character relation
471         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
472
473 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
474
475         * chartab.c (Fput_char_attribute): Use
476         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
477         calling `put_char_composition'.
478
479 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
480
481         * chartab.c (Q_halfwidth_of): New variable.
482         (put_char_composition): Return `<-halfwidth' instead of
483         `=decomposition' for compatibility mapping to single character
484         tagged `narrow'.
485         (Fput_char_attribute): Convert char-specs in value of
486         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
487         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
488         for `<-halfwidth'.
489         (syms_of_chartab): Add new symbol `<-halfwidth'.
490
491 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
492
493         * chartab.c (put_char_composition): Return
494         `<-formed@{isolated|initial|medial|final}' for compatibility
495         mapping to single character tagged
496         `{isolated|initial|medial|final}'.
497
498 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
499
500         * chartab.c (Q_compat_of): Deleted.
501         (put_char_composition): Return `<-FOO' for compatibility mapping
502         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
503         of `symbol_name (XSYMBOL(...))'.
504         (Fput_char_attribute): Convert char-specs in value of
505         `{<-|->}font[^*]*' to characters and put reverse links.
506         (Fsave_char_attribute_table): Don't refer Q_compat_of.
507         (syms_of_chartab): Delete builtin symbol `<-compat'.
508
509 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
510
511         * chartab.c (Q_circled_of): New variable.
512         (put_char_composition): Return `<-circled' instead of
513         `=decomposition' for compatibility mapping to single character
514         tagged `circle'.
515         (Fput_char_attribute): Convert char-specs in value of
516         `{<-|->}circled[^*]*' to characters and put reverse links.
517         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
518         for `<-circled'.
519         (syms_of_chartab): Add new symbol `<-circled'.
520
521 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
522
523         * chartab.c (Qto_decomposition_at_circled): New variable.
524         (put_char_composition): Return `=>decomposition@circled' instead
525         of `=decomposition' for compatibility decomposition mapping tagged
526         `circle'.
527         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
528
529 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
530
531         * chartab.c (Q_subscript_of): New variable.
532         (put_char_composition): Return `<-subscript' instead of
533         `=decomposition' for compatibility mapping to single character
534         tagged `sub'.
535         (Fput_char_attribute): Convert char-specs in value of
536         `{<-|->}subscript[^*]*' to characters and put reverse links.
537         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
538         for `<-subscript'.
539         (syms_of_chartab): Add new symbol `<-subscript'.
540
541 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
542
543         * chartab.c (Q_superscript_of): New variable.
544         (put_char_composition): Return `<-superscript' instead of
545         `=decomposition' for compatibility mapping to single character
546         tagged `super'.
547         (Fput_char_attribute): Convert char-specs in value of
548         `{<-|->}superscript[^*]*' to characters and put reverse links.
549         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
550         for `<-superscript'.
551         (syms_of_chartab): Add new symbol `<-superscript'.
552
553 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
554
555         * chartab.c (Qto_decomposition_at_compat): Deleted.
556         (Qto_decomposition_at_superscript): New variable.
557         (put_char_composition): Use `=>decomposition@superscript' instead
558         of `=decomposition' for compatibility decomposition mapping tagged
559         `super'.
560         (Fput_char_attribute): Fix condition about `put_char_composition'.
561         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
562         add news symbol `=>decomposition@superscript'.
563
564 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
565
566         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
567         for compatibility decomposition mapping tagged FOO.
568         (Fput_char_attribute): Modify for `put_char_composition'.
569
570 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
571
572         * chartab.c (Qto_decomposition_at_compat): New variable.
573         (Q_compat_of): Renamed from `Q_compatibility_of'.
574         (put_char_composition): Rename `Q_compatibility_of' to
575         `Q_compat_of'; return `=>decomposition@compat' for compatibility
576         decomposition mapping.
577         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
578         `Q_compat_of'.
579         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
580         `<-compatibility' to `<-compat'.
581
582 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
583
584         * chartab.c (Q_compatibility_of): New variable.
585         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
586         object is proved to be a cons cell; return `<-compatibility' if
587         the first element of argument `value' is `compat'.
588         (Fput_char_attribute): Eliminate the first value if
589         `put_char_composition' returns `<-compatibility'.
590         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
591         for `<-compatibility'.
592         (syms_of_chartab): Add new symbol `<-compatibility'.
593
594 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
595
596         * chartab.c (Q_canonical): New variable.
597         (put_char_composition): Return a feature name: return
598         `->canonical' if argument `value' specifies single character.
599         (Fput_char_attribute): Use `put_char_composition' to determine
600         feature name for `=decomposition' or `->denotational'.
601         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
602         for `->canonical'.
603         (syms_of_chartab): Add new symbol `->canonical'.
604
605 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
606
607         * chartab.c (Qmap_decomposition): New variable.
608         (Fput_char_attribute): Convert `->decomposition' to
609         `=decomposition'.
610         (syms_of_chartab): Add new symbol `=decomposition'.
611
612 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
613
614         * chartab.c (Fget_range_char_table): Fix serious problem when
615         `range' is nil.
616
617 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
618
619         * chartab.c (char_table_get_db): Use `read_from_c_string'.
620
621 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
622
623         * lread.c (read_from_c_string): New function.
624
625         * lisp.h (read_from_c_string): New prototype.
626
627 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
628
629         * chartab.c (Fput_char_attribute): Convert char-specs in value of
630         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
631         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
632         for `{<-|->}Oracle-Bones[^*]*'.
633
634 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
635
636         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
637         (Kizu).
638
639 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
640
641         * text-coding.c (Qccs_priority_list): New variable in XEmacs
642         CHISE.
643         (Fmake_coding_system): Support new property `ccs-priority-list' in
644         XEmacs CHISE.
645         (Fcoding_system_property): Likewise.
646         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
647         Vdefault_coded_charset_priority_list in XEmacs CHISE.
648         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
649         XEmacs CHISE.
650         (complex_vars_of_file_coding): Define new coding-system-property
651         `ccs-priority-list' in XEmacs CHISE.
652
653         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
654
655 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
656
657         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
658         changed to normal function.
659         (encode_char_2): Likewise.
660
661         * mule-charset.c (decoding_table_put_char): Copied from
662         char-ucs.h; changed to normal function.
663         (encode_char_2): Likewise.
664
665 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
666
667         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
668         New extern.
669         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
670         (encode_char_2_search_children): New inline function.
671         (encode_char_2): Refer
672         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
673         and use `encode_char_2_search_children'.
674
675 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
676
677         * mule-charset.c
678         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
679         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
680         (vars_of_mule_charset): Add new variable
681         `display-coded-charset-priority-use-inheritance' and
682         `display-coded-charset-priority-use-hierarchy-order'.
683
684 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
685
686         * char-ucs.h (Q_subsumptive): New extern.
687         (Q_denotational): Likewise.
688         (encode_char_2): Search children specified by `->subsumptive' and
689         `->denotational'.
690
691 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
692
693         * mule-charset.c (complex_vars_of_mule_charset): Modify the
694         X-registry of `ucs-bmp'.
695
696 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
697
698         * chartab.c (char-variants): Refer `->subsumptive',
699         `->denotational' and `->identical' as same as `->ucs-unified'.
700
701 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
702
703         * chartab.c (Fput_char_attribute): Convert char-specs in value of
704         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
705         links.
706
707 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
708
709         * text-coding.c: Add EXFUN for `Fregexp_quote'.
710         (decode_add_er_char): Fix problem about infinite loop when a CCS
711         specified in `coded-charset-entity-reference-alist' is not
712         existed.
713
714 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
715
716         * mule-charset.c (syms_of_mule_charset): Rename
717         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
718
719 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
720
721         * fns.c (simplify_char_spec): Don't allocate new character-object
722         if specified char_spec does not have any CCS-features.
723
724         * chartab.h: Add EXFUN for Fdefine_char.
725
726         * chartab.c: Delete EXFUN for Fdefine_char.
727
728 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
729
730         * fns.c (simplify_char_spec): Use Fdefine_char instead of
731         Ffind_char for char-spec.
732
733 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
734
735         * lisp-disunion.h (XCHARVAL): Fix condition about
736         SIZEOF_EMACS_INT.
737
738 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
739
740         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
741         <int> for `code'.
742         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
743         point; use <Emchar> instead of <int> for character-id.
744
745 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
746
747         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
748         (make_char): Likewise.
749         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
750         environment.
751         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
752         instead of <int> as the type of return value; use <Lisp_Object>
753         instead of <Emchar> as the type of argument.
754         (XCHARVAL[macro version]): Cast the result into <Emchar>.
755
756         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
757         syntaxcode> instead of <int>.
758
759 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
760
761         * chartab.c (put_char_composition): Use DECODE_CHAR to get
762         character corresponding with UCS code point.
763         (Fput_char_attribute): Likewise.
764
765         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
766         character in the UCS decoding-table if the char-id is not equal to
767         the UCS code point.
768
769 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
770
771         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
772         for aliases; write `description'; write
773         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
774         not 0.
775
776 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
777
778         * chartab.c (Fsave_char_attribute_table): Don't use
779         `save_charset_properties'.
780
781         * mule-charset.c (Fsave_charset_properties): Renamed from
782         `save_charset_properties' and changed to Lisp function again;
783         write property `type' as `CCS'; write properties `final-byte' and
784         `mother' if they exists.
785         (syms_of_mule_charset): Revive builtin function
786         `save-charset-properties' when HAVE_LIBCHISE is defined.
787
788 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
789
790         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
791         instead of Vexec_directory.
792         (char_attribute_system_db_file): Likewise.
793
794 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
795
796         * chartab.c (Fsave_char_attribute_table): Use
797         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
798         defined.
799
800         * mule-charset.c (save_charset_properties): Renamed from
801         `Fsave_charset_properties'; changed to non-Lisp function.
802         (syms_of_mule_charset): Abolish builtin function
803         `save-charset-properties'.
804
805 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
806
807         * mule-charset.c (Fsave_charset_properties): New function when
808         HAVE_LIBCHISE is defined.
809         (syms_of_mule_charset): Add new builtin function
810         `save-charset-properties' when HAVE_LIBCHISE is defined.
811
812 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
813
814         * chartab.c (Fput_char_attribute): Convert char-specs in value of
815         `{<-|->}ancient[^*]*' to characters and put reverse links.
816         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
817         for `{<-|->}ancient[^*]*'.
818
819 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
820
821         * chartab.c (Fput_char_attribute): Convert char-specs in value of
822         `{<-|->}original[^*]*' to characters and put reverse links.
823         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
824         for `{<-|->}original[^*]*'.
825
826 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
827
828         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
829
830 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
831
832         * mule-charset.c (Qsystem_char_id): New variable.
833
834         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
835         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
836
837 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
838
839         * chartab.c (Fput_char_attribute): When processing a reference of
840         a character, put into the end of the reversed reference of each
841         target character.
842
843 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
844
845         * chartab.c (Q_same): Deleted.
846         (Q_same_of): Deleted.
847         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
848         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
849         for `{<-|->}same'.
850         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
851
852 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
853
854         * chartab.c (Q_vulgar): Deleted.
855         (Q_vulgar_of): Deleted.
856         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
857         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
858         for `{<-|->}vulgar'.
859         (syms_of_chartab): Don't define `{<-|->}vulgar'.
860
861 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
862
863         * chartab.c (Fput_char_attribute): Convert char-specs in value of
864         `{<-|->}wrong[^*]*' to characters and put reverse links.
865         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
866         for `{<-|->}wrong[^*]*'.
867
868 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
869
870         * chartab.c (Q_vulgar): New variable.
871         (Q_vulgar_of): New variable.
872         (Fput_char_attribute): Convert char-specs in value of
873         `{->|<-}vulgar' to characters and put reverse links.
874         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
875         for `{->|<-}vulgar'.
876         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
877
878 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
879
880         * text-coding.c (decode_add_er_char): Must to quote prefix string
881         as regexp.
882
883 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
884
885         * mule-charset.c (put_char_ccs_code_point): Store characters of
886         =ucs whose code_points >= 0xF0000.
887
888 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
889
890         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
891         CHISE.
892         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
893         CHISE.
894         (complex_vars_of_mule_charset): Add new coded-charset
895         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
896         builtin characters over 0xEFFFF.
897
898         * chartab.c (syms_of_chartab): Don't define symbol
899         `system-char-id' in every case.
900
901         * char-ucs.h (Qsystem_char_id): New extern variable.
902         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
903
904 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
905
906         * text-coding.c (char_encode_utf8): Try to use entity-references
907         for U-000F0000 ...  U-0010FFFF.
908
909 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
910
911         * text-coding.c (ER_BUF_SIZE): New macro.
912         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
913         `er_buf'.
914         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
915         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
916
917 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
918
919         * chartab.c (find_char_feature_in_family): New function.
920         (Fchar_feature): Use `find_char_feature_in_family' with
921         `->identical', `<-subsumptive' and `<-denotational'.
922
923 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
924
925         * text-coding.c (char_encode_as_entity_reference): Allow prefix
926         within 8 characters; fix infinite loop.
927
928 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
929
930         * chartab.c (Q_same): New variable.
931         (Q_same_of): New variable.
932         (Fput_char_attribute): Convert char-specs in value of
933         `{->|<-}same' to characters and put reverse links.
934         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
935         for `{->|<-}same'.
936         (syms_of_chartab): Add new symbols `{->|<-}same'.
937
938 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
939
940         * chartab.c (Q_component): New variable.
941         (Q_component_of): Likewise.
942         (Fput_char_attribute): Convert char-specs in value of
943         `{->|<-}ideographic-component-forms' to characters and put reverse
944         links.
945         (syms_of_chartab): Add new symbols
946         `{->|<-}ideographic-component-forms'.
947
948 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
949
950         * chartab.c (Q_identical): New variable.
951         (Q_identical_from): New variable.
952         (Fchar_feature): Regard `->identical' as a feature to find
953         ancestors.
954         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
955         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
956         for `{->|<-}identical'.
957         (syms_of_chartab): Add new symbols `{->|<-}identical'.
958
959 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
960
961         * char-ucs.h (encode_char_2): New inline function.
962         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
963
964 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
965
966         * chartab.c (Fput_char_attribute): Convert char-specs to
967         characters in value of `ideographic-structure'.
968         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
969         for `{<-|->}simplified(@...)'.
970         (Fdefine_char): Try to use predefined character's id.
971
972 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
973
974         * fns.c (simplify_char_spec): Try to convert builtin chars to
975         defined chars.
976
977 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
978
979         * chartab.c (Fput_char_attribute): Convert char-specs in value of
980         `<-simplified[^*]*' to characters and put reverse links.
981
982 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
983
984         * chartab.c (Q_subsumptive): Renamed from Q_unified.
985         (Q_subsumptive_from): Renamed from Q_unified_from.
986         (Fchar_feature): Use `Q_subsumptive_from' instead of
987         `Q_unified_from'.
988         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
989         `Q_unified'.
990         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
991         `<-unified' to `<-subsumptive'.
992
993 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
994
995         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
996         inheritance itself; fix typo; stop recursive search if cyclic
997         inheritance is found.
998
999 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1000
1001         * chartab.c (Q_denotational): New variable.
1002         (Q_denotational_from): New variable.
1003         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
1004         (put_char_attribute): New function.
1005         (Fput_char_attribute): Use `put_char_attribute'; regard
1006         `->denotational' and `<-denotational' as same as `->unified' and
1007         `<-unified'.
1008         (syms_of_chartab): Add new symbols `->denotational' and
1009         `<-denotational'.
1010
1011 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1012
1013         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
1014         `Fget_char_attribute'.
1015         (Fchar_variants): Likewise.
1016         (get_char_table): Likewise.
1017         (Fchar_feature): New function.
1018         (put_char_composition): Use `Fchar_feature' instead of
1019         `Fget_char_attribute'.
1020         (Fput_char_attribute): Likewise; don't put the target character
1021         into its `->unified' value.
1022         (syms_of_chartab): Add new builtin function `char-feature'.
1023
1024 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1025
1026         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
1027         `Fget_char_attribute'.
1028         (char_encode_utf8): Likewise.
1029
1030         * chartab.h: Add an EXFUN for `Fchar_feature'.
1031
1032 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1033
1034         * chartab.c (Vnext_defined_char_id): New variable.
1035         (Fput_char_attribute): Accept characters in `->unified'.
1036         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
1037         new characters which are not related with builtin char-id ranges.
1038         (vars_of_chartab): Add new variable `next-defined-char-id'.
1039
1040 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1041
1042         * chartab.c (Q_unified): New variable.
1043         (Q_unified_from): New variable.
1044         (Fput_char_attribute): Add code for `->unified'.
1045         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
1046         XEmacs CHISE.
1047
1048 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1049
1050         * mule-charset.c (decode_ccs_conversion): New function.
1051         (decode_defined_char): Use `decode_ccs_conversion'.
1052         (decode_builtin_char): Likewise.
1053
1054 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1055
1056         * char-ucs.h: Change some charset-ids of private coded-charsets.
1057
1058 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1059
1060         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
1061         (char_encode_as_entity_reference): Likewise.
1062         (decode_coding_big5): Modify for `decode_defined_char' and
1063         `DECODE_CHAR'.
1064         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
1065         avoid compiler warning.
1066         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
1067
1068         * mule-charset.c (decode_defined_char): Add new argument
1069         `without_inheritance'.
1070         (Fdecode_char): Add new optional argument `without_inheritance'.
1071         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1072
1073         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
1074         (simplify_char_spec): Likewise.
1075
1076         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
1077         setting.
1078
1079         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
1080         (map_char_table): Likewise.
1081         (Fdefine_char): Use `Fdecode_char' without inheritance.
1082         (Ffind_char): Modify for `Fdecode_char'.
1083
1084         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
1085
1086         * char-ucs.h (decode_defined_char): Add new argument
1087         `without_inheritance'.
1088         (DECODE_CHAR): Likewise.
1089         (MAKE_CHAR): Modify for `DECODE_CHAR'.
1090
1091 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1092
1093         * chartab.c (Vchise_system_db_directory): New variable.
1094         (vars_of_chartab): Add new variable `chise-system-db-directory'.
1095
1096 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1097
1098         * chartab.c: EXFUN `Fmount_char_attribute_table'.
1099         (print_chartab_range): Don't define when `UTF2000' is defined.
1100         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
1101         `CHISE_DS_open'.
1102
1103 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1104
1105         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
1106         and optional argument `rehash' is specified, call
1107         `open_chise_data_source_maybe' before
1108         `chise_ds_foreach_char_feature_name' is called.
1109
1110 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1111
1112         * chartab.c (char_attribute_list_reset_map_func): New function
1113         when HAVE_LIBCHISE is defined.
1114         (Fchar_attribute_list): Add new optional argument `rehash' when
1115         HAVE_LIBCHISE is defined.
1116         (open_chise_data_source_maybe): Use "chise-db" instead of
1117         "char-db".
1118         (char_attribute_system_db_file): Likewise.
1119         (Fload_char_attribute_table): Use
1120         `chise_feature_foreach_char_with_value' instead of
1121         `chise_char_feature_value_iterate'.
1122
1123 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1124
1125         * chartab.c (Vchise_db_directory): New variable.
1126         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
1127
1128 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1129
1130         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
1131         instead of HAVE_CHISE to specify using with libchise.
1132
1133         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
1134
1135         * chartab.h: Don't use HAVE_CHISE_CLIENT.
1136
1137         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
1138         defined or HAVE_LIBCHISE_LIBCHISE is defined.
1139         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
1140         is defined.
1141         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
1142         HAVE_CHISE to specify using with libchise.
1143         (syms_of_chartab): Don't define symbol `system-char-id' when
1144         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
1145
1146 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1147
1148         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1149         specify CHISE DB support.
1150         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
1151         of `char_attribute_system_db_file' to check feature DB file.
1152
1153         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
1154         HAVE_CHISE_CLIENT to specify CHISE DB support.
1155
1156         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1157         specify CHISE DB support.
1158         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
1159         not defined.
1160         (Freset_char_attribute_table): Use `chise_feature_setup_db'
1161         instead of `char_attribute_system_db_file' to check feature DB
1162         file.
1163
1164 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1165
1166         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
1167         `HAVE_CHISE_CLIENT'.
1168
1169 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1170
1171         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
1172         (Fsave_charset_mapping_table): Don't use
1173         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1174
1175         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
1176         (HAVE_LIBCHISE): New macro.
1177
1178         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
1179
1180         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
1181         (Fsave_char_attribute_table): Don't use
1182         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1183
1184 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1185
1186         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
1187         defined.
1188         (save_uint16_byte_table): Likewise.
1189         (save_byte_table): Likewise.
1190         (char_table_get_db): Use `chise_ds_load_char_feature_value'
1191         instead of `chise_char_load_feature_value'.
1192         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
1193
1194 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1195
1196         * chartab.h (struct Lisp_Char_Table): Delete member
1197         `feature_table' if CHISE is defined.
1198
1199         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
1200         (Fcopy_char_table): Likewise.
1201         (char_table_open_db_maybe): Likewise.
1202         (char_table_close_db_maybe): Likewise.
1203         (char_table_get_db): Likewise.
1204         (Fmount_char_attribute_table): Likewise.
1205         (Fload_char_attribute_table): Likewise.
1206
1207 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1208
1209         * mule-charset.c (load_char_decoding_entry_maybe): Use
1210         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
1211         `chise_ccs_decode'.
1212
1213 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1214
1215         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
1216         instead of `chise_open_data_source'.
1217         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
1218         `chise_ds_close'.
1219
1220 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1221
1222         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
1223         instead of `chise_ds_open_feature_table'.
1224         (char_table_close_db_maybe): Don't use `chise_ft_close'.
1225
1226 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1227
1228         * mule-charset.c (Fsave_charset_mapping_table): Use
1229         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
1230         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
1231         `chise_ccs_sync' instead of `chise_ccst_close'.
1232         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
1233
1234         * chartab.c (open_chise_data_source_maybe): Modify for
1235         `chise_open_data_source'.
1236         (char_table_open_db_maybe): Modify for
1237         `chise_ds_open_feature_table'.
1238
1239 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1240
1241         * mule-charset.c (load_char_decoding_entry_maybe): Use
1242         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
1243         `chise_ccst_close'.
1244
1245 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1246
1247         * mule-charset.c (Fsave_charset_mapping_table): Use
1248         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
1249         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
1250         `chise_dt_put_char' and `chise_dt_close'.
1251         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
1252         `chise_ccs_decode' and `chise_ccst_close' instead of
1253         `chise_ds_open_decoding_table', `chise_dt_get_char' and
1254         `chise_dt_close'.
1255
1256         * chartab.c (char_table_get_db): Use
1257         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
1258         (load_char_attribute_table_map_func): Modify for
1259         `chise_char_feature_value_iterate'.
1260         (Fload_char_attribute_table): Use
1261         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
1262
1263 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1264
1265         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
1266
1267 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1268
1269         * chartab.c (put_char_table): Modify for inherited coded-charsets
1270         in XEmacs CHISE.
1271
1272 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1273
1274         * chartab.c (Fput_char_table_map_function): Fixed.
1275         (word_boundary_p): Don't check charset in XEmacs CHISE.
1276
1277 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1278
1279         * mule-charset.c (Fsave_charset_mapping_table): Use
1280         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1281         instead of `chise_open_decoding_table'; refer
1282         `default_chise_data_source'; use `chise_dt_close' instead of
1283         `chise_close_decoding_table'.
1284         (load_char_decoding_entry_maybe): Likewise.
1285
1286         * chartab.c (default_chise_data_source): New variable when `CHISE'
1287         is defined.
1288         (Fcopy_char_table): `ct->ds' is deleted.
1289         (open_chise_data_source_maybe): New function.
1290         (Fclose_char_data_source): New function.
1291         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1292         use `chise_ds_open_feature_table' instead of
1293         `chise_open_feature_table'.
1294         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1295         `chise_close_feature_table'; `cit->ds' is deleted.
1296         (syms_of_chartab): Add new builtin function
1297         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1298
1299         * chartab.h (default_chise_data_source): New extern variable.
1300         (open_chise_data_source_maybe): New prototype.
1301         (struct Lisp_Char_Table): Delete `ds'.
1302
1303 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1304
1305         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1306         `CHISE' is defined.
1307
1308 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1309
1310         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1311         not defined; add code for non-libchise setting.
1312         (char_table_close_db_maybe): Likewise.
1313         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1314         defined.
1315         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1316         even if `CHISE' is not defined.
1317         (Freset_char_attribute_table): Likewise.
1318         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1319         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1320         `char_table_get_db'.
1321         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1322         `char_table_close_db_maybe' even if `CHISE' is not defined.
1323
1324 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1325
1326         * chartab.c (char_table_open_db_maybe): New function.
1327         (char_table_close_db_maybe): New function.
1328         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1329         (Freset_char_attribute_table): Likewise.
1330         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1331         `char_table_close_db_maybe'.
1332         (Fload_char_attribute_table): Likewise.
1333
1334 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1335
1336         * chartab.c: Don't include <chise.h> because it is included in
1337         chartab.h.
1338         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1339         defined.
1340         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1341         `CHISE' is defined.
1342         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1343         `CHISE' is defined.
1344         (Fclose_char_attribute_table): Close `ct->feature_table' and
1345         `ct->ds' when `CHISE' is defined.
1346         (Freset_char_attribute_table): Likewise.
1347         (load_char_attribute_maybe): Use `cit->ds' and
1348         `cit->feature_table' when `CHISE' is defined.
1349         (Fload_char_attribute_table): Likewise.
1350
1351         * chartab.h: Include <chise.h> when `CHISE' is defined.
1352         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1353         when `CHISE' is defined.
1354
1355 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1356
1357         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1358         is defined.
1359         (char_table_description): Likewise.
1360         (Fmake_char_table): Likewise.
1361         (Fcopy_char_table): Likewise.
1362         (Fmount_char_attribute_table): Likewise.
1363         (Fclose_char_attribute_table): Likewise.
1364         (Freset_char_attribute_table): Likewise.
1365         (load_char_attribute_maybe): Likewise.
1366         (Fload_char_attribute_table): Likewise.
1367
1368         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1369         defined.
1370
1371 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1372
1373         * chartab.c (load_char_attribute_table_map_func): New function
1374         when CHISE is defined.
1375         (Qload_char_attribute_table_map_function): Don't define when CHISE
1376         is defined.
1377         (Fload_char_attribute_table_map_function): Likewise.
1378         (Fload_char_attribute_table): Use libchise when `CHISE' is
1379         defined.
1380         (syms_of_chartab): Don't define
1381         `load-char-attribute-table-map-function' when CHISE is defined.
1382
1383 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1384
1385         * chartab.c: Include <chise.h> when `CHISE' is defined.
1386         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1387
1388 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1389
1390         * mule-charset.c (charset_code_point): Fix problem when searching
1391         in mother CCS fails with `defined_only' mode.
1392
1393 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1394
1395         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1396         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1397         (put_char_composition): Likewise.
1398         (Fput_char_attribute): Likewise.
1399         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1400
1401 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1402
1403         * chartab.c (Q_ucs): Deleted.
1404         (Fput_char_attribute): Don't refer `->ucs'.
1405         (Fdefine_char): Likewise.
1406         (Ffind_char): Likewise.
1407         (syms_of_chartab): Delete `->ucs'.
1408
1409 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1410
1411         * mule-charset.c (Qmap_cns11643_2): Renamed from
1412         `Qchinese_cns11643_2'.
1413         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1414         `chinese-cns11643-2'.
1415         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1416         `=cns11643-2'.
1417
1418 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1419
1420         * mule-charset.c (Qmap_cns11643_1): Renamed from
1421         `Qchinese_cns11643_1'.
1422         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1423         `chinese-cns11643-1'.
1424         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1425         `=cns11643-1'.
1426
1427 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1428
1429         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1430         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1431         `chinese-gb12345'.
1432         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1433         `=gb12345'.
1434
1435 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1436
1437         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1438         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1439         `chinese-gb2312'.
1440         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1441         `=gb2312'.
1442
1443 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1444
1445         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1446         (syms_of_mule_charset): Add new symbol `=big5' instead of
1447         `chinese-big5'.
1448         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1449
1450 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1451
1452         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1453         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1454         `korean-ksc5601'.
1455         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1456         `=ks-x1001'.
1457
1458 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1459
1460         * mule-charset.c (Qmap_jis_x0212): Renamed from
1461         `Qjapanese_jisx0212'.
1462         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1463         `japanese-jisx0212'.
1464         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1465         `=jis-x0212'.
1466
1467 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1468
1469         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1470         `Qjapanese_jisx0208'.
1471         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1472         of `japanese-jisx0208'.
1473         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1474         `=jis-x0208-1983'.
1475
1476 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1477
1478         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1479         `Qjapanese_jisx0208_1978'.
1480         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1481         of `japanese-jisx0208-1978'.
1482         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1483         `=jis-x0208-1978'.
1484
1485 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1486
1487         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1488         only for XEmacs CHISE.
1489
1490 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1491
1492         * char-ucs.h: Compact non-ISO-IR charset-ids.
1493         (LEADING_BYTE_UCS): Changed to -177.
1494         (LEADING_BYTE_CONTROL_1): Changed to -77.
1495         (LEADING_BYTE_UCS_BMP): Changed to -176.
1496         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1497
1498 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1499
1500         * mule-charset.c (Qiso_ir): New variable.
1501         (Fmake_charset): Recognise new property `iso-ir'.
1502         (syms_of_mule_charset): Add new symbol `iso-ir'.
1503
1504 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1505
1506         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1507         n to -n; charset-id of non ISO-IR sets are changed to positive
1508         numbers.
1509
1510 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1511
1512         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1513         for &MCS-XXXXXXXX; values.
1514
1515 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1516
1517         * mule.c (Vxemacs_chise_version): Renamed from
1518         `Vutf_2000_version'.
1519         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1520         `utf-2000-version' as an alias for `xemacs-chise-version'.
1521
1522 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1523
1524         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1525         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1526         defined.
1527
1528         * config.h.in (CHISE): New macro.
1529
1530 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1531
1532         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1533         of `ucs'.
1534         (Qmap_ucs): New variable.
1535         (syms_of_mule_charset): Add new symbol `=ucs'.
1536         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1537
1538         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1539         (simplify_char_spec): Likewise.
1540
1541         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1542
1543         * char-ucs.h (Qmap_ucs): New extern variable.
1544
1545 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1546
1547         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1548         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1549         don't define it when UTF2000 is not defined.
1550         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1551         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1552         when UTF2000 is not defined.
1553         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1554         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1555
1556 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1557
1558         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1559
1560         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1561         (Qucs_gb): Deleted.
1562         (syms_of_mule_charset): Delete `ucs-gb'.
1563         (complex_vars_of_mule_charset): Likewise.
1564
1565 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1566
1567         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1568
1569         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1570         (Qucs_cns): Deleted.
1571         (syms_of_mule_charset): Delete `ucs-cns'.
1572         (complex_vars_of_mule_charset): Likewise.
1573
1574 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1575
1576         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1577
1578         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1579         (Qucs_jis): Deleted.
1580         (syms_of_mule_charset): Delete `ucs-jis'.
1581         (complex_vars_of_mule_charset): Likewise.
1582
1583 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1584
1585         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1586
1587         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1588         (Qucs_ks): Deleted.
1589         (syms_of_mule_charset): Delete `ucs-ks'.
1590         (complex_vars_of_mule_charset): Likewise.
1591
1592 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1593
1594         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1595         (Qideograph_daikanwa_2): Deleted.
1596         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1597         (complex_vars_of_mule_charset): Likewise.
1598
1599         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1600         (LEADING_BYTE_DAIKANWA_1): Deleted.
1601         (LEADING_BYTE_DAIKANWA_2): Deleted.
1602         (MIN_CHAR_DAIKANWA): Deleted.
1603         (MAX_CHAR_DAIKANWA): Deleted.
1604
1605 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1606
1607         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1608         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1609         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1610
1611         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1612         (Vcharset_ideograph_daikanwa): Deleted.
1613         (Qideograph_hanziku_{1..12}): Deleted.
1614         (Qideograph_daikanwa): Deleted.
1615         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1616         Vcharset_ideograph_daikanwa.
1617         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1618         `ideograph-hanziku-{1..12}'.
1619         (complex_vars_of_mule_charset): Likewise.
1620
1621 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1622
1623         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1624
1625         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1626         (Qideograph_gt_pj_{1..11}): Deleted.
1627         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1628         (complex_vars_of_mule_charset): Likewise.
1629
1630 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1631
1632         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1633         (Vcharset_ideograph_gt): Deleted.
1634         (Qucs_big5): Deleted.
1635         (Qideograph_gt): Deleted.
1636         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1637         `ideograph-gt'.
1638         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1639         and `ideograph-gt'.
1640
1641         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1642         (LEADING_BYTE_GT): Deleted.
1643         (MIN_CHAR_GT): Deleted.
1644         (MAX_CHAR_GT): Deleted.
1645
1646 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1647
1648         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1649
1650 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1651
1652         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1653         (save_uint16_byte_table): Likewise.
1654         (save_byte_table): Likewise; convert values by it.
1655         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1656         for `ideographic-structure'.
1657         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1658         as the filter for `ideographic-structure'.
1659
1660 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1661
1662         * chartab.c (put_char_composition): New function.
1663         (Fput_char_attribute): Use `put_char_composition'; use
1664         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1665
1666         * fns.c (simplify_char_spec): New function.
1667         (char_ref_simplify_spec): New function.
1668         (Fchar_refs_simplify_char_specs): New function.
1669         (syms_of_fns): Add new builtin function
1670         `char-refs-simplify-char-specs'.
1671
1672 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1673
1674         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1675         (Qideograph_cbeta): Deleted.
1676         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1677         (complex_vars_of_mule_charset): Likewise.
1678
1679         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1680         (MIN_CHAR_CBETA): Comment out.
1681         (MAX_CHAR_CBETA): Likewise.
1682
1683 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1684
1685         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1686         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1687         CHISE client feature.
1688
1689 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1690
1691         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1692
1693 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1694
1695         * mule-charset.c (charset_lookup_description_1): Use
1696         `NUM_LEADING_BYTES' in UTF-2000.
1697
1698 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1699
1700         * char-ucs.h (GC_CHARSETP): Deleted.
1701
1702 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1703
1704         * char-ucs.h (MAX_CHAR_GT): Updated.
1705
1706 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1707
1708         * text-coding.c: Sync with XEmacs 21.4.10.
1709
1710 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1711
1712         * mule-charset.c (Vcharset_china3_jef): Deleted.
1713         (Qchina3_jef): Deleted.
1714         (syms_of_mule_charset): Don't define `china3-jef'.
1715         (complex_vars_of_mule_charset): Likewise.
1716
1717         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1718         (MIN_CHAR_CHINA3_JEF): Comment out.
1719         (MAX_CHAR_CHINA3_JEF): Comment out.
1720
1721 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1722
1723         * mule-charset.c (Vcharset_ucs_gb): New variable.
1724         (Qucs_gb): New variable.
1725         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1726         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1727
1728         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1729
1730 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1731
1732         * mule-charset.c (charset_code_point): if a coded-charset has a
1733         final-byte, don't inherit the builtin range of the mother CCS.
1734
1735 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1736
1737         * mule-charset.c (charset_code_point): Fix problem about
1738         inheritance.
1739
1740 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1741
1742         * mule-charset.c (decode_builtin_char): Reorganized.
1743
1744 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1745
1746         * text-coding.c (char_encode_as_entity_reference): Modify for
1747         `charset_code_point'.
1748         (char_encode_shift_jis): Likewise.
1749         (char_encode_big5): Likewise.
1750         (char_encode_utf8): Likewise.
1751         (char_encode_iso2022): Likewise.
1752
1753         * mule-charset.c (charset_code_point): Add new argument
1754         `defined_only'.
1755         (Fencode_char): Add new optional argument `defined_only'.
1756
1757         * chartab.c (put_char_table): Modify for `charset_code_point'.
1758
1759         * char-ucs.h (charset_code_point): Add new argument
1760         `defined_only'.
1761         (encode_char_1): Modify for `charset_code_point'.
1762
1763 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1764
1765         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1766         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1767
1768 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1769
1770         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1771         (Qjis_x0208): Likewise.
1772         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1773         XCHARSET_FINAL(charset).
1774         (charset_code_point): Modify condition for final-byte based
1775         builtin-chars.
1776         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1777         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1778         in UTF-2000; specify `=jis-x0208' as the mother of
1779         `japanese-jisx0208-1978', `japanese-jisx0208' and
1780         `japanese-jisx0208-1990' in UTF-2000.
1781
1782 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1783
1784         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1785
1786 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1787
1788         * text-coding.c (decode_coding_utf16): Support UTF-16.
1789         (char_encode_utf16): Fixed.
1790
1791 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1792
1793         * text-coding.c (Qutf16): New variable in MULE.
1794         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1795         (Fcoding_system_type): Add `utf-16' in MULE.
1796         (struct detection_state): Add a structure for utf16 in MULE.
1797         (detect_coding_type): Setup st->utf16.mask in MULE.
1798         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1799         MULE.
1800         (reset_encoding_stream): Use `char_encode_utf16' and
1801         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1802         (detect_coding_utf16): New function [incomplete].
1803         (decode_coding_utf16): New function [support only UCS-2].
1804         (char_encode_utf16): New function.
1805         (char_finish_utf16): New function.
1806         (syms_of_file_coding): Add new symbol `utf-16'; setup
1807         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1808
1809         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1810         UTF-2000.
1811         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1812         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1813
1814 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1815
1816         * chartab.c (put_char_table): When a charset is specified as a
1817         range in UTF-2000, don't support builtin characters.
1818
1819 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1820
1821         * mule-charset.c (decode_defined_char): Don't refer external
1822         database if Qunbound or Qnil are found.
1823         (Fsave_charset_mapping_table): Don't define it if
1824         HAVE_CHISE_CLIENT is not defined.
1825         (Freset_charset_mapping_table): New function.
1826         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1827         found in external database.
1828         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1829         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1830         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1831
1832 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1833
1834         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1835         not.
1836
1837 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1838
1839         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1840         Q_lowercase, Q_uppercase in UTF-2000.
1841
1842         * chartab.c (get_char_table): Add special code for the standard
1843         case table to use character attribute `->downcase' and
1844         `->uppercase' for case operations in UTF-2000.
1845
1846         * casetab.c (Qflippedcase): New variable in UTF-2000.
1847         (Q_lowercase): Likewise.
1848         (Q_uppercase): Likewise.
1849         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1850         and `->uppercase' in UTF-2000.
1851         (complex_vars_of_casetab): Assign attribute name `downcase' to
1852         downcase and CANON table of Vstandard_case_table in UTF-2000;
1853         assign attribute name `flippedcase' to upcase and EQV table of
1854         Vstandard_case_table in UTF-2000.
1855
1856 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1857
1858         * text-coding.c (decode_add_er_char): Support isolated-chars.
1859         (char_encode_as_entity_reference): Likewise.
1860
1861 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1862
1863         * emacs.c (Vutf_2000_lisp_directory): New variable.
1864         (Vconfigure_utf_2000_lisp_directory): Likewise.
1865         (complex_vars_of_emacs): Add new variable
1866         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1867
1868 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1869
1870         * char-ucs.h (DECODE_CHAR): Delete special code for
1871         `chinese-big5-1' and `chinese-big5-2'.
1872
1873         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1874         (Qbig5_2): Likewise.
1875         (decode_defined_char): Support CONVERSION_BIG5_1 and
1876         CONVERSION_BIG5_2.
1877         (decode_builtin_char): Likewise.
1878         (charset_code_point): Likewise.
1879         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1880         'conversion in UTF-2000.
1881         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1882         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1883         `chinese-big5-2' as children of `chinese-big5'.
1884
1885         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1886         (CONVERSION_BIG5_2): New macro.
1887
1888 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1889
1890         * text-coding.c (char_encode_big5): Support entity-reference.
1891
1892 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1893
1894         * text-coding.c (char_encode_as_entity_reference): New function.
1895         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1896
1897 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1898
1899         * text-coding.c (decode_coding_big5): Support entity-reference
1900         decoding feature.
1901
1902 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1903
1904         * text-coding.c (allocate_coding_system): Initialize initial
1905         charsets for CODESYS_UTF8.
1906         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1907         charset-g2 for CODESYS_UTF8.
1908         (decode_coding_utf8): Use charset-g0.
1909         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1910         to force variants to map to UCS.
1911
1912 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1913
1914         * text-coding.c (Qutf_8_mcs): New variable.
1915         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1916         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1917         instead of `utf-8' in UTF-2000.
1918
1919 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1920
1921         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1922         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1923         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1924         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1925         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1926         CONVERSION_96x96x96x96 are introduced.
1927         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1928         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1929         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1930
1931         * char-ucs.h (CONVERSION_94): New macro.
1932         (CONVERSION_96): New macro.
1933         (CONVERSION_94x94): New macro.
1934         (CONVERSION_96x96): New macro.
1935         (CONVERSION_94x94x94): New macro.
1936         (CONVERSION_96x96x96): New macro.
1937         (CONVERSION_94x94x94x60): New macro.
1938         (CONVERSION_94x94x94x94): New macro.
1939         (CONVERSION_96x96x96x96): New macro.
1940
1941 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1942
1943         * chartab.c (Vcharacter_variant_table): Deleted.
1944         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1945         of `Vcharacter_variant_table'.
1946         (Fput_char_attribute): Likewise.
1947         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1948         (complex_vars_of_chartab): Likewise.
1949
1950 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1951
1952         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1953
1954         * fns.c (Qideographic_structure): New variable.
1955         (Qkeyword_char): New variable.
1956         (ids_format_unit): New function.
1957         (Fideographic_structure_to_ids): New function.
1958         (syms_of_fns): Add new symbols `ideographic-structure' and
1959         `:char'; add new builtin function `ideographic-structure-to-ids'.
1960
1961         * data.c (Fchar_ref_p): New function.
1962         (syms_of_data): Add new builtin function `char-ref-p'.
1963
1964         * chartab.h: Add an EXFUN for `Ffind_char'.
1965
1966 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1967
1968         * text-coding.c (Vcharacter_composition_table): Deleted.
1969         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1970         in every UTF-2000.
1971
1972         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1973         UTF-2000.
1974         (Vcharacter_composition_table): Deleted.
1975         (Fget_composite_char): Use the implementation for external-DB
1976         support in every UTF-2000.
1977         (Fput_char_attribute): Likewise.
1978         (char_attribute_system_db_file): Don't define if external-DB
1979         feature is not available.
1980         (Fsave_char_attribute_table): Likewise.
1981         (Fmount_char_attribute_table): Likewise.
1982         (Fclose_char_attribute_table): Likewise.
1983         (Freset_char_attribute_table): Likewise.
1984         (Fload_char_attribute_table): Likewise.
1985         (syms_of_chartab): Don't define `save-char-attribute-table',
1986         `mount-char-attribute-table', `reset-char-attribute-table',
1987         `close-char-attribute-table' and `load-char-attribute-table' if
1988         external-DB feature is not available.
1989         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1990
1991 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1992
1993         * text-coding.c (Qcomposition): Add extern if external-DB feature
1994         is supported.
1995         (Vcharacter_composition_table): Don't add extern if external-DB
1996         feature is supported.
1997         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1998         character composition rule if external-DB feature is supported.
1999
2000         * chartab.c (Vcharacter_composition_table): Don't define if
2001         external-DB feature is supported.
2002         (Qcomposition): New variable.
2003         (Fget_composite_char): New implementation for external-DB support.
2004         (Fput_char_attribute): Use `composition' property of each
2005         character instead of `Vcharacter_composition_table' to store
2006         character-composition rules if external-DB feature is supported.
2007         (syms_of_chartab): Add new symbol `composition'.
2008         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
2009         external-DB feature is supported.
2010
2011 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2012
2013         * chartab.c (Vchar_db_stingy_mode): New variable.
2014         (load_char_attribute_maybe): Close database if
2015         Vchar_db_stingy_mode is not NIL.
2016         (Fload_char_attribute_table_map_function): Use
2017         `get_char_id_table_0' instead of `get_char_id_table'.
2018         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
2019
2020         * chartab.h (get_char_id_table_0): New inline function.
2021         (get_char_id_table): Use `get_char_id_table_0'.
2022
2023 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2024
2025         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
2026         and `COMPOSE_ADD_CHAR'.
2027         (decode_coding_iso2022): Use `decode_flush_er_chars'.
2028
2029 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2030
2031         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
2032         instead of `DECODE_ADD_UCS_CHAR'.
2033         (COMPOSE_ADD_CHAR): Likewise.
2034
2035 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2036
2037         * text-coding.c (decode_flush_er_chars): New inline function.
2038         (decode_add_er_char): New function.
2039         (decode_coding_utf8): Use `decode_flush_er_chars' and
2040         `decode_add_er_char'.
2041
2042 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2043
2044         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
2045         done before `decode_output_utf8_partial_char'.
2046
2047         * mule-charset.c (complex_vars_of_mule_charset): Specify
2048         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
2049         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
2050
2051 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2052
2053         * mule-charset.c (decode_defined_char): New function; search
2054         mother.
2055         (decode_builtin_char): Don't search mother if
2056         XCHARSET_MAX_CODE(charset) == 0.
2057         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
2058         == 0 even if code >= XCHARSET_MAX_CODE(charset).
2059         (Fdecode_char): Use `decode_defined_char' instead of
2060         `DECODE_DEFINED_CHAR'.
2061         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
2062         mother of `Vcharset_ucs_jis'.
2063
2064         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
2065         instead of `DECODE_DEFINED_CHAR'.
2066
2067         * char-ucs.h (decode_defined_char): Renamed from
2068         `DECODE_DEFINED_CHAR'; changed to normal function.
2069         (DECODE_CHAR): Use `decode_defined_char' instead of
2070         `DECODE_DEFINED_CHAR'.
2071
2072         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
2073
2074 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2075
2076         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
2077
2078         * text-coding.c (Vcoded_charset_entity_reference_alist): New
2079         variable.
2080         (Quse_entity_reference): New variable.
2081         (Qd): New variable.
2082         (Qx): New variable.
2083         (QX): New variable.
2084         (coding_system_description): Add description for
2085         `ccs_priority_list'.
2086         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
2087         (allocate_coding_system): Initialize `ccs_priority_list' in
2088         UTF-2000.
2089         (Fmake_coding_system): Add description about
2090         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
2091         (codesys).
2092         (Fcoding_system_property): Accept `disable-composition' and
2093         `use-entity-reference' in UTF-2000.
2094         (struct decoding_stream): Add new member `er_counter' and `er_buf'
2095         in UTF-2000.
2096         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
2097         (decode_coding_utf8): Decode entity-reference if
2098         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
2099         (char_encode_utf8): Encode non-Unicode characters as
2100         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
2101         (str->codesys).
2102         (syms_of_file_coding): Add new symbols `use-entity-reference',
2103         `d', `x', `X'.
2104         (vars_of_file_coding): Add new variable
2105         `coded-charset-entity-reference-alist'.
2106         (complex_vars_of_file_coding): Declare `disable-composition' and
2107         `use-entity-reference' to be coding-system-properties in UTF-2000.
2108
2109         * file-coding.h (struct Lisp_Coding_System): Add new member
2110         `use_entity_reference' and `ccs_priority_list'.
2111         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2112         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
2113         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2114
2115 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2116
2117         * chartab.c (save_uint8_byte_table): Don't clear the table.
2118         (save_uint16_byte_table): Likewise.
2119         (save_byte_table): Likewise.
2120         (Fmount_char_attribute_table): New function.
2121         (syms_of_chartab): Add new builtin function
2122         `mount-char-attribute-table'.
2123
2124 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2125
2126         * mule-charset.c (Fsave_charset_mapping_table): Open database as
2127         "w+" mode.
2128         (load_char_decoding_entry_maybe): Open database as read-only mode.
2129
2130         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
2131         open database as "w+" mode.
2132         (load_char_attribute_maybe): Open database as read-only mode.
2133         (Fload_char_attribute_table): Likewise.
2134
2135 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2136
2137         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
2138         (char_table_description): Delete member `db_file'.
2139         (Fmake_char_table): Don't refer `ct->db_file'.
2140         (Fcopy_char_table): Likewise.
2141         (Fsave_char_attribute_table): Likewise.
2142         (Fclose_char_attribute_table): Likewise.
2143         (Freset_char_attribute_table): Likewise.
2144         (load_char_attribute_maybe): Likewise.
2145         (Fload_char_attribute_table): Likewise.
2146
2147         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
2148
2149 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2150
2151         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
2152         (Fsave_char_attribute_table): Don't check `ct->db_file' if
2153         `ct->db' is living.
2154         (load_char_attribute_maybe): Likewise.
2155         (Fload_char_attribute_table): Likewise.
2156
2157 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2158
2159         * chartab.c (Fclose_char_attribute_table): Set Qnil on
2160         `ct->db_file' unconditionally.
2161
2162 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2163
2164         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
2165         UTF-2000.
2166         (char_table_description): Add description for `db_file' and `db'
2167         in UTF-2000.
2168         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
2169         UTF-2000.
2170         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
2171         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
2172         (Fclose_char_attribute_table): New function.
2173         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
2174         (load_char_attribute_maybe): Change interface; use `cit->db_file'
2175         and `cit->db'.
2176         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
2177         (syms_of_chartab): Add new builtin function
2178         `Fclose_char_attribute_table'.
2179
2180 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2181
2182         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
2183         `db' in UTF-2000.
2184         (load_char_attribute_maybe): Change interface.
2185         (get_char_id_table): Modify for `load_char_attribute_maybe'.
2186
2187 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2188
2189         * database.h: Add an EXFUN for `Fdatabase_live_p'.
2190
2191 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2192
2193         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
2194         instead of `DECODE_CHAR' for mother; don't use special code for
2195         chinese-big5 to use code space of chinese-big5-1 and
2196         chinese-big5-2.
2197         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
2198         `MAX_CHAR_BIG5_CDP' for chinese-big5.
2199
2200         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
2201         (MAX_CHAR_BIG5_CDP): Revival.
2202
2203 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2204
2205         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
2206         the XLFD registry-encoding name of `chinese-big5'.
2207
2208 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2209
2210         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
2211         (Qchinese_big5_cdp): Deleted.
2212         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
2213         (complex_vars_of_mule_charset): Delete coded-charset
2214         `chinese-big5-cdp'.
2215
2216         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
2217         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
2218         `CHARSET_ID_OFFSET - n' for private CCS.
2219         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
2220         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
2221         of `MIN_LEADING_BYTE'.
2222         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
2223         `(CHARSET_ID_OFFSET - 97)'.
2224         (MIN_CHAR_BIG5_CDP): Deleted.
2225         (MAX_CHAR_BIG5_CDP): Deleted.
2226
2227 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2228
2229         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
2230
2231 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2232
2233         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
2234         (vars_of_mule): Add new variable `utf-2000-version' [moved from
2235         chartab.c].
2236
2237         * chartab.c (Vutf_2000_version): Moved to mule.c.
2238         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
2239
2240 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2241
2242         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
2243         when HAVE_CHISE_CLIENT is not defined.
2244
2245         * mule.c (vars_of_mule): Provide feature `chise' when
2246         HAVE_CHISE_CLIENT is defined.
2247
2248 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2249
2250         * config.h.in (UTF2000): Add comment.
2251         (HAVE_CHISE_CLIENT): New macro.
2252
2253 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2254
2255         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
2256         CONSP.
2257         (Fput_char_attribute): Likewise.
2258         (char_attribute_system_db_file): Encode file-name of attribute.
2259         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
2260         the initial value.
2261
2262 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2263
2264         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
2265         (Fsave_charset_mapping_table): Use
2266         `char_attribute_system_db_file'.
2267         (load_char_decoding_entry_maybe): Likewise.
2268
2269         * chartab.h (Qsystem_char_id): New external variable.
2270         (char_attribute_system_db_file): New prototype.
2271
2272         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2273         (char_attribute_system_db_file): New function.
2274         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2275         (Freset_char_attribute_table): Likewise.
2276         (load_char_attribute_maybe): Likewise.
2277         (Fload_char_attribute_table): Likewise.
2278         (syms_of_chartab): Add new symbol `system-char-id'.
2279
2280 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2281
2282         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2283         `XCHARSET_GRAPHIC(ccs)'.
2284
2285 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2286
2287         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2288
2289 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2290
2291         * chartab.c (Q_ucs_variants): New variable.
2292         (syms_of_chartab): Add new symbol `->ucs-variants'.
2293         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2294         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2295         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2296
2297         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2298
2299         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2300         `HAVE_DATABASE' is defined.
2301         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2302         `HAVE_DATABASE' is defined.
2303
2304 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2305
2306         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2307         attribute-table.
2308         (Freset_char_attribute_table): New function.
2309         (syms_of_chartab): Add new builtin function
2310         `reset-char-attribute-table'.
2311
2312 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2313
2314         * chartab.c (load_char_attribute_maybe): Don't make directories.
2315
2316 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2317
2318         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2319
2320         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2321         for decoding-table.
2322
2323 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2324
2325         * mule-charset.c (Fsave_charset_mapping_table): Use
2326         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2327
2328         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2329         instead of `XCHARSET_CHARS'.
2330
2331 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2332
2333         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2334         (XCHARSET_BYTE_SIZE): Likewise.
2335
2336         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2337         mule-charset.c].
2338         (XCHARSET_BYTE_SIZE): Likewise.
2339
2340 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2341
2342         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2343         data-directory to store database.
2344         (Fsave_char_attribute_table): Likewise.
2345         (load_char_attribute_maybe): Likewise.
2346         (Fload_char_attribute_table): Likewise.
2347
2348 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2349
2350         * mule-charset.c (Fsave_charset_mapping_table): New function.
2351         (syms_of_mule_charset): Add new builtin function
2352         `save-charset-mapping-table'.
2353
2354 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2355
2356         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2357         (get_ccs_octet_table): New inline function.
2358         (put_ccs_octet_table): Likewise.
2359         (decoding_table_put_char): Use `get_ccs_octet_table' and
2360         `put_ccs_octet_table'.
2361         (decoding_table_remove_char): Use `decoding_table_put_char'.
2362         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2363
2364         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2365         into encoding_table.
2366         (make_charset): Use Qunbound instead Qnil as initial value of
2367         decoding_table.
2368
2369 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2370
2371         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2372         element is Qunloaded.
2373         (map_over_uint16_byte_table): Likewise.
2374         (map_over_byte_table): Likewise.
2375         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2376         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2377         database support, load encoding-table of the specified
2378         coded-charset if it is not loaded yet.
2379         (save_uint8_byte_table): New function of UTF-2000 with external
2380         database support.
2381         (save_uint16_byte_table): Likewise.
2382         (save_byte_table): Likewise.
2383         (Fput_char_attribute): Don't store value into external database
2384         even if the external database feature is supported in UTF-2000;
2385         set `attribute' as name of char-table if the external database
2386         feature is supported.
2387         (Fsave_char_attribute_table): New function in UTF-2000.
2388         (syms_of_chartab): Add new builtin function
2389         `save-char-attribute-table' in UTF-2000.
2390
2391 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2392
2393         * chartab.c (char_attribute_table_to_put): New variable in
2394         UTF-2000.
2395         (Qput_char_table_map_function): Likewise.
2396         (value_to_put): Likewise.
2397         (Fput_char_table_map_function): New function in UTF-2000.
2398         (put_char_table): Use `Fmap_char_attribute' for
2399         CHARTAB_RANGE_CHARSET in UTF-2000.
2400         (Fput_char_attribute): Store symbol instead of string in
2401         `XCHAR_TABLE_NAME (table)'.
2402         (load_char_attribute_maybe): Likewise.
2403         (syms_of_chartab): Add new symbol/function
2404         `put-char-table-map-function'.
2405
2406 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2407
2408         * database.h: Add new EXFUN for `Fmap_database'.
2409
2410         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2411         (syms_of_database): Likewise.
2412
2413         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2414         UTF-2000.
2415         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2416         (XCHAR_TABLE_UNLOADED): Likewise.
2417
2418         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2419         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2420         HAVE_DATABASE is defined.
2421         (char_attribute_table_to_load): New variable of UTF-2000 with
2422         external database support.
2423         (Qload_char_attribute_table_map_function): Likewise.
2424         (Fload_char_attribute_table_map_function): New function of
2425         UTF-2000 with external database support.
2426         (Fload_char_attribute_table): New function of UTF-2000.
2427         (Fmap_char_attribute): Call Fload_char_attribute_table if
2428         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2429         (syms_of_chartab): Add new symbol and function
2430         `load-char-attribute-table-map-function' in UTF-2000 with external
2431         database support; add new function `load-char-attribute-table' in
2432         UTF-2000.
2433
2434 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2435
2436         * chartab.h (load_char_attribute_maybe): New prototype for
2437         UTF-2000 with DATABASE support.
2438         (get_char_id_table): Use `load_char_attribute_maybe' if
2439         HAVE_DATABASE is defined.
2440
2441         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2442         with DATABASE support.
2443
2444 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2445
2446         * chartab.c (Fput_char_attribute): Use S-expression as key of
2447         external database.
2448
2449         * chartab.h (get_char_id_table): Use S-expression as key of
2450         external database.
2451
2452 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2453
2454         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2455         if an element is not loaded, load the corresponding attributes
2456         from an external database.
2457         (map_over_uint16_byte_table): Likewise.
2458         (map_over_byte_table): Likewise.
2459         (map_char_table): Modify for `map_over_uint8_byte_table',
2460         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2461         element is not loaded, load the corresponding attributes from an
2462         external database.
2463         (Fput_char_attribute): Change initial values to Qunloaded.
2464
2465         * chartab.h (get_char_id_table): If a character attribute is not
2466         loaded and the attribute value is not found in an external
2467         database, store Qunbound as the attribute value.
2468
2469 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2470
2471         * chartab.c (BT_UINT8_unloaded): New macro.
2472         (UINT8_VALUE_P): Accept Qunloaded.
2473         (UINT8_ENCODE): Likewise.
2474         (UINT8_DECODE): Likewise.
2475         (BT_UINT16_unloaded): New macro.
2476         (UINT16_VALUE_P): Accept Qunloaded.
2477         (UINT16_ENCODE): Likewise.
2478         (UINT16_DECODE): Likewise.
2479         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2480         BT_UINT16_unloaded.
2481         (mark_char_table): Mark `ct->name' in UTF-2000.
2482         (char_table_description): Add `name' in UTF-2000.
2483         (Fmake_char_table): Initialize `ct->name'.
2484         (Fcopy_char_table): Copy `ct->name'.
2485         (Fput_char_attribute): Store value into an external database if
2486         HAVE_DATABASE is defined.
2487
2488         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2489         UTF-2000.
2490         (CHAR_TABLE_NAME): New macro in UTF-2000.
2491         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2492         (get_char_id_table): Try to read an external database if Qunloaded
2493         is stored in a table.
2494
2495         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2496         Qunloaded.
2497
2498 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2499
2500         * database.h: Add EXFUN definitions for Fopen_database,
2501         Fput_database, Fget_database and Fclose_database.
2502
2503         * data.c (Qunloaded): New variable in UTF-2000.
2504
2505         * lisp.h (Qunloaded): New variable in UTF-2000.
2506
2507 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2508
2509         * mule-charset.c (put_char_ccs_code_point): Modify for
2510         `decoding_table_remove_char' and `decoding_table_put_char'.
2511         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2512
2513         * char-ucs.h (decoding_table_remove_char): Change arguments to
2514         hide decoding_table vector.
2515         (decoding_table_put_char): Likewise.
2516
2517 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2518
2519         * mule-charset.c (decoding_table_remove_char): Moved to
2520         char-ucs.h.
2521         (decoding_table_put_char): Likewise.
2522
2523         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2524         from mule-charset.c].
2525         (decoding_table_remove_char): New inline function [moved from
2526         mule-charset.c].
2527         (decoding_table_put_char): Likewise.
2528
2529 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2530
2531         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2532         extension.
2533
2534 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2535
2536         * mule-charset.c (decode_builtin_char): Support mother charsets.
2537
2538 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2539
2540         * mule-charset.c (Q94x94x60): New variable.
2541         (charset_code_point): Support conversion `94x94x60'.
2542         (Fmake_charset): Likewise.
2543         (syms_of_mule_charset): Add new symbol `94x94x60'.
2544
2545         * char-ucs.h (CONVERSION_94x94x60): New macro.
2546
2547 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2548
2549         * mule-charset.c (charset_code_point): Unify code about
2550         `code-offset'.
2551
2552 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2553
2554         * mule-charset.c (charset_code_point): Merge code about builtin
2555         characters into code about mother charsets; don't use
2556         `range_charset_code_point'.
2557         (range_charset_code_point): Deleted.
2558
2559 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2560
2561         * mule-charset.c (Qcode_offset): New variable.
2562         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2563         `max-code'; accept new property `code-offset'.
2564         (syms_of_mule_charset): Add new symbol `code-offset'.
2565
2566 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2567
2568         * mule-charset.c (range_charset_code_point): Fixed.
2569
2570 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2571
2572         * mule-charset.c (decode_builtin_char): Change semantics of
2573         code-offset of coded-charset.
2574         (charset_code_point): Likewise.
2575         (range_charset_code_point): Likewise.
2576         (complex_vars_of_mule_charset): Modify for the change.
2577
2578 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2579
2580         * mule-charset.c (Fencode_char): Reverse arguments.
2581
2582         * mule-charset.c (charset_code_point): Fixed.
2583
2584 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2585
2586         * mule-charset.c (Vcharset_mojikyo): Deleted.
2587         (Vcharset_mojikyo_2022_1): Deleted.
2588         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2589         (Qmin_code): New variable in UTF-2000.
2590         (Qmax_code): Likewise.
2591         (Qmother): Likewise.
2592         (Qconversion): Likewise.
2593         (Q94x60): Likewise.
2594         (Qmojikyo): Deleted.
2595         (Qmojikyo_2022_1): Deleted.
2596         (Qmojikyo_pj_{1..22}): Deleted.
2597         (mark_charset): Mark `cs->mother'.
2598         (charset_description): Add description for `mother'.
2599         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2600         new arguments `mother' and `conversion'; use
2601         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2602         (charset_code_point): Moved from char-ucs.h; support `mother'
2603         charset feature.
2604         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2605         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2606         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2607         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2608         allow 2 as the value of `graphic' in UTF-2000; add new properties
2609         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2610         require `final' in UTF-2000; modify for `make_charset'.
2611         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2612         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2613         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2614         (Fencode_char): New function.
2615         (syms_of_mule_charset): Add new builtin function `encode-char' in
2616         UTF-2000; add new symbols `min-code', `max-code', `mother',
2617         `conversion' and `94x60'; delete symbols `mojikyo',
2618         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2619         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2620         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2621         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2622
2623         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2624         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2625
2626         * char-ucs.h (Vcharset_mojikyo): Deleted.
2627         (Vcharset_mojikyo_2022_1): Deleted.
2628         (LEADING_BYTE_MOJIKYO): Deleted.
2629         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2630         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2631         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2632         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2633         add new member `mother'; add new member `conversion'.
2634         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2635         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2636         (CHARSET_MOTHER): New macro.
2637         (CHARSET_CONVERSION): New macro.
2638         (CONVERSION_IDENTICAL): New macro.
2639         (CONVERSION_94x60): New macro.
2640         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2641         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2642         (XCHARSET_MOTHER): New macro.
2643         (XCHARSET_CONVERSION): New macro.
2644         (MIN_CHAR_MOJIKYO): Deleted.
2645         (MAX_CHAR_MOJIKYO): Deleted.
2646         (DECODE_MOJIKYO_2022): Deleted.
2647         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2648         (charset_code_point): Changed to non-inline function.
2649         (encode_char_1): Use `charset_code_point'.
2650         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2651
2652 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2653
2654         * lread.c (read_compiled_function): Fix prototype.
2655         (read_vector): Likewise.
2656
2657 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2658
2659         * lrecord.h (struct lrecord_header): Delete `older'.
2660         (set_lheader_implementation): Delete code for `older'.
2661         (set_lheader_older_implementation): Deleted.
2662         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2663         (OLDER_RECORD_P): Deleted.
2664         (OLDER_RECORD_HEADER_P): Deleted.
2665         (alloc_older_lcrecord): Deleted.
2666         (alloc_older_lcrecord_type): Deleted.
2667
2668         * alloc.c (all_older_lcrecords): Deleted.
2669         (alloc_older_lcrecord): Deleted.
2670         (disksave_object_finalization_1): Delete code for older objects.
2671         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2672         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2673
2674 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2675
2676         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2677         instead of `make_older_vector'.
2678         (put_char_ccs_code_point): Likewise.
2679         (mark_charset): Mark `cs->decoding_table'.
2680         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2681
2682         * lisp.h (make_older_vector): Deleted.
2683         (make_vector_newer): Deleted.
2684
2685         * config.h.in (HAVE_GGC): Deleted.
2686
2687         * alloc.c (make_older_vector): Deleted.
2688         (make_vector_newer_1): Deleted.
2689         (make_vector_newer): Deleted.
2690
2691 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2692
2693         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2694         (Qideograph_daikanwa_2): New variable.
2695         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2696         (complex_vars_of_mule_charset): Add new coded-charset
2697         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2698         `LEADING_BYTE_DAIKANWA'.
2699
2700         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2701         (LEADING_BYTE_DAIKANWA_1): New macro.
2702         (LEADING_BYTE_DAIKANWA_2): New macro.
2703         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2704
2705 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2706
2707         * mule-charset.c (complex_vars_of_mule_charset): Change
2708         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2709         the second revised version.
2710
2711 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2712
2713         * mule-charset.c (Vcharset_ucs_smp): New variable.
2714         (Vcharset_ucs_sip): New variable.
2715         (Qucs_smp): New variable.
2716         (Qucs_sip): New variable.
2717         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2718         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2719         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2720         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2721         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2722         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2723
2724         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2725         (LEADING_BYTE_UCS_SIP): New macro.
2726         (MIN_CHAR_SMP): New macro.
2727         (MAX_CHAR_SMP): New macro.
2728         (MIN_CHAR_SIP): New macro.
2729         (MAX_CHAR_SIP): New macro.
2730
2731 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2732
2733         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2734         utf-2000.
2735
2736 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2737
2738         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2739         value; don't store value into `encoding_table' of `Lisp_Charset'.
2740         (mark_charset): `encoding_table' was deleted.
2741         (charset_description): Likewise.
2742         (make_charset): Likewise.
2743         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2744         `put_char_ccs_code_point'.
2745
2746         * chartab.h (Fput_char_attribute): New EXFUN.
2747
2748         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2749         is unified with normal symbol space.
2750         (Fget_char_attribute): Likewise.
2751         (Fput_char_attribute): Likewise; behavior of
2752         `put_char_ccs_code_point' is changed.
2753
2754         * char-ucs.h: Include "elhash.h".
2755         (Vchar_attribute_hash_table): New external variable.
2756         (struct Lisp_Charset): Delete `encoding_table'.
2757         (CHARSET_ENCODING_TABLE): New implementation; refer
2758         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2759         `Lisp_Charset'.
2760
2761 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2762
2763         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2764         (cs) == 0.
2765
2766 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2767
2768         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2769         `chinese-big5'.
2770
2771 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2772
2773         * chartab.c (uint8_byte_table_description): New constant.
2774         (uint8-byte-table): Use `uint8_byte_table_description'.
2775         (uint16_byte_table_description): New constant.
2776         (uint16-byte-table): Use `uint16_byte_table_description'.
2777
2778 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2779
2780         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2781         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2782
2783 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2784
2785         * mule-charset.c (Vcharset_ucs_ks): New variable.
2786         (Qucs_ks): New variable.
2787         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2788         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2789
2790         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2791
2792 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2793
2794         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2795         (Fdecode_char): Likewise.
2796
2797         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2798         chartab.h.
2799         (Fdefine_char): Modify for Fdecode_char.
2800         (Ffind_char): Likewise.
2801
2802         * mule-charset.c (Fdecode_char): Add new optional argument
2803         `defined-only'.
2804         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2805
2806 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2807
2808         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2809         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2810         (allocate_coding_system): Initialize initial-charsets of
2811         CODESYS_BIG5 in XEmacs UTF-2000.
2812         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2813         CODESYS_BIG5 in XEmacs UTF-2000.
2814         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2815         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2816
2817         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2818         variables.
2819         (Qideograph_hanziku_{1 .. 12}): Likewise.
2820         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2821         .. 12}'.
2822         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2823         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2824         `ideograph-hanziku-{1 .. 12}'.
2825
2826         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2827         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2828         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2829         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2830         (DECODE_DEFINED_CHAR): New inline function.
2831         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2832
2833 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2834
2835         * mule-charset.c (Vcharset_china3_jef): Renamed from
2836         `Vcharset_japanese_jef_china3'.
2837         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2838         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2839         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2840         (syms_of_mule_charset): Rename `china3-jef' from
2841         `japanese-jef-china3'.
2842         (complex_vars_of_mule_charset): Likewise; rename
2843         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2844
2845         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2846         `LEADING_BYTE_JEF_CHINA3'.
2847         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2848         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2849
2850 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2851
2852         * mule-charset.c (encode_builtin_char_1): Comment out special code
2853         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2854
2855         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2856         (MAX_CHAR_MOJIKYO_0): Comment out.
2857         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2858         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2859         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2860         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2861
2862 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2863
2864         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2865         (Qideograph_cbeta): New variable.
2866         (encode_builtin_char_1): Comment out special code for
2867         coded-charset `mojikyo' and `japanese-jef-china3'.
2868         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2869         (complex_vars_of_mule_charset): Add new coded-charset
2870         `ideograph-cbeta'.
2871
2872         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2873         (MIN_CHAR_CBETA): New macro.
2874         (MAX_CHAR_CBETA): New macro.
2875
2876 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2877
2878         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2879         (LEADING_BYTE_JEF_CHINA3): New macro.
2880         (MIN_CHAR_JEF_CHINA3): New macro.
2881         (MAX_CHAR_JEF_CHINA3): Likewise.
2882         (DECODE_CHAR): Fixed.
2883
2884 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2885
2886         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2887         (Qjapanese_jef_china3): New variable.
2888         (encode_builtin_char_1): Support `japanese-jef-china3'.
2889         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2890         (complex_vars_of_mule_charset): Add new coded-charset
2891         `japanese-jef-china3'.
2892
2893 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2894
2895         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2896         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2897         94^4, 96^3, 96^4, 128^n and 256^n set.
2898         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2899         (map_char_table): Likewise.
2900
2901 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2902
2903         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2904         UTF-2000.
2905
2906 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2907
2908         * chartab.h (get_char_id_table): New inline function.
2909
2910         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2911         function.
2912
2913 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2914
2915         * chartab.h (decode_char_table_range): New prototype in XEmacs
2916         UTF-2000.
2917         (put_char_id_table): New inline function in XEmacs UTF-2000.
2918
2919         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2920         function.
2921         (decode_char_table_range): Delete static declaration in XEmacs
2922         UTF-2000.
2923
2924 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2925
2926         * chartab.c (put_char_id_table): Use `put_char_table'.
2927
2928 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2929
2930         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2931         (map_over_uint16_byte_table): Likewise.
2932         (map_over_byte_table): Likewise.
2933         (map_char_table): Modify for `map_over_uint8_byte_table',
2934         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2935         UTF-2000.
2936
2937 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2938
2939         * chartab.c (struct map_char_table_for_charset_arg): New
2940         structure.
2941         (map_char_table_for_charset_fun): New function.
2942         (map_char_table): Use `map_char_table' for encoding_table of
2943         `range->charset'.
2944
2945 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2946
2947         * chartab.c (map_char_table): Check a character is found in
2948         range->charset instead of non default value is defined in
2949         char-table when range is CHARTAB_RANGE_ROW.
2950
2951 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2952
2953         * chartab.c (map_char_id_table): Deleted.
2954         (Fmap_char_attribute): Use `map_char_table' instead of
2955         `map_char_id_table'.
2956
2957 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2958
2959         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2960         UTF-2000.
2961         (update_syntax_table): Deleted in XEmacs UTF-2000.
2962
2963         * syntax.c (find_defun_start): Use `syntax_table' instead of
2964         `mirror_syntax_table' in XEmacs UTF-2000.
2965         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2966         UTF-2000.
2967         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2968         XEmacs UTF-2000.
2969         (Fmatching_paren): Likewise.
2970         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2971         in XEmacs UTF-2000.
2972         (find_start_of_comment): Likewise.
2973         (find_end_of_comment): Likewise.
2974         (Fforward_comment): Likewise.
2975         (scan_lists): Likewise.
2976         (char_quoted): Likewise.
2977         (Fbackward_prefix_chars): Likewise.
2978         (scan_sexps_forward): Likewise.
2979         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2980         (update_syntax_table): Likewise.
2981
2982         * search.c (skip_chars): Use `syntax_table' instead of
2983         `mirror_syntax_table' in XEmacs UTF-2000.
2984         (wordify): Likewise.
2985         (Freplace_match): Likewise.
2986
2987         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2988         `mirror_syntax_table' in XEmacs UTF-2000.
2989         (WORDCHAR_P_UNSAFE): Likewise.
2990         (re_match_2_internal): Likewise.
2991
2992         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2993         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2994
2995         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2996         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2997
2998         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2999         XEmacs UTF-2000.
3000
3001         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
3002         UTF-2000.
3003         (print_char_table): Print `default_value' in XEmacs UTF-2000.
3004         (char_table_description): Delete `mirror_table' in XEmacs
3005         UTF-2000.
3006         (fill_char_table): Don't call `update_syntax_table' in XEmacs
3007         UTF-2000.
3008         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
3009         (Fcopy_char_table): Likewise.
3010         (put_char_table): Don't call `update_syntax_table' in XEmacs
3011         UTF-2000.
3012
3013         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
3014         `buf->mirror_syntax_table' in XEmacs UTF-2000.
3015         (casify_region_internal): Likewise.
3016
3017         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
3018
3019         * buffer.c (common_init_complex_vars_of_buffer): Don't use
3020         `mirror_syntax_table' in XEmacs UTF-2000.
3021
3022         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
3023         `buf->mirror_syntax_table' in XEmacs UTF-2000.
3024         (Fexpand_abbrev): Likewise.
3025
3026 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3027
3028         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
3029
3030 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3031
3032         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
3033         (map_over_uint16_byte_table): Likewise.
3034         (map_over_byte_table): Likewise.
3035         (get_char_id_table): Refer `cit->default_value'.
3036         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
3037         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
3038         of character-id ranges.
3039         (mark_char_table): Mark `ct->default_value'.
3040         (char_table_description): Add `default_value'.
3041         (fill_char_table): Use `default_value'.
3042         (decode_char_table_range): Decode `nil' as
3043         `CHARTAB_RANGE_DEFAULT'.
3044         (get_char_id_table): Refer `cit->default_value'.
3045         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
3046         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
3047         temporary hack; check value of char-table is bound or not.
3048         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
3049
3050         * chartab.h (struct Lisp_Char_Table): Add new member
3051         `default_value' in XEmacs UTF-2000.
3052         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
3053         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
3054         UTF-2000.
3055
3056 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3057
3058         * chartab.h (Lisp_Char_ID_Table): Deleted.
3059
3060         * chartab.c (char_table_description): Fix typo.
3061         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
3062         `Lisp_Char_ID_Table'.
3063
3064 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3065
3066         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
3067         `CHAR_ID_TABLE_P'.
3068
3069         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
3070         `CHAR_ID_TABLE_P'.
3071
3072         * chartab.h (XCHAR_ID_TABLE): Deleted.
3073         (XSETCHAR_ID_TABLE): Deleted.
3074         (CHAR_ID_TABLE_P): Deleted.
3075
3076         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
3077         `CHAR_ID_TABLE_P'.
3078         (Fget_composite_char): Likewise.
3079         (put_char_table): Likewise.
3080         (add_char_attribute_alist_mapper): Fixed.
3081         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
3082         `CHAR_ID_TABLE_P'.
3083         (Fget_char_attribute): Likewise.
3084         (Fget_char_attribute): Likewise.
3085         (Fmap_char_attribute): Likewise.
3086
3087         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
3088         `CHAR_ID_TABLE_P'.
3089         (encode_char_1): Likewise.
3090
3091 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3092
3093         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
3094         `XCHAR_ID_TABLE'.
3095
3096         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
3097         instead of `XCHAR_ID_TABLE'.
3098         (remove_char_ccs): Likewise.
3099
3100         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
3101         `XCHAR_ID_TABLE'.
3102         (Fget_composite_char): Likewise.
3103         (Fchar_variants): Likewise.
3104         (put_char_table): Likewise.
3105         (add_char_attribute_alist_mapper): Likewise.
3106         (Fchar_attribute_alist): Likewise.
3107         (Fget_char_attribute): Likewise.
3108         (Fput_char_attribute): Likewise.
3109         (Fmap_char_attribute): Likewise.
3110         (Fmap_char_attribute): Likewise.
3111
3112         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
3113         `XCHAR_ID_TABLE'.
3114         (encode_char_1): Likewise.
3115
3116 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3117
3118         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
3119         `Lisp_Char_ID_Table'.
3120         (mark_char_id_table): Deleted.
3121         (print_char_id_table): Likewise.
3122         (char_id_table_equal): Likewise.
3123         (char_id_table_hash): Likewise.
3124         (char_id_table_description): Likewise.
3125         (char_id_table): Likewise.
3126         (make_char_id_table): Use `Fmake_char_table' and
3127         `fill_char_table'.
3128         (get_char_id_table): Use `Lisp_Char_Table' instead of
3129         `Lisp_Char_ID_Table'.
3130         (put_char_id_table): Likewise.
3131         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
3132         `XCHAR_ID_TABLE'.
3133         (Fremove_char_attribute): Likewise.
3134         (syms_of_chartab): Don't define type `char-id-table'.
3135
3136         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
3137         (char_id_table): Likewise.
3138         (GC_CHAR_ID_TABLE_P): Likewise.
3139         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
3140         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
3141         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
3142         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
3143         (get_char_id_table): Use `Lisp_Char_Table' instead of
3144         `Lisp_Char_ID_Table'.
3145         (put_char_id_table_0): Likewise.
3146         (put_char_id_table): Likewise.
3147
3148 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3149
3150         * chartab.h: Lisp_Byte_Table related codes are moved from
3151         chartab.h.
3152
3153         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
3154
3155 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3156
3157         * chartab.h: Don't include "chartab.h".
3158         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
3159         (Lisp_Char_ID_Table): Likewise.
3160         (char_id_table): Likewise.
3161         (XCHAR_ID_TABLE): Likewise.
3162         (XSETCHAR_ID_TABLE): Likewise.
3163         (CHAR_ID_TABLE_P): Likewise.
3164         (GC_CHAR_ID_TABLE_P): Likewise.
3165         (get_char_id_table): Likewise.
3166
3167         * char-ucs.h: Include "chartab.h".
3168         (struct Lisp_Char_ID_Table): Moved to chartab.h.
3169         (Lisp_Char_ID_Table): Likewise.
3170         (char_id_table): Likewise.
3171         (XCHAR_ID_TABLE): Likewise.
3172         (XSETCHAR_ID_TABLE): Likewise.
3173         (CHAR_ID_TABLE_P): Likewise.
3174         (GC_CHAR_ID_TABLE_P): Likewise.
3175         (get_char_id_table): Likewise.
3176
3177 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3178
3179         * chartab.c (copy_uint8_byte_table): New function.
3180         (copy_uint16_byte_table): New function.
3181         (copy_byte_table): New function.
3182         (map_over_uint8_byte_table): Modify to avoid huge numbers of
3183         characters to call.
3184         (map_over_uint16_byte_table): Likewise.
3185         (map_over_byte_table): Likewise.
3186         (get_byte_table): Move prototype to chartab.h.
3187         (put_byte_table): Likewise.
3188         (put_char_id_table_0): Moved to chartab.h.
3189         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
3190         (char_table_entry_equal): Likewise.
3191         (char_table_entry_hash): Likewise.
3192         (char_table_entry_description): Likewise.
3193         (char_table_entry): Likewise.
3194         (make_char_table_entry): Likewise.
3195         (copy_char_table_entry): Likewise.
3196         (get_non_ascii_char_table_value): Likewise.
3197         (map_over_charset_ascii): Likewise.
3198         (map_over_charset_control_1): Likewise.
3199         (map_over_charset_row): Likewise.
3200         (map_over_other_charset): Likewise.
3201         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
3202         (print_char_table): Likewise.
3203         (char_table_equal): Likewise.
3204         (char_table_hash): Likewise.
3205         (char_table_description): Likewise.
3206         (fill_char_table): Likewise.
3207         (Fcopy_char_table): Likewise.
3208         (get_char_table): Likewise.
3209         (Fget_range_char_table): Likewise.
3210         (put_char_table): Likewise.
3211         (map_char_table): Likewise.
3212         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
3213         UTF-2000.
3214
3215 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3216
3217         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
3218         `Vauto_fill_chars' in XEmacs UTF-2000.
3219
3220         * chartab.h (get_byte_table): New prototype [moved from
3221         chartab.c].
3222         (put_byte_table): Likewise [moved from chartab.c].
3223         (put_char_id_table_0): New inline function [moved from chartab.c].
3224         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
3225         (Lisp_Char_Table_Entry): Likewise.
3226         (char_table_entry): Likewise.
3227         (XCHAR_TABLE_ENTRY): Likewise.
3228         (XSETCHAR_TABLE_ENTRY): Likewise.
3229         (CHAR_TABLE_ENTRYP): Likewise.
3230         (CHECK_CHAR_TABLE_ENTRY): Likewise.
3231         (NUM_ASCII_CHARS): Likewise.
3232         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
3233         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
3234
3235 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3236
3237         * chartab.c (get_char_id_table): Change interface.
3238         (put_char_id_table_0): New function.
3239         (put_char_id_table): Change interface; new implementation.
3240         (Fget_composite_char): Modify for interface change of
3241         `get_char_id_table'.
3242         (Fchar_variants): Likewise.
3243         (add_char_attribute_alist_mapper): Likewise.
3244         (Fchar_attribute_alist): Likewise.
3245         (Fget_char_attribute): Likewise.
3246         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
3247         as same as character as the first argument like `put-char-table';
3248         modify for interface change of `put_char_id_table'.
3249         (Fremove_char_attribute): Modify for interface change of
3250         `put_char_id_table'.
3251
3252 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3253
3254         * text-coding.c: Sync up with XEmacs 21.2.41.
3255         (COMPOSE_ADD_CHAR): Modify for interface change of
3256         `get_char_id_table'.
3257
3258         * mule-charset.c (put_char_ccs_code_point): Modify for interface
3259         change of `put_char_id_table'.
3260         (remove_char_ccs): Likewise.
3261
3262         * chartab.h (put_char_id_table): Change interface.
3263
3264         * char-ucs.h (get_char_id_table): Change interface.
3265         (charset_code_point): Modify for interface change of
3266         `get_char_id_table'.
3267         (encode_char_1): Likewise.
3268
3269 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3270
3271         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3272         argument `ccs'.
3273         (map_over_uint16_byte_table): Likewise.
3274         (map_over_byte_table): Likewise.
3275         (map_char_id_table): Add new argument `range' like
3276         `map_char_table'.
3277         (Fmap_char_attribute): Add new argument `range' like
3278         `Fmap_char_table'.
3279
3280 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3281
3282         * chartab.c (map_over_uint8_byte_table): Change interface of
3283         mapping function to use struct chartab_range instead of Emchar.
3284         (map_over_uint16_byte_table): Likewise.
3285         (map_over_byte_table): Likewise.
3286         (map_char_id_table): Likewise.
3287         (struct slow_map_char_id_table_arg): Deleted.
3288         (slow_map_char_id_table_fun): Deleted.
3289         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3290         function `slow_map_char_table_fun' instead of struct
3291         `slow_map_char_id_table_arg' and function
3292         `slow_map_char_id_table_fun'.
3293
3294 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3295
3296         * mule-charset.c: Move char-it-table related codes to chartab.c.
3297         (Vutf_2000_version): Moved to chartab.c.
3298         (Fdefine_char): Likewise.
3299         (Ffind_char): Likewise.
3300         (syms_of_mule_charset): Move types `uint8-byte-table',
3301         `uint16-byte-table', `byte-table' and `char-id-table' to
3302         chartab.c; move functions `char_attribute_list,
3303         `find_char_attribute_table, `char_attribute_alist,
3304         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3305         `map_char_attribute, `define_char, `find_char, `char_variants and
3306         `get_composite_char to chartab.c; move symbols `=>ucs',
3307         `->decomposition', `compat', `isolated', `initial', `medial',
3308         `final', `vertical', `noBreak', `fraction', `super', `sub',
3309         `circle', `square', `wide', `narrow', `small' and `font' to
3310         chartab.c.
3311         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3312         setting codes for `Vcharacter_composition_table' and
3313         `Vcharacter_variant_table' to chartab.c.
3314         (complex_vars_of_mule_charset): Move setting code for
3315         `Vchar_attribute_hash_table' to chartab.c.
3316
3317         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3318         (make_char_id_table): New prototype.
3319         (put_char_id_table): Likewise.
3320         (Fget_char_attribute): Likewise.
3321
3322         * chartab.c: Move char-id-table related code from mule-charset.c.
3323         (Vutf_2000_version): Moved from mule-charset.c.
3324
3325         * char-ucs.h (Qucs): New external variable.
3326         (put_char_ccs_code_point): New prototype.
3327         (remove_char_ccs): Likewise.
3328
3329 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3330
3331         * mule-charset.c (Vcharset_ucs_jis): New variable.
3332         (Qucs_jis): Likewise.
3333         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3334         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3335
3336         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3337
3338 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3339
3340         * mule-charset.c (map_over_uint8_byte_table): New function.
3341         (map_over_uint16_byte_table): Likewise.
3342         (map_over_byte_table): Likewise.
3343         (map_char_id_table): Likewise.
3344         (slow_map_char_id_table_fun): Likewise.
3345         (Fmap_char_attribute): Likewise.
3346         (syms_of_mule_charset): Add new function `map-char-attribute'.
3347
3348 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3349
3350         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3351         (syms_of_mule_charset): Add new function `find-char'.
3352
3353 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3354
3355         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3356         XEmacs UTF-2000.
3357         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3358         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3359         XEmacs UTF-2000.
3360         (complex_vars_of_mule_charset): Add new coded-charset
3361         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3362         `ideograph-gt-pj-*'.
3363
3364         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3365
3366 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3367
3368         * mule-charset.c (encode_builtin_char_1): Purge codes about
3369         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3370         {MIN|MAX}_CHAR_HEBREW.
3371         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3372         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3373
3374         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3375         (MAX_CHAR_GREEK): Purged.
3376         (MIN_CHAR_CYRILLIC): Purged.
3377         (MAX_CHAR_CYRILLIC): Purged.
3378         (MIN_CHAR_HEBREW): Commented out.
3379         (MAX_CHAR_HEBREW): Likewise.
3380
3381 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3382
3383         * mule-charset.c (Qto_ucs): New variable.
3384         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3385         (Fdefine_char): Likewise.
3386         (syms_of_mule_charset): Add new symbol `=>ucs'.
3387
3388 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3389
3390         * mule-charset.c (Fdecode_char): Fixed.
3391
3392 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3393
3394         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3395         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3396         "tcvn5712-1".
3397
3398 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3399
3400         * mule-charset.c (Vcharset_ucs_big5): New variable.
3401         (Qucs_big5): Likewise.
3402         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3403         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3404
3405         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3406
3407 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3408
3409         * mule-charset.c (decode_builtin_char): Check Big5 code range
3410         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3411
3412 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3413
3414         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3415         (Qchinese_gb12345): Likewise.
3416         (Fdecode_builtin_char): Fixed.
3417         (syms_of_mule_charset): Add `chinese-gb12345'.
3418         (complex_vars_of_mule_charset): Add coded-charset
3419         `chinese-gb12345'.
3420
3421         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3422         (LEADING_BYTE_CHINESE_GB12345): New macro.
3423
3424 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3425
3426         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3427         and `latin-viscii-upper' for `latin-viscii'.
3428
3429 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3430
3431         * mule-charset.c (Fdecode_builtin_char): Comment out
3432         regularization code for ISO-IR GR representation.
3433
3434 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3435
3436         * mule-charset.c (decode_builtin_char): New function; renamed from
3437         `make_builtin_char'; return -1 instead of signal.
3438         (Fdecode_builtin_char): Use `decode_builtin_char'.
3439
3440         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3441         `make_builtin_char'.
3442         (DECODE_CHAR): Use `decode_builtin_char' instead of
3443         `make_builtin_char'; use mapping table of `chinese-big5' for
3444         `chinese-big5-{1,2}'.
3445
3446 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3447
3448         * text-coding.c (char_encode_big5): New function.
3449         (char_finish_big5): Likewise.
3450         (reset_encoding_stream): Use `char_encode_big5' and
3451         `char_finish_big5' for CODESYS_BIG5.
3452         (mule_encode): Don't use `encode_coding_big5'.
3453         (encode_coding_big5): Deleted.
3454
3455 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3456
3457         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3458         0x81- in XEmacs UTF-2000.
3459         (detect_coding_big5): Likewise.
3460
3461 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3462
3463         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3464         generate character-id if the CCS property does not have
3465         corresponding predefined character.
3466         (make_builtin_char): Return -1 if corresponding predefined
3467         character is not found.
3468         (Fdecode_char): Return nil if corresponding character is not
3469         found.
3470         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3471         don't map to builtin ucs space.
3472
3473 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3474
3475         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3476         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3477
3478 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3479
3480         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3481         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3482         (Qideograph_gt): Likewise.
3483         (Qideograph_gt_pj_{1..11}): Likewise.
3484         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3485         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3486         `ideograph-gt-pj-11'.
3487         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3488         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3489         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3490
3491         * char-ucs.h (LEADING_BYTE_GT): New macro.
3492         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3493         (MIN_CHAR_GT): Likewise.
3494         (MAX_CHAR_GT): Likewise.
3495
3496 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3497
3498         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3499         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3500
3501         * doprnt.c (unsigned_int_converters): Add `c'.
3502         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3503
3504         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3505         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3506         `MIN_CHAR_MOJIKYO'.
3507         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3508         (MAX_CHAR_MOJIKYO_0): New macro.
3509         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3510
3511 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3512
3513         * mule-charset.c (Fdefine_char): Delete cemented out code.
3514         (encode_builtin_char_1): Modify for new allocation of builtin
3515         Mojikyo characters.
3516
3517         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3518
3519 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3520
3521         * mule-charset.c (Vcharset_ucs_cns): New variable.
3522         (Qucs_cns): New variable.
3523         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3524         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3525
3526 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3527
3528         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3529
3530 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3531
3532         * search.c (search_buffer): Make `charset_base_code' as
3533         character-id >> 6 to eliminate the corresponding last byte in
3534         UTF-8 representation [I'm not sure it is right thing].
3535         (boyer_moore): Likewise.
3536
3537 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3538
3539         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3540         representation in MULE.
3541
3542 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3543
3544         * text-coding.c (Fmake_coding_system): Use
3545         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3546         `EXTERNAL_PROPERTY_LIST_LOOP'.
3547
3548 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3549
3550         * text-coding.c (decode_output_utf8_partial_char): New function.
3551         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3552
3553 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3554
3555         * text-coding.c (decode_coding_utf8): Output original byte
3556         sequence if it is broken; change order of conditions.
3557
3558         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3559         of conditions.
3560
3561         * mb-multibyte.h (BYTE_ASCII_P):
3562         Use bit ops for char-signedness safety.
3563         (BYTE_C0_P): Use bit ops for char-signedness safety.
3564         (BYTE_C1_P): Use bit ops for char-signedness safety.
3565
3566         * character.h: (XCHAR_OR_CHAR_INT):
3567         Always use inline function.
3568         Remove redundant type checking assert() - XINT will abort quite
3569         nicely.
3570
3571 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3572
3573         * text-coding.c: (Fencode_shift_jis_char):
3574         (Fencode_big5_char):
3575         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3576         Replace 0 with '\0' when working with bytes.
3577         Replace initial "(" with "\(" in docstrings.
3578
3579         (Fmake_coding_system):
3580         When type is ccl and value is vector, register it with a proper
3581         symbol.  And checks whether the given ccl program is valid.
3582         (mule_decode): When calling ccl_driver, if src indicates
3583         NULL pointer, set an empty string instead.
3584         (mule_encode): Likewise.
3585
3586         (detect_eol_type):
3587         (detect_coding_sjis):
3588         (decode_coding_sjis):
3589         (detect_coding_big5):
3590         (decode_coding_big5):
3591         (detect_coding_ucs4):
3592         (decode_coding_ucs4):
3593         (detect_coding_utf8):
3594         (decode_coding_utf8):
3595         (detect_coding_iso2022):
3596         (decode_coding_iso2022):
3597         (decode_coding_no_conversion):
3598         (mule_decode):
3599         Make all detecting and decoding functions take an Extbyte * arg.
3600         (text_encode_generic):
3601         (encode_coding_big5):
3602         (encode_coding_no_conversion):
3603         (mule_encode):
3604         Make all encoding functions take a Bufbyte * arg.
3605         Use size_t instead of unsigned int for memory sizes.
3606         Only cast to unsigned char whenever dereferencing Extbyte *.
3607
3608         (struct lrecord_description fcd_description_1): Use countof.
3609         (complex_vars_of_file_coding):
3610         Use countof instead of sizeof.
3611         Use CHECK_NATNUM instead of CHECK_INT.
3612
3613 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3614
3615         * mule-charset.c (Fget_char_attribute): Add new optional argument
3616         `default-value'.
3617         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3618         (remove_char_ccs): Likewise.
3619
3620 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3621
3622         * text-coding.c (char_encode_shift_jis): New implementation in
3623         UTF-2000.
3624         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3625         ...)'.
3626
3627         * mule-charset.c (Vcharset_chinese_big5): New variable in
3628         UTF-2000.
3629         (Qchinese_big5): New variable in UTF-2000.
3630         (BIG5_SAME_ROW): New macro in UTF-2000.
3631         (make_builtin_char): Use builtin characters of
3632         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3633         characters of `Vcharset_chinese_big5'.
3634         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3635         (complex_vars_of_mule_charset): Add new coded-charset
3636         `chinese-big5' in UTF-2000.
3637
3638         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3639         (Vcharset_chinese_big5): New external variable declaration.
3640         (Vcharset_japanese_jisx0208_1990): Likewise.
3641
3642 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3643
3644         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3645         function.
3646         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3647
3648 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3649
3650         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3651         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3652         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3653         `mojikyo-pj-*'.
3654
3655 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3656
3657         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3658
3659 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3660
3661         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3662         to 0.17.
3663
3664 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3665
3666         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3667         for `CHARSET_BY_ATTRIBUTES'.
3668         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3669         `CHARSET_BY_ATTRIBUTES'.
3670
3671         * text-coding.c (struct decoding_stream): Rename member `CH' to
3672         `CPOS'.
3673         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3674         (decode_coding_sjis): Likewise.
3675         (decode_coding_big5): Likewise.
3676         (decode_coding_ucs4): Likewise.
3677         (decode_coding_utf8): Likewise.
3678         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3679         `CHARSET_BY_ATTRIBUTES'.
3680         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3681         `str->counter'; decode 3, 4 bytes sets.
3682         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3683         sets.
3684         (decode_coding_no_conversion): Use `str->cpos' instead of
3685         `str->ch'.
3686
3687         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3688         (Qmojikyo_2022_1): New variable.
3689         (make_charset): Don't use `CHARSET_TYPE_*'.
3690         (range_charset_code_point): Support coded-charset
3691         `mojikyo-2022-1'.
3692         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3693         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3694         `CHARSET_BY_ATTRIBUTES'.
3695         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3696         `CHARSET_BY_ATTRIBUTES'.
3697         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3698         (complex_vars_of_mule_charset): Add new coded-charset
3699         `mojikyo-2022-1'.
3700
3701         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3702         interface; changed to inline function.
3703
3704         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3705         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3706         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3707         (CHARSET_TYPE_94): Deleted.
3708         (CHARSET_TYPE_94X94): Deleted.
3709         (CHARSET_TYPE_96): Deleted.
3710         (CHARSET_TYPE_96X96): Deleted.
3711         (CHARSET_TYPE_128): Deleted.
3712         (CHARSET_TYPE_128X128): Deleted.
3713         (CHARSET_TYPE_256): Deleted.
3714         (CHARSET_TYPE_256X256): Deleted.
3715         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3716         to inline function.
3717         (DECODE_MOJIKYO_2022): New inline function.
3718         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3719         `Vcharset_mojikyo_2022_1'.
3720
3721 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3722
3723         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3724         instead of `EQ'.
3725         (put_byte_table): Likewise.
3726         (char_id_table_equal): Use `get_byte_table' [new implementation].
3727
3728 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3729
3730         * mule-charset.c: Include <limits.h> in UTF-2000.
3731         (BT_UINT8_MIN): New macro in UTF-2000.
3732         (BT_UINT8_MAX): New macro in UTF-2000.
3733         (BT_UINT8_t): New macro in UTF-2000.
3734         (BT_UINT8_nil): New macro in UTF-2000.
3735         (BT_UINT8_unbound): New macro in UTF-2000.
3736         (INT_UINT8_P): New inline function in UTF-2000.
3737         (UINT8_VALUE_P): New inline function in UTF-2000.
3738         (UINT8_ENCODE): New inline function in UTF-2000.
3739         (UINT8_DECODE): New inline function in UTF-2000.
3740         (mark_uint8_byte_table): New function in UTF-2000.
3741         (print_uint8_byte_table): New function in UTF-2000.
3742         (uint8_byte_table_equal): New function in UTF-2000.
3743         (uint8_byte_table_hash): New function in UTF-2000.
3744         (make_uint8_byte_table): New function in UTF-2000.
3745         (uint8_byte_table_same_value_p): New function in UTF-2000.
3746         (BT_UINT16_MIN): New macro in UTF-2000.
3747         (BT_UINT16_MAX): New macro in UTF-2000.
3748         (BT_UINT16_t): New macro in UTF-2000.
3749         (BT_UINT16_nil): New macro in UTF-2000.
3750         (BT_UINT16_unbound): New macro in UTF-2000.
3751         (INT_UINT16_P): New inline function in UTF-2000.
3752         (UINT16_VALUE_P): New inline function in UTF-2000.
3753         (UINT16_ENCODE): New inline function in UTF-2000.
3754         (UINT16_DECODE): New inline function in UTF-2000.
3755         (UINT8_TO_UINT16): New inline function in UTF-2000.
3756         (mark_uint16_byte_table): New function in UTF-2000.
3757         (print_uint16_byte_table): New function in UTF-2000.
3758         (uint16_byte_table_equal): New function in UTF-2000.
3759         (uint16_byte_table_hash): New function in UTF-2000.
3760         (make_uint16_byte_table): New function in UTF-2000.
3761         (uint16_byte_table_same_value_p): New function in UTF-2000.
3762         (print_byte_table): New function in UTF-2000.
3763         (byte-table): Use `print_byte_table' as printer.
3764         (make_byte_table): Delete second argument `older'.
3765         (byte_table_same_value_p): New function in UTF-2000.
3766         (copy_byte_table): Deleted.
3767         (get_byte_table): New function in UTF-2000.
3768         (put_byte_table): New function in UTF-2000.
3769         (print_char_id_table): New function in UTF-2000.
3770         (char-id-table): Use `print_char_id_table' as printer.
3771         (make_char_id_table): Delete second argument `older'.
3772         (get_char_id_table): Use `get_byte_table [new implementation].
3773         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3774         implementation].
3775         (Ffind_char_attribute_table): New function in UTF-2000.
3776         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3777         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3778         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3779         (syms_of_mule_charset): Add new function
3780         `find-char-attribute-table' in UTF-2000.
3781
3782         * lrecord.h (enum lrecord_type): Add
3783         `lrecord_type_uint16_byte_table' and
3784         `lrecord_type_uint8_byte_table'.
3785
3786         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3787         (Lisp_Uint8_Byte_Table): New type.
3788         (XUINT8_BYTE_TABLE): New macro.
3789         (XSETUINT8_BYTE_TABLE): New macro.
3790         (UINT8_BYTE_TABLE_P): New macro.
3791         (GC_UINT8_BYTE_TABLE_P): New macro.
3792         (struct Lisp_Uint16_Byte_Table): New structure.
3793         (Lisp_Uint16_Byte_Table): New type.
3794         (XUINT16_BYTE_TABLE): New macro.
3795         (XSETUINT16_BYTE_TABLE): New macro.
3796         (UINT16_BYTE_TABLE_P): New macro.
3797         (GC_UINT16_BYTE_TABLE_P): New macro.
3798
3799 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3800
3801         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3802         (Vcharacter_ideographic_strokes_table): Deleted.
3803         (Vcharacter_total_strokes_table): Deleted.
3804         (Vcharacter_morohashi_daikanwa_table): Deleted.
3805         (Vcharacter_decomposition_table): Deleted.
3806         (Qname): Deleted because it is duplicated.
3807         (Qideographic_radical): Deleted.
3808         (Qideographic_strokes): Deleted.
3809         (Qtotal_strokes): Deleted.
3810         (Qmorohashi_daikanwa): Deleted.
3811         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3812         `ideographic-radical', `ideographic-strokes', `total-strokes',
3813         `morohashi-daikanwa' and `->decomposition'.
3814         (Fget_char_attribute): Likewise.
3815         (Fput_char_attribute): Likewise; use `make-vector' instead of
3816         `make_older_vector' for `->decomposition' value.
3817         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3818         `ideograph-daikanwa'.
3819         (syms_of_mule_charset): Delete builtin symbols `name',
3820         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3821         `morohashi-daikanwa'.
3822         (vars_of_mule_charset): Don't setup
3823         `Vcharacter_ideographic_radical_table',
3824         `Vcharacter_ideographic_strokes_table',
3825         `Vcharacter_total_strokes_table',
3826         `Vcharacter_morohashi_daikanwa_table' and
3827         `Vcharacter_decomposition_table'.
3828
3829 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3830
3831         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3832         `make_older_vector', `make_vector_newer_1' and
3833         `make_vector_newer'.
3834
3835         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3836         `make_older_vector' and `make_vector_newer'.
3837
3838         * config.h.in (HAVE_GGC): New macro.
3839
3840 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3841
3842         * mule-charset.c (struct char_attribute_list_closure): New
3843         structure in UTF-2000.
3844         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3845         (Fchar_attribute_list): Likewise.
3846         (Fset_charset_mapping_table): Use `make_vector_newer'.
3847         (Fdecode_builtin_char): New function in UTF-2000.
3848         (syms_of_mule_charset): Add new function `char-attribute-list' and
3849         `decode-builtin-char' in UTF-2000.
3850
3851         * lisp.h (make_vector_newer): New prototype.
3852
3853         * alloc.c (make_vector_newer_1): New function.
3854         (make_vector_newer): New function.
3855
3856 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3857
3858         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3859         50100)'.
3860
3861 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3862
3863         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3864         (Vcharacter_attribute_table): Deleted.
3865         (Vcharacter_name_table): Deleted.
3866         (put_char_attribute): Deleted.
3867         (remove_char_attribute): Deleted.
3868         (struct char_attribute_alist_closure): New structure.
3869         (add_char_attribute_alist_mapper): New function.
3870         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3871         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3872         (Fget_char_attribute): Likewise.
3873         (Fput_char_attribute): Likewise.
3874         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3875         of `remove_char_attribute'.
3876         (Fdefine_char): Return character.
3877         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3878         and `Vcharacter_name_table'.
3879         (complex_vars_of_mule_charset): Likewise
3880         `Vchar_attribute_hash_table'.
3881
3882 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3883
3884         * character.h (CHARC_CHARSET): New macro.
3885         (CHARC_CHARSET_ID): New macro.
3886         (CHARC_CODE_POINT): New macro.
3887         (CHARC_COLUMNS): New macro.
3888         (CHARC_TO_CHAR): New inline function.
3889         (CHARC_EQ): New inline function.
3890         (CHARC_ASCII_EQ): New inline function.
3891         (CHARC_IS_SPACE): New inline function.
3892         (ASCII_TO_CHARC): New inline function.
3893
3894         * char-ucs.h (encode_char_2): Deleted.
3895         (ENCODE_CHAR): Use `encode_char_1' again.
3896         (breakup_char_1): Likewise.
3897         (CHAR_TO_CHARC): New inline function.
3898
3899         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3900
3901 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3902
3903         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3904         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3905         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3906         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3907         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3908         `CHARC_IS_SPACE'.
3909         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3910
3911         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3912         `CHARC_CODE_POINT'.
3913         (x_output_display_block): Use `CHARC_CHARSET' and
3914         `CHARC_ASCII_EQ'.
3915
3916         * redisplay-tty.c (tty_output_display_block): Use
3917         `CHARC_ASCII_EQ'.
3918         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3919
3920         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3921
3922         * insdel.c (find_charsets_in_charc_string): Use
3923         `CHARC_CHARSET_ID'.
3924         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3925         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3926         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3927         (convert_charc_string_into_malloced_string): Likewise.
3928
3929 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3930
3931         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3932         instead of <Emchar_dynarr *> for buf; use
3933         `convert_bufbyte_string_into_charc_dynarr' instead of
3934         `convert_bufbyte_string_into_emchar_dynarr'; use
3935         `find_charsets_in_charc_string' instead of
3936         `find_charsets_in_emchar_string'.
3937
3938         * redisplay.h:
3939         - Include "character.h".
3940         (struct rune): New member `cglyph'; delete member `chr'.
3941
3942         * redisplay.c (redisplay_text_width_charc_string): New function;
3943         delete `redisplay_text_width_emchar_string'.
3944         (rtw_charc_dynarr): New variable; renamed from
3945         `rtw_emchar_dynarr'.
3946         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3947         `rtw_emchar_dynarr'; use
3948         `convert_bufbyte_string_into_charc_dynarr' instead of
3949         `convert_bufbyte_string_into_emchar_dynarr'; use
3950         `redisplay_text_width_charc_string' instead of
3951         `redisplay_text_width_emchar_string'.
3952         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3953         instead of `rtw_emchar_dynarr'; use
3954         `convert_bufbyte_string_into_charc_dynarr' instead of
3955         `convert_bufbyte_string_into_emchar_dynarr'.
3956         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3957         `redisplay_text_width_charc_string' instead of
3958         `redisplay_text_width_emchar_string'.
3959         (create_text_block): Modify for <struct rune> change.
3960         (generate_formatted_string_db): Likewise.
3961         (create_string_text_block): Likewise.
3962         (pixel_to_glyph_translation): Likewise.
3963
3964         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3965         instead of <const Emchar *>.
3966         (x_text_width): Likewise.
3967         (x_output_display_block): Use <Charc_dynarr *> instead
3968         <Emchar_dynarr *>; modify for <structure rune> change.
3969         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3970         *>.
3971
3972         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3973         <const Emchar *>; use `charc_string_displayed_columns' instead of
3974         `emchar_string_displayed_columns'.
3975         (tty_output_display_block): Use <Charc_dynarr *> instead of
3976         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3977         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3978         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3979         `tty_output_emchar_dynarr_dynarr'.
3980         (tty_output_charc_dynarr): New function; delete
3981         `tty_output_charc_dynarr'.
3982
3983         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3984         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3985         <Emchar_dynarr *> for buf; use
3986         `convert_bufbyte_string_into_charc_dynarr' instead of
3987         `convert_bufbyte_string_into_emchar_dynarr'.
3988
3989         * frame.c (title_string_charc_dynarr): New variable; renamed from
3990         `title_string_emchar_dynarr'.
3991         (generate_title_string): Use `title_string_charc_dynarr' instead
3992         of `title_string_emchar_dynarr'; use
3993         `convert_charc_string_into_malloced_string' instead of
3994         `convert_emchar_string_into_malloced_string'.
3995         (init_frame): Use `title_string_charc_dynarr' instead of
3996         `title_string_emchar_dynarr'.
3997
3998         * console.h:
3999         - Include "character.h".
4000         (struct console_methods): Use <const Charc *> instead of <const
4001         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
4002         <Emchar_dynarr *> in output_string_method.
4003
4004         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
4005         <Emchar_dynarr *>.
4006
4007         * console-stream.c (stream_text_width): Use <const Charc *>
4008         instead of <const Emchar *>.
4009
4010         * character.h (Charc_dynarr): New type.
4011
4012         * char-ucs.h (structure Charc): New structure; define new type
4013         `Charc'.
4014
4015         * char-lb.h (DECODE_CHAR): New inline function.
4016         (encode_char_1): New inline function.
4017         (ENCODE_CHAR): New macro.
4018         (structure Charc): New structure; define new type `Charc'.
4019
4020         * char-1byte.h (Vcharset_control_1): New macro.
4021         (Vcharset_latin_iso8859_1): New macro.
4022         (DECODE_CHAR): New inline function.
4023         (encode_char_1): New inline function.
4024         (ENCODE_CHAR): New macro.
4025         (structure Charc): New structure; define new type `Charc'.
4026
4027         * insdel.c (find_charsets_in_charc_string): New function; delete
4028         `find_charsets_in_emchar_string'.
4029         (charc_string_displayed_columns): New function; delete
4030         `emchar_string_displayed_columns'.
4031         (convert_bufbyte_string_into_charc_dynarr): New function; delete
4032         `convert_bufbyte_string_into_emchar_dynarr'.
4033         (convert_charc_string_into_bufbyte_dynarr): New function; delete
4034         `convert_charc_string_into_bufbyte_dynarr'.
4035         (convert_charc_string_into_malloced_string): New function; delete
4036         `convert_charc_string_into_malloced_string'.
4037
4038         * buffer.h (find_charsets_in_charc_string): New prototype; delete
4039         `find_charsets_in_emchar_string'.
4040         (charc_string_displayed_columns): New prototype; delete
4041         `emchar_string_displayed_columns'.
4042         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
4043         `convert_charc_string_into_bufbyte_dynarr'.
4044         (convert_charc_string_into_malloced_string): New prototype; delete
4045         `convert_charc_string_into_malloced_string'.
4046
4047 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4048
4049         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
4050
4051 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4052
4053         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
4054
4055         * char-ucs.h: Use <short> for <Charset_ID>.
4056
4057         * mule-charset.h, char-1byte.h: Use <unsigned char> for
4058         <Charset_ID>.
4059
4060 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4061
4062         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4063         to 0.16.
4064
4065 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4066
4067         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
4068         variable.
4069         (Qmorohashi_daikanwa): New variable.
4070         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
4071         for `morohashi-daikanwa' attribute.
4072         (Fget_char_attribute): Likewise.
4073         (Fput_char_attribute): Likewise.
4074         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
4075         has the same value of `ideograph-daikanwa'.
4076         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
4077         (vars_of_mule_charset): Setup
4078         `Vcharacter_morohashi_daikanwa_table'.
4079
4080 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4081
4082         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
4083         attributes.
4084         (add_charset_to_list_mapper): Add `key' instead of
4085         `XCHARSET_NAME (value)' to return aliases.
4086
4087 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4088
4089         * mule-charset.c (Vcharacter_ideographic_radical_table): New
4090         variable.
4091         (Vcharacter_ideographic_strokes_table): New variable.
4092         (Qideographic_radical): New variable.
4093         (Qideographic_strokes): New variable.
4094         (Fchar_attribute_alist): Use
4095         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
4096         attribute; use `Vcharacter_ideographic_strokes_table' for
4097         `ideographic-strokes' attribute.
4098         (Fget_char_attribute): Likewise.
4099         (Fput_char_attribute): Likewise.
4100         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
4101         `ideographic-strokes'.
4102         (vars_of_mule_charset): Setup
4103         `Vcharacter_ideographic_radical_table' and
4104         `Vcharacter_ideographic_strokes_table'.
4105
4106 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4107
4108         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
4109         (Qtotal_strokes): New variable.
4110         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
4111         `total-strokes' attribute.
4112         (Fget_char_attribute): Likewise.
4113         (Fput_char_attribute): Likewise.
4114         (syms_of_mule_charset): Add new symbol `total-strokes'.
4115         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
4116
4117 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4118
4119         * mule-charset.c (Vcharacter_decomposition_table): New variable.
4120         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
4121         are found.
4122         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
4123         `->decomposition' attribute.
4124         (Fput_char_attribute): Likewise.
4125         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
4126
4127 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4128
4129         * mule-charset.c (decoding_table_check_elements): New function.
4130         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
4131
4132 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4133
4134         * mule-charset.c (Fset_charset_mapping_table): Use
4135         `put_char_ccs_code_point'.
4136
4137 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4138
4139         * mule-charset.c (decoding_table_put_char): New inline function.
4140         (put_char_ccs_code_point): Use `decoding_table_put_char'.
4141
4142 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4143
4144         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
4145         (XCHARSET_BYTE_SIZE): New macro.
4146         (decoding_table_remove_char): New inline function.
4147         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
4148         `decoding_table_remove_char'.
4149         (remove_char_ccs): Use `decoding_table_remove_char'.
4150         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
4151
4152 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4153
4154         * mule-charset.c (Vcharacter_name_table): New variable.
4155         (Qname): New variable.
4156         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
4157         attribute.
4158         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
4159         `Vcharacter_name_table' for `name' attribute.
4160         (Fremove_char_attribute): Use function `remove_char_ccs'.
4161         (put_char_ccs_code_point): New function.
4162         (remove_char_ccs): New function.
4163         (syms_of_mule_charset): Add new symbol `name'.
4164         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
4165
4166 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4167
4168         * mule-charset.c (make_byte_table): Add new argument `older'.
4169         (make_char_id_table): Likewise.
4170         (copy_char_id_table): Comment out because it is not used.
4171         (put_char_id_table): Modify for `make_byte_table'.
4172         (Fput_char_attribute): Make encoding_table as older object;
4173         inherit older bit of `Vcharacter_composition_table'.
4174         (mark_charset): Don't mark `cs->encoding_table'.
4175         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
4176         normal object; make `Vcharacter_composition_table' as an older
4177         object; delete staticpro for `Vcharacter_composition_table'; make
4178         `Vcharacter_variant_table' as a normal object.
4179
4180         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
4181         (mark_object): Don't check older object in UTF-2000.
4182
4183         * lrecord.h (struct lrecord_header): Add new member `older' in
4184         UTF-2000.
4185         (set_lheader_implementation): Setup `SLI_header->older' in
4186         UTF-2000.
4187         (set_lheader_older_implementation): New macro in UTF-2000.
4188         (OLDER_RECORD_P): New macro in UTF-2000.
4189         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
4190         (alloc_older_lcrecord): New prototype in UTF-2000.
4191         (alloc_older_lcrecord_type): New macro in UTF-2000.
4192
4193 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4194
4195         * mule-charset.c (byte_table_description): Use
4196         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
4197         (char_id_table_description): Delete bogus `, 1'.
4198         (Fget_char_attribute): Refer encoding_table of each coded-charset
4199         to get value of coded-charset attribute of a character.
4200         (Fput_char_attribute): Use `make_older_vector' instead of
4201         `make_vector'; use encoding_table of each coded-charset to store
4202         value of coded-charset attribute of a character.
4203         (Fremove_char_attribute): Use encoding_table of each coded-charset
4204         to store value of coded-charset attribute of a character.
4205         (mark_charset): Mark `cs->encoding_table'; don't mark
4206         `cs->decoding_table'.
4207         (charset_description): Add description of new member
4208         `encoding_table'.
4209         (make_charset): Initialize `encoding_table'.
4210
4211         * char-ucs.h (struct Lisp_Charset): Add new member
4212         `encoding_table'.
4213         (CHARSET_ENCODING_TABLE): New macro.
4214         (XCHARSET_ENCODING_TABLE): New macro.
4215         (charset_code_point): New implementation.
4216         (encode_char_1): Likewise.
4217
4218         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
4219         (disksave_object_finalization_1): Call finalizers of
4220         `all_older_lcrecords' in UTF-2000.
4221         (make_older_vector): New function in UTF-2000.
4222         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
4223         UTF-2000.
4224
4225         * lisp.h (make_older_vector): New prototype in UTF-2000.
4226
4227 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4228
4229         * lrecord.h (enum lrecord_type): Rename
4230         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
4231
4232         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
4233         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
4234         `get_char_code_table'.
4235
4236         * mule-charset.c (mark_char_id_table): Renamed from
4237         `mark_char_code_table'.
4238         (char_id_table_equal): Renamed from `char_code_table_equal'.
4239         (char_id_table_hash): Renamed from `char_code_table_hash'.
4240         (make_char_id_table): Renamed from `make_char_code_table'.
4241         (copy_char_id_table): Renamed from `copy_char_code_table'.
4242         (get_char_id_table): Renamed from `get_char_code_table'.
4243         (put_char_id_table): Renamed from `put_char_code_table'.
4244         (to_char_id): Renamed from `to_char_code'.
4245
4246         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
4247         `Lisp_Char_Code_Table'.
4248         (char_id_table): Renamed from `char_code_table'.
4249         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
4250         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
4251         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
4252         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
4253         (get_char_id_table): Renamed from `get_char_code_table'.
4254
4255 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4256
4257         * lrecord.h (enum lrecord_type): Rename
4258         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
4259
4260         * mule-charset.c (mark_byte_table): Renamed from
4261         `mark_char_byte_table'.
4262         (byte_table_equal): Renamed from `char_byte_table_equal'.
4263         (byte_table_hash): Renamed from `byte_table_hash'.
4264         (make_byte_table): Renamed from `make_byte_table'.
4265         (copy_byte_table): Renamed from `copy_char_byte_table'.
4266
4267         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4268         `Lisp_Char_Byte_Table'.
4269         (byte_table): Renamed from `char_byte_table'.
4270         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4271         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4272         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4273         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4274
4275 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4276
4277         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4278         (dfc_convert_to_internal_format): Likewise.
4279         
4280         * text-coding.c (Fcoding_system_canonical_name_p): New function.
4281         * text-coding.c (Fcoding_system_alias_p): New function.
4282         * text-coding.c (Fcoding_system_aliasee): New function.
4283         * text-coding.c (append_suffix_to_symbol): New function.
4284         * text-coding.c (dangling_coding_system_alias_p): New function.
4285         * text-coding.c (Ffind_coding_system):
4286         * text-coding.c (Fcopy_coding_system):
4287         * text-coding.c (encode_coding_no_conversion):
4288         * text-coding.c (syms_of_file_coding):
4289         * text-coding.c (vars_of_file_coding):
4290         Rewrite coding system alias code.
4291         Allow nested aliases, like symbolic links.
4292         Allow redefinition of coding system aliases.
4293         Prevent existence of dangling coding system aliases.
4294         Eliminate convert_to_external_format.
4295         Eliminate convert_to_internal_format.
4296         
4297         * text-coding.c: Change enum eol_type to eol_type_t.
4298
4299 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4300
4301         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4302         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4303
4304         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4305         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4306
4307 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4308
4309         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4310         `ideograph-daikanwa'.
4311
4312         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4313         (Vcharset_ucs_bmp): Likewise.
4314         (Vcharset_mojikyo): Add new extern variable definition.
4315         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4316         (Vcharset_latin_iso8859_3): Likewise.
4317         (Vcharset_latin_iso8859_4): Likewise.
4318         (Vcharset_latin_iso8859_9): Likewise.
4319         (Vcharset_latin_viscii_lower): Likewise.
4320         (Vcharset_latin_viscii_upper): Likewise.
4321         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4322         `mojikyo' code-point is used to decode.
4323         (encode_char_2): New function [to convert `mojikyo' code-point to
4324         Mojikyo font encoding].
4325         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4326         (breakup_char_1): Likewise.
4327         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4328
4329 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4330
4331         * text-coding.c (Fmake_coding_system): Add document about
4332         `disable-composition' property.
4333
4334 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4335
4336         * text-coding.c (Qdisable_composition): New variable; delete
4337         `Qcomposite'.
4338         (Fmake_coding_system): Add new property `disable-composite';
4339         delete property `composite'.
4340         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4341         instead of `!CODING_SYSTEM_COMPOSITE'.
4342         (syms_of_file_coding): Add new symbol `disable-composition';
4343         delete symbol `composite'.
4344
4345         * file-coding.h (struct Lisp_Coding_System): Add
4346         `disable_composition'; delete `enable_composition'.
4347         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4348         `CODING_SYSTEM_COMPOSITE'.
4349         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4350         `XCODING_SYSTEM_COMPOSITE'.
4351
4352 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4353
4354         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4355         to 0.15.
4356
4357 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4358
4359         * text-coding.c (Qcomposite): New variable.
4360         (Fmake_coding_system): Add new property `composite'.
4361         (struct decoding_stream): Add `combined_char_count',
4362         `combined_chars' and `combining_table' in UTF-2000.
4363         (COMPOSE_FLUSH_CHARS): New macro.
4364         (COMPOSE_ADD_CHAR): New macro.
4365         (reset_decoding_stream): Reset `str->combined_char_count' and
4366         `str->combining_table' in UTF-2000.
4367         (decode_coding_iso2022): Modify for character-decomposition.
4368         (syms_of_file_coding): Add new symbol `composite'.
4369
4370 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4371
4372         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4373         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4374         of `Vcharacter_composition_table' if `->decomposition' property
4375         has only 1 element.
4376         (Qlatin_tcvn5712): New variable.
4377         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4378         (complex_vars_of_mule_charset): Add new coded-charset
4379         `latin-tcvn5712'.
4380
4381         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4382
4383 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4384
4385         * file-coding.h (struct Lisp_Coding_System): Add
4386         `enable_composition'.
4387         (CODING_SYSTEM_COMPOSITE): New macro.
4388         (XCODING_SYSTEM_COMPOSITE): New macro.
4389
4390 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4391
4392         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4393
4394 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4395
4396         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4397         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4398
4399 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4400
4401         * mule-charset.c (Vcharset_mojikyo): New variable.
4402         (Fdefine_char): Don't use coded-charset which does not have
4403         non-builtin character range to allocate character-id.
4404         (Qmojikyo): New variable.
4405         (syms_of_mule_charset): Add new symbol `mojikyo'.
4406         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4407
4408         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4409         (LEADING_BYTE_MOJIKYO): New macro.
4410         (MIN_CHAR_MOJIKYO): New macro.
4411         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4412         (MAX_CHAR_MOJIKYO): New macro.
4413
4414 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4415
4416         * mule-charset.c (remove_char_attribute): Fixed.
4417
4418 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4419
4420         * mule-charset.c (remove_char_attribute): New function.
4421         (Fremove_char_attribute): New function.
4422         (encode_builtin_char_1): Comment out builtin-support for
4423         greek-iso8859-7 and cyrillic-iso8859-5.
4424         (Fdecode_char): Check `code' is an integer.
4425         (syms_of_mule_charset): Add `remove-char-attribute'.
4426         (MIN_CHAR_GREEK): Deleted.
4427         (MAX_CHAR_GREEK): Likewise.
4428         (MIN_CHAR_CYRILLIC): Likewise.
4429         (MAX_CHAR_CYRILLIC): Likewise.
4430         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4431         MAX_CHAR_GREEK for `greek-iso8859-7'.
4432
4433         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4434         (MAX_CHAR_GREEK): Likewise.
4435         (MIN_CHAR_CYRILLIC): Likewise.
4436         (MAX_CHAR_CYRILLIC): Likewise.
4437
4438 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4439
4440         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4441         format is used without `ucs' property.
4442         (Fdecode_char): Fix problem with GR representation.
4443         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4444         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4445
4446 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4447
4448         * mule-charset.c (make_builtin_char): New function.
4449         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4450         (Fset_charset_mapping_table): Modify for new representation of
4451         code-point.
4452         (Fdecode_char): New function.
4453         (syms_of_mule_charset): Add new builtin function `decode-char' in
4454         UTF-2000.
4455
4456         * char-ucs.h (make_builtin_char): New prototype.
4457         (DECODE_CHAR): New inline function.
4458         (MAKE_CHAR): Use `DECODE_CHAR'.
4459
4460 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4461
4462         * text-coding.c (parse_charset_conversion_specs): Use
4463         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4464         `XCHARSET_TYPE'.
4465         (iso2022_designate): Likewise.
4466
4467         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4468         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4469
4470         * mule-charset.c (Vcharset_ucs): New variable.
4471         (print_charset): Change design; use `CHARSET_CHARS' and
4472         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4473         (make_charset): Change signature to specify `chars' and
4474         `dimension' instead of `type'.
4475         (range_charset_code_point): Modify for 256^n-set.
4476         (encode_builtin_char_1): Encode as `ucs' in default.
4477         (Fmake_charset): Modify for `make_charset'.
4478         (Fmake_reverse_direction_charset): Likewise.
4479         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4480         UTF-2000.
4481         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4482         for `make_charset'.
4483
4484         * char-ucs.h (Vcharset_ucs): New variable.
4485         (LEADING_BYTE_UCS): New macro.
4486         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4487         and `chars' to `unsigned short' from `unsigned int'.
4488         (CHARSET_TYPE): Deleted.
4489         (XCHARSET_TYPE): Deleted.
4490
4491 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4492
4493         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4494
4495         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4496         (ENCODE_CHAR): New macro.
4497
4498 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4499
4500         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4501         to 0.14 (Kawachi-Katakami).
4502
4503 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4504
4505         * text-coding.c (char_encode_shift_jis): Modify for
4506         `charset_code_point'.
4507         (char_encode_iso2022): Likewise.
4508
4509         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4510         (integer) instead of list of <Lisp_Object>s (integers) as the
4511         format of code-point of a coded-charset.
4512         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4513         (encode_builtin_char_1): New function; delete
4514         `split_builtin_char'.
4515         (charset_code_point): Return <int> instead of <Lisp_Object>.
4516         (Fsplit_char): Don't use `SPLIT_CHAR'.
4517
4518         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4519         prototype for `split_builtin_char'.
4520         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4521         (charset_code_point): Likewise.
4522         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4523         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4524
4525 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4526
4527         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4528         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4529
4530 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4531
4532         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4533
4534         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4535         (MAX_CHAR_OBS_94x94): Deleted.
4536
4537 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4538
4539         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4540
4541         * char-ucs.h (MAX_CHAR_BMP): New macro.
4542
4543 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4544
4545         * text-coding.c: Sync with r21-2-24.
4546
4547 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4548
4549         * file-coding.c: Modify for UTF-2000.
4550
4551 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4552
4553         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4554         to 0.13 (Takaida).
4555
4556 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4557
4558         * mule-charset.c (split_builtin_char): Delete builtin support for
4559         `katakana-jisx0201'.
4560         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4561         BMP area in builtin representation.
4562
4563         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4564         `Vcharset_katakana_jisx0201'.
4565
4566 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4567
4568         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4569         (Qisolated): New variable.
4570         (Qinitial): New variable.
4571         (Qmedial): New variable.
4572         (Qfinal): New variable.
4573         (Qvertical): New variable.
4574         (Qsmall): New variable.
4575         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4576         `Qvertical' and `Qsmall'.
4577         (Qmojikyo_pj_[1 .. 21]): New variable.
4578         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4579         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4580         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4581         .. 21]'.
4582
4583 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4584
4585         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4586         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4587         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4588
4589 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4590
4591         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4592         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4593         BMP.
4594         (Qjapanese_jisx0208_1990): New variable.
4595         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4596         (complex_vars_of_mule_charset): Add new coded-charset
4597         `japanese-jisx0208-1990'.
4598
4599         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4600         (MIN_CHAR_JIS_X0208_1990): New macro.
4601         (MAX_CHAR_JIS_X0208_1990): New macro.
4602
4603 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4604
4605         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4606         coded-charset is not found.
4607
4608 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4609
4610         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4611         (Fdefine_char): Use `Fmake_char'.
4612
4613 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4614
4615         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4616         (Vcharset_hiragana_jisx0208): Deleted.
4617         (Vcharset_katakana_jisx0208): Deleted.
4618         (Qideograph_daikanwa): New variable.
4619         (Qhiragana_jisx0208): Deleted.
4620         (Qkatakana_jisx0208): Deleted.
4621         (split_builtin_char): Split `ideograph-daikanwa'.
4622         (Fsplit_char): New implementation for UTF-2000.
4623         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4624         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4625         (complex_vars_of_mule_charset): Add new coded-charset
4626         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4627         `katakana-jisx0208'.
4628
4629         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4630         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4631         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4632         (MIN_CHAR_DAIKANWA): New macro.
4633         (MAX_CHAR_DAIKANWA): New macro.
4634
4635 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4636
4637         * data.c (Fstring_to_number): Don't recognize floating point if
4638         base is not 10.
4639
4640 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4641
4642         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4643
4644 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4645
4646         * mule-charset.c (Qsquare): New variable.
4647         (to_char_code): Add `Qsquare'.
4648         (syms_of_mule_charset): Add new symbol `square'.
4649
4650 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4651
4652         * mule-charset.c (Qcircle): New variable.
4653         (to_char_code): Add `Qcircle'.
4654         (syms_of_mule_charset): Add new symbol `circle'.
4655
4656 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4657
4658         * mule-charset.c (Qfont): New variable.
4659         (to_char_code): Add `Qfont'.
4660         (syms_of_mule_charset): Add new symbol `font'.
4661
4662 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4663
4664         * mule-charset.c (Qsub): New variable.
4665         (to_char_code): Add `Qsub'.
4666         (syms_of_mule_charset): Add new symbol `sub'.
4667
4668 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4669
4670         * mule-charset.c (Fput_char_attribute): Convert each element of
4671         VALUE to GL position if ATTRIBUTE is a GR-set,
4672
4673 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4674
4675         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4676         coded-charset is a GR-set.
4677
4678 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4679
4680         * mule-charset.c (Fput_char_attribute): Check each element of
4681         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4682
4683 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4684
4685         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4686         UTF-2000.
4687         (Qethiopic_ucs): New variable in UTF-2000.
4688         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4689         (complex_vars_of_mule_charset): Add new coded-charset
4690         `ethiopic-ucs' in UTF-2000.
4691
4692         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4693         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4694         9)'.
4695         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4696         10)'.
4697         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4698
4699 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4700
4701         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4702         `ascii'.
4703
4704 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4705
4706         * mule-charset.c (Vcharacter_variant_table): New variable.
4707         (Q_ucs): New variable.
4708         (Fchar_variants): New function.
4709         (Fput_char_attribute): Register `->ucs' value to
4710         `Vcharacter_variant_table'.
4711         (syms_of_mule_charset): Add new function `char-variants' and new
4712         symbol `->ucs'.
4713         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4714
4715 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4716
4717         * mule-charset.c (get_char_code_table): Allow negative character
4718         code.
4719         (put_char_code_table): Likewise.
4720         (Vcharacter_composition_table): New variable.
4721         (Q_decomposition): New variable.
4722         (Qwide): New variable.
4723         (Qnarrow): New variable.
4724         (Qcompat): New variable.
4725         (QnoBreak): New variable.
4726         (Qsuper): New variable.
4727         (Qfraction): New variable.
4728         (to_char_code): New function.
4729         (Fget_composite_char): New function.
4730         (Fput_char_attribute): Register `->decomposition' value to
4731         `Vcharacter_composition_table'.
4732         (syms_of_mule_charset): Add new function `get-composite-char', new
4733         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4734         `super' and `fraction'.
4735         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4736
4737 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4738
4739         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4740         character; copy the return value.
4741
4742 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4743
4744         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4745
4746         * mule-charset.c (range_charset_code_point): Must use make_int.
4747         (split_builtin_char): New function.
4748
4749 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4750
4751         * mule-charset.c (char_byte_table): Change name from
4752         "char-code-table" to "char-byte-table".
4753         (mark_char_code_table): New function.
4754         (char_code_table_equal): New function.
4755         (char_code_table_hash): New function.
4756         (char_code_table_description): New constant.
4757         (char_code_table): New type.
4758         (make_char_code_table): New function.
4759         (copy_char_code_table): New function.
4760         (get_char_code_table): Modify for `char_code_table' type.
4761         (put_char_code_table): Likewise.
4762         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4763         (Kashiwara).
4764
4765         * char-ucs.h (char_code_table): New type.
4766         (XCHAR_CODE_TABLE): New macro.
4767         (XSETCHAR_CODE_TABLE): New macro.
4768         (CHAR_CODE_TABLE_P): New macro.
4769         (GC_CHAR_CODE_TABLE_P): New macro.
4770         (struct Lisp_Char_Code_Table): New structure.
4771
4772 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4773
4774         * mule-charset.c (Fmake_charset): Setup byte_offset for
4775         {94|96}^n-set.
4776
4777 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4778
4779         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4780         character.
4781
4782 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4783
4784         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4785         is found.
4786
4787 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4788
4789         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4790         charset, it is regarded as a charset.
4791         (put_char_attribute): New function in UTF-2000.
4792         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4793         charset, mapping-table of the charset is modified.
4794         (Fdefine_char): New function in UTF-2000.
4795         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4796         `Fput_char_attribute'.
4797         (syms_of_mule_charset): Add new function `define-char' and new
4798         symbol `ucs' in UTF-2000.
4799         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4800
4801 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4802
4803         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4804         non-UTF-2000 configuration.
4805
4806 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4807
4808         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4809         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4810
4811         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4812         deleted.
4813         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4814         (Fset_charset_mapping_table): Likewise.
4815
4816         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4817         (CHARSET_ENCODING_TABLE): Delete.
4818         (XCHARSET_ENCODING_TABLE): Delete.
4819         (charset_code_point): New interface.
4820
4821 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4822
4823         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4824         instead of `charset_get_byte1' and `charset_get_byte2'.
4825
4826         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4827         (charset_get_byte2): Deleted.
4828
4829 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4830
4831         * char-ucs.h (SPLIT_CHAR): New inline function.
4832         (breakup_char_1): Use `SPLIT_CHAR'.
4833
4834         * mule-charset.c (range_charset_code_point): New function.
4835         (charset_code_point): New function.
4836
4837         * char-ucs.h (range_charset_code_point): New interface.
4838         (breakup_char_1): Use `range_charset_code_point'.
4839
4840 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4841
4842         * mule-charset.c (Fmake_charset): Delete unused local variable
4843         `code_offset'.
4844
4845         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4846         (breakup_char_1): Find a charset and code-point in
4847         `Vcharacter_attribute_table'.
4848
4849 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4850
4851         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4852         to 0.10 (Yao).
4853
4854 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4855
4856         * mule-charset.c (Vcharacter_attribute_table): New variable.
4857         (Fchar_attribute_alist): New function.
4858         (Fget_char_attribute): New function.
4859         (Fput_char_attribute): New function.
4860         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4861         too.
4862         (syms_of_mule_charset): Add new function `char-attribute-alist',
4863         `get-char-attribute' and `put-char-attribute'.
4864         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4865
4866 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4867
4868         * mule-charset.c (Fmake_charset): Just use
4869         `get_unallocated_leading_byte'.
4870
4871         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4872         sets; don't use final-byte based number for private sets.
4873
4874 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4875
4876         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4877         integer.
4878
4879 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4880
4881         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4882         to 0.9.
4883
4884 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4885
4886         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4887         of `CHAR_LEADING_BYTE' in UTF-2000.
4888
4889         * insdel.c (find_charsets_in_bufbyte_string): Use
4890         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4891         (find_charsets_in_emchar_string): Likewise.
4892
4893         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4894         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4895
4896         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4897         (CHAR_CHARSET_ID): New macro.
4898
4899 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4900
4901         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4902         charset-id - MIN_LEADING_BYTE.
4903         (put_char_table): Likewise.
4904
4905 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4906
4907         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4908         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4909         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4910         (CHARSET_ID_OFFSET): New macro.
4911         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4912         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4913         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4914         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4915         4).
4916         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4917         5).
4918         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4919         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4920         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4921         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4922         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4923
4924 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4925
4926         * mule-charset.c (next_allocated_leading_byte): New variable in
4927         UTF-2000.
4928         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4929         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4930         (get_unallocated_leading_byte): Simply use
4931         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4932         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4933         UTF-2000.
4934
4935         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4936         (MAX_LEADING_BYTE_PRIVATE): New macro.
4937         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4938         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4939
4940 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4941
4942         * mule-charset.c (Fmake_charset): Allocate final-byte based
4943         charset-id for 94-set, 96-set and 94x94-set.
4944
4945 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4946
4947         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4948         ambiguous `else'.
4949         (Fmake_charset): Likewise.
4950         (complex_vars_of_mule_charset): Modify the font registry of
4951         `ucs-bmp' not to match `Ethiopic-Unicode'.
4952
4953 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4954
4955         * mule-charset.c (complex_vars_of_mule_charset): Add font
4956         registory of `ucs-bmp'.
4957
4958 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4959
4960         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4961         coded-charsets in `default-coded-charset-priority-list' when
4962         breaking up a character.
4963
4964         * mule-charset.c (Vcharset_latin_viscii): New variable.
4965         (Qlatin_viscii): New variable.
4966         (make_charset): Don't use `decoding_table'.
4967         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4968         byte_offset.
4969         (Fset_charset_mapping_table): New implementation.
4970         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4971         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4972         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4973         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4974         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4975         charset `latin_viscii'.
4976
4977         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4978         (CHARSET_TYPE_94X94): Change to 1 from 2.
4979         (CHARSET_TYPE_96): Change to 2 from 1.
4980         (CHARSET_TYPE_128): New macro.
4981         (CHARSET_TYPE_128X128): Change to 5 from 4.
4982         (CHARSET_TYPE_256): New macro.
4983         (CHARSET_TYPE_256X256): Change to 7 from 5.
4984         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4985
4986 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4987
4988         * text-coding.c (char_encode_shift_jis): Refer
4989         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4990         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4991
4992         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4993         (char_byte_table_equal): New function in UTF-2000.
4994         (char_byte_table_hash): New function in UTF-2000.
4995         (char_byte_table_description): New constant in UTF-2000.
4996         (char_byte_table): New type in UTF-2000.
4997         (make_char_byte_table): New function in UTF-2000.
4998         (copy_char_byte_table): New function in UTF-2000.
4999         (make_char_code_table): New macro in UTF-2000.
5000         (get_char_code_table): New function in UTF-2000.
5001         (put_char_code_table): New function in UTF-2000.
5002         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
5003         (charset_description): Add setting in UTF-2000.
5004         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
5005         `CHARSET_TO_BYTE1_TABLE(cs)'.
5006         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
5007         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
5008         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
5009         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
5010         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
5011         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
5012         `CHARSET_TO_BYTE2_TABLE(cs)'.
5013
5014         * char-ucs.h (char_byte_table): New type.
5015         (XCHAR_BYTE_TABLE): New macro.
5016         (XSETCHAR_BYTE_TABLE): New macro.
5017         (CHAR_BYTE_TABLE_P): New macro.
5018         (GC_CHAR_BYTE_TABLE_P): New macro.
5019         (struct Lisp_Char_Byte_Table): New structure.
5020         (get_char_code_table): New interface.
5021         (Emchar_to_byte_table): Deleted.
5022         (get_byte_from_character_table): Deleted.
5023         (struct Lisp_Charset): Add `encoding_table'; delete
5024         `to_byte1_table' and `to_byte2_table'.
5025         (CHARSET_ENCODING_TABLE): New macro.
5026         (CHARSET_TO_BYTE1_TABLE): Deleted.
5027         (CHARSET_TO_BYTE2_TABLE): Deleted.
5028         (XCHARSET_ENCODING_TABLE): New macro.
5029         (XCHARSET_TO_BYTE1_TABLE): Deleted.
5030         (XCHARSET_TO_BYTE2_TABLE): Deleted.
5031
5032 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5033
5034         * mule-charset.c (syms_of_mule_charset): Delete charset alias
5035         `vietnamese-viscii-*'.
5036
5037 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5038
5039         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
5040         (Qvietnamese_viscii_upper): New variable.
5041         (Fdefine_charset_alias): New function.
5042         (syms_of_mule_charset): Add new function `define-charset-alias'.
5043         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
5044         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
5045         `latin-viscii-*'.
5046
5047 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
5048
5049         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
5050         (MAX_CHAR_OBS_94x94): New macro.
5051         (breakup_char_1): Support obsolete XEmacs-UCS private code space
5052         for 94x94 sets.
5053
5054         * mule-charset.c (put_byte_from_character_table): Change unit size
5055         from 128 to 256.
5056         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
5057         not defined.
5058         (Fmake_reverse_direction_charset): Modify dummy argument of
5059         `make_charset' for non-UTF-2000 environment.
5060
5061 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5062
5063         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
5064
5065         * mule-charset.c (destroy_byte_from_character_table): New macro.
5066         (latin_jisx0201_to_ucs): Deleted.
5067         (latin_iso8859_2_to_ucs): Deleted.
5068         (latin_iso8859_3_to_ucs): Deleted.
5069         (latin_iso8859_4_to_ucs): Deleted.
5070         (latin_iso8859_9_to_ucs): Deleted.
5071         (latin_viscii_lower_to_ucs): Deleted.
5072         (latin_viscii_upper_to_ucs): Deleted.
5073         (mark_charset): Mark `cs->decoding_table'.
5074         (Fcharset_mapping_table): Fix DOC-string.
5075         (Fset_charset_mapping_table): New function.
5076         (syms_of_mule_charset): Add nwe function
5077         `set-charset-mapping-table'.
5078         (complex_vars_of_mule_charset): Don't setup and use
5079         `latin_*_to_ucs'.
5080
5081 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5082
5083         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
5084         charset.
5085
5086 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5087
5088         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
5089         (Vcharset_katakana_jisx0208): New variable.
5090         (Qhiragana_jisx0208): New variable.
5091         (Qkatakana_jisx0208): New variable.
5092         (make_charset): Add new argument `byte_offset'.
5093         (charset_get_byte1): Modify for new coded-charset definition; use
5094         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5095         `XCHARSET_BYTE_OFFSET'.
5096         (Fmake_charset): Modify for `make_charset'.
5097         (Fmake_reverse_direction_charset): Likewise.
5098         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
5099         `katakana-jisx0208'.
5100         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
5101         `.'  in font registry of charset `katakana-jisx0201',
5102         `latin-jisx0201', `vietnamese-viscii-lower' and
5103         `vietnamese-viscii-upper'; modify DOC-string of charset
5104         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
5105         registry of charset `japanese-jisx0208' not to use font for JIS
5106         X0208:1990; add new charset `hiragana-jisx0208' and
5107         `katakana-jisx0208'.
5108
5109         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
5110         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
5111         (struct Lisp_Charset): Add `byte_offset'.
5112         (CHARSET_BYTE_OFFSET): New macro.
5113         (XCHARSET_UCS_MIN): New macro.
5114         (XCHARSET_UCS_MAX): New macro.
5115         (XCHARSET_CODE_OFFSET): New macro.
5116         (XCHARSET_BYTE_OFFSET): New macro.
5117         (MIN_CHAR_HIRAGANA): New macro.
5118         (MAX_CHAR_HIRAGANA): New macro.
5119         (MIN_CHAR_KATAKANA): New macro.
5120         (MAX_CHAR_KATAKANA): New macro.
5121         (MAKE_CHAR): Modify for new coded-charset definition; use
5122         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5123         `XCHARSET_BYTE_OFFSET'.
5124
5125 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5126
5127         * mule-charset.c (CHAR96): Deleted.
5128         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
5129         <Lisp_Object>.
5130         (latin_iso8859_2_to_ucs): Likewise.
5131         (latin_iso8859_3_to_ucs): Likewise.
5132         (latin_iso8859_4_to_ucs): Likewise.
5133         (latin_iso8859_9_to_ucs): Likewise.
5134         (latin_viscii_lower_to_ucs): Likewise.
5135         (latin_viscii_upper_to_ucs): Likewise.
5136         (latin_tcvn5712_to_ucs): Commented out.
5137         (make_charset): Change type of argument `decoding_table' from
5138         <Emchar*> to <Lisp_Object> [vector of characters].
5139         (Fmake_charset): Modify for `make_charset'.
5140         (Fmake_reverse_direction_charset): Likewise.
5141         (Fcharset_mapping_table): New function in UTF-2000.
5142         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
5143         UTF-2000.
5144         (complex_vars_of_mule_charset): Modify for type change of
5145         `*_to_ucs'; modify for `make_charset'.
5146
5147         * char-ucs.h (struct Lisp_Charset): Change type of
5148         `decoding_table' from <Emchar*> to <Lisp_Object>.
5149         (MAKE_CHAR): Modify for new specification of `decoding_table'.
5150
5151 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
5152
5153         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
5154         error with non-UTF-2000-Mule.
5155
5156 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
5157
5158         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
5159         in lisp again].
5160         (Vcharset_chinese_cns11643_4): Likewise.
5161         (Vcharset_chinese_cns11643_5): Likewise.
5162         (Vcharset_chinese_cns11643_6): Likewise.
5163         (Vcharset_chinese_cns11643_7): Likewise.
5164         (Qchinese_cns11643_3): Likewise.
5165         (Qchinese_cns11643_4): Likewise.
5166         (Qchinese_cns11643_5): Likewise.
5167         (Qchinese_cns11643_6): Likewise.
5168         (Qchinese_cns11643_7): Likewise.
5169         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
5170         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5171         and `chinese-cns11643-7' to lisp/mule/chinese.el.
5172         (complex_vars_of_mule_charset): Likewise.
5173
5174 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
5175
5176         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
5177         96-set.
5178         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
5179         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
5180
5181 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5182
5183         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
5184         0xFF60.
5185         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
5186         (breakup_char_1): Likewise.
5187
5188         * text-coding.c (char_encode_iso2022): Keep designated charsets if
5189         one of them includes the specified character.
5190
5191 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5192
5193         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
5194
5195 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5196
5197         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
5198
5199 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5200
5201         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
5202         definition for non-UTF-2000 Mule.
5203         (latin_iso8859_3_to_ucs): Likewise.
5204         (latin_iso8859_4_to_ucs): Likewise.
5205         (latin_iso8859_9_to_ucs): Likewise.
5206         (latin_jisx0201_to_ucs): Likewise.
5207         (MIN_CHAR_THAI): Likewise.
5208         (MAX_CHAR_THAI): Likewise.
5209         (MIN_CHAR_GREEK): Likewise.
5210         (MAX_CHAR_GREEK): Likewise.
5211         (MIN_CHAR_HEBREW): Likewise.
5212         (MAX_CHAR_HEBREW): Likewise.
5213         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
5214         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
5215         (MIN_CHAR_CYRILLIC): Likewise.
5216         (MAX_CHAR_CYRILLIC): Likewise.
5217
5218 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5219
5220         * char-ucs.h (breakup_char_1): Use
5221         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
5222         thai-tis620 and katakana-jisx0201 area.
5223
5224 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5225
5226         * char-ucs.h (breakup_char_1): Use
5227         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
5228         area.
5229
5230         * text-coding.c (reset_encoding_stream): Fixed.
5231         (char_encode_ucs4): Delete `& 255'.
5232
5233         * char-ucs.h (breakup_char_1): Use
5234         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
5235
5236 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5237
5238         * file-coding.c (Fmake_coding_system): Don't set up
5239         `codesys->fixed.size'.
5240         (encode_coding_no_conversion): Don't refer
5241         `str->codesys->fixed.size'.
5242
5243 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5244
5245         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
5246         (latin_a_char_to_byte1): Deleted.
5247         (latin_a_char_to_byte2): Deleted.
5248
5249 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5250
5251         * mule-charset.c (make_charset): Add new argument `ucs_min',
5252         `ucs_max' and `code_offset'.
5253         (charset_get_byte1): New implementation [delete specific charset
5254         depended implementations].
5255         (Fmake_charset): Modify for `make_charset'.
5256         (Fmake_reverse_direction_charset): Likewise.
5257         (complex_vars_of_mule_charset): Likewise.
5258
5259         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
5260         `code_offset'.
5261         (CHARSET_UCS_MIN): New macro.
5262         (CHARSET_UCS_MAX): New macro.
5263         (CHARSET_CODE_OFFSET): New macro.
5264         (MAKE_CHAR): Delete charset depended definitions [except
5265         katakana-jisx0201].
5266
5267 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
5268
5269         * char-ucs.h (breakup_char_1): Use
5270         `Vdefault_coded_charset_priority_list' for C0-Controls,
5271         Basic-Latin, C1-Controls and Latin-1-Supplement area.
5272
5273 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5274
5275         * char-ucs.h (charset_get_byte1): New function.
5276         (XCHARSET_GET_BYTE1): Deleted.
5277         (charset_get_byte2): New function.
5278         (XCHARSET_GET_BYTE2): Deleted.
5279         (Vdefault_coded_charset_priority_list): New external variable.
5280         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5281         `Vdefault_preferred_coded_charset_list'.
5282
5283         * mule-charset.c (charset_get_byte1): New function.
5284         (charset_get_byte2): New function.
5285         (Vdefault_coded_charset_priority_list): New variable.
5286         (vars_of_mule_charset): Add new variable
5287         `default-coded-charset-priority-list'.
5288
5289 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5290
5291         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5292         (XCHARSET_GET_BYTE2): New inline function.
5293         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5294         `XCHARSET_GET_BYTE2'.
5295
5296 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5297
5298         * mule-charset.c (make_charset): Initialize
5299         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5300         NULL if table is not defined.
5301
5302 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5303
5304         * text-coding.c (char_encode_shift_jis): Use
5305         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5306         `ucs_to_latin_jisx0201'.
5307
5308         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5309         (ucs_to_latin_iso8859_2): Deleted.
5310         (ucs_to_latin_iso8859_3): Deleted.
5311         (ucs_to_latin_iso8859_4): Deleted.
5312         (ucs_to_latin_iso8859_9): Deleted.
5313         (ucs_to_latin_viscii_lower): Deleted.
5314         (ucs_to_latin_viscii_upper): Deleted.
5315         (ucs_to_latin_tcvn5712): Deleted.
5316         (make_charset): Add new argument `decoding_table'; set up
5317         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5318         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5319         `decoding_table' is defined in UTF-2000.
5320         (Fmake_charset): Modify for `make_charset'.
5321         (Fmake_reverse_direction_charset): Likewise.
5322         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5323         and `GENERATE_96_SET'.
5324
5325         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5326         (ucs_to_latin_jisx0201): Deleted.
5327         (latin_iso8859_2_to_ucs): Deleted.
5328         (ucs_to_latin_iso8859_2): Deleted.
5329         (latin_iso8859_3_to_ucs): Deleted.
5330         (ucs_to_latin_iso8859_3): Deleted.
5331         (latin_iso8859_4_to_ucs): Deleted.
5332         (ucs_to_latin_iso8859_4): Deleted.
5333         (latin_iso8859_9_to_ucs): Deleted.
5334         (ucs_to_latin_iso8859_9): Deleted.
5335         (latin_viscii_lower_to_ucs): Deleted.
5336         (ucs_to_latin_viscii_lower): Deleted.
5337         (latin_viscii_upper_to_ucs): Deleted.
5338         (ucs_to_latin_viscii_upper): Deleted.
5339         (struct Lisp_Charset): Renamed `encoding_table' to
5340         `to_byte1_table'; add `to_byte2_table'.
5341         (CHARSET_DECODING_TABLE): New macro.
5342         (CHARSET_TO_BYTE1_TABLE): New macro.
5343         (CHARSET_TO_BYTE2_TABLE): New macro.
5344         (XCHARSET_DECODING_TABLE): New macro.
5345         (XCHARSET_TO_BYTE1_TABLE): New macro.
5346         (XCHARSET_TO_BYTE2_TABLE): New macro.
5347         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5348         tables.
5349         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5350         don't use `ucs_to_*' tables.
5351
5352 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5353
5354         * text-coding.c (Fmake_coding_system): Don't set up
5355         `codesys->fixed.size'.
5356         (encode_coding_no_conversion): Use `if' instead of `switch'.
5357
5358         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5359
5360 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5361
5362         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5363         (Fmake_charset): Modify for `make_charset'.
5364         (Fmake_reverse_direction_charset): Likewise.
5365         (complex_vars_of_mule_charset): Likewise.
5366
5367 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5368
5369         * text-coding.c (char_encode_shift_jis): Use table
5370         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5371
5372 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5373
5374         * text-coding.c (text_encode_generic): Use `if' instead of
5375         `switch'.
5376         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5377         decode JIS-Latin.
5378
5379 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5380
5381         * text-coding.c (encode_coding_sjis): Deleted.
5382         (char_encode_shift_jis): New function.
5383         (char_finish_shift_jis): New function.
5384         (reset_encoding_stream): Set up `encode_char' and `finish' for
5385         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5386         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5387         (char_encode_utf8): Treat `eol_type'.
5388
5389 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5390
5391         * file-coding.c (decode_coding_iso2022): Use
5392         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5393
5394 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5395
5396         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5397         to 0.7 (Hirano).
5398
5399 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5400
5401         * char-lb.h (CHAR_COLUMNS): New macro.
5402
5403 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5404
5405         * text-coding.c (char_encode_ucs4): New function.
5406         (char_finish_ucs4): New function.
5407         (encode_coding_ucs4): Deleted.
5408         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5409         (text_encode_generic): Delete local variable `charset' and `half'.
5410         (ucs_to_mule_table): Deleted.
5411         (mule_to_ucs_table): Deleted.
5412         (Fset_ucs_char): Deleted.
5413         (ucs_to_char): Deleted.
5414         (Fucs_char): Deleted.
5415         (Fset_char_ucs): Deleted.
5416         (Fchar_ucs): Deleted.
5417         (decode_ucs4): Deleted.
5418         (mule_char_to_ucs4): Deleted.
5419         (encode_ucs4): Deleted.
5420         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5421         (decode_coding_utf8): Likewise.
5422         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5423         (char_encode_iso2022): Fixed.
5424         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5425         `Fset_char_ucs' and `Fchar_ucs'.
5426         (complex_vars_of_file_coding): Don't initialize
5427         `ucs_to_mule_table'.
5428
5429         * objects-tty.c (tty_initialize_font_instance): Don't use
5430         `XCHARSET_COLUMNS'.
5431
5432         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5433         UTF-2000.
5434
5435         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5436         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5437
5438         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5439         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5440         (emchar_string_displayed_columns): Likewise.
5441
5442         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5443         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5444         (string_column_at_point): Likewise.
5445         (Fmove_to_column): Likewise.
5446
5447         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5448         `encoding_table' and `decoding_table'.
5449         (CHARSET_REP_BYTES): Deleted.
5450         (XCHARSET_REP_BYTES): Deleted.
5451         (XCHARSET_COLUMNS): Deleted.
5452         (CHAR_COLUMNS): New macro.
5453         (lookup_composite_char): Deleted unconditionally.
5454         (composite_char_string): Likewise.
5455
5456 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5457
5458         * char-ucs.h (Emchar_to_byte_table): New type.
5459         (get_byte_from_character_table): New function interface.
5460         (Vcharset_latin_jisx0201): New variable.
5461         (latin_jisx0201_to_ucs): New variable.
5462         (ucs_to_latin_jisx0201): New variable.
5463         (Vcharset_latin_iso8859_2): New variable.
5464         (latin_iso8859_2_to_ucs): New variable.
5465         (ucs_to_latin_iso8859_2): New variable.
5466         (Vcharset_latin_iso8859_3): New variable.
5467         (latin_iso8859_3_to_ucs): New variable.
5468         (ucs_to_latin_iso8859_3): New variable.
5469         (Vcharset_latin_iso8859_4): New variable.
5470         (latin_iso8859_4_to_ucs): New variable.
5471         (ucs_to_latin_iso8859_4): New variable.
5472         (Vcharset_latin_iso8859_9): New variable.
5473         (latin_iso8859_9_to_ucs): New variable.
5474         (ucs_to_latin_iso8859_9): New variable.
5475         (Vcharset_latin_viscii_lower): New variable.
5476         (latin_viscii_lower_to_ucs): New variable.
5477         (ucs_to_latin_viscii_lower): New variable.
5478         (Vcharset_latin_viscii_upper): New variable.
5479         (latin_viscii_upper_to_ucs): New variable.
5480         (ucs_to_latin_viscii_upper): New variable.
5481         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5482         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5483         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5484         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5485         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5486         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5487         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5488         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5489         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5490         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5491
5492         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5493         (Vcharset_latin_viscii_upper): New variable.
5494         (make_byte_from_character_table): New function.
5495         (put_byte_from_character_table): New function.
5496         (get_byte_from_character_table): New function.
5497         (CHAR96): New macro.
5498         (ucs_to_latin_jisx0201): New variable.
5499         (latin_jisx0201_to_ucs): New variable.
5500         (ucs_to_latin_iso8859_2): New variable.
5501         (latin_iso8859_2_to_ucs): New variable.
5502         (ucs_to_latin_iso8859_3): New variable.
5503         (latin_iso8859_3_to_ucs): New variable.
5504         (ucs_to_latin_iso8859_4): New variable.
5505         (latin_iso8859_4_to_ucs): New variable.
5506         (ucs_to_latin_iso8859_9): New variable.
5507         (latin_iso8859_9_to_ucs): New variable.
5508         (ucs_to_latin_viscii_lower): New variable.
5509         (latin_viscii_lower_to_ucs): New variable.
5510         (ucs_to_latin_viscii_upper): New variable.
5511         (latin_viscii_upper_to_ucs): New variable.
5512         (ucs_to_latin_tcvn5712): New variable.
5513         (latin_tcvn5712_to_ucs): New variable.
5514         (Qlatin_viscii_lower): New variable.
5515         (Qlatin_viscii_upper): New variable.
5516         (syms_of_mule_charset): Set up new symbol
5517         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5518         (complex_vars_of_mule_charset): Set up new charset
5519         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5520         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5521         `ucs_to_<CHARSET>' tables.
5522
5523 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5524
5525         * text-coding.c: New file.
5526
5527 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5528
5529         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5530
5531         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5532         (MAKE_CHAR): Modify for `ucs-bmp'.
5533         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5534         non-MULE characters of BMP.
5535
5536 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5537
5538         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5539         to 0.6.
5540
5541 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5542
5543         * lstream.h:
5544         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5545         - Include character.h for `CHAR_ASCII_P'.
5546
5547         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5548
5549         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5550         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5551
5552         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5553         (BYTE_C0_P): Likewise.
5554         (BYTE_C1_P): Likewise.
5555         (Lstream_get_emchar_1): Likewise.
5556         (Lstream_fput_emchar): Likewise.
5557         (Lstream_funget_emchar): Likewise.
5558         (copy_internal_to_external): Likewise.
5559         (copy_external_to_internal): Likewise.
5560
5561         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5562         (BYTE_C0_P): Likewise.
5563         (BYTE_C1_P): Likewise.
5564         (Lstream_get_emchar_1): Likewise.
5565         (Lstream_fput_emchar): Likewise.
5566         (Lstream_funget_emchar): Likewise.
5567         (copy_internal_to_external): Likewise.
5568         (copy_external_to_internal): Likewise.
5569
5570         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5571         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5572
5573         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5574         (BYTE_ASCII_P): Moved to mb-1byte.h.
5575
5576 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5577
5578         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5579
5580         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5581         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5582         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5583         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5584         (VALIDATE_CHARPTR_FORWARD): Likewise.
5585         (simple_charptr_emchar): Moved to mb-multibyte.h.
5586         (simple_set_charptr_emchar): Likewise.
5587         (simple_charptr_copy_char): Likewise.
5588         (non_ascii_charptr_emchar): Likewise.
5589         (non_ascii_set_charptr_emchar): Likewise.
5590         (non_ascii_charptr_copy_char): Likewise.
5591         (charptr_emchar): Moved to mb-*byte.h.
5592         (set_charptr_emchar): Likewise.
5593         (charptr_copy_char): Likewise.
5594
5595         * mb-1byte.h, mb-multibyte.h: New files.
5596
5597 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5598
5599         * mb-utf-8.h (MULTIBYTE): New macro.
5600         (MAX_EMCHAR_LEN): Moved from buffer.h.
5601         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5602
5603         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5604
5605         * mb-lb.h, multibyte.h: New files.
5606
5607         * char-1byte.h (Charset_ID): Moved from buffer.h.
5608         (MIN_LEADING_BYTE): Likewise.
5609         (LEADING_BYTE_ASCII): Likewise.
5610         (NUM_LEADING_BYTES): Likewise.
5611         (CHARSETP): Likewise.
5612         (CHARSET_BY_LEADING_BYTE): Likewise.
5613         (XCHARSET_LEADING_BYTE): Likewise.
5614         (XCHARSET_GRAPHIC): Likewise.
5615         (XCHARSET_COLUMNS): Likewise.
5616         (XCHARSET_DIMENSION): Likewise.
5617         (CHAR_CHARSET): Likewise.
5618         (CHAR_LEADING_BYTE): Likewise.
5619         (BREAKUP_CHAR): Likewise.
5620         (Vcharset_ascii): Likewise.
5621
5622         * buffer.h: Include multibyte.h unconditionally.
5623         (VALID_CHARPTR_P): Moved to multibyte.h.
5624         (ASSERT_VALID_CHARPTR): Likewise.
5625         (REAL_INC_CHARPTR): Likewise.
5626         (REAL_INC_CHARBYTIND): Likewise.
5627         (REAL_DEC_CHARPTR): Likewise.
5628         (INC_CHARPTR): Likewise.
5629         (INC_CHARBYTIND): Likewise.
5630         (DEC_CHARPTR): Likewise.
5631         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5632         (VALIDATE_CHARPTR_FORWARD): Likewise.
5633         (charptr_n_addr): Likewise.
5634         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5635         (simple_charptr_emchar): Moved to multibyte.h.
5636         (simple_set_charptr_emchar): Likewise.
5637         (simple_charptr_copy_char): Likewise.
5638         (non_ascii_charptr_emchar): Likewise.
5639         (non_ascii_set_charptr_emchar): Likewise.
5640         (non_ascii_charptr_copy_char): Likewise.
5641         (charptr_emchar): Likewise.
5642         (set_charptr_emchar): Likewise.
5643         (charptr_copy_char): Likewise.
5644         (charptr_emchar_n): Likewise.
5645         (Charset_ID): Moved to char-1byte.h.
5646         (Vcharset_ascii): Likewise.
5647         (CHAR_CHARSET): Likewise.
5648         (CHAR_LEADING_BYTE): Likewise.
5649         (LEADING_BYTE_ASCII): Likewise.
5650         (NUM_LEADING_BYTES): Likewise.
5651         (MIN_LEADING_BYTE): Likewise.
5652         (CHARSETP): Likewise.
5653         (CHARSET_BY_LEADING_BYTE): Likewise.
5654         (XCHARSET_LEADING_BYTE): Likewise.
5655         (XCHARSET_GRAPHIC): Likewise.
5656         (XCHARSET_COLUMNS): Likewise.
5657         (XCHARSET_DIMENSION): Likewise.
5658         (BREAKUP_CHAR): Likewise.
5659
5660 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5661
5662         * character.h: Add document about interface for characters.
5663
5664         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5665         (MAKE_CHAR): Delete comment about
5666         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5667         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5668         (BREAKUP_CHAR): Modify name of arguments.
5669         (CHAR_CHARSET): Modify name of argument.
5670
5671         * buffer.h: Delete document about Emchar accessors.
5672
5673 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5674
5675         * character.h (CHAR_INTP): Moved from buffer.h
5676         (CHAR_OR_CHAR_INTP): Likewise.
5677         (XCHAR_OR_CHAR_INT): Likewise.
5678         (CHECK_CHAR_COERCE_INT): Likewise.
5679
5680         * buffer.h (CHAR_INTP): Moved to character.h
5681         (CHAR_OR_CHAR_INTP): Likewise.
5682         (XCHAR_OR_CHAR_INT): Likewise.
5683         (CHECK_CHAR_COERCE_INT): Likewise.
5684
5685 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5686
5687         * character.h:
5688         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5689         - Include char-1byte.h, char-lb.h or char-ucs.h.
5690
5691         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5692
5693         * buffer.h: Include character unconditionally.
5694         (valid_char_p): Moved to char-*.h.
5695         (non_ascii_valid_char_p): Moved to char-lb.h.
5696
5697         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5698
5699 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5700
5701         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5702         in UTF-2000 because it is not ported yet and not to use
5703         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5704         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5705         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5706
5707         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5708         (CHAR_ASCII_P): Moved from character.h.
5709
5710         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5711         (CHAR_ASCII_P): Likewise.
5712         (CHAR_FIELD1_MASK): Deleted.
5713         (CHAR_FIELD2_MASK): Deleted.
5714         (CHAR_FIELD3_MASK): Deleted.
5715         (MAX_CHAR_BASIC_LATIN): New macro.
5716         (CHAR_FIELD1): Deleted.
5717         (CHAR_FIELD2_INTERNAL): Deleted.
5718         (CHAR_FIELD3_INTERNAL): Deleted.
5719         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5720         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5721         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5722         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5723         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5724         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5725         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5726         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5727         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5728         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5729         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5730         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5731         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5732         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5733         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5734         (MIN_CHAR_COMPOSITION): Deleted.
5735         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5736         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5737
5738 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5739
5740         * buffer.h: Include mb-utf-8.h in UTF-2000.
5741
5742         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5743
5744         * mb-utf-8.h: New file.
5745
5746 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5747
5748         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5749         instead of `int'.
5750
5751         * mule-charset.h, buffer.h (Charset_ID): New type.
5752
5753 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5754
5755         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5756         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5757         instead of `MULE_CHAR_PRIVATE_OFFSET',
5758         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5759         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5760         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5761
5762         * character.h (Vcharset_japanese_jisx0212): New variable
5763         definition.
5764
5765 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5766
5767         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5768         (charset_by_attributes): Delete array about direction.
5769         (latin_a_char_to_charset): New variable in UTF-2000.
5770         (latin_a_char_to_byte1): New variable in UTF-2000.
5771         (latin_a_char_to_byte2): New variable in UTF-2000.
5772         (Qucs_bmp): New variable.
5773         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5774         `Bufbyte'.
5775         (next_allocated_2_byte_leading_byte): Likewise.
5776         (non_ascii_set_charptr_emchar): Likewise.
5777         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5778         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5779         `charset_by_attributes'.
5780         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5781         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5782         and `CHARSET_BY_LEADING_BYTE'.
5783         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5784         `utf-2000-version' to `vars_of_mule_charset'.
5785         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5786         define `leading-code-private-11' in UTF-2000; move setting of
5787         `utf-2000-version' from `syms_of_mule_charset'.
5788         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5789         UTF-2000.
5790
5791         * character.h (Charset_ID): New type.
5792         (LEADING_BYTE_UCS_BMP): New macro.
5793         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5794         (CHARSET_ID_OFFSET_94): New macro.
5795         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5796         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5797         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5798         final-byte.
5799         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5800         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5801         (CHARSET_ID_OFFSET_96): New macro.
5802         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5803         CHARSET_ID_OFFSET_96 and final-byte.
5804         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5805         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5806         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5807         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5808         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5809         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5810         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5811         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5812         (LEADING_BYTE_THAI_TIS620): Likewise.
5813         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5814         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5815         (CHARSET_ID_OFFSET_94x94): New macro.
5816         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5817         CHARSET_ID_OFFSET_94x94 and final-byte.
5818         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5819         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5820         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5821         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5822         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5823         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5824         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5825         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5826         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5827         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5828         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5829         (CHARSET_TYPE_128X128): New macro.
5830         (CHARSET_TYPE_256X256): New macro.
5831         (XCHARSET_PRIVATE_P): Delete unconditionally.
5832         (charset_by_attributes): Delete array about direction.
5833         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5834         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5835         (MIN_CHAR_94): New macro.
5836         (MAX_CHAR_94): New macro.
5837         (MIN_CHAR_96): New macro.
5838         (MAX_CHAR_96): New macro.
5839         (MIN_CHAR_94x94): New macro.
5840         (MAX_CHAR_94x94): New macro.
5841         (MIN_CHAR_96x96): New macro.
5842         (MAX_CHAR_96x96): New macro.
5843         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5844         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5845         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5846         - 32)'.
5847         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5848         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5849         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5850         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5851         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5852         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5853         `XCHARSET_LEADING_BYTE' to make code-point.
5854         (latin_a_char_to_charset): New variable.
5855         (latin_a_char_to_byte1): New variable.
5856         (latin_a_char_to_byte2): New variable.
5857         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5858         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5859         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5860
5861         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5862         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5863         (find_charsets_in_emchar_string): Likewise.
5864         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5865
5866         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5867         `int'.
5868         (decode_coding_iso2022): Likewise.
5869
5870         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5871         of `unsigned char'.
5872
5873         * redisplay.c (redisplay_text_width_emchar_string): Use
5874         `Charset_ID' instead of `unsigned char'.
5875         (redisplay_frame_text_width_string): Likewise.
5876
5877         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5878         `unsigned char'.
5879
5880         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5881         instead of `unsigned char'.
5882         (face_cachel_charset_font_metric_info): Likewise.
5883
5884         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5885         (get_non_ascii_char_table_value): Likewise.
5886         (get_char_table): Likewise.
5887         (put_char_table): Likewise.
5888         (map_over_other_charset): Likewise.
5889         (map_char_table): Likewise.
5890
5891         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5892         instead of `unsigned char'.
5893
5894 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5895
5896         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5897         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5898
5899         * mule-charset.c (leading_code_private_11): Don't define in
5900         UTF-2000.
5901
5902         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5903         in UTF-2000 because it is not ported yet and not to use
5904         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5905
5906 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5907
5908         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5909
5910 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5911
5912         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5913         in UTF-2000.
5914
5915         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5916         of unsigned char to store leading-byte.
5917
5918         * chartab.c (get_non_ascii_char_table_value): Don't use
5919         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5920
5921         * file-coding.c (encode_coding_big5): Delete bogus implementation
5922         in UTF2000.
5923
5924         * character.h (LEADING_BYTE_*): Delete definition for
5925         non-UTF-2000.
5926         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5927         (LEADING_BYTE_PREFIX_P): Deleted.
5928         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5929         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5930         (BUFBYTE_LEADING_BYTE_P): Deleted.
5931         (CHARSET_PRIVATE_P): Deleted unconditionally.
5932         (rep_bytes_by_first_byte): Deleted unconditionally.
5933         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5934         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5935         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5936         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5937         (CHAR_FIELD2): Deleted.
5938         (CHAR_FIELD3): Deleted.
5939         (MAKE_CHAR): Delete definition for non-UTF-2000.
5940         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5941         (breakup_char_1): New implementation.
5942         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5943         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5944
5945 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5946
5947         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5948         condition.
5949
5950 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5951
5952         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5953         (CHARSET_PRIVATE_P): Likewise.
5954         (XCHARSET_PRIVATE_P): Likewise.
5955         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5956
5957         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5958         UTF2000.
5959         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5960
5961 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5962
5963         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5964         (NUM_LEADING_BYTES): Changed from 128 to 256.
5965         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5966         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5967         UTF2000.
5968         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5969
5970         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5971         UTF2000.
5972         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5973         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5974         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5975         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5976         (Qchinese_cns11643_3): New variable in UTF2000.
5977         (Qchinese_cns11643_4): New variable in UTF2000.
5978         (Qchinese_cns11643_5): New variable in UTF2000.
5979         (Qchinese_cns11643_6): New variable in UTF2000.
5980         (Qchinese_cns11643_7): New variable in UTF2000.
5981         (syms_of_mule_charset): Define `chinese-cns11643-3',
5982         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5983         and `chinese-cns11643-7' in UTF2000.
5984         (vars_of_mule_charset): Initialize
5985         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5986         + 1 in UTF2000.
5987         (complex_vars_of_mule_charset): Setup charset
5988         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5989         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5990
5991 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5992
5993         * mule-charset.c: Move setting for `leading-code-private-11' from
5994         `syms_of_mule_charset' to `vars_of_mule_charset'.
5995
5996 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5997
5998         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5999         and `NUM_LEADING_BYTES' in assert.
6000
6001 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
6002
6003         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
6004         instead of 128.
6005         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
6006         `NUM_LEADING_BYTES' instead of 128.
6007
6008 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
6009
6010         * mule-charset.h (charset_by_leading_byte): Use
6011         `NUM_LEADING_BYTES' instead of 128.
6012         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
6013
6014         * mule-charset.c (charset_by_leading_byte): Use
6015         `NUM_LEADING_BYTES' instead of 128.
6016         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
6017
6018         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
6019         128.
6020
6021 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
6022
6023         * mule-charset.c (syms_of_mule_charset): Update to
6024         0.4 (Shin-Imamiya).
6025
6026 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
6027
6028         * file-coding.c (encode_coding_sjis): New implementation for
6029         UTF2000.  (decode_coding_sjis): Ditto.
6030
6031 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
6032
6033         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
6034         Don't define in UTF2000.
6035
6036         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
6037         defined.
6038
6039         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
6040         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
6041         MULE.
6042
6043 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
6044
6045         * config.h.in (CHAR_IS_UCS4): New macro.
6046
6047         * mule-charset.c (rep_bytes_by_first_byte): Modify for
6048         conventional MULE representation.
6049         (syms_of_mule_charset): Update to 0.3 (Imamiya).
6050
6051         * mule-charset.h: Reverted to original.
6052
6053         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
6054         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
6055         "mule-charset.h" if CHAR_IS_UCS4 is defined.
6056
6057         * character.h: New file.
6058
6059         * file-coding.c (Fmake_coding_system): Set 1 to
6060         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
6061         defined.
6062         (encode_coding_no_conversion): New implementation for UTF2000.
6063
6064         * file-coding.h (struct Lisp_Coding_System): Add new member
6065         `fixed.size'.
6066
6067 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
6068
6069         * file-coding.c (decode_coding_iso2022): Code-point arguments of
6070         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
6071         (encode_coding_iso2022): New implementation for UTF2000.
6072
6073 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6074
6075         * mule-canna.c (c2mu): New implementation for UTF2000.
6076         (m2c): Likewise.
6077
6078 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6079
6080         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
6081
6082 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6083
6084         * file-coding.c (reset_encoding_stream): Set 0 to
6085         `str->iso2022.current_char_boundary' in UTF2000.
6086         (encode_utf8): Don't define in UTF2000.
6087         (encode_coding_utf8): New implementation for UTF-8 representation
6088         of UTF2000.
6089         (complex_vars_of_file_coding): Define coding-system `utf-8'.
6090
6091 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6092
6093         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
6094
6095         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
6096         UTF2000.
6097         (REP_BYTES_BY_FIRST_BYTE): Likewise.
6098
6099         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
6100
6101         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
6102         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
6103         as UTF-8 in UTF2000.
6104         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
6105         (non_ascii_valid_char_p): Don't define in UTF2000.
6106         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
6107         (Lstream_get_emchar_1): Likewise.
6108         (utf-2000-version): New variable in UTF2000.
6109
6110         * lread.c (read_escape): Add new reader `u'.
6111
6112         * insdel.c (three_to_one_table): Don't define in UTF2000.
6113         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
6114         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6115         UTF2000.
6116         (bytind_to_bufpos_func): Likewise.
6117         (buffer_mule_signal_inserted_region): Likewise.
6118         (vars_of_insdel): Don't initialize `three_to_one_table'.
6119         (init_buffer_text): Use `buf->text->mule_size' instead of
6120         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6121         UTF2000.
6122
6123         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
6124         UTF-8 representation in UTF2000.
6125         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
6126         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
6127         (decode_coding_iso2022): Don't define local variable `lb' in
6128         UTF2000; don't use LEADING_BYTE in UTF2000; use
6129         `DECODE_ADD_UCS_CHAR' in UTF2000.
6130         (convert_to_external_format): Decode as UTF-8 in UTF2000.
6131
6132         * config.h.in (UTF2000): New macro.
6133
6134         * buffer.h (struct buffer_text): Add new member `mule_size' and
6135         don't add `mule_shifter' and `mule_three_p' in UTF2000.
6136         (valid_char_p): Return always 1 in UTF2000.
6137         (MAX_EMCHAR_LEN): 6 in UTF2000.
6138         (three_to_one_table): Don't define in UTF2000.
6139         (real_bufpos_to_bytind): Modify for UTF-8 representation in
6140         UTF2000.
6141         (real_bytind_to_bufpos): Likewise.
6142
6143         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
6144
6145 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
6146
6147         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
6148         representation change.
6149         (Vutf_2000_version): New variable.
6150         (leading_code_private_11): New variable.
6151         (syms_of_mule_charset): Add new variables `utf-2000-version' and
6152         `leading-code-private-11'.
6153
6154         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
6155         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
6156         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
6157         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
6158         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
6159         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
6160         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
6161         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
6162         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
6163         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
6164         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
6165         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
6166         (MIN_CHAR_GREEK): New macro.
6167         (MAX_CHAR_GREEK): New macro.
6168         (MIN_CHAR_CYRILLIC): New macro.
6169         (MAX_CHAR_CYRILLIC): New macro.
6170         (MIN_CHAR_HEBREW): New macro.
6171         (MAX_CHAR_HEBREW): New macro.
6172         (MIN_CHAR_THAI): New macro.
6173         (MAX_CHAR_THAI): New macro.
6174         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
6175         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
6176         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
6177         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
6178         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
6179         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
6180         (CHAR_FIELD2): New inline function.
6181         (CHAR_FIELD3): New inline function.
6182         (MULE_CHAR_PRIVATE_OFFSET): New macro.
6183         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
6184         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
6185         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
6186         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
6187         (MIN_CHAR_COMPOSITION): Likewise.
6188         (CHAR_LEADING_BYTE): Modified for character representation change.
6189         (MAKE_CHAR): Likewise.
6190
6191         * lisp.h (Vcharset_latin_iso8859_1): New variable.
6192         (Vcharset_greek_iso8859_7): Likewise.
6193         (Vcharset_cyrillic_iso8859_5): Likewise.
6194         (Vcharset_hebrew_iso8859_8): Likewise.
6195         (Vcharset_thai_tis620): Likewise.
6196         (Vcharset_katakana_jisx0201): Likewise.
6197
6198 2008-12-28  Vin Shelton  <acs@xemacs.org>
6199
6200         * XEmacs 21.4.22 is released
6201
6202 2008-12-27  Vin Shelton  <acs@xemacs.org>
6203
6204         * syswindows.h: Don't define wide character interfaces for Cygwin
6205         1.7 and up.
6206
6207 2008-03-05  Dominique Quatravaux  <domq@cpan.org>
6208
6209         * glyphs-gtk.c: Fixed compilation under gcc 4.x.
6210
6211 2008-11-01  Stephen J. Turnbull  <stephen@xemacs.org>
6212
6213         * regex.c (re_search_2): Fix at_dot by changing charpos to bytepos.
6214         From Julian Bradfield <18654.1143.304851.782755@krk.inf.ed.ac.uk>.
6215
6216 2008-12-25  Vin Shelton  <acs@xemacs.org>
6217
6218         * mule-ccl.c (ccl_driver): Fix off-by-one error.
6219         By Julian Bradfield in
6220         <18691.16568.526264.972026@krk.inf.ed.ac.uk>.
6221
6222         * mule-ccl.c (ccl_driver): 
6223
6224 2007-10-07  Vin Shelton  <acs@xemacs.org>
6225
6226         * XEmacs 21.4.21 is released
6227
6228 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
6229
6230         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
6231
6232 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
6233
6234         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
6235         (png_instantiate): Initialize setjmp_buffer early, and avoid
6236         recursive entry to error handler.
6237
6238 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
6239
6240         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
6241         a typo fix.
6242
6243 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
6244
6245         * event-Xt.c (x_reset_modifier_mapping):
6246         * event-gtk.c (gtk_reset_modifier_mapping):
6247         Zero out the device's modifier map once we've freed it, to prevent
6248         a double free on a re-entrant call. 
6249
6250 2007-05-17  Vin Shelton  <acs@xemacs.org>
6251
6252         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
6253         64-bit linux.  Patch from Hans de Graaff.
6254
6255 2007-05-02  Vin Shelton  <acs@xemacs.org>
6256
6257         * dumper.c (pdump): Don't close pdump_fd (already closed by
6258         fclose() call.  Patch from Steve Higham.
6259         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
6260         already closed.  Patch inspired by Steve Higham.
6261
6262 2007-05-01  Vin Shelton  <acs@xemacs.org>
6263
6264         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
6265         (mswindows_fstat): Ditto.
6266         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
6267
6268 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
6269
6270         * postgresql.c: Update Steve Baur's email address by his request.
6271         * postgresql.h: Ditto.
6272
6273 2007-01-04  Vin Shelton  <acs@xemacs.org>
6274
6275         * fileio.c (check_writable): Check old-style readonly bit only for
6276         non-directories.
6277
6278 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
6279
6280         * src/fileio.c (check_writable): 
6281         Cope with the fact that the read-only attribute trumps Windows NTFS
6282         ACLS.
6283
6284
6285 2006-12-09  Vin Shelton  <acs@xemacs.org>
6286
6287         * XEmacs 21.4.20 is released
6288
6289 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
6290
6291         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
6292         relocated the definitions to be used sooner in file.
6293         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6294         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6295         overflow.
6296
6297 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
6298
6299         * sound.c (init_native_sound):
6300         Only X11 and GTK devices can possibly not be on the console of the
6301         associated machine. Fixes a crash when init_native_sound is called
6302         on a msprinter device. 
6303
6304 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
6305
6306         * buffer.c (buffer-file-name): Document invariant.
6307         (buffer-file-truename): Sync wording to buffer-file-name.
6308         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6309         and discussion.
6310
6311 2006-11-19  Benson Margulies  <benson@dchbk.us>
6312
6313         * fileio.c: Add code to use full Win32 API to check for write
6314         access.  Win32 has the general design policy that you aren't
6315         supposed to ask this question, since security checks change
6316         depending on asynchronous processes.  Nonetheless, there is a way,
6317         by acting as if we are a server doing interpretive access
6318         control.
6319
6320 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6321
6322         * bytecode.c: Use xnew_array instead of alloca.
6323
6324 2006-07-04  Vin Shelton  <acs@xemacs.org>
6325
6326         * redisplay-msw.c: Fix tiny, but crucial typo.
6327
6328 2006-06-22  Jerry James  <james@xemacs.org>
6329
6330         * EmacsShell-sub.c (ChangeManaged):
6331         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6332         NULL.
6333         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6334         checking if it is NULL.  Also fix a memory leak.
6335         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6336         dereference it, not the other way around.
6337         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6338         overflow check.
6339         * dumper.c (pdump_register_struct): Ditto.
6340         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6341         to (short) warnpath overflow warnpath.
6342         * extents.c (detach_all_extents): Call extent_list_delete_all with
6343         a non-NULL parameter only.
6344         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6345         NULL width and height.
6346         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6347         xic before checking if they are NULL.
6348         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6349         allocated array.
6350         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6351         * nas.c (Err): Fix a memory leak.
6352         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6353         Don't create the buffer if there is nothing to do.
6354         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6355         * redisplay-output.c (redisplay_output_layout): Ditto.
6356         * redisplay-tty.c (tty_output_display_block): Ditto.
6357         * redisplay-x.c (x_output_display_block): Ditto.
6358         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6359         dereference instance->scrollbar_data if it is NULL.
6360         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6361         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6362         for sb->scrollbar_data.
6363         * sound.c (init_native_sound): Avoid a buffer overflow by
6364         allocating a buffer with the appropriate size.
6365
6366 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6367
6368         * EmacsShell-sub.c (RootGeometryManager):
6369         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6370         Based on a suggestion by Francois L'Archeveque.
6371
6372 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6373
6374         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6375         current values found in GNU Emacs.
6376
6377 2006-03-17  Vin Shelton  <acs@xemacs.org>
6378
6379         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6380         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6381
6382         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6383         'hex_initialized' because it conflicts with 'initialized' in
6384         lisp.h.
6385
6386 2006-01-28  Vin Shelton  <acs@xemacs.org>
6387
6388         * XEmacs 21.4.19 is released
6389
6390 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6391
6392         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6393
6394 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6395
6396         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6397         5000 to INT_MAX.
6398
6399 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6400
6401         * database.c: Suppress compiler warning under Cygwin.
6402         * database.c: Removed __FreeBSD__ check, should be handled by
6403         HAVE_U_xxx_T defines.
6404
6405 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6406
6407         * console.c (stuff_buffered_input): Compile body only if
6408         HAVE_TTY.
6409
6410 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6411
6412         * callproc.c: #include sysdir.h, so that any appropriate Mule
6413         magic happens with the chdir() call when calling a subprocess. 
6414
6415 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6416
6417         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6418         * mule-ccl.c: Check that a character set exists before using it
6419         to create a character. 
6420
6421 2005-12-06  Vin Shelton  <acs@xemacs.org>
6422
6423         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6424         to INT_MAX.
6425
6426 2005-12-03  Vin Shelton <acs@xemacs.org>
6427
6428         * XEmacs 21.4.18 is released
6429
6430 2005-11-27  Kean Johnston <kean@armory.com>
6431
6432         * redisplay-tty.c (set_tty_modes):
6433         (reset_tty_modes): disable auto-margins if the terminal supports
6434         them.
6435         (init_tty_for_redisplay): fix cursor shape.
6436
6437 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6438
6439         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6440         for control-1 characters properly, both when reading multibyte
6441         characters and writing them. 
6442
6443 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6444
6445         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6446         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6447         were seeing with incremental selection transfer failing. 
6448
6449 2005-11-26  Vin Shelton  <acs@xemacs.org>
6450
6451         * callproc.c (Fold_call_process_internal): Create the buffer if it
6452         does not already exist.  The original patch came from Ben Wing in
6453         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6454
6455 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6456
6457         * callproc.c: Process-related docstring improvements spurred by
6458         Norbert Koch.
6459
6460 2005-11-25  Vin Shelton  <acs@xemacs.org>
6461
6462         * depend: Regenerated.
6463
6464 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6465
6466         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6467         says it clashes with a global with the same name.
6468
6469 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6470
6471         * sysdll.c (dll_open): Under MacOS X return NULL under the
6472         filename is NULL.  Fixes problems finding local symbols under 10.4
6473         (Tiger)
6474
6475 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6476         
6477         * config.h.in: New HAVE_U_INT*_T defines.
6478         
6479         * database.c: Only use u_int*_t typedefs if not already
6480         defined.
6481
6482 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6483
6484         * src/process-unix.c (unix_open_network_stream): moved
6485           'portbuf' buffer out of an inner block as it is used in the
6486           entire function. With gcc4, the stack may get corrupted
6487           after leaving this block. This patches adjusts the size of
6488           the used buffer also; static '128' bytes are far too much
6489           currently and might not suffice for future architectures
6490           (e.g. for 512 bit ones ;)). Instead of, use only the really
6491           required space (max octets * ln(256)/ln(10) chars + space
6492           for '\0' and the sign)
6493
6494 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6495
6496         * callproc.c: Include sysdir.h, so any necessary Mule processing
6497         is done on the current directory name before starting a new
6498         process.
6499
6500 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6501
6502         * chartab.c (Fchar_table_p):
6503         (Fget_range_char_table):
6504         (Fput_char_table):
6505         (Fmap_char_table):
6506         Describe range representation and fix typo.
6507
6508 2005-02-12  Vin Shelton  <acs@xemacs.org>
6509
6510         * emacs.c (shut_down_emacs): Advise users to send email to the
6511         xemacs-beta list instead of crashes@xemacs.org.
6512
6513 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6514
6515         * process-unix.c (unix_send_process): Flush the last chunk, even
6516         when the pipe is blocked.
6517
6518 2005-02-06  Vin Shelton <acs@xemacs.org>
6519
6520         * XEmacs 21.4.17 is released
6521
6522 2005-01-31  Ben Wing  <ben@xemacs.org>
6523
6524         * emacs.c:
6525         Define assert_failed() always.
6526         * lisp.h:
6527         Always define ABORT().
6528
6529 2005-01-25  Ben Wing  <ben@xemacs.org>
6530
6531         * Makefile.in.in:
6532         * Makefile.in.in (%.o):
6533         Don't compile executable as Windows (-mwindows) under Cygwin.
6534         Semi-recent changes to Cygwin's executable-startup handling make
6535         it impossible to access the TTY this way.
6536
6537         Don't use special linker file under Cygwin (cygwin.sc) except
6538         when non-PDUMP (even in this case it is highly questionable); you
6539         get errors like
6540
6541       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6542    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6543
6544 2005-01-29  Ben Wing  <ben@xemacs.org>
6545
6546         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6547
6548         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6549
6550 2005-01-29  Ben Wing  <ben@xemacs.org>
6551
6552         * bytecode.c (optimize_compiled_function):
6553         * print.c (FROB):
6554         * print.c (long_to_string):
6555         Add casts to avoid warning.
6556         
6557         * glyphs-eimage.c:
6558         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6559         #### The better solution is to move the TIFF and JPEG code to
6560         different files.
6561         
6562         * glyphs-msw.c (mswindows_xbm_instantiate):
6563         Define __STDC__ to avoid problems with compface.h.
6564         
6565         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6566         * EmacsShell-sub.c:
6567         * EmacsShell-sub.c (ABORT):
6568         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6569         * EmacsShell-sub.c (RootGeometryManager):
6570         * EmacsShell.c:
6571         * EmacsShell.c (ABORT):
6572         * EmacsShell.c (EmacsShellUpdateSizeHints):
6573         * alloc.c (free_lcrecord):
6574         * alloca.c (i00afunc):
6575         * buffer.c (delete_from_buffer_alist):
6576         * buffer.c (MARKED_SLOT):
6577         * bytecode.c (execute_rare_opcode):
6578         * bytecode.c (optimize_byte_code):
6579         * bytecode.c (Ffetch_bytecode):
6580         * chartab.c (char_table_type_to_symbol):
6581         * chartab.c (Freset_char_table):
6582         * chartab.c (decode_char_table_range):
6583         * chartab.c (Fget_range_char_table):
6584         * chartab.c (check_valid_char_table_value):
6585         * chartab.c (map_char_table):
6586         * chartab.c (slow_map_char_table_fun):
6587         * chartab.c (chartab_instantiate):
6588         * cm.c (cmcheckmagic):
6589         * console-msw.c (DHEADER):
6590         * console.c (MARKED_SLOT):
6591         * data.c (finish_marking_weak_lists):
6592         * data.c (encode_weak_list_type):
6593         * debug.h (DASSERT):
6594         * device-gtk.c (gtk_init_device):
6595         * device-msw.c (mswindows_get_default_margin):
6596         * device-tty.c (tty_init_device):
6597         * device-x.c (get_device_from_display):
6598         * device-x.c (x_get_visual_depth):
6599         * doprnt.c (parse_doprnt_spec):
6600         * doprnt.c (get_doprnt_args):
6601         * dumper.c (pdump_get_indirect_count):
6602         * dumper.c (pdump_register_sub):
6603         * dumper.c (pdump_register_object):
6604         * dumper.c (pdump_register_struct):
6605         * dumper.c (pdump_dump_data):
6606         * dumper.c (pdump_reloc_one):
6607         * elhash.c (print_hash_table):
6608         * elhash.c (make_standard_lisp_hash_table):
6609         * elhash.c (hash_table_instantiate):
6610         * emacs.c:
6611         * emacs.c (Fforce_debugging_signal):
6612         * emacs.c (sort_args):
6613         * emacs.c (main):
6614         * emacs.c (assert_failed):
6615         * eval.c (throw_or_bomb_out):
6616         * eval.c (signal_1):
6617         * eval.c (Fsignal):
6618         * event-Xt.c:
6619         * event-Xt.c (emacs_Xt_mapping_action):
6620         * event-Xt.c (Xt_process_to_emacs_event):
6621         * event-msw.c:
6622         * event-stream.c (check_event_stream_ok):
6623         * event-stream.c (Fadd_timeout):
6624         * event-stream.c (Fadd_async_timeout):
6625         * event-stream.c (Fdiscard_input):
6626         * event-stream.c (execute_internal_event):
6627         * event-stream.c (Frecent_keys):
6628         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6629         * event-stream.c (lookup_command_event):
6630         * event-unixoid.c (poll_fds_for_input):
6631         * events.c:
6632         * events.c (mark_event):
6633         * events.c (event_equal):
6634         * events.c (event_hash):
6635         * events.c (Fmake_event):
6636         * events.c (Fdeallocate_event):
6637         * events.c (event_chain_find_previous):
6638         * events.c (event_to_character):
6639         * events.c (format_event_object):
6640         * events.c (Fevent_type):
6641         * events.c (event_pixel_translation):
6642         * events.c (Fevent_properties):
6643         * extents.c (extent_in_region_p):
6644         * extents.c (print_extent):
6645         * extents.c (process_extents_for_insertion_mapper):
6646         * extents.c (report_extent_modification_mapper):
6647         * extents.c (glyph_layout_to_symbol):
6648         * faces.c (face_validate):
6649         * file-coding.c (eol_type_to_symbol):
6650         * file-coding.c (subsidiary_coding_system):
6651         * file-coding.c (Fcoding_system_type):
6652         * file-coding.c (Fcoding_system_property):
6653         * file-coding.c (mule_decode):
6654         * file-coding.c (mule_encode):
6655         * file-coding.c (encode_coding_ucs4):
6656         * file-coding.c (encode_coding_utf8):
6657         * file-coding.c (parse_iso2022_esc):
6658         * file-coding.c (encode_coding_iso2022):
6659         * fileio.c:
6660         * fns.c (concat):
6661         * fns.c (Fsubseq):
6662         * fns.c (mapcar1):
6663         * fns.c (Fbase64_encode_region):
6664         * fns.c (Fbase64_encode_string):
6665         * fns.c (Fbase64_decode_region):
6666         * fns.c (Fbase64_decode_string):
6667         * font-lock.c (find_context):
6668         * font-lock.c (context_to_symbol):
6669         * frame-gtk.c (gtk_set_frame_pointer):
6670         * frame-gtk.c (gtk_update_frame_external_traits):
6671         * frame-x.c (x_wm_mark_shell_size_user_specified):
6672         * frame-x.c (x_wm_mark_shell_position_user_specified):
6673         * frame-x.c (x_wm_set_shell_iconic_p):
6674         * frame-x.c (x_wm_set_cell_size):
6675         * frame-x.c (x_wm_set_variable_size):
6676         * frame-x.c (x_wm_store_class_hints):
6677         * frame-x.c (x_wm_maybe_store_wm_command):
6678         * frame-x.c (x_initialize_frame_size):
6679         * frame-x.c (x_update_frame_external_traits):
6680         * frame.c:
6681         * frame.c (delete_frame_internal):
6682         * frame.c (mouse_pixel_position_1):
6683         * frame.c (change_frame_size_1):
6684         * free-hook.c (check_free):
6685         * free-hook.c (check_realloc):
6686         * free-hook.c (note_block_input):
6687         * free-hook.c (log_gcpro):
6688         * gccache-gtk.c (gc_cache_lookup):
6689         * glyphs-eimage.c (tiff_memory_write):
6690         * glyphs-gtk.c (gtk_finalize_image_instance):
6691         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6692         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6693         * glyphs-gtk.c (gtk_xpm_instantiate):
6694         * glyphs-gtk.c (gtk_unmap_subwindow):
6695         * glyphs-gtk.c (gtk_map_subwindow):
6696         * glyphs-gtk.c (gtk_button_redisplay):
6697         * glyphs-msw.c:
6698         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6699         * glyphs-x.c (init_image_instance_from_xbm_inline):
6700         * glyphs-x.c (extract_xpm_color_names):
6701         * glyphs-x.c (x_xpm_instantiate):
6702         * glyphs.c (get_image_instantiator_governing_domain):
6703         * glyphs.c (print_image_instance):
6704         * glyphs.c (image_instance_equal):
6705         * glyphs.c (image_instance_hash):
6706         * glyphs.c (encode_image_instance_type):
6707         * glyphs.c (make_image_instance_1):
6708         * glyphs.c (inherit_instantiate):
6709         * glyphs.c (image_instantiate):
6710         * glyphs.c (allocate_glyph):
6711         * glyphs.c (Fglyph_type):
6712         * glyphs.c (redisplay_subwindow):
6713         * glyphs.c (display_table_entry):
6714         * gtk-glue.c (xemacs_list_to_gtklist):
6715         * gtk-glue.c (xemacs_gtklist_to_list):
6716         * gtk-glue.c (xemacs_list_to_array):
6717         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6718         * gutter.c (gutter_was_visible):
6719         * gutter.c (get_gutter_coords):
6720         * input-method-xlib.c (get_XIM_input):
6721         * insdel.c (bufpos_to_bytind_func):
6722         * insdel.c (bytind_to_bufpos_func):
6723         * insdel.c (move_gap):
6724         * intl.c (x_get_composed_input):
6725         * keymap.c (keymap_lookup_directly):
6726         * keymap.c (keymap_delete_inverse_internal):
6727         * keymap.c (ensure_meta_prefix_char_keymapp):
6728         * keymap.c (accessible_keymaps_mapper_1):
6729         * keymap.c (where_is_recursive_mapper):
6730         * lisp.h:
6731         * lisp.h (ABORT):
6732         * lread.c (read_atom):
6733         * lstream.c (Lstream_delete):
6734         * lstream.c (make_lisp_buffer_stream_1):
6735         * macros.c (pop_kbd_macro_event):
6736         * malloc.c (malloc):
6737         * malloc.c (free):
6738         * marker.c (bi_marker_position):
6739         * marker.c (set_bi_marker_position):
6740         * menubar-gtk.c (menu_descriptor_to_widget_1):
6741         * menubar-msw.c (prune_menubar):
6742         * menubar-x.c (set_frame_menubar):
6743         * mule-charset.c (get_unallocated_leading_byte):
6744         * mule-charset.h (CHAR_LEADING_BYTE):
6745         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6746         * nt.c (init_environment):
6747         * nt.c (generate_inode_val):
6748         * ntproc.c (delete_child):
6749         * ntproc.c (_sys_read_ahead):
6750         * ntproc.c (create_child):
6751         * objects.c (color_instantiate):
6752         * objects.c (font_instantiate):
6753         * objects.c (face_boolean_instantiate):
6754         * print.c (printing_major_badness):
6755         * process-nt.c (nt_send_process):
6756         * process-unix.c (unix_send_process):
6757         * process.c (get_process):
6758         * ralloc.c (obtain):
6759         * ralloc.c (relinquish):
6760         * ralloc.c (relocate_blocs):
6761         * ralloc.c (resize_bloc):
6762         * ralloc.c (r_alloc_free):
6763         * ralloc.c (r_re_alloc):
6764         * ralloc.c (r_alloc_thaw):
6765         * ralloc.c (init_ralloc):
6766         * ralloc.c (Free_Addr_Block):
6767         * ralloc.c (r_alloc):
6768         * redisplay-gtk.c (gtk_output_display_block):
6769         * redisplay-msw.c (mswindows_output_display_block):
6770         * redisplay-output.c (get_next_display_block):
6771         * redisplay-output.c (get_cursor_size_and_location):
6772         * redisplay-output.c (redisplay_output_layout):
6773         * redisplay-output.c (redisplay_clear_region):
6774         * redisplay-tty.c (tty_output_display_block):
6775         * redisplay-x.c (x_output_display_block):
6776         * redisplay.c (add_propagation_runes):
6777         * redisplay.c (add_glyph_rune):
6778         * redisplay.c (create_text_block):
6779         * redisplay.c (add_margin_runes):
6780         * redisplay.c (create_left_glyph_block):
6781         * redisplay.c (create_right_glyph_block):
6782         * redisplay.c (create_string_text_block):
6783         * redisplay.c (regenerate_window):
6784         * redisplay.c (REGEN_INC_FIND_START_END):
6785         * redisplay.c (redisplay_frame):
6786         * redisplay.c (point_in_line_start_cache):
6787         * regex.c:
6788         * regex.c (ABORT):
6789         * regex.c (re_compile_fastmap):
6790         * regex.c (re_match_2_internal):
6791         * regex.c (regerror):
6792         * scrollbar-gtk.c (gtk_scrollbar_loop):
6793         * scrollbar-gtk.c (scrollbar_cb):
6794         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6795         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6796         * scrollbar-x.c (x_update_scrollbar_instance_status):
6797         * scrollbar-x.c (x_scrollbar_loop):
6798         * scrollbar-x.c (x_update_frame_scrollbars):
6799         * search.c (search_command):
6800         * search.c (Fmatch_data):
6801         * select-x.c (motif_clipboard_cb):
6802         * signal.c (interrupt_signal):
6803         * specifier.c (specifier_add_spec):
6804         * specifier.c (specifier_instance_from_inst_list):
6805         * specifier.c (specifier_instance):
6806         * specifier.h:
6807         * specifier.h (struct specifier_methods):
6808         * strftime.c (add_num_time_t):
6809         * sunplay.c (init_device):
6810         * symbols.c (Fsetplist):
6811         * symbols.c (do_symval_forwarding):
6812         * symbols.c (store_symval_forwarding):
6813         * symbols.c (Fset):
6814         * symbols.c (Fbuilt_in_variable_type):
6815         * symbols.c (decode_magic_handler_type):
6816         * symbols.c (handler_type_from_function_symbol):
6817         * syntax.c (update_syntax_cache):
6818         * sysdep.c (init_baud_rate):
6819         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6820         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6821         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6822         * toolbar.c (get_toolbar_coords):
6823         * ui-gtk.c (build_gtk_boxed):
6824         * ui-gtk.c (describe_gtk_arg):
6825         * ui-gtk.c (gtk_type_to_lisp):
6826         * ui-gtk.c (lisp_to_gtk_type):
6827         * ui-gtk.c (lisp_to_gtk_ret_type):
6828         * ui-gtk.c (lisp_to_flag):
6829         * unexnt.c (read_in_bss):
6830         * unexnt.c (map_in_heap):
6831         * window.c (real_window):
6832         * window.c (window_display_lines):
6833         * window.c (window_display_buffer):
6834         * window.c (set_window_display_buffer):
6835         * window.c (window_modeline_height):
6836         * window.c (unshow_buffer):
6837         * window.c (window_loop):
6838         * window.c (Fget_lru_window):
6839         * window.c (Fsplit_window):
6840         * window.c (Fset_window_configuration):
6841         * window.c (saved_window_index):
6842         * xgccache.c (gc_cache_lookup):
6843         abort() -> ABORT().  Eliminate preprocessor games with abort()
6844         since it creates huge problems in VC7, solvable only by including
6845         massive amounts of files in every compile (and not worth it).
6846
6847         * sysdep.c:
6848         * sysproc.h:
6849         Inclusion of process.h does not need to be before lisp.h any more.
6850         Move later and remove comment about abort().
6851
6852 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6853
6854         * regex.c (re_match_2_internal):
6855         Correctly initialize loop which clears uninitialized registers.
6856
6857 2005-01-28  Vin Shelton  <acs@xemacs.org>
6858
6859         * sheap.c (more_static_core): Applied Ben's version of the long
6860         string patch.
6861
6862 2005-01-24  Vin Shelton  <acs@xemacs.org>
6863
6864         * sheap.c (more_static_core): Reformatted printf string so
6865         gcc-3.3.3 will compile this on Cygwin.
6866
6867 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6868
6869         * console.c (function_key_map): Reference `key-binding'.
6870
6871         * keymap.c (Vkey_translation_map): Improve docstring.
6872
6873 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6874
6875         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6876         * window.c (window_loop): [fix] Take into account
6877         `allow-deletion-of-last-visible-frame' variable.
6878         * window.c (replace-buffer-in-windows): Ditto.
6879
6880 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6881
6882         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6883
6884 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6885
6886         * event-gtk.c: Recognise AltGr as a valid modifier.
6887
6888 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6889
6890         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6891
6892 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6893
6894         Fix backreference bug caught by test suite.
6895
6896         * regex.c (regex_compile):
6897         Make backref duplicate internal register.
6898
6899 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6900
6901         Documentation, code clarification, and warning suppression.
6902         
6903         * regex.c (regex_compile):
6904         Improve comments.
6905         (re_match_2_internal):
6906         Improve comments and avoid redundant braces.  [Most of the big hunk
6907         at l. 4710 is indentation; use diff -w to see the real changes.]
6908         (alt_match_null_string_p):
6909         (common_op_match_null_string_p):
6910         Avoid shadowing global on Mac OS X 10.4, at least.
6911
6912 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6913
6914         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6915         introduced with shy groups fix).  [Already applied, probably
6916         with the second "fix shy groups" patch of 2004-10-07.] 
6917
6918 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6919
6920         From Andrey Slusar <anrays@gmail.com>:
6921
6922         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6923
6924 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6925
6926         * Makefile (RECURSIVE_MAKE): Removed.
6927         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6928         handling parallel builds.
6929
6930 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6931
6932         * Makefile.in.in: Enable support for parallel builds.
6933
6934 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6935
6936         From Andrey Slusar <anrays@gmail.com>:
6937
6938         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6939         FreeBSD version is >= 199701 _and_ < 600006.
6940
6941 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6942
6943         * scrollbar.c (compute_scrollbar_instance_usage):
6944         Only call device method compute_scrollbar_instance_usage() if it
6945         is defined.
6946
6947 2004-12-05  Vin Shelton <acs@xemacs.org>
6948
6949         * XEmacs 21.4.16 is released
6950
6951 2004-12-04  Vin Shelton  <acs@xemacs.org>
6952
6953         * depend: Regenerated.
6954
6955 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6956
6957         * regex.c (re_match_2_internal): Map internal to external
6958         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6959         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6960
6961 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6962
6963         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6964         to fix a crash.  Also, check the buffer is live and it
6965         really exists in buffer_list.  If the buffer is not in the list,
6966         prepend it.
6967
6968 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6969
6970         Fix shy groups by implementing recording of all groups for
6971         repetition and backtracking.  Backport from 21.5.
6972         
6973         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6974         external_to_internal_register, external_to_internal_register_size,
6975         and update comments for re_nsub.
6976
6977         * regex.c (re_opcode_t): Update comments.
6978         (print_compiled_pattern): Ouput external_to_internal_register,
6979         external_to_internal_register_size, and re_ngroups for debugging.
6980         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6981         (regex_compile): Update header comment.
6982         Ensure that all groups are recorded so that repeat matches and
6983         backtracking work correctly.  Comment related warning for groups >
6984         255.
6985         (re_search_2): Construct map of API indexes (which count only
6986         nonshy groups) to internal register numbers, and keep it updated.
6987
6988 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6989
6990         * frame-gtk.c (gtk_make_frame_visible):
6991         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6992         show/hide.  This is what X uses and is prevents previously hidden
6993         widgets from suddenly reappearing.
6994         * gtk-xemacs.c (gtk_xemacs_paint):
6995         * gtk-xemacs.c (gtk_xemacs_draw):
6996         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6997         drawable.
6998         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6999         size and location changes so that they can be seen before the next
7000         idle event.  Without this rapid changes to scrollbar properties
7001         are not seen.
7002
7003 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
7004
7005         * console-gtk.h:
7006         * console-gtk.h (struct gtk_frame):
7007         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
7008           Add hash tables track tab_control callback data.
7009           Added #defines for GTK object data names.
7010           Declaration of gtk_widget_to_frame().
7011         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
7012         * frame-gtk.c (gtk_widget_to_frame): New.
7013         * frame-gtk.c (gtk_create_widgets):
7014         * frame-gtk.c (allocate_gtk_frame_struct):
7015         * frame-gtk.c (gtk_mark_frame):
7016         Manage frame callbakc hash tables.
7017         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
7018         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
7019         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
7020         of widget size.
7021         * glyphs-gtk.c (gtk_widget_query_geometry): New
7022         * glyphs-gtk.c (gtk_register_gui_item): New
7023         * glyphs-gtk.c (gtk_add_tab_item): New
7024         * glyphs-gtk.c (gtk_tab_control_callback): New
7025         * glyphs-gtk.c (gtk_tab_control_instantiate): New
7026         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
7027         Use correct list when loading item.
7028         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
7029         Register new methods.
7030         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
7031         default size, for widgets.
7032         * gui-x.c:  Improved comment.
7033         * menubar-gtk.c (__generic_button_callback): Use
7034         gtk_widget_to_frame instead of __get_channel.
7035         * scrollbar-gtk.c:
7036         * ui-gtk.c: Use symbolic names for GTK object data.
7037
7038 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
7039
7040         * s/usg5-4.h (NSIG): Define only inside emacs binary.
7041
7042 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
7043
7044         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
7045
7046 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
7047
7048         * malloc.c (morecore): siz is a long because in some architectures
7049         (eg ia-64) an int cannot hold the address range.  Additional patch
7050         from the SuSe distribution.
7051
7052 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
7053
7054         * emacs.c:
7055         * malloc.c: lim_data is a long because in some architectures
7056         (eg ia-64) an int cannot hold the address range.
7057         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
7058         instead of ulimit() because ulimit() always returns -1.
7059
7060 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
7061
7062         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
7063
7064 2004-06-11  David Kastrup  <dak@gnu.org>
7065
7066         * search.c (match_limit): Don't flag an error if match-data
7067         exceeding the allocated search_regs.num_regs gets requested, just
7068         return Qnil.
7069
7070 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7071
7072         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
7073         replace symbolic color entries with the real colors specified in
7074         xpm-color-symbols, before passing the XPM to gtk.
7075         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
7076         instead of a GTK specific field, so that it is used in by generic
7077         code.
7078
7079 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
7080
7081        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
7082         coredump from deref of NULL ptr (ExtData)
7083
7084 2004-04-19  Jerry James  <james@xemacs.org>
7085
7086         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
7087         VALBITS to compute the location of the sign bit.
7088         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
7089         of VALBITS with EMACS_INT_MAX.
7090         * events.c (Fevent_timestamp): Ditto.
7091         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
7092         compute the halfway point to timestamp wraparound.
7093         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
7094         EMACS_INT_MIN instead of using VALBITS.
7095         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
7096         incorrect number with VALBITS.
7097         * fns.c (Frandom): Correct number of integer bits in docstring.
7098         Use INT_VALBITS instead of VALBITS to compute the denominator.
7099         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
7100         build random numbers.
7101
7102 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7103         * event-gtk.c:
7104         * event-gtk.c (gtk_event_to_emacs_event):
7105         * menubar-gtk.c:
7106         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
7107         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
7108         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
7109         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
7110         * menubar-gtk.c (__activate_menu):
7111         * menubar-gtk.c (convert_underscores):
7112         * menubar-gtk.c (remove_underscores):
7113         * menubar-gtk.c (menu_convert):
7114         * menubar-gtk.c (menu_descriptor_to_widget_1):
7115         * menubar-gtk.c (menu_descriptor_to_widget):
7116         * menubar-gtk.c (menu_can_reuse_widget):
7117         * menubar-gtk.c (menu_create_menubar):
7118         * menubar-gtk.c (gtk_popup_menu):
7119         * menubar-gtk.c (Fgtk_build_xemacs_menu):
7120         Added support for Gtk menu bar and menu item mnemonics.
7121
7122 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7123
7124         * sysdll.c: (dll_function): Added support for finding symbols in
7125         Darwin shared libraries as well in Darwin bundles.
7126         * sysdll.c (image_for_address): New
7127         * sysdll.c (my_find_image): New
7128         * sysdll.c (search_linked_libs): New
7129
7130 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7131
7132         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
7133         return to GTK requires a different API to marshalling data to use
7134         as GTK parameters.
7135         * ui-gtk.c (lisp_to_gtk_ret_type): New.
7136
7137 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
7138
7139         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
7140
7141 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7142
7143         * glyphs.c (process_image_string_instantiator):
7144         (Fset_console_type_image_conversion_list):
7145         Stop GCC from warning about shadowing of `exp'.
7146
7147         * redisplay-x.c (x_output_string): Fix unsigned lossage.
7148
7149 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7150
7151         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
7152
7153 2004-02-03  Vin Shelton  <acs@xemacs.org>
7154
7155         * glyphs.c (image_instance_layout): Remove pointless assertion.
7156         * regex.c (regex_grow_registers): Return type is void.
7157
7158 2004-02-02  Vin Shelton <acs@xemacs.org>
7159
7160         * XEmacs 21.4.15 is released
7161
7162 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
7163
7164         * device-x.c (x_error_handler): Don't call stderr_out
7165
7166 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
7167
7168         * buffer.c (other-buffer): Clarify documentation of order of
7169         arguments for FSF Emacs.
7170
7171 2003-10-11  Olivier Galibert  <galibert@pobox.com>
7172
7173         * window.c (Fdelete_window): Dirty the mirror structure _before_
7174         marking the window deleted.
7175
7176 2003-09-15  Jerry James  <james@xemacs.org>
7177
7178         * event-msw.c (debug_mswin_messages): Conditionally compile
7179         messages missing from the Cygwin headers.
7180
7181 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
7182
7183         * data.c (eq_with_ebola_notice): Fix typo in comment.
7184         (Ftrue_list_p): Improve docstring.
7185
7186 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
7187
7188         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
7189
7190 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
7191
7192         * search.c (trivial_regexp_p): Regexps containing "\{" are
7193         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
7194         Stefan Monnier for suggesting a diagnosis.
7195
7196 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
7197
7198         * elhash.c (make-hash-table): Clarify use of :test #'equal.
7199
7200 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
7201
7202         * search.c (Fsearch_forward):
7203         (Fsearch_backward):
7204         Document negative count.
7205
7206 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
7207
7208         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
7209
7210 2003-09-13  Martin Buchholz  <martin@xemacs.org>
7211
7212         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
7213
7214 2003-09-15  Vin Shelton  <acs@xemacs.org>
7215
7216         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
7217         21.5.
7218
7219 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7220
7221         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
7222         (re_search_2): Match the first byte of Bufbyte, not Emchar.
7223         (re_match_2_internal): Use TRANSLATE instead of
7224         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
7225         non-ASCII char case conversion.
7226
7227 2003-09-08  Mike Sperber  <mike@xemacs.org>
7228
7229         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
7230         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
7231
7232 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
7233
7234        * .gdbinit (pobj): fix printing of symbol name.
7235
7236 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
7237
7238         * frame-x.c (x_layout_widgets): When resizing is about to cause
7239         frame size slip, mark it for redisplay.
7240
7241 2003-08-18  Jerry James  <james@xemacs.org>
7242
7243         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
7244
7245 2003-09-03  Vin Shelton <acs@xemacs.org>
7246
7247         * XEmacs 21.4.14 is released
7248
7249 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
7250
7251         * config.h.in (REGEX_MALLOC): Make it configure'able.
7252
7253 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
7254
7255         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
7256         linking.
7257         * sysdll.c (dll_init):
7258         * sysdll.c (dll_open):
7259         * sysdll.c (dll_close):
7260         * sysdll.c (dll_function):
7261         * sysdll.c (dll_variable):
7262         * sysdll.c (dll_error):
7263         Add support for loading bundles using Darwin/MacOSX
7264         native API.
7265
7266 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
7267
7268         * process.c (start-process-internal): Document coding systems.
7269
7270 2003-07-30  Jerry James  <james@xemacs.org>
7271
7272         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
7273
7274 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
7275
7276         * event-msw.c (mswindows_enqueue_mouse_button_event):
7277         * event-msw.c (mswindows_wnd_proc):
7278           enqueue button event when scrollwheel event isn't handled by 
7279           mswindows_handle_mousewheel_event, such as when the scrollbars
7280           are not showing.
7281
7282 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
7283
7284         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
7285
7286 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
7287
7288         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
7289
7290 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
7291
7292         * regex.c (re_match_2_internal): Fix matching degenerate word
7293         boundaries.
7294
7295 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
7296
7297         * XEmacs 21.4.13 is released
7298
7299 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
7300
7301         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
7302         * lisp.h (<inttypes.h>):
7303         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
7304         the definition.
7305
7306 2003-03-15  Martin Buchholz  <martin@xemacs.org>
7307
7308         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7309         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7310         Result: "temacs can only be run in -batch mode."
7311         Fix: Check xemacs executable candidate for directory-ness.
7312
7313 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7314
7315         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7316           they conflict with <sys/types.h>.
7317
7318 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7319
7320         * database.c: Berkeley DB wants __STDC__ to be defined.
7321
7322 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7323
7324         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7325
7326 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7327
7328         * process-unix.c (unix_send_process): Fix C++ compile error.
7329
7330 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7331
7332         * Added .dylib as an acceptable shared library file extension
7333         * to support MacOSX.
7334
7335 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7336
7337         * EmacsFrameP.h (EmacsFramePart):
7338         Kludge to allow compiling with Motif1, but linking with Motif2.
7339
7340 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7341
7342         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7343
7344
7345 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7346
7347         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7348
7349 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7350
7351         * sysdll.c: Included lisp.h to define needed alloca_array.
7352
7353 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7354
7355         Make XEmacs redisplay 10 times faster.
7356         If, that is, you're using a slow X connection and MoveOpaque.
7357         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7358         Use compress_motion = TRUE.
7359         * EmacsFrame.c (emacsFrameClassRec): 
7360         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7361         * EmacsManager.c (emacsManagerClassRec):
7362         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7363
7364 2003-01-30  Vin Shelton  <acs@xemacs.org>
7365
7366         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7367
7368 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7369
7370         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7371         Patch by Martin Buchholz.
7372
7373 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7374
7375         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7376         Thanks to icc for warning and Martin Buchholz for reporting.
7377
7378 2003-01-29  Vin Shelton <acs@xemacs.org>
7379
7380         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7381
7382         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7383         remember to multiply by the element size.
7384
7385 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7386
7387         * XEmacs 21.4.12 "Portable Code" is released.
7388
7389 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7390
7391         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7392         * s/cygwin.sc: new linker file.
7393
7394 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7395
7396         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7397
7398         * redisplay-x.c (x_output_string): Use X11-specified types.
7399         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7400         * emacs.c (__free_hook): Use typeof with Intel compiler.
7401         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7402
7403 2003-01-08  Andy Piper  <andy@xemacs.org>
7404
7405         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7406         reserve size during unexec().
7407
7408 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7409
7410         * process-unix.c (unix_create_process): Don't let outchannel block.
7411
7412 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7413
7414         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7415         Needed for IsBadReadPtr().
7416
7417 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7418
7419         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7420
7421 2002-12-14  Ben Wing  <ben@xemacs.org>
7422
7423         * callint.c: Declaration error.
7424         * dumper.c (pdump):
7425         * dumper.c (pdump_load): Warning fix.
7426         * process.c: GCPRO error.
7427         * glyphs.c (unmap_subwindow):
7428         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7429         * event-stream.c (maybe_kbd_translate): Wrong argument to
7430         character_to_event().
7431
7432         * alloc.c (garbage_collect_1):
7433         * emacs.c:
7434         * emacs.c (debug_can_access_memory):
7435         * emacs.c (fatal_error_signal):
7436         * emacs.c (mswindows_handle_hardware_exceptions):
7437         * emacs.c (main_1):
7438         * emacs.c (main):
7439         * emacs.c (assert_failed):
7440         * emacs.c (syms_of_emacs):
7441         * lisp.h:
7442         * print.c:
7443         * print.c (std_handle_out_va):
7444         * print.c (write_string_to_stdio_stream):
7445         * print.c (write_fmt_string):
7446         * print.c (printing_badness):
7447         * print.c (printing_major_badness):
7448         * print.c (print_internal):
7449         * print.c (debug_print_no_newline):
7450         * print.c (debug_backtrace):
7451         Be more defensive in handling bad values when printing.  Add code
7452         from trunk involving inhibit_non_essential_printing_operations.
7453         When going down or in debug_print(), don't do external conversion
7454         and such and try really, really hard when printing to avoid core
7455         dumping.  Add force-debugging-signal, debug_break().
7456
7457 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7458
7459         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7460         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7461
7462 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7463
7464         * database.c: Fix open_database. Berkeley DB API has changed in
7465         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7466
7467 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7468
7469         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7470
7471 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7472
7473         * event-Xt.c (Xt_timeout):
7474         (Xt_timeout_callback):
7475         (emacs_Xt_add_timeout):
7476         (emacs_Xt_remove_timeout):
7477         (Xt_timeout_to_emacs_event):
7478         Turn completed_timeouts from a stack into a queue.  Fixes
7479         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7480
7481 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7482
7483         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7484         * emacs.c (main): Assert that mmap'd allocation is disabled.
7485
7486 2002-10-14  Andy Piper  <andy@xemacs.org>
7487
7488         * glyphs-widget.c (layout_query_geometry): add in fiddle
7489         factor. Include border text in width layout calculation.
7490         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7491
7492 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7493
7494         * XEmacs 21.4.10 "Military Intelligence" is released.
7495
7496 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7497
7498         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7499         using the NAS private array SoundFileInfo that no longer exists in
7500         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7501         and earlier.  This is broken for some versions between 1.5a and
7502         1.5f.
7503
7504 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7505
7506         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7507
7508         * emacs.c (shut_down_emacs): Improve crash message.
7509
7510 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7511
7512         * file-coding.c (determine_real_coding_system): Check for coding
7513         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7514         shebangs and Python PEP 263.
7515
7516 2002-10-08  Andy Piper  <andy@xemacs.org>
7517
7518         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7519         if static sizes haven't been set.
7520
7521 2002-08-30  Mike Alexander  <mta@arbortext.com>
7522
7523         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7524         to close a socket.
7525
7526 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7527
7528         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7529
7530 2002-09-20  Mike Sperber <mike@xemacs.org>
7531
7532         (This partially gets back my patch from 2002-07-20 without the
7533         bug.)
7534         * callproc.c (child_setup): Remove Ben's comment noting confusion
7535         over the file descriptors >= 3: close_process_descs() doesn't
7536         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7537         * process-unix.c (unix_create_process): Call
7538         begin_dont_check_for_quit to inhibit unwanted interaction (and
7539         thus breaking of X event synchronicity) in the child.
7540
7541 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7542
7543         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7544         widget.
7545
7546 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7547
7548         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7549         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7550         the xemacs process did not exit, but looped infinitely here.  This
7551         fixes that problem.
7552
7553 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7554
7555         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7556         (find_context): Improve comments.
7557
7558         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7559         (re_match_2): An XCHAR_TABLE operation was missing.
7560
7561         Many of the following changes were inspired by Andy Piper's (now
7562         obsolete) patch to make syntax-table text property lookup optional.
7563
7564         [Documentation]
7565
7566         * syntax.h (top level): Document semantics of syntax flags.
7567         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7568         * syntax.c, syntax.h (top level): Document syntax cache better in
7569         comments.
7570
7571         [Instrument syntax caching (temporary change)]
7572
7573         * syntax.h (enum syntax_cache_statistics_functions, struct
7574         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7575         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7576         * syntax.c (scan_words, Fforward_comment, scan_lists,
7577         Fbackward_prefix_characters):
7578         * font-lock.c (find_context):
7579         Use them to instrument syntax caching. 
7580         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7581         syntax_cache_statistics_function_names): New type and variables.
7582         * syntax.c (update_syntax_cache): Update and report statistics.
7583
7584         [Major syntax cache optimizations]
7585
7586         syntax.c (lookup_syntax_properties): Default off.
7587
7588         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7589         * syntax.c (update_syntax_cache):
7590         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7591
7592         [Minor syntax cache optimizations and code clarifications]
7593
7594         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7595         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7596         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7597         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7598         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7599         (Code clarification.)
7600
7601         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7602         scan_lists): Compute code from syncode, use Boolean macros instead
7603         of redundant masking operations.  (Code clarification; any decent
7604         compiler can do this optimization.)
7605
7606         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7607         for clarity.
7608
7609         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7610         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7611         use F*_single_property_change instead of F*_extent_change.
7612         Currently F*_single_property_change is _much_ less efficient.
7613
7614         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7615         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7616         syntax_cache.object properly, don't leave Qt or Qnil.
7617         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7618         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7619         tests for Qt or Qnil.
7620
7621 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7622
7623         * redisplay.c (point_in_line_start_cache): 
7624         * extents.c (print_extent_1):
7625         Fix warnings.
7626
7627         * extents.c (Fset_extent_property): Document `syntax-table' property.
7628
7629         * extents.h (Fnext_single_property_change): EXFUN it.
7630
7631 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7632
7633         * search.c (clear_unused_search_regs): New static function.
7634         (search_buffer): 
7635         (simple_search): 
7636         (boyer_moore):
7637         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7638         Minor clarifications in comments.
7639
7640         * regex.c (re_match_2_internal): Ensure no stale submatches.
7641
7642 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7643
7644         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7645
7646 2002-08-29  Jerry James  <james@xemacs.org>
7647
7648         * lisp.h: structrures -> structures.
7649
7650 2002-06-03  Andy Piper  <andy@xemacs.org>
7651
7652         * frame.c (frame_conversion_internal): add conversion appropriate
7653         for setting frame dimensions in pixels.
7654
7655         * console.h (struct console_methods): add device-specific widget
7656         layout functions.
7657
7658         * emacs.c (main_1): initialize glyph vars.
7659
7660         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7661         (handle_focus_event_2): new function. Allow focus to
7662         be set to a particular window and widget.
7663         (enqueue_focus_event): new function. Create a
7664         synthetic focus event.
7665         (emacs_Xt_handle_magic_event): call
7666         handle_focus_event_2.
7667
7668         * frame.c (Fset_frame_pixel_height): new function. Allow
7669         pixel-based sizing. Does the right thing on character-oriented
7670         displays.
7671         (Fset_frame_pixel_width): ditto.
7672         (Fset_frame_pixel_size): ditto.
7673         (syms_of_frame): declare.
7674
7675         * general-slots.h: add :vertically-justify and
7676         :horizontally-justify.
7677
7678         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7679         (mswindows_widget_border_width): new function.
7680         (mswindows_combo_box_instantiate): set border widths.
7681         (console_type_create_glyphs_mswindows): declare.
7682
7683         * glyphs-widget.c:
7684         (check_valid_justification): allow vertical and horizontal
7685         justification.
7686         (widget_border_width): new function. Call device methods.
7687         (widget_instance_border_width): ditto.
7688         (logical_unit_height): new function. Determine the height of a
7689         logical-unit. Logical units are intended to provide grid-like
7690         layout for subcontrols in a layout. If the layout is
7691         :vertically-justify top then subcontrols will be positioned on
7692         logical-unit boundaries, thus allowing adjacent subcontrols to
7693         line up.
7694         (widget_logical_unit_height): ditto for widgets.
7695         (redisplay_widget): misc cleanup.
7696         (widget_spacing): new function. Call device specific
7697         methods. Intended to be the default gap between adjacent widgets.
7698         (widget_query_geometry): use new spacing functions to determine
7699         appropriate geometry.
7700         (initialize_widget_image_instance): initialize horizontal and
7701         vertical justification.
7702         (widget_instantiate): use logica-units where appropriate for
7703         sizing large widgets.
7704         (button_query_geometry): use widget_instance_border_width.
7705         (tree_view_query_geometry): ditto.
7706         (tab_control_query_geometry): ditto.
7707         (edit_field_query_geometry): new function.
7708         (layout_update): pick up :justify, :horizontally-justify and
7709         :vertically-justify none of which worked previously. :justify is
7710         used as a fallback for both horizontal and vertical justification.
7711         (layout_query_geometry): use logical units to size appropriately.
7712         (layout_layout): ditto.
7713         (Fwidget_logical_to_character_width): new function. Allow users to
7714         convert from logical units to characters so that frame sizes can
7715         be set appropriately.
7716         (Fwidget_logical_to_character_height): ditto.
7717         (syms_of_glyphs_widget): declare.
7718         (image_instantiator_edit_fields): add edit_field_query_geometry.
7719         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7720         :horizontally-justify.
7721         (specifier_vars_of_glyphs_widget): new function. Declare
7722         Vwidget_border_width which is not yet used.
7723
7724         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7725         (x_widget_border_width): new function.
7726         (x_widget_instantiate): create a sensible name for widgets.
7727         (console_type_create_glyphs_x): declare x_widget_border_width.
7728
7729         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7730         (struct Lisp_Image_Instance): add :vertically-justify and
7731         :horizontally-justify.
7732         (LAYOUT_JUSTIFY_TOP): new.
7733         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7734         (ROUND_UP): new macro. Round argument up to next integral
7735         interval.
7736
7737         * redisplay-output.c (redisplay_output_layout): misc formatting.
7738
7739         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7740
7741 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7742
7743         * XEmacs 21.4.9 "Informed Management" is released.
7744
7745 2002-08-19  Andy Piper  <andy@xemacs.org>
7746
7747         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7748         win32 format.
7749
7750         * realpath.c (xrealpath): normalize drive spec also so that dir
7751         sep chars are not mixed on cygwin.
7752
7753 2002-08-06  Jerry James  <james@xemacs.org>
7754
7755         * window.c (Fsplit_window): Count only half of the divider width
7756         against the left window when splitting horizontally. 
7757
7758 2002-06-24  Andy Piper  <andy@xemacs.org>
7759
7760         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7761         toolbar was cleared.
7762
7763         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7764         function. Split out from mswindows_output_frame_toolbars.
7765         (mswindows_output_frame_toolbars): move clear pieces to
7766         mswindows_output_frame_toolbars.
7767
7768         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7769         out from gtk_output_frame_toolbars.
7770         (gtk_output_frame_toolbars): move clear pieces to
7771         gtk_clear_frame_toolbars.
7772
7773         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7774         the frame is cleared. How this ever worked before is a mystery.
7775         (x_output_frame_toolbars): Only output toolbars.
7776         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7777
7778         * gutter.c (update_gutter_geometry):
7779         Mark frame layout changed.
7780         (update_frame_gutter_geometry, update_frame_gutters):
7781         Respect frame_layout_changed.
7782
7783         * console.h (struct console_methods): add
7784         clear_frame_toolbars_method.
7785
7786         * redisplay.c (redisplay_frame): call
7787         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7788
7789         * toolbar.h: declare update_frame_toolbars_geometry.
7790
7791         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7792         out from update_frame_toolbars.  Call clear_frame_toolbars.
7793         (update_frame_toolbars): only output, do not change geometry.
7794
7795         * redisplay.c: add frame_layout_changed.
7796
7797         * redisplay.h: add frame_layout_changed.
7798         (CLASS_RESET_CHANGED_FLAGS): set it.
7799         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7800         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7801         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7802
7803         * device.h (struct device): add frame_layout_changed.
7804         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7805
7806         * frame.h (struct frame): add frame_layout_changed.
7807         (MARK_FRAME_LAYOUT_CHANGED): new.
7808
7809 2002-06-30  Mike Alexander  <mta@arbortext.com>
7810
7811         * event-msw.c (mswindows_need_event): Don't wait for a new message
7812         if the queue is not empty.  Suggested by Paul Moore.
7813
7814 2002-06-12  Andy Piper  <andy@xemacs.org>
7815
7816         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7817         for printing on accurately.
7818
7819 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7820
7821         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7822         WM_ACTIVATE message. Make sure that the frame is visible if the
7823         window is visible. This seemss to fix the problem where XEmacs
7824         appears to freeze after switching desktops with certain virtual
7825         window managers.
7826         (debug_output_mswin_message): Added code to output message
7827         parameters for WM_WINDOWPOSCHANGED, 
7828         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7829
7830 2002-05-25  Andy Piper  <andy@xemacs.org>
7831
7832         * select-x.c (vars_of_select_x): Fix docstring of
7833         x-selection-strict-motif-ownership
7834
7835 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7836
7837         * keymap.c (get_keymap):
7838         Add comment about do_autoload GCPROs own args.
7839
7840 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7841
7842         * bytecode.c (execute_optimized_program): check_opcode ifdef
7843         ERROR_CHECK_BYTE_CODE.
7844
7845 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7846
7847         Thanks to Ben Wing and Michael Sperber.
7848
7849         * eval.c (Fcommand_execute):
7850         (Feval):
7851         (Ffuncall):
7852         (Fmacroexpand_internal):
7853         (function_argcount):
7854         callint.c (Fcall_interactively):
7855         Add comment about do_autoload GCPROs own args.
7856
7857         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7858
7859         * eval.c (Ffuncall): Extra braces to placate GCC.
7860
7861 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7862
7863         * backtrace.h (grow_specpdl):
7864         (SPECPDL_RESERVE):
7865         * EmacsFrame.c (EmacsFrameSetValues):
7866         * eval.c (grow_specpdl):
7867         * ExternalShell.c (hack_event_masks_1):
7868         * glyphs-x.c (convert_EImage_to_XImage): 
7869         (x_finalize_image_instance):
7870         * ralloc.c (page_size):
7871         (r_alloc_sbrk):
7872         * xgccache.c (gc_cache_hash):
7873         Fix unsigned comparison warnings.
7874
7875 2002-07-29  Jerry James  <james@xemacs.org>
7876
7877         * lread.c (locate_file): Any nonnegative return value indicates
7878         success if MODE is nonnegative.
7879
7880 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7881
7882         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7883         argument. 
7884
7885 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7886
7887         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7888
7889         * dumper.c (pdump_get_indirect_count):
7890         (pdump_scan_by_alignment):
7891         (pdump_dump_root_struct_ptrs):
7892         (pdump_dump_rtables):
7893         (pdump_dump_root_objects):
7894         (pdump):
7895         * nas.c (WaveOpenDataForReading):
7896         * fns.c (print_bit_vector):
7897         * font-lock.c (SINGLE_SYNTAX_STYLE):
7898         * glyphs.c (check_for_ignored_expose):
7899         (find_matching_subwindow):
7900         * glyphs-eimage.c:
7901         * imgproc.c (get_histogram):
7902         * redisplay.c (point_in_line_start_cache):
7903         * redisplay-output.c (redisplay_unmap_subwindows):
7904         * symbols.c (defsymbol_massage_name_1):
7905         (defkeyword_massage_name):
7906         (deferror_massage_name_and_message):
7907         * redisplay-x.c (x_output_string): 
7908         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7909         * frame.h (struct frame):
7910         * filelock.c (current_lock_owner):
7911         * doprnt.c (emacs_doprnt_1):
7912         * lisp.h (struct Lisp_Bit_Vector):
7913         (DO_REALLOC):
7914         Fix warnings.
7915
7916 2002-02-13  Ben Wing  <ben@xemacs.org>
7917
7918         * event-stream.c (reset_key_echo):
7919         * event-stream.c (reset_this_command_keys):
7920         * event-stream.c (execute_command_event):
7921         If console is dead as a result of C-x 5 0, then post-command stuff
7922         needs to be careful and do only non-console-specific stuff.
7923
7924 2002-07-01  Mike Sperber <mike@xemacs.org>
7925
7926         * process-unix.c (unix_send_process): Mark coding_outstream as
7927         non-open upon SIGPIPE.
7928
7929         * event-stream.c (Fnext_event): Reorder switch cases to something
7930         that makes sense.
7931
7932 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7933
7934         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7935         Don't bogusly reinitialize ascii_character property.
7936
7937 2002-07-08  Mike Sperber <mike@xemacs.org>
7938
7939         * process.c (Fstart_process_internal): Do error checking before we
7940         fork off the child, so the child can't muck with the state of the
7941         parent.
7942
7943 2002-07-08  Mike Sperber <mike@xemacs.org>
7944
7945         * ralloc.c (init_ralloc): Allocate properly for pdump.
7946
7947 2002-06-12  Andy Piper  <andy@xemacs.org>
7948
7949         * glyphs.c (query_string_geometry): check the string.
7950
7951         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7952         widget names.
7953
7954 2002-06-17  Jerry James  <james@xemacs.org>
7955
7956         * sysdll.c: Remove RTLD_GLOBAL initialization.
7957         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7958
7959 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7960
7961         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7962
7963 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7964
7965         * sysdep.c (sys_rename): Make sys_rename work for the case where
7966         Windows rename sets errno to EACCES if target file exists.
7967
7968 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7969
7970         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7971         Fix detection of metric units to work on Win95
7972
7973 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7974
7975         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7976
7977 2002-04-25  Andy Piper  <andy@xemacs.org>
7978
7979         * redisplay.c (create_text_block): Remove extra comment trailer.
7980
7981 2002-04-24  Andy Piper  <andy@xemacs.org>
7982
7983         * redisplay.c (create_text_block): Don't actually add propagation
7984         data if the line ends after we have added a glyph.
7985
7986 2002-04-22  Andy Piper  <andy@xemacs.org>
7987
7988         * extents.c (extent_fragment_update): check for glyphs we have
7989         previously displayed.
7990         * extents.c (print_extent_1): warning removal.
7991         * extents.h: change prototype.
7992         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7993         widths correctly for wide glyphs.
7994         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7995         * redisplay.c (prop_type): add PROP_GLYPH.
7996         * redisplay.c (struct prop_block): add glyph type
7997         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7998         to the propagation data.
7999         * redisplay.c (create_text_block): if there is a glyph in the
8000         propagation data use it to salt extent_fragment_update.
8001         * redisplay.c (create_string_text_block): ditto.
8002
8003 2002-04-13  Nix  <nix@esperi.demon.co.uk>
8004
8005         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
8006         * redisplay-output.c (compare_runes): Compare them.
8007         * redisplay.c: Update copyright date.
8008         * redisplay.c (pos_data): Add need_baseline_computation field.
8009         * redisplay.c (add_glyph_rune): Update ascent, descent, and
8010         need_baseline_computation; zero yoffset. Set max_pixmap_height
8011         for all pixmaps, not just automatically positioned ones.
8012         * redisplay.c (calculate_yoffset): New, compute yoffset values.
8013         * redisplay.c (calculate_baseline): New, compute textual baseline.
8014         * redisplay.c (add_glyph_rune): Call them.
8015         * redisplay.c (create_text_block): Likewise.
8016         * redisplay.c (create_overlay_glyph_block): Likewise.
8017         * redisplay.c (add_margin_runes): Likewise.
8018         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
8019
8020         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
8021         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
8022         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
8023         * redisplay-msw.c (mswindows_output_string): Likewise.
8024         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
8025         * redisplay-gtk.c (gtk_output_display_block): Likewise.
8026         * redisplay-x.c (x_output_display_block): Likewise.
8027
8028 2002-03-28  Ben Wing  <ben@xemacs.org>
8029
8030         * redisplay.c: Fixed bug in redisplay
8031         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
8032         and down of the lines, since they're bigger than the line
8033         size. (It was seen most obviously when there's a horizontal scroll
8034         bar, e.g. do C-h a glyph or something like that.) The problem was
8035         that the glyph-contrib-p setting on glyphs was ignored even if it
8036         was set properly, which it wasn't until now.
8037
8038 2002-04-24  Andy Piper  <andy@xemacs.org>
8039
8040         * lisp.h (Dynarr_end): Fix definition.
8041
8042 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
8043
8044         * redisplay.c (mark_redisplay): Remove call to
8045         update_frame_window_mirror.
8046
8047 2001-11-15  Andy Piper  <andy@xemacs.org>
8048
8049         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
8050         cygwin (again).
8051
8052 2002-02-13  Andy Piper  <andy@xemacs.org>
8053
8054         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
8055         we did in fact enqueue the XM_MAPFRAME event.
8056
8057 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
8058
8059         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
8060         to fix problem switching between virtual desktops under virtuawin
8061         virtual window manager.
8062
8063 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
8064
8065         * event-msw.c: Typo fix.
8066         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
8067         magic XM_MAPFRAME event has been sent.
8068
8069 2001-11-23  Andy Piper  <andy@xemacs.org>
8070
8071         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
8072
8073 2001-11-21  Andy Piper  <andy@xemacs.org>
8074
8075         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
8076         mouse events outside the frame.
8077
8078 2002-03-20  Andy Piper  <andy@xemacs.org>
8079
8080         * menubar-msw.c (mswindows_popup_menu): warning removal.
8081         * dialog-msw.c (dialog_popped_down): ditto.
8082
8083 2001-12-11  Andy Piper  <andy@xemacs.org>
8084
8085         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
8086         * dialog-msw.c (mswindows_make_dialog_box_internal): set
8087         popup_up_p.
8088         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
8089         * menubar-msw.c (mswindows_handle_wm_command): ditto.
8090         * menubar-msw.c (mswindows_popup_menu): ditto.
8091
8092 2001-10-29  Andy Piper  <andy@xemacs.org>
8093
8094         * dialog-msw.c (handle_directory_dialog_box): quit if the user
8095         cancels.
8096
8097 2002-01-03  Andy Piper  <andy@xemacs.org>
8098
8099         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
8100         letters.
8101         (xrealpath): ditto.
8102
8103 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
8104
8105         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
8106         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
8107         * device-msw.c (mswindows_handle_page_setup_dialog_box):
8108         Detect and handle case where machine is set up for metric units
8109
8110 2002-04-02  Andy Piper  <andy@xemacs.org>
8111
8112         * dired-msw.c (mswindows_get_files): 
8113         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
8114         completely handled by XEmacs. Suggested by Thomas Vogler
8115         <mail@thomas-vogler.de>.
8116
8117 2001-11-14  Andy Piper  <andy@xemacs.org>
8118
8119         * nt.c (REG_ROOT): change registry key to XEmacs.
8120
8121 2002-04-27  Andy Piper  <andy@xemacs.org>
8122
8123         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
8124
8125 2002-04-26  Andy Piper  <andy@xemacs.org>
8126
8127         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
8128         behavior.
8129
8130 2002-03-14  Mike Alexander  <mta@arbortext.com>
8131
8132         * event-msw.c (mswindows_unwait_process): New, remove process from
8133         wait list
8134         * process-nt.c (nt_finalize_process_data): Call
8135         mswindows_unwait_process
8136         * console-msw.h: Declare mswindows_unwait_process
8137
8138 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
8139
8140         * editfns.c (Fdecode_time):
8141         (Fformat_time_string):
8142         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
8143         (make_time): Warning elimination (change arg name).
8144
8145 2001-11-24  Andy Piper  <andy@xemacs.org>
8146
8147         * window.c (Fsplit_window): Doc return type.
8148
8149 2002-04-01  Andy Piper  <andy@xemacs.org>
8150
8151         * emacs.c (Fkill_emacs): Only output message box in interactive
8152         mode.
8153
8154 2002-04-26  Andy Piper  <andy@xemacs.org>
8155  
8156         * config.h.in: pull in 21.5.x change to stop alloca warnings under
8157         cygwin.
8158
8159 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
8160
8161         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
8162         bit platform.
8163
8164 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
8165
8166         * XEmacs 21.4.8 "Honest Recruiter" is released.
8167
8168 2002-05-07  Nix  <nix@esperi.demon.co.uk>
8169
8170         Supersedes 2002-04-17 patch.
8171
8172         * process.h (PROCESS_LIVE_P): Use the process status as
8173         evidence of health, not the state of the input stream.
8174         (PROCESS_READABLE_P): Say if the process is readable
8175         from. (It may be dead nonetheless.)
8176         (CHECK_READABLE_PROCESS): Test for that condition.
8177
8178         * process.c (create_process): Use PROCESS_READABLE_P.
8179         (read_process_output, set_process_filter): Likewise.
8180
8181         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
8182         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
8183
8184         This code is #if 0'd, this is not the time to add new functions:
8185
8186         * process.c (Fprocess_readable_p): Report readability status.
8187         * process.c (Qprocess_readable_p): New, associated symbol...
8188         * process.c (syms_of_process): ... initialize it.
8189
8190 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
8191
8192         * XEmacs 21.4.7 "Economic Science" is released.
8193
8194 2002-04-17  Nix  <nix@esperi.demon.co.uk>
8195
8196         * process.h (PROCESS_LIVE_P): Use the process status as
8197         evidence of health, not the state of the input stream.
8198
8199 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
8200
8201         * sysdep.c (sys_siglist): change "signum" to "signal"
8202
8203 2001-04-21  Martin Buchholz  <martin@xemacs.org>
8204
8205         * s/darwin.h: New file.
8206         Thanks to Greg Parker <gparker@cs.stanford.edu>.
8207         
8208 2002-04-23  Andreas Jaeger  <aj@suse.de>
8209
8210         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
8211         which use lib64 for 64-bit libs.
8212         (START_FILES): Likewise.
8213
8214 2002-02-11  Mike Sperber  <mike@xemacs.org>
8215
8216         * device-x.c: 
8217         (x_IO_error_handler):
8218         (x_init_device): Temporarily keep device in static variable
8219         `device_being_initialized' so we can recover gracefully from
8220         internal XOpenDevice failure.  (XOpenDevice is documented to
8221         return NULL on failure, but sometimes calls the IO error handler
8222         instead.)
8223
8224 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
8225
8226         * dired.c (Ffile_name_all_completions): Change documentation --
8227         remove reference to completion-ignored-extensions.
8228         * dired.c (vars_of_dired): Change documentation for
8229         completion-ignored-extensions -- remove reference to
8230         file-name-all-completions.
8231
8232 2002-03-06  Jerry James  <james@xemacs.org>
8233
8234         * emodules.c (emodules_load): Fix multiple loading of same module.
8235
8236 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
8237         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
8238         RTLD_LAZY to avoid incorrect symbol binding when using nested
8239         shared libraries on Solaris.
8240
8241 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
8242
8243         * fileio.c (Ffind_file_name_handler): Improve docstring.
8244
8245 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
8246
8247         * fns.c (Fmapconcat): Improve docstring.
8248
8249 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
8250
8251         * device-gtk.c: Add prototype for
8252         emacs_gtk_selection_clear_event_handle.
8253         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
8254         selection.  Setup signal handler for "selection_clear_event"
8255         (emacs_gtk_selection_clear_event_handle).
8256
8257         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
8258         other applications owning the clipboard (based on
8259         x_handle_selection_clear).
8260
8261 2001-12-23  William M. Perry  <wmperry@gnu.org>
8262
8263         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
8264         
8265 2002-01-04  Martin Buchholz  <martin@xemacs.org>
8266
8267         * keymap.c (define_key_alternate_name): Parenthesize EQ.
8268
8269 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
8270
8271         * XEmacs 21.4.6 "Common Lisp" is released.
8272
8273 2001-12-16  Torsten Duwe  <duwe@caldera.de>
8274
8275         * search.c (Freplace_match): Add missing sub-expression functionality.
8276
8277         * buffer.c (decode_buffer): Add a check for pointer type to
8278         decode_buffer, before gcc's CSE optimization reorders a
8279         dereference in front of the allow_string test.
8280
8281 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
8282
8283         * window.c (window_loop): Fix bug that sometimes prevented
8284         window_loop() from iterating across multiple devices.  Also, at
8285         Ben's request, changed infloop-detecting code to abort() instead
8286         of silently terminating window_loop().
8287
8288 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
8289
8290         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
8291         * editfns.c (make_time): New function.
8292         (Fencode_time): Use it instead of wasteful_word_to_lisp.
8293         * lisp.h (make_time): Prototype and comment it.
8294         * dired.c (wasteful_word_to_lisp): Deprecate.
8295         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8296
8297 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
8298
8299         * fileio.c (auto_save_1): Use current coding system, not
8300         escape-quoted.
8301
8302 2001-11-13  Ben Wing  <ben@xemacs.org>
8303
8304         * window.c:
8305         * window.c (window_truncation_on):
8306         * window.c (syms_of_window):
8307         truncate-partial-width-windows should respect the buffer being
8308         displayed, like other redisplay vars.
8309
8310 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8311
8312         * event-stream.c (Fread_key_sequence): save current buffer.
8313
8314 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8315
8316         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8317
8318 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8319
8320         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8321
8322 2001-10-26  Mike Alexander  <mta@arbortext.com>
8323
8324         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8325
8326 2001-10-25  Andy Piper  <andy@xemacs.org>
8327
8328         * ChangeLog:
8329         * dialog-msw.c (handle_directory_proc): new function.
8330          (handle_directory_dialog_box): new fucntion.
8331          (handle_file_dialog_box): use new directory dialog support.
8332          (mswindows_make_dialog_box_internal): ditto.
8333         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8334         handling.
8335         (mswindows_find_frame): make global.
8336         * fileio.c (Fexpand_file_name): build fix.
8337         * general-slots.h: add Qdirectory.
8338         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8339         handling.
8340         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8341         cygwin not leaving win32 paths unchanged.
8342         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8343         cygwin runtime to do path conversion.
8344         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8345         (syms_of_win32): add new function.
8346         * window.c (window_loop): build fix.
8347
8348 2001-10-15  Andy Piper  <andy@xemacs.org>
8349
8350         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8351
8352 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8353
8354         * XEmacs 21.4.5 "Civil Service" is released.
8355
8356 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8357
8358         * glyphs-x.c: Force buffer-tab highlight update when moving the
8359         buffer, avoiding an ugly black border, used for keyboard focus
8360         indication, on a widget that can never have keyboard focus, the
8361         buffer tab.
8362
8363 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8364
8365         * process-unix.c (unix_open_multicast_group): Remove too much
8366         conversion between host and network byte order.
8367
8368 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8369
8370         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8371         before replacing them.
8372
8373         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8374         operation.
8375
8376         * src/window.c (undedicate_windows): Use it.
8377         * src/window.h: Add prototype.
8378
8379 2001-09-17  Ben Wing  <ben@xemacs.org>
8380
8381         * fileio.c (normalize_filename):
8382         * fileio.c (Fexpand_file_name):
8383         Fix various C++ compile errors in Andy's recent code.
8384         
8385         * callint.c (Fcall_interactively):
8386         * editfns.c (Ftemp_directory):
8387         * editfns.c (Fuser_full_name):
8388         * emacs.c (argmatch):
8389         * lread.c (locate_file_map_suffixes):
8390         * redisplay-x.c (x_ring_bell):
8391         Fix sign-compare warnings.
8392         
8393 2001-09-08  Andy Piper  <andy@xemacs.org>
8394
8395         * fileio.c (normalize_filename): copied from nt.c
8396         * (Ffile_name_directory): enable win32 paths under cygwin.
8397         * (Ffile_name_nondirectory): ditto.
8398         * (directory_file_name): ditto.
8399         * (Fexpand_file_name): ditto.
8400         * (Ffile_truename): ditto.
8401         * (Fsubstitute_in_file_name): ditto.
8402         * (Ffile_name_absolute_p): ditto.
8403         * (Ffile_readable_p): ditto.
8404
8405 2001-09-08  Andy Piper  <andy@xemacs.org>
8406
8407         * device-msw.c (mswindows_finish_init_device): remove dde
8408         initialization.
8409         * device-msw.c (mswindows_init_dde): factor out from
8410         mswindows_finish_init_device()
8411         * device-msw.c (init_mswindows_very_early): new function
8412         initialize but don't enable dde.
8413         * emacs.c (main_1): call init_mswindows_very_early.
8414         * event-msw.c:
8415         * event-msw.c (mswindows_dde_callback): only execute when we are
8416         ready.
8417         * symsinit.h: declare init_mswindows_very_early.
8418
8419 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8420
8421         [sjt: This has been in 21.5 for months with no complaints.]
8422
8423         * console.h (struct console_methods): Added flags member.
8424         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8425         (CONMETH_IMPL_FLAG):
8426         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8427         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8428
8429         * device.c (window_system_pixelated_geometry): Use the above macros.
8430
8431         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8432         implememntation flag.
8433         * device.h (DEVICE_DISPLAY_P): Use it.
8434
8435         * frame.c (delete_frame_internal): Use the above macro.
8436
8437         * redisplay.c (redisplay_device): Use it.
8438         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8439         (redisplay_frame): Ditto.
8440
8441         * device-msw.c (mswindows_device_implementation_flags): Removed.
8442         (msprinter_device_implementation_flags): Removed.
8443         (console_type_create_device_mswindows): Removed references to
8444         implementation_flags methods, set implementation flags here.
8445         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8446
8447         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8448         (console_type_create_device_gtk): Removed method declaration.
8449         Added commented out statement which semantically matches the
8450         commented out statement in the above removed method.
8451
8452 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8453
8454         The attached patch fixes a few warnings. 
8455
8456         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8457         * src/frame-gtk.c: guard against GNOME calls in GTK only
8458         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8459         * src/select-gtk.c: prototype lisp_to_time
8460
8461 2001-06-08  Ben Wing  <ben@xemacs.org>
8462
8463         ------ gc-in-window-procedure fixes ------
8464         
8465         * alloc.c:
8466         * alloc.c (struct post_gc_action):
8467         * alloc.c (register_post_gc_action):
8468         * alloc.c (run_post_gc_actions):
8469         * alloc.c (garbage_collect_1):
8470         Create "post-gc actions", to avoid those dreaded "GC during window
8471         procedure" problems.
8472
8473         * event-msw.c:
8474         Abort, clean and simple, when GC in window procedure.  We want
8475         to flush these puppies out.
8476
8477         * glyphs-msw.c:
8478         * glyphs-msw.c (finalize_destroy_window):
8479         * glyphs-msw.c (mswindows_finalize_image_instance):
8480         Use a post-gc action when destroying subwindows.
8481
8482         * lisp.h:
8483         Declare register_post_gc_action().
8484
8485         * scrollbar-msw.c:
8486         * scrollbar-msw.c (unshow_that_mofo):
8487         Use a post-gc action when unshowing scrollbar windows, if in gc.
8488
8489         * redisplay.c (mark_redisplay):
8490         Add comment about the utter evilness of what's going down here.
8491
8492         ------ cygwin setitimer fixes ------
8493         
8494         * Makefile.in.in (sheap_objs):
8495         * Makefile.in.in (profile_objs):
8496         * Makefile.in.in (objs):
8497         Compile profile.c only when HAVE_SETITIMER.
8498         
8499         * nt.c (mswindows_sigset):
8500         * nt.c (mswindows_sighold):
8501         * nt.c (mswindows_sigrelse):
8502         * nt.c (mswindows_sigpause):
8503         * nt.c (mswindows_raise):
8504         * nt.c (close_file_data):
8505         Style fixes.
8506         
8507         * nt.c:
8508         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8509         
8510         * profile.c:
8511         * profile.c (Fstart_profiling):
8512         * profile.c (Fstop_profiling):
8513         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8514         instead of just plain setitimer().
8515         
8516         * signal.c:
8517         * signal.c (set_one_shot_timer):
8518         * signal.c (alarm):
8519         Define qxe_setitimer() as an encapsulation around setitimer() --
8520         call setitimer() directly unless Cygwin or MS Win, in which case
8521         we use our simulated version in win32.c.
8522         
8523         * systime.h:
8524         * systime.h (struct itimerval):
8525         * systime.h (ITIMER_REAL):
8526         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8527         comment about "qxe" and the policy regarding encapsulation.
8528
8529         * win32.c:
8530         * win32.c (setitimer_helper_proc):
8531         * win32.c (setitimer_helper_period):
8532         * win32.c (setitimer_helper):
8533         * win32.c (mswindows_setitimer):
8534         Move setitimer() emulation here, so Cygwin can use it.
8535         Rename a couple of functions and variables to be longer and more
8536         descriptive.  In setitimer_helper_proc(), send the signal
8537         using either mswindows_raise() or (on Cygwin) kill().  If for
8538         some reason we are still getting lockups, we'll change the kill()
8539         to directly invoke the signal handlers.
8540
8541         ------ windows shell fixes ------
8542         
8543         * callproc.c:
8544         * ntproc.c:
8545         Comments about how these two files must die.
8546
8547         * callproc.c (init_callproc):
8548         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8549         not just COMSPEC. (more correct and closer to FSF.) Don't
8550         force a value for SHELL into the environment. (Comments added
8551         to explain why not.)
8552         
8553         * nt.c (init_user_info):
8554         Don't shove a fabricated SHELL into the environment.  See above.
8555
8556 2001-06-01  Ben Wing  <ben@xemacs.org>
8557
8558         * Makefile.in.in (ldflags):
8559         eliminate that pesky "defaulting to 00401000" warning.
8560         * nt.h:
8561         eliminate warnings.
8562
8563 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8564
8565         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8566         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8567
8568 2001-04-24  Jerry James <james@xemacs.org>
8569
8570         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8571         correct order.
8572
8573 2001-06-01  Ben Wing  <ben@xemacs.org>
8574
8575         * event-msw.c (debug_mswin_messages):
8576         conditionalize the messages that were causing compile errors.
8577         (if only macros could generate #ifdef statements ...)
8578
8579 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8580
8581         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8582
8583 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8584
8585         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8586
8587 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8588
8589         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8590         * process-unix.c (unix_canonicalize_host_name):
8591         sysdep.c (init_system_name):
8592         Use it to conditionally support IPv6 canonicalization.
8593
8594 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8595
8596         * event-msw.c:
8597         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8598
8599 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8600
8601         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8602         attempt is made to scroll when no scroll bar is available.
8603
8604 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8605
8606         * input-method-motif.c (XIM_delete_frame): New callback.
8607         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8608         got deleted from 21.4.3.)
8609
8610 2001-06-01  Ben Wing  <ben@xemacs.org>
8611
8612         * nt.c (mswindows_utime):
8613         * nt.c (close_file_data):
8614         fix off-by-one-indirection error.
8615
8616 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8617
8618         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8619         because set_file_times() now takes Lisp_Object path, instead of
8620         char*.
8621         * nt.c: Include buffer.h.
8622         * nt.c (convert_from_time_t): New.
8623         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8624         not set mtime correctly.
8625         * nt.h: Declare mswindows_utime().
8626         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8627         path, instead of char*.
8628         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8629
8630 2001-05-30  Ben Wing  <ben@xemacs.org>
8631
8632         For 21.4:
8633
8634         (Stephen, just take all event-msw.c patches.  This includes
8635         the "iconify" fix below.)
8636
8637         * event-msw.c:
8638         * event-msw.c (mswindows_dequeue_dispatch_event):
8639         * event-msw.c (assert):
8640         * event-msw.c (emacs_mswindows_quit_p):
8641         * event-msw.c (debug_mswin_messages):
8642         * event-msw.c (debug_output_mswin_message):
8643         * event-msw.c (vars_of_event_mswindows):
8644         Fix yet more problems with C-g handling.
8645         Implement debug-mswindows-events.
8646         
8647 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8648
8649         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8650         
8651 2001-05-23  Ben Wing  <ben@xemacs.org>
8652
8653         * event-msw.c (winsock_writer):
8654         * event-msw.c (winsock_closer):
8655         prior kludgy code was clobbering the buffer, thinking it was
8656         "unused" space to store an unneeded return value; instead, use
8657         the variable we've already got staring us in the face.
8658
8659 2001-05-17  Andy Piper  <andy@xemacs.org>
8660
8661         * sysfile.h: don't assume that file attributes are boolean
8662
8663 2001-05-23  Ben Wing  <ben@xemacs.org>
8664
8665         * device-msw.c (msprinter_init_device):
8666         signal an error rather than crash with an unavailable network
8667         printer (from Mike Alexander).
8668         
8669         * event-msw.c:
8670         * event-msw.c (struct winsock_stream):
8671         * event-msw.c (winsock_writer):
8672         * event-msw.c (winsock_closer):
8673         * event-msw.c (make_winsock_stream_1):
8674         cleanup headers.  fix (hopefully) an error with data corruption
8675         when sending to a network connection.
8676
8677         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8678         to handle the ~user prefix by (a) always assuming we're referencing
8679         ourselves and not even verifying the user -- hence any file with
8680         a tilde as its first char is invalid! (b) if there wasn't a slash
8681         following the filename, the pointer was set *past* the end of
8682         file and we started reading from uninitialized memory.  Now we
8683         simply treat these as files, always.
8684
8685         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8686         
8687 2001-05-19  Ben Wing  <ben@xemacs.org>
8688
8689         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8690
8691         * process-nt.c:
8692         * process-nt.c (vars_of_process_nt):
8693         remove unused mswindows-quote-process-args.  rec for 21.4.
8694         
8695 2001-05-12  Ben Wing  <ben@xemacs.org>
8696
8697         * event-msw.c (mswindows_dde_callback):
8698         * event-msw.c (mswindows_wnd_proc):
8699         eliminate cygwin warnings.
8700
8701 2001-05-06  Ben Wing  <ben@xemacs.org>
8702
8703         * console-msw.h:
8704         * device-msw.c:
8705         * device-msw.c (print_dialog_worker):
8706         * device-msw.c (mswindows_handle_print_dialog_box):
8707         * device-msw.c (syms_of_device_mswindows):
8708         * dialog-msw.c (mswindows_make_dialog_box_internal):
8709         * general-slots.h:
8710         implement printing the selection when it's selected.
8711
8712 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8713
8714         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8715
8716 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8717
8718         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8719         EMACS_INT is signed.
8720
8721 2001-04-15  Michael Lausch  <mla@1012surf.net>
8722
8723         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8724         gtk_widget_request_size() to give scrollbar >0 width for
8725         GTK >1.2.8.
8726
8727 2001-05-30  William M. Perry  <wmperry@gnu.org>
8728
8729         * event-gtk.c: Check for buttons as modifier keys.
8730
8731 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8732
8733         * s\mingw32.h:
8734         Properly find MinGW's <process.h> inside Cygwin's restructured
8735         include directories.  Don't try to include <cygwin/version.h>
8736         since we are dropping support for MinGW in versions of Cygwin
8737         earlier than b21.
8738         * nt.c:
8739         Drop support for MinGW in versions of Cygwin before b21.
8740         * sysdep.c:
8741         Properly find MinGW's <process.h> inside Cygwin's restructured
8742         include directories.
8743         * syswindows.h:
8744         Drop support for MinGW in versions of Cygwin before b21.
8745         * unexcw.c:
8746         Even though a.out.h is no longer detected by configure, allow
8747         MinGW to use it until we figure out how to do the job with Win32.
8748
8749 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8750
8751         * syntax.c (find_start_of_comment):
8752         Fix `unbalanced parentheses' bug when dealing with mixed comment
8753         styles in c++/java/etc. mode
8754
8755 2001-05-29  Mike Alexander  <mta@arbortext.com>
8756
8757         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8758         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8759
8760 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8761
8762         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8763
8764 2001-03-31  Mike Sperber <mike@xemacs.org>
8765
8766         * search.c (Freplace_match): Support FSF-style specification of
8767         match subexpression when applied to a buffer.
8768
8769 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8770
8771         * event-stream.c (is_scrollbar_event): add missing semicolon
8772
8773 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8774
8775         * Makefile.in.in: Use TAR macro instead of hardcoding
8776           tar.  Allows use of GNU tar instead of system tar
8777
8778 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8779
8780         * event-stream.c (is_scrollbar_event): add missing semicolon
8781
8782 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8783
8784         * XEmacs 21.4.3 "Academic Rigor" is released.
8785
8786 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8787
8788         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8789
8790 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8791
8792         * buffer.c (Vcase_fold_search): Remove obsolete
8793           comment about non ASCII case-fold-search.  This
8794           bug has been fixed by case-table changes.
8795
8796 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8797
8798         * event-msw.c: Restore include of events-mod.h.
8799
8800 2001-04-22   zhaoway  <zw@debian.org>
8801
8802         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8803         !HAVE_SCROLLBARS.
8804
8805 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8806
8807         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8808
8809 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8810
8811         * mule-charset.c (Fmake_charset): Add missing else.
8812
8813 2001-04-23  Ben Wing  <ben@xemacs.org>
8814
8815         * event-msw.c (FAKE_MOD_QUIT):
8816         * event-msw.c (mswindows_dequeue_dispatch_event):
8817         * event-msw.c (mswindows_wnd_proc):
8818         * event-msw.c (emacs_mswindows_quit_p):
8819         Get critical quit working.
8820
8821 2001-05-05  Ben Wing  <ben@xemacs.org>
8822
8823         * console-msw.h:
8824         * device-msw.c:
8825         * device-msw.c (mswindows_get_default_margin):
8826         * frame-msw.c (mswindows_size_frame_internal):
8827         * frame-msw.c (msprinter_init_frame_1):
8828         * frame-msw.c (vars_of_frame_mswindows):
8829         Change top/bottom margin defaults to 0.5 inches.
8830
8831 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8832
8833         Fix link error with gcc 3.0 on Linux.
8834         * terminfo.c (UP): Remove.
8835         * terminfo.c (BC): Remove.
8836         * terminfo.c (PC): Remove.
8837         They weren't used, and in any case, these symbols should be
8838         defined in the *library*.
8839
8840 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8841
8842         * s/aix4.h: Fix crash with xlc -O3.
8843         Improve comment explaining how -O3 works.
8844
8845 2001-04-15  Ben Wing  <ben@xemacs.org>
8846
8847         * event-stream.c:
8848         * event-stream.c (Fnext_event):
8849         * event-stream.c (is_scrollbar_event):
8850         * event-stream.c (execute_command_event):
8851         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8852         crash' problem.  His fix introduces other problems.  We filter
8853         out scrollbar events specifically, making them somewhat invisible
8854         to command-building, and not appearing in `this-command-keys'.
8855         More work is still needed (see comments in event-stream.c), but
8856         this fixes all the major problems.
8857
8858 2001-04-20  Ben Wing  <ben@xemacs.org>
8859
8860         * .cvsignore: Added stuff for Windows.
8861
8862 2001-04-28  Ben Wing  <ben@xemacs.org>
8863
8864         * buffer.c (Ferase_buffer):
8865         * editfns.c (buffer_insert1):
8866         * editfns.c (Finsert_before_markers):
8867         * editfns.c (Finsert_string):
8868         * editfns.c (Finsert_char):
8869         * editfns.c (Fdelete_region):
8870         * editfns.c (Fwiden):
8871         * editfns.c (Fnarrow_to_region):
8872         remove bogus lines setting zmacs_region_stays to 0.
8873         
8874 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8875
8876         * process-unix.c (unix_open_network_stream): If connect() fails
8877         invalidate file descriptor after closing it.
8878
8879 2001-03-08  Mike Alexander  <mta@arbortext.com>
8880
8881         * event-msw.c (mswindows_need_event_in_modal_loop):
8882         Don't dispatch a message if we didn't get one.
8883         (mswindows_need_event):
8884         Terminate the correct process when one exits instead of the first
8885         one on Vprocess_list and look for process termination when in
8886         mswindows_protect_modal_loop.
8887
8888 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8889
8890         * XEmacs 21.4.1 "Copyleft" is released.
8891
8892 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8893
8894         * input-method-motif.c (XIM_delete_frame): New callback.
8895         (XIM_init_frame): Register it.
8896
8897 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8898
8899         * XEmacs 21.4.0 "Solid Vapor" is released.
8900
8901 2001-04-15  Ben Wing  <ben@xemacs.org>
8902
8903         * cmdloop.c (call_command_loop):
8904         Fix braino in bit-rotting code.
8905         
8906 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8907
8908         * extents.c (Fset_extent_endpoints): Force creation of extent info
8909         in buffer_or_string.
8910
8911         * extents.c (process_extents_for_insertion_mapper): Correctly
8912         check for open-open zero-length extents.
8913
8914 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8915
8916         * lisp.h: New typedefs Memory_count, Element_count.
8917         * regex.c:
8918         * regex.h:
8919         Sign-compare warning elimination: several unsigned -> signed.
8920         Based on work by Ben Wing <ben@xemacs.org>.
8921
8922 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8923
8924         * XEmacs 21.2.47 "Zephir" is released.
8925
8926 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8927
8928         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8929
8930 2001-04-03  Mike Sperber <mike@xemacs.org>
8931
8932         * search.c: Revert previous patch due because of release.
8933
8934 2001-03-30  Ben Wing  <ben@xemacs.org>
8935
8936         * s\cygwin32.h:
8937         Add missing killpg prototype.
8938
8939         * elhash.c:
8940         Add a comment about fixing problems when a new entry is added
8941         while mapping.
8942
8943         * frame-msw.c (mswindows_init_frame_1):
8944         Fix compile warnings.
8945
8946         * menubar.c (vars_of_menubar):
8947         Provide `menu-accelerator-support' to indicate that we properly
8948         support %_ in menu specifications, so that package code can
8949         conditionalize on this (and remove %_ from menu specifications
8950         on older versions).
8951
8952         * event-msw.c:
8953         * scrollbar-msw.c:
8954         * scrollbar-msw.c (can_scroll):
8955         * scrollbar-msw.h:
8956         Fix handling of mouse wheel under Windows to follow standards --
8957         now scrolls window under pointer, not selected window.
8958
8959 2001-03-31  Mike Sperber <mike@xemacs.org>
8960
8961         * search.c (Freplace_match): Support FSF-style specification of
8962         match subexpression when applied to a buffer.
8963
8964 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8965
8966         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8967         function to modify KEYMAP, so map over a copy of the hash table.
8968
8969 2001-03-21  Martin Buchholz <martin@xemacs.org>
8970
8971         * XEmacs 21.2.46 "Urania" is released.
8972
8973 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8974
8975         * realpath.c (xrealpath): Make file-truename work with symlinks to
8976         /cygdrive paths on cygwin. Always lowercase drive-letters on
8977         native windows.
8978         (cygwin_readlink): Don't try to find canonical filename unless
8979         file exists.
8980
8981 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8982
8983         * ChangeLog: Log GTK merge.
8984
8985         * dumper.c:
8986         * select-x.c:
8987         * specifier.c:
8988         * symeval.h:
8989         Revert gratuitous whitespace changes from GTK merge.
8990
8991         * emacs.c: Document end of complex #ifdef @ l. 1495.
8992
8993
8994 2001-03-12  Andy Piper  <andy@xemacs.org>
8995
8996         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8997         have to do likewise.
8998
8999 2001-03-12  Andy Piper  <andy@xemacs.org>
9000
9001         * sysdep.c: we only support mingw now.
9002
9003 2001-03-09  Andy Piper  <andy@xemacs.org>
9004
9005         * unexcw.c (copy_executable_and_dump_data_section): making approx
9006         overrun a warning only.
9007
9008 2001-03-10  William M. Perry  <wmperry@aventail.com>
9009
9010         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
9011         satisfy Stephen's identical-after-cpp plea.
9012
9013 2001-03-02  Ben Wing  <ben@xemacs.org>
9014
9015         * cmds.c:
9016         * cmds.c (Fforward_char):
9017         * syntax.c:
9018         * window.c:
9019
9020         Augment documentation of the most common motion commands to make
9021         note of the shifted-motion support.
9022         
9023 2001-03-02  Ben Wing  <ben@xemacs.org>
9024
9025         * nt.c (mswindows_fstat):
9026         * nt.c (mswindows_stat):
9027         * search.c (boyer_moore):
9028         Fix compile warnings under Windows.
9029         
9030         * sysdep.c (sys_readdir):
9031         Fix buggy filename-conversion code under Mule.
9032
9033 2001-03-09  William M. Perry  <wmperry@aventail.com>
9034
9035         * Makefile.in.in:
9036         * config.h.in:
9037         * console.c:
9038         * console.h:
9039         * device.c:
9040         * device.h:
9041         * dragdrop.c:
9042         * emacs.c:
9043         * event-stream.c:
9044         * events.c:
9045         * events.h:
9046         * faces.c:
9047         * frame.h:
9048         * general-slots.h:
9049         * glyphs.c:
9050         * gutter.c:
9051         * inline.c:
9052         * lisp.h:
9053         * lrecord.h:
9054         * make-src-depend:
9055         * redisplay-output.c:
9056         * redisplay.c:
9057         * symsinit.h:
9058         * sysfile.h:
9059         * toolbar.c:
9060         * window.c:
9061         The Great GTK Merge.
9062
9063         * ChangeLog.GTK:
9064         * console-gtk.c:
9065         * console-gtk.h:
9066         * device-gtk.c:
9067         * emacs-marshals.c:
9068         * emacs-widget-accessors.c:
9069         * event-gtk.c:
9070         * frame-gtk.c:
9071         * gccache-gtk.c:
9072         * gccache-gtk.h:
9073         * glade.c:
9074         * glyphs-gtk.c:
9075         * glyphs-gtk.h:
9076         * gtk-glue.c:
9077         * gtk-xemacs.c:
9078         * gtk-xemacs.h:
9079         * gui-gtk.c:
9080         * gui-gtk.h:
9081         * menubar-gtk.c:
9082         * native-gtk-toolbar.c:
9083         * objects-gtk.c:
9084         * objects-gtk.h:
9085         * redisplay-gtk.c:
9086         * scrollbar-gtk.c:
9087         * scrollbar-gtk.h:
9088         * select-gtk.c:
9089         * toolbar-gtk.c:
9090         * ui-byhand.c:
9091         * ui-gtk.c:
9092         * ui-gtk.h:
9093         The Great GTK Merge: new files.
9094
9095 2001-02-26  Ben Wing  <ben@xemacs.org>
9096
9097         Reapplied Lstream change.
9098
9099 2001-02-26  Ben Wing  <ben@xemacs.org>
9100
9101         Undid the last change, since it is more controversial than I
9102         thought.  It should be back in at some point soon.
9103         
9104 2001-02-25  Ben Wing  <ben@xemacs.org>
9105
9106         * buffer.c:
9107         * callproc.c (Fold_call_process_internal):
9108         * event-msw.c (ntpipe_slurp_reader):
9109         * event-msw.c (ntpipe_shove_writer):
9110         * event-msw.c (winsock_reader):
9111         * event-msw.c (winsock_writer):
9112         * file-coding.c:
9113         * file-coding.c (detect_eol_type):
9114         * file-coding.c (detect_coding_type):
9115         * file-coding.c (determine_real_coding_system):
9116         * file-coding.c (Fdetect_coding_region):
9117         * file-coding.c (decoding_reader):
9118         * file-coding.c (decoding_writer):
9119         * file-coding.c (mule_decode):
9120         * file-coding.c (Fdecode_coding_region):
9121         * file-coding.c (encoding_reader):
9122         * file-coding.c (encoding_writer):
9123         * file-coding.c (mule_encode):
9124         * file-coding.c (Fencode_coding_region):
9125         * file-coding.c (detect_coding_sjis):
9126         * file-coding.c (decode_coding_sjis):
9127         * file-coding.c (encode_coding_sjis):
9128         * file-coding.c (detect_coding_big5):
9129         * file-coding.c (decode_coding_big5):
9130         * file-coding.c (encode_coding_big5):
9131         * file-coding.c (detect_coding_ucs4):
9132         * file-coding.c (decode_coding_ucs4):
9133         * file-coding.c (encode_coding_ucs4):
9134         * file-coding.c (detect_coding_utf8):
9135         * file-coding.c (decode_coding_utf8):
9136         * file-coding.c (encode_coding_utf8):
9137         * file-coding.c (detect_coding_iso2022):
9138         * file-coding.c (decode_coding_iso2022):
9139         * file-coding.c (encode_coding_iso2022):
9140         * file-coding.c (decode_coding_no_conversion):
9141         * file-coding.c (encode_coding_no_conversion):
9142         * glyphs-x.c (write_lisp_string_to_temp_file):
9143         * gpmevent.c (tty_get_foreign_selection):
9144         * lisp.h:
9145         * lstream.c:
9146         * lstream.c (Lstream_flush_out):
9147         * lstream.c (Lstream_adding):
9148         * lstream.c (Lstream_write_1):
9149         * lstream.c (Lstream_write):
9150         * lstream.c (Lstream_raw_read):
9151         * lstream.c (Lstream_read_more):
9152         * lstream.c (Lstream_read):
9153         * lstream.c (Lstream_unread):
9154         * lstream.c (Lstream_fputc):
9155         * lstream.c (stdio_reader):
9156         * lstream.c (stdio_writer):
9157         * lstream.c (filedesc_reader):
9158         * lstream.c (filedesc_writer):
9159         * lstream.c (lisp_string_reader):
9160         * lstream.c (struct fixed_buffer_stream):
9161         * lstream.c (make_fixed_buffer_input_stream):
9162         * lstream.c (make_fixed_buffer_output_stream):
9163         * lstream.c (fixed_buffer_reader):
9164         * lstream.c (fixed_buffer_writer):
9165         * lstream.c (struct resizing_buffer_stream):
9166         * lstream.c (resizing_buffer_writer):
9167         * lstream.c (dynarr_writer):
9168         * lstream.c (lisp_buffer_reader):
9169         * lstream.c (lisp_buffer_writer):
9170         * lstream.h:
9171         * lstream.h (lstream_implementation):
9172         * lstream.h (struct lstream):
9173         * md5.c (Fmd5):
9174         * process-nt.c (nt_send_process):
9175         * process-unix.c (unix_send_process):
9176         
9177         Correct Lstream lossage due to mixing of signed and unsigned
9178         quantities.  All Lstream uses of size_t and ssize_t are now a
9179         single signed data type Lstream_data_count.  This fixes problems
9180         under Windows with sending large quantities of data to a process,
9181         and may well fix other subtle bugs.
9182
9183 2001-02-23  Martin Buchholz <martin@xemacs.org>
9184
9185         * XEmacs 21.2.45 "Thelxepeia" is released.
9186
9187 2001-02-21  Martin Buchholz  <martin@xemacs.org>
9188
9189         * lisp-union.h (XSETINT): 
9190         (XSETCHAR):
9191         (XSETOBJ): 
9192         Reverse previous change of 2001-02-06.
9193
9194 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
9195
9196         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
9197         buffers.
9198         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9199         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
9200         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
9201         * regex.c (POS_AS_IN_BUFFER): removed
9202         * regex.c (re_search_2):
9203         * regex.c (re_match_2):
9204         Don't use an offset of 1 when calculating buffer positions, since
9205         `BI_BUF_BEGV' does it already.
9206
9207 2001-02-18  Wim Dumon  <wim@easics.be>
9208
9209         * insdel.c (prepare_to_modify_buffer): Also check for
9210         supersession when clash-detection is enabled. 
9211
9212 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
9213
9214         * regex.c (re_match_2_internal):
9215         Convert temp characters from 'const unsigned char' to 're_char'.
9216         Fix crashing bug with extended characters under mule.
9217         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
9218         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
9219         font-lock, pdump, and new syntax-table code.
9220         * syntax.c (find_start_of_comment):
9221         (find_end_of_comment):
9222         (forward-comment):
9223         Fix crashing bugs involving moving beyond end of buffer.
9224         * syntax.c (find_start_of_comment):
9225         Fixed logic to allow proper detection of cases where the same
9226         character is used to end both a two-char comment start and a
9227         two-char comment end sequence. Fixes `(forward-comment -1)'.
9228         * syntax.c (find_start_of_comment):
9229         Return position just past last comment-end character for all cases
9230         (previously was only done for two-char comment-end sequences).
9231         * syntax.c (forward-comment):
9232         Take value returned from `find_end_of_comment', rather than
9233         incrementing it.
9234         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9235         Properly deal with BUFFERP (syntax_cache.object)
9236
9237 2001-02-17  Martin Buchholz  <martin@xemacs.org>
9238
9239         * alloc.c (Fgarbage_collect): 
9240         * alloc.c (make_bit_vector_from_byte_vector):
9241         -Wsign-compare-correctness.
9242
9243 2001-02-16  Martin Buchholz  <martin@xemacs.org>
9244
9245         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
9246         (XSETCHAR): Likewise.
9247         (XSETOBJ): Likewise.
9248
9249 2001-02-15  Martin Buchholz  <martin@xemacs.org>
9250
9251         * mule-canna.c (canna-func-delete_previous): 
9252         Rename to canna-func-delete-previous.
9253
9254 2001-02-14  Martin Buchholz  <martin@xemacs.org>
9255
9256         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
9257
9258 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
9259
9260         * font-lock.c (find_context): Fix C++ compile errors introduced by
9261         recent patch
9262
9263 2001-02-13  Martin Buchholz  <martin@xemacs.org>
9264
9265         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
9266         pragma, but earlier ones barf on the same pragma.
9267
9268 2001-02-06  Mike Sperber <mike@xemacs.org>
9269
9270         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
9271         `configure-mule-lisp-directory'.
9272
9273 2001-02-12  Martin Buchholz  <martin@xemacs.org>
9274
9275         Make sure dump-id.c is compiled in the same way as other .c's.
9276         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
9277         * dump-id.h: Remove.
9278         * emacs.c: Move dump-id.h into dumper.h.
9279         * dumper.h: Move dump-id.h into dumper.h.
9280         * Makefile.in.in:
9281         Use standard .c.o rule for building dump-id.o.
9282         Remove preprocessor flags from link command.
9283         Add dump-id.o to ${otherobjs} if PDUMP.
9284
9285 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
9286
9287         Port FSF 20.7 syntax table improvements.
9288         * syntax.c.
9289         * syntax.h.
9290
9291         Fixups for new syntax table stuff.
9292         * dired.c: Include syntax.c.
9293         (Fdirectory_files): Initialize regex_match_object and
9294         regex_emacs_buffer.
9295         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9296         and Fget_char_property.
9297
9298         Use ported FSF 20.7 syntax table improvements.
9299         * font-lock.c.
9300         * regex.c.
9301         * search.c.
9302         
9303 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9304
9305         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9306         Unixware's enum boolean from sys/types.h.
9307
9308 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9309
9310         Fix support for building with latest Purify.
9311         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9312         (PURIFY_FLAGS): Likewise.
9313
9314 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9315
9316         * fileio.c (lisp_string_set_file_times): New.
9317         * fileio.c (Fcopy_file): Use it.
9318         Fixes bug:
9319         (copy-file filename non-ascii-filename t t)
9320         ==> No such file or directory, non-ascii-filename
9321
9322 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9323
9324         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9325         USHRT_MAX seems clearer than ~0 anyways.
9326
9327 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9328
9329         dumper improvements.  Inspired by Olivier.
9330         * dumper.c (pdump_max_align): New.
9331         * dumper.c (pdump_add_entry): Use pdump_max_align.
9332         * dumper.c (pdump_get_entry_list): Likewise.
9333         * dumper.c (pdump_scan_by_alignment): Likewise.
9334         Don't iterate through unnecessary alignments.
9335         * dumper.c (pdump_file_get): No need to align result of malloc().
9336         * dumper.c (pdump_mallocadr): Remove.  
9337         The result of malloc() is guaranteed to be maximally aligned.
9338         * dumper.c: s/elmt/elt/g;
9339         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9340         * dumper.c (pdump_alert_undump_object): Likewise.
9341         * dumper.c (pdump_align_table): 
9342         Don't support alignments > 64.
9343         Store ALIGNOF's, not shift counts, in table.
9344
9345 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9346
9347         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9348         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9349         * systime.h: Use HAVE_UTIME.
9350         * sysdep.c (struct utimbuf): Remove.
9351         * sysdep.c (set_file_times): Prefer utime() to utimes().
9352         * config.h.in (HAVE_UTIME): New.
9353         * config.h.in (HAVE_UTIME_H): Remove.
9354         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9355
9356 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9357
9358         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9359
9360 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9361
9362         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9363
9364 2001-02-08  Martin Buchholz <martin@xemacs.org>
9365
9366         * XEmacs 21.2.44 "Thalia" is released.
9367
9368 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9369
9370         Fixes crashes in kill-emacs on some systems.
9371         * process-unix.c (unix_kill_child_process):
9372         It's OK for kill() to fail with ESRCH.
9373
9374 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9375
9376         Contortions to make .gdbinit tricks work on most systems.
9377         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9378         * alloc.c (dbg_valmask): Make non-const.
9379         * alloc.c (dbg_typemask): Make non-const.
9380         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9381         * alloc.c (dbg_valbits): Make non-const.
9382         * alloc.c (dbg_gctypebits): Make non-const.
9383         * .gdbinit (decode_object): Make it work with AIX cc.
9384
9385 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9386
9387         * elhash.c (make_general_lisp_hash_table):
9388         Use simpler and more efficient calloc to clear entries.
9389
9390 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9391
9392         * window.c (window_scroll): Work around an AIX C compiler bug.
9393         Fixes 'scroll-up' does nothing problem with xlC.
9394
9395 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9396
9397         * .gdbinit: Remove obsolete comment.
9398
9399 2001-01-31  Mike Alexander  <mta@arbortext.com>
9400
9401         * select.c (Fown_selection_internal): Set owned_p for device
9402         method correctly.
9403
9404 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9405
9406         Port to g++ 2.97.
9407         "not" cannot be used as a macro name as it is an operator in C++
9408         * config.h.in: Stop #defining `not'.
9409         * chartab.c (check_category_char): not ==> not_p
9410         * chartab.h: Likewise.
9411         * regex.c (re_match_2_internal): Likewise.
9412
9413 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9414
9415         * lisp-disunion.h: Fix up comments.
9416
9417 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9418
9419         * keymap.c (define_key_check_and_coerce_keysym):
9420         (syms_of_keymap):
9421         Support mouse-6 and mouse-7 bindings in the obvious way.
9422
9423 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9424
9425         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9426
9427 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9428
9429         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9430         Previous patch missed DEFVAR_INT_MAGIC.
9431         Make sure future DEFVAR_foo use correct types.
9432         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9433         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9434         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9435         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9436         * (DEFVAR_INT): Likewise.
9437         * redisplay.c (vertical_clip): Should be of type Fixnum.
9438         * redisplay.c (horizontal_clip): Likewise.
9439         * lisp.h (dump_add_opaque_int): New.
9440         (dump_add_opaque_fixnum): New.
9441
9442 2001-01-29  Andy Piper  <andy@xemacs.org>
9443
9444         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9445         since they can be eval'ed
9446
9447 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9448
9449         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9450         Oops, XEmacs redefines `class'.  Use `typename' instead.
9451
9452 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9453
9454         * dumper.c: Fix C++ compile errors.
9455
9456 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9457
9458         * tparam.c: Use correct prototypes.
9459
9460 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9461
9462         * sysproc.h: #include util.h for NetBSD's openpty.
9463
9464 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9465
9466         More 64-bit correctness.
9467         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9468         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9469         Fix up comments.
9470         This finally finishes the 64-bit SGI port.
9471         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9472         * symbols.c: Fix up comments and type casts.
9473         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9474         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9475         * symeval.h (Fixnum): New type.
9476         * symeval.h (symbol_value_type): Fix up comment.
9477
9478         * commands.h:
9479         * nt.c:
9480         * emacs.c:
9481         * data.c:
9482         * redisplay.c:
9483         * abbrev.c:
9484         * dired-msw.c:
9485         * event-Xt.c:
9486         * eldap.c:
9487         * window.c:
9488         * sound.c:
9489         * event-stream.c:
9490         * eval.c:
9491         * buffer.c:
9492         * mule-canna.c: A million DEFVAR_INTs here...
9493         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9494         * extents.c:
9495         * cmdloop.c:
9496         * lisp.h:
9497         * select-x.c:
9498         * console-x.h:
9499         * event-msw.c:
9500         * mule-wnnfns.c:
9501         * hpplay.c:
9502         * ralloc.c:
9503         * alloc.c:
9504         * keymap.c:
9505         * profile.c:
9506         s/int/Fixnum/g in DEFVAR_INT declarations.
9507
9508 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9509
9510         Port pdump to SGI alignment-sensitive environment.
9511         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9512         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9513         properly aligned.
9514         Define and use aligned reading and writing macros.
9515         Use buffered stdio instead of posix i/o for faster dumping.
9516         Eliminate kludgy 256 byte space for header.
9517         Read and write from dump file using structs for alignment safety.
9518         * dumper.c (pdump_align_stream): New.
9519         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9520         * dumper.c (PDUMP_READ_ALIGNED): New.
9521         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9522         * dumper.c (pdump_static_Lisp_Object): New struct.
9523         * dumper.c (pdump_static_pointer): New struct.
9524         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9525         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9526         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9527         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9528
9529         * dumper.c (pdump_backtrace):
9530         * dumper.c (pdump_get_indirect_count):
9531         * dumper.c (pdump_register_object):
9532         * dumper.c (pdump_register_struct):
9533         * dumper.c (pdump_reloc_one):
9534         * dumper.c (pdump_scan_by_alignment):
9535         * dumper.c (pdump_dump_from_root_struct_ptrs):
9536         * dumper.c (pdump_dump_opaques):
9537         * dumper.c (pdump_dump_rtables):
9538         * dumper.c (pdump_dump_from_root_objects):
9539         * dumper.c (pdump):
9540         * dumper.c (pdump_load_finish):
9541         Use aligned reading and writing.
9542
9543         * dumper.c (pdump_free): Make static.
9544         * dumper.c (pdump_hFile): Likewise.
9545         * dumper.c (pdump_hMap): Likewise.
9546
9547 2001-01-26  Martin Buchholz <martin@xemacs.org>
9548
9549         * XEmacs 21.2.43 "Terspichore" is released.
9550
9551 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9552
9553         Type fiddling for window_config.saved_windows_count
9554         * window.c (struct window_config): 
9555         Make saved_windows_count member unsigned.
9556         * window.c (sizeof_window_config_for_n_windows): 
9557         Make parameter unsigned.
9558         * window.c (mark_window_config):
9559         * window.c (window_config_equal):
9560         * window.c (free_window_configuration):
9561         * window.c (Fset_window_configuration):
9562         * window.c (count_windows):
9563         * window.c (Fcurrent_window_configuration):
9564         * window.c (reinit_vars_of_window):
9565         Update all callers and users.
9566
9567 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9568
9569         Alignment correctness for flexible arrays.
9570         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9571         Make alignment-correct. Add interesting comments.
9572         * alloc.c (size_vector):
9573         * alloc.c (make_vector_internal):
9574         * alloc.c (make_bit_vector_internal):
9575         * alloc.c (sweep_bit_vectors_1):
9576         * fns.c (size_bit_vector):
9577         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9578         * window.c (sizeof_window_config_for_n_windows): 
9579         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9580
9581 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9582
9583         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9584
9585 2001-01-23  Andy Piper  <andy@xemacs.org>
9586
9587         * select.c (Fown_selection_internal): pass owned_p
9588
9589         * select-msw.c (mswindows_own_selection): New Signature.
9590
9591         * console.h (struct console_methods): add owned_p to
9592         _own_selection.
9593
9594         * select-x.c (x_own_selection): pass owned_p
9595         (hack_motif_clipboard_selection): use owned_p
9596         (vars_of_select_x): new variable -
9597         x_selection_strict_motif_ownership.
9598
9599 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9600
9601         * specifier.h (specifier_data_offset): Remove pointless parens.
9602         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9603
9604 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9605
9606         Make Lisp_Object sizeof methods be alignment-correct.
9607         pdump must restore objects to the same alignment as the C compiler
9608         assumes.  It really matters on SGIs.
9609         * lstream.c (aligned_sizeof_lstream): New.
9610         (sizeof_lstream): Use aligned_sizeof_lstream.
9611         (Lstream_new): Likewise.
9612         * opaque.c (aligned_sizeof_opaque): New.
9613         (sizeof_opaque): Use aligned_sizeof_opaque.
9614         (make_opaque): Likewise.
9615         * specifier.c (aligned_sizeof_specifier): New.
9616         (sizeof_specifier): Use aligned_sizeof_specifier.
9617         (make_specifier_internal): Likewise.
9618
9619 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9620
9621         * lstream.h (struct lstream): Use max_align_t for trailing data.
9622         * specifier.h (struct Lisp_Specifier): Likewise.
9623
9624 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9625
9626         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9627         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9628         (CCL_SUSPEND): Likewise.
9629         (CCL_INVALID_CMD): Likewise.
9630         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9631         (ccl_driver): Likewise.
9632         (CCL_WRITE_CHAR): Macro hygiene.
9633         (CCL_WRITE_STRING): Macro hygiene.
9634
9635 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9636
9637         Port "portable" dumper to SunOS 4 and HP-UX.
9638         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9639         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9640         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9641
9642 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9643
9644         * lisp.h (ALIGNOF): A better definition for C++.
9645
9646 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9647
9648         Macro hygiene.
9649         Fix printf warnings: int format, long int arg.
9650         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9651         (PUSH_FAILURE_POINT): Use correct printf formats.
9652         (POP_FAILURE_POINT): Use correct printf formats.  
9653         Use do {...} while (0)
9654
9655 2001-01-20  Martin Buchholz <martin@xemacs.org>
9656
9657         * XEmacs 21.2.42 "Poseidon" is released.
9658
9659 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9660
9661         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9662
9663 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9664
9665         De-kludgify FIXED_TYPE free list frobbing.
9666         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9667         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9668         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9669         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9670         * alloc.c (LRECORD_FREE_P): New.
9671         * alloc.c (MARK_LRECORD_AS_FREE): New.
9672         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9673         * alloc.c (STRUCT_FREE_P): Deleted.
9674         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9675         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9676         * alloc.c (STRING_CHARS_FREE_P): New.
9677         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9678         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9679         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9680         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9681         * alloc.c (resize_string): Use new definitions.
9682         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9683         * alloc.c (verify_string_chars_integrity): Use new definitions.
9684         * alloc.c (compact_string_chars): Use new definitions.
9685         * alloc.c: Update monster comments.
9686         * lrecord.h (lrecord_type): Add some new lrecord types for
9687         alloc.c's use.
9688
9689 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9690
9691         Improve alignment hackery.
9692         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9693         (max_align_t): Moved from opaque.h - general purpose.
9694         (ALIGN_PTR): Use size_t, not long.
9695         * opaque.h (max_align_t): Move to lisp.h.
9696
9697 2001-01-18  Norbert Koch  <nk@LF.net>
9698
9699         * gui.h: Fix and add prototypes to fix build problems.
9700
9701 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9702
9703         temacs is going away, so `dump-temacs' is now a bad name.
9704         * .dbxrc (dump-temacs): Rename to `dmp'.
9705         * .gdbinit (dump-temacs): Rename to `dmp'.
9706
9707 2001-01-17  Andy Piper  <andy@xemacs.org>
9708
9709         * glyphs.c (print_image_instance): comment to make martin happy.
9710
9711         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9712         change.
9713
9714         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9715         activation.
9716         (mswindows_tab_control_redisplay): warning suppression.
9717
9718         * glyphs-widget.c (widget_update): re-write to cope with updated
9719         items.
9720         (widget_instantiate): use new gui_item functions.
9721         (tab_control_update): deleted.
9722         (progress_gauge_update): deleted.
9723         (image_instantiator_progress_guage): take out update reference.
9724         (image_instantiator_tree_view): ditto.
9725         (image_instantiator_tab_control): ditto.
9726
9727         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9728         Right the new way.
9729         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9730         return whether anything was changed.
9731         (update_gui_item_keywords): as it sounds.
9732
9733         * gui.h: declare widget_gui_parse_item_keywords.
9734
9735         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9736         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9737
9738 2001-01-17  Martin Buchholz <martin@xemacs.org>
9739
9740         * XEmacs 21.2.41 "Polyhymnia" is released.
9741
9742 2001-01-16  Didier Verna  <didier@xemacs.org>
9743
9744         * glyphs.c (image_instantiate): don't use fallbacks when
9745         instantiating a face's background pixmap by inheritance.
9746
9747 2001-01-14  Mike Sperber <mike@xemacs.org>
9748
9749         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9750         Conditionalize accordingly.
9751
9752 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9753
9754         * dumper.c (pdump_file_get): Fix a compiler warning.
9755
9756 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9757
9758         Make Purify happy when pdumping.
9759         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9760         iniitalizing all bits of new lisp object memory.
9761         * symbols.c (Fmake_local_variable): Likewise.
9762         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9763         * symbols.c (Fdefvaralias): Likewise.
9764         * mule-charset.c (vars_of_mule_charset): Likewise.
9765
9766 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9767         Add the `-nd' flag when running pre-dump operations under the debugger.
9768         * .dbxrc (run-temacs): Add `-nd'.
9769         * .dbxrc (update-elc): Likewise.
9770         * .dbxrc (dump-temacs): Likewise.
9771         * .gdbinit (run-temacs): Likewise.
9772         * .gdbinit (check-temacs): Likewise.
9773         * .gdbinit (update-elc): Likewise.
9774         * .gdbinit (dump-temacs): Likewise.
9775
9776 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9777
9778         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9779         export OBJECT_MODE=64
9780         configure --pdump --use-union-type=no
9781         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9782         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9783
9784         * miscplay.c (sndcnv8U_2mono):
9785         Avoid two uses of `++' in the same expression.
9786         Suppresses a GCC warning.
9787
9788 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9789
9790         Make sure future compilers don't miscompile alloc.c.
9791         * alloc.c:
9792         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9793         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9794
9795 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9796
9797         * dumper.c: A little post-pdump-rename comment fixup.
9798
9799 2001-01-09  Jerry James  <james@eecs.ku.edu>
9800
9801         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9802
9803 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9804
9805         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9806         script:
9807         #!/bin/sh
9808         replace_symbol () {
9809           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9810         }
9811
9812         replace_symbol pdump_wire_lists pdump_weak_object_chains
9813         replace_symbol pdump_wire_list dump_add_weak_object_chain
9814
9815         replace_symbol pdump_wires pdump_root_objects
9816         replace_symbol pdump_wire dump_add_root_object
9817
9818         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9819         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9820
9821         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9822         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9823         replace_symbol dumpstructinfo pdump_root_struct_ptr
9824         replace_symbol dumpstruct dump_add_root_struct_ptr
9825
9826         replace_symbol dumpopaque dump_add_opaque
9827         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9828         replace_symbol dumpopaqueinfos pdump_opaques
9829         replace_symbol dumpopaqueinfo pdump_opaque
9830
9831         replace_symbol nb_structdump nb_root_struct_ptrs
9832         replace_symbol nb_opaquedump nb_opaques
9833
9834         replace_symbol align_table pdump_align_table
9835         replace_symbol dump_header pdump_header
9836
9837         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9838         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9839
9840
9841 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9842
9843         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9844         optimizing bytecount_to_charcount().
9845
9846 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9847
9848         * config.h.in:
9849         (HAVE_DLFCN_H): Removed.
9850         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9851
9852 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9853
9854         Portable dumper maintainability improvements.
9855         * alloc.c (staticpro):
9856         * alloc.c (staticpro_nodump):
9857         * alloc.c (garbage_collect_1):
9858         * alloc.c (reinit_alloc_once_early):
9859         * alloc.c (init_alloc_once_early):
9860         * alloc.c: Move dumper functions to alloc.c.
9861         * dumper.c (pdump_backtrace):
9862         * dumper.c (pdump_dump_structs):
9863         * dumper.c (pdump_dump_opaques):
9864         * dumper.c (pdump_dump_rtables):
9865         * dumper.c (pdump_dump_wired):
9866         * dumper.c (pdump):
9867         * dumper.c (pdump_load_check):
9868         * dumper.c (pdump_load_finish):
9869         * dumper.c (pdump_file_unmap):
9870         * dumper.c (pdump_file_get):
9871         * dumper.c (pdump_resource_free):
9872         * dumper.c (pdump_resource_get):
9873         * dumper.c (pdump_file_free):
9874         * dumper.c (pdump_file_try):
9875         * dumper.c (pdump_load):
9876         Remove fixed size limits on staticpro(), staticpro_nodump(),
9877         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9878         Remove custom code for dumping lrecord_implementations_table - use
9879         dumpopaque instead.
9880         Remove (most of the) custom code for dumping staticpros - dump it
9881         like any other dynarr.
9882
9883         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9884         * dumper.c: Moved functions from alloc.c.
9885         * alloc.c (dumpstruct): Moved to dumper.c.
9886         * alloc.c (dumpopaque): Likewise.
9887         * alloc.c (pdump_wire): Likewise.
9888         * alloc.c (pdump_wire_list): Likewise.
9889
9890         * lisp.h (Dynarr_sizeof): New.
9891         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9892         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9893         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9894
9895         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9896         * lisp.h (dumpopaque): ditto.
9897         * lisp.h (pdump_wire): ditto.
9898         * lisp.h (pdump_wire_list): ditto.
9899
9900 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9901
9902         * make-src-depend (PrintPatternDeps):
9903         Use `sort' to make output independent of perl version.
9904
9905 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9906
9907         Port to Netbsd 1.5.
9908         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9909         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9910
9911 2001-01-03  Didier Verna  <didier@xemacs.org>
9912
9913         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9914         that `focus_frame' is alive before thinking of calling
9915         `redisplay_redraw_cursor' on it.
9916
9917 2001-01-08  Martin Buchholz <martin@xemacs.org>
9918
9919         * XEmacs 21.2.40 is released.
9920
9921 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9922
9923         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9924
9925 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9926
9927         * alloc.c (dbg_valmask): Make const.
9928         * alloc.c (dbg_typemask): Make const.
9929         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9930         * alloc.c (dbg_valbits): Make const.
9931         * alloc.c (dbg_gctypebits): Make const.
9932
9933 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9934
9935         * redisplay-x.c (x_bevel_area):
9936         redisplay.h (struct rune):
9937         Typo fixes in comments.
9938
9939 2001-01-05  Andy Piper  <andy@xemacs.org>
9940
9941         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9942         adjustment.
9943
9944         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9945
9946 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9947
9948         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9949
9950         * mule-ccl.c (stack_idx_of_map_multiple):
9951         Non const global data must not be initialized!
9952         Found by MIYASHITA Hisashi.
9953
9954 2001-01-02  Andy Piper  <andy@xemacs.org>
9955
9956         * frame.c (change_frame_size): make sure frame size is always
9957         marked as changed.
9958
9959         * glyphs.c (image_instance_layout): minor code reuse.
9960
9961         * window.c (Fcurrent_window_configuration): revert previous
9962         change.
9963
9964 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9965
9966         * glyphs.h:
9967         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9968
9969 2000-12-31  Andy Piper  <andy@xemacs.org>
9970
9971         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9972         when widget gets unmapped.
9973
9974         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9975         function. Make sure widgets losing focus don't just drop it.
9976         (handle_focus_event_1): record the widget with focus.
9977
9978 2000-12-31  Andy Piper  <andy@xemacs.org>
9979
9980         * window.c (allocate_window): use
9981         make_image_instance_cache_hash_table.
9982         (make_dummy_parent): ditto.
9983         (Fset_window_configuration): ditto.
9984
9985         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9986
9987         * glyphs.c (process_image_string_instantiator): use
9988         INSTANTIATOR_TYPE.
9989         (get_image_instantiator_governing_domain): ditto.
9990         (normalize_image_instantiator): ditto.
9991         (instantiate_image_instantiator): ditto.
9992         (make_image_instance_1): ditto.
9993         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9994         (instantiator_eq_equal): new function for use with instance hash
9995         tables.
9996         (instantiator_eq_hash): ditto.
9997         (make_image_instance_cache_hash_table): create a suitable hash
9998         table for storing image instances.
9999
10000         * elhash.h (hash_table_weakness): new internal weakness type
10001         HASH_TABLE_KEY_CAR_VALUE_WEAK.
10002         declare new functions.
10003
10004         * elhash.c (finish_marking_weak_hash_tables): introduce yet
10005         another weakness type for glyphs.
10006         (make_standard_lisp_hash_table): new function split out from
10007         make_general_lisp_hash_table.
10008         (make_lisp_hash_table): call make_standard_lisp_hash_table.
10009         (hash_table_instantiate): ditto.
10010         (Fmake_hash_table): ditto.
10011
10012 2000-12-31  Martin Buchholz <martin@xemacs.org>
10013
10014         * XEmacs 21.2.39 is released.
10015
10016 2000-12-29  Andy Piper  <andy@xemacs.org>
10017
10018         * menubar.c (menubar_visible_p_changed): signal the frame changed.
10019
10020         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
10021         the frame has changed so that we pick up geometry changes such as
10022         menubar visibility.
10023
10024 2000-12-28  Andy Piper  <andy@xemacs.org>
10025
10026         * lastfile.c (my_ebss): make a char array so we can pad the
10027         bss. Fixes cygwin unexec.
10028
10029         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
10030
10031 2000-12-26  Andy Piper  <andy@xemacs.org>
10032
10033         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
10034         comments and try and be more precise about a non-/SIGIO world.
10035         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
10036         SIGIO.
10037
10038         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
10039         we don't normalize to zero width or height.
10040
10041 2000-12-24  Andy Piper  <andy@xemacs.org>
10042
10043         * Makefile.in.in (ldflags): add -mwindows when appropriate.
10044
10045 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
10046
10047         * s/sco5.h: SCO 5 has pty support.
10048
10049 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
10050
10051         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
10052         input-method-xlib.c contains whole contents of input-method-xfs.c,
10053         so we can use input-method-xlib.c's code for USE_XFONTSET
10054         using #ifdefs.
10055         * input-method-xfs.c: removed.
10056
10057 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
10058
10059         * file-coding.h (enum coding_category_type): reorder enumerators to
10060         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
10061         (now one greater than largest real coding_category_type enumerator).
10062         * file-coding.c (coding_category_symbol, coding_category_by_priority,
10063         coding_category_system, fcd_descriptihon_1, decode_coding_category,
10064         Fcoding_category_list, Fset_coding_priority_list,
10065         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
10066         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
10067
10068 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10069
10070         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
10071         * redisplay-output.c (redisplay_output_window): Clear top of window
10072         when face is changed.
10073         * redisplay-x.c (x_redraw_exposed_window): Call
10074         redisplay_clear_top_of_window.
10075         * redisplay.h: Publish redisplay_clear_top_of_window.
10076
10077 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10078
10079         * buffer.c (Fkill_buffer): Map over all devices.
10080         * window.c (window_loop): Remove UNSHOW_BUFFER code.
10081         (list_windows): New function.
10082         (list_all_windows): Ditto.
10083         (Freplace_buffer_in_windows): Use them.
10084
10085 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
10086
10087         * database.c (berkdb_subtype): Recognize new subtype `queue'.
10088         (Fopen_database): Use `db_create' instead of `db_open'.
10089         (syms_of_database): Initialize Qqueue.
10090
10091 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10092
10093         * buffer.c (common_init_complex_vars_of_buffer): Initialize
10094         buffer_local_face_property.
10095         * buffer.h (struct buffer): New member buffer_local_face_property.
10096         * window.c (Fset_window_buffer):  Mark window's face as changed
10097         when buffer has buffer local face.
10098         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
10099         * objects.c (color_after_change): Set buffer_local_face_property
10100         when locale of face specifier is buffer.
10101         * objects.c (font_after_change): Ditto.
10102         * objects.c (face_boolean_after_change): Ditto.
10103         * glyphs.c (image_after_change): Ditto.
10104
10105 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10106
10107         * nt.c (mswindows_fstat): Report file permissions, volume serial
10108         number, etc. Code adapted from FSF Emacs 20.7.
10109
10110 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10111
10112         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
10113         of stat when we don't have symbolic links, to make sure
10114         mswindows_stat is called on mswindows.
10115
10116 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
10117
10118         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
10119
10120 2000-12-12  Martin Buchholz  <martin@xemacs.org>
10121
10122         * doprnt.c (emacs_doprnt_1): More printing fixes.
10123         Make printing of numbers compatible with libc and FSF Emacs.
10124         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
10125         Use the system printf to do most of the hard work of formatting,
10126         instead of doprnt_1().
10127         Calculate memory to allocate for format string.
10128         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
10129         (doprnt_1): Cleaner code and documentation.
10130
10131 2000-12-01  Jerry James  <james@eecs.ukans.edu>
10132
10133         * Makefile.in.in: Use the loop variable to install headers.
10134
10135 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10136
10137         * window.c (Fsplit_window): Don't invalidate face cache.
10138
10139 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10140
10141         * minibuf.c (Fall_completions): Undo the previous change
10142         which removed checking elements start with space.
10143
10144 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10145
10146         * mule-canna.c: Didier suppression.
10147
10148 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10149
10150         * mule-canna.c: rename static unsigned char buf[] to key_buffer
10151         (warning suppression).  Add English comment translations.
10152
10153 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10154
10155         * unexelfsgi.c (unexec): Better test for mmap failure.
10156
10157 2000-12-05  Martin Buchholz <martin@xemacs.org>
10158
10159         * XEmacs 21.2.38 is released.
10160
10161 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10162
10163         * redisplay.c (bar-cursor): Make a user variable.
10164
10165         * symsinit.h: Add init_postgresql_from_environment.
10166
10167 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10168
10169         * regex.c: Convert to clean C.
10170
10171 2000-12-05  Dan Holmsand  <dan@eyebee.com>
10172
10173         * realpath.c:
10174         Don't #include sysfile.h. Revert to duplicating PATH_MAX
10175         initialization.
10176         (sys_readlink): renamed to system_readlink to avoid conflict with
10177         the other sys_readlink.
10178
10179 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
10180
10181         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
10182
10183 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
10184
10185         * postgresql.c (init_postgresql_from_environment): new function.
10186         (vars_of_postgresql): Move code initializing Lisp variables out and
10187         into init_postgresql_from_environment.
10188         emacs.c (main_1): Call init_postgresql_from_environment if and only
10189         if running a dumped XEmacs.
10190
10191 2000-08-31  Dan Holmsand  <dan@eyebee.com>
10192
10193         * buffer.c: Make find-file-compare-truenames default to true on
10194         windows.
10195
10196         * realpath.c (win32_abs_start):
10197         (cygwin_readlink):
10198         (win32_readlink): New functions.
10199         (xrealpath): Return really real filenames on windows.
10200
10201         * fileio.c (Ffile_truename): Make file-truename work on windows.
10202
10203 2000-11-29  Didier Verna  <didier@xemacs.org>
10204
10205         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
10206         * faces.c (update_face_cachel_data): use it.
10207         * faces.c (add_face_cachel): use it. Complete background pixmap
10208         frobbing in face cache if `update_face_cachel_data' has not done so.
10209
10210 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
10211
10212         * search.c (string_match_1): Don't set last_thing_searched
10213         when search failed.
10214
10215 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
10216
10217         * buffer.c: Include casetab.h
10218         (common_init_complex_vars_of_buffer): Use new case-table object.
10219         * buffer.h: Include casetab.h
10220         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
10221         (DOWNCASE_TABLE_OF): Ditto.
10222         * bufslots.h: Remove char-tables and add case-table.
10223         * casetab.c: Include casetab.h
10224         (CASE_TABLE_P): Removed.
10225         (mark_case_table): New function.
10226         (allocate_case_table): New function.
10227         (Fcase_table_p): Use new case-table.
10228         (case_table_char): New function.
10229         (Fget_case_table): Ditto.
10230         (Fput_case_table): Ditto.
10231         (Fput_case_table_pair): Ditto.
10232         (Fcopy_case_table): Ditto.
10233         (Fcurrent_case_table): Return case-table.
10234         (Fstandard_case_table): Return case-table.
10235         (Fset_case_table): Fix doc-string.
10236         (set_case_table): Use case-table
10237         (syms_of_casetab): DEFSUBR new functions.
10238         (complex_vars_of_casetab): Set up standard case-table.
10239         * casetab.h: New file.
10240         * editfns.c: Include casetab.h
10241         (Fcompare_buffer_substrings): Use case-table.
10242         * inline.c: Include casetab.h
10243         * lisp.h: Remove bogus extern.
10244         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
10245         * search.c: Include casetab.h
10246         (TRANSLATE_ASCII): Removed.
10247         (TRANSLATE): Unconditionally translate character.
10248         (looking_at_1): Use case-table.
10249         (string_match_1): Ditto.
10250         (fast_string_match): Ditto.
10251         (search_command): Ditto.
10252         (search_buffer): Separate boyer_moore.  Check whether
10253         boyer_moore is possible.
10254         (simple_search): New function.
10255         (boyer_moore): Separated from search_buffer. Translate char.
10256
10257 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10258
10259         * regex.c (RE_TR_ASCII): Removed.
10260         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
10261         (PATFETCH): Call PATFETCH_RAW.
10262         (PATFETCH_RAW): Fetch Emchar.
10263         (PATUNFETCH): Decrement charptr.
10264         (GET_BUFFER_SPACE): Rename b to buf_end.
10265         (BUF_PUSH): Ditto.
10266         (BUF_PUSH_2): Ditto.
10267         (BUF_PUSH_3): Ditto.
10268         (EXTEND_BUFFER): Ditto.
10269         (SET_LIST_BIT): Ditto.
10270         (regex_compile): Ditto.  Translate non ASCII char.
10271         (compile_range): Ditto.
10272         (re_search_2): Ditto.
10273         (re_match_2_internal): Compare Emchar.
10274         (bcmp_translate): Ditto.
10275
10276 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
10277
10278         * lisp.h (basic char/int typedefs):  comment improvement.
10279
10280 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
10281
10282         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
10283         unstomp inhibit_site_lisp.  Improve comments.
10284
10285 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
10286
10287         * mule-charset.c (Fcharset_property):  improve type checking, comments.
10288
10289 2000-11-28  Andy Piper  <andy@xemacs.org>
10290
10291         * redisplay-output.c (redisplay_output_subwindow): make sure we do
10292         clipped display for windows in the gutter also.
10293         (redisplay_display_boxes_in_window_p): change semantics of return
10294         codes to be more intuitive.
10295
10296         * gutter.h: declare display_boxes_in_gutter_p.
10297
10298         * gutter.c (display_boxes_in_gutter_p): new function for
10299         redisplay.
10300
10301 2000-11-22  Andy Piper  <andy@xemacs.org>
10302
10303         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10304         autodetect domain.
10305
10306 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10307
10308         * callproc.c (Fold_call_process_internal):
10309         * gpm.c (Freceive_gpm_event):
10310         (tty_get_foreign_selection): Might be just warning supression.
10311         * fileio.c (Fwrite_region_internal):
10312         (Fset_visited_file_modtime):
10313         * keymap.c (event_matches_key_specifier_p):
10314         Initialize GCPROed variable.
10315
10316         * menubar-x.c (command_builder_find_menu_accelerator):
10317         Initialize before use.
10318
10319 2000-11-23  Andy Piper  <andy@xemacs.org>
10320
10321         * unexcw.c (unexec): make the resulting executable executable.
10322
10323 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10324
10325         * doc.c (get_doc_string):
10326         Use size_t, not int, for result of XSTRING_LENGTH.
10327
10328         * cmds.c (Fdelete_char):
10329         * cmds.c (Fpoint_at_eol):
10330         * cmds.c (Fself_insert_command):
10331         Use EMACS_INT, not int, for result of XINT.
10332         Someday, someone will want to insert more than 2**31 identical characters.
10333
10334         * cmds.c (Fdelete_char):
10335         * cmds.c (Fdelete_backward_char):
10336         * syntax.c (Fforward_word):
10337         * syntax.c (Fforward_comment):
10338         Make COUNT argument optional, for consistency with forward-char et al.
10339
10340 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10341
10342         * lisp.h:
10343         * print.c (long_to_string):
10344         Return a useful value: the pointer at end of data written.
10345
10346         * doprnt.c:
10347         Use `static const char * const' for constant strings.
10348         (union printf_arg): Delete `i', `ui' members.
10349         (get_doprnt_args):
10350         (emacs_doprnt_1):
10351         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10352         Do all printf-ing via the `l' specifier.
10353         Use EMACS_INT instead of int.
10354         Optimize.
10355
10356 2000-11-20  Didier Verna  <didier@xemacs.org>
10357
10358         * faces.c (update_face_cachel_data): don't frob the background
10359         pixmap when the window is being created. The face is needed but
10360         does not exist yet.
10361
10362 2000-11-20  Andy Piper  <andy@xemacs.org>
10363
10364         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10365         messing with a debug environment.
10366
10367 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10368
10369         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10370
10371 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10372
10373         * casetab.c (Fcase_table_p): Fix compile error and crash.
10374
10375 2000-11-18  Philip Aston  <philipa@mail.com>
10376
10377         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10378
10379 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10380
10381         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10382         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10383
10384 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10385
10386         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10387         * unexelf.c: Use HAVE_ELF_H.
10388         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10389         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10390         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10391         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10392         for testing.
10393         So this is an unexelfsgi.c from a different line of development.
10394
10395 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10396
10397         * regex.c (RE_TR_ASCII): New function.
10398         (RE_TRANSLATE): Call it.
10399
10400 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10401
10402         * buffer.h (TRT_TABLE_OF): Remove assert.
10403         (IN_TRT_TABLE_DOMAIN): Removed.
10404
10405 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10406
10407         * free-hook.c (log_gcpro):
10408         (show_gcprohist): Add support for GCPRO5.
10409
10410 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10411
10412         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10413
10414 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10415
10416         * symeval.h: Declare flush_all_buffer_local_cache.
10417
10418         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10419         (flush_buffer_local_cache): Added.
10420         (flush_all_buffer_local_cache): Added.
10421
10422         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10423
10424         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10425         (pdump_dump_data): Ditto.
10426         (pdump_reloc_one): Ditto.
10427         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10428         before dumping.
10429
10430
10431 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10432
10433         * buffer.c: Remove if 0'ed entry.
10434         * buffer.h: Rewrite TRT to use char-table.
10435         * bufslots.h: Remove mirror tables.
10436         * casetab.c: Remove mirror tables.
10437         (CASE_TABLE_P): New macro.
10438         (Fcase_table_p): Element of a case table is string or char-table.
10439         (make_mirror_trt_table): Removed.
10440         (set_case_table): Setup char-table from strings for backward
10441         compatibility.
10442         * dired.c (Fdirectory_files):
10443         * dired-msw.c: (mswindows_get_files):
10444         * lisp.h: Change prototype of re_pattern_buffer.
10445         * regex.c: (RE_TRANSLATE): New macro.
10446         (TRANSLATE_P): Ditto.
10447         Change translate to type RE_TRANSLATE_TYPE.
10448         * regex.h: Define RE_TRANSLATE_TYPE
10449         * search.c (TRANSLATE): New macro.
10450         (TRANSLATE_ASCII): New macro.
10451         Translate table is changed to Lisp_Object.
10452         (signal_failure): Inhibit return.
10453
10454 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10455
10456         * device-msw.c:
10457         * eldap.c:
10458         * event-Xt.c:
10459         * event-stream.c:
10460         * print.c:
10461         Do UNGCPRO before return.
10462
10463 2000-11-14  Martin Buchholz <martin@xemacs.org>
10464
10465         * XEmacs 21.2.37 is released.
10466
10467 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10468
10469         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10470         Add comments about discarded return value.
10471
10472 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10473
10474         * callint.c:
10475         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10476
10477 2000-10-27  Andy Piper  <andy@xemacs.org>
10478
10479         * gutter.c (Fset_default_gutter_position): default left and right
10480         gutters to visible.
10481         (calculate_gutter_size): calculate resonable heuristic for left
10482         and right gutter sizes.
10483         (specifier_vars_of_gutter): change left and right gutter sizes to
10484         autodetect.
10485         (calculate_gutter_size_from_display_lines): new function.
10486         (output_gutter): check for resizing on left and right gutters.
10487         (clear_gutter): don't special case top and left gutters.
10488         (specifier_vars_of_gutter): use new signature for
10489         set_specifier_caching.
10490
10491         * glyphs-x.c (x_redisplay_widget): spelling fix.
10492         * glyphs.c (specifier_vars_of_glyphs):
10493         * menubar.c (specifier_vars_of_menubar):
10494         * redisplay.c (specifier_vars_of_redisplay):
10495         * toolbar.c (specifier_vars_of_toolbar):
10496         * window.c (specifier_vars_of_window):
10497         * scrollbar.c (specifier_vars_of_scrollbar):
10498         (complex_vars_of_scrollbar): use new signature for
10499         set_specifier_caching.
10500
10501         * specifier.c (set_specifier_caching): include recompute flag.
10502         (recompute_one_cached_specifier_in_window): always recompute if
10503         flag set.
10504         (recompute_one_cached_specifier_in_frame): ditto.
10505
10506         * specifier.h (struct specifier_caching): add recompute flag.
10507
10508 2000-10-24  Andy Piper  <andy@xemacs.org>
10509
10510         * unexcw.c (copy_executable_and_dump_data_section): add new
10511         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10512         5.0 happy.
10513
10514 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10515
10516         * console-x.h (x_device): New member modifier_release_time.
10517         * event-Xt.c (x_handle_sticky_modifiers):
10518         Bound interval modifier keys are sticky.
10519         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10520         * events.h: extern it.
10521
10522 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10523
10524         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10525
10526 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10527
10528         * event-stream.c (execute_command_event): Preserve current_events
10529         and the like when event is misc-user-event.
10530         Inhibit quit during the call to maybe_echo_keys.
10531
10532 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10533
10534         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10535         symlink when buffer is killed.
10536         (inhibit_clash_detection): New variable.
10537
10538 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10539
10540         * console.c (Fset_input_method): Trigger redisplay on tty.
10541
10542 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10543
10544         * process.c (Fprocess_status): Revert to previous behavior:
10545         (process-status "nosuchprocess") ==> nil
10546
10547 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10548
10549         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10550         Work around another GCC 2.95.2 optimizer bug.
10551
10552 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10553
10554         * process.c (Fget_process): Use LIST_LOOP_2.
10555         (kill_buffer_processes): Use LIST_LOOP_2.
10556
10557         * minibuf.c (Fall_completions):
10558         Delete old non-functional code for FSF fourth argument.
10559
10560         * frame.c (frame_matches_frame_spec):
10561         Renamed from `frame_matches_frametype'.  Update all callers.
10562         (device_matches_device_spec):
10563         Renamed from 'device_matches_console_spec'.  Update all callers.
10564
10565         * doc.c (Fsubstitute_command_keys):
10566         Remove buffer overflow crash.  Small code cleanups.
10567
10568         * casetab.c (check_case_table): Simpler code.
10569
10570         * window.c (Freplace_buffer_in_windows):
10571         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10572         (and similar implementation) as Fdelete_windows_on.
10573         Update all callers.
10574
10575         * alloc.c (Fmake_list):
10576         * alloc.c (make_vector):
10577         * alloc.c (Fmake_vector):
10578         * alloc.c (make_bit_vector):
10579         * alloc.c (Fmake_bit_vector):
10580         * alloc.c (Fbit_vector):
10581         * alloc.c (Fmake_string):
10582         * alloc.c (Fpurecopy):
10583         * alloc.c (Fmemory_limit):
10584         * buffer.c:
10585         * buffer.c (Fget_buffer):
10586         * buffer.c (Fkill_buffer):
10587         * buffer.c (complex_vars_of_buffer):
10588         * bytecode.c (Fcompiled_function_stack_depth):
10589         * callint.c (Fprefix_numeric_value):
10590         * event-stream.c:
10591         * event-stream.c (Fread_key_sequence):
10592         * casetab.c:
10593         * casetab.c (Fcase_table_p):
10594         * casetab.c (check_case_table):
10595         * casetab.c (Fset_case_table):
10596         * casetab.c (Fset_standard_case_table):
10597         * chartab.c:
10598         * chartab.c (Fchar_table_type):
10599         * chartab.c (Freset_char_table):
10600         * chartab.c (Fget_char_table):
10601         * chartab.c (Fget_range_char_table):
10602         * chartab.c (Fput_char_table):
10603         * chartab.c (Fmap_char_table):
10604         * chartab.c (Fcategory_table_p):
10605         * chartab.c (Fcheck_category_at):
10606         * chartab.c (Fchar_in_category_p):
10607         * chartab.c (Fcategory_table):
10608         * chartab.c (Fcopy_category_table):
10609         * chartab.c (Fset_category_table):
10610         * chartab.c (Fcategory_designator_p):
10611         * chartab.c (Fcategory_table_value_p):
10612         * cmds.c (Fdelete_char):
10613         * cmds.c (Fdelete_backward_char):
10614         * cmds.c (Fself_insert_command):
10615         * cmds.c (Fself_insert_internal):
10616         * console.c (Fvalid_console_type_p):
10617         * console.c (Fcdfw_console):
10618         * console.c (Fconsole_type):
10619         * console.c (Fconsole_name):
10620         * console.c (Fconsole_device_list):
10621         * console.c (Fconsole_on_window_system_p):
10622         * data.c:
10623         * data.c (Feq):
10624         * data.c (Fold_eq):
10625         * data.c (Fsubr_interactive):
10626         * data.c (Fchar_to_int):
10627         * data.c (Fint_to_char):
10628         * data.c (Fsetcar):
10629         * data.c (Fsetcdr):
10630         * data.c (Fnumber_to_string):
10631         * data.c (Fstring_to_number):
10632         * data.c (Frem):
10633         * database.c (mark_database):
10634         * database.c (finalize_database):
10635         * database.c (Fdatabase_live_p):
10636         * database.c (Fdatabasep):
10637         * device-x.c (Fx_get_resource):
10638         * device.c (Fdfw_device):
10639         * dired.c:
10640         * dired.c (Ffile_name_completion):
10641         * dired.c (Ffile_name_all_completions):
10642         * dired.c (Fuser_name_completion):
10643         * dired.c (Fuser_name_completion_1):
10644         * dired.c (Fuser_name_all_completions):
10645         * doc.c (Fdocumentation):
10646         * doc.c (Fdocumentation_property):
10647         * doc.c (Fsubstitute_command_keys):
10648         * editfns.c:
10649         * editfns.c (Fchar_to_string):
10650         * editfns.c (Fstring_to_char):
10651         * editfns.c (Ftemp_directory):
10652         * editfns.c (Finsert_char):
10653         * editfns.c (Fbuffer_substring_no_properties):
10654         * editfns.c (Fnarrow_to_region):
10655         * editfns.c (Fchar_equal):
10656         * editfns.c (Fchar_Equal):
10657         * editfns.c (Ftranspose_regions):
10658         * emacs.c (Fdump_emacs):
10659         * eval.c (Fthrow):
10660         * eval.c (Fcommand_execute):
10661         * eval.c (Fautoload):
10662         * eval.c (Fbacktrace):
10663         * eval.c (Fbacktrace_frame):
10664         * events.c:
10665         * events.c (Fcopy_event):
10666         * events.c (Fcharacter_to_event):
10667         * events.c (Fevent_button):
10668         * events.c (Fevent_process):
10669         * extents.c:
10670         * extents.c (Fnext_extent_change):
10671         * extents.c (Fextent_property):
10672         * faces.c (Ffacep):
10673         * faces.c (Fmake_face):
10674         * file-coding.c:
10675         * file-coding.c (Fencode_shift_jis_char):
10676         * file-coding.c (Fencode_big5_char):
10677         * fileio.c (Ffile_name_directory):
10678         * fileio.c (Ffile_name_nondirectory):
10679         * fileio.c (Ffile_name_as_directory):
10680         * fileio.c (Fdirectory_file_name):
10681         * fileio.c (Ffile_truename):
10682         * fileio.c (Fsubstitute_in_file_name):
10683         * fileio.c (Ffile_modes):
10684         * fileio.c (Fset_file_modes):
10685         * fileio.c (Fset_default_file_modes):
10686         * fileio.c (Fverify_visited_file_modtime):
10687         * floatfns.c (Facos):
10688         * floatfns.c (Fasin):
10689         * floatfns.c (Fatan):
10690         * floatfns.c (Fcos):
10691         * floatfns.c (Fsin):
10692         * floatfns.c (Ftan):
10693         * floatfns.c (Fbessel_j0):
10694         * floatfns.c (Fbessel_j1):
10695         * floatfns.c (Fbessel_jn):
10696         * floatfns.c (Fbessel_y0):
10697         * floatfns.c (Fbessel_y1):
10698         * floatfns.c (Fbessel_yn):
10699         * floatfns.c (Ferf):
10700         * floatfns.c (Ferfc):
10701         * floatfns.c (Flog_gamma):
10702         * floatfns.c (Fexp):
10703         * floatfns.c (Fexpt):
10704         * floatfns.c (Flog):
10705         * floatfns.c (Flog10):
10706         * floatfns.c (Fsqrt):
10707         * floatfns.c (Fcube_root):
10708         * floatfns.c (Facosh):
10709         * floatfns.c (Fasinh):
10710         * floatfns.c (Fatanh):
10711         * floatfns.c (Fcosh):
10712         * floatfns.c (Fsinh):
10713         * floatfns.c (Ftanh):
10714         * floatfns.c (Fabs):
10715         * floatfns.c (Ffloat):
10716         * floatfns.c (Flogb):
10717         * floatfns.c (Fceiling):
10718         * floatfns.c (Ffloor):
10719         * floatfns.c (Fround):
10720         * floatfns.c (Ftruncate):
10721         * floatfns.c (Ffceiling):
10722         * floatfns.c (Fffloor):
10723         * floatfns.c (Ffround):
10724         * floatfns.c (Fftruncate):
10725         * fns.c (Fstring_equal):
10726         * fns.c (Fstring_lessp):
10727         * fns.c (concat2):
10728         * fns.c (concat3):
10729         * fns.c (vconcat2):
10730         * fns.c (vconcat3):
10731         * fns.c (Fsubstring):
10732         * fns.c (Fassoc):
10733         * fns.c (Fold_assoc):
10734         * fns.c (assoc_no_quit):
10735         * fns.c (Fassq):
10736         * fns.c (Fold_assq):
10737         * fns.c (assq_no_quit):
10738         * fns.c (Frassoc):
10739         * fns.c (Fold_rassoc):
10740         * fns.c (Frassq):
10741         * fns.c (Fold_rassq):
10742         * fns.c (rassq_no_quit):
10743         * fns.c (Fremassoc):
10744         * fns.c (remassoc_no_quit):
10745         * fns.c (Fremassq):
10746         * fns.c (remassq_no_quit):
10747         * fns.c (Fremrassoc):
10748         * fns.c (Fremrassq):
10749         * fns.c (remrassq_no_quit):
10750         * fns.c (Fsort):
10751         * fns.c (Fplist_get):
10752         * fns.c (Fplist_put):
10753         * fns.c (Fplist_remprop):
10754         * fns.c (Fplist_member):
10755         * fns.c (Flax_plist_get):
10756         * fns.c (Flax_plist_put):
10757         * fns.c (Flax_plist_remprop):
10758         * fns.c (Flax_plist_member):
10759         * fns.c (Fequal):
10760         * fns.c (Fold_equal):
10761         * fns.c (Frequire):
10762         * fns.c (Fbase64_encode_region):
10763         * fns.c (Fbase64_encode_string):
10764         * fns.c (Fbase64_decode_region):
10765         * frame.c:
10766         * frame.c (frame_matches_frame_spec):
10767         * frame.c (device_matches_device_spec):
10768         * frame.c (next_frame):
10769         * frame.c (previous_frame):
10770         * frame.c (Fnext_frame):
10771         * frame.c (Fprevious_frame):
10772         * frame.c (Fframe_property):
10773         * frame.c (Fset_frame_height):
10774         * frame.c (Fset_frame_size):
10775         * frame.h:
10776         * glyphs.c:
10777         * glyphs.c (if):
10778         * glyphs.c (decode_error_behavior_flag):
10779         * glyphs.c (Fmake_image_instance):
10780         * indent.c (Findent_to):
10781         * intl.c (Fignore_defer_gettext):
10782         * keymap.c (Fkeymapp):
10783         * keymap.c (Flookup_key):
10784         * lread.c:
10785         * lread.c (Fload_internal):
10786         * lread.c (Feval_buffer):
10787         * lread.c (Feval_region):
10788         * macros.c (Fexecute_kbd_macro):
10789         * marker.c (set_marker_internal):
10790         * marker.c (Fset_marker):
10791         * marker.c (set_marker_restricted):
10792         * marker.c (Fcopy_marker):
10793         * marker.c (noseeum_copy_marker):
10794         * menubar.c:
10795         * menubar.c (Fpopup_menu):
10796         * minibuf.c:
10797         * mule-charset.c (Fcharset_name):
10798         * mule-charset.c (Fchar_charset):
10799         * mule-charset.c (Fchar_octet):
10800         * mule-charset.c (Fsplit_char):
10801         * mule-wnnfns.c (Fwnn_open):
10802         * mule-wnnfns.c (Fwnn_dict_comment):
10803         * mule-wnnfns.c (Fwnn_quit_henkan):
10804         * mule-wnnfns.c (Fwnn_word_toroku):
10805         * mule-wnnfns.c (Fwnn_word_sakujo):
10806         * mule-wnnfns.c (Fwnn_word_use):
10807         * mule-wnnfns.c (Fwnn_hindo_set):
10808         * objects.c:
10809         * objects.c (Fmake_color_instance):
10810         * objects.c (Fmake_font_instance):
10811         * print.c (Fwrite_char):
10812         * process.c:
10813         * process.c (mark_process):
10814         * process.c (print_process):
10815         * process.c (get_process_from_usid):
10816         * process.c (Fprocessp):
10817         * process.c (Fprocess_live_p):
10818         * process.c (Fget_process):
10819         * process.c (Fget_buffer_process):
10820         * process.c (get_process):
10821         * process.c (Fprocess_id):
10822         * process.c (Fprocess_name):
10823         * process.c (Fprocess_command):
10824         * process.c (init_process_io_handles):
10825         * process.c (start_process_unwind):
10826         * process.c (Fstart_process_internal):
10827         * process.c (Fopen_multicast_group_internal):
10828         * process.c (Fset_process_window_size):
10829         * process.c (read_process_output):
10830         * process.c (send_process):
10831         * process.c (Fprocess_tty_name):
10832         * process.c (Fset_process_buffer):
10833         * process.c (Fprocess_buffer):
10834         * process.c (Fprocess_mark):
10835         * process.c (set_process_filter):
10836         * process.c (Fset_process_filter):
10837         * process.c (Fprocess_filter):
10838         * process.c (Fprocess_send_region):
10839         * process.c (Fprocess_send_string):
10840         * process.c (exec_sentinel):
10841         * process.c (Fset_process_sentinel):
10842         * process.c (Fprocess_sentinel):
10843         * process.c (status_notify):
10844         * process.c (Fprocess_status):
10845         * process.c (Fprocess_exit_status):
10846         * process.c (process_send_signal):
10847         * process.c (Fprocess_send_eof):
10848         * process.c (deactivate_process):
10849         * process.c (remove_process):
10850         * process.c (Fdelete_process):
10851         * process.c (kill_buffer_processes):
10852         * process.c (Fprocess_kill_without_query):
10853         * process.c (Fprocess_kill_without_query_p):
10854         * rangetab.c:
10855         * rangetab.c (Fget_range_table):
10856         * rangetab.c (Fput_range_table):
10857         * rangetab.c (Fremove_range_table):
10858         * rangetab.c (Fclear_range_table):
10859         * search.c:
10860         * search.c (Fskip_chars_forward):
10861         * search.c (Fskip_chars_backward):
10862         * search.c (Fskip_syntax_forward):
10863         * search.c (Fskip_syntax_backward):
10864         * search.c (search_command):
10865         * search.c (Freplace_match):
10866         * search.c (Fregexp_quote):
10867         * select.c (Fown_selection_internal):
10868         * select.c (Fselection_owner_p):
10869         * select.c (Fselection_exists_p):
10870         * select.c (Fget_selection_internal):
10871         * specifier.c:
10872         * symbols.c:
10873         * symbols.c (Fintern):
10874         * symbols.c (Fintern_soft):
10875         * symbols.c (Funintern):
10876         * symbols.c (Fapropos_internal):
10877         * symbols.c (Fset_default):
10878         * syntax.c:
10879         * syntax.c (Fsyntax_table_p):
10880         * syntax.c (Fcopy_syntax_table):
10881         * syntax.c (Fset_syntax_table):
10882         * syntax.c (Fchar_syntax):
10883         * syntax.c (syntax_match):
10884         * syntax.c (Fmatching_paren):
10885         * syntax.c (Fforward_word):
10886         * syntax.c (scan_lists):
10887         * syntax.c (Fscan_lists):
10888         * syntax.c (Fscan_sexps):
10889         * syntax.c (Fparse_partial_sexp):
10890         * toolbar.c (Fcheck_toolbar_button_syntax):
10891         * tooltalk.doc:
10892         * window.c:
10893         * window.c (Fwindowp):
10894         * window.c (Fwindow_live_p):
10895         * window.c (Fwindow_point):
10896         * window.c (Fdelete_window):
10897         * window.c (Fnext_window):
10898         * window.c (Fprevious_window):
10899         * window.c (Fother_window):
10900         * window.c (window_loop):
10901         * window.c (Fget_lru_window):
10902         * window.c (Fsplit_window):
10903         * window.c (Fenlarge_window):
10904         * window.c (Fenlarge_window_pixels):
10905         * window.c (Fshrink_window):
10906         * window.c (Fshrink_window_pixels):
10907         * window.c (change_window_height):
10908         * window.c (Fwindow_configuration_p):
10909         * window.c (Fcurrent_window_configuration):
10910         * window.h:
10911         * casefiddle.c (casify_object):
10912         * casefiddle.c (Fupcase):
10913         * casefiddle.c (Fdowncase):
10914         * casefiddle.c (Fcapitalize):
10915         * casefiddle.c (Fupcase_initials):
10916         * casefiddle.c (casify_region_internal):
10917         * casefiddle.c (casify_region):
10918         * casefiddle.c (Fupcase_region):
10919         * casefiddle.c (Fdowncase_region):
10920         * casefiddle.c (Fcapitalize_region):
10921         * casefiddle.c (Fupcase_initials_region):
10922         * casefiddle.c (Fupcase_word):
10923         * casefiddle.c (Fdowncase_word):
10924         * casefiddle.c (Fcapitalize_word):
10925         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10926         Replace 0 with '\0' when working with bytes.
10927         Replace initial "(" with "\(" in docstrings.
10928
10929 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10930
10931         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10932
10933         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10934
10935 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10936
10937         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10938
10939 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10940
10941         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10942         correctly.
10943
10944 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10945
10946         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10947         (inhibit_auto_save_session): New variable.
10948         (vars_of_fileio): Declare and initialize them.
10949         * fileio.c (Fdo_auto_save): Don't create session file if
10950         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10951
10952 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10953
10954         * sgiplay.c (play_internal): C++ compilability.
10955         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10956         * callproc.c (Fold_call_process_internal):
10957         Remove unused vars `env', `first'.
10958         * scrollbar.c (update_scrollbar_instance):
10959         #### unused var `current_window'.
10960         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10961         etc. within #ifdef NOT_YET.
10962         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10963         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10964         * specifier.c (specifier_instance):
10965         #### unused var `tag'.
10966         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10967
10968 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10969
10970         * fns.c (Fbutlast):
10971         * fns.c (list_sort):
10972         * fns.c (Ffillarray):
10973         * fns.c (bytecode_nconc2):
10974         * fns.c (Fnconc):
10975         * fns.c (mapcar1):
10976         * fns.c (Fmapconcat):
10977         Be pedantically 64-bit correct.  For the time when someone will
10978         want to have a list with length > 2**32.
10979
10980         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10981         Work around MIPSpro compiler bug.
10982
10983         * process-unix.c (unix_kill_child_process): Add snarky comment.
10984         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10985
10986         * config.h.in: Oops, _getpt ==> _getpty
10987
10988 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10989
10990         * config.h.in:
10991         * regex.c:
10992         Use void*, not char*, as return type of alloca().
10993
10994         * alloc.c (free_marker): Side effect inside assert expression!
10995
10996 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10997
10998         * mule-charset.c (Fset_charset_ccl_program): To check
10999         if the given ccl program is valid, use setup_ccl_program()
11000         instead of CHECK_VECTOR().
11001         (Fmake_charset): Likewise.
11002
11003 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
11004
11005         * faces.c (get_extent_fragment_face_cache_index):
11006         Fix cachel.merged_faces memory leak.
11007
11008 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
11009
11010         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
11011         Reset MSB of octets obtained by DECODE_SJIS
11012         because of the incompatibility with Emacs.
11013         (ccl_driver)<CCL_ENCODE_SJIS>:
11014         Set MSB of octets before passing them to
11015         ENCODE_SJIS because of the incompatibility
11016         with Emacs.
11017
11018 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
11019
11020         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
11021         (DECLARE_LRECORD): Undo the last change.
11022         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
11023
11024 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
11025
11026         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
11027         the implementation to lrecord_implementations_table.
11028
11029 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
11030
11031         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
11032         initial value of `lrecord_type_##c_name' and
11033         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
11034         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
11035         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
11036         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
11037         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
11038
11039 2000-10-17  Martin Buchholz  <martin@xemacs.org>
11040
11041         * miscplay.c (sndcnv8S_2mono):
11042         (sndcnv2monounsigned):
11043         (sndcnvULaw_2linear):
11044         (sndcnv16swap):
11045         Remove implementation-defined behavior.
11046
11047 2000-10-12  Martin Buchholz  <martin@xemacs.org>
11048
11049         * input-method-xlib.c: Warning suppression.
11050
11051 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
11052
11053         * mule-ccl.c: Sync up with Emacs 21.0.90.
11054         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
11055         Do nothing.
11056         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
11057         Likewise.
11058         (ccl_driver[WriteMultibyteChar2]): Bug fix.
11059         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
11060         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
11061         leading char belongs to official 2-dimensional charset.
11062         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
11063         write the given character as is.  Otherwise,
11064         if it is a multibyte char, convert it by
11065         non_ascii_set_charptr_emchar, then write it.
11066         (CCL_WRITE_STRING): Likewise.
11067         (ccl_get_compiled_code): New function.
11068         (setup_ccl_program): When ccl_prog is invalid,
11069         return -1.
11070         (Fregister_code_conversion_map): New function.
11071         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
11072
11073         * mule-ccl.h: Sync up with Emacs 21.0.90.
11074         (Fregister_ccl_program): export it.
11075
11076         * redisplay-msw.c (separate_textual_runs):
11077         If ccl program is not valid, don't do ccl conversion.
11078
11079         * redisplay-x.c (separate_textual_runs): Ditto.
11080
11081         * file-coding.c (Fmake_coding_system):
11082         When type is ccl and value is vector, register it
11083         with a proper symbol.  And checks whether the
11084         given ccl program is valid.
11085         (mule_decode): When calling ccl_driver, if src indicates
11086         NULL pointer, set an empty string instead.
11087         (mule_encode): Likewise.
11088
11089 2000-10-11  Martin Buchholz  <martin@xemacs.org>
11090
11091         The following large batch of changes gets us back to a state of
11092         C++ compilability.  Extbyte is now a char, which means that
11093         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
11094
11095         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
11096
11097         * sound.c (Fplay_sound): Type correctness.
11098
11099         * select-x.c (hack_motif_clipboard_selection): Type correctness.
11100         (x_get_window_property): Type correctness.
11101         (receive_incremental_selection): unsigned char ==> Extbyte
11102         (selection_data_to_lisp_data): unsigned char ==> Extbyte
11103         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
11104         (Fx_store_cutbuffer_internal): Type correctness.
11105
11106         * process-unix.c (try_to_initialize_subtty): Type correctness.
11107
11108         * objects-x.c (x_print_color_instance): Type correctness.
11109         (x_print_font_instance): Type correctness.
11110         (x_list_fonts): SExtbyte ==> Extbyte.
11111         (valid_x_font_name_p): SExtbyte ==> Extbyte.
11112         (x_find_charset_font): SExtbyte ==> Extbyte.
11113         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
11114         (truename_via_XListFonts): SExtbyte ==> Extbyte.
11115         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
11116         Use bufbyte_strcmp.
11117
11118         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
11119         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
11120         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
11121         (BYTE_C0_P): Use bit ops for char-signedness safety.
11122         (BYTE_C1_P): Use bit ops for char-signedness safety.
11123         (CHARSET_BY_LEADING_BYTE):
11124         (CHARSET_BY_ATTRIBUTES):
11125         Always use inline function.
11126         Use type_checking_assert.
11127         Hide chlook.
11128
11129         * mule-charset.c (non_ascii_charptr_copy_char):
11130         Modify to work with both ASCII and non-ASCII characters.
11131         Improve docs and variable names.
11132         Replace over-clever fall-through switch with a simple loop.
11133         (Lstream_get_emchar_1):
11134         Replace over-clever fall-through switch with a simple loop.
11135
11136         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11137         Warning suppression.
11138
11139         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
11140         the return value of Lstream_getc, which could be EOF as well.
11141
11142         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
11143
11144         * lisp.h: Make Extbyte a char, not unsigned char, so that external
11145         APIs can be used on Extbytes without casts.  Risky!
11146         (SExtbyte): Remove.
11147         (UExtbyte): Remove.
11148
11149         * input-method-xlib.c (XIM_init_device):
11150         Use Xlib.h instead of IntrinsicP.h.
11151         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
11152         which will break in X11R7.
11153         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
11154         to call XRegisterIMInstantiateCallback with correct types.
11155
11156         * gui-x.c (button_item_to_widget_value): Type correctness.
11157
11158         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
11159
11160         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
11161         (xbm_instantiate_1): Type correctness.
11162         (BUILD_GLYPH_INST):  Type correctness.
11163
11164         * fileio.c (Fsubstitute_in_file_name): Type correctness.
11165
11166         * file-coding.c:
11167         (decode_coding_sjis):
11168         (decode_coding_big5):
11169         (decode_coding_ucs4):
11170         (decode_coding_utf8):
11171         (decode_coding_iso2022):
11172         (decode_coding_no_conversion):
11173         Make all decoding functions take an Extbyte * arg.
11174         (encode_coding_sjis):
11175         (encode_coding_big5):
11176         (encode_coding_ucs4):
11177         (encode_coding_utf8):
11178         (encode_coding_iso2022):
11179         (encode_coding_no_conversion):
11180         Make all encoding functions take a Bufbyte * arg.
11181         Use size_t instead of unsigned int for memory sizes.
11182         Only cast to unsigned char whenever dereferencing Extbyte *.
11183
11184         * doc.c (unparesseuxify_doc_string): Type correctness.
11185
11186         * console-x.c (split_up_display_spec):
11187         Rewrite without using details of internal string representation.
11188         (x_semi_canonicalize_device_connection): Type correctness.
11189
11190         * config.h.in:
11191         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
11192         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
11193         (HAVE_XFREE386): Removed.
11194
11195         * buffer.h (DEC_CHARPTR): `const' correctness.
11196         (bufbyte_strcmp): New.
11197         (bufbyte_memcmp): New.
11198
11199         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
11200
11201         * buffer.h (XCHAR_OR_CHAR_INT):
11202         Always use inline function.
11203         Remove redundant type checking assert() - XINT will abort quite nicely.
11204
11205 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11206
11207         * search.c (Freplace_match): Set newtext to an empty string.
11208
11209 2000-10-10  Martin Buchholz  <martin@xemacs.org>
11210
11211         * s/decosf1-3.h: Remove #include of stropts.h
11212         * s/ptx.h: Remove #include of stropts.h
11213         * s/usg5-4.h: Remove #include of stropts.h
11214         * sysproc.h:
11215         * config.h.in:
11216         Use stropts.h, not sys/stropts.h.
11217         Use strtio.h, not sys/strtio.h.
11218
11219 2000-10-04  Martin Buchholz <martin@xemacs.org>
11220
11221         * XEmacs 21.2.36 is released.
11222
11223 2000-09-21  Andy Piper  <andy@xemacs.org>
11224
11225         * glyphs-x.c (x_redisplay_widget): make sure non-structural
11226         changes still involve copying the widget tree.
11227         (update_widget_face): make sure a change is register in the widget
11228         tree. Call update_tab_widget_face appropriately.
11229         (update_tab_widget_face): ditto.
11230         (x_tab_control_redisplay): make sure non-structural changes still
11231         involve copying the widget tree.
11232
11233 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
11234
11235         * lread.c (locate_file): Check the path element is non-nil.
11236
11237 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11238
11239         * lisp.h: Warning suppression for SCO compilers.
11240
11241         * redisplay-tty.c (reset_tty_modes): Fix crash.
11242         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
11243
11244 2000-09-27  Martin Buchholz  <martin@xemacs.org>
11245
11246         Big signal/process handling overhaul.  Bugs fixed:
11247         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
11248         M-x comint-kill-subjob should work for both values nil and t of
11249         process-connection-type. It was broken on most platforms.
11250         Testing on Irix and Cygwin still needed.  Other plaforms tested.
11251         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
11252         * process-unix.c: Signal/Process handling overhaul.
11253         (pty_name): make 64 bytes, as `expect' does, for paranoia.
11254         (allocate_pty): Use all available modern methods of allocating
11255         ptys, falling back to old style BSD allocation as a last resort.
11256         Use allegedly more secure Unix98 pty allocation by default.
11257         (allocate_pty_the_old_fashioned_way): New. the last resort.
11258         (unix_create_process): Push ptem, ldterm, ttcompat where
11259         available.  Autoconfiscate.
11260         (try_to_initialize_subtty): New.
11261         (unix_kill_child_process): Proper signal handling for ptys on most
11262         platforms, using special knowledge of AIX, BSD, etc...
11263         (unix_create_process): Always disconnect_controlling_terminal() for
11264         subprocesses, whether using ptys or not.
11265         * process.h: Remove old getpt-dependent PTY code.
11266         * process.c (Fprocess_send_signal): New, obvious generic function.
11267         (decode_signal): New.
11268         (Finterrupt_process):
11269         (Fkill_process):
11270         (Fquit_process):
11271         (Fstop_process):
11272         (Fcontinue_process):
11273         (Fsignal_process): Use decode_signal.
11274         (process_send_signal):
11275         Many docstring corrections.
11276         Allow any signal to be sent to a process object.
11277         * config.h.in: Add symbols for big signal/process overhaul.
11278         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
11279         * sysproc.h: Include process-related headers, where available:
11280         sys/stropts.h sys/strtio.h pty.h libutil.h
11281         * s/irix4-0.h:
11282         * s/irix5-0.h:
11283         * s/cygwin32.h:
11284         * s/gnu.h:
11285         * s/linux.h:
11286         * s/hpux.h:
11287         * s/aix3-1.h:
11288         Remove old S&M pty stuff.
11289         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
11290         * systty.h: Simplify cpp hackery, improve comments.
11291         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
11292
11293         * editfns.c (Fformat_time_string):
11294         Be a little more paranoid with the return value of ctime.
11295
11296         * fileio.c (check_executable):
11297         (check_writable):
11298         Use symbolic constants X_OK, W_OK.
11299
11300         * console-x.c (split_up_display_spec): Fix a warning.
11301
11302 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11303
11304         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11305         * ntproc.c (sys_spawnve): make_string ==> build_string
11306         Small clarity improvements.
11307
11308 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11309
11310         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11311
11312         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11313
11314         * config.h.in (HAVE_STRCASECMP): Remove.
11315
11316 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11317
11318         * redisplay-output.c (redisplay_output_pixmap):
11319         Cleaner and possibly more 64-bit correct code.
11320
11321 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11322
11323         * dumper.c (pdump_load_finish): move restoration of
11324         `noninteractive1' to emacs.c (main_1).
11325         * emacs.c (main_1): protect LISP-visible command-line flags
11326         from pdump_load().
11327
11328 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11329
11330         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11331         DUMP_TARGET instead of literal program names.
11332
11333 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11334
11335         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11336
11337 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11338
11339         * *: Spelling mega-patch
11340
11341 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11342
11343         * fns.c (bad_bad_turtle):
11344         Delete "Eek!" comment, since we fixed the bug to which it refers.
11345
11346 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11347
11348         * alloca.c: Replace REGISTER with register.
11349
11350 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11351
11352         * file-coding.c (ucs_to_char): Use countof.
11353
11354 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11355
11356         * file-coding.c: (ucs_to_char):
11357         (complex_vars_of_file_coding):
11358         Use countof instead of sizeof.
11359         Use CHECK_NATNUM instead of CHECK_INT.
11360
11361         * sysdep.c (strcasecmp): Remove.
11362         * device-x.c (ascii_strcasecmp): New.
11363         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11364         Avoid using non-standard non-portable strcasecmp.
11365
11366 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11367
11368         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11369         * font-lock.c: remove reference to emacsfns.h.
11370         * search.c: small doc improvement.
11371         * event-Xt.c: correct file names in comments.
11372         * console-x.h Correct file names in comments.
11373         * frame.c: Correct file names in comments.
11374         * event-stream.c: remove Energize from comments.
11375
11376 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11377
11378         * symeval.h (DEFERROR_STANDARD):
11379         (DEFERROR):
11380         (DEFSYMBOL):
11381         (DEFSYMBOL_NO_DUMP):
11382         (DEFSYMBOL_MULTIWORD_PREDICATE):
11383         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11384         (DEFKEYWORD):
11385         The construct &##name is not sensible C.
11386         Fixes compilation errors with Unixware native compiler.
11387
11388 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11389
11390         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11391         (next_frame_internal): Removed.  We now just have next_frame.
11392         (next_frame):
11393         Write a simpler and cleaner one-pass algorithm.
11394         Remove called_from_delete_device arg and #ifdefed-out code.
11395         (previous_frame):
11396         Renamed from prev_frame.  Update callers.
11397         Cleaned up to have an analogous implementation to next_frame.
11398         (other_visible_frames_internal): Remove the
11399         called_from_delete_device bogus arg, and hence, remove this
11400         function.  Just use other_visible_frames().
11401
11402         * window.c (Fnext_window):
11403         Prettify docstring.
11404         Since next_frame() is guaranteed to return a frame, remove check
11405         for nil inserted in previous patch.
11406         (Fprevious_window):
11407         Prettify docstring.
11408         Make code look more like Fnext_window.
11409         (window_loop):
11410         Respect the `console' arg when iterating through windows.
11411         Fixes bug: (get-buffer-window buffer t device) not respecting
11412         the `device' arg.
11413         This function needs more work, as others have pointed out.
11414
11415         * frame.h: Rename prev_frame to previous_frame.
11416         device_matches_console_spec no longer takes a `frame' arg.
11417
11418         * s/gnu.h:
11419         * s/linux.h:
11420         * s/hpux.h:
11421         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11422         From "Golubev I. N." <gin@mo.msk.ru>.
11423
11424         * make-src-depend: Fix typo.
11425
11426 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11427
11428         * window.c (Fnext_window):
11429         next_frame() might return nil, not a frame.
11430         Fixes this crash:
11431         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11432
11433         * frame.c (next_frame_internal):
11434         We've passed a frame if we've passed its device.
11435         Fixes this crash:
11436         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11437 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11438
11439 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11440
11441         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11442         Allow option to suppress accelerators in menu/dialog items.
11443         (populate_or_checksum_helper): Pass dialog title through above.
11444
11445 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11446
11447         * event-msw.c (mswindows_key_to_emacs_keysym):
11448         Add "pause" key, fix "menu" key.
11449
11450 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11451
11452         * eval.c (reinit_vars_of_eval):
11453         Increase max_lisp_eval_depth to 1000,
11454         required for thai-xtis.el to byte-compile under some circumstances.
11455
11456 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11457
11458         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11459         From Kenichi Handa.
11460
11461 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11462
11463         * make-src-depend: Make the generated Makefiles smaller.
11464
11465         * s/hpux.h (SETUP_SLAVE_PTY):
11466         Provide a %d in the format string for the errno argument.
11467
11468         * editfns.c (Ftemp_directory):
11469         Warning fix.
11470         Avoid buffer overrun on very long file name.
11471
11472         * input-method-xlib.c (XIM_init_device):
11473         6th parameter of XRegisterIMInstantiateCallback has different
11474         pointer types on different OSes, so simply cast to (void *).
11475
11476         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11477
11478         * sysdll.c (dll_open):
11479         shl_load will hang hard if passed a NULL filename.
11480         Simply return NULL for compatibility with dlopen.
11481         * sysdll.c: Conform to XEmacs coding standards.
11482
11483         * sysdep.c (get_pty_max_bytes):
11484         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11485
11486 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11487
11488         * tooltalk.c: Add #include <syssignal.h>
11489
11490 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11491
11492         * s/hpux.h: Don't use undefined function sigunblock().
11493
11494 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11495
11496         * config.h.in: Add HAVE_BALLOON_HELP.
11497         * emacs.c: Use HAVE_BALLOON_HELP.
11498         * Makefile.in.in (x_objs):
11499         Make Balloon Help conditional on finding shape.h.
11500
11501 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11502
11503         * syntax.c (regex_emacs_buffer_p): New variable.
11504         * syntax.h (regex_emacs_buffer_p): extern.
11505         * search.c (looking_at_1):
11506         (string_match_1):
11507         (fast_string_match):
11508         (search_buffer): Set regex_emacs_buffer_p.
11509         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11510         when before_dot, at_dot, after_dot.
11511
11512 2000-08-23  Andy Piper  <andy@xemacs.org>
11513
11514         * gui-x.c (popup_selection_callback): Only set action_occurred
11515         when we really have an image instance.
11516         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11517
11518 2000-08-23  Andy Piper  <andy@xemacs.org>
11519
11520         * gui-msw.c (mswindows_handle_gui_wm_command): set
11521         action_occurred.
11522         * gui-x.c (popup_selection_callback): ditto.
11523
11524         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11525         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11526         (struct Lisp_Image_Instance): add action_occurred flag.
11527
11528         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11529         (image_instance_changed): ditto.
11530         (reset_frame_subwindow_instance_cache): only unmap windows - do
11531         not remove them from the cache also.
11532
11533         * glyphs-widget.c (tab_control_update): better debug.
11534         (progress_gauge_update): ditto.
11535         (layout_update): ditto.
11536         (layout_instantiate): ditto.
11537         (tab_control_order_only_changed): cope with null pending items.
11538
11539         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11540         debug. Force selection of an item when an action occurred. Cope
11541         with null pending_items.
11542         (mswindows_progress_gauge_redisplay): better debug.
11543         * glyphs-x.c (x_tab_control_redisplay): ditto.
11544
11545         * redisplay.c (redisplay_frame): reset the frame cache if the
11546         frame is garbaged.
11547
11548         * window.c (Fset_window_configuration): potentially re-enable
11549         frame cache reset.
11550         (window_unmap_subwindows): need to finalize instances here since
11551         it is only used in mark_window_as_deleted.
11552
11553 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11554
11555         * nas.c (SndOpenDataForReading):
11556         nas.c (WaveOpenDataForReading):
11557         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11558         Somehow escaped from the 2000-08-14 patch.
11559
11560 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11561
11562         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11563         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11564
11565 2000-08-21  Andy Piper  <andy@xemacs.org>
11566
11567         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11568         window if it is not already displayed.
11569
11570         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11571         it is not already displayed.
11572
11573         * window.c (Fset_window_configuration): don't reset the frame
11574         cache.
11575
11576         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11577         instances from the frame cache if we are actually finalizing them.
11578         (reset_frame_subwindow_instance_cache): reset frame cache only
11579         after unmapping everything.
11580         (map_subwindow): set displayed flag after mapping.
11581
11582 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11583
11584         * data.c (indirect_function):
11585         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11586
11587         * eval.c (function_argcount):
11588         Use original function when signaling errors.
11589
11590 2000-08-18  Andy Piper  <andy@xemacs.org>
11591
11592         * frame.c (delete_frame_internal): use new
11593         free_frame_subwindow_instances name.
11594
11595         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11596         (add_tab_item): make return type correct.
11597         (mswindows_tab_control_instantiate): assert index of tab.
11598         (mswindows_tab_control_redisplay): Re-code to use
11599         gui_item_equal_sans_selected and gui_item_list_find_selected.
11600
11601         * glyphs-widget.c (tab_control_update): Correct comment.
11602
11603         * window.c (window_unmap_subwindows): use new
11604         unmap_subwindow_instance_cache_mapper.
11605         (window_unmap_subwindows_cache_mapper): deleted.
11606         (Fset_window_configuration): comparisons should now be with
11607         EQ. Preserve the subwindow instance cache across configuration
11608         changes.
11609         (allocate_window): ditto.
11610         (make_dummy_parent): ditto.
11611
11612         * glyphs.c (free_frame_subwindow_instances): rename from
11613         free_frame_subwindow_instance_cache. finalize all instances rather
11614         than just those in the display cache.
11615         (finalize_all_subwindow_instances): walk windows unmapping and
11616         finalizing subwindows.
11617         (unmap_subwindow_instance_cache_mapper): moved from
11618         window.c. Allow finalization as well as unmapping.
11619
11620         * gui.c (gui_item_list_find_selected): new function.
11621
11622         * gui.h (gui_item_list_find_selected): declare.
11623
11624         * glyphs-x.c (x_tab_control_redisplay): pick tab
11625         explicitly. Re-code to use gui_item_equal_sans_selected and
11626         gui_item_list_find_selected.
11627
11628         * glyphs-x.h: add lwlib-utils.h
11629
11630         * buffer.c (Frecord_buffer): undo previous change.
11631
11632 2000-08-09  Vin Shelton  <acs@xemacs.org>
11633
11634         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11635         possible.  Create temporary files more securely.  The patch was
11636         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11637         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11638         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11639         for details.
11640
11641 2000-08-07  Ben Wing  <ben@xemacs.org>
11642
11643         * getloadavg.c: remove duplicate (and windows-breaking)
11644         includes of fcntl.h and sys/file.h.
11645
11646         * nt.c: remove duplicate getloadavg() definition.
11647
11648         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11649         encodings.
11650
11651 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11652
11653         * eval.c (function_argcount): If function needs to be autoloaded
11654         actually use the loaded definition.
11655         GCPRO function.
11656
11657 2000-08-05  Ben Wing  <ben@xemacs.org>
11658
11659         * getloadavg.c: add prototype for getloadavg().  remove
11660         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11661         of the code).  remove duplicate header includes.
11662
11663         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11664
11665         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11666         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11667         useful load average.
11668
11669         * alloc.c (reinit_alloc_once_early): removed references to
11670         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11671         the lisp vars are the only things referencing the malloc_sbrk_*
11672         vars, and they were already if 0'd out.  these vars only exist
11673         in the older malloc.c, which is basically unused, and they're
11674         only for informational purposes.
11675
11676         * m\*.h: removed useless VIRT_ADDR_VARIES.
11677
11678         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11679
11680 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11681
11682         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11683         color if the image is a mono pixmap.
11684
11685 2000-07-30  Ben Wing  <ben@xemacs.org>
11686
11687         * Makefile.in.in (release):
11688         Remove stray @.
11689
11690         * buffer.c (directory_is_current_directory):
11691         * dired-msw.c (mswindows_get_files):
11692         * dired.c:
11693         * dired.c (Fdirectory_files):
11694         * dired.c (file_name_completion_stat):
11695         * dired.c (Ffile_attributes):
11696         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11697         preprocessor tricks, to avoid problems on some machines
11698         (e.g. SCO).
11699
11700         * callproc.c (egetenv): GC docs.
11701
11702         * console-msw.h:
11703         * console-msw.h (struct mswindows_dialog_id):
11704         * lrecord.h (lrecord_type):
11705         New object for use with MSW dialogs.
11706
11707         * console.h (struct console_methods):
11708         New enable/disable frame methods, for proper modal dialogs.
11709
11710         * device-msw.c (msprinter_default_printer): Fix to follow
11711         proper Mule conventions.
11712
11713         * device-msw.c:
11714         * device-msw.c (signal_open_printer_error):
11715         * device-msw.c (msprinter_init_device):
11716         * device-msw.c (ensure_not_printing):
11717         * device-msw.c (plist_get_margin):
11718         * device-msw.c (Fmsprinter_select_settings):
11719         * device-msw.c (finalize_devmode):
11720         * device-msw.c (Fmsprinter_settings_despecialize):
11721         * device-msw.c (signal_enum_priner_error):
11722         * extents.c (decode_extent):
11723         * extents.c (decode_map_extents_flags):
11724         * extents.c (decode_extent_at_flag):
11725         * extents.c (Fextent_at):
11726         * extents.c (Fextents_at):
11727         * extents.c (symbol_to_glyph_layout):
11728         [[[[2]]]] Use structured errors.
11729
11730         * dialog-msw.c:
11731         * dialog-msw.c (mswindows_is_dialog_msg):
11732         * dialog-msw.c (mark_mswindows_dialog_id):
11733         * dialog-msw.c (dialog_proc):
11734         * dialog-msw.c (handle_question_dialog_box):
11735         * dialog-msw.c (syms_of_dialog_mswindows):
11736         Define new object to clean up marking; use it as a dialog identifier.
11737         Call new delete-dialog-box-hook.
11738
11739         * dialog-x.c (dbox_selection_callback):
11740         * dialog-x.c (dbox_descriptor_to_widget_value):
11741         * dialog-x.c (x_make_dialog_box_internal):
11742         Call new delete-dialog-box-hook.
11743         Return an id.
11744
11745         * dialog.c:
11746         * dialog.c (syms_of_dialog):
11747         * dialog.c (vars_of_dialog):
11748         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11749
11750         * eval.c:
11751         * eval.c (signal_call_debugger):
11752         when noninteractive, output stack traces on the console instead
11753         of in a (never-seen) buffer.
11754
11755         * eval.c (signal_type_error):
11756         * eval.c (invalid_argument_2):
11757         * lisp.h:
11758         new funs for use w/structured errors.
11759
11760         * event-Xt.c:
11761         * event-Xt.c (x_to_emacs_keysym):
11762         * event-Xt.c (describe_event):
11763         * event-Xt.c (emacs_Xt_event_handler):
11764         * event-Xt.c (vars_of_event_Xt):
11765         * event-msw.c:
11766         * event-msw.c (mswindows_wnd_proc):
11767         * event-msw.c (vars_of_event_mswindows):
11768         rename {x,mswindows}-debug-events to debug-{}-events for
11769         consistency with other debug-foo variables.
11770
11771         * event-stream.c:
11772         document next-event more clearly.
11773
11774         * fileio.c (Ffile_name_directory):
11775         * fileio.c (Ffile_name_nondirectory):
11776         * fileio.c (Funhandled_file_name_directory):
11777         * fileio.c (file_name_as_directory):
11778         * fileio.c (Ffile_name_as_directory):
11779         * fileio.c (directory_file_name):
11780         * fileio.c (Fdirectory_file_name):
11781         * fileio.c (Fmake_temp_name):
11782         * fileio.c (Ffile_truename):
11783         * fileio.c (Fsubstitute_in_file_name):
11784         * fileio.c (expand_and_dir_to_file):
11785         * fileio.c (barf_or_query_if_file_exists):
11786         * fileio.c (check_executable):
11787         * fileio.c (Ffile_exists_p):
11788         * fileio.c (Ffile_writable_p):
11789         * fileio.c (Ffile_directory_p):
11790         * fileio.c (Ffile_regular_p):
11791         * fileio.c (Ffile_modes):
11792         * fileio.c (Ffile_newer_than_file_p):
11793         * fileio.c (Fverify_visited_file_modtime):
11794         * fileio.c (Fset_visited_file_modtime):
11795         * fileio.c (auto_save_1):
11796         (1). (2).
11797         fix up gcpro's.
11798
11799         * frame-msw.c:
11800         * frame-msw.c (mswindows_init_frame_1):
11801         * frame-msw.c (mswindows_enable_frame):
11802         * frame-msw.c (error_frame_unsizable):
11803         * frame-msw.c (msprinter_init_frame_1):
11804         * frame-msw.c (msprinter_init_frame_3):
11805         * frame-msw.c (console_type_create_frame_mswindows):
11806         (2).
11807         implement new enable/disable frame methods.
11808
11809         * frame-x.c:
11810         * frame-x.c (x_enable_frame):
11811         * frame-x.c (console_type_create_frame_x):
11812         implement new enable/disable frame methods.
11813
11814         * frame.c:
11815         * frame.c (Fdisable_frame):
11816         * frame.c (syms_of_frame):
11817         * frame.h (struct frame):
11818         implement new enable/disable frame methods/functions.
11819
11820         * general-slots.h:
11821         add initial-focus.
11822
11823         * glyphs-msw.c (mswindows_widget_instantiate):
11824         comment that initial-focus should be implemented.
11825
11826         * glyphs-widget.c:
11827         * glyphs-widget.c (check_valid_instantiator):
11828         * glyphs-widget.c (check_valid_orientation):
11829         * glyphs-widget.c (check_valid_tab_orientation):
11830         * glyphs-widget.c (check_valid_justification):
11831         * glyphs-widget.c (check_valid_border):
11832         * glyphs-widget.c (check_valid_callback):
11833         * glyphs-widget.c (check_valid_int_or_function):
11834         * glyphs-widget.c (check_valid_string_or_vector):
11835         * glyphs-widget.c (check_valid_item_list_1):
11836         * glyphs-widget.c (widget_validate):
11837         * glyphs-widget.c (combo_box_validate):
11838         * glyphs-widget.c (widget_instantiate):
11839         * glyphs-widget.c (syms_of_glyphs_widget):
11840         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11841         * glyphs-widget.c (image_instantiator_combo_box):
11842         * glyphs-widget.c (image_instantiator_scrollbar):
11843         * glyphs-widget.c (image_instantiator_tab_control):
11844         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11845         (2).
11846         support (unimplemented) keyword initial-focus.
11847         reindent long macros.
11848
11849         * glyphs-x.c (x_redisplay_widget):
11850         * glyphs-x.c (x_button_instantiate):
11851         * glyphs-x.c (x_button_redisplay):
11852         * glyphs-x.c (x_progress_gauge_instantiate):
11853         * glyphs-x.c (x_edit_field_instantiate):
11854         * glyphs-x.c (x_combo_box_instantiate):
11855         * glyphs-x.c (x_tab_control_instantiate):
11856         * glyphs-x.c (x_label_instantiate):
11857         * gui-x.c:
11858         * gui-x.c (button_item_to_widget_value):
11859         * gui-x.c (gui_items_to_widget_values_1):
11860         * gui-x.c (gui_item_children_to_widget_values):
11861         * gui-x.c (gui_items_to_widget_values):
11862         * gui-x.h:
11863         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11864         add new flag to gui-parsing routines to indicate whether
11865         accelerator specs should be supported.
11866
11867         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11868
11869         * glyphs.h (struct Lisp_Image_Instance):
11870         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11871         add initial-focus flag.
11872
11873         * gui.c:
11874         * gui.c (syms_of_gui):
11875         * gui.c (vars_of_gui):
11876         clean up menu-no-selection-hook.
11877
11878         * gui.h:
11879         support delete-dialog-box-hook.
11880
11881         * lread.c (Fload_internal):
11882         * lread.c (locate_file_in_directory_mapper):
11883         (1).
11884
11885         * lrecord.h:
11886         * lrecord.h (struct toolbar_button):
11887         * lrecord.h (syms_of_toolbar):
11888         document how to create a new object.
11889
11890         * menubar-msw.c (mswindows_char_is_accelerator):
11891         may be called on frames w/o menus.
11892
11893         * menubar.c (vars_of_menubar):
11894         clean up :filter docs.
11895
11896         * nt.c (readdir):
11897         * ntproc.c:
11898         (1).
11899
11900         * process-nt.c:
11901         * process-nt.c (validate_signal_number):
11902         * process-nt.c (signal_cannot_launch):
11903         * process-nt.c (nt_create_process):
11904         * process-nt.c (nt_send_process):
11905         * process-nt.c (nt_kill_child_process):
11906         * process-nt.c (nt_open_network_stream):
11907         * process-nt.c (syms_of_process_nt):
11908         (2).
11909         delete quote-handling.  call new lisp code that does it better.
11910
11911         * process-unix.c (connect_to_file_descriptor):
11912         * process-unix.c (allocate_pty):
11913         * process-unix.c (unix_send_process):
11914         * process-unix.c (unix_kill_child_process):
11915         * process-unix.c (unix_open_network_stream):
11916         * process-unix.c (unix_open_multicast_group):
11917         (1). (2).
11918
11919         * process.c:
11920         * process.c (Fstart_process_internal):
11921         (2).  need to canonicalize process path even if absolute.
11922
11923         * select-msw.c (symbol_to_ms_cf):
11924         * select-msw.c (ms_cf_to_symbol):
11925         * select-msw.c (cf_is_autofreed):
11926         * select-msw.c (mswindows_destroy_selection):
11927         * select.c:
11928         * select.c (syms_of_select):
11929         * select.h:
11930         support dibv5, fix bugs. (from Mike Alexander)
11931
11932         * select.c (Fget_selection_internal):
11933         * select.c (select_convert_out):
11934
11935         * sysdep.c:
11936         * sysdep.c (xemacs_stat):
11937         renamed.
11938
11939         * sysdep.c (mkdir):
11940         * sysdep.c (rmdir):
11941         but keep original stat() here because we provide encapsulation
11942         around these funs.
11943
11944         * sysfile.h:
11945         * sysfile.h (fstat):
11946         remove stat garbage.
11947
11948         * syswindows.h:
11949         fix X/MSW conflict.
11950         don't include tchar.h.  it's inappropriate because it makes
11951         compile-time distinctions when we want runtime distinctions.
11952         (we provide our own tchar replacements)
11953
11954         * toolbar.c:
11955         use default object printer for toolbar-button.
11956
11957         * unexcw.c:
11958         make sure we don't encapsulate.
11959
11960         * window.c (vars_of_window):
11961         emphasize that temp-buffer-show-hook is obsolete.
11962
11963 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11964
11965         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11966         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11967
11968         * events.c (Fevent_timestamp_lessp):
11969         Not 64-bit clean.  Use EMACS_INT, not int.
11970
11971 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11972
11973         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11974         unsigned int and changed the last enum to
11975         lrecord_type_last_built_in_type.
11976         (lrecord_implementations_table): changed prototype to know how
11977         long the array is supposed to be.
11978         (lrecord_type_count): new unsigned int to keep track of the
11979         current number of lisp lrecord types.
11980         (DEFINE_EXTERNAL_LRECORD):
11981         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11982         dynamic-modules to declare new lisp types. They are the same
11983         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11984         int for each new type, and increment lrecord_type_count by 1.
11985
11986         * alloc.c (lrecord_implementations_table): Changed to reference
11987         lrecord_type_last_built_in_type for the size of the array.
11988         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11989
11990 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11991
11992         * glyphs.h (check_valid_item_list): Renamed from
11993         check_valid_item_list_1.
11994
11995 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11996
11997         * select.c (Qselect_coerce): New.
11998         * select.c (Vselection_coercion_alist): New.
11999         * select.c (syms_of_select): Declare.
12000         * select.c (get-selection-internal): Use it.
12001         Use the new select-coerce functionality.
12002
12003         * select.c (select_coerce): New.
12004         * select.h (select_coerce): Declare.
12005         New function to coerce one type of data into another.
12006
12007 2000-08-03  Martin Buchholz  <martin@xemacs.org>
12008
12009         * callproc.c (Fcall_process_internal):
12010         (Fcall_process_internal):
12011         * process-unix.c (unix_create_process):
12012         Save and restore the value of errno, so that error messages are accurate.
12013
12014 2000-08-01  Martin Buchholz  <martin@xemacs.org>
12015
12016         * elhash.c (print_hash_table):
12017         Fix printing of hash tables to also use `key-and-value' instead of `t'.
12018         Prettify docstrings and indentation.
12019
12020 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
12021
12022         * window.c (Fwindow_pixel_edges): Subtract frame border and
12023         gutter size.
12024
12025 2000-07-31  Andy Piper  <andy@xemacs.org>
12026
12027         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
12028         will acknowledge the change.
12029
12030         * glyphs.h: declare tab_control_order_only_changed.
12031
12032         * glyphs-x.c (x_tab_control_redisplay): use
12033         tab_control_order_only_changed.
12034
12035         * glyphs-widget.c (tab_control_order_only_changed): new function.
12036
12037         * glyphs-msw.c (mswindows_tab_control_redisplay): use
12038         tab_control_order_only_changed.
12039
12040         * gui.c (gui_item_equal_sans_selected): new function.
12041         (gui_item_equal): use it.
12042
12043         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
12044         :properties in favor of :items..
12045
12046         * glyphs-widget.c (check_valid_item_list): rename from
12047         check_valid_item_list_1.
12048         (check_valid_item_list_1): renamed.
12049         (combo_box_validate): deprecate :properties in favor of :items.
12050         (widget_instantiate): ditto.
12051         (tab_control_update): ditto.
12052         (image_instantiator_combo_box): ditto.
12053         (image_instantiator_tree_view): ditto.
12054         (image_instantiator_tab_control): ditto.
12055         (layout_post_instantiate): remove dead code.
12056
12057         * print.c (debug_print_no_newline): only write to debugger if in
12058         WIN32_NATIVE.
12059
12060         * elhash.c (Fmake_hash_table): update doc string.
12061
12062         * event-msw.c (mswindows_wnd_proc): don't allow processing of
12063         messages whilst in GC. This at least stops XEmacs crashing but has
12064         the potential for wierd behaviour.
12065
12066 2000-07-31  Martin Buchholz  <martin@xemacs.org>
12067
12068         * config.h.in:
12069         Make existence of s&m files optional.
12070
12071         * s/bsd386.h: Remove HAVE_GETLOADAVG.
12072         * s/freebsd.h: Remove HAVE_GETLOADAVG.
12073         * s/gnu.h: Remove HAVE_GETLOADAVG.
12074         * s/netbsd.h: Remove HAVE_GETLOADAVG.
12075         * s/sol2.h: Remove HAVE_GETLOADAVG.
12076         * lisp.h: Remove getloadavg() declaration.
12077         * fns.c:
12078         Include <sys/loadavg.h> if available.
12079         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
12080         * config.h.in:  Group together getloadavg()-related macros.
12081         Use only configure-time tests to detect getloadavg().
12082
12083 2000-07-30  Martin Buchholz  <martin@xemacs.org>
12084
12085         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
12086
12087 2000-07-25  Andy Piper  <andy@xemacs.org>
12088
12089         * syswindows.h: add tchar.h for native builds.
12090
12091         * frame.c (syms_of_frame): remove set-glyph-image.
12092
12093         * general-slots.h: add Qset_glyph_image.
12094
12095         * glyphs-widget.c (layout_update): add domain arg to
12096         set-glyph-image.
12097         (syms_of_glyphs_widget): remove set-glyph-image.
12098
12099 2000-07-23  Ben Wing  <ben@xemacs.org>
12100
12101         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
12102         Vpopup_frame_list.
12103
12104 2000-07-22  Andy Piper  <andy@xemacs.org>
12105
12106         * symsinit.h: add syms_of_win32().
12107
12108         * gui-msw.c (syms_of_gui_mswindows): remove
12109         Fmswindows_shell_execute.
12110         (Fmswindows_shell_execute): moved to win32.c.
12111
12112         * emacs.c (main_1): add syms_of_win32 ().
12113
12114         * win32.c (init_potentially_nonexistent_functions): rewrite in
12115         compiler-friendly terms.
12116         (Fmswindows_shell_execute): move here from gui-msw.c.
12117         (syms_of_win32): new.
12118
12119         * device-msw.c (Fmswindows_printer_list): clean up args to
12120         EnumPrinters.
12121         Don't include tchar under cygwin or mingw.
12122         (msprinter_default_printer): make cygwin-friendly.
12123
12124 2000-07-21  Andy Piper  <andy@xemacs.org>
12125
12126         * glyphs-widget.c (image_instantiator_tree_view): use tab
12127         control's update function.
12128         (layout_property): new function. Retrieve items.
12129
12130         * glyphs-msw.c (mswindows_tree_view_redisplay): new
12131         function. Re-populate the tree view from the pending items.
12132
12133         * glyphs.c (instantiate_image_instantiator): Make sure the domain
12134         is designated the parent if the domain is an image instance. This
12135         is needed so that dirtiness can be cascade up the hierarchy and
12136         thus for layout children to be redisplayed correctly.
12137         (allocate_image_instance): rename glyph -> parent.
12138
12139         * redisplay.h: change redisplay_output_layout signature.
12140
12141         * redisplay-msw.c (mswindows_output_display_block): use domain
12142         arg.
12143
12144         * redisplay-x.c (x_output_display_block): use domain arg.
12145
12146 2000-07-10  Andy Piper  <andy@xemacs.org>
12147
12148         * window.c (Fset_window_configuration): add comment.
12149
12150         * redisplay-output.c (compare_runes):
12151         (redisplay_output_subwindow): redisplay rather than update subwindow.
12152         (redisplay_output_layout): ditto.
12153
12154         * redisplay-msw.c (mswindows_frame_output_end):
12155         (mswindows_frame_output_end): make defer window pos optional.
12156
12157         * lisp.h: add Flast.
12158
12159         * glyphs.h (struct image_instantiator_methods): add dest_mask top
12160         normalize method. Change update method to be for changed
12161         instantiators. Add redisplay method. Change signature of layout
12162         method.
12163         (struct Lisp_Image_Instance): add instantiator.
12164         (IMAGE_INSTANCE_INSTANTIATOR): new.
12165         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
12166         (XIMAGE_INSTANCE_INSTANTIATOR): new.
12167         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
12168
12169         * glyphs.c:
12170         (find_instantiator_differences): new function.
12171         (Fset_instantiator_property): new convenience function.
12172         (check_image_instance_structure): strictly check for vector
12173         instantiators.
12174         (normalize_image_instantiator): make non-static.
12175         (instantiate_image_instantiator): pass on dest_mask and use new
12176         signatures for image_instance_layout and friends.
12177         (mark_image_instance): mark the instantiator. Mark the subwindow
12178         face not the widget face.
12179         (image_instance_equal): add instantiator.
12180         (image_instance_hash): ditto.
12181         (allocate_image_instance): ditto.
12182         (Fset_image_instance_property): removed.
12183         (Fimage_instance_file_name): ditto.
12184         (Fcolorize_image_instance): ditto.
12185         (image_instance_layout): add offsets to be set.
12186         (update_image_instance): new function. update an image instance
12187         from its changed instantiator.
12188         (inherit_normalize): add dest_mask.
12189         (xbm_normalize): ditto.
12190         (xface_normalize): ditto.
12191         (xpm_normalize): ditto.
12192         (text_update): set_property -> update.
12193         (image_instantiate): use the glyph identity as a hash key, not the
12194         instantiator.
12195         (glyph_width): use new image_instance_layout signature.
12196         (glyph_ascent): ditto.
12197         (glyph_descent): ditto.
12198         (glyph_height): ditto.
12199         (glyph_query_geometry): ressurrect.
12200         (glyph_layout): ditto.
12201         (redisplay_subwindow): update -> redisplay.
12202         (syms_of_glyphs): add Fset_instantiator_property.
12203         (image_instantiator_format_create): set_property -> update.
12204
12205         * glyphs-x.c:
12206         (autodetect_normalize): add dest_maks to signature.
12207         (x_redisplay_subwindow): update -> redisplay.
12208         (x_redisplay_widget): ditto.
12209         (x_button_redisplay): ditto.
12210         (x_progress_gauge_redisplay): ditto.
12211         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
12212         stacking order.
12213         (console_type_create_glyphs_x): update -> redisplay.
12214         (image_instantiator_format_create_glyphs_x): ditto.
12215
12216         * glyphs-widget.c:
12217         (check_valid_instantiator): disallow glyphs in the instantiator,
12218         they must now be vectors.
12219         (check_valid_instantiator_list): ditto.
12220         (glyph_instantiator_to_glyph): use internal symbol rather than
12221         intern.
12222         (widget_update): renamed from widget_set_property. Call cascaded
12223         update methods.
12224         (redisplay_widget): renamed from update_widget.
12225         (widget_layout): image_instance_layout now takes position as well
12226         as size.
12227         (widget_normalize): ditto.
12228         (widget_instantiate): ditto.
12229         (tab_control_query_geometry) ditto.:
12230         (tab_control_update): renamed from tab_control_set_property.
12231         (progress_gauge_update): set_property -> update.
12232         (layout_normalize): rewrite so that child instantiators are
12233         normalized also.
12234         (layout_update): new function. Create glyphs from the normalized
12235         children and cope with any other layout keywords. We do not
12236         instantiate children here that will be take care of by
12237         redisplay_output_layout.
12238         (layout_instantiate): call layout_update and not much else.
12239         (layout_post_instantiate): not sure whether this is needed
12240         anymore.
12241         (layout_query_geometry): query glyph geometry rather than
12242         image_instance geometry.
12243         (layout_layout): set offsets from pass in parameters. Use glyph
12244         geometry and layout functions rather than image instance ones.
12245         (native_layout_layout): ditto.
12246         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
12247         (image_instantiator_widget): set_property -> update.
12248         (image_instantiator_buttons): ditto.
12249         (image_instantiator_progress_guage): ditto.
12250         (image_instantiator_tab_control): ditto.
12251         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
12252         (image_instantiator_layout): add update method.
12253
12254         * glyphs-msw.c (bmp_normalize):
12255         (mswindows_resource_normalize): add dest_mask so that it can be
12256         proprogated by layout_normalize.
12257         (begin_defer_window_pos): make optional because it may not be the
12258         right thing to do and it introduces differences with X.
12259         (mswindows_unmap_subwindow): ditto.
12260         (mswindows_map_subwindow): ditto.
12261         (mswindows_redisplay_subwindow): renamed from
12262         mswindows_update_subwindow.
12263         (mswindows_redisplay_widget): ditto.
12264         (mswindows_button_redisplay): renamed from
12265         mswindows_button_update. Update is now what the instantiation
12266         function does for a changed instantiator.
12267         (mswindows_progress_gauge_instantiate): set the progress value
12268         here if appropriate.
12269         (mswindows_tab_control_redisplay): cope with re-ordering of the
12270         members of the tab widget by simply selecting the new top
12271         widget. This makes things appear ok if you click on a tab.
12272         (mswindows_combo_box_instantiate): image_instance_layout now takes
12273         position as well as size.
12274         (mswindows_progress_gauge_redisplay): renamed from
12275         mswindows_progress_gauge_update.
12276         (console_type_create_glyphs_mswindows): fix update -> redisplay.
12277         (image_instantiator_format_create_glyphs_mswindows): ditto.
12278
12279         * glyphs-eimage.c (jpeg_normalize):
12280         (gif_normalize):
12281         (png_normalize):
12282         (tiff_normalize): add dest_mask so that it can be proprogated by
12283         layout_normalize.
12284
12285         * elhash.c:
12286         (print_hash_table):
12287         (hash_table_weakness_validate):
12288         (decode_hash_table_weakness):
12289         (Fhash_table_weakness):
12290         (Fhash_table_type):
12291         (syms_of_elhash): use Ben's naming scheme for hashtable types..
12292
12293         * console.h (struct console_methods): move update_* to
12294         redisplay_*.
12295
12296 2000-07-20  Ben Wing  <ben@xemacs.org>
12297
12298         * *.[ch] (XSETOBJ): remove unused middle argument.
12299         lisp-disunion.h: correct wrap_object() to one argument.
12300
12301 2000-07-15  Ben Wing  <ben@xemacs.org>
12302
12303         * s/cygwin32.h:
12304         * s/cygwin32.h (CYGWIN_CONV_PATH):
12305         Add missing logb prototype for v1.1.
12306         Use post-b20 names and alias to pre-b20 names when pre-b20.
12307
12308         * s/windowsnt.h: [5].
12309
12310 2000-07-15  Ben Wing  <ben@xemacs.org>
12311
12312         * Makefile.in.in (x_objs):
12313         * Makefile.in.in (sheap_objs):
12314         * Makefile.in.in (objs):
12315         added win32.o, cosmetic cleanups.
12316
12317         * alloc.c (Fmake_byte_code):
12318         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12319         etc. macros which declare their own args now.
12320
12321         * alloc.c (syms_of_alloc):
12322         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12323
12324         * buffer.c:
12325         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12326
12327         * buffer.c (Fget_file_buffer):
12328         Fixed GCPRO problem.
12329
12330         * buffer.c (get_truename_buffer):
12331         Fixed comment about GC checking.
12332
12333         * buffer.c (syms_of_buffer):
12334         Undeclared those dedicated frame funs.
12335         [2].
12336
12337         * buffer.h:
12338         Define convenience macros for internal/external conversions.
12339         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12340         and Qenvironment_variable_encoding for cleaner code.
12341
12342         * bufslots.h:
12343         Remove dedicated-frame; in lisp.
12344
12345         * bytecode.c (funcall_compiled_function):
12346         [1].
12347
12348         * bytecode.c (syms_of_bytecode):
12349         [2].
12350
12351         * console-msw.c:
12352         * console-msw.c (mswindows_show_console): Rewrote.
12353
12354         * console-msw.c (Fmswindows_debugging_output): New.
12355         Sends to OutputDebugString (special MSWin debugger interface).
12356
12357         * console-msw.c (Fmswindows_message_box):
12358         Fixed stupid bugs so it works when called from kill-emacs.
12359
12360         * console-msw.c (syms_of_console_mswindows):
12361         Declare Fmswindows_debugging_output.
12362
12363         * console-msw.h:
12364         New MSWin prototypes.
12365
12366         * console-msw.h (struct mswindows_frame):
12367         New entry last-click-mods for improved button-modifier support.
12368
12369         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12370         New struct entry `popup' with corresponding accessor.
12371
12372         * console-x.c:
12373         * console-x.c (split_up_display_spec):
12374         * console-x.c (get_display_arg_connection):
12375         * console-x.c (x_semi_canonicalize_console_connection):
12376         * console-x.c (x_canonicalize_device_connection):
12377         [[[6]]]: Change char to more specific type.
12378         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12379
12380         * console-x.c (x_semi_canonicalize_console_connection):
12381         * console-x.c (x_canonicalize_device_connection):
12382         [[[9]]]: Fix up error signalling to use new structured error system.
12383
12384         * console-x.h:
12385         [[[4]]]: Define codesys aliases:
12386         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12387         Qx_color_name_encoding, Qx_display_name_encoding.
12388
12389         * console.h (struct console_methods):
12390         New method make_dialog_box_internal supersedes older
12391         popup_dialog_box method.
12392
12393         * data.c:
12394         Define many new errors, part of new structured errors.
12395
12396         * data.c (init_errors_once_early):
12397         * data.c (syms_of_data):
12398         [2].
12399
12400         * device-msw.c (mswindows_init_device):
12401         [[[5]]]: Cleanup to support NT 3.51.
12402
12403         * device-msw.c (decode_devmode): Cleanup.
12404
12405         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12406         * device-msw.c (mswindows_handle_print_dialog_box):
12407         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12408         * device-msw.c (syms_of_device_mswindows):
12409         Delete the dialog box primitives recently introduced by Kirill and
12410         instead interface to general dialog box interface.
12411
12412         * device-x.c:
12413         * device-x.c (compute_x_app_name):
12414         * device-x.c (x_init_device):
12415         * device-x.c (Fx_valid_keysym_name_p):
12416         * device-x.c (Fx_set_font_path):
12417         [6].
12418         [7].
12419
12420         * device.h (wrap_device): New.
12421         First of its kind; meant to replace XSETDEVICE.
12422
12423         * dialog-msw.c: Many file-dialog symbols.
12424
12425         * dialog-msw.c (mswindows_register_popup_frame): New.
12426         * dialog-msw.c (mswindows_is_dialog_msg): New.
12427         For supporting kbd traversal in dialog boxes.
12428
12429         * dialog-msw.c (dialog_proc):
12430         Support hitting ESC in dialogs.
12431
12432         * dialog-msw.c (struct):
12433         Common dialog box errors.
12434
12435         * dialog-msw.c (handle_file_dialog_box): New.
12436         Add file dialog code.
12437
12438         * dialog-msw.c (handle_question_dialog_box):
12439         Redo existing code to support new question dialog syntax.
12440
12441         * dialog-msw.c (console_type_create_dialog_mswindows):
12442         We support new dialog console method.
12443
12444         * dialog-msw.c (syms_of_dialog_mswindows):
12445         * dialog-msw.c (vars_of_dialog_mswindows):
12446         New file dialog symbols, vars.
12447
12448         * dialog-x.c:
12449         * dialog-x.c (maybe_run_dbox_text_callback):
12450         * dialog-x.c (dbox_descriptor_to_widget_value):
12451         * dialog-x.c (x_make_dialog_box_internal):
12452         * dialog-x.c (console_type_create_dialog_x):
12453         Mule-ize entire file.
12454         Redo to support question dialog syntax.
12455         [6].
12456
12457         * dialog.c:
12458         * dialog.c (Fmake_dialog_box_internal):
12459         * dialog.c (syms_of_dialog):
12460         Kill old popup-dialog-box, replace with new primitive.
12461         Just call device method or signal error.
12462
12463         * eldap.c (Fldap_open):
12464         * eldap.c (Fldap_search_basic):
12465         * eldap.c (Fldap_add):
12466         * eldap.c (Fldap_modify):
12467         [1].
12468         [7].
12469
12470         * emacs.c:
12471         * emacs.c (make_arg_list_1):
12472         * emacs.c (make_arg_list):
12473         Mule-ize call to dll_init().
12474         [6].
12475         [8].
12476
12477         * emacs.c (make_argc_argv):
12478         * emacs.c (free_argc_argv):
12479         * emacs.c (init_cmdargs):
12480         * emacs.c (main_1):
12481         * emacs.c (Fkill_emacs):
12482         * emacs.c (Fdump_emacs):
12483         Update comments about what can be used in syms_* etc.
12484         Call init_win32() when necessary.
12485         Fix up MS Win dialog box in kill-buffer to actually work right.
12486         [7].
12487
12488         * eval.c:
12489         * eval.c (For):
12490         * eval.c (Fand):
12491         * eval.c (Fprogn):
12492         * eval.c (Fprog1):
12493         * eval.c (Fprog2):
12494         * eval.c (FletX):
12495         * eval.c (Flet):
12496         * eval.c (condition_case_3):
12497         * eval.c (Feval):
12498         * eval.c (function_argcount):
12499         * eval.c (funcall_lambda):
12500         [1].
12501
12502         * eval.c (type_error): New.
12503         * eval.c (maybe_type_error): New.
12504         * eval.c (continuable_type_error): New.
12505         * eval.c (maybe_continuable_type_error): New.
12506         * eval.c (type_error_with_frob): New.
12507         * eval.c (maybe_type_error_with_frob): New.
12508         * eval.c (continuable_type_error_with_frob): New.
12509         * eval.c (maybe_continuable_type_error_with_frob): New.
12510         New functions for use with structured errors.
12511
12512         * event-Xt.c:
12513         * event-Xt.c (x_event_to_emacs_event):
12514         Buttons are now modifiers too.
12515
12516         * event-Xt.c (emacs_Xt_current_event_timestamp):
12517         Implement new event method.
12518         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12519
12520         * event-msw.c:
12521         * event-msw.c (ntpipe_shove_writer): [5].
12522         * event-msw.c (mswindows_enqueue_mouse_button_event):
12523         * event-msw.c (mswindows_drain_windows_queue):
12524         * event-msw.c (mswindows_wnd_proc): [7].
12525         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12526         * event-msw.c (mswindows_modifier_state):
12527         Throughout: support new button modifiers.
12528
12529         * event-msw.c (emacs_mswindows_current_event_timestamp):
12530         Implement new event method.
12531         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12532
12533         * event-stream.c:
12534         * event-stream.c (event_stream_current_event_timestamp): New.
12535         * event-stream.c (maybe_kbd_translate): New functionality.
12536         * event-stream.c (vars_of_event_stream):
12537         Document new kbd-translate-table functionality.
12538
12539         * event-stream.c (Fcurrent_event_timestamp): New.
12540         New primitive for use in fabricated events.
12541         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12542
12543         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12544
12545         * events.c:
12546         * events.c (Fmake_event):
12547         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12548         [1].
12549         [9].
12550
12551         * events.c (format_event_object): fix gcc warnings.
12552
12553         * events.c (Fevent_timestamp): Document new primitives.
12554
12555         * events.c (TIMESTAMP_HALFSPACE): New.
12556
12557         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12558         comparing timestamps correctly (half-space algorithm).
12559
12560         * events.c (Fevent_modifier_bits): Doc fix.
12561
12562         * events.c (Fevent_modifiers): Major doc addition.
12563         * events.c (event_x_y_pixel_internal): Typo fix.
12564         * events.c (syms_of_events): Declare new primitives.
12565
12566         * events.h:
12567         Update long comment for button modifiers, timestamps.
12568
12569         * events.h (struct event_stream):
12570         New current_event_timestamp method.
12571
12572         * extents.c:
12573         * extents.c (extent_in_region_p):
12574         * extents.c (decode_extent):
12575         * extents.c (Fset_extent_parent):
12576         * extents.c (decode_map_extents_flags):
12577         Fix gcc warnings.
12578         [9].
12579
12580         * extents.c (struct extent_at_arg):
12581         * extents.c (decode_extent_at_flag):
12582         * extents.c (extent_at_mapper):
12583         * extents.c (extent_at_bytind):
12584         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12585         * extents.c (Fextents_at): New primitive. [9].
12586         * extents.c (symbol_to_glyph_layout): [9].
12587         Support new primitive `extents-at'.
12588
12589
12590         * extents.c (get_text_property_bytind):
12591         extent_at_bytind has another arg.
12592         [9].
12593
12594         * extents.c (syms_of_extents): New primitive.
12595
12596         * file-coding.c (Fmake_coding_system): [1].
12597         * file-coding.c (subsidiary_coding_system): fix gcc warning
12598         * file-coding.c (syms_of_file_coding): [2].
12599
12600         * fileio.c (Fexpand_file_name):
12601         * fileio.c (Fsysnetunam):
12602         * fileio.c (Ffile_exists_p):
12603         * fileio.c (Ffile_executable_p):
12604         * fileio.c (Fverify_visited_file_modtime):
12605         Clean up GCPROing.
12606
12607         * fileio.c (syms_of_fileio): [2].
12608
12609         * filelock.c (lock_file_1):
12610         * filelock.c (current_lock_owner):
12611         * filelock.c (lock_if_free):
12612         * filelock.c (lock_file):
12613         * filelock.c (unlock_file):
12614         Clean up GCPROing.
12615
12616         * fns.c (concat): Fix gcc warning.
12617
12618         * fns.c (Fmember):
12619         * fns.c (Fold_member):
12620         * fns.c (Fmemq):
12621         * fns.c (Fold_memq):
12622         * fns.c (memq_no_quit):
12623         * fns.c (Fassoc):
12624         * fns.c (Fold_assoc):
12625         * fns.c (Fassq):
12626         * fns.c (Fold_assq):
12627         * fns.c (assq_no_quit):
12628         * fns.c (Frassoc):
12629         * fns.c (Fold_rassoc):
12630         * fns.c (Frassq):
12631         * fns.c (Fold_rassq):
12632         * fns.c (rassq_no_quit):
12633         * fns.c (Fdelete):
12634         * fns.c (Fold_delete):
12635         * fns.c (Fdelq):
12636         * fns.c (Fold_delq):
12637         * fns.c (delq_no_quit):
12638         * fns.c (Fremassoc):
12639         * fns.c (Fremassq):
12640         * fns.c (remassq_no_quit):
12641         * fns.c (Fremrassoc):
12642         * fns.c (Fremrassq):
12643         * fns.c (remrassq_no_quit):
12644         * fns.c (Freverse):
12645         * fns.c (mapcar1):
12646         [1].
12647
12648         * frame-msw.c (mswindows_init_frame_1):
12649         * frame-msw.c (mswindows_delete_frame):
12650         Register popups with dialog code so keyboard traversing works.
12651
12652         * frame-tty.c (tty_raise_frame_no_select): [1].
12653
12654         * frame-x.c:
12655         * frame-x.c (x_set_frame_text_value):
12656         * frame-x.c (x_set_frame_properties):
12657         * frame-x.c (x_create_widgets):
12658         [7].
12659
12660         * frame.c:
12661         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12662
12663         * frame.h (wrap_frame): New.
12664         Macro like wrap_device.
12665
12666         * general.c:
12667         * general.c (SYMBOL):
12668         * general.c (syms_of_general):
12669         Major reorg.  This is now just a wrapper and symbols themselves
12670         are listed in general-slots.h.
12671
12672         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12673         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12674
12675         * glyphs-msw.c (mswindows_native_layout_instantiate):
12676         Add DS_CONTROL so keyboard traversal will work.
12677
12678         * glyphs-widget.c:
12679         * glyphs-widget.c (syms_of_glyphs_widget):
12680         Move some symbols to general-slots.h.
12681
12682         * glyphs-x.c:
12683         * glyphs-x.c (xbm_instantiate_1):
12684         * glyphs-x.c (x_xbm_instantiate):
12685         * glyphs-x.c (x_xface_instantiate):
12686         * glyphs-x.c (autodetect_instantiate):
12687         * glyphs-x.c (cursor_font_instantiate):
12688         * glyphs-x.c (x_update_widget):
12689         * glyphs-x.c (x_widget_instantiate):
12690         * glyphs.c (bitmap_to_lisp_data):
12691         * glyphs.c (pixmap_to_lisp_data):
12692         [7].
12693
12694         * glyphs.c (syms_of_glyphs):
12695         [2].
12696
12697         * gui-x.c:
12698         * gui-x.c (print_widget_value):
12699         * gui-x.c (menu_separator_style_and_to_external):
12700         * gui-x.c (add_accel_and_to_external):
12701         * gui-x.c (button_item_to_widget_value):
12702         * gui-x.c (gui_items_to_widget_values_1):
12703         * gui-x.c (gui_items_to_widget_values):
12704         * gui-x.c (syms_of_gui_x):
12705         * gui-x.c (vars_of_gui_x):
12706         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12707         [9].
12708
12709         * gui-x.h:
12710         Muleize, prototype changes matching gui-x.c.
12711
12712         * gui.c:
12713         * gui.c (separator_string_p):
12714         * gui.c (gui_item_add_keyval_pair):
12715         * gui.c (make_gui_item_from_keywords_internal):
12716         * gui.c (signal_too_long_error):
12717         * gui.c (parse_gui_item_tree_item):
12718         * gui.c (syms_of_gui):
12719         * gui.c (vars_of_gui):
12720         * gui.h:
12721         menu-no-selection-hook moved here (used by MSWin).
12722         Move some symbols to general-slots.h.
12723         [6].
12724         [9].
12725
12726         * insdel.c (get_buffer_pos_char):
12727         * insdel.c (get_buffer_range_char):
12728         Add GC comments.
12729
12730         * keymap.c (keymap_lookup_directly):
12731         * keymap.c (keymap_store):
12732         * keymap.c (ensure_meta_prefix_char_keymapp):
12733         * keymap.c (describe_map):
12734         * keymap.h:
12735         Support new button modifiers.
12736
12737         * lisp-disunion.h (wrap_object):
12738         * lisp-disunion.h (XSETOBJ):
12739         Rename make_obj to wrap_object.
12740
12741         * lisp-union.h:
12742         * lisp-union.h (make_int):
12743         * lisp-union.h (make_char):
12744         Support wrap_object.
12745
12746         * lisp.h:
12747         * lisp.h (LIST_LOOP):
12748         * lisp.h (EXTERNAL_LIST_LOOP):
12749         * lisp.h (LIST_LOOP_2):
12750         * lisp.h (EXTERNAL_LIST_LOOP_1):
12751         * lisp.h (EXTERNAL_LIST_LOOP_2):
12752         * lisp.h (EXTERNAL_LIST_LOOP_3):
12753         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12754         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12755         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12756         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12757         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12758         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12759         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12760         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12761         * lisp.h (struct Lisp_Symbol):
12762         * lisp.h (maybe_continuable_error_with_frob):
12763         Fix up section comments.
12764         Add new types for char to indicate usage.
12765         Delete symbols auto-generated from general-slots.h.
12766         Add prototypes for structured error functions.
12767         Add long comments describing looping macros and change interface
12768         so that lvalues are automatically declared.
12769         Add NO_DECLARE macro in case callers want to declare lvalues
12770         themselves.
12771
12772         * lread.c (read_syntax_error):
12773         * lread.c (continuable_read_syntax_error):
12774         * lread.c (read_structure):
12775         * lread.c (sequence_reader):
12776         * lread.c (read_list_conser):
12777         * lread.c (read_compiled_function):
12778         Rename syntax_error and continuable_syntax_error to avoid clash
12779         with same-named structured error functions.
12780
12781         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12782         * menubar-msw.c (populate_menu_add_item):
12783         * menubar-msw.c (populate_or_checksum_helper):
12784         [5].
12785         [9].
12786
12787         * menubar-x.c:
12788         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12789         Mule-ize whole file.
12790
12791         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12792
12793         * mule-charset.c (Fmake_charset):
12794         * mule-wnnfns.c (Fwnn_set_param):
12795         [1].
12796
12797         * ntproc.c (create_child):
12798         * ntproc.c (Fwin32_set_current_locale):
12799         Add comments portending doom.
12800
12801         * objects-msw.c:
12802         * objects-msw.c (old_font_enum_callback_2):
12803         * objects-msw.c (font_enum_callback_1):
12804         * objects-msw.c (mswindows_enumerate_fonts):
12805         [5].
12806
12807         * objects-x.c:
12808         * objects-x.c (allocate_nearest_color):
12809         * objects-x.c (x_parse_nearest_color):
12810         * objects-x.c (x_initialize_color_instance):
12811         * objects-x.c (x_print_color_instance):
12812         * objects-x.c (x_finalize_color_instance):
12813         * objects-x.c (x_valid_color_name_p):
12814         * objects-x.c (x_initialize_font_instance):
12815         * objects-x.c (x_print_font_instance):
12816         * objects-x.c (valid_x_font_name_p):
12817         * objects-x.c (truename_via_FONT_prop):
12818         * objects-x.c (truename_via_random_props):
12819         * objects-x.c (truename_via_XListFonts):
12820         * objects-x.c (x_font_truename):
12821         * objects-x.c (x_font_instance_truename):
12822         * objects-x.c (x_font_instance_properties):
12823         * objects-x.c (x_list_fonts):
12824         * objects-x.c (x_find_charset_font):
12825         Mule-ize entire file.
12826         [7].
12827
12828         * objects-x.h:
12829         Mule-verify.
12830
12831         * print.c:
12832         * print.c (std_handle_out_external):
12833         * print.c (debug_print_no_newline):
12834         * print.c (syms_of_print):
12835         Output to all debugger kinds in debug-print.
12836         Fix console-output code under MSWin to actually work.
12837
12838         * process-nt.c (send_signal):
12839         * process-nt.c (nt_create_process):
12840         Use newer Unicode macros.
12841
12842         * process-unix.c (unix_create_process):
12843         * process-unix.c (unix_canonicalize_host_name):
12844         * process-unix.c (unix_open_network_stream):
12845         [7].
12846
12847         * scrollbar-x.c:
12848         Mule-verify.
12849
12850         * search.c (syms_of_search):
12851         [2].
12852
12853         * select-msw.c (mswindows_destroy_selection):
12854         Use LIST_LOOP_2.
12855
12856         * select-x.c (symbol_to_x_atom):
12857         [7].
12858
12859         * select.c (syms_of_select):
12860         [2].
12861
12862         * sound.c (Fplay_sound_file):
12863         [7].
12864
12865         * specifier.c:
12866         * specifier.c (decode_specifier_type):
12867         * specifier.c (Fvalid_specifier_locale_type_p):
12868         * specifier.c (check_valid_locale_or_locale_type):
12869         * specifier.c (decode_locale):
12870         * specifier.c (decode_locale_type):
12871         * specifier.c (decode_locale_list):
12872         * specifier.c (check_valid_domain):
12873         * specifier.c (decode_specifier_tag_set):
12874         * specifier.c (Fcanonicalize_tag_set):
12875         * specifier.c (Fdefine_specifier_tag):
12876         * specifier.c (Fspecifier_tag_predicate):
12877         * specifier.c (check_valid_inst_list):
12878         * specifier.c (check_valid_spec_list):
12879         * specifier.c (decode_how_to_add_specification):
12880         * specifier.c (check_modifiable_specifier):
12881         * specifier.c (specifier_add_spec):
12882         * specifier.c (boolean_validate):
12883         * specifier.c (display_table_validate):
12884         [9].
12885
12886         * specifier.c (syms_of_specifier):
12887         Move some symbols to general-slots.h.
12888         [2].
12889
12890         * symbols.c:
12891         * symbols.c (Fmapatoms):
12892         * symbols.c (Fapropos_internal):
12893         Add GCPROs.
12894
12895         * symbols.c (set_default_buffer_slot_variable):
12896         * symbols.c (set_default_console_slot_variable):
12897         [1].
12898
12899         * symbols.c (defsymbol_massage_name_1):
12900         * symbols.c (defkeyword_massage_name):
12901         * symbols.c (deferror_1):
12902         * symbols.c (deferror):
12903         * symbols.c (deferror_massage_name_and_message):
12904         * symeval.h:
12905         * symeval.h (DEFSYMBOL):
12906         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12907
12908         * symbols.c (syms_of_symbols):
12909         [2].
12910
12911         * symsinit.h:
12912         * symsinit.h (init_win32): New.
12913         Also new is syms_of_dialog_mswindows.
12914
12915         * syswindows.h:
12916         Add new Unicode macros, missing Cygwin wide-char functions,
12917         convenience conversion macros for Qmswindows_tstr, macros for
12918         encapsulating required MSWin <-> Cygwin filename conversions,
12919         prototype for dynamically-extracted (not in NT 3.51) functions.
12920
12921         * toolbar-x.c:
12922         Mule-verify.
12923
12924         * tooltalk.c (Fadd_tooltalk_message_arg):
12925         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12926         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12927         [7].
12928
12929         * tooltalk.c (syms_of_tooltalk):
12930         [2].
12931
12932         * unexnt.c:
12933         * unexnt.c (unexec):
12934         Fix up headers, declaration of unexec() to be more standard.
12935
12936 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12937
12938         * offix.h: Revert change to guard macros - they're used in offix.c!
12939
12940 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12941
12942         * lisp.h: Defsubred Fdelete.
12943
12944         * console-msw.h:  (msprinter_default_printer): Added.
12945
12946         * console-msw.c (msprinter_canonicalize_console_connection):
12947         (msprinter_canonicalize_device_connection): Added.
12948
12949         * device-msw.c (msprinter_default_printer):
12950         (Fmswingows_get_default_printer):
12951         (signal_enum_priner_error):
12952         (Fmswingows_printer_list): Added.
12953
12954 2000-07-19  Martin Buchholz <martin@xemacs.org>
12955
12956         * XEmacs 21.2.35 is released.
12957
12958 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12959
12960         * select-x.c (x_handle_selection_request):
12961         Text selected in xemacs and pasted into xterm failed to appear.
12962         Spelling fixes and cosmetic changes.
12963
12964 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12965
12966         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12967         XEmacs frame (fix for doubling chars in dialog boxes).
12968
12969 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12970
12971         * select.c (select_convert_in, select_convert_out):
12972         Don't call intern() every time.
12973
12974         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12975         * select.c (vars_of_select): Initialise them.
12976
12977 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12978
12979         * select.c (selection-coercible-types): New.
12980
12981         * select.c (own-selection-internal):
12982         * select.c (get-selection-internal):
12983         MULE bug fix - these should default to COMPOUND_TEXT and not
12984         STRING for MULE. I think.
12985
12986         * select.c (select_convert_out): Use selection-coercible-types
12987         to find types that we can attempt to perform coercions on.
12988
12989 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12990
12991         * mule-wnnfns.c:
12992         * mule-canna.c:
12993         Add coding: cookie to identify encoding.
12994
12995         * mule-canna.c (CANNA_mode_keys): make static.
12996         Use proper prototypes, even for functions of no arguments.
12997         Remove external prototype for Fding().
12998
12999         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
13000
13001         * select.c (syms_of_select): Add missing DEFSUBR.
13002
13003 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
13004
13005         * select.c (get_selection_internal, own_selection_internal):
13006         Make the type default to STRING, rather than placing a nil type
13007         into Vselection_alist.
13008
13009 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
13010
13011         * gpmevent.c (tty_selection_exists_p):
13012         * gpmevent.c (tty_own_selection):
13013         Updated parameter lists.
13014
13015 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
13016
13017         * select.h (selection-alist): Removed declaration.
13018
13019         * select.h (get_local_selection):
13020         * select.c (get_local_selection):
13021         Made static.
13022
13023         * select.h (convert_selection): Removed declaration.
13024         * select.c (convert_selection): Removed.
13025         This function belongs in Lisp.
13026
13027         * select.h (select_convert_in): Declare.
13028         * select.h (select_convert_out): Declare.
13029         * select.c (select_convert_in): New.
13030         * select.c (select_convert_out): New.
13031         New conversion functions for other files to call.
13032
13033         * select.h (select_notify_buffer_kill): Declare.
13034         * select.c (select_notify_buffer_kill): New.
13035         New functions that get called from kill-buffer.
13036
13037         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
13038         X-specific lisp code.
13039
13040         * select.h: Declare some of the lisp-visible functions for
13041         external use.
13042
13043         * select.c (clean_local_selection_data): Removed. This was
13044         a disgusting function, and previously should have been in
13045         select-x.c in any case. The functionality is now provided
13046         in select-convert-from-integer (select.el).
13047
13048         * select.c (available-selection-types): Fixed stupidity where
13049         INTEGER and ATOM got added twice. Also add STRING when we see an
13050         extent.
13051
13052         * select.c (get-selection-internal): Removed symbol stripping. No
13053         longer causes conversion when data comes from the internal cache.
13054
13055         * select.c (syms_of_select): Added new functions.
13056
13057         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
13058         error checking - previously this called abort!
13059
13060         * select-x.c (x_own_selection): Changed comment.
13061
13062         * select-x.c (x_handle_selection_request): Use select_convert_out.
13063         Don't mess with selection-alist; it's an internal variable of select.c.
13064
13065         * select-x.c (x_get_foreign_selection): Use select_convert_in.
13066
13067         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
13068         rather than messing with selection-alist.
13069
13070         * select-msw.c (mswindows_get_foreign_selection):
13071         Use TO_INTERNAL_FORMAT rather than hacking.
13072
13073 2000-07-14  Martin Buchholz  <martin@xemacs.org>
13074
13075         * process-unix.c (unix_open_multicast_group):
13076         (unix_open_multicast_group): Remove useless casts.
13077
13078 2000-07-13  Martin Buchholz  <martin@xemacs.org>
13079
13080         * sound.c (Fplay_sound): Fix `unused variable' warning.
13081
13082         * emacs.c (main): Use correct type for _environ on SCO5.
13083
13084 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
13085
13086         * console.h (own_selection_method):
13087         * console.h (selection_exists_p_method):
13088         * console.h (available_selection_types_method): New.
13089         * console.h (register_selection_data_type_method): New.
13090         * console.h (selection_data_type_name): New.
13091
13092         * console-msw.h (mswindows_destroy_selection): Declare it.  New
13093         function & alist to track GlobalAlloc()'d handles that need
13094         releasing when the clipboard data gets replaced or emptied.
13095
13096         * event-msw.c (mswindows_wnd_proc): Call it.
13097
13098         * lisp.h, general.c (Qappend): New symbol representing a
13099         `how-to-add' mode.
13100
13101         * select.c (own-selection-internal):
13102         * select.c (selection-exists-p):
13103         * select.c (available-selection-types): New.
13104         * select.c (register-selection-data-type): New.
13105         * select.c (selection-data-type-name): New.  New functions to deal
13106         with device-specific selection data formats.
13107         * select.c (selection-converter-out-alist): Renamed.
13108         * select.c (selection-converter-in-alist): New.
13109         * select.c (selection-appender-alist): New.  Added new alists.
13110         * select.c (syms_of_select, vars_of_select): Added new symbols &
13111         variables.
13112         * select.c (get_local_selection): Split.
13113         * select.c: Removed spurious type checking - selections may now be
13114         of any type, not just strings.
13115         * select.c (own-selection-internal):
13116
13117         * select.h, select.c (convert_selection): New. Created
13118         convert_selection() function based on get_local_selection().
13119         * select.h, select.c (QCF_*): New symbols representing mswindows
13120         clipboard formats.
13121         * select.h, select.c (Qreplace_all, Qreplace_existing): New
13122         symbols representing `how-to-add' modes.
13123
13124         * select-msw.c (x_sym_p): New.
13125         * select-msw.c (symbol_to_ms_cf): New.
13126         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
13127         symbols & clipboard formats. Can also handle string names.
13128         * select-msw.c (mswindows_own_selection):
13129         * select-msw.c (mswindows_selection_exists_p):
13130         Added `data-type' parameter. Use it.
13131         * select-msw.c (mswindows_available_selection_types): New.
13132         * select-msw.c (mswindows_register_selection_data_type): New.
13133         * select-msw.c (mswindows_selection_data_type_name): New.
13134         * select-msw.c (mswindows_own_selection):
13135         * select-msw.c (mswindows_get_foreign_selection):
13136         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
13137         * select-msw.c (console_create_select_mswindows): Added new methods.
13138         * select-msw.c (mswindows_destroy_selection): New.
13139         * select-msw.c (Vhandle_alist): New list.
13140         * select-msw.c (mswindows_own_selection):
13141
13142         * select-x.c (x_own_selection):
13143         * select-x.c (x_selection_exists_p):
13144         * select-x.c: Added some comments about maybe using new
13145         functionality.
13146         * select-x.c (x_own_selection):
13147
13148         * specifier.c: Remove definition of Qappend (now in general.c)
13149         * specifier.c (syms_of_specifier): Remove Qappend.
13150
13151 2000-07-12  Martin Buchholz  <martin@xemacs.org>
13152
13153         * config.h.in: Add socklen_t.
13154
13155         * s/decosf4-0.h: No special compiler flags needed or desired.
13156         In particular, undefine _BSD for DEC OSF 4.0.
13157
13158 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13159
13160         * redisplay-msw.c (msprinter_frame_output_end): Added.
13161         (console_type_create_redisplay_mswindows): Referred the above.
13162
13163         * frame.c (setup_frame_without_minibuffer): Do not create a
13164         default minibuffer frame on a printer device.
13165
13166         * frame-msw.c (apply_dc_geometry): Added.
13167         (msprinter_start_page):
13168         (msprinter_init_frame_3):
13169         (msprinter_eject_page): Use it.
13170
13171         * console-msw.h (struct msprinter_frame): Added pix_left and top,
13172         and removed residual duplex and orientation properties.
13173
13174 2000-07-11  Martin Buchholz  <martin@xemacs.org>
13175
13176         * eval.c (function_argcount): Work around a DEC CC compiler bug.
13177
13178         * unexalpha.c: Remove system prototypes from C sources!
13179
13180 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
13181
13182         * eval.c: Remove references to M-x edit-options in DEFUNs for
13183         `defvar' and `defconst'.
13184
13185 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13186
13187         * config.h.in: Remove SMART_INCLUDE hackery.
13188
13189         PostgreSQL hacking:
13190         * config.h.in: Don't use SMART_INCLUDE.
13191
13192         * postgresql.h: Include libpq-fe.h here.  Fix typo.
13193         * inline.c: Simply #include "postgresql.h"
13194         * postgresql.c:
13195         - Don't use SMART_INCLUDE
13196         - Use simply "const".
13197         - Use standard doc string conventions.
13198         - Use correct type for result of PQstatus.
13199
13200 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13201
13202         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
13203
13204         C++ compilation changes.
13205         * config.h.in (EXTERN_C): Define.
13206         * config.h.in (not): This is also a C++ keyword.
13207         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
13208         * cm.c: Use EXTERN_C.
13209         * redisplay-tty.c: Use EXTERN_C.
13210         * sysdep.c: Use EXTERN_C.  Remove Gould support.
13211
13212 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13213
13214         * general.c: Remove duplicate definition for Qfunction.
13215
13216 2000-07-08  Ben Wing  <ben@xemacs.org>
13217
13218         * device-msw.c (msprinter_init_device):
13219         * device-msw.c (sync_printer_with_devmode):
13220         * device-msw.c (handle_devmode_changes):
13221         * device-msw.c (print_dialog_worker):
13222         * device-msw.c (Fmsprinter_apply_settings):
13223         * device-msw.c (hash_devmode):
13224         * device-msw.c (Fmsprinter_settings_despecialize):
13225         use Qmswindows_tstr, not Qctext.
13226
13227         * vm-limit.c (check_memory_limits):
13228         avoid infinite loop printing warning messages.
13229
13230 2000-07-05  Craig Lanning  <lanning@scra.org>
13231
13232         * Makefile.in.in: Add support for including the Windows resources
13233         when building with the cygwin and mingw targets.
13234
13235         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
13236         not set or not correct.
13237         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
13238         (init_initial_directory): Don't try to use $PWD on the
13239         WIN32_NATIVE target.
13240
13241         * s\cygwin32.h:
13242         [[Add -mwindows to eliminate console window.]] not required --ben
13243         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13244         (MAIL_USE_POP): removed; now handled by configure.
13245
13246         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
13247         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
13248         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13249         (MAIL_USE_POP): removed; now handled by configure.
13250         (ENCAPSULATE_STAT): from Dan Holmsand, added.
13251         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
13252         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
13253         constant string.
13254         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
13255         up from <winsock.h> via systime.h.
13256         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
13257         (getpagesize): from Dan Holmsand, added.
13258         Added #endif which was left dangling by Ben's mega patch; added
13259         comment to help prevent this in the future.
13260
13261         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
13262
13263 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13264
13265         * console-msw.h (struct mswindows_device): Removed unnecessary
13266         cached device geometry values.
13267         Added update_tick and an accessor macro.
13268         (Lisp_Devmode): Added lrecord declaration.
13269         (struct msprinter_device): Contain devmode as a Lisp object.
13270         Added mswindows_get_selected_frame_hwnd();
13271
13272         * console.h (struct console_methods): Indentation nitpicking.
13273
13274         * device-msw.c (mswindows_init_device): Do not initialize geometry
13275         cache. Initialize update tick.
13276         (mswindows_device_system_metrics): Ask the device for its geometry.
13277         (global_free_2_maybe):
13278         (devmode_to_hglobal):
13279         (handle_printer_changes):
13280         (ensure_not_printing):
13281         (print_dialog_worker):
13282         (Fmsprinter_print_setup_dialog):
13283         (Fmsprinter_print_dialog):
13284         (plist_get_margin):
13285         (plist_set_margin):
13286         (Fmsprinter_page_setup_dialog): Added functions.
13287         (sync_printer_with_devmode):
13288         (handle_devmode_changes):
13289         (Fmsprinter_get_settings):
13290         (Fmsprinter_select_settings):
13291         (Fmsprinter_apply_settings):
13292         (allocate_devmode):
13293         (Fmsprinter_settings_copy):
13294         (Fmsprinter_settings_despecialize):
13295         (print_devmode):
13296         (finalize_devmode):
13297         (equal_devmode):
13298         (hash_devmode): Added functions
13299         (syms_of_device_mswindows): Init devmode lrecord class.
13300
13301         * device.h: Added an exfun for find-device.
13302
13303         * event-msw.c (mswindows_wnd_proc): Do not update the cached
13304         geometry; although, recreate the device compatible DC.
13305
13306         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13307         (msprinter_init_frame_3):
13308         (msprinter_frame_property):
13309         (msprinter_internal_frame_property_p):
13310         (msprinter_frame_properties):
13311         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13312         print job properties (will move to device settings).
13313
13314         * lisp.h: Added symbols.
13315
13316         * general.c (syms_of_general): Declared them.
13317
13318         * hash.c (string_hash): Added.
13319
13320         * lrecord.h (lrecord_type): Added devmode lrecord type.
13321
13322 2000-07-02  Mike Sperber <mike@xemacs.org>
13323
13324         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13325         FreeBSD 4.0.
13326
13327 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13328
13329         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13330         integer.
13331
13332 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13333
13334         * data.c (Fstring_to_number): Don't recognize floating point if
13335         base is not 10.
13336
13337 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13338
13339         * glyphs-widget.c (tab_control_query_geometry):
13340         (widget_query_geometry):
13341         (button_query_geometry):
13342         * glyphs.c (text_query_geometry):
13343         Enforce type correctness.
13344
13345 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13346
13347         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13348         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13349
13350 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13351
13352         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13353         conflicts with gcc's fixincluded version of FOO.h.
13354
13355         * glyphs.h (image_instance_geometry): Remove trailing `,'
13356
13357 2000-06-08  Mike Alexander  <mta@arbortext.com>
13358
13359         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13360         (shove_thread): Don't write the same output twice
13361         (make_ntpipe_output_stream): Increase priority of shove thread
13362         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13363         chance to run
13364         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13365         it.
13366
13367 2000-06-12  Ben Wing  <ben@xemacs.org>
13368
13369         * s\mingw32.h (sigset):
13370         * s\windowsnt.h (sigset):
13371         rename msw_ to mswindows_ for consistency with general convention.
13372
13373 2000-06-12  Ben Wing  <ben@xemacs.org>
13374
13375         * console-msw.c:
13376         * console-msw.c (mswindows_get_console_hwnd):
13377         * console-msw.c (mswindows_ensure_console_allocated):
13378         * console-msw.c (mswindows_hide_console):
13379         * console-msw.c (mswindows_show_console):
13380         * console-msw.c (mswindows_ensure_console_buffered):
13381         * console-msw.c (mswindows_output_console_string):
13382         * console-msw.c (mswindows_windows9x_p):
13383         * console-msw.h:
13384         * device-msw.c (mswindows_get_workspace_coords):
13385         * device-msw.c (mswindows_device_system_metrics):
13386         * dialog-msw.c (mswindows_popup_dialog_box):
13387         * event-msw.c (mswindows_wnd_proc):
13388         * frame-msw.c (mswindows_size_frame_internal):
13389         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13390         * menubar-msw.c (displayable_menu_item):
13391         * menubar-msw.c (mswindows_char_is_accelerator):
13392         * nt.c:
13393         * nt.c (mswindows_sigset):
13394         * nt.c (mswindows_sigrelse):
13395         * nt.c (mswindows_sigpause):
13396         * nt.c (mswindows_raise):
13397         * nt.c (timer_proc):
13398         * ntproc.c:
13399         * ntproc.c (find_child_console):
13400         * ntproc.c (sys_kill):
13401         * print.c:
13402         * print.c (std_handle_out_external):
13403         * process-nt.c (find_child_console):
13404         * process-nt.c (send_signal_the_95_way):
13405         * process-nt.c (ensure_console_window_exists):
13406         * process-nt.c (nt_create_process):
13407         * syssignal.h:
13408         rename msw_ to mswindows_ for consistency with general convention.
13409
13410         * emacs.c:
13411         * dumper.c:
13412         include nt.h, not syswindows.h.
13413
13414         * nt.c (mswindows_fstat):
13415         * nt.c (mswindows_stat):
13416         prefix mswindows_ instead of attempting to directly override the
13417         library functions.  fix declarations.
13418
13419         * nt.h:
13420         include syswindows.h.  move some sysdep.h stuff here.
13421
13422         * ntheap.h:
13423         include syswindows.h, not <windows.h>.
13424
13425         * ntplay.c:
13426         clean up headers.
13427
13428         * sysdep.c:
13429         clean up headers.
13430
13431         * sysdep.c (sys_fstat):
13432         * sysdep.c (sys_stat):
13433         call mswindows versions when appropriate.
13434
13435         * sysdep.h:
13436         move mswin decls to nt.h.
13437
13438         * syswindows.h:
13439         add long comment describing appropriate use of the various windows
13440         headers.
13441
13442 2000-06-11  Ben Wing  <ben@xemacs.org>
13443
13444         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13445
13446 2000-06-10  Ben Wing  <ben@xemacs.org>
13447
13448         * Makefile.in.in (release):
13449         Correction to make sure xemacs.exe always dumped when correct.
13450
13451         * alloca.c:
13452         * balloon_help.c:
13453         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13454
13455         * buffer.c (set_buffer_internal):
13456         [[[[2]]]]: Remove HAVE_FEP code.
13457
13458         * buffer.c (init_initial_directory):
13459         [3].
13460
13461         * bytecode.c:
13462         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13463         individual files.
13464
13465         * callproc.c:
13466         * callproc.c (call_process_cleanup):
13467         * callproc.c (Fold_call_process_internal):
13468         * callproc.c (child_setup):
13469         * callproc.c (getenv_internal):
13470         * callproc.c (init_callproc):
13471         * callproc.c (vars_of_callproc):
13472         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13473         __CYGWIN32__ -> CYGWIN.
13474         DOS_NT -> WIN32_NATIVE.
13475         Remove MSDOS support/references, converting to WIN32_NATIVE
13476           where correct.
13477         __MINGW32__ -> MINGW.
13478         Fix windows.h includes.
13479         Remove bogus HAVE_NTGUI.
13480
13481         * config.h.in:
13482         [2].
13483
13484         * console-msw.c:
13485         mswindows_message_outputted added for use in allowing startup
13486         errors on the console to be seen.
13487
13488         * console-msw.c (msw_ensure_console_allocated):
13489         * console-msw.c (msw_output_console_string):
13490         * console-msw.c (DHEADER):
13491         * console-msw.c (DOPAQUE_DATA):
13492         * console-msw.c (DEVENT):
13493         * console-msw.c (DCONS):
13494         * console-msw.c (DCONSCDR):
13495         * console-msw.c (DSTRING):
13496         * console-msw.c (DVECTOR):
13497         * console-msw.c (DSYMBOL):
13498         * console-msw.c (DSYMNAME):
13499         Fix warnings.
13500
13501         * console-stream.c (stream_init_console):
13502         Fix text/binary problems.
13503
13504         * device-msw.c:
13505         * device-msw.c (mswindows_finish_init_device):
13506         * device-msw.c (mswindows_delete_device):
13507         [1].
13508
13509         * device.c (handle_asynch_device_change):
13510         [3].
13511
13512         * dgif_lib.c:
13513         * dgif_lib.c (DGifOpenFileName):
13514         * dgif_lib.c (DGifOpenFileHandle):
13515         * dgif_lib.c (DGifGetLine):
13516         * dgif_lib.c (DGifGetPixel):
13517         Added config.h/lisp.h, fix up includes.
13518         [1].
13519
13520         * dired-msw.c:
13521         [4].
13522
13523         * dired.c:
13524         * dired.c (file_name_completion):
13525         * dired.c (Ffile_attributes):
13526         * dired.c (syms_of_dired):
13527         [1].
13528
13529         * dumper.c:
13530         * dumper.c (pdump_file_unmap):
13531         * dumper.c (pdump_load):
13532         [1].
13533
13534         * editfns.c:
13535         * editfns.c (Ftemp_directory):
13536         * editfns.c (user_login_name):
13537         * editfns.c (Fuser_real_login_name):
13538         * editfns.c (get_home_directory):
13539         [1].
13540
13541         * elhash.c (finish_marking_weak_hash_tables):
13542         [[[[5]]]]: Fix GCC warnings.
13543
13544         * emacs.c:
13545         * emacs.c (mswindows_handle_hardware_exceptions):
13546         * emacs.c (make_arg_list_1):
13547         * emacs.c (main_1):
13548         * emacs.c (Fkill_emacs):
13549         * emacs.c (Fdump_emacs):
13550         [1].
13551         Fix problems with nested crashes, add long comment.
13552
13553         * event-Xt.c (init_event_Xt_late):
13554         [1].
13555
13556         * event-msw.c:
13557         * event-msw.c (mswindows_dde_callback):
13558         * event-msw.c (mswindows_handle_sticky_modifiers):
13559         * event-msw.c (mswindows_wnd_proc):
13560         [1].
13561         [5].
13562
13563         * events.c (character_to_event):
13564         [1].
13565
13566         * fileio.c:
13567         * fileio.c (Ffile_name_directory):
13568         * fileio.c (Ffile_name_nondirectory):
13569         * fileio.c (directory_file_name):
13570         * fileio.c (Fexpand_file_name):
13571         * fileio.c (Fsubstitute_in_file_name):
13572         * fileio.c (Ffile_name_absolute_p):
13573         * fileio.c (check_executable):
13574         * fileio.c (Ffile_readable_p):
13575         * fileio.c (Ffile_accessible_directory_p):
13576         * fileio.c (Ffile_modes):
13577         * fileio.c (Funix_sync):
13578         * fileio.c (vars_of_fileio):
13579         [1]. [4].
13580
13581         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13582
13583         Expand getdefdir defn.
13584         Fix bogus rename() comment.
13585
13586         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13587         to use standard XEmacs include files, e.g. sysfile.h, rather
13588         than system-specific includes.
13589
13590         * fns.c:
13591         * fns.c (Fsubseq):
13592         [5]. [6].
13593
13594         * frame.c (vars_of_frame):
13595         [1].
13596
13597         * getloadavg.c:
13598         * getloadavg.c (getloadavg):
13599         [1]. [6].
13600         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13601         (We don't use it elsewhere in the code; just add a comment.)
13602
13603         * gif_io.c:
13604         [6].
13605         Add config.h.
13606
13607         * glyphs-msw.c:
13608         * glyphs-msw.c (mswindows_resource_instantiate):
13609         [1].
13610
13611         * glyphs-x.c (x_native_layout_instantiate):
13612         [5].
13613
13614         * gui-msw.c (Fmswindows_shell_execute):
13615         [1].
13616
13617         * insdel.c:
13618         [4].
13619
13620         * lisp.h:
13621         [4]. [5].
13622
13623         * lread.c (locate_file_in_directory_mapper):
13624         [1].
13625
13626         * lstream.c:
13627         [4].
13628
13629         * mem-limits.h:
13630         * mem-limits.h (get_lim_data):
13631         [1].
13632
13633         * menubar-msw.c:
13634         [4].
13635
13636         * ndir.h:
13637         [1].
13638
13639         * nt.c:
13640         * nt.c (getwd):
13641         * nt.c (closedir):
13642         * nt.c (rva_to_section):
13643         * nt.c (mswindows_executable_type):
13644         [1]. [6].
13645         Fix closedir() defn.
13646
13647         * nt.h:
13648         [[[[8]]]]: *_OK defs moved to sysfile.h.
13649
13650         * ntproc.c:
13651         [6]. [7].
13652
13653         * objects-x.c:
13654         [4].
13655
13656         * print.c:
13657         * print.c (std_handle_out_external):
13658         [1]. [4].
13659
13660         * process-nt.c:
13661         * process-nt.c (nt_create_process):
13662         [6].
13663         try to fix process quoting somewhat.
13664
13665         * process-unix.c (unix_create_process):
13666         [1].
13667
13668         * process.c:
13669         * process.c (vars_of_process):
13670         Add Vnull_device.
13671
13672         * process.h:
13673         [1].
13674
13675         * realpath.c:
13676         * realpath.c (xrealpath):
13677         [1].
13678
13679         * redisplay-tty.c (init_tty_for_redisplay):
13680         [3].
13681
13682         * redisplay.c:
13683         [4]. [6].
13684
13685         * scrollbar-msw.c:
13686         [4].
13687
13688         * sheap.c:
13689         * sheap.c (more_static_core):
13690         * sheap.c (report_sheap_usage):
13691         [5]. [6].
13692
13693         * signal.c:
13694         * signal.c (alarm_signal):
13695         [1]. [6].
13696
13697         * sound.c:
13698         [6].
13699
13700         * strftime.c:
13701         * strftime.c (zone_name):
13702         [1]. [5].
13703
13704         * symsinit.h (init_sunpro):
13705         [1].
13706
13707         * syscommctrl.h:
13708         commctrl.h not in Cygwin b20.1.
13709
13710         * sysdep.c:
13711         * sysdep.c (endif):
13712         * sysdep.c (sys_subshell):
13713         * sysdep.c (init_baud_rate):
13714         * sysdep.c (emacs_get_tty):
13715         * sysdep.c (emacs_set_tty):
13716         * sysdep.c (tty_init_sys_modes_on_device):
13717         * sysdep.c (init_system_name):
13718         * sysdep.c (sys_open):
13719         * sysdep.c (interruptible_open):
13720         * sysdep.c (sys_fopen):
13721         * sysdep.c (sys_mkdir):
13722         * sysdep.c (sys_rename):
13723         * sysdep.c (get_process_times_1):
13724         [1]. [6].
13725
13726         * sysdep.h:
13727         [1].
13728
13729         * sysdir.h:
13730         * sysdir.h (DIRENTRY_NONEMPTY):
13731         [1]. [6].
13732
13733         * sysdll.c (dll_init):
13734         * sysdll.h:
13735         [1].
13736
13737         * sysfile.h:
13738         [1]. [6]. [8].
13739         added text/binary defs.
13740
13741         * sysfloat.h:
13742         [1].
13743
13744         * sysproc.h:
13745         * sysproc.h (EDESTADDRREQ):
13746         * sysproc.h (poll_fds_for_input):
13747         [1]. [6].
13748
13749         * syspwd.h:
13750         [6].
13751
13752         * syssignal.h:
13753         [1].
13754
13755         * systime.h:
13756         [1]. [6].
13757
13758         * systty.h:
13759         [1].
13760
13761         * syswindows.h:
13762         [1].
13763         Always define WIN32_LEAN_AND_MEAN.
13764
13765         * unexcw.c (unexec):
13766         [5].
13767
13768         * unexec.c:
13769         * unexec.c (copy_text_and_data):
13770         * unexec.c (adjust_lnnoptrs):
13771         [1].
13772
13773         * unexnt.c:
13774         * unexnt.c (_start):
13775         [1].
13776
13777 2000-06-07  Ben Wing  <ben@xemacs.org>
13778
13779         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13780         was used only as a model.  We've long since extracted any useful
13781         logic or code out of this. (I just did an exhaustive search.)
13782
13783         * s\msdos.h: Removed.
13784
13785         * s\windows95.h: Removed.
13786
13787 2000-06-10  Ben Wing  <ben@xemacs.org>
13788
13789         * s\cygwin32.h:
13790         [1]. [5].
13791         Don't use extern with fun defs.
13792
13793         * s\mingw32.h:
13794         [1]. [7].
13795         Remove nt\inc include.
13796         Remove getdisk, getdefdir. (The former is unused, the latter
13797         expanded in fileio.h.)
13798
13799         * s\windowsnt.h:
13800         * s\windowsnt.h (WIN32_NATIVE):
13801         * s\windowsnt.h (HAVE_STRCASECMP):
13802         [1]. [7].
13803         Add long comment about preprocessor changes.
13804         Remove getdisk, getdefdir. (The former is unused, the latter
13805         expanded in fileio.h.)
13806
13807 2000-06-10  Ben Wing  <ben@xemacs.org>
13808
13809         * m\arm.h:
13810         * m\delta.h:
13811         * m\intel386.h:
13812         * m\sequent.h:
13813         * m\template.h:
13814         * m\windowsnt.h:
13815         [1].
13816         Remove bogus/unused NO_SOCK_SIGIO.
13817
13818 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13819
13820         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13821         not an Emchar.
13822
13823 2000-06-04  Mike Sperber <mike@xemacs.org>
13824
13825         * casetab.c (set_case_table): For `set-standard-case-table',
13826         actually deposit the new case tables where the rest of XEmacs can
13827         see them.
13828
13829 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13830
13831         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13832
13833 2000-06-05  Ben Wing  <ben@xemacs.org>
13834
13835         * callproc.c (child_setup): Don't do close_load_descs() under
13836         MS Windows.  Put in a comment explaining why.
13837
13838 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13839
13840         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13841         Toolkit shell" which breaks `kill-compilation' on Windows NT
13842         native, retaining STDERR handling improvements.
13843
13844 2000-06-01  Andreas Jaeger  <aj@suse.de>
13845
13846         * s/s390.h: Support for S390, based on a patch by Martin
13847         Schwidefsky <schwidefsky@de.ibm.com>.
13848
13849 2000-05-30  Andy Piper  <andy@xemacs.org>
13850
13851         * window.c (allocate_window):
13852         (make_dummy_parent):
13853         (Fset_window_configuration): use new hashtable type.
13854
13855         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13856         (struct image_instantiator_methods):
13857         (struct Lisp_Image_Instance): make instance geometry signed.
13858
13859         * glyphs.c (instantiate_image_instantiator):
13860         (image_instance_query_geometry):
13861         (image_instance_layout):
13862         (image_instance_layout):
13863         (query_string_geometry):
13864         (text_query_geometry):
13865         (image_instantiate):
13866         (image_instantiate):
13867         (cache_subwindow_instance_in_frame_maybe):
13868         (subwindow_query_geometry): make instance geometry signed.
13869
13870         * glyphs-widget.c (widget_query_geometry):
13871         (widget_layout):
13872         (button_query_geometry):
13873         (tree_view_query_geometry):
13874         (tab_control_query_geometry):
13875         (layout_query_geometry):
13876         (layout_layout):
13877         (native_layout_layout): make instance geometry signed.
13878
13879 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13880
13881         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13882         constant.
13883
13884         * general.c (syms_of_general): Add Qfull_assoc symbol.
13885
13886         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13887         correctly.
13888         (decode_weak_list_type): Decode full-assoc type.
13889         (encode_weak_list_type): Encode full-assoc type.
13890         (Fmake_weak_list): Update doc string.
13891
13892 2000-05-30  Andy Piper  <andy@xemacs.org>
13893
13894         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13895
13896         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13897         (decode_hash_table_weakness): ditto.
13898         (Fhash_table_weakness): ditto.
13899         (Fhash_table_type): ditto.
13900         (finish_marking_weak_hash_tables): ditto.
13901         (hash_table_weakness_validate): ditto.
13902         (syms_of_elhash): ditto.
13903
13904 2000-05-28  Martin Buchholz <martin@xemacs.org>
13905
13906         * XEmacs 21.2.34 is released.
13907
13908 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13909
13910         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13911         start cache.
13912         (updating_line_start_cache): Gone.
13913         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13914         generic code to force a minimum of 1 line laid out in the
13915         CMOTION_DISP case.
13916
13917 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13918
13919         * glyphs.c (instantiate_image_instantiator): Check for initialized
13920         height & width no longer special cases IMAGE_NOTHING.
13921         (nothing_instantiate): Set height and width of instance.
13922
13923 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13924
13925         * unexelf.c (unexec): Search for ".data" section.
13926         Initialize new_data2_offset from old_data_index.
13927         Remove redundant check for ElfW.
13928
13929 2000-05-23  Andy Piper  <andy@xemacs.org>
13930
13931         * glyphs.c (get_image_instantiator_governing_domain): allow more
13932         specific domains as the governing domain rather than expecting an
13933         exact match. This fixes problems with layouts.
13934
13935 2000-05-22  Andy Piper  <andy@xemacs.org>
13936
13937         * redisplay-output.c (compare_runes): check for non-images
13938
13939         * glyphs.c (set_glyph_dirty_p): ditto.
13940         (update_glyph_cachel_data): ditto.
13941
13942         * glyphs-widget.c (layout_post_instantiate): ditto.
13943         (layout_post_instantiate): ditto.
13944
13945         * event-msw.c (mswindows_wnd_proc): warning removal.
13946
13947 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13948
13949         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13950
13951         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13952
13953         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13954
13955         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13956         (mswindows_executable_type): mingw32 now has enough headers for
13957         this to work.
13958
13959 2000-05-20  Andy Piper  <andy@xemacs.org>
13960
13961         * console-msw.c (mswindows_output_last_error): ; -> ,
13962
13963 2000-05-12  Andy Piper  <andy@xemacs.org>
13964
13965         * console-msw.c (FROB): compare ints with ints.
13966
13967 2000-05-11  Andy Piper  <andy@xemacs.org>
13968
13969         * glyphs-x.c (x_finalize_image_instance): make minimal build
13970         happy.
13971
13972 2000-05-20  Ben Wing  <ben@xemacs.org>
13973
13974         * event-Xt.c:
13975         * event-Xt.c (vars_of_event_Xt):
13976         move modifier-keys-are-sticky to event-stream.c.
13977
13978         * event-msw.c:
13979         * event-msw.c (mswindows_enqueue_mouse_button_event):
13980         * event-msw.c (key_needs_default_processing_p):
13981         * event-msw.c (XEMSW_LCONTROL):
13982         * event-msw.c (mswindows_handle_sticky_modifiers):
13983         * event-msw.c (FROB):
13984         * event-msw.c (clear_sticky_modifiers):
13985         * event-msw.c (output_modifier_keyboard_state):
13986         * event-msw.c (output_alt_keyboard_state):
13987         * event-msw.c (mswindows_wnd_proc):
13988         * event-msw.c (mswindows_modifier_state):
13989         * event-msw.c (emacs_mswindows_handle_magic_event):
13990         implement sticky modifiers.
13991
13992         * event-stream.c:
13993         * event-stream.c (vars_of_event_stream):
13994         move modifier-keys-are-sticky here.
13995
13996         * lisp.h:
13997         add CHECK_FUNCTION.
13998
13999         * rangetab.c:
14000         implement map-range-table.
14001
14002
14003 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
14004
14005         * redisplay-tty.c (reset_tty_modes):
14006         (tty_redisplay_shutdown): Adjust argument type to
14007         tty_frame_output_end.
14008
14009 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14010
14011         * eval.c (Fbacktrace): Don't output a line with only right
14012         parenthesis.
14013
14014 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
14015
14016         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
14017         (Fpq_reset_poll): Ditto.
14018
14019 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
14020
14021         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
14022
14023 2000-05-16  Ben Wing  <ben@xemacs.org>
14024
14025         * buffer.c:
14026         * buffer.c (dfc_convert_to/from_internal_format):
14027         * buffer.c (reinit_vars_of_buffer):
14028         Fix conversion functions to allow reentrancy.
14029
14030         * console-msw.c:
14031         * console-msw.c (mswindows_output_last_error):
14032         New fun, generally useful -- output a human-readable
14033         version of GetLastError() on the console.
14034
14035         * console-msw.h:
14036         * console-msw.h (struct mswindows_frame):
14037         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
14038
14039         * console-stream.c (stream_output_begin):
14040         * console-stream.c (stream_output_end):
14041         * console-stream.c (stream_output_vertical_divider):
14042         * console-stream.c (stream_clear_region):
14043         * console-stream.c (stream_flash):
14044         * console-stream.c (console_type_create_stream):
14045         Delete blank stream methods, not needed.
14046
14047         * console.h (struct console_methods):
14048         Split begin/end methods into window and frame.
14049
14050         * event-msw.c:
14051         * event-msw.c (mswindows_handle_paint):
14052         * event-msw.c (output_alt_keyboard_state):
14053         * event-msw.c (mswindows_wnd_proc):
14054         * event-msw.c (vars_of_event_mswindows):
14055         Comment about problems with ignored-expose.
14056         Define mswindows-debug-events; not really implemented.
14057
14058         * frame-msw.c (mswindows_init_frame_1):
14059         random cleanups.
14060
14061         * glyphs-msw.c:
14062         * glyphs-msw.c (begin_defer_window_pos):
14063         * glyphs-msw.c (mswindows_unmap_subwindow):
14064         * glyphs-msw.c (mswindows_map_subwindow):
14065         * glyphs-msw.c (mswindows_resize_subwindow):
14066         Use DeferWindowPos to reduce flashing when mapping/unmapping.
14067
14068         * glyphs.c (make_image_instance_1):
14069         Fix crash.
14070
14071         * gutter.c (Fredisplay_gutter_area):
14072         Use new begin/end methods.
14073
14074         * lisp.h (Dynarr_new2):
14075         New creation fun.
14076
14077         * redisplay-msw.c:
14078         * redisplay-msw.c (mswindows_frame_output_begin):
14079         * redisplay-msw.c (mswindows_frame_output_end):
14080         * redisplay-msw.c (console_type_create_redisplay_mswindows):
14081         New begin/end methods -- handle DeferWindowPos.
14082
14083         * redisplay-output.c (redisplay_move_cursor):
14084         * redisplay-output.c (redraw_cursor_in_window):
14085         * redisplay-output.c (redisplay_update_line):
14086         * redisplay-output.c (redisplay_output_window):
14087         New begin/end methods.
14088
14089         * redisplay-tty.c:
14090         * redisplay-tty.c (tty_frame_output_begin):
14091         * redisplay-tty.c (tty_frame_output_end):
14092         * redisplay-tty.c (console_type_create_redisplay_tty):
14093         New begin/end methods.
14094
14095         * redisplay-x.c:
14096         * redisplay-x.c (x_window_output_begin):
14097         * redisplay-x.c (x_window_output_end):
14098         * redisplay-x.c (console_type_create_redisplay_x):
14099         New begin/end methods.
14100
14101         * redisplay.c (redisplay_frame):
14102         * redisplay.c (Fredisplay_echo_area):
14103         New begin/end methods.
14104         use MAYBE_DEVMETH for clear_frame; it may not exist.
14105
14106         * window.h (WINDOW_XFRAME):
14107         WINDOW_XFOO macros -- get locale and decode struct pointer.
14108
14109
14110 2000-05-12  Ben Wing  <ben@xemacs.org>
14111
14112         * emacs.c:
14113         * emacs.c (ensure_no_quitting_from_now_on):
14114         * emacs.c (fatal_error_signal):
14115         * emacs.c (mswindows_handle_hardware_exceptions):
14116         * emacs.c (main):
14117         * emacs.c (Fkill_emacs):
14118         * emacs.c (shut_down_emacs):
14119         * emacs.c (assert_failed):
14120         various improvements in fatal error handling.
14121
14122         * eval.c:
14123         move preparing_for_armageddon to emacs.c.
14124
14125         * lisp.h:
14126         declare fatal_error_in_progress.
14127
14128         * print.c:
14129         * print.c (std_handle_out_external):
14130         * print.c (std_handle_out_va):
14131         * print.c (stderr_out):
14132         * print.c (stdout_out):
14133         use console under mswin when no standard output.
14134         don't do code conversion during fatal error.
14135
14136         * scrollbar.c (Fscrollbar_page_up):
14137         * scrollbar.c (Fscrollbar_page_down):
14138         fix missing else.  reindent.
14139
14140 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
14141
14142         Emergency fix.
14143
14144         * glyphs.h (GLYPH_CACHEL_DESCENT):
14145         (GLYPH_CACHEL_DESCENT):
14146         (GLYPH_CACHEL_DESCENT):
14147         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
14148         used in case these are inline functions.
14149         Use more absurd values to error check.
14150
14151         include window.h for error check functions.
14152
14153 2000-05-11  Ben Wing  <ben@xemacs.org>
14154
14155         * cmdloop.c (Freally_early_error_handler):
14156         Display message box under windows; otherwise, message will disappear
14157         before it can be viewed.
14158
14159         * console-msw.c:
14160         * console-msw.c (Fmswindows_message_box):
14161         * console-msw.c (FROB):
14162         * console-msw.c (syms_of_console_mswindows):
14163         Define new fun `mswindows-message-box'.
14164         #### I will merge this into `popup-dialog-box'; just give me
14165         a bit of time.
14166
14167         * general.c:
14168         * general.c (syms_of_general):
14169         Some new symbols used in `mswindows-message-box'.
14170
14171         * glyphs.c:
14172         * glyphs.c (Fset_image_instance_property):
14173         put warning in this fun.
14174
14175         * glyphs.h:
14176         * glyphs.h (GLYPH_CACHEL_WIDTH):
14177         * glyphs.h (GLYPH_CACHEL_ASCENT):
14178         * glyphs.h (GLYPH_CACHEL):
14179         * glyphs.h (GLYPH_CACHEL_GLYPH):
14180         define error-checking versions to try to catch a bug i've seen --
14181         redisplay gets in an infinite loop because the glyph width of the
14182         continuation glyph is 65535.
14183
14184         * lisp.h:
14185         Extern message-box stuff.
14186
14187         * window.c (allocate_window):
14188         * window.c (make_dummy_parent):
14189         * window.c (Fset_window_configuration):
14190         Use EQUAL not EQ for subwindow caches to make them work a bit
14191         better. (Something is still very broken.)
14192
14193
14194 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14195
14196         * glyphs.c (image_instantiate): Suppress gcc warnings.
14197         (Fmake_image_instance): Fix doc string.
14198         * specifier.c (Fmake_specifier): Ditto.
14199
14200 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
14201
14202         * paths.h.in (PATH_LOCK): Removed.
14203         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
14204         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
14205
14206 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14207
14208         * fns.c (Ffeaturep): Update e-mail address in doc-string.
14209         Document (featurep '(and xemacs 21.02)).
14210
14211 2000-05-09  Ben Wing  <ben@xemacs.org>
14212
14213         * buffer.c (complex_vars_of_buffer):
14214         update modeline-format doc.
14215
14216         * device.h:
14217         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
14218
14219         * emacs.c:
14220         timeline of all released versions of Emacs, for use in creating
14221         authorship comments and in synching up.
14222
14223         * glyphs-widget.c (image_instantiator_buttons):
14224         * glyphs-widget.c (image_instantiator_edit_fields):
14225         * glyphs-widget.c (image_instantiator_combo_box):
14226         * glyphs-widget.c (image_instantiator_scrollbar):
14227         * glyphs-widget.c (image_instantiator_progress_guage):
14228         * glyphs-widget.c (image_instantiator_tree_view):
14229         * glyphs-widget.c (image_instantiator_tab_control):
14230         * glyphs-widget.c (image_instantiator_labels):
14231         * glyphs-widget.c (image_instantiator_layout):
14232         * glyphs-widget.c (image_instantiator_native_layout):
14233         rename decode_domain method to governing_domain.
14234
14235         * glyphs.c:
14236         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
14237         * glyphs.c (add_entry_to_device_ii_format_list):
14238         make sure we don't put an entry more than once into the list.
14239         * glyphs.c (check_instance_cache_mapper):
14240         *************************************************************
14241         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14242         HAVE BEEN GETTING.
14243         *************************************************************
14244         * glyphs.c (get_image_instantiator_governing_domain):
14245         clean up, expand on new concept of governing domain.
14246         * glyphs.c (instantiate_image_instantiator):
14247         * glyphs.c (allocate_image_instance):
14248         use governing_domain instead of cache_domain in naming.
14249         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
14250         * glyphs.c (make_image_instance_1):
14251         * glyphs.c (Fmake_image_instance):
14252         allow for any domain (not just device), and process the
14253         governing domain correctly.  very big doc fix.
14254         * glyphs.c (Fimage_instance_domain):
14255         new primitive, to retrieve the governing domain of an image instance.
14256         * glyphs.c (image_instantiate):
14257         use new governing_domain stuff.  this fixes a crash you could get
14258         by instantiating certain widget glyphs in frame locales. (should
14259         signal an error instead of crashing.)
14260         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
14261         * glyphs.c (Fglyphp): clean up doc.
14262         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
14263         * glyphs.c (syms_of_glyphs):
14264         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
14265         * glyphs.c (image_instantiator_format_create): add some comments about
14266         bogus code.
14267         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
14268         for current-display-table. (Apparently Hrjove implemented in 1998 a
14269         design I wrote up in 1996, but didn't update the doc string.)
14270
14271         * glyphs.h: clean up a doc string.
14272         * glyphs.h (governing_domain):
14273         * glyphs.h (struct image_instantiator_methods):
14274         changes for governing_domain stuff.
14275
14276         * gutter.c:
14277         * gutter.c (Fgutter_specifier_p):
14278         * gutter.c (Fgutter_size_specifier_p):
14279         * gutter.c (Fgutter_visible_specifier_p):
14280         * objects.c:
14281         * objects.c (Fcolor_specifier_p):
14282         * objects.c (Ffont_specifier_p):
14283         * objects.c (Fface_boolean_specifier_p):
14284         doc strings moved to make-*-specifier.
14285
14286         * redisplay.c (add_disp_table_entry_runes_1):
14287         * redisplay.c (generate_fstring_runes):
14288         * redisplay.c (screen):
14289         add random comments and doc strings.
14290
14291         * specifier.c:
14292         * specifier.c (Fmake_specifier):
14293         major overhaul of this doc string.
14294
14295         * specifier.c (Fvalid_specifier_domain_p):
14296         comment about the bogosity of image instances being domains.
14297         * specifier.c (decode_domain):
14298         now non-static, used in glyphs.c.
14299         * specifier.c (specifier_instance):
14300         comment about the bogosity of image instances being domains.
14301         * specifier.c (Fgeneric_specifier_p):
14302         move doc string to make-generic-specifier.
14303         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14304         rebackslashify.
14305
14306         * specifier.h:
14307         * specifier.h (DOMAIN_FRAME):
14308         * specifier.h (DOMAIN_LIVE_P):
14309         * specifier.h (DOMAIN_XDEVICE):
14310         rebackslashify.
14311         add comments about problems with these macros.
14312         prototype for decode_domain.
14313
14314         * toolbar.c:
14315         * toolbar.c (Ftoolbar_specifier_p):
14316         move doc string to `make-toolbar-specifier'.
14317
14318         * window.c (window_unmap_subwindows_cache_mapper):
14319         *************************************************************
14320         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14321         HAVE BEEN GETTING.
14322         *************************************************************
14323
14324 2000-05-09  Andy Piper  <andy@xemacs.org>
14325
14326         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14327
14328         * window.c (Fset_window_configuration): reset the frame subwindow
14329         cache and re-initialize the window subwindow caches.
14330
14331         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14332
14333 2000-05-09  Ben Wing  <ben@xemacs.org>
14334
14335         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14336         DWORD.
14337
14338 2000-04-26  Mike Woolley  <mike@bulsara.com>
14339
14340         * ntheap.c: Changed recreate_heap to limit the amount reserved
14341         for the heap to that which is actually available. Also now
14342         displays a message box (with some dignostics) in the event that
14343         it still can't start.
14344
14345 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14346
14347         * callproc.c (Fold_call_process_internal): GCPRO path
14348
14349 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14350
14351         Patch by Bill Perry.
14352
14353         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14354         back data instead of #ifdef.
14355         (Fscrollbar_page_down): ditto.
14356
14357 2000-05-07  Ben Wing  <ben@xemacs.org>
14358
14359         * buffer.h:
14360         Kludge for defining Qmswindows_tstr.
14361
14362         * nt.c:
14363         * nt.c (open_input_file):
14364         * nt.c (open_output_file):
14365         * nt.c (rva_to_section):
14366         * nt.c (mswindows_executable_type):
14367         Move all memory-mapped-file routines here (some were in unexnt.c,
14368         which is bad because they are used by process-nt.c, and unexnt
14369         won't be around when portable dumping).  Synched the above routines
14370         with FSF 20.6.
14371
14372         * nt.h:
14373         Removed ifdef'd out bogus code.
14374         Fixed some prototypes.
14375
14376         * nt.h (file_data):
14377         * nt.h (OFFSET_TO_RVA):
14378         * nt.h (RVA_TO_OFFSET):
14379         * nt.h (RVA_TO_PTR):
14380         Moved the memory-mapped-file structures, macros and prototypes
14381         here, to parallel nt.c.  ntheap.h should really be removed
14382         entirely, and it's a non-portable-dumper specific file.
14383
14384         * ntheap.h (round_to_next):
14385         Moved the memory-mapped-file structures, macros and prototypes
14386         to nt.h.
14387
14388         * ntproc.c (compare_env):
14389         Moved rva_to_section and mswindows_executable_type to nt.c.
14390         Moved compare_env to process-nt.c.
14391         ntproc.c will die, one day.
14392
14393         * ntproc.c (sys_spawnve):
14394         Account for win32_ -> mswindows_.
14395
14396         * process-nt.c:
14397         * process-nt.c (struct nt_process_data):
14398         * process-nt.c (ensure_console_window_exists):
14399         * process-nt.c (compare_env):
14400         * process-nt.c (nt_create_process):
14401         * process-nt.c (nt_kill_process_by_pid):
14402         * process-nt.c (syms_of_process_nt):
14403         * process-nt.c (vars_of_process_nt):
14404         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14405         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14406         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14407         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14408         Move compare_env here from ntproc.c.
14409
14410         * process.c (Fprocess_send_region):
14411         Takes an optional fourth argument, BUFFER, which should fix some
14412         problems with call-process.
14413
14414         * syscommctrl.h:
14415         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14416
14417         * syswindows.h:
14418         Move ICC_BAR_CLASSES to syscommctrl.h.
14419         Add preliminary macros for MSWindows/Mule.  More to come.
14420
14421         * unexnt.c:
14422         * unexnt.c (unexec):
14423         open_output_file moved to nt.c.
14424
14425
14426 2000-05-05  Andy Piper  <andy@xemacs.org>
14427
14428         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14429         instance from the frame cache also since GC may catch up too late
14430         to make frame deletion sane.
14431
14432 2000-05-04  Andy Piper  <andy@xemacs.org>
14433
14434         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14435         (x_finalize_image_instance): ungcpro on deletion.
14436
14437         * glyphs.c (image_instantiator_format_create): give pointers a
14438         query geometry method so that the geometry is at least set.
14439
14440         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14441         initialize layouts if using widgets.
14442
14443 2000-05-03  Andy Piper  <andy@xemacs.org>
14444
14445         * nt.c: remove bogus reference to sysmmsystem.h
14446
14447         * gui-x.c (popup_selection_callback): fix no selection abort.
14448
14449 2000-05-02  Andy Piper  <andy@xemacs.org>
14450
14451         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14452         (mswindows_widget_instantiate): ditto.
14453
14454         * glyphs-widget.c (initialize_widget_image_instance): initialize
14455         children correctly.
14456         (widget_instantiate): cope with children and items in the same
14457         instance.
14458
14459         * glyphs.c (mark_image_instance): cope with children as a first
14460         class member.
14461         (image_instance_equal): ditto.
14462         (image_instance_hash): ditto.
14463         (image_instance_changed): ditto.
14464
14465 2000-04-30  Andy Piper  <andy@xemacs.org>
14466
14467         * glyphs.c (subwindow_query_geometry): new function. Return some
14468         defaults.
14469         (subwindow_instantiate): don't assign dimensions if none have been
14470         given.
14471         (image_instantiator_format_create): add subwindow_query_geometry.
14472         (print_image_instance): cope with layouts as widgets.
14473
14474 2000-04-29  Andy Piper  <andy@xemacs.org>
14475
14476         * frame.c (delete_frame_internal): call
14477         free_frame_subwindow_instance_cache so that all subwindows are
14478         finalized before their parent.
14479         (mark_frame): remove subwindow_cachels.
14480         (Fmake_frame): remove subwindow_cachel manipulation.
14481         (allocate_frame_core): subwindow_instance_cache is a weak list.
14482         (delete_frame_internal): set subwindow_instance_cache to nil.
14483
14484         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14485         finalization safe.
14486         (mswindows_finalize_image_instance): use the device
14487         not the domain as the domain may have died already.
14488
14489         * glyphs-x.c (x_finalize_image_instance): ditto.
14490         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14491         HEIGHT.
14492
14493         * redisplay-output.c (redisplay_unmap_subwindows): update for
14494         subwindow instance cache as a weak list.
14495         (redisplay_unmap_subwindows_maybe): ditto.
14496         (redisplay_unmap_subwindows_except_us): ditto.
14497
14498         * glyphs.c (unmap_subwindow): error checking will check the domain
14499         so don't deal with it here. Don't use cachels anymore.
14500         (map_subwindow): ditto.
14501         (update_subwindow_cachel_data): remove old accessor names.
14502         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14503         (Fresize_subwindow): don't update cachel.
14504         (mark_subwindow_cachels):
14505         (update_subwindow_cachel_data):
14506         (add_subwindow_cachel):
14507         (get_subwindow_cachel_index):
14508         (update_subwindow_cachel):
14509         (reset_subwindow_cachels):
14510         (mark_subwindow_cachels_as_not_updated): deleted.
14511         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14512         subwindow instance to the frame cache.
14513         (find_matching_subwindow): update for subwindow instance cache as
14514         a weak list.
14515         (update_widget_instances): ditto.
14516         (image_instance_type_to_mask):inlined.
14517         (free_frame_subwindow_instance_cache): new function. finalize all
14518         subwindows that are instantiated.
14519
14520         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14521         of cachel information.
14522         (IMAGE_INSTANCE_DISPLAY_X):
14523         (IMAGE_INSTANCE_DISPLAY_Y):
14524         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14525         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14526         (XIMAGE_INSTANCE_DISPLAY_X):
14527         (XIMAGE_INSTANCE_DISPLAY_Y):
14528         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14529         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14530         remove subwindow_cachel structure and function references.
14531         (image_instance_type_to_mask): inline from glyphs.c
14532
14533         * redisplay.c (redisplay_frame): remove subwindow_cachel
14534         references.
14535
14536         * frame.h (struct frame): remove subwindow_cachels.
14537         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14538
14539         * frameslots.h: add subwindow_instance_cache.
14540
14541         * window.c (replace_window): check subwindow cache of replacement.
14542         (window_unmap_subwindows_cache_mapper):
14543         (window_unmap_subwindows): new functions. Unmap all subwindows
14544         cached on this window.
14545         (mark_window_as_deleted): unmap all subwindows.
14546
14547 2000-04-27  Andy Piper  <andy@xemacs.org>
14548
14549         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14550
14551         * glyphs-widget.c (widget_layout): return something.
14552         (layout_layout): return something. Fail if not initialized.
14553         (layout_query_geometry): ditto.
14554         (image_instantiator_native_layout): new function. Initialized the
14555         native layout type.
14556         (widget_instantiate): don't do layout stuff here.
14557
14558         * glyphs.c (instantiate_image_instantiator): reorded calling or
14559         instantiate and post_instantiate with layout in between.
14560         (image_instance_layout): be more selective about deciding whether
14561         the layout has been done or not.
14562
14563         * glyphs.h (struct image_instantiator_methods): return a value
14564         from layout_method.
14565
14566 2000-04-26  Andy Piper  <andy@xemacs.org>
14567
14568         * glyphs.c (allocate_image_instance): make initial width and
14569         height unspecified. Set initialized to 0.
14570
14571         * syscommctrl.h new file. Encapsulates commctrl.h.
14572
14573         * syswindows.h new file. Encapsulates windows.h.
14574
14575         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14576         * nt.c: ditto.
14577         * console-msw.h: ditto.
14578
14579         * redisplay-tty.c (tty_output_display_block): remove layout references.
14580
14581         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14582         window handle rather than just the frame.
14583
14584         * glyphs.c (mark_image_instance): remove layout references.
14585         (print_image_instance): ditto.
14586         (image_instance_equal): ditto.
14587         (image_instance_hash): ditto.
14588         (decode_image_instance_type): ditto.
14589         (encode_image_instance_type): ditto.
14590         (image_instantiate): ditto.
14591         (allocate_glyph): ditto.
14592         (Fimage_instance_height): ditto.
14593         (Fimage_instance_width): ditto.
14594         (update_subwindow): ditto.
14595
14596         * redisplay-x.c (x_output_display_block): recode for layouts as
14597         widgets.
14598
14599         * redisplay-output.c (redisplay_output_layout): recode for layouts
14600         as widgets.
14601         (compare_runes): remove layout references.
14602
14603         * redisplay-msw.c (mswindows_output_display_block): recode for
14604         layouts as widgets.
14605
14606         * glyphs-widget.c (image_instantiator_layout): remove
14607         layout_possible_dest_types.
14608         (layout_possible_dest_types): deleted.
14609
14610         * glyphs.h (image_instance_type): remove layout references.
14611         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14612         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14613         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14614
14615 2000-04-25  Andy Piper  <andy@xemacs.org>
14616
14617         * glyphs-widget.c (image_instantiator_buttons):
14618         (image_instantiator_edit_fields):
14619         (image_instantiator_combo_box):
14620         (image_instantiator_scrollbar):
14621         (image_instantiator_progress_guage):
14622         (image_instantiator_tree_view):
14623         (image_instantiator_tab_control):
14624         (image_instantiator_labels):
14625         (image_instantiator_layout): call default post_instantiate method.
14626         (widget_post_instantiate): new function. Simply lays out the
14627         widgets.
14628
14629         * glyphs.h (struct image_instantiator_methods): add
14630         post_instantiate method.
14631
14632         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14633         method calls.
14634
14635 2000-04-23  Andy Piper  <andy@xemacs.org>
14636
14637         * glyphs.h (struct image_instantiator_methods): add
14638         decode_domain_method.
14639         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14640         derived from the domain.
14641         (IMAGE_INSTANCE_FRAME): new accessor.
14642         (XIMAGE_INSTANCE_FRAME): ditto.
14643
14644         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14645         instead of _SUBWINDOW_FRAME.
14646         (finalize_image_instance): ditto.
14647         (Fimage_instance_foreground): ditto.
14648         (Fimage_instance_background): ditto.
14649         (image_instantiate): ditto.
14650         (update_subwindow_cachel): ditto.
14651         (update_subwindow): ditto.
14652         (unmap_subwindow): ditto.
14653         (map_subwindow): ditto
14654         (subwindow_instantiate): ditto.
14655         * glyphs-msw.c (mswindows_update_widget): ditto.
14656         (mswindows_progress_gauge_instantiate): ditto.
14657         (mswindows_tab_control_update): ditto.
14658         * glyphs-x.c (x_update_widget): ditto.
14659         (x_widget_instantiate): ditto.
14660         (x_tab_control_instantiate): ditto.
14661         (x_tab_control_update): ditto.
14662         * event-msw.c (mswindows_wnd_proc): ditto
14663
14664         * glyphs-widget.c (image_instantiator_layout): use
14665         subwindow_decode_domain.
14666         (image_instantiator_buttons): ditto.
14667         (image_instantiator_edit_fields): ditto.
14668         (image_instantiator_combo_box): ditto.
14669         (image_instantiator_scrollbar): ditto.
14670         (image_instantiator_progress_guage): ditto.
14671         (image_instantiator_tree_view): ditto.
14672         (image_instantiator_tab_control): ditto.
14673         (image_instantiator_labels): ditto.
14674         (image_instantiator_layout): ditto.
14675
14676         * glyphs.c: add instance error checking to many functions.
14677         (instantiate_image_instantiator): decode device from cache_domain.
14678         (image_instantiate): partially rewrite by using
14679         decode_image_instantiator_domain to determine what domain the
14680         instance needs to be cached in.
14681         (decode_image_instantiator_domain): new function. Determine what
14682         domain the image needs to be cached in.
14683         (check_window_subwindow_cache): new error checking function.
14684         (check_instance_cache_mapper): ditto.
14685         (check_image_instance_structure): ditto.
14686         (subwindow_decode_domain): new function. Encodes a window as a
14687         subwindow's cache domain.
14688         (image_instantiator_format_create): use it for text and
14689         subwindows.
14690
14691 2000-04-21  Andy Piper  <andy@xemacs.org>
14692
14693         * glyphs.c (image_instance_device): new function.
14694         (image_instance_frame): new function.
14695         (image_instance_window): new function.
14696         (image_instance_live_p): new function.
14697
14698         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14699         cache to nil.
14700
14701         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14702         (IMAGE_INSTANCE_DOMAIN): new accessor.
14703         (XIMAGE_INSTANCE_DOMAIN): ditto.
14704
14705         * glyphs-x.c (x_finalize_image_instance): device->domain.
14706
14707         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14708         (mswindows_finalize_image_instance): ditto.
14709
14710         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14711         (gif_instantiate): ditto.
14712         (png_instantiate): ditto.
14713         (tiff_instantiate): ditto.
14714
14715         * glyphs.c (instantiate_image_instantiator): use domain rather
14716         than device.
14717         (mark_image_instance): device -> domain.
14718         (print_image_instance): ditto.
14719         (finalize_image_instance): ditto.
14720         (image_instance_equal): ditto.
14721         (allocate_image_instance): ditto.
14722         (Fcolorize_image_instance): ditto.
14723         (query_string_geometry): ditto.
14724         (image_instantiate): ditto
14725         (query_string_font): ditto.
14726         (image_instantiate): ditto.
14727         (update_subwindow): ditto.
14728         (unmap_subwindow): ditto.
14729         (map_subwindow): ditto.
14730         (subwindow_instantiate): ditto.
14731
14732         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14733         (DOMAIN_FRAME): ditto.
14734         (DOMAIN_WINDOW): ditto.
14735         (DOMAIN_LIVE_P): ditto.
14736         (XDOMAIN_DEVICE): ditto.
14737         (XDOMAIN_FRAME): ditto.
14738         (XDOMAIN_WINDOW): ditto.
14739
14740         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14741         a valid specifier domain.
14742
14743 2000-04-19  Andy Piper  <andy@xemacs.org>
14744
14745         * glyphs-widget.c (syms_of_glyphs_widget): remove
14746         widget-callback-current-channel.
14747         (vars_of_glyphs_widget): ditto.
14748         * glyphs.h: ditto
14749
14750         * gui.c (get_gui_callback): revert to previous behaviour.
14751
14752 2000-04-18  Andy Piper  <andy@xemacs.org>
14753
14754         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14755         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14756         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14757
14758         * glyphs.c (image_instance_equal): add margin_width.
14759         (image_instance_hash): ditto.
14760
14761         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14762         (layout_query_geometry): ditto.
14763         (layout_layout): ditto.
14764         (syms_of_glyphs_widget): add margin-width.
14765         (image_instantiator_layout): allow margin-width.
14766
14767         * glyphs.c (update_widget_instances): make a normal function.
14768         (syms_of_glyphs): remove Qupdate_widget_instances.
14769         * glyphs.h: ditto.
14770
14771         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14772         so that we don't corrupt ideas about the last event or
14773         command. Remove widget-callback-current-channel fiddling.
14774         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14775
14776 2000-05-01  Martin Buchholz <martin@xemacs.org>
14777
14778         * XEmacs 21.2.33 is released.
14779
14780 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14781
14782         * make-src-depend: Allow dots in header file name.
14783
14784 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14785
14786         * mule-charset.h (struct charset_lookup): Add
14787         next_allocated_1_byte_leading_byte and
14788         next_allocated_2_byte_leading_byte.
14789         * mule-charset.c: Move above two variables so that those values
14790         will be dumped.
14791
14792 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14793
14794         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14795         when string length is zero.
14796         (find_charsets_in_emchar_string): Ditto.
14797
14798 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14799
14800         * lisp.h: extern Qdialog and Qmenubar.
14801
14802         * gui-x.c: added events.h.
14803                 also fixed typo which made the file uncompilable.
14804
14805         * general.c: Added Qmenubar and Qdialog
14806
14807 2000-04-28  Ben Wing  <ben@xemacs.org>
14808
14809         * frame-msw.c (mswindows_init_frame_1):
14810         * frame-msw.c (mswindows_mark_frame):
14811         * event-msw.c (mswindows_enqueue_dispatch_event):
14812         * console-msw.h:
14813         * console-msw.h (struct mswindows_frame):
14814         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14815         there are now three hash tables for callbacks.
14816         mswindows_enqueue_dispatch_event is no longer static.
14817
14818         * dialog-x.c (maybe_run_dbox_text_callback):
14819         * dialog-x.c (dbox_descriptor_to_widget_value):
14820         switch to new cons3 form for callbacks.
14821
14822         * glyphs-msw.c (mswindows_register_gui_item):
14823         * glyphs-msw.c (mswindows_widget_instantiate):
14824         * glyphs-msw.c (add_tree_item):
14825         * glyphs-msw.c (add_tab_item):
14826         new image instance parameter, so it can be passed to callback-ex.
14827         respect :callback-ex as well as :callback.
14828
14829         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14830         add :callback-ex.
14831
14832         * glyphs.c (print_image_instance):
14833         prettify, e.g. now prints widget type.
14834
14835         * gui-x.h:
14836         certain funs have new image instance parameter.
14837
14838         * gui.c:
14839         * gui.c (get_gui_callback):
14840         * gui.c (gui_item_add_keyval_pair):
14841         * gui.c (gui_item_init):
14842         * gui.c (gui_add_item_keywords_to_plist):
14843         * gui.c (mark_gui_item):
14844         * gui.c (gui_item_hash):
14845         * gui.c (gui_item_equal):
14846         * gui.c (copy_gui_item):
14847         * gui.c (syms_of_gui):
14848         recognize callback-ex in a number of places.
14849         also, fix the annoying "can't get out of yes-no dialog" bug.
14850
14851         * gui.h:
14852         * gui.h (struct Lisp_Gui_Item):
14853         recognize callback-ex in a number of places.
14854
14855         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14856         new parameter in button_item_to_widget_value.
14857
14858         * glyphs-x.c (x_update_widget):
14859         * glyphs-x.c (x_button_instantiate):
14860         * glyphs-x.c (x_button_update):
14861         * glyphs-x.c (x_progress_gauge_instantiate):
14862         * glyphs-x.c (x_edit_field_instantiate):
14863         * glyphs-x.c (x_combo_box_instantiate):
14864         * glyphs-x.c (x_tab_control_instantiate):
14865         * glyphs-x.c (x_label_instantiate):
14866         new image instance parameter in various places.
14867
14868         * event-Xt.c:
14869         * event-Xt.c (enqueue_Xt_dispatch_event):
14870         this fun gets exported.
14871
14872         * gui-msw.c:
14873         * gui-msw.c (mswindows_handle_gui_wm_command):
14874         handle both :callback and :callback-ex, and generate our own
14875         event because it's one of the callback-ex arguments.
14876
14877         * gui-x.c:
14878         * gui-x.c (popup_selection_callback):
14879         handle both :callback and :callback-ex, and generate our own
14880         event because it's one of the callback-ex arguments.
14881         * gui-x.c (button_item_to_widget_value):
14882         * gui-x.c (gui_items_to_widget_values_1):
14883         * gui-x.c (gui_item_children_to_widget_values):
14884         * gui-x.c (gui_items_to_widget_values):
14885         new image instance parameter in various places.
14886
14887         * fns.c (Freplace_list):
14888         fix small typo in doc string.
14889
14890         * lisp.h:
14891         declare enqueue_Xt_dispatch_event.
14892
14893 2000-04-28  Ben Wing  <ben@xemacs.org>
14894
14895         * buffer.c:
14896         * buffer.c (Frecord_buffer):
14897         * buffer.c (syms_of_buffer):
14898         delete record-buffer-hook.
14899
14900         * fns.c:
14901         * fns.c (Freplace_list):
14902         * fns.c (syms_of_fns):
14903         new primitive replace-list.
14904
14905         * frameslots.h:
14906         slot for old buffer-alist.
14907
14908         * lisp.h:
14909         exfun replace-list.
14910
14911         * redisplay.c:
14912         * redisplay.c (redisplay_frame):
14913         * redisplay.c (syms_of_redisplay):
14914         * redisplay.c (vars_of_redisplay):
14915         new hook buffer-list-changed-hook.
14916         call it.
14917
14918 2000-04-27  Ben Wing  <ben@xemacs.org>
14919
14920         * extents.h: extern in_modeline_generation.
14921
14922         * redisplay.c (generate_formatted_string_db): set
14923         in_modeline_generation.
14924
14925         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14926         flags if in modeline generation.  otherwise frame-modified-tick
14927         is ticked far too often.
14928         Declare in_modeline_generation.
14929
14930 2000-04-26  Ben Wing  <ben@xemacs.org>
14931
14932         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14933         option.
14934         (vars_of_emacs): add quick-build as an error-checking option.
14935         A bit kludgy, but there doesn't seem much point in creating
14936         a real var for this.
14937
14938         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14939
14940 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14941
14942         * redisplay.h (struct display_line): Add a new variable,
14943         line_continuation.
14944
14945         * redisplay.c (create_text_block): Set dl->line_continuation if
14946         the line continues.
14947         (create_string_text_block): Ditto.
14948         (regenerate_window_incrementally): Use line_continuation instead
14949         of searching continuation glyph.
14950         (add_margin_runes): Call add_glyph_rune.
14951         (add_glyph_rune): Handle margin glyph.
14952
14953 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14954
14955         * filelock.c (fill_in_lock_file_name):
14956         ANSIfy.
14957         Check for IS_ANY_SEP instead of '/'.
14958         (lock_file_1):
14959         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14960         Never check errno without first seeing that system call failed.
14961         (unlock_file): Add GCPRO.
14962         (Flock_buffer): Fix docstring.
14963         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14964
14965 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14966
14967         * sysdep.c (get_pty_max_bytes):
14968         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14969         strings longer than 252 bytes.
14970
14971         * md5.c: Unconditionally include ANSI header <limits.h>
14972
14973         * glyphs-x.c (convert_EImage_to_XImage):
14974         * lisp-union.h (union Lisp_Object):
14975         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14976
14977 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14978
14979         * filelock.c (current_lock_owner): Remove unused variable o, p.
14980
14981 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14982
14983         * callint.c: Remove multiply defined symbol Qlet
14984         (syms_of_callint): ditto.
14985
14986 2000-04-14  Andy Piper  <andy@xemacs.org>
14987
14988         * general.c (syms_of_general): add last-command, this-command, let
14989         and funcall.
14990
14991         * lisp.h: declare various symbols.
14992
14993         * glyphs.h: declare Qwidget_callback_current_channel;
14994
14995         * glyphs-widget.c (syms_of_glyphs_widget): add
14996         Qgui_callback_current_channel.
14997         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14998
14999         * gui-msw.c (mswindows_handle_gui_wm_command): bind
15000         widget-callback-current-channel when invoking the interactive
15001         arg. Also bind last-command and next-command when invoking the
15002         widget updates.
15003         * gui-x.c (popup_selection_callback): ditto.
15004
15005         * gui.c (get_gui_callback): massage args so that we are always
15006         calling eval. This allows us to add our own variable bindings
15007         outside.
15008
15009         * glyphs-x.c (x_button_instantiate): use
15010         gui_items_to_widget_values since this is GC safe.
15011         (x_progress_gauge_instantiate): ditto.
15012         (x_edit_field_instantiate): ditto.
15013         (x_label_instantiate): ditto.
15014
15015         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
15016         (emacs_Xt_event_widget_focus_out): new function
15017         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
15018         focus.
15019         (emacs_Xt_event_add_widget_actions): new function. add focus
15020         functions as actions.
15021         (init_event_Xt_late): use it.
15022
15023 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
15024
15025         * event-stream.c (Fdispatch_event): Doc fix.
15026
15027 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
15028
15029         * postgresql.c: Remove all references to PQsetenv*.
15030
15031         * postgresql.h: Remove references to PGsetenvHandler object.
15032         * lrecord.h (lrecord_type): Ditto.
15033
15034 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15035
15036         * glyphs-msw.h (struct mswindows_image_instance_data): Added
15037         real_heigh and real_width members, and accessor macros for these.
15038
15039         * glyphs-msw.c (init_image_instance_geometry): New function.
15040         (init_image_instance_from_dibitmap): Use it.
15041         (mswindows_resource_instantiate): Use it.
15042         (init_image_instance_from_xbm_inline): Use it.
15043         (mswindows_initialize_image_instance_mask): Use real bitmap
15044         geometry.
15045         (mswindows_create_resized_bitmap): Ditto.
15046         (mswindows_create_resized_mask): Ditto.
15047
15048         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
15049         and bitmap to their surface size.
15050
15051 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
15052
15053         * process-unix.c (unix_send_process): Guard against process MIA
15054         after Faccept_process_output.
15055
15056 2000-04-11  Ben Wing  <ben@xemacs.org>
15057
15058         * eval.c (unbind_to_hairy): fix brokenness introduced by
15059         nanosecond speed improvements.
15060
15061 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
15062
15063         * sunplay.c (init_device): To play sounds correctly, the device
15064         apparently needs to be initialized at least once by XEmacs.  Make
15065         it so.
15066
15067 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15068
15069         * redisplay.c (add_margin_runes): Add text image glyph
15070           handling.
15071
15072 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
15073
15074         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
15075         gcc is newer than 2.5.
15076
15077 2000-04-06  Colin Rafferty  <colin@xemacs.org>
15078
15079         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
15080
15081         * fns.c (size_bit_vector):
15082         * alloc.c (size_vector):
15083         (make_vector_internal):
15084         (make_bit_vector_internal):
15085         (sweep_bit_vectors_1):
15086         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
15087
15088 2000-04-06  Andy Piper  <andy@xemacs.org>
15089
15090         * gmalloc.c (malloc): undo previous change.
15091         (malloc): ditto.
15092         (free): ditto.
15093         (realloc): ditto.
15094
15095 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
15096
15097         * line-number.c (buffer_line_number): Revert to former version.
15098
15099 2000-04-06  Andy Piper  <andy@xemacs.org>
15100
15101         * gmalloc.c (malloc): add error checking.
15102         (malloc): ditto.
15103         (free): ditto.
15104         (realloc): ditto.
15105
15106         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
15107         button_item_to_widget_value arg.
15108
15109         * glyphs-x.c (x_button_instantiate): add extra
15110         button_item_to_widget_value arg.
15111         (x_progress_gauge_instantiate): ditto.
15112         (x_edit_field_instantiate): ditto.
15113         (x_label_instantiate): ditto.
15114
15115         * gui-x.c (gui_items_to_widget_values_1): add extra
15116         button_item_to_widget_value arg.
15117         (button_item_to_widget_value): add extra menu_item_p arg.
15118
15119         * gui-x.h: change signature of button_item_to_widget_value.
15120
15121         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
15122         button_item_to_widget_value arg.
15123
15124 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
15125
15126         * buffer.h (struct buffer): auto_save_modified should be long.
15127
15128 2000-04-05  Andy Piper  <andy@xemacs.org>
15129
15130         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
15131         type.
15132         (button_query_geometry): give a little more room so that athena
15133         buttons fit.
15134
15135 2000-04-05  Andy Piper  <andy@xemacs.org>
15136
15137         * faces.c (complex_vars_of_faces): The widget face should inherit
15138         the font of the gui-element face.
15139
15140 2000-04-04  Andy Piper  <andy@xemacs.org>
15141
15142         * glyphs-x.c (x_button_update): new function. unconditionally
15143         update a button's state when the instance is dirty.
15144         (image_instantiator_format_create_glyphs_x): add x_button_update.
15145         (x_widget_instantiate): remove old resize cruft.
15146
15147 2000-04-02  Andy Piper  <andy@xemacs.org>
15148
15149         * frame.c (change_frame_size_1): The introduction of gutters means
15150         that we need to allow 0 as a potential frame dimension.
15151
15152 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15153
15154         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
15155         image glyph if allow_cursor.
15156         (add_hscroll_rune): Don't allow cursor to border glyph.
15157         (create_text_block): Ditto.
15158
15159         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
15160         text not in buffer.
15161         (redisplay_output_layout): Call ensure_face_cachel_complete for
15162         text image glyph.
15163
15164
15165 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15166
15167         * redisplay.c (add_glyph_rune): Adding text image as text runes.
15168
15169         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
15170         not in buffer
15171
15172         * redisplay-tty.c (tty_output_display_block): Delete the routine
15173         for text image glyph
15174         * redisplay-x.c (x_output_display_block): ditto
15175         * redisplay-msw.c (mswindows_output_display_block): ditto
15176
15177 2000-02-02  Mike Alexander  <mta@arbortext.com>
15178
15179         Note: Some of these were committed by accident as part of other
15180         patches.
15181
15182         * regex.c (regex_compile): Avoid compiler warnings.
15183
15184         * ntproc.c (sys_spawnve): Avoid compiler warnings.
15185
15186         * nt.h: Declare term_ntproc correctly.
15187
15188         * nt.c: Remove incorrect declaration of get_home_directory which
15189         is declared correctly in lisp.h.
15190
15191         * keymap.c (get_keyelt): Avoid compiler warnings.
15192         (raw_lookup_key_mapper): Avoid compiler warnings.
15193
15194         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
15195
15196         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
15197
15198         * filemode.c (mode_string): Avoid compiler warnings.
15199
15200         * file-coding.c (Fcoding_system_aliasee): Add return statement to
15201         avoid warning.
15202
15203         * events-mod.h: Undef some things that winuser.h defines differently.
15204
15205         * data.c (Faset): Avoid compiler warnings.
15206
15207         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
15208
15209 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15210
15211         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
15212         Fall through to simple beep on error.
15213         Replace "extern" by real header file.
15214
15215         * linuxplay.c: Use nativesound.h
15216         (play_sound_data): Return error code. Be less verbose on error.
15217
15218         * sunplay.c: Use nativesound.h
15219         (play_sound_data): Return error code. Be less verbose on error.
15220
15221         * ntplay.c: Use nativesound.h
15222         (play_sound_data): Return fake error code
15223
15224         * sgiplay.c: Use nativesound.h
15225         (play_sound_data): Return error code
15226
15227         * hpplay.c: Use nativesound.h, partially implement
15228         new error code. Break compilation until finished.
15229         (play_sound_data): error code.
15230
15231         * nativesound.h (play_sound_file):
15232           (play_sound_data): Prototype in new header.
15233
15234 2000-03-31  Andy Piper  <andy@xemacs.org>
15235
15236         * glyphs-widget.c: (button_query_geometry): new function. Adjust
15237         for toggle and radio buttons.
15238         (image_instantiator_buttons): use it.
15239
15240 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15241
15242         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
15243         (x_update_horizontal_scrollbar_callback): Return if no mirror was
15244         found. Scrollbar event probably belonged to some old config.
15245
15246 2000-03-31  Andy Piper  <andy@xemacs.org>
15247
15248         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
15249         than 1.
15250         (initialize_widget_image_instance): default layout to
15251         LAYOUT_HORIZONTAL rather than 0.
15252         (widget_instantiate): reverse the item list at the end rather than
15253         every iteration.
15254         (layout_layout): re-code for the border text at the front of the
15255         item list rather than at the end.
15256         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
15257         provided by the user.
15258         (widget_query_geometry): comment.
15259
15260 2000-03-30  Andy Piper  <andy@xemacs.org>
15261
15262         * glyphs-widget.c (image_instantiator_layout): allow standard
15263         widget keywords in layouts.
15264
15265         * gutter.c (output_gutter): cope with nil gutter contents.
15266
15267         * frame.c (Fset_frame_properties): add gutter docs.
15268
15269 2000-03-29  Andy Piper  <andy@xemacs.org>
15270
15271         * toolbar-msw.c (TBSTYLE_FLAT): add.
15272         (mswindows_output_toolbar): minor fiddling.
15273
15274 2000-03-29  Andy Piper  <andy@xemacs.org>
15275
15276         * gutter.c (output_gutter): force gutter size recalculation if
15277         what we are trying to display won't fit.
15278         (update_gutter_geometry): new function. A per-gutter version of
15279         update_frame_gutter_geometry.
15280         (update_frame_gutter_geometry): use it.
15281         (redraw_exposed_gutter): add extra debugging output.
15282
15283 2000-03-28  Mike Alexander  <mta@arbortext.com>
15284
15285         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
15286         (pdump_file_unmap): Implement it on Windows
15287         (pdump_file_get): Save alocated handles for pdump_file_unmap
15288
15289 2000-03-28  Andy Piper  <andy@xemacs.org>
15290
15291         * gui.c (get_gui_callback): treat Quit specially.
15292
15293 2000-03-27  Andy Piper  <andy@xemacs.org>
15294
15295         * glyphs.c (image_instantiate): be careful to check in the same
15296         way we assigned.
15297
15298 2000-03-27  Didier Verna  <didier@xemacs.org>
15299
15300         * config.h.in: define the proper SMART_INCLUDE macro.
15301         handle renaming of `foo_h_path' to `foo_h_file'.
15302
15303         * database.c: ditto.
15304
15305         * emacs.c: ditto.
15306
15307         * linuxplay.c: ditto.
15308
15309         * terminfo.c: ditto.
15310
15311         * tooltalk.h: ditto.
15312
15313 2000-03-27  Andy Piper  <andy@xemacs.org>
15314
15315         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15316         gets updated whenever the face might have changed.
15317
15318 2000-03-26  Mike Alexander  <mta@arbortext.com>
15319
15320         * dumper.c (pdump_resource_free): Fix the comment.
15321
15322 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15323
15324         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15325
15326 2000-03-22  Mike Alexander  <mta@arbortext.com>
15327
15328         * dumper.c: Include Windows headers on Windows
15329         (pdump_resource_free): Add a body to the function
15330         (pdump_load): exe_name -> exe_path and add some comments.
15331
15332 2000-03-25  Mike Alexander  <mta@arbortext.com>
15333
15334         * gui.c (copy_gui_item_tree): Return a value in all cases
15335
15336 2000-03-21  Didier Verna  <didier@xemacs.org>
15337
15338         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15339         lwlib/config.h.in.
15340         (SMART_INCLUDE): new macro.
15341         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15342         the proper location.
15343
15344         * postgresql.c: use it.
15345
15346         * inline.c: ditto.
15347
15348 2000-03-24  Andy Piper  <andy@xemacs.org>
15349
15350         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15351         do this.
15352
15353 2000-03-24  Andy Piper  <andy@xemacs.org>
15354
15355         * redisplay-output.c (compare_runes): use image_instance_changed
15356         to detect changes. Do not depend on glyphs_changed, only depend on
15357         dirtiness.
15358          (redisplay_output_layout): add debug messages.
15359         (compare_runes): ditto.
15360
15361         * glyphs.h: declare new functions.
15362         (struct Lisp_Image_Instance): remove percent and associated
15363         accessors.
15364
15365         * gui.h: declare new copying functions.
15366
15367         * gui.c (copy_gui_item_tree): new function.
15368         (copy_gui_item): new function.
15369         (gui_item_id_hash): revert to standard hash.
15370         (gui_item_hash): ditto.
15371         (gui_item_hash_internal): deleted.
15372         (mark_gui_item): mark value.
15373         (gui_item_add_keyval_pair): add value.
15374         (gui_item_init): ditto.
15375         (gui_add_item_keywords_to_plist): ditto.
15376         (gui_item_equal): ditto.
15377         (syms_of_gui): add Q_value.
15378
15379         * glyphs-x.c (x_progress_gauge_update): use pending items and
15380         value for setting the state.
15381         (x_update_widget): don't set items from pending here.
15382
15383         * glyphs-widget.c (update_widget): update items here.
15384         (progress_gauge_set_property): use items for storing value. Put
15385         new value in pending items.
15386
15387         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15388         items for new value. Convert percent -> value.
15389         (mswindows_tab_control_update): don't update items here.
15390
15391         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15392         (update_subwindow): ditto.
15393         (image_instance_changed): new function. Compare hash values and
15394         past and present widget items.
15395         (image_instantiate): We more careful about where we instantiate
15396         things.
15397         (image_instantiate): add error checking.
15398
15399         * gutter.c (syms_of_gutter): use -hook.
15400
15401 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15402
15403         * console-tty.c (Fset_console_tty_input_coding_system): Use
15404         Qkeyboard.
15405         (Fset_console_tty_output_coding_system): Use Qterminal.
15406         (tty_init_console): Use Qkeyboard and Qterminal.
15407
15408 2000-03-21  Ben Wing  <ben@xemacs.org>
15409
15410         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15411         From Mike Alexander <mta@arbortext.com>.
15412
15413 2000-03-21  Ben Wing  <ben@xemacs.org>
15414
15415         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15416         process brokenness.  Proper implementation to come.
15417         * callproc.c:
15418         Rename call-process-internal to old-call-process-internal.
15419         New impl. in process.el.
15420
15421 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15422
15423         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15424
15425 2000-03-20  Andy Piper  <andy@xemacs.org>
15426
15427         * glyphs.c (full_list_hash): make hashes of the same elements in
15428         different orders return different values.
15429
15430 2000-03-20  Martin Buchholz <martin@xemacs.org>
15431
15432         * XEmacs 21.2.32 is released.
15433
15434 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15435
15436         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15437         (DFC_MALLOC_USE_CONVERTED_DATA):
15438         Add aliasing-safe casts to allow use with char* or unsigned char*
15439         lvalues.
15440
15441         * eldap.c (Fldap_open):
15442         (Fldap_search_basic):
15443         (Fldap_add):
15444         (Fldap_modify):
15445         Make C++-compilable.
15446         Make sure GCPRO'ed variables are initialized.
15447         Use temp variables to avoid repeated calls to Flength.
15448
15449 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15450
15451         * sysfile.h:
15452         Make sure PATH_MAX is always defined.
15453         Include limits.h for PATH_MAX.
15454         Deprecate use of MAXPATHLEN.
15455
15456 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15457
15458         * emacs.c: Add reinit_vars_of_fileio.
15459         * symsinit.h: Add reinit_vars_of_fileio.
15460         * fileio.c (reinit_vars_of_fileio): New.
15461         * fileio.c (Fmake_temp_name):
15462         Initialize temp_name random number from microseconds to make
15463         collisions even less likely.  Initialize always at process startup
15464         time.  (make-temp-name) used to return the same file name twice in
15465         a row when PDUMP.
15466         Random stylistic fiddling.
15467         Comment fixes.
15468
15469 2000-03-20  Andy Piper  <andy@xemacs.org>
15470
15471         * glyphs.c (image_instantiate): allow text glyphs to be
15472         instantiated in the minibuffer window.
15473
15474 2000-03-19  Andy Piper  <andy@xemacs.org>
15475
15476         * glyphs.c (image_instance_hash): be careful about which items we
15477         hash on.
15478
15479         * glyphs-widget.c (tab_control_set_property): record into pending
15480         items rather than the actual items.
15481
15482         * glyphs-x.c (x_update_widget): use pending items to update with.
15483
15484         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15485         to update with.
15486
15487         * glyphs.c (mark_image_instance): mark pending items.
15488
15489         * window.c (Fset_window_configuration): record the buffer.
15490         (Fselect_window): totally revert previous change which breaks many
15491         things.
15492
15493 2000-03-18  Andy Piper  <andy@xemacs.org>
15494
15495         * glyphs-msw.c (mswindows_tab_control_update): force selected
15496         item.
15497
15498         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15499         window domain cache, otherwise we get inconsistencies at
15500         startup. There is something fishy at startup which can lead to the
15501         minibuffer being the selected window when the gutter content is
15502         instantiated.
15503
15504         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15505         gcpros.
15506         (parse_gui_item_tree_children): ditto.
15507         (parse_gui_item_tree_item): ditto.
15508
15509         * glyphs.c (Fupdate_widget_instances): return something.
15510
15511 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15512
15513         * window.c (Fselect_window): Undo 2000-03-17 change.
15514
15515 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15516
15517         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15518         against v7.0 libraries.  Insta-coredump city until the postgres
15519         folks fix it.
15520
15521 2000-03-17  Andy Piper  <andy@xemacs.org>
15522
15523         * faces.c (complex_vars_of_faces): don't give the widget face an
15524         inherited background pixmap.
15525
15526         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15527         selected item.
15528
15529         * event-stream.c (Fdispatch_non_command_events): return something.
15530
15531         * gutter.c (output_gutter): use widget face.
15532         (clear_gutter): ditto.
15533
15534         * NEWS: adjust again.
15535
15536         * window.c (Fselect_window): make sure this runs to completion to
15537         avoid oddities with Fset_window_configuration.
15538         (Fcurrent_window_configuration): in general do not save the
15539         minibuffer as the selected window.
15540
15541         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15542
15543 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15544
15545         * emacs.c (Frunning_temacs_p): Revert previous patch.
15546         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15547
15548 2000-03-16  Andy Piper  <andy@xemacs.org>
15549
15550         * glyphs-x.c (x_tab_control_update): if no widget values then
15551         return.
15552
15553         * NEWS: update for new features.
15554
15555         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15556         synthetic event to the native system.
15557         (reinit_vars_of_event_Xt): set force_event_pending to
15558         emacs_Xt_force_event_pending.
15559
15560         * events.h (struct event_stream): add force_event_pending.
15561
15562         * specifier.c (recompute_one_cached_specifier_in_window): add
15563         comment.
15564
15565         * redisplay.c (redisplay_frame): don't call
15566         update_frame_subwindows. Reset subwindow cachels when
15567         subwindows_changed, removing this was an optimization too far.
15568
15569         * redisplay-output.c (compare_runes): reorganize so that we catch
15570         glyph changes when we want them. Set optimize_output when this
15571         would help layouts.
15572         (redisplay_output_layout): remove frame_really_changed, use
15573         optimize_output instead.
15574
15575         * redisplay-msw.c (mswindows_output_display_block): reset
15576         optimize_output after outputting a glyph.
15577         * redisplay-x.c (x_output_display_block): ditto.
15578         * redisplay-tty.c (tty_output_display_block): ditto.
15579
15580         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15581         functions.
15582         (gutter_specs_changed): do specific gutter positions.
15583         (top_gutter_specs_changed): new function. Only update the
15584         specified gutter specs.
15585         (bottom_gutter_specs_changed): ditto.
15586         (left_gutter_specs_changed): ditto.
15587         (right_gutter_specs_changed): ditto.
15588
15589         * gui.c (gui_item_hash_internal): new function, does a real hash.
15590         (gui_item_id_hash): use it.
15591         (gui_item_hash): hash the eval'ed gui_item.
15592
15593         * gui-x.c (popup_selection_callback): send an eval event to call
15594         Fupdate_widget_instances.
15595
15596         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15597         to call Fupdate_widget_instances.
15598
15599         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15600         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15601
15602         * glyphs.c: (update_frame_subwindows): deleted.
15603         (Fupdate_widget_instances): new function for updating the dirty
15604         state of widgets that might have changed.
15605         (syms_of_glyphs): add Qupdate_widget_instances.
15606         (full_list_hash): hash a list completely.
15607         (image_instance_hash): use it for items and properties.
15608
15609         * frame-msw.c (mswindows_size_frame_internal): remove unused
15610         variable.
15611
15612         * faces.h (struct face_cachel): fix comment.
15613
15614         * event-stream.c (Fdispatch_non_command_events): new
15615         function. Process non-command events, forcing an event cycle
15616         beforehand.
15617         (syms_of_event_stream): declare.
15618         (event_stream_force_event_pending): new function. Force an event
15619         on the native event queue so that an event cycle will occur next
15620         time we check.
15621
15622         * event-msw.c:
15623         (struct ntpipe_shove_stream):
15624         (mswindows_enqueue_dispatch_event):
15625         (mswindows_dequeue_dispatch_event):
15626         (mswindows_cancel_dispatch_event):
15627         (mswindows_pump_outstanding_events):
15628         (mswindows_drain_windows_queue):
15629         (mswindows_handle_paint):
15630         (mswindows_wnd_proc):
15631         (mswindows_key_to_emacs_keysym):
15632         (get_process_input_waitable):
15633         (emacs_mswindows_delete_stream_pair): re-indent file.
15634         (mswindows_need_event): do not process further fds if the windows
15635         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15636         fixes the 100% cpu problem.
15637         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15638
15639 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15640
15641         * alloc.h: New.
15642         * dumper.h: New.
15643         * dumper.c: New.
15644
15645         * emacs.c: Moved dump file searching to dumper.c.
15646         (Frunning_temacs_p): Fixed.
15647
15648         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15649         last_lrecord_type_index_assigned.
15650
15651 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15652
15653         * symsinit.h: Added reinit parameter to init_console_stream
15654         declaration.
15655
15656         * lisp.h: Added file parameter to pdump_load declaration.
15657
15658         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15659         support.  Added dump file searching.
15660
15661         * config.h.in: Added EMACS_PROGNAME.
15662
15663         * console-stream.c (init_console_stream): Fix reinitialisation
15664         when running from temacs.
15665
15666         * alloc.c (pdump): Add id support.
15667         (pdump_load): Add file parameter and signature/id support.
15668
15669         * Makefile.in.in: Add full pdump support.
15670
15671 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15672
15673         * postgresql.c: Update documentation to reflect latest code
15674         status.
15675         (print_result): Show tuple counts in printed representation when
15676         appropriate.
15677         (Fpq_put_nbytes): MULE-ize.
15678         (Fpq_get_line_async): Ditto.
15679
15680 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15681
15682         * postgresql.c (Fpq_lo_import): Fix return value.
15683         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15684
15685 2000-03-13  Ben Wing  <ben@xemacs.org>
15686
15687         * alloc.c (pdump_load):
15688         Fix compile warning under mswin.
15689
15690 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15691
15692         * postgresql.c: Mule-ization, bug fixes.
15693         Use PG_CODING to encapsulate coding system name changes.
15694         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15695         (pg-coding-system): Create.
15696
15697         (Fpq_conn_defaults): Mule-ize.
15698         (Fpq_connectdb): Mule-ize & bug fix.
15699         (Fpq_connect_start): Mule-ize.
15700         (Fpq_set_client_encoding): Mule-ize.
15701         (Fpq_finish): Document `DEAD' connection status.
15702         (Fpq_clear): Ditto.
15703         (Fpq_pgconn): Mule-ize.
15704         (Fpq_exec): Mule-ize & bug fix.
15705         (Fpq_send_query): Ditto.
15706         (Fpq_get_result): Ditto.
15707         (Fpq_res_status): Mule-ize.
15708         (Fpq_result_error_message): Mule-ize.
15709         (Fpq_ntuples): fix comments.
15710         (Fpq_fname): Mule-ize.
15711         (Fpq_fnumber): Mule-ize.
15712         (Fpq_ftype): fix comments.
15713         (Fpq_get_value): Mule-ize.
15714         (Fpq_cmd_status): Ditto.
15715         (Fpq_cmd_tuples): Ditto.
15716         (Fpq_oid_value): Ditto.
15717         (Fpq_notifies): Ditto.
15718         (Fpq_lo_import): Ditto.
15719         (Fpq_lo_export): Ditto.
15720         (Fpq_get_line): Ditto.
15721         (Fpq_put_line): Mule-ize and bug fix.
15722         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15723
15724 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15725
15726         * postgresql.c (vars_of_postgresql): Mule-ize.
15727         (Fpq_conn_defaults): Ditto.
15728
15729 2000-03-12  Ben Wing  <ben@xemacs.org>
15730
15731         * alloc.c (Fmake_byte_code):
15732         * alloc.c (debug_string_purity_print):
15733         * alloc.c (pdump_backtrace):
15734         * alloc.c (pdump_get_indirect_count):
15735         * alloc.c (pdump_register_sub):
15736         * alloc.c (pdump_register_object):
15737         * alloc.c (pdump_register_struct):
15738         * alloc.c (pdump_dump_data):
15739         * alloc.c (pdump_reloc_one):
15740         Minor cleanups.
15741
15742         * console-msw.c:
15743         * console-msw.c (GetConsoleHwnd):
15744         * console-msw.c (msw_hide_console):
15745         * console-msw.c (msw_show_console):
15746         * console-msw.c (msw_ensure_console_buffered):
15747         * console-msw.c (msw_output_console_string):
15748         * console-msw.c (console_type_create_mswindows):
15749
15750         a) Added functions to manipulate the console window for use with
15751         shell support.
15752
15753         b) Added support for writing text to the console, which is now
15754         used under Windows when xemacs is not being run non-interactively,
15755         to write text that would otherwise be destined for stdout because
15756         under these circumstances, text written to stdout tends to
15757         disappear and not be seen.
15758
15759         * console-msw.h:
15760         * event-Xt.c:
15761         * event-Xt.c (x_event_to_emacs_event):
15762         * event-Xt.c (describe_event_window):
15763         * events-mod.h (XEMACS_MOD_CONTROL):
15764         * events.c:
15765         * events.c (Fmake_event):
15766         * events.c (character_to_event):
15767         * events.c (event_to_character):
15768         * events.c (format_event_object):
15769         * events.c (Fevent_modifiers):
15770         * events.h:
15771         * events.h (struct key_data):
15772         * events.h (struct button_data):
15773         * events.h (struct misc_user_data):
15774         * frame-x.c (Fcde_start_drag_internal):
15775         * frame-x.c (Foffix_start_drag_internal):
15776         * gpmevent.c (Freceive_gpm_event):
15777         * keymap.c:
15778         * keymap.c (bucky_sym_to_bucky_bit):
15779         * keymap.c (control_meta_superify):
15780         * keymap.c (make_key_description):
15781         * keymap.c (keymap_lookup_directly):
15782         * keymap.c (create_bucky_submap):
15783         * keymap.c (keymap_store):
15784         * keymap.c (define_key_check_and_coerce_keysym):
15785         * keymap.c (define_key_parser):
15786         * keymap.c (define_key_alternate_name):
15787         * keymap.c (Fdefine_key):
15788         * keymap.c (raw_lookup_key_mapper):
15789         * keymap.c (struct map_keymap_unsorted_closure):
15790         * keymap.c (map_keymap_unsorted_mapper):
15791         * keymap.c (map_keymap_sort_predicate):
15792         * keymap.c (map_keymap_sorted):
15793         * keymap.c (accessible_keymaps_mapper_1):
15794         * keymap.c (where_is_recursive_mapper):
15795         * keymap.c (describe_map_mapper):
15796         * keymap.c (describe_map_sort_predicate):
15797         * keymap.c (describe_map):
15798         * keymap.c (complex_vars_of_keymap):
15799         And a number of other files, the key modifier preprocessor
15800         constants that xemacs uses have names that conflict with constants
15801         defined under MS Windows for other purposes, so they were renamed
15802         to begin with the prefix XEMACS_. The variables that hold such
15803         modifiers were changed to consistently be of type int to fix
15804         various compile warnings.
15805
15806         * console.c (complex_vars_of_console):
15807         * device.c:
15808         * device-msw.c:
15809         * device-msw.c (mswindows_finish_init_device):
15810         * device-msw.c (msw_get_workspace_coords):
15811         * device-msw.c (mswindows_device_system_metrics):
15812         and various other files, added support for a new
15813         device property called offset-workspace which returns the position
15814         of the upper left corner of the workspace area and goes along with
15815         the existing size-workspace property.
15816
15817         * dialog-msw.c:
15818         * dialog-msw.c (push_bufbyte_string_as_unicode):
15819         * dialog-msw.c (mswindows_popup_dialog_box):
15820         Added support for XEmacs-style accelerator specifications in
15821         button text.  Note: I didn't add support for this under X Windows,
15822         and somebody needs to do this.
15823
15824         * dialog.c:
15825         * dialog.c (Fpopup_dialog_box):
15826         Documented the support for accelerators that was just mentioned.
15827
15828         editfns.c (get_home_directory): Changed behavior under Windows
15829         when HOME not defined; former behavior was irretrievably broken.
15830
15831         * emacs.c:
15832         * emacs.c (main_1):
15833         * emacs.c (main):
15834         * minibuf.c (clear_echo_area_internal):
15835         * minibuf.c (echo_area_append):
15836         * print.c:
15837         * print.c (std_handle_out_external):
15838         * print.c (std_handle_out_va):
15839         * print.c (fatal):
15840         * print.c (write_string_to_stdio_stream):
15841         * print.c (output_string):
15842         * print.c (debug_print):
15843         * print.c (debug_backtrace):
15844         * print.c (debug_short_backtrace):
15845         Cleaned up the code that prints text to stdout so that this can be
15846         changed to output into a console window instead under MS Windows,
15847         as described above.
15848
15849         * eval.c:
15850         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15851         * eval.c (internal_catch):
15852         * eval.c (unwind_to_catch):
15853         * eval.c (throw_or_bomb_out):
15854         * eval.c (condition_case_1):
15855         * eval.c (signal_1):
15856         * eval.c (check_error_state_sanity):
15857         * eval.c (call_with_suspended_errors_1):
15858         * eval.c (call_with_suspended_errors):
15859         * eval.c (reinit_vars_of_eval):
15860         Added code to catch throw loops and check for a pesky bug that may
15861         be gone now.
15862
15863         * event-msw.c:
15864         * event-msw.c (key_needs_default_processing_p):
15865         * event-msw.c (mswindows_wnd_proc):
15866         * event-msw.c (mswindows_modifier_state):
15867         * event-msw.c (emacs_mswindows_quit_p):
15868         * event-msw.c (vars_of_event_mswindows):
15869         a) Added support for using the alt key to select menu items as is
15870         standard under MS Windows.  This is controlled using the variable
15871         menu-accelerator-enabled, just like under X Windows.  There is an
15872         option on the options menu to turn this support on.  I really
15873         think that it should be on by default under Windows, but I'm not
15874         going to make this change yet.
15875
15876         b)  Added support for dynamic display size changes under Windows.
15877
15878         * event-stream.c:
15879         * event-stream.c (maybe_echo_keys):
15880         * event-stream.c (Fnext_event):
15881         * event-stream.c (command_builder_find_leaf):
15882         * event-stream.c (lookup_command_event):
15883         * event-stream.c (execute_command_event):
15884         * event-stream.c (pre_command_hook):
15885         * event-stream.c (post_command_hook):
15886         * event-stream.c (syms_of_event_stream):
15887         * event-stream.c (vars_of_event_stream):
15888         * event-stream.c (complex_vars_of_event_stream):
15889         * events.h (struct command_builder):
15890
15891         a) Tried to clean up a little bit the horribly written x-specific
15892         accelerator code that crept into this file.  I moved this code
15893         into menubar-x.c where it belongs. I also needed to move the
15894         command builder structure into the file events.h because it is
15895         accessed directly by this accelerator code.  What I didn't do, but
15896         which should be done at some point, is to properly abstract this
15897         code using device methods instead of the kludgy way that it
15898         currently hooks into the event code.
15899
15900         b) Added the lisp variables this-command-properties and
15901         last-command- properties, which should be used to synchronize two
15902         adjacent commands in preference to playing games with the variable
15903         this-command, which is typically what happens.
15904
15905         c) Added some slightly nasty code to hook into the lisp support
15906         for shifted- motion-key selection.  This is actually necessary for
15907         somewhat complicated reasons, which are described in
15908         simple.el. (NB: I think the proper thing would be to have the code
15909         that calls the pre and post command hooks also call out to generic
15910         lisp functions in simple.el, where all built-in stuff could be
15911         added.  I will think about this more.)
15912
15913         * event-unixoid.c (poll_fds_for_input):
15914         * lread.c (readchar):
15915         * redisplay-tty.c (tty_clear_frame):
15916         * redisplay-x.c (x_get_gc):
15917         * signal.c (interrupt_signal):
15918         And a whole bunch of other files: fixed up places that printed
15919         directly to stderr to instead call the function stderr_out so that
15920         the changes I made under Windows work correctly.
15921
15922         * filemode.c (mode_string):
15923         Warning fixes.
15924
15925         * frame-msw.c:
15926         * frame-msw.c (mswindows_size_frame_internal):
15927         Fixed the computation of frame size and position to keep the frame
15928         within the workspace area, rather than within the physical
15929         dimensions of the screen, so that the frame doesn't overlap window
15930         manager decorations, such as the start menu and toolbar, typically
15931         at the bottom of the screen.
15932
15933         * frame.c (vars_of_frame):
15934         Changed the default frame title format under MS Windows to consist
15935         of buffername-XEmacs, which is standard under MS Windows.  I think
15936         it might be a good idea to change this everywhere because I think
15937         it is superior to the current frame title format, but this is the
15938         kind of change that is likely to cause some people to get annoyed,
15939         so I'm not making it.
15940
15941         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15942
15943         * gui-msw.c (mswindows_handle_gui_wm_command):
15944         Fixed compile warnings.
15945
15946         * gui-x.c:
15947         * gui-x.c (strdup_and_add_accel):
15948         * gui-x.c (button_item_to_widget_value):
15949         * gui-x.h:
15950         Added code to automatically put an accelerator onto the beginning
15951         of menu items that don't have one as is now the standard, and is
15952         described more later.  Also fixed things so that the menu item
15953         name can be an evaluated expression, again a new standard.
15954
15955         * gui.c:
15956         * gui.c (gui_item_add_keyval_pair):
15957         * gui.c (make_gui_item_from_keywords_internal):
15958         * gui.c (gui_add_item_keywords_to_plist):
15959         * gui.c (gui_item_accelerator):
15960         * gui.c (gui_name_accelerator):
15961         * gui.c (gui_item_included_p):
15962         * gui.c (gui_item_display_flush_left):
15963         * gui.c (gui_item_display_flush_right):
15964         * gui.c (parse_gui_item_tree_item):
15965         * gui.c (parse_gui_item_tree_children):
15966         * gui.c (parse_gui_item_tree_list):
15967         Mule-ized.  Cleanup.  GCPRO addition.
15968
15969         * line-number.c (buffer_line_number):
15970         * lisp.h:
15971         * lisp.h (EMACS_INT_MAX):
15972         Added the manifest constant EMACS_INT_MIN corresponding to the
15973         existing constant EMACS_INT_MAX.  This is partially to fix compile
15974         warnings under Windows, and partly for cleanliness.
15975
15976         * menubar-msw.c:
15977         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15978         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15979         * menubar-msw.c (displayable_menu_item):
15980         * menubar-msw.c (populate_menu_add_item):
15981         * menubar-msw.c (populate_or_checksum_helper):
15982         * menubar-msw.c (populate_menu):
15983         * menubar-msw.c (update_frame_menubar_maybe):
15984         * menubar-msw.c (prune_menubar):
15985         * menubar-msw.c (msw_char_is_accelerator):
15986         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15987         * menubar-msw.c (mswindows_handle_wm_command):
15988         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15989         * menubar-msw.c (mswindows_handle_wm_initmenu):
15990         * menubar-msw.c (mswindows_update_frame_menubars):
15991         * menubar-msw.c (mswindows_free_frame_menubars):
15992         * menubar-msw.c (mswindows_popup_menu):
15993         Fixed a bug in handling accelerators where an extra character
15994         would be displayed in the menu item.  Also generalized the
15995         function displayable_menu_item because it is now used by the
15996         dialog box code as well.  And finally, added code in the functions
15997         that create the menubar to extract a list of accelerators for the
15998         top level menubar, which is used in the event code to determine
15999         whether a particular alt-key combination should be used to invoke
16000         a menu item, or should be passed through to access the standard
16001         XEmacs keymap binding for this key combination.
16002
16003         Much needed GCPROing.
16004
16005         * menubar-x.c:
16006         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
16007         * menubar-x.c (menu_item_descriptor_to_widget_value):
16008         * menubar-x.c (restore_in_menu_callback):
16009         * menubar-x.c (x_popup_menu):
16010         * menubar-x.c (menu_move_up):
16011         * menubar-x.c (menu_move_down):
16012         * menubar-x.c (menu_move_left):
16013         * menubar-x.c (menu_move_right):
16014         * menubar-x.c (menu_select_item):
16015         * menubar-x.c (command_builder_operate_menu_accelerator):
16016         * menubar-x.c (menu_accelerator_junk_on_error):
16017         * menubar-x.c (command_builder_find_menu_accelerator):
16018         * menubar-x.c (Faccelerate_menu):
16019         * menubar.h:
16020         Moved a whole bunch of code here that was previously in
16021         event-stream.c as described above.  There is also code connected
16022         to the new standard of adding an accelerator to the beginning of
16023         menu items that don't have one as described above and below.
16024
16025         * menubar.c:
16026         * menubar.c (menu_parse_submenu_keywords):
16027         * menubar.c (Fmenu_find_real_submenu):
16028         * menubar.c (Fnormalize_menu_item_name):
16029         * menubar.c (syms_of_menubar):
16030         * menubar.c (vars_of_menubar):
16031         * menubar.c (complex_vars_of_menubar):
16032
16033         a) Cleaned up a bunch of documentation and improved it.
16034
16035         b) XEmacs now automatically adds an accelerator onto the beginning
16036         of any menu items that don't have one.  I did this because there
16037         will inevitably be some menu items on the main menubar that don't
16038         have accelerators on them because the package that adds that
16039         particular menu item hasn't yet been fixed up to have accelerators
16040         in them and it looked rather strange to have some items with and
16041         some items without accelerators, especially since even in items
16042         without accelerators, you can, at least under windows, still
16043         access the item through an accelerator corresponding to the first
16044         character in the item's name.  If people don't like this behavior,
16045         I can add a variable to turn it off optionally, but I'm not sure
16046         this is a good idea because we really do need to have accelerators
16047         on all of the menu items, and if a package doesn't like the
16048         accelerators being put on the first character, then it should put
16049         the accelerators where they belong.
16050
16051         c) I made a behavior change, which is that the descriptor that
16052         specifies the text of the menu item, which formerly was just a
16053         string, can now also be an evaluated expression.  This makes this
16054         descriptor parallel with all of the others, which could also be
16055         evaluated expressions.  This also obviates the need for the
16056         keyword :label, which was previously listed in the documentation
16057         as unimplemented, and which was for the same purpose.
16058
16059         d) GCPROing.
16060
16061         * ntproc.c:
16062         * ntproc.c (new_child):
16063         * ntproc.c (sys_spawnve):
16064         * ntproc.c (find_child_console):
16065         * ntproc.c (sys_kill):
16066         Fixed compile warnings.  By the way, this file should really go
16067         away entirely, and this will happen as soon as Kirill makes his
16068         final round of process cleanups, which affect the function
16069         call-process.
16070
16071         * process-nt.c:
16072         * process-nt.c (struct nt_process_data):
16073         * process-nt.c (find_process_from_pid):
16074         * process-nt.c (send_signal_the_nt_way):
16075         * process-nt.c (enable_child_signals):
16076         * process-nt.c (find_child_console):
16077         * process-nt.c (send_signal_the_95_way):
16078         * process-nt.c (nt_finalize_process_data):
16079         * process-nt.c (ensure_console_window_exists):
16080         * process-nt.c (nt_create_process):
16081         * process-nt.c (nt_kill_child_process):
16082         * process-nt.c (nt_kill_process_by_pid):
16083         * process-nt.c (nt_open_network_stream):
16084         * process-nt.c (vars_of_process_nt):
16085         Copied over code from Emacs 20.5 to correctly send signals to sub-
16086         processes under Windows 95.  Also added code to automatically
16087         create and hide console window when a sub-process is created under
16088         Windows 95, which obviates the need for the separate runemacs.exe
16089         executable, and finally implemented some variables that were
16090         implemented in Emacs 20.5, but previously not in XEmacs.  These
16091         include mswindows- start-process-share-console and
16092         mswindows-start-process-inherit-error-mode. (Both of these only
16093         apply to Windows 95.)
16094
16095         * regex.c (regex_compile): Fixed a compile warning.
16096
16097         * select-msw.c:
16098         * select-msw.c (mswindows_own_selection):
16099         * select-msw.c (mswindows_get_foreign_selection):
16100         * select-msw.c (mswindows_disown_selection):
16101         * select-msw.c (console_type_create_select_mswindows):
16102         * select-msw.c (syms_of_select_mswindows):
16103         Cleaned up the file and implemented the device method
16104         selection_exists_p, which had accidentally been left out.  Also
16105         removed four lisp functions that were remnants from before the
16106         time when the selection code was properly device abstracted.
16107         These functions are no longer needed because there are generic
16108         equivalents, and because they were added recently and don't exist
16109         in FSF Emacs, I don't think there's any problem with just deleting
16110         them.
16111
16112         * sysdep.c:
16113         * sysdep.c (sys_subshell):
16114         Fixed a compile warning, although in this case there's probably
16115         something wrong with this code, and it ought to be looked into
16116         more thoroughly by somebody who understands it.
16117
16118         * window.c:
16119         * window.c (Fwindow_text_area_height):
16120         * window.c (Fwindow_width):
16121         * window.c (Fwindow_full_width):
16122         * window.c (Fwindow_pixel_width):
16123         * window.c (debug_print_window):
16124         * window.c (syms_of_window):
16125         Added functions window-text-area-height and window-full-width,
16126         which are functions for returning various width and height
16127         characteristics of a window. (One of these functions is necessary
16128         for making the file dialog box work correctly, and the other one
16129         was added for completeness.)  Also added a table to the
16130         documentation for window-height which describes the entire scheme
16131         for accessing width and height characteristics of a window.
16132
16133 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16134
16135         * nt.c (fstat): Added a comment for another problem with
16136         non-encapsulated [f]stat(), reported by Adrian Aichner
16137         <aichner@ecf.teradyne.com>.
16138
16139 2000-03-11  Andy Piper  <andy@xemacs.org>
16140
16141         * window.c (make_dummy_parent): initialize subwindow instance
16142         cache.
16143         (Fset_window_configuration): zero extent_modiff.
16144
16145 2000-03-10  Andy Piper  <andy@xemacs.org>
16146
16147         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
16148         more changes can be triggered.
16149         (Fredisplay_frame): ditto.
16150         (Fredraw_device): ditto.
16151         (Fredisplay_device): ditto.
16152         (redisplay_frame): make non-static.
16153         (redisplay_frame): call update_frame_gutter_geometry outside of
16154         display proper.
16155
16156         * gutter.h: declare update_frame_gutter_geometry.
16157
16158         * redisplay.h: declare redisplay_frame.
16159
16160         * gutter.c (update_frame_gutter_geometry): move geometry changes
16161         in update_frame_gutters here. Geometry changes can only occur
16162         outside of redisplay.
16163         (update_frame_gutters): remove geometry change code.
16164         (Fredisplay_gutter_area): make sure that we are in display when we
16165         update and that we have flushed any size changes.
16166
16167 2000-03-11  Andy Piper  <andy@xemacs.org>
16168
16169         * alloc.c (pdump_dump_data): remove i & count shadows.
16170
16171 2000-02-27  Mike Alexander  <mta@arbortext.com>
16172
16173         * sysdep.h: Declare pdump_read_file
16174
16175         * sysdep.c (pdump_read_file): New function
16176
16177         * alloc.c (pdump_load): Call pdump_read_file to get the portable
16178         dump data
16179
16180 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
16181
16182         * lrecord.h: add `lrecord_type_pgsetenv'.
16183
16184 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
16185
16186         * symsinit.h: declare (vars|syms)_of* functions.
16187         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
16188
16189 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
16190
16191         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
16192
16193         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
16194         GCCs.
16195
16196         * emacs.c (main_1): Call postgres initialization code.
16197
16198         * postgresql.h: New file.  PostgreSQL RDBMS support.
16199         * postgresql.c: New file.
16200
16201 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
16202
16203         * redisplay-output.c (redisplay_output_display_block): Disable
16204         redundant code.
16205
16206 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16207
16208         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
16209         (Fcanna_henkan_next): Ditto.
16210         (Fcanna_bunsetu_henkou): Ditto.
16211         (Fcanna_henkan_kakutei): Ditto.
16212         (Fcanna_henkan_end): Ditto.
16213         (Fcanna_henkan_quit): Ditto.
16214         (Fcanna_henkan_next): Set retun value correctly.
16215         (c2mu): Use unsigned char instead of signed char.
16216
16217 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16218
16219         * emacs.c (main_1): Always call syms_of_gui.
16220         * inline.c: include gui.h
16221
16222 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16223
16224         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
16225         converted to Lisp_Object.
16226         (Qtop_bottom): New variable.
16227         (syms_of_redisplay): Initialize it.
16228         * redisplay.h (Vvisible_bell): Ditto.
16229         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
16230         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
16231         only flash top and bottom.
16232
16233 2000-03-08  Andy Piper  <andy@xemacs.org>
16234
16235         * buffer.c (Frename_buffer): record new buffer name the right way.
16236
16237 2000-03-08  Andy Piper  <andy@xemacs.org>
16238
16239         * glyphs.c (update_subwindow): increase hash depth so that widget
16240         items get picked up properly.
16241
16242         * redisplay-output.c (compare_runes): increase hash depth so that
16243         widget items get picked up properly.
16244
16245 2000-03-08  Andy Piper  <andy@xemacs.org>
16246
16247         * gutter.c (output_gutter): add some debug.
16248
16249         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
16250         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
16251         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
16252
16253         * redisplay-output.c (compare_runes): use display_hash to
16254         determine if glyphs really are not the same.
16255
16256         * glyphs.c (update_subwindow): check display_hash to see if
16257         anything really needs to be updated. If not then do
16258         nothing. Record the display_hash after updating.
16259         (image_instance_equal): compare the image_instance face also.
16260
16261 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
16262
16263         * redisplay.h: Fix comment style.
16264
16265 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16266
16267         * consle-msw.h (struct mswindows_frame):
16268         Added new member paint_pending to indicate whether a WM_PAINT
16269         magic event has been queued for this frame.
16270
16271         * event-msw.c (mswindows_drain_windows_queue):
16272         Don't queue a WM_PAINT magic event if one is already queued.
16273         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
16274
16275         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
16276
16277 2000-03-07  Didier Verna  <didier@xemacs.org>
16278
16279         * dired.c: #include `regex.h' after `sysfile.h'.
16280
16281 2000-03-06  Martin Buchholz  <martin@xemacs.org>
16282
16283         * sound.c (init_nas_sound): Fix compiler warning.
16284
16285         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
16286         (FREE_STRUCT_P):
16287         (MARK_STRUCT_AS_FREE):
16288         (MARK_STRUCT_AS_NOT_FREE):
16289         Make `gcc -fstrict-aliasing' work properly.
16290
16291 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16292
16293         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16294         (mswindows_delete_device): Call CoUnnitialize().
16295
16296         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16297
16298 2000-02-25    <CraigL@DyCon.com>
16299
16300         * process-nt.c: MinGW now has <shellapi.h>, but still needs
16301         <errno.h>.
16302
16303         * sysdep.c: This extern declaration for environ prevents MinGW
16304         from finding the variable in CRTDLL.DLL.
16305
16306         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16307         windows headers.
16308         (SHGFI_EXETYPE): ..
16309         (WM_MOUSEWHEEL): ..
16310         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16311         definitions.
16312         (MMRESULT): Removed, now defined in cygwin's windows headers.
16313         (TIMECAPS): ..
16314         (uid_t,gid_t,pid_t,ssize_t): ..
16315         (_timeb): Removed, MinGW defines both _timeb and timeb.
16316         (HAVE_H_ERRNO): Added.
16317         (HAVE_TZNAME): Added, configure is not detecting this.
16318
16319 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16320
16321         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16322         * syntax.c (syntax_match): Use it.
16323
16324         * cmds.c: Import auto-fill-chars from FSF Emacs.
16325         (Vauto_fill_chars): New variables.
16326         (internal_self_insert): Check Vauto_fill_chars.
16327         (vars_of_cmds):
16328         Declare auto-fill-chars as a Lisp variable and initialize it.
16329
16330 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16331
16332         * fileio.c (Fmake_symbolic_link):
16333         (Ffile_symlink_p):
16334         Run handlers even if local machine doesn't have symlinks.
16335
16336 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16337
16338         * event-msw.c (mswindows_drain_windows_queue):
16339         Don't generate paint magic events for non-XEmacs frames.
16340
16341 2000-03-05  Andy Piper  <andy@xemacs.org>
16342
16343         * redisplay.c (redisplay_frame): generate_displayable_area and
16344         friends assumes that we are not in GC, we therefore have to make
16345         sure that this doesn't happen.
16346
16347         * gutter.c (calculate_gutter_size): generate_displayable_area
16348         assumes that we are not in GC, we therefore have to make sure that
16349         this doesn't happen.
16350
16351 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16352
16353         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16354
16355 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16356
16357         * redisplay.c (regenerate_window): Make sure we set a sane value
16358         for end_pos even if we jump out of the loop.
16359         (regenerate_window): Answer Ben's question :-).
16360         (start_end_of_last_line): Add may_error argument.
16361         (start_of_last_line):
16362         (end_of_last_line): Pass may_error = 0.
16363         (end_of_last_line_may_error): New function.
16364         (pixel_to_glyph_translation): Use it, so we don't crash in
16365         event_to_glyph.
16366
16367 2000-03-04  Andy Piper  <andy@xemacs.org>
16368
16369         * window.h (struct window): add gutter_extent_modiff.
16370
16371         * window.c (allocate_window): zero out gutter_extent_modiff.
16372
16373         * redisplay.h: declare sync_display_line_structs.
16374
16375         * redisplay.c (add_glyph_rune): add a better comment.
16376
16377         * redisplay-output.c (sync_display_line_structs): made non-static.
16378         (compare_runes): remove unneccesary glyph cachel access.
16379
16380         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16381
16382         * gutter.c (output_gutter): don't output the gutter if extent
16383         changes only involve extents in buffers. use 4 sets of display
16384         lines.
16385         (gutter_extent_signal_changed_region_maybe): new function. Mark
16386         extents in gutters as changed.
16387         (update_frame_gutters): use 4 sets of display lines.
16388         (reset_gutter_display_lines): ditto.
16389         (free_frame_gutters): ditto.
16390         (redraw_exposed_gutter): force output of gutters.
16391
16392         * frame.h (struct frame): add 4 sets of gutter display lines.
16393
16394         * extents.c: (extent_changed_for_redisplay): signal changes to
16395         extents in strings in the gutter as well as extents in buffers.
16396
16397 2000-03-02  Andy Piper  <andy@xemacs.org>
16398
16399         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16400
16401         * frame.c (Fmake_frame): make sure the gutters get initialized
16402         after the frame is visible.
16403         (set_frame_selected_window): re-arrange compilation macros a
16404         little.
16405         (change_frame_size_1): mark gutters changed.
16406
16407         * device.c (Fset_device_class): mark gutters changed.
16408
16409 2000-03-01  Andy Piper  <andy@xemacs.org>
16410
16411         * window.c (window_top_frame_gutter_height): deleted.
16412         (window_bottom_frame_gutter_height): ditto.
16413         (window_left_frame_gutter_height): ditto.
16414         (window_right_frame_gutter_height): ditto.
16415         (window_top_gutter_height): don't use them.
16416         (window_bottom_gutter_height): ditto.
16417         (window_left_gutter_width): ditto.
16418         (window_right_gutter_width): ditto.
16419         (Fsplit_window): ditto.
16420         (Fwindow_pixel_edges): don't use border dimensions here.
16421
16422         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16423         (update_scrollbar_instance): ditto.
16424
16425         * redisplay.c (generate_modeline): don't take gutters into account.
16426         (generate_modeline): ditto.
16427         (redisplay_frame): small gutter display optimization.
16428
16429         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16430
16431         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16432         gutters into account.
16433
16434         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16435         for window position and type.
16436
16437         * gutter.c (get_gutter_coords): fix for frame gutters.
16438         (update_frame_gutters): update frame geometry if the gutters have
16439         changed.
16440         (init_frame_gutters): record current gutter geometries.
16441
16442         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16443         var.
16444         (mswindows_widget_instantiate): ditto.
16445
16446         * frame.h (struct frame): add current_gutter_bounds.
16447
16448         * frame.c (change_frame_size_1): position window and minibuffer
16449         appropriately taking into account the frame gutters.
16450
16451         * frame-x.c: (x_initialize_frame_size): take into account the
16452         frame gutters.
16453
16454 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16455
16456         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16457
16458 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16459
16460         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16461
16462 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16463
16464         * file-coding.c (reset_decoding_stream): Clear previous
16465         detection state when autodetect.
16466
16467 2000-02-29  Didier Verna  <didier@xemacs.org>
16468
16469         * extents.c (set_extent_glyph_1): don't require extents to be
16470         attached.
16471
16472 2000-02-27  Andy Piper  <andy@xemacs.org>
16473
16474         * gutter.c (Fset_default_gutter_position): don't default left and
16475         right gutter visibility to t.
16476         (Fset_default_gutter_position): run
16477         default-gutter-position-changed-hook.
16478         (syms_of_gutter): add default-gutter-position-changed-hook.
16479
16480 2000-02-26  Andy Piper  <andy@xemacs.org>
16481
16482         * specifier.c (Fmake_specifier): add gutter references.
16483
16484         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16485
16486         * lisp.h: declare Fvalid_plist_p.
16487
16488         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16489         as changed.
16490         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16491         well as its visibility so that it gets reconstructed.
16492         (construct_window_gutter_spec): new function. Construct a string
16493         to be displayed in the gutter from a plist of strings. Take care
16494         to only use elements that are declared as visible.
16495         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16496         WINDOW_GUTTER.
16497         (gutter_validate): allow plists of strings in the specifier.
16498         (gutter_specs_changed): construct the real_gutter from the gutter
16499         specs using construct_window_gutter_spec.
16500         (gutter_visible_validate): gutter-visible is a new specifier type.
16501         (Fgutter_visible_specifier_p): new function for the new specifier.
16502         (syms_of_gutter): declare gutter-visible and
16503         Fgutter_visible_specifier_p.
16504         (specifier_type_create_gutter): intitalize new gutter-visible
16505         specifier.
16506         (reinit_specifier_type_create_gutter): ditto.
16507         (specifier_vars_of_gutter): use new specifier type for gutter
16508         visibility.
16509         (init_frame_gutters): construct real_gutter correctly.
16510         (Fgutter_specifier_p): beef up documentation.
16511         (Fgutter_size_specifier_p): ditto.
16512
16513         * winslots.h: add real_gutter slots.
16514
16515 2000-02-25  Andy Piper  <andy@xemacs.org>
16516
16517         * device-msw.c: Be kind to older cygwin versions. From Raymond
16518         Toy <toy@rtp.ericsson.se>.
16519
16520         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16521         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16522
16523 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16524
16525         * elhash.c (MARK_OBJ): Practice macro hygiene.
16526
16527 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16528
16529         * miscplay.c: s/__inline__/inline/g;
16530         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16531         (get_device_compdc): INLINE ==> static inline
16532         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16533         find -name '*.h' | \
16534         xargs global-replace \
16535         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16536
16537 2000-02-25  Andy Piper  <andy@xemacs.org>
16538
16539         * window.c (window_top_frame_gutter_height): new function.
16540         (window_top_window_gutter_height): ditto.
16541         (window_top_gutter_height): use them.
16542         (window_bottom_frame_gutter_height): new function.
16543         (window_bottom_window_gutter_height): ditto.
16544         (window_bottom_gutter_height): use them.
16545         (window_left_window_gutter_width): new function.
16546         (window_left_frame_gutter_width): ditto.
16547         (window_left_gutter_width): use them.
16548         (window_right_window_gutter_width): new function.
16549         (window_right_frame_gutter_width): ditto.
16550         (window_right_gutter_width): use them.
16551         (window_pixel_height): new function. calulate window pixel height
16552         with frame gutter involvement.
16553         (Fsplit_window): calculate new sizes taking frame gutters into
16554         account.
16555         (window_char_height_to_pixel_height): don't include frame gutters.
16556         (window_char_height): use window_pixel_height.
16557         (window_pixheight): rename from window_pixel_height.
16558         (change_window_height): use it.
16559         (window_pixel_height_to_char_height): don't include frame gutters.
16560         (window_char_width_to_pixel_width): ditto.
16561
16562 2000-02-25  Andy Piper  <andy@xemacs.org>
16563
16564         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16565         if it is.
16566
16567 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16568
16569         * alloc.c (staticpro):
16570         (staticpro_nodump):
16571         (dumpstruct):
16572         (dumpopaque):
16573         (pdump_wire):
16574         (pdump_wire_list):
16575         (compact_string_chars):
16576         (pdump_dump_wired):
16577         Convert:  if (foo) abort();  ==>  assert (! foo);
16578
16579         * eldap.c (Fldap_search_basic):
16580         (Fldap_add):
16581         (Fldap_modify):
16582         (Fldap_delete):
16583         Fix compiler warnings, and possible crashes if (random) return
16584         value were to be used.
16585
16586 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16587
16588         * device-msw.c: Workaround ResetDC failure.
16589
16590         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16591         applying a devmode.
16592
16593         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16594         (mswindows_text_width): Do not start printer page.
16595
16596         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16597
16598         * glyphs-msw.c: Added image methods to msprinter console and
16599         msprinter-specific image instantiation.
16600
16601 2000-02-20  Mike Alexander  <mta@arbortext.com>
16602
16603         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16604         to avoid crashes when selection-sets-clipboard is on
16605         (mswindows_own_selection): ditto
16606
16607 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16608
16609         * glyphs-msw.c:
16610         * redisplay-msw.c (get_frame_dc):
16611         (get_frame_compdc):
16612         * console-msw.h:
16613         * device-msw.c (mswindows_init_device):
16614         (mswindows_delete_device):
16615         (msprinter_init_device):
16616         (msprinter_delete_device):
16617         * frame-msw.c (mswindows_init_frame_1):
16618         (mswindows_delete_frame):
16619         (msprinter_init_frame_3):
16620         (msprinter_delete_frame): Move compatible DC to device object from
16621         frame object, for both mswindows and msprinter. Only one at a time
16622         is needed, it is a real waste to have one per frame!
16623
16624 2000-02-23  Andy Piper  <andy@xemacs.org>
16625
16626         * glyphs.c: add dynamic width and height elements.
16627         (image_instance_equal): ditto.
16628
16629         * glyphs-widget.c (widget_query_geometry): calculate width and
16630         height dynamically if required.
16631         (initialize_widget_image_instance): initialize dynamic dimensions.
16632         (widget_instantiate): pick-up dynamic dimensions.
16633
16634         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16635         dynamic determination. Add appropriate macros.
16636
16637         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16638         dimensions safe.
16639         (WINDOW_GUTTER_SIZE): ditto.
16640         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16641
16642         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16643         inline.
16644         (get_frame_dc): ditto.
16645
16646         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16647         here.
16648
16649 2000-02-23  Martin Buchholz <martin@xemacs.org>
16650
16651         * XEmacs 21.2.31 is released.
16652
16653 2000-02-22  Ben Wing <ben@xemacs.org>
16654
16655         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16656
16657 2000-02-22  Andy Piper  <andy@xemacs.org>
16658
16659         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16660
16661 2000-02-21  Mike Sperber <mike@xemacs.org>
16662
16663         * .dbxrc:
16664         * .gdbinit:
16665         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16666         variables.
16667
16668 2000-02-21  Mike Sperber <mike@xemacs.org>
16669
16670         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16671
16672 2000-02-21  Martin Buchholz <martin@xemacs.org>
16673
16674         * XEmacs 21.2.30 is released.
16675
16676 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16677
16678         Performance hacking.
16679         * *.c (syms_of_*):
16680         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16681         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16682         * emacs.c (main_1):
16683         * lisp.h (DEFUN):
16684         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16685         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16686         * symeval.h (DEFVAR_SYMVAL_FWD):
16687         * symbols.c (guts_of_unbound_marker):
16688         Make all c_readonly objects also lisp_readonly and marked for life.
16689         * lrecord.h (struct lrecord_implementation):
16690         Document flags better.
16691         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16692         * lrecord.h (DECLARE_LRECORD):
16693         * lrecord.h (XSETRECORD):
16694         * lrecord.h (RECORDP):
16695         * lrecord.h (RECORD_TYPEP):
16696         * lrecord.h (RECORD_MARKER): New.
16697         * lrecord.h (error_check_*):
16698         * lrecord.h (CONCHECK_NONRECORD):
16699         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16700         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16701         * lrecord.h (set_lheader_implementation):
16702         * lrecord.h (enum lrecord_type): New.
16703         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16704         * alloc.c (disksave_object_finalization_1):
16705         * alloc.c (mark_object):
16706         * alloc.c (lrecord_type_index):
16707         * alloc.c (tick_lcrecord_stats):
16708         * alloc.c (Fgarbage_collect):
16709         * alloc.c (init_alloc_once_early):
16710         * alloc.c (pdump_load):
16711         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16712         * alloc.c (lrecord_type_index): Delete.
16713         Make lisp object type indexes be constant.
16714           Makes (byte-compile) 5% faster.
16715         Put all marker functions into their own array.
16716           Makes (garbage-collect) 5% faster.
16717         Optimize SYMBOL_VALUE_MAGIC_P.
16718           Makes (byte-compile) 2-3% faster.
16719         * config.h.in (gc_checking_assert): New.
16720         * alloc.c: Use gc_checking_assert().
16721         * .dbxrc: Make compatible with new object type implementation.
16722         * .gdbinit: Make compatible with new object type implementation.
16723         * alloc.c: Delete all symbols defined only for debugging, such as
16724         Lisp_Type_Vector and lrecord_charset.
16725
16726 2000-02-21  Andy Piper  <andy@xemacs.org>
16727
16728         * gui-msw.c (Fmswindows_shell_execute): fix file location
16729         problems.
16730
16731         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16732         unshowing so that set_window_buffer doesn't undo
16733         kill_buffer_hook's hard work.
16734
16735         * glyphs-widget.c (tab_control_query_geometry): don't count the
16736         first item when calculating geometry.
16737
16738         * glyphs.c (map_subwindow): remove redundant code.
16739         (update_frame_subwindows): be more circumspect about when to
16740         update subwindows.
16741
16742         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16743         when items haven't changed. Update faces if faces have changed as
16744         well as just the widget face.
16745         (x_tab_control_update): Update faces if faces have changed as well
16746         as just the widget face.
16747
16748 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16749
16750         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16751         registration.
16752         (build_syscolor_string): Use mswindows_color_to_string to try to
16753         get a named color.
16754         (mswindows_device_system_metrics): Reverse the foreground and
16755         background colors so that they match the documentation.
16756
16757         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16758         they match the default Windows palette.
16759         (mswindows_color_to_string): New function.
16760
16761 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16762
16763         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16764
16765 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16766
16767         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16768         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16769
16770         * symbols.c (init_symbols_once_early): Removed obsolete
16771         DATA_SEG_BITS related kludge.
16772         (defvar_magic): Ditto.
16773
16774         * malloc.c: Removed obsolete DATA_SEG_BITS
16775         * ralloc.c: Ditto.
16776         * mem-limits.h: Ditto.
16777
16778         * Makefile.in.in: Removed obsolete HAVE_SHM
16779         * emacs.c: Ditto.
16780
16781 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16782
16783         *  device-msw.c (mswindows_delete_device): Free DDE string
16784         handles.
16785
16786 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16787
16788         * keymap.c (get_keyelt):
16789         * unexnt.c (unexec):
16790         * vm-limit.c (memory_warnings):
16791         * ntheap.c (recreate_heap):
16792         * ntheap.h (UNINIT_PTR):
16793         * select-msw.c (Fmswindows_get_clipboard):
16794         (Fmswindows_set_clipboard):
16795         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16796         * objects-msw.c:
16797         * menubar-msw.c (displayable_menu_item):
16798         * glyphs-msw.c:
16799         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16800         * sysdep.c (sys_subshell):
16801         * process-nt.c (nt_create_process):
16802         * nt.c (normalize_filename):
16803         (dostounix_filename):
16804         (unixtodos_filename):
16805         * ntproc.c (win32_executable_type):
16806         * ntplay.c (play_sound_data_1):
16807         (play_sound_file):
16808         * editfns.c (get_home_directory):
16809         * event-msw.c (struct winsock_stream):
16810         (mswindows_dde_callback):
16811         * device-msw.c (msprinter_init_device):
16812         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16813
16814         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16815         mswindows_clear_toolbar were swapped!
16816
16817         * objects-msw.c:(colormap_t):
16818         (fontmap_t):
16819         * emacs.c (struct standard_args): Fixed const jumble.
16820
16821         * glyphs-widget.c (update_widget): Fixed comparison notation.
16822
16823         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16824
16825         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16826         __declspec(noreturn) syntax.
16827
16828 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16829
16830         * eldap.c (Fldap_open):
16831         (Fldap_search_basic):
16832         (Fldap_add):
16833         (Fldap_modify):
16834         Use new coding system conversion macros.
16835
16836 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16837
16838         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16839
16840 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16841
16842         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16843         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16844
16845         * eldap.c (Qadd, Qreplace): New constant symbols
16846         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16847         interruptions by XEmacs signals
16848         Remove unnecessary calls to slow_down_interrupts and
16849         speed_up_interrupts
16850         (Fldap_search_basic): Renamed from Fldap_search_internal
16851         Added new optional parameter VERBOSE that triggers the
16852         display of progress messages
16853         Remove unnecessary calls to slow_down_interrupts and
16854         speed_up_interrupts
16855         LDAP result code analysis rewritten
16856         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16857         (syms_of_eldap): Define the new symbols and functions
16858
16859
16860 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16861
16862         * realpath.c: Determine PATH_MAX maximally portably.
16863
16864         * insdel.c (bytecount_to_charcount): Optimize.
16865         The function used to be optimized for entirely ASCII sequences.
16866         Now it is optimized for successive characters from the same
16867         charset.  This also wins big for _mostly_ ASCII sequences.
16868
16869         * fileio.c (Ffile_truename): convert return from realpath() using
16870         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16871         - Rewrite GCPROing slightly.
16872
16873         * sysdep.c (sys_open): Do filename conversion, like all other
16874         sys_* functions.  Fixes bug:
16875         (let ((file-name-coding-system 'iso-8859-2))
16876            (write-region x y latin2-name))
16877         ==> writes filename using internal encoding.
16878
16879 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16880
16881         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16882         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16883         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16884         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16885         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16886         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16887         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16888         (CONST_IF_NOT_DEBUG): Delete.
16889         * alloc.c (this_one_is_unmarkable): Delete.
16890         (mark_object): Don't check for this_one_is_unmarkable. Use the
16891         c_readonly flag instead.
16892         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16893
16894 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16895
16896         * event-msw.c (mswindows_drain_windows_queue):
16897         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16898         away redundant repaint events.
16899
16900 2000-02-17  Andy Piper  <andy@xemacs.org>
16901
16902         * redisplay.h: declare mark_redisplay_structs.
16903
16904         * redisplay.c (redisplay_window):
16905         (redisplay_frame): don't check subwindows_state_changed.
16906         (mark_redisplay): mark gutters here.
16907
16908         * glyphs.c: (instantiate_image_instantiator): always layout if we
16909         haven't done so already.
16910         (allocate_image_instance): don't mark as dirty.
16911         (update_subwindow): bind inhibit_quit.
16912
16913         * gutter.c (mark_gutters): new function.
16914
16915         * glyphs-x.c (x_update_widget): Always resize to get round a
16916         widget bug.
16917
16918         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16919         breaking absolutely everything.
16920
16921         * gutter.h: declare mark_gutters.
16922
16923 2000-02-16  Martin Buchholz <martin@xemacs.org>
16924
16925         * XEmacs 21.2.29 is released.
16926
16927 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16928
16929         * fns.c (size_bit_vector): Fix computation of the size.
16930
16931 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16932
16933         * *.[ch]: Change CONST to const globally.
16934         find -name '*.[ch]' | \
16935         xargs global-replace \
16936         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16937         - Remove vestigial references to CONST_IS_LOSING
16938
16939 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16940
16941         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16942         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16943         events instead of dispatching them directly.
16944         (mswindows_handle_paint): New function to do repainting.
16945         (mswindows_wnd_proc):
16946         (emacs_mswindows_handle_magic_event): Call above function.
16947
16948 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16949
16950         * objects-msw.c (mswindows_create_font_variant): Return the new
16951         font handle.
16952         (initialize_font_instance): Get font metrics from the underlined
16953         variant of the font to cope with the case where the underlined
16954         font has a bigger descent.
16955
16956 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16957
16958         * gui.c (gui_item_accelerator): Return the first underlined
16959         character in item name.
16960
16961 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16962
16963         * lisp.h: Added Qprinter.
16964
16965         * general.c (syms_of_general): Initialized it.
16966
16967         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16968         (get_frame_dc):
16969         (get_frame_compdc): Made inline.
16970
16971         * console.h (struct console_methods): Added eject_page method.
16972
16973         * frame.h: Added FRAME_DISPLAY_P and friends.
16974         Aligned backslahes in many macros in more readable fashion.
16975         Added page_number to struct frame, and an accessor macro
16976         for it.
16977
16978         * defice.h: Added DEVICE_DISPLAY_P and friends.
16979
16980         * device.c (Fdevice_printer_p): Used these.
16981
16982         * frame.c (allocate_frame_core): Initialize page number.
16983         (Fprint_job_page_number):
16984         (Fprint_job_eject_page): Implemented.
16985
16986         * frame-msw.c (msprinter_eject_page): Added method.
16987         (msprinter_start_page): Added.
16988
16989         * window.c (Fwindow_truncated_p): Fixed docstring.
16990         (Fwindow_last_line_visible_height): Implemented.
16991
16992 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16993
16994         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16995
16996 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16997
16998         * syntax.c (scan_words): Always advance at least one character.
16999
17000 2000-02-13  Andy Piper  <andy@xemacs.org>
17001
17002         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
17003         to make sure the glyph is in the cachels.
17004
17005         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
17006         global image instance flag.
17007         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
17008         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
17009
17010         * glyphs.c (allocate_image_instance): set dirty bits correctly.
17011         (Fset_image_instance_property): mark layout as changed.
17012         (invalidate_glyph_geometry_maybe): mark layout as changed.
17013         (glyph_width): use new NEEDS_LAYOUT macro.
17014         (glyph_ascent): ditto.
17015         (glyph_descent): ditto.
17016         (glyph_height): ditto.
17017         (image_instance_layout): mark layout as clean after laying out.
17018         (update_subwindow): don't mark layout as clean here.
17019
17020         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
17021         should no longer be needed.
17022
17023         * glyphs-x.c (x_update_widget): sanitize asserts.
17024         (x_finalize_image_instance): sanitize assignment to widgets.
17025
17026         * glyphs-widget.c (widget_instantiate): don't need to clear the
17027         layout flag here.
17028
17029 2000-02-13  Martin Buchholz  <martin@xemacs.org>
17030
17031         * sysdep.c (getcwd): Use standard prototype.
17032         * sysdep.h (getcwd): Use standard prototype.
17033
17034         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
17035         (sequence, start, end).
17036         Remove redundant type checking.
17037         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
17038         view of `caller-protects') to avoid a crash where the real fix was
17039         found elsewhere.
17040
17041 2000-02-12  Martin Buchholz  <martin@xemacs.org>
17042
17043         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
17044
17045         * s/sol2.h: Remove feature macro initialization.
17046
17047         * alloc.c (alloc_lcrecord): Add more type checking assertions.
17048         (vector_hash): New.  Code from internal_hash.
17049         * lrecord.h:
17050         Fix up allocation subsystem comments.
17051
17052         * config.h.in: Add __EXTENSIONS__ for Solaris.
17053
17054         * systime.h (EMACS_GETTIMEOFDAY): New.
17055         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
17056         Remove Solaris-specific code.
17057         Use void* for the (ignored) second arg for gettimeofday().
17058
17059         * elhash.c (hash_table_hash): Implement it, finally.
17060         * elhash.c:  Use hashcode_t.
17061
17062         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
17063         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
17064
17065         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
17066         * fns.c (size_bit_vector):
17067         * alloc.c (size_vector):
17068         (make_vector_internal):
17069         (make_bit_vector_internal):
17070         (sweep_bit_vectors_1):
17071         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
17072
17073 2000-02-10  Martin Buchholz  <martin@xemacs.org>
17074
17075         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
17076         Include strings.h to avoid warnings for bzero and strcasecmp.
17077
17078 2000-02-10  Olivier Galibert  <galibert@pobox.com>
17079
17080         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
17081         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
17082
17083         * fns.c (size_bit_vector): New.  Declare bit vectors as a
17084         sequence.
17085
17086 2000-02-10  Olivier Galibert  <galibert@pobox.com>
17087
17088         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
17089         use a value field instead.
17090         (symbol_value_forward_forward): Use value field.
17091         (DEFVAR_SYMVAL_FWD): Use value field.
17092         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
17093         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
17094         (DEFVAR_CONST_INT): Ditto.
17095         (DEFVAR_BOOL): Ditto.
17096         (DEFVAR_CONST_BOOL): Ditto.
17097         (DEFVAR_INT_MAGIC): Ditto.
17098         (DEFVAR_BOOL_MAGIC): Ditto.
17099
17100         * symbols.c (guts_of_unbound_marker): Use value field.
17101         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
17102         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
17103
17104         * lisp.h: Declare dumpopaque and noninteractive1.
17105
17106         * alloc.c (dumpopaque): Added.
17107         (pdump_dump_opaquevec): Added.
17108         (pdump): Call pdump_dump_opaquevec to dump opaque data.
17109         (pdump_load): Reload opaque data.  Sync noninteractive1 with
17110         noninteractive.
17111
17112 2000-02-10  Andy Piper  <andy@xemacs.org>
17113
17114         * glyphs.c (image_instance_layout): if the size changes, mark it
17115         as such.
17116
17117         * redisplay-output.c (redisplay_output_layout): Update the
17118         subwindow here.
17119         (redisplay_output_subwindow): ditto.
17120
17121         * glyphs.c (update_subwindow): make sure we reset flags for
17122         layouts as well as everything else.
17123
17124         * glyphs-widget.c (layout_layout): don't need to set the instances
17125         dimensions here.
17126
17127 2000-02-09  Martin Buchholz  <martin@xemacs.org>
17128
17129         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
17130         not HAVE_DLOPEN, which is a lower-level thing.
17131
17132         * .cvsignore: Ignore gmon.out
17133
17134 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
17135
17136         * .cvsignore: Ignore portable dumper xemacs.dmp file
17137
17138 2000-02-09  Andy Piper  <andy@xemacs.org>
17139
17140         * redisplay-output.c (redisplay_output_layout): be more clever
17141         about when we output based on the changed flags.
17142
17143         * glyphs.h (struct image_instantiator_methods): add update_method.
17144         (struct Lisp_Image_Instance): add changed flags. Declare new
17145         macros for manipulating them.
17146
17147         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
17148         (image_instance_parent_glyph): find an image_instance's parent
17149         glyph or image_instance.
17150         (image_instance_layout): mark the size as changed.
17151         (set_image_instance_dirty_p): new function. mark an image
17152         instance, plus all of its parents, as dirty.
17153         (Fset_image_instance_property): use it.
17154         (Fglyph_animated_timeout_handler): use it.
17155         (update_subwindow): call update_widget and device methods for
17156         update_subwindow. Mark all changed flags as clean.
17157         (Fresize_subwindow): mark size as changed.
17158
17159         * glyphs-x.c (x_finalize_image_instance): try and detect gc
17160         failures.
17161         (x_update_subwindow): only resize subwindows here.
17162         (x_update_widget): new function. Update all changed properties of
17163         a widget.
17164         (x_resize_subwindow): deleted.
17165         (x_widget_set_property): deleted.
17166         (x_progress_gauge_set_property): deleted.
17167         (x_progress_gauge_update): new function. Implement recorded
17168         changes.
17169         (x_tab_control_update): ditto.
17170         (x_tab_control_set_property): deleted.
17171         (console_type_create_glyphs_x): declare new functions.
17172         (image_instantiator_format_create_glyphs_x): ditto.
17173
17174         * glyphs-widget.c (widget_set_property): mark text changed.
17175         (update_widget): new function. Update properties of a widget.
17176         (widget_instantiate): for layouts make sure we set their
17177         children's parent correctly.
17178         (tab_control_set_property): new function. Record changes that will
17179         take place under redisplay's control.
17180         (progress_gauge_set_property): ditto.
17181         (image_instantiator_progress_guage): declare new functions.
17182         (image_instantiator_tab_control): ditto.
17183
17184         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
17185         now.
17186         (mswindows_update_widget): new function. Update all properties on
17187         a widget that have changed.
17188         (mswindows_button_update): new function. Update a button's set
17189         state.
17190         (mswindows_tab_control_update): new function. Update the items in
17191         a tab.
17192         (mswindows_tab_control_set_property): deleted.
17193         (mswindows_progress_gauge_update): new function. Update the
17194         progress gauge's progress.
17195         (mswindows_widget_set_property): deleted. This is all done
17196         asynchronously now.
17197         (mswindows_progress_gauge_set_property): ditto.
17198         (console_type_create_glyphs_mswindows): declare new methods.
17199         (image_instantiator_format_create_glyphs_mswindows): ditto.
17200
17201         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
17202         (msprinter_set_frame_properties): ditto.
17203
17204         * console.h (struct console_methods): Add update_widget_method.
17205
17206 2000-02-09  Andy Piper  <andy@xemacs.org>
17207
17208         * gui-msw.c (Fmswindows_shell_execute): Make
17209         mswindows-shell-execute industrial strength.
17210
17211 2000-02-08  Martin Buchholz  <martin@xemacs.org>
17212
17213         * lrecord.h: Make macro argument `props' match member function `plist'.
17214         * fns.c (Fget):
17215         * fns.c (Fput):
17216         * fns.c (Fremprop):
17217         * fns.c (Fobject_plist):
17218         * alloc.c:
17219         * symbols.c:
17220         Object property list frobbing cleanup.
17221         - Allow any lisp object (compared with `eq'), not just symbols, as
17222           keys in object plists.
17223         - Move symbol plist frobbing into symbols.c, where it belongs.
17224         - Move string plist frobbing into alloc.c, where it belongs.
17225         - Everything's an lrecord now, so no need to test for symbolp, etc.
17226         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
17227
17228         * extents.c: Reorder code to remove declarations.
17229
17230         * frame.h (store_in_alist): Remove useless declaration.
17231
17232 2000-02-07  Martin Buchholz  <martin@xemacs.org>
17233
17234         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
17235         * config.h.in: Add HAVE_XCONVERTCASE.
17236
17237 2000-02-07  Andy Piper  <andy@xemacs.org>
17238
17239         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
17240         it breaks many things.
17241
17242 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
17243
17244         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
17245         actually can start a common comment type.
17246         * src/syntax.h (SYNTAX_END_P): ditto for end.
17247
17248 2000-02-07  Martin Buchholz <martin@xemacs.org>
17249
17250         * XEmacs 21.2.28 is released.
17251
17252 2000-02-06  Martin Buchholz  <martin@xemacs.org>
17253
17254         * event-Xt.c (x_keysym_to_character): New.
17255         (maybe_define_x_key_as_self_inserting_character): New.
17256         (x_has_keysym): New.
17257         Auto-define all keys on the keyboard as self-insert-key.
17258
17259 2000-02-02  Martin Buchholz  <martin@xemacs.org>
17260
17261         * menubar.c (vars_of_menubar): A small code simplification.
17262
17263         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
17264
17265         * ExternalShell.c:
17266         * ExternalClient.c:
17267         * EmacsShell-sub.c:
17268         * EmacsManager.c:
17269         * EmacsFrame.c:
17270         Use consistent style for specifying X resources.
17271
17272         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
17273         This makes (dontusethis-set-symbol-value-handler) actually usable.
17274
17275         * lrecord.h (lrecord_decription_type):
17276         * alloc.c (pdump_register_sub):
17277         (pdump_dump_data):
17278         (pdump_reloc_one):
17279         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
17280         Comply with XEmacs coding style.
17281         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
17282         args, and XD_LISP_OBJECT_ARRAY with 3 args.
17283
17284         * keymap.c (Faccessible_keymaps):
17285         Make (accessible-keymaps map "\C-h") do the Right Thing.
17286         Make (accessible-keymaps map []) do the Right Thing.
17287         Make (accessible-keymaps map "") do the Right Thing.
17288         (check_keymap_definition_loop): New function.
17289         (keymap_store_internal): Keep luser from shooting self in foot,
17290           via (define-key ctl-x-4-map "p" global-map).
17291         Remove fullness slot from struct Lisp_Keymap, since hash tables
17292         are now reliable.
17293         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17294
17295 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17296
17297         * redisplay.c (init_redisplay): Fix small memory leak.
17298         * elhash.h:
17299         * elhash.c (pdump_reorganize_hash_table):
17300         Rename from reorganize_hash_table. Change prototype.
17301         Reuse the original memory for hentries.  Save 100k.
17302         * alloc.c (PDUMP_READ): new macro.
17303         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17304         * alloc.c: No need to #ifndef before #undef.
17305
17306         * print.c: Allow debug_print() to print readably by modifying
17307         debug_print_readably.  Use consistent variable names.
17308
17309         * .dbxrc: Try to get things to work even if stopped in a function
17310         without source available by explicitly specifying source files.
17311 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17312
17313         * unexnt.c (_start): Removed bogus code which caused loading heap
17314         from differrent executable file.
17315         Removed bogus assignment to _fmode, which caused inconsistencies.
17316
17317 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17318
17319         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17320         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17321         Do not preliminary `#define signal sigset'.
17322
17323         * systime.h: Do not prototype environ on windows nt and cygwin,
17324         this conflicts with system header.
17325
17326         * syssignal.h: Use correct define for WINDOWSNT
17327
17328         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17329         with system header.
17330
17331         * sysdep.c (near start of file): Fixed commentary and rearranged
17332         ifdefs in readable order.
17333         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17334         (start_of_text):
17335         (end_of_text):
17336         (end_of_data): Do not compile in if using PDUMP.
17337
17338         * symsinit.h: Prototyped vars_of_nt().
17339
17340         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17341         (find_child_console): Use it.
17342         (sys_kill): Use it.
17343
17344         * ntheap.h: Do not extern os_subtype.
17345
17346         * ntheap.c (cache_system_info): Do not cache unneeded:
17347         nt_major_version, nt_minor_version and os_subtype.
17348         (recreate_heap): Do not compile in when PDUMPing.
17349
17350         * nt.c (geteuid and friends): Use the new varibale
17351         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17352         (init_user_info): Removed the above mentioned hackery.
17353         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17354         stat has been fixed in the C runtime.
17355         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17356
17357         * file-coding.c (struct file_coding_dump): Do not define
17358         ucs_to_mule_table in the struct if not MULE.
17359         (struct struct lrecord_description fcd_description_1): Do not dump
17360         the above.
17361
17362         * emacs.c (main_1): Call vars_of_nt().
17363         (right before Fdump_emacs_data): Don't need lastfile if using both
17364         portabe dumper and system malloc.
17365
17366         * alloc.c (Fmemory_limit): Conditionalized out.
17367         (pdump): Use OPEN_BINARY for the portable dump file.
17368         (pdump_load): Ditto.
17369
17370 2000-02-02  Mike Alexander  <mta@arbortext.com>
17371
17372         * nt.c (convert_time): Set tm_isdst before calling mktime and
17373         avoid calling it at all if the compiler supports 64 bit integers.
17374         Also initialize utc_base_ft before using it.
17375
17376 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17377
17378         * frame.c (change_frame_size_1): Take f->internal_border_width
17379         into consideration when calculating the width of the frame.
17380
17381 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17382
17383         * window.c (frame_min_height):
17384         (frame_size_valid_p):
17385         (frame_pixsize_valid_p): Added.
17386         (check_frame_size): Generalized.
17387
17388         * window.h: Prototyped the above.
17389
17390         * lisp.h:
17391         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17392         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17393         Deleted Vwin32_* and Vbinary_process_* unused variables.
17394
17395         * device-msw.c (msprinter_init_device): Do not get printer font
17396         list; Added DEVMODE functions.
17397
17398         * frame-msw.c: Added lots of printer code.
17399
17400         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17401         general.c.
17402
17403         * console-msw.h: Added more msprinter device private slots.
17404
17405 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17406
17407         * event-msw.c (key_needs_default_processing_p): Added.
17408         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17409
17410 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17411
17412         * glyphs.c (image_instance_layout): Mark image instance as clean
17413         after layout.
17414         (glyph_dirty_p): Removed redundant function.
17415         (invalidate_glyph_geometry_maybe): Added.
17416         (update_glyph_cachel_data): Call it.
17417
17418         * glyphs.h: Prototyped it.
17419
17420         * redisplay.c (add_glyph_rune): Call it.
17421         (redisplay_window): Reset glyphs cachels when frame faces have
17422         changed, thus forcing recomputation of built-in border glyphs.
17423
17424 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17425
17426         * Makefile.in.in: Make portable dumper and purify play well together.
17427         Add imperfect, but better than nothing, support for pdump.
17428         Remove xemacs.dmp when temacs is re-generated.
17429         Don't ignore errors when dumping xemacs.
17430
17431         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17432
17433 2000-01-28  Andy Piper  <andy@xemacs.org>
17434
17435         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17436         (setup_normal_frame): ditto.
17437         (setup_frame_without_minibuffer): ditto.
17438         (setup_minibuffer_frame): ditto.
17439         (delete_frame_internal): ditto.
17440         (Fmake_frame_invisible): ditto.
17441         (Ficonify_frame): ditto.
17442
17443         * window.h: change Fset_window_buffer signature.
17444
17445         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17446         (Fset_window_buffer): allow recording of buffer if the window is
17447         the selected window.
17448         (window_loop): Use new Fset_window signature.
17449
17450 2000-01-23  Daniel Pittman  <daniel@danann.net>
17451
17452         * config.h.in: Added template for `HAVE_ATHENA_3D'
17453
17454 2000-01-29  Andy Piper  <andy@xemacs.org>
17455
17456         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17457
17458         * gutter.c (output_gutter): Don't output if the window isn't live.
17459
17460 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17461
17462         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17463         of 01/12/00: Moved SetFocus back here where it belongs.
17464
17465 2000-01-23  Andy Piper  <andy@xemacs.org>
17466
17467         * s/cygwin32.h: declare printer things.
17468
17469 2000-01-26  Andy Piper  <andy@xemacs.org>
17470
17471         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17472         Alexander.
17473
17474 2000-01-24  Andy Piper  <andy@xemacs.org>
17475
17476         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17477         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17478
17479         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17480
17481         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17482
17483         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17484
17485         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17486         (mswindows_output_display_block): Avoid local shadows.
17487
17488         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17489         (mswindows_enqueue_mouse_button_event): ditto.
17490         (mswindows_handle_gui_wm_command): remove declaration.
17491
17492         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17493         warnings.
17494
17495         * console-msw.h: Avoid shadows.
17496         (mswindows_get_toolbar_button_text):
17497         (emacs_mswindows_create_stream_pair):
17498         (emacs_mswindows_delete_stream_pair):
17499         (mswindows_handle_toolbar_wm_command): declare.
17500
17501         * device-msw.c (build_syscolor_string): Avoid shadows.
17502
17503 2000-01-23  Andy Piper  <andy@xemacs.org>
17504
17505         * glyphs-widget.c (widget_instantiate): reverse the items for
17506         layouts so that children are in the expected order.
17507
17508 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17509
17510         * ralloc.c: safe_bcopy ==> memmove
17511         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17512         * s/msdos.h: Remove BCOPY macros.
17513         * insdel.c (gap_right): Remove BCOPY conditional code.
17514         * insdel.c (gap_left): Remove BCOPY conditional code.
17515         XEmacs demands a working ANSI C compiler - hence memmove.
17516
17517         * regex.c (regex_compile): Remove accidental use of trigraphs.
17518
17519 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17520
17521         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17522         event timestamp.
17523
17524 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17525
17526         * event-msw.c (mswindows_drain_windows_queue): Added the
17527         parameter.
17528         (mswindows_need_event): Commented the call to
17529         mswindows_drain_windows_queue().
17530         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17531         only.
17532
17533         * console-msw.h: Moved a few function prototypes here from
17534         event-msw.c.
17535
17536         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17537         parameter from unsigned short to unsigned long.
17538         (Fmswindows_shell_execute): Added return value.
17539
17540 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17541
17542         * sysdep.c (init_system_name):
17543           process-unix.c (unix_canonicalized_host_name):
17544         Don't call freeaddrinfo() if getaddrinfo() fails.
17545
17546         * process-unix.c (unix_open_unix_network_stream):
17547         Moved the code to get a port # into address loop.
17548
17549 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17550
17551         * buffer.c (reinit_vars_of_buffer):
17552         The right place to initialize conversion_in_dynarr and
17553         conversion_out_dynarr.
17554
17555         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17556
17557         * process-unix.c (unix_canonicalize_host_name): Muleize.
17558         (unix_open_network_stream): Muleize.
17559
17560         * buffer.h: Fix up prototypes for ralloc.c functions.
17561
17562 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17563         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17564         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17565                 instead of gethostbyname()
17566         * process-unix.c: In unix_canonicalize_host_name() and
17567                 unix_open_network_stream(), add code to use getaddrinfo()
17568                 instead of gethostbyname().
17569
17570 2000-01-27  Daniel Pittman <daniel@danann.net>
17571
17572         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17573         libs when built with flat Athena.
17574
17575 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17576
17577         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17578         Use coding standards for function prototypes.
17579
17580 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17581
17582         * dialog-msw.c (push_lisp_string_as_unicode):
17583         * doc.c (unparesseuxify_doc_string):
17584         * dired.c (Fuser_name_completion_1):
17585         * dired.c (Fuser_name_all_completions):
17586         * dired.c (free_user_cache):
17587         * dired.c (user_name_completion):
17588         * console-x.c (get_display_arg_connection):
17589         * minibuf.c (clear_echo_area_internal):
17590         * minibuf.c (echo_area_append):
17591         * eldap.c (Fldap_open):
17592         * eldap.c (Fldap_search_internal):
17593         * frame-x.c (x_set_frame_text_value):
17594         * frame-x.c (x_set_frame_properties):
17595         * frame-x.c (x_create_widgets):
17596         * redisplay-tty.c (term_get_fkeys_1):
17597         * objects-x.c (x_parse_nearest_color):
17598         * objects-x.c (x_valid_color_name_p):
17599         * objects-x.c (x_initialize_font_instance):
17600         * objects-x.c (x_list_fonts):
17601         * objects-x.c (x_find_charset_font):
17602         * tooltalk.c (Fadd_tooltalk_message_arg):
17603         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17604         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17605         * process-unix.c (unix_create_process):
17606         * ntproc.c (sys_spawnve):
17607         * sound.c (Fplay_sound_file):
17608         * sound.c (Fplay_sound):
17609         * buffer.c (init_initial_directory):
17610         * buffer.c (init_buffer):
17611         * editfns.c (init_editfns):
17612         * editfns.c (Ftemp_directory):
17613         * editfns.c (Fuser_full_name):
17614         * editfns.c (uncache_home_directory):
17615         * editfns.c (get_home_directory):
17616         * editfns.c (Fuser_home_directory):
17617         * editfns.c (Fformat_time_string):
17618         * editfns.c (Fcurrent_time_string):
17619         * gui-x.c (button_item_to_widget_value):
17620         * database.c (Fopen_database):
17621         * event-Xt.c (x_to_emacs_keysym):
17622         * event-Xt.c (x_event_to_emacs_event):
17623         * event-Xt.c (describe_event_window):
17624         * event-msw.c (mswindows_wnd_proc):
17625         * glyphs-eimage.c (jpeg_instantiate):
17626         * glyphs-eimage.c (gif_instantiate):
17627         * glyphs-eimage.c (png_instantiate):
17628         * glyphs-eimage.c (tiff_instantiate):
17629         * glyphs-x.c (xbm_instantiate_1):
17630         * glyphs-x.c (x_xbm_instantiate):
17631         * glyphs-x.c (x_xface_instantiate):
17632         * glyphs-x.c (autodetect_instantiate):
17633         * glyphs-x.c (cursor_font_instantiate):
17634         * glyphs-x.c (x_widget_instantiate):
17635         * glyphs-x.c (x_widget_set_property):
17636         * glyphs-x.c (x_widget_property):
17637         * glyphs-x.c (BUILD_GLYPH_INST):
17638         * print.c (write_string_to_stdio_stream):
17639         * print.c (output_string):
17640         * print.c (Falternate_debugging_output):
17641         * print.c (Fexternal_debugging_output):
17642         * glyphs-msw.c (extract_xpm_color_names):
17643         * glyphs-msw.c (mswindows_xpm_instantiate):
17644         * glyphs-msw.c (bmp_instantiate):
17645         * glyphs-msw.c (resource_name_to_resource):
17646         * glyphs-msw.c (mswindows_resource_instantiate):
17647         * glyphs-msw.c (xbm_instantiate_1):
17648         * glyphs-msw.c (mswindows_xbm_instantiate):
17649         * glyphs-msw.c (mswindows_xface_instantiate):
17650         * glyphs-msw.c (mswindows_widget_instantiate):
17651         * glyphs-msw.c (add_tree_item):
17652         * glyphs-msw.c (add_tab_item):
17653         * glyphs-msw.c (mswindows_combo_box_instantiate):
17654         * glyphs-msw.c (mswindows_widget_property):
17655         * glyphs-msw.c (mswindows_combo_box_property):
17656         * glyphs-msw.c (mswindows_widget_set_property):
17657         * console.c (stuff_buffered_input):
17658         * objects-msw.c (mswindows_initialize_color_instance):
17659         * objects-msw.c (mswindows_valid_color_name_p):
17660         * objects-msw.c (mswindows_list_fonts):
17661         * objects-msw.c (mswindows_font_instance_truename):
17662         * bytecode.c (optimize_compiled_function):
17663         * select-x.c (symbol_to_x_atom):
17664         * select-x.c (x_atom_to_symbol):
17665         * select-x.c (hack_motif_clipboard_selection):
17666         * select-x.c (selection_data_to_lisp_data):
17667         * select-x.c (lisp_data_to_selection_data):
17668         * select-x.c (Fx_get_cutbuffer_internal):
17669         * select-x.c (Fx_store_cutbuffer_internal):
17670         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17671         * buffer.h (TO_INTERNAL_FORMAT): New function.
17672         * emacs.c (make_arg_list_1):
17673         * emacs.c (make_argc_argv):
17674         * emacs.c (main_1):
17675         * emacs.c (Fdump_emacs):
17676         * emacs.c (split_string_by_emchar_1):
17677         * file-coding.h:
17678         * lisp.h:
17679         * lstream.h:
17680         * symsinit.h:
17681         * device-x.c (x_init_device):
17682         * device-x.c (Fx_valid_keysym_name_p):
17683         * device-x.c (Fx_get_font_path):
17684         * device-x.c (Fx_set_font_path):
17685         * glyphs.c (bitmap_to_lisp_data):
17686         * glyphs.c (pixmap_to_lisp_data):
17687         * alloc.c (make_ext_string): Use coding system arguments.  Update
17688         all callers.
17689         * alloc.c (build_string):
17690         * callproc.c (child_setup):
17691         * callproc.c (init_callproc):
17692         * fileio.c (lisp_strerror):
17693         * fileio.c (directory_file_name):
17694         * fileio.c (Fexpand_file_name):
17695         * fileio.c (Ffile_truename):
17696         * fileio.c (Fsysnetunam):
17697         * fileio.c (Fdo_auto_save):
17698         * sysdep.c (sys_readdir):
17699         * tests.c: New file.  Allow adding C tests.
17700         Replace GET_* macros with a more comprehensible and flexible
17701         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17702         Modify all calls.
17703         Any coding system can be used to do format conversion.
17704         Eliminate enum external_data_format.
17705         Eliminate convert_to_external_format.
17706         Eliminate convert_to_internal_format.
17707         Make sure file-name, keyboard, terminal, and ctext are always
17708         defined as coding systems or aliases.  Make
17709         file-name-coding-system, terminal-coding-system, and
17710         keyboard-coding-system magical variables that are equivalent to
17711         defining the corresponding coding system aliases.
17712
17713         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17714         * file-coding.c (Fcoding_system_alias_p): New function.
17715         * file-coding.c (Fcoding_system_aliasee): New function.
17716         * file-coding.c (append_suffix_to_symbol): New function.
17717         * file-coding.c (dangling_coding_system_alias_p): New function.
17718         * file-coding.c (Ffind_coding_system):
17719         * file-coding.c (Fcopy_coding_system):
17720         * file-coding.c (encode_coding_no_conversion):
17721         * file-coding.c (syms_of_file_coding):
17722         * file-coding.c (vars_of_file_coding):
17723         Rewrite coding system alias code.
17724         Allow nested aliases, like symbolic links.
17725         Allow redefinition of coding system aliases.
17726         Prevent existence of dangling coding system aliases.
17727
17728         * dired.c (Fuser_name_completion_1):
17729         * dired.c (Fuser_name_all_completions):
17730         A crash would happen if user did QUIT in the middle of building
17731         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17732
17733         * lisp.h:
17734         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17735
17736         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17737         an unsigned char *.  Update all callers.
17738
17739 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17740
17741         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17742
17743 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17744
17745         * elhash.c (hentry_description): Use more portable definition.
17746         (resize_hash_table): Initialize new hentries using
17747         xnew_array_and_zero, thereby simplifying the code.
17748
17749         * mule-charset.c (make_charset): Make sure entire object is
17750         initialized, to avoid Purify warnings.
17751
17752         * alloc.c (resize_string): Fix unlikely crash with big strings.
17753
17754 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17755
17756         * realpath.c (xrealpath):
17757         Don't call getwd().
17758
17759 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17760
17761         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17762
17763 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17764
17765         * unexelfsgi.c (unexec): Change the way we decide which segment
17766         should be extended.
17767
17768         Assumption that .bss section should be outside the PT_LOADable
17769         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17770         it's present) is inside the 'data' segment. This would fail the
17771         test which was used to find a segment to grow and cover new
17772         heap. Instead of this assumption, I created another one - on IRIX
17773         the segment to grow should start below .bss and it's address
17774         should extent above the end of .bss. Once this segment is
17775         identified, it's grown to accommodate the new heap and new
17776         zero-length .bss section is added at the end of .data2.
17777
17778 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17779
17780         * eval.c (Feval): Wrong number of arguments should use original
17781         function, not the indirect_function version of it.
17782
17783 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17784
17785         * glyphs-x.c (x_button_instantiate): Don't add image if
17786         it is not a pixmap.
17787         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17788         is relative.
17789
17790 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17791
17792         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17793         declaration.
17794         (DEFVAR_INT_MAGIC): Ditto.
17795         (DEFVAR_BOOL_MAGIC): Ditto.
17796         * glyphs.h: Reindent backslash.
17797
17798 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17799
17800         * glyphs-widget.c (layout_query_geometry):
17801         (layout_layout): Use correct types for gheight, gwidth.
17802
17803 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17804
17805         * EmacsManager.c (QueryGeometry): Purified.
17806
17807 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17808
17809         * alloc.c (make_float): Make sure entire object is initialized, to
17810         avoid Purify warnings.
17811         (pdump_register_sub): Remove useless assignment.
17812         (pdump): Use xmalloc, not malloc.
17813         (pdump_load): Use xmalloc, not malloc.
17814
17815 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17816
17817         * callproc.c:
17818         * dired-msw.c:
17819         * fileio.c:
17820         * process-nt.c:
17821         * redisplay-msw.c:
17822         * sysdep.c: Removed redundant #include <windows.h>
17823
17824 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17825
17826         * frame.c (delete_frame_internal): Do not delete device when its
17827         implementation so declares.
17828         (delete_frame_internal): Set device selected frame to nil when
17829         last frame goes away.
17830
17831         * device-msw.c (msprinter_device_system_metrics): Implemented.
17832         (mswindows_device_system_metrics): Added 'device-dpi property.
17833
17834         * device.c: (Fdevice_printer_p): Added.
17835         Added 'offset-workspace device metric.
17836
17837         * console.h (device_metrics): Declared DM_offset_workspace.
17838
17839 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17840
17841         * fileio.c (Ffile_truename): Remove pointless and confusing
17842         initialization of elen.
17843
17844         * glyphs-widget.c: Compiler warning fixes.
17845
17846 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17847
17848         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17849         instead of a Lisp_Object as argument to make it consistent with
17850         the other LIVE_P macros.
17851         (CHECK_LIVE_PROCESS): New macro.
17852
17853         * process.c: Declare Qprocess_live_p.
17854         (Fprocess_live_p): New function.
17855         (create_process): Use PROCESS_LIVE_P.
17856         (read_process_output): Ditto.
17857         (set_process_filter): Ditto.
17858         (Fdelete_process): Ditto.
17859         (kill_buffer_processes): Ditto
17860         (process_send_signal): Use CHECK_LIVE_PROCESS.
17861         (Fprocess_input_coding_system): Check whether process is still
17862         alive (fix PR#1061).
17863         (Fprocess_output_coding_system): Ditto.
17864         (Fprocess_coding_system): Ditto.
17865         (Fset_process_input_coding_system): Ditto.
17866         (Fset_process_output_coding_system): Ditto.
17867
17868 2000-01-23  Andy Piper  <andy@xemacs.org>
17869
17870         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17871         layout and widget.
17872
17873         * glyphs.c (mark_image_instance): take into account changed
17874         image_instance format.
17875         (image_instance_equal): ditto.
17876         (image_instance_hash): ditto.
17877
17878         * glyphs-widget.c (widget_instantiate): Incorporate layout
17879         instantiation here. Delay layout of the layout until later.
17880         (layout_instantiate): deleted.
17881         (layout_query_geometry): new function. get the geometry of a
17882         layout.
17883         (layout_layout): layout a layout dynamically.
17884         (image_instantiator_widget): New function - splitting up
17885         image_instantiator_format_create_glyphs_widget for netwinder
17886         compilation.
17887         (image_instantiator_buttons):
17888         (image_instantiator_edit_fields):
17889         (image_instantiator_combo_box):
17890         (image_instantiator_scrollbar):
17891         (image_instantiator_progress_guage):
17892         (image_instantiator_tree_view):
17893         (image_instantiator_tab_control):
17894         (image_instantiator_labels):
17895         (image_instantiator_layout): ditto.
17896         (image_instantiator_format_create_glyphs_widget): Call preceding
17897         functions.
17898
17899 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17900
17901         * process.c (Fset_process_coding_system):
17902         * device-x.c (Fx_keysym_hash_table):
17903         Docstring fixes.
17904
17905         * lstream.c (Lstream_write): Return documented value, not 0.
17906
17907         * fileio.c (directory_file_name):
17908         (Fsubstitute_in_file_name):
17909         (Fsubstitute_insert_file_contents_internal):
17910         (Fwrite_region_internal):
17911         * emacs.c:
17912         * sysdep.c:
17913         * getloadavg.c:
17914         * systty.h:
17915         Remove vestigial APOLLO-conditional code.
17916
17917 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17918
17919         * getpagesize.h: Add guard macros.
17920         * libsst.h: Add guard macros.
17921         * libst.h: Add guard macros.
17922         * line-number.h: Add guard macros.
17923         * ndir.h: Add guard macros.
17924         * sysfloat.h: Add guard macros.
17925         * sysfile.h: Add guard macros.
17926         * sysproc.h: Add guard macros.
17927         * syswait.h: Add guard macros.
17928         * xintrinsic.h: Add guard macros.
17929         * xintrinsicp.h: Add guard macros.
17930         * xmmanager.h: Add guard macros.
17931         * xmmanagerp.h: Add guard macros.
17932         * xmprimitive.h: Add guard macros.
17933         * xmu.h: Add guard macros.
17934         * gpmevent.h: Add copyright statement. Add guard macros.
17935         * miscplay.h: Add guard macros.
17936         * *.h: Use consistent C-standards-approved guard macro names.
17937
17938         * opaque.c (make_opaque): Switch parameter order.
17939         * opaque.h (make_opaque): Switch parameter order.
17940         Update all callers.
17941         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17942
17943         * config.h.in (type_checking_assert): Added.
17944         (bufpos_checking_assert): Added.
17945
17946 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17947
17948         * alloc.c: Harmless pdump changes.
17949         - Use countof().
17950         - spell alignment correctly.
17951         * sysdep.c: Use countof()
17952
17953 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17954
17955         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17956         initially_selected_for_input() console method, default to 0.
17957         (semi_canonicalize_console_connection): Try to delegate to
17958         canonicalize_console_connection if no such console method.
17959         (canonicalize_console_connection): Vice versa.
17960         (print_console): Do not print nil connection.
17961
17962         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17963         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17964         (XDEVIMPF_FRAMELESS_OK): Added.
17965         (CONSOLE_INHERITS_METHOD): Added.
17966
17967         * console-msw.c (mswindows_canonicalize_console_connection):
17968         Added.
17969         (mswindows_canonicalize_device_connection): Added.
17970
17971         * console-msw.h (struct msprinter_device): Added this struct and
17972         accessor macros.
17973         (mswindows_device): Made fontlist a lisp object.
17974
17975         * device.c (semi_canonicalize_device_connection):  Try to delegate
17976         to canonicalize_device_connection if no such console method.
17977         (canonicalize_device_connection): Vice versa.
17978         (print_device): Do not print nil connection.
17979
17980         * device-msw.c (mswindows_init_device): Call InitCommonControls
17981         when have widgets.
17982         (mswindows_delete_device): Removed fontlist deallocation.
17983         (mswindows_mark_device): Added.
17984
17985         * events.c (event_equal): Added abort() at unreached code.
17986         (event_hash): Ditto.
17987
17988         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17989         fallback tags of Windows devices.
17990
17991         * general.c (syms_of_general): Initialized Qmsprinter.
17992
17993         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17994         of fallback tags of Windows devices.
17995
17996         * lisp.h: Declared Qmsprinter.
17997
17998         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17999         of strings.
18000         (mswindows_list_fonts): Ditto.
18001         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
18002         that it can be used by both mswindows and msprinter devices.
18003         (initialize_font_instance): Added.
18004         (mswindows_initialize_font_instance): Use it.
18005         (msprinter_initialize_font_instance): Added.
18006
18007         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
18008         and implementation flags check.
18009         (redisplay_without_hooks): Changed the call to the above.
18010         (Fredraw_device): Ditto.
18011         (Fredisplay_device): Ditto.
18012
18013         * redisplay-msw.c (get_frame_dc): Implemented.
18014         (get_frame_compdc): Implemented.
18015         (many functions): Use the two functions above to get device
18016         contexts, ether for a window or a printer.
18017
18018 2000-01-21  Olivier Galibert  <galibert@pobox.com>
18019
18020         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
18021         initialization here.
18022         (init_symbols_once_early): Call it.
18023         * emacs.c (main_1): Call it.
18024         * symsinit.h: Declare it.
18025
18026 2000-01-19  Olivier Galibert  <galibert@pobox.com>
18027
18028         * alloc.c: Use a lrecord_header * in the backtrace instead of a
18029         Lisp_Object.
18030         (pdump_backtrace): Ditto.
18031         (pdump_register_object): Ditto.  Cleanup use of the pointers.
18032         (pdump_get_entry): Abort if trying to register a null pointer.
18033         (pdump_dump_data): Cleanup types when relocating.
18034         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
18035         (pdump_dump_rtables): Remove bad casts.
18036         (pdump_load): Cleanup relocation w.r.t union type.  Use a
18037         Lisp_Object instead of a EMACS_INT for the hashtable
18038         reorganization.
18039
18040 2000-01-20  Martin Buchholz  <martin@xemacs.org>
18041
18042         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
18043
18044         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
18045
18046         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
18047
18048         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
18049
18050 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18051
18052         * faces.h (FACE_STRIKETHRU_P): Added.
18053
18054         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
18055         of font variants.
18056
18057         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
18058         (mswindows_set_dc_font): New function, aware of font variants,
18059         separated from mswindows_update_dc.
18060
18061         * objects-msw.h (struct mswindows_font_instance_data): Added
18062         definition.
18063
18064         * objects-msw.c (mswindows_finalize_font_instance): Delete all
18065         cached fonts and the data structure.
18066         (mswindows_initialize_font_instance): Added creation of font data
18067         structure.
18068         (mswindows_print_font_instance): Print at least something.
18069         (mswindows_create_font_variant): Implemented.
18070         (mswindows_get_hfont): Implemented.
18071
18072 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
18073
18074         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
18075         prototyping problem with msvc.
18076
18077         * emacs.c (main_1): added syms_of_gui_mswindows() call
18078
18079         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
18080         syms_of_gui_mswindows() function
18081
18082         * symsinit.h: added the prototype for syms_of_gui_mswindows()
18083
18084 2000-01-18  Martin Buchholz <martin@xemacs.org>
18085
18086         * XEmacs 21.2.27 is released.
18087
18088 2000-01-18  Martin Buchholz  <martin@xemacs.org>
18089
18090         * glyphs-eimage.c (struct tiff_error_struct):
18091         (tiff_error_func):
18092         (tiff_warning_func):
18093         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
18094
18095         * unexmips.c:
18096         * unexhp9k3.c:
18097         * unexfreebsd.c:
18098         * unexec.c: Remove vestigial Lucid C code.
18099         * unexalpha.c:
18100         * unexaix.c:
18101         * termcap.c:
18102         * libsst.c: Ansify.
18103         Remove declarations of errno and strerror().
18104
18105         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
18106
18107         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
18108
18109 2000-01-16  Martin Buchholz  <martin@xemacs.org>
18110
18111         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
18112         Optimize.
18113
18114 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18115
18116         * md5.c:
18117         * file-coding.c:
18118         * file-coding.h:
18119         Change enum eol_type to eol_type_t.
18120
18121 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18122
18123         * gui.c (get_gui_callback): Check cons before accessing car.
18124
18125 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18126
18127         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
18128         (XSETSPECIFIER_TYPE): Ditto.
18129
18130 2000-01-17  Didier Verna  <didier@xemacs.org>
18131
18132         * redisplay.c (generate_fstring_runes): compute string size in
18133         characters, not bytes.
18134
18135 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18136
18137         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
18138
18139 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
18140
18141         * print.c (print_error_message): Call print_prepare().
18142
18143 2000-01-14  Martin Buchholz  <martin@xemacs.org>
18144
18145         * .dbxrc: Renamed from dbxrc.
18146
18147         * events.c (event_to_character):
18148         Use `assert (foo)' instead of `if (!foo) abort()'
18149
18150         * .gdbinit (xtype): Add documentation.
18151         * .gdbinit (check-temacs): New function.
18152         * .gdbinit (check-xemacs): New function.
18153         * dbxrc (check-xemacs): New function.
18154         * dbxrc (check-xemacs): New function.
18155
18156 2000-01-14  Andy Piper  <andy@xemacs.org>
18157
18158         * glyphs-widget.c (widget_query_geometry): Make sure that we
18159         calculate default dimensions correctly.
18160
18161 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18162
18163         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
18164
18165         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
18166         pdump_wire'd variable.
18167
18168         * emacs.c: (main_1): Conditionalized calls to
18169         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
18170
18171 2000-01-13  Martin Buchholz  <martin@xemacs.org>
18172
18173         * window.c (Fset_window_configuration):
18174         * sysdep.c (_start):
18175         * input-method-motif.c (res):
18176         * event-Xt.c (Xt_process_to_emacs_event):
18177         Simple compiler warning fixes.
18178
18179         * bytecode.c (funcall_compiled_function): Use the original
18180         function symbol on the backtrace list in preference to the
18181         compiled_function object in error messages.
18182
18183 2000-01-13  Andy Piper  <andy@xemacs.org>
18184
18185         * glyphs-x.c (update_widget_face): Make sure we update the widget
18186         background as well as foreground.
18187
18188 2000-01-13  Andy Piper  <andy@xemacs.org>
18189
18190         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
18191         fields to subwindow.
18192         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
18193         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
18194         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18195         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18196
18197         * glyphs-widget.c (check_valid_tab_orientation): new function.
18198         (initialize_widget_image_instance): zero orientation and
18199         justification.
18200         (widget_instantiate): pick up orientation.
18201         (tab_control_query_geometry): return appropriate values for
18202         vertical tabs.
18203
18204         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
18205         appropriate creation flags for left, right and bottom tabs.
18206
18207         * s/cygwin32.h: add tab definitions.
18208
18209 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18210
18211         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
18212         frame upon hiding a subwindow.
18213         (mswindows_button_instantiate): Changed the push button style to
18214         BS_PUSHBUTTON.
18215         (mswindows_button_instantiate): Removed button BS_NOTIFY
18216         style.
18217         (mswindows_button_instantiate): Removed redundant check for
18218         a disabled gui item.
18219         (mswindows_button_instantiate): Made use of WS_TABSTOP
18220         consistent: "operable" controls (edit, button, tree, scroll) have
18221         this style, "display-only" ones (static, progress gauge) do
18222         not. This style is currently ignored by XEmacs though. Also,
18223         removed the WS_EX_CONTROLPARENT style - it is not for children,
18224         it is for their parents!
18225         (mswindows_edit_field_instantiate): Ditto.
18226         (mswindows_progress_gauge_instantiate): Ditto.
18227         (mswindows_tree_view_instantiate): Ditto.
18228         (mswindows_tab_control_instantiate): Ditto.
18229         (mswindows_scrollbar_instantiate): Ditto.
18230         (mswindows_combo_box_instantiate): Ditto.
18231         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
18232         style to the "clip" window.
18233         (mswindows_button_instantiate): Removed compilation warning by
18234         equally typing terms of the ?: operator.
18235
18236 2000-01-12  Didier Verna  <didier@xemacs.org>
18237
18238         * redisplay.c (generate_fstring_runes): new parameter holding the
18239         last modeline-format extent.
18240         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
18241         extent, fill the glyph block with it.
18242         (generate_fstring_runes): handle these parameters.
18243         (generate_formatted_string_db): ditto.
18244
18245         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
18246         glyphs'extents in the modeline.
18247
18248 1999-01-11  Mike Woolley  <mike@bulsara.com>
18249
18250         * ntheap.c: Reduced the reserved heap space from 1Gb down to
18251         256Mb, as a workaround for the non-starting problem many people
18252         have experienced.
18253
18254 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18255
18256         * console-tty.c (Fset_console_tty_output_coding_system):
18257         Force redrawing tty frame.
18258
18259 2000-01-10  Didier Verna  <didier@xemacs.org>
18260
18261         * redisplay.c (generate_fstring_runes): fix size computation bug.
18262
18263 2000-01-09  William M. Perry <wmperry@aventail.com>
18264
18265         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
18266
18267 2000-01-09  Andy Piper  <andy@xemacs.org>
18268
18269         * glyphs-msw.c: index -> i to avoid shadows.
18270         (xbm_create_bitmap_from_data): make static.
18271         (check_valid_string_or_int): deleted.
18272         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
18273
18274         * glyphs-x.c (x_update_subwindow): remove unused args.
18275
18276         * glyphs.c (glyph_image_instance): return the thing. Don't set the
18277         back pointer - this is done in allocate_image_instance.
18278         (query_string_font): return Qnil to make the compiler happy.
18279         (unmap_subwindow): set to ~0 to make the compiler happy.
18280         (glyph_query_geometry): comment out until used.
18281         (glyph_layout): ditto.
18282
18283 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18284
18285         * insdel.c (signal_after_change): Remove extraneous unbind_to().