update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2016-07-23  MORIOKA Tomohiko  <tomo.git@chise.org>
2
3         * text-coding.c (Fmake_coding_system): Accept property
4         `charset-g3' for CODESYS_UTF8.
5         (char_encode_utf8): Refer `charset-g3'.
6
7 2015-11-25  MORIOKA Tomohiko  <tomo.git@chise.org>
8
9         * chartab.c (Fchar_feature): When argument ATTRIBUTE is a CCS and
10         whose name is =>FOO, don't try to find =FOO; fix problem when
11         argument ATTRIBUTE is ==>FOO.
12
13 2013-05-19  MORIOKA Tomohiko  <tomo.git@chise.org>
14
15         * text-coding.c (COMPOSE_ADD_CHAR): Use
16         `concord_object_get_attribute' instead of
17         `concord_object_get_feature_value'.
18
19         * chartab.c (char_table_get_db_cos): Use
20         `concord_object_get_attribute' instead of
21         `concord_object_get_feature_value'.
22
23 2013-05-02  MORIOKA Tomohiko  <tomo.git@chise.org>
24
25         * chartab.h (get_char_id_table_ce): Use
26         `load_char_attribute_maybe_cos' instead of
27         `load_char_attribute_maybe'.
28
29         * chartab.c (load_char_attribute_maybe_cos): Return NULL instead
30         of Qunbound as the default value.
31
32 2013-05-01  MORIOKA Tomohiko  <tomo.git@chise.org>
33
34         * chartab.h (load_char_attribute_maybe_cos): New prototype when
35         HAVE_LIBCHISE is defined.
36         (get_char_id_table_ce): New inline function when HAVE_LIBCHISE is
37         defined.
38
39         * mule-charset.c (charset_code_point): Use `get_char_id_table_ce'
40         instead of `get_char_id_table' when HAVE_LIBCHISE is defined.
41         (load_char_decoding_entry_maybe): Don't use
42         `decoding_table_put_char' to avoid GC.
43
44         * text-coding.c (concord_setup_env_maybe): Abolished.
45         (COMPOSE_ADD_CHAR): Use `open_chise_data_source_maybe' instead of
46         `concord_setup_env_maybe'.
47
48 2013-05-01  MORIOKA Tomohiko  <tomo.git@chise.org>
49
50         * chartab.c (open_chise_data_source_maybe): New implementation;
51         don't use `build_string' and `Fexpand_file_name' to avoid GC.
52         (char_table_get_db_cos): New function when HAVE_LIBCHISE is
53         defined.
54         (load_char_attribute_maybe_cos): Likewise.
55
56 2013-04-23  MORIOKA Tomohiko  <tomo.git@chise.org>
57
58         * text-coding.c (struct decoding_stream): Use COS_object instead
59         of Lisp_Object for `combining_table' if HAVE_LIBCHISE is defined.
60         (reset_decoding_stream): Likewise.
61         (COMPOSE_FLUSH_CHARS): Likewise.
62         (concord_setup_env_maybe): New function.
63         (COMPOSE_ADD_CHAR): Use COS API for `str->combining_table' if
64         HAVE_LIBCHISE is defined.
65
66 2013-02-16  MORIOKA Tomohiko  <tomo.git@chise.org>
67
68         * chartab.c (find_char_feature_in_family): New implementation;
69         don't support multiple parents; support non-list mother.
70
71 2012-06-11  MORIOKA Tomohiko  <tomo.git@chise.org>
72
73         * text-coding.c (Qenable_decomposition): New variable in XEmacs
74         CHISE.
75         (Fmake_coding_system): Add new property `enable-decomposition' in
76         XEmacs CHISE.
77         (char_encode_utf8): Don't decompose character if
78         CODING_SYSTEM_ENABLE_DECOMPOSITION (str->codesys) is false.
79         (syms_of_file_coding): Add new symbol `enable-decomposition' in
80         XEmacs CHISE.
81         (complex_vars_of_file_coding): Define new coding-system-property
82         `enable-decomposition' in XEmacs CHISE.
83
84         * file-coding.h (struct Lisp_Coding_System): Add
85         `enable_decomposition' in XEmacs CHISE.
86         (CODING_SYSTEM_ENABLE_DECOMPOSITION): New macro in XEmacs CHISE.
87         (XCODING_SYSTEM_ENABLE_DECOMPOSITION): New macro in XEmacs CHISE.
88
89 2012-02-17  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
90
91         * text-coding.c (DECODE_ADD_UCS_CHAR): Add `static'.
92
93 2012-02-11  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
94
95         * text-coding.c (DECODE_ADD_UCS_CHAR): Don't use `INLINE_HEADER'.
96
97         * chartab.c (UINT8_DECODE): Don't use `INLINE_HEADER'.
98         (UINT16_DECODE): Ditto.
99
100         * glyphs-eimage.c (png_instantiate):
101         - Use `png_get_image_height (png_ptr, info_ptr)' instead of
102           `info_ptr->height'.
103         - Use `png_get_image_width (png_ptr, info_ptr)' instead of
104           `info_ptr->width'.
105         - Use `png_get_color_type(png_ptr, info_ptr)' instead of
106           `info_ptr->color_type'.
107         - Use `png_get_bit_depth(png_ptr, info_ptr)' instead of
108           `info_ptr->bit_depth'.
109
110 2011-07-20  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
111
112         * mule-charset.c (charset_code_point): If nil is specified as a
113         feature-value, don't find in mother and return -1.
114
115 2011-07-22  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
116
117         * chartab.c (Fput_char_attribute): Accept nil as a value of
118         CCS-feature [it means that specified object does not have
119         code-point of the CCS-feature].
120
121 2011-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
122
123         * mule-charset.c (complex_vars_of_mule_charset): Use "jisx0208"
124         instead of "jisx0208\\.1990" as the X-registry of `=jis-x0208'.
125
126 2011-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
127
128         * text-coding.c (char_encode_as_entity_reference): Don't use
129         `DECODE_CHAR' to detect isolated characters.
130
131         * mule-charset.c (charset_code_point): Change the third argument
132         `defined_only' to `accepted_mode'; `accepted_mode' can be
133         CHAR_ISOLATED_ONLY, CHAR_ALL or CHAR_DEFINED_ONLY.
134
135         * char-ucs.h (CHAR_ISOLATED_ONLY): New macro.
136         (CHAR_ALL): New macro.
137         (CHAR_DEFINED_ONLY): New macro.
138
139 2011-03-14  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
140
141         * chartab.c (Fchar_feature_base_name_eq): New function when
142         UTF2000 is enabled.
143         (Fput_char_attribute): Use `Fchar_feature_base_name_eq'.
144         (syms_of_chartab): Add new builtin function
145         `char-feature-base-name=' when UTF2000 is enabled.
146
147 2011-02-17  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
148
149         * text-coding.c (Vdecomposition_feature_list): New variable when
150         UTF2000 is defined.
151         (char_encode_utf8): Refer variable `decomposition-feature-list'
152         instead of `=decomposition' feature.
153         (vars_of_file_coding): Add new variable
154         `decomposition-feature-list' when UTF2000 is defined.
155
156 2011-02-16  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
157
158         * chartab.c (Fput_char_attribute): Support `=decomposition@FOO' as
159         `=decomposition' feature.
160
161 2011-02-12  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
162
163         * mule-charset.c (Fmake_charset): Fix problem for 94^n or 96^n
164         coded-charsets with builtin characters.
165
166 2011-02-09  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
167
168         * text-coding.c (Qrep_decomposition): New extern.
169         (char_encode_utf8): Try to encode as combing sequence (or IVS).
170
171 2011-01-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
172
173         * concord.c (Fconcord_genre_ds): Add "#ifdef HAVE_LIBCHISE" ...
174         "#endif" for code to refer Vchise_system_db_directory.
175
176 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
177
178         * concord.c (Fconcord_object_put): Use `member' instead of `memq'.
179         (Fconcord_object_adjoin): New function.
180         (Fconcord_object_adjoinX): New function.
181         (syms_of_concord): Defsubred `Fconcord_object_adjoin' and
182         `Fconcord_object_adjoinX'.
183
184 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
185
186         * concord.c:
187         - Include "elconcord.h".
188         - Move EXFUNs for `Fconcord_decode_object', `Fconcord_object_put'
189           and `Fconcord_object_get' to elconcord.h.
190         (Lisp_CONCORD_DS): Moved to elconcord.h.
191         (struct Lisp_CONCORD_DS): Ditto.
192         (XCONCORD_DS): Ditto.
193         (XSET_CONCORD_DS): Ditto.
194         (CONCORD_DS_P): Ditto.
195         (CHECK_CONCORD_DS): Ditto.
196         (CONCHECK_CONCORD_DS): Ditto.
197         (Lisp_CONCORD_Object): Ditto.
198         (struct Lisp_CONCORD_Object): Ditto.
199         (XCONCORD_OBJECT): Ditto.
200         (XSET_CONCORD_OBJECT): Ditto.
201         (CONCORD_OBJECT_P): Ditto.
202         (CHECK_CONCORD_OBJECT): Ditto.
203         (CONCHECK_CONCORD_OBJECT): Ditto.
204         (CONCORD_OBJECT_GENRE): Ditto.
205         (CONCORD_OBJECT_ID): Ditto.
206         (XCONCORD_OBJECT_ID): Ditto.
207         (XCONCORD_OBJECT_GENRE): Ditto.
208         (concord_object_equal): New function.
209         (LRECORD_IMPLEMENTATION of "concord_object"): Use
210         `concord_object_equal'.
211
212         * elconcord.h: New file.
213
214 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
215
216         * concord.c (print_concord_object): Use readable form even if
217         `print-readably' is nil.
218
219 2010-11-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
220
221         * concord.c (print_concord_object): Don't display location of
222         data-source when `print-readably' is nil.
223
224 2010-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
225
226         * concord.c (Fconcord_genre_ds): Use Vchise_system_db_directory as
227         the default location of data-source.
228         (complex_vars_of_concord): Use Vchise_system_db_directory to
229         assign genre `character' and `feature'.
230
231         * chartab.h (Vchise_system_db_directory): New extern when
232         HAVE_CONCORD is defined.
233
234 2010-09-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
235
236         * concord.c: Include <chise.h> if HAVE_LIBCHISE is defined.
237         (Qcharacter): New variable when HAVE_LIBCHISE is defined.
238         (Qfeature): Ditto.
239         (Fconcord_object_genre): New function.
240         (syms_of_concord):
241         - Add new builtin symbols `character' and `feature' when
242           HAVE_LIBCHISE is defined.
243         - Add Add new builtin function `concord-object-genre'.  
244         (complex_vars_of_concord): New function; assign genres `character'
245         and `feature' when HAVE_LIBCHISE is defined.
246
247 2010-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
248
249         * emacs.c (main_1): Call `complex_vars_of_concord' when
250         HAVE_CONCORD is defined.
251
252         * symsinit.h (complex_vars_of_concord): New prototype.
253
254 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
255
256         * chartab.c (allocate_character): Add `static'.
257
258 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
259
260         * chartab.c (allocate_character): New function.
261         (Fdefine_char): Use allocate_character().
262
263 2010-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
264
265         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.25
266         (ÅŒkawara).
267
268 2010-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
269
270         * chartab.c (save_uint8_byte_table): Fixed problem when a property
271         is unloaded.
272         (save_uint16_byte_table): Likewise.
273
274 2010-02-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
275
276         * chartab.c (Fchar_feature_property): New function when LIBCHISE
277         is enabled.
278         (Fput_char_feature_property): Likewise.
279         (syms_of_chartab): Add new builtin functions
280         `char-feature-property' and `put-char-feature-property' when
281         LIBCHISE is enabled.
282
283 2009-04-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
284
285         * mule-charset.c (Fmake_charset): Add DOC-string of 'iso-ir and
286         '=>iso-ir.
287         (Fcharset_property): Regard '=>iso-ir as same as `iso_ir.
288
289 2009-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
290
291         * mule-charset.c (Qto_iso_ir): New variable for XEmacs CHISE.
292         (make_charset): Add new argument `iso_ir'.
293         (Fmake_charset): Add new property `=>iso-ir' in XEmacs CHISE.
294         (Fmake_reverse_direction_charset): Copy CHARSET_ISO_IR(cs) in
295         XEmacs CHISE.
296         (Fcharset_property): Support `iso-ir' in XEmacs CHISE.
297         (syms_of_mule_charset): Add new builtin symbol `=>iso-ir' in
298         XEmacs CHISE.
299         (complex_vars_of_mule_charset): Specify argument `iso_ir' of
300         function `make_charset'.
301
302         * char-ucs.h (LEADING_BYTE_*): Enclose negative value with ( ).
303         (struct Lisp_Charset): Add new member `iso_ir'.
304         (CHARSET_ISO_IR): New macro.
305
306 2009-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
307
308         * mule-charset.c (Fdecode_char): Fix problem when decoding GR
309         code-point by GL charset.
310
311 2008-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
312
313         * concord.c (concord_id_validate): New function.
314         (structure_type_create_concord): Use `concord_id_validate' instead
315         of `concord_name_validate' to accept integer and character as =id.
316
317 2008-09-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
318
319         * concord.c (func_for_each_object): Fix bug about GC-protection.
320
321 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
322
323         * concord.c (Fconcord_object_put): Check argument FEATURE is a
324         symbol.
325
326 2008-09-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
327
328         * text-coding.c (struct decoding_stream): Add new member
329         `bom_flag' in XEmacs CHISE.
330         (reset_decoding_stream): Ignore U+FEFF in the beginning of stream
331         in XEmacs CHISE.
332
333 2008-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
334
335         * mule-charset.c: Move definition of `=jis-x0208@1978' to
336         lisp/mule/mule-conf.el.
337
338 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
339
340         * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
341         (make_charset): Add new argument `partial'.
342         (Fmake_charset): Add new property 'partial in XEmacs CHISE.
343         (Fmake_reverse_direction_charset): Modify for `make_charset'.
344         (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
345         CHISE.
346         (complex_vars_of_mule_charset): Modify for `make_charset'; specify
347         `=jis-x0208' as a partial coded-charset.
348
349 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
350
351         * text-coding.c (decode_add_er_char): Fix problem when a character
352         represented by an entity-reference is not defined.
353
354 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
355
356         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
357         Qrep_*.
358
359 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
360
361         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
362         (Kasagi).
363
364 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
365
366         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
367         is a relation feature.
368
369 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
370
371         * chartab.c (syms_of_chartab): Define
372         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
373
374         * chartab.h (Q_denotational): New extern when UTF2000 or
375         HAVE_CONCORD is defined.
376         (Q_denotational_from): Likewise.
377         (Q_subsumptive): Likewise.
378         (Q_subsumptive_from): Likewise.
379
380 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
381
382         * concord.c (concord_object_put): New function.
383         (Fconcord_object_put): Use `concord_object_put'.
384
385 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
386
387         * concord.c (Fconcord_define_object): New function.
388         (syms_of_concord): Add new builtin function
389         `concord-define-object'.
390
391 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
392
393         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
394         (Kamo).
395
396 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
397
398         * concord.c: Add EXFUN for Fconcord_object_get.
399         (Vconcord_genre_object_hash_table): New variable.
400         (concord_genre_cache_get_object): New function.
401         (concord_genre_cache_put_object): New function.
402         (Fconcord_make_object): Use object cache; put object-ID into `=id'
403         feature.
404         (Fconcord_object_put): Call `concord_index_sync' after
405         `concord_index_strid_put_obj'.
406         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
407
408 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
409
410         * concord.c (Fconcord_decode_object): Do GCPRO for
411         Fconcord_make_object.
412         (func_for_each_object): Likewise; do GCPRO for
413         for_each_object_closure->function.
414         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
415         for_each_object_closure->function, for_each_object_closure->genre,
416         for_each_object_closure->ds and for_each_object_closure->ret.
417         (concord_object_validate): Do GCPRO for Fconcord_make_object.
418
419 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
420
421         * concord.c: Add EXFUNs for Fconcord_decode_object and
422         Fconcord_object_put.
423         (Fconcord_make_object): Change order of arguments.
424         (Fconcord_decode_object): Modify for Fconcord_make_object.
425         (func_for_each_object): Likewise.
426         (concord_object_validate): Likewise.
427         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
428
429 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
430
431         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
432
433 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
434
435         * concord.c (Fconcord_decode_object): Try to use readable print
436         form as a key of Concord-index.
437         (Fconcord_object_get): Try to use readable print form as an ID of
438         Concord-object.
439         (Fconcord_object_put): Try to use readable print form as an ID of
440         Concord-object and a feature value.
441         (Fconcord_object_spec): Try to use readable print form as an ID of
442         Concord-object.
443
444 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
445
446         * concord.c (print_concord_object): Support readable form.
447
448 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
449
450         * emacs.c (main_1): Call `structure_type_create_concord' when
451         HAVE_CONCORD is defined.
452
453         * symsinit.h (structure_type_create_concord): New prototype.
454
455         * concord.c (Qconcord_object): New variable.
456         (Qgenre): Likewise.
457         (Q_id): Likewise.
458         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
459         for directory.
460         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
461         char*> for genre-name.
462         (Fconcord_feature_list): Likewise.
463         (Fconcord_make_object): Likewise.
464         (Fconcord_decode_object): Likewise; use <char*> instead of
465         <unsigned char*> for feature_name and strid.
466         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
467         c_obj and feature_name.
468         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
469         char*> for c_value.
470         (struct closure_for_object_spec): Use <char*> instead of <unsigned
471         char*> for member `object_id'.
472         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
473         char*> for feature-name.
474         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
475         for c_obj.
476         (func_for_each_object): Cast to avoid warnings.
477         (Fconcord_foreach_object_in_feature): Use <char*> instead of
478         <unsigned char*> for genre_name and feature_name.
479         (concord_name_validate): New function.
480         (concord_object_validate): Likewise.
481         (concord_object_instantiate): Likewise.
482         (syms_of_concord): Add new builtin symbols `concord-object',
483         `genre' and `=id'.
484         (structure_type_create_concord): New function.
485
486 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
487
488         * concord.c (Vconcord_ds_hash_table): New variable.
489         (Vconcord_genre_hash_table): New variable.
490         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
491         (Fconcord_ds_directory): New function.
492         (Fconcord_assign_genre): New function.
493         (Fconcord_genre_directory): New function.
494         (Fconcord_genre_ds): New function.
495         (Fconcord_feature_list): Allow to omit `ds'.
496         (Fconcord_make_object): Likewise.
497         (Fconcord_decode_object): Likewise.
498         (Fconcord_foreach_object_in_feature): Likewise.
499         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
500         Fconcord_assign_genre, Fconcord_genre_directory and
501         Fconcord_genre_ds.
502         (vars_of_concord): Setup Vconcord_ds_hash_table and
503         Vconcord_genre_hash_table.
504
505 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
506
507         * concord.c (struct closure_for_each_object): Add new member
508         `ret'.
509         (func_for_each_object): Setup the return value to
510         `for_each_object_closure->ret'.
511         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
512         returns the value instead of Qt.
513
514 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
515
516         * concord.c: New file.
517
518 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
519
520         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
521         `lrecord_type_concord_object'.
522
523 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
524
525         * symsinit.h (syms_of_concord): New prototype.
526         (vars_of_concord): New prototype.
527
528         * emacs.c (main_1): Setup symbols and variable about concord if
529         HAVE_CONCORD is defined.
530
531         * config.h.in (HAVE_CONCORD): New macro.
532
533 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
534
535         * chartab.c (Fput_char_attribute): For each character relation
536         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
537
538 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
539
540         * chartab.c (Fput_char_attribute): Use
541         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
542         calling `put_char_composition'.
543
544 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
545
546         * chartab.c (Q_halfwidth_of): New variable.
547         (put_char_composition): Return `<-halfwidth' instead of
548         `=decomposition' for compatibility mapping to single character
549         tagged `narrow'.
550         (Fput_char_attribute): Convert char-specs in value of
551         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
552         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
553         for `<-halfwidth'.
554         (syms_of_chartab): Add new symbol `<-halfwidth'.
555
556 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
557
558         * chartab.c (put_char_composition): Return
559         `<-formed@{isolated|initial|medial|final}' for compatibility
560         mapping to single character tagged
561         `{isolated|initial|medial|final}'.
562
563 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
564
565         * chartab.c (Q_compat_of): Deleted.
566         (put_char_composition): Return `<-FOO' for compatibility mapping
567         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
568         of `symbol_name (XSYMBOL(...))'.
569         (Fput_char_attribute): Convert char-specs in value of
570         `{<-|->}font[^*]*' to characters and put reverse links.
571         (Fsave_char_attribute_table): Don't refer Q_compat_of.
572         (syms_of_chartab): Delete builtin symbol `<-compat'.
573
574 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
575
576         * chartab.c (Q_circled_of): New variable.
577         (put_char_composition): Return `<-circled' instead of
578         `=decomposition' for compatibility mapping to single character
579         tagged `circle'.
580         (Fput_char_attribute): Convert char-specs in value of
581         `{<-|->}circled[^*]*' to characters and put reverse links.
582         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
583         for `<-circled'.
584         (syms_of_chartab): Add new symbol `<-circled'.
585
586 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
587
588         * chartab.c (Qto_decomposition_at_circled): New variable.
589         (put_char_composition): Return `=>decomposition@circled' instead
590         of `=decomposition' for compatibility decomposition mapping tagged
591         `circle'.
592         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
593
594 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
595
596         * chartab.c (Q_subscript_of): New variable.
597         (put_char_composition): Return `<-subscript' instead of
598         `=decomposition' for compatibility mapping to single character
599         tagged `sub'.
600         (Fput_char_attribute): Convert char-specs in value of
601         `{<-|->}subscript[^*]*' to characters and put reverse links.
602         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
603         for `<-subscript'.
604         (syms_of_chartab): Add new symbol `<-subscript'.
605
606 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
607
608         * chartab.c (Q_superscript_of): New variable.
609         (put_char_composition): Return `<-superscript' instead of
610         `=decomposition' for compatibility mapping to single character
611         tagged `super'.
612         (Fput_char_attribute): Convert char-specs in value of
613         `{<-|->}superscript[^*]*' to characters and put reverse links.
614         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
615         for `<-superscript'.
616         (syms_of_chartab): Add new symbol `<-superscript'.
617
618 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
619
620         * chartab.c (Qto_decomposition_at_compat): Deleted.
621         (Qto_decomposition_at_superscript): New variable.
622         (put_char_composition): Use `=>decomposition@superscript' instead
623         of `=decomposition' for compatibility decomposition mapping tagged
624         `super'.
625         (Fput_char_attribute): Fix condition about `put_char_composition'.
626         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
627         add news symbol `=>decomposition@superscript'.
628
629 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
630
631         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
632         for compatibility decomposition mapping tagged FOO.
633         (Fput_char_attribute): Modify for `put_char_composition'.
634
635 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
636
637         * chartab.c (Qto_decomposition_at_compat): New variable.
638         (Q_compat_of): Renamed from `Q_compatibility_of'.
639         (put_char_composition): Rename `Q_compatibility_of' to
640         `Q_compat_of'; return `=>decomposition@compat' for compatibility
641         decomposition mapping.
642         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
643         `Q_compat_of'.
644         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
645         `<-compatibility' to `<-compat'.
646
647 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
648
649         * chartab.c (Q_compatibility_of): New variable.
650         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
651         object is proved to be a cons cell; return `<-compatibility' if
652         the first element of argument `value' is `compat'.
653         (Fput_char_attribute): Eliminate the first value if
654         `put_char_composition' returns `<-compatibility'.
655         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
656         for `<-compatibility'.
657         (syms_of_chartab): Add new symbol `<-compatibility'.
658
659 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
660
661         * chartab.c (Q_canonical): New variable.
662         (put_char_composition): Return a feature name: return
663         `->canonical' if argument `value' specifies single character.
664         (Fput_char_attribute): Use `put_char_composition' to determine
665         feature name for `=decomposition' or `->denotational'.
666         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
667         for `->canonical'.
668         (syms_of_chartab): Add new symbol `->canonical'.
669
670 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
671
672         * chartab.c (Qmap_decomposition): New variable.
673         (Fput_char_attribute): Convert `->decomposition' to
674         `=decomposition'.
675         (syms_of_chartab): Add new symbol `=decomposition'.
676
677 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
678
679         * chartab.c (Fget_range_char_table): Fix serious problem when
680         `range' is nil.
681
682 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
683
684         * chartab.c (char_table_get_db): Use `read_from_c_string'.
685
686 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
687
688         * lread.c (read_from_c_string): New function.
689
690         * lisp.h (read_from_c_string): New prototype.
691
692 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
693
694         * chartab.c (Fput_char_attribute): Convert char-specs in value of
695         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
696         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
697         for `{<-|->}Oracle-Bones[^*]*'.
698
699 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
700
701         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
702         (Kizu).
703
704 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
705
706         * text-coding.c (Qccs_priority_list): New variable in XEmacs
707         CHISE.
708         (Fmake_coding_system): Support new property `ccs-priority-list' in
709         XEmacs CHISE.
710         (Fcoding_system_property): Likewise.
711         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
712         Vdefault_coded_charset_priority_list in XEmacs CHISE.
713         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
714         XEmacs CHISE.
715         (complex_vars_of_file_coding): Define new coding-system-property
716         `ccs-priority-list' in XEmacs CHISE.
717
718         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
719
720 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
721
722         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
723         changed to normal function.
724         (encode_char_2): Likewise.
725
726         * mule-charset.c (decoding_table_put_char): Copied from
727         char-ucs.h; changed to normal function.
728         (encode_char_2): Likewise.
729
730 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
731
732         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
733         New extern.
734         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
735         (encode_char_2_search_children): New inline function.
736         (encode_char_2): Refer
737         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
738         and use `encode_char_2_search_children'.
739
740 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
741
742         * mule-charset.c
743         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
744         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
745         (vars_of_mule_charset): Add new variable
746         `display-coded-charset-priority-use-inheritance' and
747         `display-coded-charset-priority-use-hierarchy-order'.
748
749 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
750
751         * char-ucs.h (Q_subsumptive): New extern.
752         (Q_denotational): Likewise.
753         (encode_char_2): Search children specified by `->subsumptive' and
754         `->denotational'.
755
756 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
757
758         * mule-charset.c (complex_vars_of_mule_charset): Modify the
759         X-registry of `ucs-bmp'.
760
761 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
762
763         * chartab.c (char-variants): Refer `->subsumptive',
764         `->denotational' and `->identical' as same as `->ucs-unified'.
765
766 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
767
768         * chartab.c (Fput_char_attribute): Convert char-specs in value of
769         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
770         links.
771
772 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
773
774         * text-coding.c: Add EXFUN for `Fregexp_quote'.
775         (decode_add_er_char): Fix problem about infinite loop when a CCS
776         specified in `coded-charset-entity-reference-alist' is not
777         existed.
778
779 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
780
781         * mule-charset.c (syms_of_mule_charset): Rename
782         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
783
784 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
785
786         * fns.c (simplify_char_spec): Don't allocate new character-object
787         if specified char_spec does not have any CCS-features.
788
789         * chartab.h: Add EXFUN for Fdefine_char.
790
791         * chartab.c: Delete EXFUN for Fdefine_char.
792
793 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
794
795         * fns.c (simplify_char_spec): Use Fdefine_char instead of
796         Ffind_char for char-spec.
797
798 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
799
800         * lisp-disunion.h (XCHARVAL): Fix condition about
801         SIZEOF_EMACS_INT.
802
803 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
804
805         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
806         <int> for `code'.
807         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
808         point; use <Emchar> instead of <int> for character-id.
809
810 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
811
812         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
813         (make_char): Likewise.
814         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
815         environment.
816         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
817         instead of <int> as the type of return value; use <Lisp_Object>
818         instead of <Emchar> as the type of argument.
819         (XCHARVAL[macro version]): Cast the result into <Emchar>.
820
821         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
822         syntaxcode> instead of <int>.
823
824 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
825
826         * chartab.c (put_char_composition): Use DECODE_CHAR to get
827         character corresponding with UCS code point.
828         (Fput_char_attribute): Likewise.
829
830         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
831         character in the UCS decoding-table if the char-id is not equal to
832         the UCS code point.
833
834 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
835
836         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
837         for aliases; write `description'; write
838         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
839         not 0.
840
841 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
842
843         * chartab.c (Fsave_char_attribute_table): Don't use
844         `save_charset_properties'.
845
846         * mule-charset.c (Fsave_charset_properties): Renamed from
847         `save_charset_properties' and changed to Lisp function again;
848         write property `type' as `CCS'; write properties `final-byte' and
849         `mother' if they exists.
850         (syms_of_mule_charset): Revive builtin function
851         `save-charset-properties' when HAVE_LIBCHISE is defined.
852
853 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
854
855         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
856         instead of Vexec_directory.
857         (char_attribute_system_db_file): Likewise.
858
859 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
860
861         * chartab.c (Fsave_char_attribute_table): Use
862         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
863         defined.
864
865         * mule-charset.c (save_charset_properties): Renamed from
866         `Fsave_charset_properties'; changed to non-Lisp function.
867         (syms_of_mule_charset): Abolish builtin function
868         `save-charset-properties'.
869
870 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
871
872         * mule-charset.c (Fsave_charset_properties): New function when
873         HAVE_LIBCHISE is defined.
874         (syms_of_mule_charset): Add new builtin function
875         `save-charset-properties' when HAVE_LIBCHISE is defined.
876
877 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
878
879         * chartab.c (Fput_char_attribute): Convert char-specs in value of
880         `{<-|->}ancient[^*]*' to characters and put reverse links.
881         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
882         for `{<-|->}ancient[^*]*'.
883
884 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
885
886         * chartab.c (Fput_char_attribute): Convert char-specs in value of
887         `{<-|->}original[^*]*' to characters and put reverse links.
888         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
889         for `{<-|->}original[^*]*'.
890
891 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
892
893         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
894
895 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
896
897         * mule-charset.c (Qsystem_char_id): New variable.
898
899         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
900         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
901
902 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
903
904         * chartab.c (Fput_char_attribute): When processing a reference of
905         a character, put into the end of the reversed reference of each
906         target character.
907
908 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
909
910         * chartab.c (Q_same): Deleted.
911         (Q_same_of): Deleted.
912         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
913         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
914         for `{<-|->}same'.
915         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
916
917 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
918
919         * chartab.c (Q_vulgar): Deleted.
920         (Q_vulgar_of): Deleted.
921         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
922         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
923         for `{<-|->}vulgar'.
924         (syms_of_chartab): Don't define `{<-|->}vulgar'.
925
926 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
927
928         * chartab.c (Fput_char_attribute): Convert char-specs in value of
929         `{<-|->}wrong[^*]*' to characters and put reverse links.
930         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
931         for `{<-|->}wrong[^*]*'.
932
933 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
934
935         * chartab.c (Q_vulgar): New variable.
936         (Q_vulgar_of): New variable.
937         (Fput_char_attribute): Convert char-specs in value of
938         `{->|<-}vulgar' to characters and put reverse links.
939         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
940         for `{->|<-}vulgar'.
941         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
942
943 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
944
945         * text-coding.c (decode_add_er_char): Must to quote prefix string
946         as regexp.
947
948 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
949
950         * mule-charset.c (put_char_ccs_code_point): Store characters of
951         =ucs whose code_points >= 0xF0000.
952
953 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
954
955         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
956         CHISE.
957         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
958         CHISE.
959         (complex_vars_of_mule_charset): Add new coded-charset
960         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
961         builtin characters over 0xEFFFF.
962
963         * chartab.c (syms_of_chartab): Don't define symbol
964         `system-char-id' in every case.
965
966         * char-ucs.h (Qsystem_char_id): New extern variable.
967         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
968
969 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
970
971         * text-coding.c (char_encode_utf8): Try to use entity-references
972         for U-000F0000 ...  U-0010FFFF.
973
974 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
975
976         * text-coding.c (ER_BUF_SIZE): New macro.
977         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
978         `er_buf'.
979         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
980         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
981
982 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
983
984         * chartab.c (find_char_feature_in_family): New function.
985         (Fchar_feature): Use `find_char_feature_in_family' with
986         `->identical', `<-subsumptive' and `<-denotational'.
987
988 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
989
990         * text-coding.c (char_encode_as_entity_reference): Allow prefix
991         within 8 characters; fix infinite loop.
992
993 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
994
995         * chartab.c (Q_same): New variable.
996         (Q_same_of): New variable.
997         (Fput_char_attribute): Convert char-specs in value of
998         `{->|<-}same' to characters and put reverse links.
999         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
1000         for `{->|<-}same'.
1001         (syms_of_chartab): Add new symbols `{->|<-}same'.
1002
1003 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1004
1005         * chartab.c (Q_component): New variable.
1006         (Q_component_of): Likewise.
1007         (Fput_char_attribute): Convert char-specs in value of
1008         `{->|<-}ideographic-component-forms' to characters and put reverse
1009         links.
1010         (syms_of_chartab): Add new symbols
1011         `{->|<-}ideographic-component-forms'.
1012
1013 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1014
1015         * chartab.c (Q_identical): New variable.
1016         (Q_identical_from): New variable.
1017         (Fchar_feature): Regard `->identical' as a feature to find
1018         ancestors.
1019         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
1020         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
1021         for `{->|<-}identical'.
1022         (syms_of_chartab): Add new symbols `{->|<-}identical'.
1023
1024 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1025
1026         * char-ucs.h (encode_char_2): New inline function.
1027         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
1028
1029 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1030
1031         * chartab.c (Fput_char_attribute): Convert char-specs to
1032         characters in value of `ideographic-structure'.
1033         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
1034         for `{<-|->}simplified(@...)'.
1035         (Fdefine_char): Try to use predefined character's id.
1036
1037 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1038
1039         * fns.c (simplify_char_spec): Try to convert builtin chars to
1040         defined chars.
1041
1042 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1043
1044         * chartab.c (Fput_char_attribute): Convert char-specs in value of
1045         `<-simplified[^*]*' to characters and put reverse links.
1046
1047 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1048
1049         * chartab.c (Q_subsumptive): Renamed from Q_unified.
1050         (Q_subsumptive_from): Renamed from Q_unified_from.
1051         (Fchar_feature): Use `Q_subsumptive_from' instead of
1052         `Q_unified_from'.
1053         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
1054         `Q_unified'.
1055         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
1056         `<-unified' to `<-subsumptive'.
1057
1058 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1059
1060         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
1061         inheritance itself; fix typo; stop recursive search if cyclic
1062         inheritance is found.
1063
1064 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1065
1066         * chartab.c (Q_denotational): New variable.
1067         (Q_denotational_from): New variable.
1068         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
1069         (put_char_attribute): New function.
1070         (Fput_char_attribute): Use `put_char_attribute'; regard
1071         `->denotational' and `<-denotational' as same as `->unified' and
1072         `<-unified'.
1073         (syms_of_chartab): Add new symbols `->denotational' and
1074         `<-denotational'.
1075
1076 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1077
1078         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
1079         `Fget_char_attribute'.
1080         (Fchar_variants): Likewise.
1081         (get_char_table): Likewise.
1082         (Fchar_feature): New function.
1083         (put_char_composition): Use `Fchar_feature' instead of
1084         `Fget_char_attribute'.
1085         (Fput_char_attribute): Likewise; don't put the target character
1086         into its `->unified' value.
1087         (syms_of_chartab): Add new builtin function `char-feature'.
1088
1089 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1090
1091         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
1092         `Fget_char_attribute'.
1093         (char_encode_utf8): Likewise.
1094
1095         * chartab.h: Add an EXFUN for `Fchar_feature'.
1096
1097 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1098
1099         * chartab.c (Vnext_defined_char_id): New variable.
1100         (Fput_char_attribute): Accept characters in `->unified'.
1101         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
1102         new characters which are not related with builtin char-id ranges.
1103         (vars_of_chartab): Add new variable `next-defined-char-id'.
1104
1105 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1106
1107         * chartab.c (Q_unified): New variable.
1108         (Q_unified_from): New variable.
1109         (Fput_char_attribute): Add code for `->unified'.
1110         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
1111         XEmacs CHISE.
1112
1113 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1114
1115         * mule-charset.c (decode_ccs_conversion): New function.
1116         (decode_defined_char): Use `decode_ccs_conversion'.
1117         (decode_builtin_char): Likewise.
1118
1119 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1120
1121         * char-ucs.h: Change some charset-ids of private coded-charsets.
1122
1123 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1124
1125         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
1126         (char_encode_as_entity_reference): Likewise.
1127         (decode_coding_big5): Modify for `decode_defined_char' and
1128         `DECODE_CHAR'.
1129         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
1130         avoid compiler warning.
1131         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
1132
1133         * mule-charset.c (decode_defined_char): Add new argument
1134         `without_inheritance'.
1135         (Fdecode_char): Add new optional argument `without_inheritance'.
1136         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1137
1138         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
1139         (simplify_char_spec): Likewise.
1140
1141         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
1142         setting.
1143
1144         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
1145         (map_char_table): Likewise.
1146         (Fdefine_char): Use `Fdecode_char' without inheritance.
1147         (Ffind_char): Modify for `Fdecode_char'.
1148
1149         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
1150
1151         * char-ucs.h (decode_defined_char): Add new argument
1152         `without_inheritance'.
1153         (DECODE_CHAR): Likewise.
1154         (MAKE_CHAR): Modify for `DECODE_CHAR'.
1155
1156 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1157
1158         * chartab.c (Vchise_system_db_directory): New variable.
1159         (vars_of_chartab): Add new variable `chise-system-db-directory'.
1160
1161 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1162
1163         * chartab.c: EXFUN `Fmount_char_attribute_table'.
1164         (print_chartab_range): Don't define when `UTF2000' is defined.
1165         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
1166         `CHISE_DS_open'.
1167
1168 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1169
1170         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
1171         and optional argument `rehash' is specified, call
1172         `open_chise_data_source_maybe' before
1173         `chise_ds_foreach_char_feature_name' is called.
1174
1175 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1176
1177         * chartab.c (char_attribute_list_reset_map_func): New function
1178         when HAVE_LIBCHISE is defined.
1179         (Fchar_attribute_list): Add new optional argument `rehash' when
1180         HAVE_LIBCHISE is defined.
1181         (open_chise_data_source_maybe): Use "chise-db" instead of
1182         "char-db".
1183         (char_attribute_system_db_file): Likewise.
1184         (Fload_char_attribute_table): Use
1185         `chise_feature_foreach_char_with_value' instead of
1186         `chise_char_feature_value_iterate'.
1187
1188 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1189
1190         * chartab.c (Vchise_db_directory): New variable.
1191         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
1192
1193 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1194
1195         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
1196         instead of HAVE_CHISE to specify using with libchise.
1197
1198         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
1199
1200         * chartab.h: Don't use HAVE_CHISE_CLIENT.
1201
1202         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
1203         defined or HAVE_LIBCHISE_LIBCHISE is defined.
1204         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
1205         is defined.
1206         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
1207         HAVE_CHISE to specify using with libchise.
1208         (syms_of_chartab): Don't define symbol `system-char-id' when
1209         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
1210
1211 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1212
1213         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1214         specify CHISE DB support.
1215         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
1216         of `char_attribute_system_db_file' to check feature DB file.
1217
1218         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
1219         HAVE_CHISE_CLIENT to specify CHISE DB support.
1220
1221         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1222         specify CHISE DB support.
1223         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
1224         not defined.
1225         (Freset_char_attribute_table): Use `chise_feature_setup_db'
1226         instead of `char_attribute_system_db_file' to check feature DB
1227         file.
1228
1229 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1230
1231         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
1232         `HAVE_CHISE_CLIENT'.
1233
1234 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1235
1236         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
1237         (Fsave_charset_mapping_table): Don't use
1238         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1239
1240         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
1241         (HAVE_LIBCHISE): New macro.
1242
1243         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
1244
1245         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
1246         (Fsave_char_attribute_table): Don't use
1247         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1248
1249 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1250
1251         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
1252         defined.
1253         (save_uint16_byte_table): Likewise.
1254         (save_byte_table): Likewise.
1255         (char_table_get_db): Use `chise_ds_load_char_feature_value'
1256         instead of `chise_char_load_feature_value'.
1257         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
1258
1259 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1260
1261         * chartab.h (struct Lisp_Char_Table): Delete member
1262         `feature_table' if CHISE is defined.
1263
1264         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
1265         (Fcopy_char_table): Likewise.
1266         (char_table_open_db_maybe): Likewise.
1267         (char_table_close_db_maybe): Likewise.
1268         (char_table_get_db): Likewise.
1269         (Fmount_char_attribute_table): Likewise.
1270         (Fload_char_attribute_table): Likewise.
1271
1272 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1273
1274         * mule-charset.c (load_char_decoding_entry_maybe): Use
1275         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
1276         `chise_ccs_decode'.
1277
1278 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1279
1280         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
1281         instead of `chise_open_data_source'.
1282         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
1283         `chise_ds_close'.
1284
1285 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1286
1287         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
1288         instead of `chise_ds_open_feature_table'.
1289         (char_table_close_db_maybe): Don't use `chise_ft_close'.
1290
1291 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1292
1293         * mule-charset.c (Fsave_charset_mapping_table): Use
1294         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
1295         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
1296         `chise_ccs_sync' instead of `chise_ccst_close'.
1297         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
1298
1299         * chartab.c (open_chise_data_source_maybe): Modify for
1300         `chise_open_data_source'.
1301         (char_table_open_db_maybe): Modify for
1302         `chise_ds_open_feature_table'.
1303
1304 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1305
1306         * mule-charset.c (load_char_decoding_entry_maybe): Use
1307         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
1308         `chise_ccst_close'.
1309
1310 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1311
1312         * mule-charset.c (Fsave_charset_mapping_table): Use
1313         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
1314         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
1315         `chise_dt_put_char' and `chise_dt_close'.
1316         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
1317         `chise_ccs_decode' and `chise_ccst_close' instead of
1318         `chise_ds_open_decoding_table', `chise_dt_get_char' and
1319         `chise_dt_close'.
1320
1321         * chartab.c (char_table_get_db): Use
1322         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
1323         (load_char_attribute_table_map_func): Modify for
1324         `chise_char_feature_value_iterate'.
1325         (Fload_char_attribute_table): Use
1326         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
1327
1328 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1329
1330         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
1331
1332 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1333
1334         * chartab.c (put_char_table): Modify for inherited coded-charsets
1335         in XEmacs CHISE.
1336
1337 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1338
1339         * chartab.c (Fput_char_table_map_function): Fixed.
1340         (word_boundary_p): Don't check charset in XEmacs CHISE.
1341
1342 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1343
1344         * mule-charset.c (Fsave_charset_mapping_table): Use
1345         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1346         instead of `chise_open_decoding_table'; refer
1347         `default_chise_data_source'; use `chise_dt_close' instead of
1348         `chise_close_decoding_table'.
1349         (load_char_decoding_entry_maybe): Likewise.
1350
1351         * chartab.c (default_chise_data_source): New variable when `CHISE'
1352         is defined.
1353         (Fcopy_char_table): `ct->ds' is deleted.
1354         (open_chise_data_source_maybe): New function.
1355         (Fclose_char_data_source): New function.
1356         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1357         use `chise_ds_open_feature_table' instead of
1358         `chise_open_feature_table'.
1359         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1360         `chise_close_feature_table'; `cit->ds' is deleted.
1361         (syms_of_chartab): Add new builtin function
1362         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1363
1364         * chartab.h (default_chise_data_source): New extern variable.
1365         (open_chise_data_source_maybe): New prototype.
1366         (struct Lisp_Char_Table): Delete `ds'.
1367
1368 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1369
1370         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1371         `CHISE' is defined.
1372
1373 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1374
1375         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1376         not defined; add code for non-libchise setting.
1377         (char_table_close_db_maybe): Likewise.
1378         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1379         defined.
1380         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1381         even if `CHISE' is not defined.
1382         (Freset_char_attribute_table): Likewise.
1383         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1384         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1385         `char_table_get_db'.
1386         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1387         `char_table_close_db_maybe' even if `CHISE' is not defined.
1388
1389 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1390
1391         * chartab.c (char_table_open_db_maybe): New function.
1392         (char_table_close_db_maybe): New function.
1393         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1394         (Freset_char_attribute_table): Likewise.
1395         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1396         `char_table_close_db_maybe'.
1397         (Fload_char_attribute_table): Likewise.
1398
1399 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1400
1401         * chartab.c: Don't include <chise.h> because it is included in
1402         chartab.h.
1403         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1404         defined.
1405         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1406         `CHISE' is defined.
1407         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1408         `CHISE' is defined.
1409         (Fclose_char_attribute_table): Close `ct->feature_table' and
1410         `ct->ds' when `CHISE' is defined.
1411         (Freset_char_attribute_table): Likewise.
1412         (load_char_attribute_maybe): Use `cit->ds' and
1413         `cit->feature_table' when `CHISE' is defined.
1414         (Fload_char_attribute_table): Likewise.
1415
1416         * chartab.h: Include <chise.h> when `CHISE' is defined.
1417         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1418         when `CHISE' is defined.
1419
1420 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1421
1422         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1423         is defined.
1424         (char_table_description): Likewise.
1425         (Fmake_char_table): Likewise.
1426         (Fcopy_char_table): Likewise.
1427         (Fmount_char_attribute_table): Likewise.
1428         (Fclose_char_attribute_table): Likewise.
1429         (Freset_char_attribute_table): Likewise.
1430         (load_char_attribute_maybe): Likewise.
1431         (Fload_char_attribute_table): Likewise.
1432
1433         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1434         defined.
1435
1436 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1437
1438         * chartab.c (load_char_attribute_table_map_func): New function
1439         when CHISE is defined.
1440         (Qload_char_attribute_table_map_function): Don't define when CHISE
1441         is defined.
1442         (Fload_char_attribute_table_map_function): Likewise.
1443         (Fload_char_attribute_table): Use libchise when `CHISE' is
1444         defined.
1445         (syms_of_chartab): Don't define
1446         `load-char-attribute-table-map-function' when CHISE is defined.
1447
1448 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1449
1450         * chartab.c: Include <chise.h> when `CHISE' is defined.
1451         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1452
1453 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1454
1455         * mule-charset.c (charset_code_point): Fix problem when searching
1456         in mother CCS fails with `defined_only' mode.
1457
1458 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1459
1460         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1461         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1462         (put_char_composition): Likewise.
1463         (Fput_char_attribute): Likewise.
1464         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1465
1466 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1467
1468         * chartab.c (Q_ucs): Deleted.
1469         (Fput_char_attribute): Don't refer `->ucs'.
1470         (Fdefine_char): Likewise.
1471         (Ffind_char): Likewise.
1472         (syms_of_chartab): Delete `->ucs'.
1473
1474 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1475
1476         * mule-charset.c (Qmap_cns11643_2): Renamed from
1477         `Qchinese_cns11643_2'.
1478         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1479         `chinese-cns11643-2'.
1480         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1481         `=cns11643-2'.
1482
1483 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1484
1485         * mule-charset.c (Qmap_cns11643_1): Renamed from
1486         `Qchinese_cns11643_1'.
1487         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1488         `chinese-cns11643-1'.
1489         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1490         `=cns11643-1'.
1491
1492 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1493
1494         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1495         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1496         `chinese-gb12345'.
1497         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1498         `=gb12345'.
1499
1500 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1501
1502         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1503         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1504         `chinese-gb2312'.
1505         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1506         `=gb2312'.
1507
1508 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1509
1510         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1511         (syms_of_mule_charset): Add new symbol `=big5' instead of
1512         `chinese-big5'.
1513         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1514
1515 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1516
1517         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1518         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1519         `korean-ksc5601'.
1520         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1521         `=ks-x1001'.
1522
1523 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1524
1525         * mule-charset.c (Qmap_jis_x0212): Renamed from
1526         `Qjapanese_jisx0212'.
1527         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1528         `japanese-jisx0212'.
1529         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1530         `=jis-x0212'.
1531
1532 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1533
1534         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1535         `Qjapanese_jisx0208'.
1536         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1537         of `japanese-jisx0208'.
1538         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1539         `=jis-x0208-1983'.
1540
1541 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1542
1543         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1544         `Qjapanese_jisx0208_1978'.
1545         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1546         of `japanese-jisx0208-1978'.
1547         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1548         `=jis-x0208-1978'.
1549
1550 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1551
1552         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1553         only for XEmacs CHISE.
1554
1555 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1556
1557         * char-ucs.h: Compact non-ISO-IR charset-ids.
1558         (LEADING_BYTE_UCS): Changed to -177.
1559         (LEADING_BYTE_CONTROL_1): Changed to -77.
1560         (LEADING_BYTE_UCS_BMP): Changed to -176.
1561         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1562
1563 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1564
1565         * mule-charset.c (Qiso_ir): New variable.
1566         (Fmake_charset): Recognise new property `iso-ir'.
1567         (syms_of_mule_charset): Add new symbol `iso-ir'.
1568
1569 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1570
1571         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1572         n to -n; charset-id of non ISO-IR sets are changed to positive
1573         numbers.
1574
1575 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1576
1577         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1578         for &MCS-XXXXXXXX; values.
1579
1580 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1581
1582         * mule.c (Vxemacs_chise_version): Renamed from
1583         `Vutf_2000_version'.
1584         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1585         `utf-2000-version' as an alias for `xemacs-chise-version'.
1586
1587 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1588
1589         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1590         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1591         defined.
1592
1593         * config.h.in (CHISE): New macro.
1594
1595 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1596
1597         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1598         of `ucs'.
1599         (Qmap_ucs): New variable.
1600         (syms_of_mule_charset): Add new symbol `=ucs'.
1601         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1602
1603         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1604         (simplify_char_spec): Likewise.
1605
1606         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1607
1608         * char-ucs.h (Qmap_ucs): New extern variable.
1609
1610 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1611
1612         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1613         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1614         don't define it when UTF2000 is not defined.
1615         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1616         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1617         when UTF2000 is not defined.
1618         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1619         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1620
1621 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1622
1623         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1624
1625         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1626         (Qucs_gb): Deleted.
1627         (syms_of_mule_charset): Delete `ucs-gb'.
1628         (complex_vars_of_mule_charset): Likewise.
1629
1630 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1631
1632         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1633
1634         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1635         (Qucs_cns): Deleted.
1636         (syms_of_mule_charset): Delete `ucs-cns'.
1637         (complex_vars_of_mule_charset): Likewise.
1638
1639 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1640
1641         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1642
1643         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1644         (Qucs_jis): Deleted.
1645         (syms_of_mule_charset): Delete `ucs-jis'.
1646         (complex_vars_of_mule_charset): Likewise.
1647
1648 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1649
1650         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1651
1652         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1653         (Qucs_ks): Deleted.
1654         (syms_of_mule_charset): Delete `ucs-ks'.
1655         (complex_vars_of_mule_charset): Likewise.
1656
1657 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1658
1659         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1660         (Qideograph_daikanwa_2): Deleted.
1661         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1662         (complex_vars_of_mule_charset): Likewise.
1663
1664         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1665         (LEADING_BYTE_DAIKANWA_1): Deleted.
1666         (LEADING_BYTE_DAIKANWA_2): Deleted.
1667         (MIN_CHAR_DAIKANWA): Deleted.
1668         (MAX_CHAR_DAIKANWA): Deleted.
1669
1670 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1671
1672         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1673         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1674         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1675
1676         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1677         (Vcharset_ideograph_daikanwa): Deleted.
1678         (Qideograph_hanziku_{1..12}): Deleted.
1679         (Qideograph_daikanwa): Deleted.
1680         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1681         Vcharset_ideograph_daikanwa.
1682         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1683         `ideograph-hanziku-{1..12}'.
1684         (complex_vars_of_mule_charset): Likewise.
1685
1686 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1687
1688         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1689
1690         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1691         (Qideograph_gt_pj_{1..11}): Deleted.
1692         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1693         (complex_vars_of_mule_charset): Likewise.
1694
1695 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1696
1697         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1698         (Vcharset_ideograph_gt): Deleted.
1699         (Qucs_big5): Deleted.
1700         (Qideograph_gt): Deleted.
1701         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1702         `ideograph-gt'.
1703         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1704         and `ideograph-gt'.
1705
1706         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1707         (LEADING_BYTE_GT): Deleted.
1708         (MIN_CHAR_GT): Deleted.
1709         (MAX_CHAR_GT): Deleted.
1710
1711 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1712
1713         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1714
1715 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1716
1717         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1718         (save_uint16_byte_table): Likewise.
1719         (save_byte_table): Likewise; convert values by it.
1720         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1721         for `ideographic-structure'.
1722         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1723         as the filter for `ideographic-structure'.
1724
1725 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1726
1727         * chartab.c (put_char_composition): New function.
1728         (Fput_char_attribute): Use `put_char_composition'; use
1729         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1730
1731         * fns.c (simplify_char_spec): New function.
1732         (char_ref_simplify_spec): New function.
1733         (Fchar_refs_simplify_char_specs): New function.
1734         (syms_of_fns): Add new builtin function
1735         `char-refs-simplify-char-specs'.
1736
1737 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1738
1739         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1740         (Qideograph_cbeta): Deleted.
1741         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1742         (complex_vars_of_mule_charset): Likewise.
1743
1744         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1745         (MIN_CHAR_CBETA): Comment out.
1746         (MAX_CHAR_CBETA): Likewise.
1747
1748 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1749
1750         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1751         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1752         CHISE client feature.
1753
1754 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1755
1756         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1757
1758 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1759
1760         * mule-charset.c (charset_lookup_description_1): Use
1761         `NUM_LEADING_BYTES' in UTF-2000.
1762
1763 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1764
1765         * char-ucs.h (GC_CHARSETP): Deleted.
1766
1767 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1768
1769         * char-ucs.h (MAX_CHAR_GT): Updated.
1770
1771 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1772
1773         * text-coding.c: Sync with XEmacs 21.4.10.
1774
1775 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1776
1777         * mule-charset.c (Vcharset_china3_jef): Deleted.
1778         (Qchina3_jef): Deleted.
1779         (syms_of_mule_charset): Don't define `china3-jef'.
1780         (complex_vars_of_mule_charset): Likewise.
1781
1782         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1783         (MIN_CHAR_CHINA3_JEF): Comment out.
1784         (MAX_CHAR_CHINA3_JEF): Comment out.
1785
1786 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1787
1788         * mule-charset.c (Vcharset_ucs_gb): New variable.
1789         (Qucs_gb): New variable.
1790         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1791         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1792
1793         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1794
1795 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1796
1797         * mule-charset.c (charset_code_point): if a coded-charset has a
1798         final-byte, don't inherit the builtin range of the mother CCS.
1799
1800 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1801
1802         * mule-charset.c (charset_code_point): Fix problem about
1803         inheritance.
1804
1805 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1806
1807         * mule-charset.c (decode_builtin_char): Reorganized.
1808
1809 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1810
1811         * text-coding.c (char_encode_as_entity_reference): Modify for
1812         `charset_code_point'.
1813         (char_encode_shift_jis): Likewise.
1814         (char_encode_big5): Likewise.
1815         (char_encode_utf8): Likewise.
1816         (char_encode_iso2022): Likewise.
1817
1818         * mule-charset.c (charset_code_point): Add new argument
1819         `defined_only'.
1820         (Fencode_char): Add new optional argument `defined_only'.
1821
1822         * chartab.c (put_char_table): Modify for `charset_code_point'.
1823
1824         * char-ucs.h (charset_code_point): Add new argument
1825         `defined_only'.
1826         (encode_char_1): Modify for `charset_code_point'.
1827
1828 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1829
1830         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1831         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1832
1833 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1834
1835         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1836         (Qjis_x0208): Likewise.
1837         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1838         XCHARSET_FINAL(charset).
1839         (charset_code_point): Modify condition for final-byte based
1840         builtin-chars.
1841         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1842         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1843         in UTF-2000; specify `=jis-x0208' as the mother of
1844         `japanese-jisx0208-1978', `japanese-jisx0208' and
1845         `japanese-jisx0208-1990' in UTF-2000.
1846
1847 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1848
1849         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1850
1851 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1852
1853         * text-coding.c (decode_coding_utf16): Support UTF-16.
1854         (char_encode_utf16): Fixed.
1855
1856 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1857
1858         * text-coding.c (Qutf16): New variable in MULE.
1859         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1860         (Fcoding_system_type): Add `utf-16' in MULE.
1861         (struct detection_state): Add a structure for utf16 in MULE.
1862         (detect_coding_type): Setup st->utf16.mask in MULE.
1863         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1864         MULE.
1865         (reset_encoding_stream): Use `char_encode_utf16' and
1866         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1867         (detect_coding_utf16): New function [incomplete].
1868         (decode_coding_utf16): New function [support only UCS-2].
1869         (char_encode_utf16): New function.
1870         (char_finish_utf16): New function.
1871         (syms_of_file_coding): Add new symbol `utf-16'; setup
1872         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1873
1874         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1875         UTF-2000.
1876         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1877         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1878
1879 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1880
1881         * chartab.c (put_char_table): When a charset is specified as a
1882         range in UTF-2000, don't support builtin characters.
1883
1884 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1885
1886         * mule-charset.c (decode_defined_char): Don't refer external
1887         database if Qunbound or Qnil are found.
1888         (Fsave_charset_mapping_table): Don't define it if
1889         HAVE_CHISE_CLIENT is not defined.
1890         (Freset_charset_mapping_table): New function.
1891         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1892         found in external database.
1893         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1894         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1895         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1896
1897 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1898
1899         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1900         not.
1901
1902 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1903
1904         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1905         Q_lowercase, Q_uppercase in UTF-2000.
1906
1907         * chartab.c (get_char_table): Add special code for the standard
1908         case table to use character attribute `->downcase' and
1909         `->uppercase' for case operations in UTF-2000.
1910
1911         * casetab.c (Qflippedcase): New variable in UTF-2000.
1912         (Q_lowercase): Likewise.
1913         (Q_uppercase): Likewise.
1914         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1915         and `->uppercase' in UTF-2000.
1916         (complex_vars_of_casetab): Assign attribute name `downcase' to
1917         downcase and CANON table of Vstandard_case_table in UTF-2000;
1918         assign attribute name `flippedcase' to upcase and EQV table of
1919         Vstandard_case_table in UTF-2000.
1920
1921 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1922
1923         * text-coding.c (decode_add_er_char): Support isolated-chars.
1924         (char_encode_as_entity_reference): Likewise.
1925
1926 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1927
1928         * emacs.c (Vutf_2000_lisp_directory): New variable.
1929         (Vconfigure_utf_2000_lisp_directory): Likewise.
1930         (complex_vars_of_emacs): Add new variable
1931         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1932
1933 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1934
1935         * char-ucs.h (DECODE_CHAR): Delete special code for
1936         `chinese-big5-1' and `chinese-big5-2'.
1937
1938         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1939         (Qbig5_2): Likewise.
1940         (decode_defined_char): Support CONVERSION_BIG5_1 and
1941         CONVERSION_BIG5_2.
1942         (decode_builtin_char): Likewise.
1943         (charset_code_point): Likewise.
1944         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1945         'conversion in UTF-2000.
1946         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1947         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1948         `chinese-big5-2' as children of `chinese-big5'.
1949
1950         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1951         (CONVERSION_BIG5_2): New macro.
1952
1953 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1954
1955         * text-coding.c (char_encode_big5): Support entity-reference.
1956
1957 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1958
1959         * text-coding.c (char_encode_as_entity_reference): New function.
1960         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1961
1962 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1963
1964         * text-coding.c (decode_coding_big5): Support entity-reference
1965         decoding feature.
1966
1967 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1968
1969         * text-coding.c (allocate_coding_system): Initialize initial
1970         charsets for CODESYS_UTF8.
1971         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1972         charset-g2 for CODESYS_UTF8.
1973         (decode_coding_utf8): Use charset-g0.
1974         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1975         to force variants to map to UCS.
1976
1977 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1978
1979         * text-coding.c (Qutf_8_mcs): New variable.
1980         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1981         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1982         instead of `utf-8' in UTF-2000.
1983
1984 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1985
1986         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1987         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1988         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1989         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1990         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1991         CONVERSION_96x96x96x96 are introduced.
1992         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1993         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1994         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1995
1996         * char-ucs.h (CONVERSION_94): New macro.
1997         (CONVERSION_96): New macro.
1998         (CONVERSION_94x94): New macro.
1999         (CONVERSION_96x96): New macro.
2000         (CONVERSION_94x94x94): New macro.
2001         (CONVERSION_96x96x96): New macro.
2002         (CONVERSION_94x94x94x60): New macro.
2003         (CONVERSION_94x94x94x94): New macro.
2004         (CONVERSION_96x96x96x96): New macro.
2005
2006 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2007
2008         * chartab.c (Vcharacter_variant_table): Deleted.
2009         (Fchar_variants): Use character-attribute `->ucs-variants' instead
2010         of `Vcharacter_variant_table'.
2011         (Fput_char_attribute): Likewise.
2012         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
2013         (complex_vars_of_chartab): Likewise.
2014
2015 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2016
2017         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
2018
2019         * fns.c (Qideographic_structure): New variable.
2020         (Qkeyword_char): New variable.
2021         (ids_format_unit): New function.
2022         (Fideographic_structure_to_ids): New function.
2023         (syms_of_fns): Add new symbols `ideographic-structure' and
2024         `:char'; add new builtin function `ideographic-structure-to-ids'.
2025
2026         * data.c (Fchar_ref_p): New function.
2027         (syms_of_data): Add new builtin function `char-ref-p'.
2028
2029         * chartab.h: Add an EXFUN for `Ffind_char'.
2030
2031 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2032
2033         * text-coding.c (Vcharacter_composition_table): Deleted.
2034         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
2035         in every UTF-2000.
2036
2037         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
2038         UTF-2000.
2039         (Vcharacter_composition_table): Deleted.
2040         (Fget_composite_char): Use the implementation for external-DB
2041         support in every UTF-2000.
2042         (Fput_char_attribute): Likewise.
2043         (char_attribute_system_db_file): Don't define if external-DB
2044         feature is not available.
2045         (Fsave_char_attribute_table): Likewise.
2046         (Fmount_char_attribute_table): Likewise.
2047         (Fclose_char_attribute_table): Likewise.
2048         (Freset_char_attribute_table): Likewise.
2049         (Fload_char_attribute_table): Likewise.
2050         (syms_of_chartab): Don't define `save-char-attribute-table',
2051         `mount-char-attribute-table', `reset-char-attribute-table',
2052         `close-char-attribute-table' and `load-char-attribute-table' if
2053         external-DB feature is not available.
2054         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
2055
2056 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2057
2058         * text-coding.c (Qcomposition): Add extern if external-DB feature
2059         is supported.
2060         (Vcharacter_composition_table): Don't add extern if external-DB
2061         feature is supported.
2062         (COMPOSE_ADD_CHAR): Modify for new data-representation of
2063         character composition rule if external-DB feature is supported.
2064
2065         * chartab.c (Vcharacter_composition_table): Don't define if
2066         external-DB feature is supported.
2067         (Qcomposition): New variable.
2068         (Fget_composite_char): New implementation for external-DB support.
2069         (Fput_char_attribute): Use `composition' property of each
2070         character instead of `Vcharacter_composition_table' to store
2071         character-composition rules if external-DB feature is supported.
2072         (syms_of_chartab): Add new symbol `composition'.
2073         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
2074         external-DB feature is supported.
2075
2076 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2077
2078         * chartab.c (Vchar_db_stingy_mode): New variable.
2079         (load_char_attribute_maybe): Close database if
2080         Vchar_db_stingy_mode is not NIL.
2081         (Fload_char_attribute_table_map_function): Use
2082         `get_char_id_table_0' instead of `get_char_id_table'.
2083         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
2084
2085         * chartab.h (get_char_id_table_0): New inline function.
2086         (get_char_id_table): Use `get_char_id_table_0'.
2087
2088 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2089
2090         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
2091         and `COMPOSE_ADD_CHAR'.
2092         (decode_coding_iso2022): Use `decode_flush_er_chars'.
2093
2094 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2095
2096         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
2097         instead of `DECODE_ADD_UCS_CHAR'.
2098         (COMPOSE_ADD_CHAR): Likewise.
2099
2100 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2101
2102         * text-coding.c (decode_flush_er_chars): New inline function.
2103         (decode_add_er_char): New function.
2104         (decode_coding_utf8): Use `decode_flush_er_chars' and
2105         `decode_add_er_char'.
2106
2107 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2108
2109         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
2110         done before `decode_output_utf8_partial_char'.
2111
2112         * mule-charset.c (complex_vars_of_mule_charset): Specify
2113         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
2114         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
2115
2116 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2117
2118         * mule-charset.c (decode_defined_char): New function; search
2119         mother.
2120         (decode_builtin_char): Don't search mother if
2121         XCHARSET_MAX_CODE(charset) == 0.
2122         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
2123         == 0 even if code >= XCHARSET_MAX_CODE(charset).
2124         (Fdecode_char): Use `decode_defined_char' instead of
2125         `DECODE_DEFINED_CHAR'.
2126         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
2127         mother of `Vcharset_ucs_jis'.
2128
2129         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
2130         instead of `DECODE_DEFINED_CHAR'.
2131
2132         * char-ucs.h (decode_defined_char): Renamed from
2133         `DECODE_DEFINED_CHAR'; changed to normal function.
2134         (DECODE_CHAR): Use `decode_defined_char' instead of
2135         `DECODE_DEFINED_CHAR'.
2136
2137         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
2138
2139 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2140
2141         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
2142
2143         * text-coding.c (Vcoded_charset_entity_reference_alist): New
2144         variable.
2145         (Quse_entity_reference): New variable.
2146         (Qd): New variable.
2147         (Qx): New variable.
2148         (QX): New variable.
2149         (coding_system_description): Add description for
2150         `ccs_priority_list'.
2151         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
2152         (allocate_coding_system): Initialize `ccs_priority_list' in
2153         UTF-2000.
2154         (Fmake_coding_system): Add description about
2155         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
2156         (codesys).
2157         (Fcoding_system_property): Accept `disable-composition' and
2158         `use-entity-reference' in UTF-2000.
2159         (struct decoding_stream): Add new member `er_counter' and `er_buf'
2160         in UTF-2000.
2161         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
2162         (decode_coding_utf8): Decode entity-reference if
2163         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
2164         (char_encode_utf8): Encode non-Unicode characters as
2165         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
2166         (str->codesys).
2167         (syms_of_file_coding): Add new symbols `use-entity-reference',
2168         `d', `x', `X'.
2169         (vars_of_file_coding): Add new variable
2170         `coded-charset-entity-reference-alist'.
2171         (complex_vars_of_file_coding): Declare `disable-composition' and
2172         `use-entity-reference' to be coding-system-properties in UTF-2000.
2173
2174         * file-coding.h (struct Lisp_Coding_System): Add new member
2175         `use_entity_reference' and `ccs_priority_list'.
2176         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2177         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
2178         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2179
2180 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2181
2182         * chartab.c (save_uint8_byte_table): Don't clear the table.
2183         (save_uint16_byte_table): Likewise.
2184         (save_byte_table): Likewise.
2185         (Fmount_char_attribute_table): New function.
2186         (syms_of_chartab): Add new builtin function
2187         `mount-char-attribute-table'.
2188
2189 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2190
2191         * mule-charset.c (Fsave_charset_mapping_table): Open database as
2192         "w+" mode.
2193         (load_char_decoding_entry_maybe): Open database as read-only mode.
2194
2195         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
2196         open database as "w+" mode.
2197         (load_char_attribute_maybe): Open database as read-only mode.
2198         (Fload_char_attribute_table): Likewise.
2199
2200 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2201
2202         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
2203         (char_table_description): Delete member `db_file'.
2204         (Fmake_char_table): Don't refer `ct->db_file'.
2205         (Fcopy_char_table): Likewise.
2206         (Fsave_char_attribute_table): Likewise.
2207         (Fclose_char_attribute_table): Likewise.
2208         (Freset_char_attribute_table): Likewise.
2209         (load_char_attribute_maybe): Likewise.
2210         (Fload_char_attribute_table): Likewise.
2211
2212         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
2213
2214 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2215
2216         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
2217         (Fsave_char_attribute_table): Don't check `ct->db_file' if
2218         `ct->db' is living.
2219         (load_char_attribute_maybe): Likewise.
2220         (Fload_char_attribute_table): Likewise.
2221
2222 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2223
2224         * chartab.c (Fclose_char_attribute_table): Set Qnil on
2225         `ct->db_file' unconditionally.
2226
2227 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2228
2229         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
2230         UTF-2000.
2231         (char_table_description): Add description for `db_file' and `db'
2232         in UTF-2000.
2233         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
2234         UTF-2000.
2235         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
2236         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
2237         (Fclose_char_attribute_table): New function.
2238         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
2239         (load_char_attribute_maybe): Change interface; use `cit->db_file'
2240         and `cit->db'.
2241         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
2242         (syms_of_chartab): Add new builtin function
2243         `Fclose_char_attribute_table'.
2244
2245 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2246
2247         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
2248         `db' in UTF-2000.
2249         (load_char_attribute_maybe): Change interface.
2250         (get_char_id_table): Modify for `load_char_attribute_maybe'.
2251
2252 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2253
2254         * database.h: Add an EXFUN for `Fdatabase_live_p'.
2255
2256 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2257
2258         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
2259         instead of `DECODE_CHAR' for mother; don't use special code for
2260         chinese-big5 to use code space of chinese-big5-1 and
2261         chinese-big5-2.
2262         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
2263         `MAX_CHAR_BIG5_CDP' for chinese-big5.
2264
2265         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
2266         (MAX_CHAR_BIG5_CDP): Revival.
2267
2268 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2269
2270         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
2271         the XLFD registry-encoding name of `chinese-big5'.
2272
2273 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2274
2275         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
2276         (Qchinese_big5_cdp): Deleted.
2277         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
2278         (complex_vars_of_mule_charset): Delete coded-charset
2279         `chinese-big5-cdp'.
2280
2281         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
2282         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
2283         `CHARSET_ID_OFFSET - n' for private CCS.
2284         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
2285         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
2286         of `MIN_LEADING_BYTE'.
2287         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
2288         `(CHARSET_ID_OFFSET - 97)'.
2289         (MIN_CHAR_BIG5_CDP): Deleted.
2290         (MAX_CHAR_BIG5_CDP): Deleted.
2291
2292 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2293
2294         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
2295
2296 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2297
2298         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
2299         (vars_of_mule): Add new variable `utf-2000-version' [moved from
2300         chartab.c].
2301
2302         * chartab.c (Vutf_2000_version): Moved to mule.c.
2303         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
2304
2305 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2306
2307         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
2308         when HAVE_CHISE_CLIENT is not defined.
2309
2310         * mule.c (vars_of_mule): Provide feature `chise' when
2311         HAVE_CHISE_CLIENT is defined.
2312
2313 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2314
2315         * config.h.in (UTF2000): Add comment.
2316         (HAVE_CHISE_CLIENT): New macro.
2317
2318 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2319
2320         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
2321         CONSP.
2322         (Fput_char_attribute): Likewise.
2323         (char_attribute_system_db_file): Encode file-name of attribute.
2324         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
2325         the initial value.
2326
2327 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2328
2329         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
2330         (Fsave_charset_mapping_table): Use
2331         `char_attribute_system_db_file'.
2332         (load_char_decoding_entry_maybe): Likewise.
2333
2334         * chartab.h (Qsystem_char_id): New external variable.
2335         (char_attribute_system_db_file): New prototype.
2336
2337         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2338         (char_attribute_system_db_file): New function.
2339         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2340         (Freset_char_attribute_table): Likewise.
2341         (load_char_attribute_maybe): Likewise.
2342         (Fload_char_attribute_table): Likewise.
2343         (syms_of_chartab): Add new symbol `system-char-id'.
2344
2345 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2346
2347         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2348         `XCHARSET_GRAPHIC(ccs)'.
2349
2350 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2351
2352         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2353
2354 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2355
2356         * chartab.c (Q_ucs_variants): New variable.
2357         (syms_of_chartab): Add new symbol `->ucs-variants'.
2358         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2359         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2360         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2361
2362         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2363
2364         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2365         `HAVE_DATABASE' is defined.
2366         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2367         `HAVE_DATABASE' is defined.
2368
2369 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2370
2371         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2372         attribute-table.
2373         (Freset_char_attribute_table): New function.
2374         (syms_of_chartab): Add new builtin function
2375         `reset-char-attribute-table'.
2376
2377 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2378
2379         * chartab.c (load_char_attribute_maybe): Don't make directories.
2380
2381 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2382
2383         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2384
2385         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2386         for decoding-table.
2387
2388 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2389
2390         * mule-charset.c (Fsave_charset_mapping_table): Use
2391         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2392
2393         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2394         instead of `XCHARSET_CHARS'.
2395
2396 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2397
2398         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2399         (XCHARSET_BYTE_SIZE): Likewise.
2400
2401         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2402         mule-charset.c].
2403         (XCHARSET_BYTE_SIZE): Likewise.
2404
2405 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2406
2407         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2408         data-directory to store database.
2409         (Fsave_char_attribute_table): Likewise.
2410         (load_char_attribute_maybe): Likewise.
2411         (Fload_char_attribute_table): Likewise.
2412
2413 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2414
2415         * mule-charset.c (Fsave_charset_mapping_table): New function.
2416         (syms_of_mule_charset): Add new builtin function
2417         `save-charset-mapping-table'.
2418
2419 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2420
2421         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2422         (get_ccs_octet_table): New inline function.
2423         (put_ccs_octet_table): Likewise.
2424         (decoding_table_put_char): Use `get_ccs_octet_table' and
2425         `put_ccs_octet_table'.
2426         (decoding_table_remove_char): Use `decoding_table_put_char'.
2427         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2428
2429         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2430         into encoding_table.
2431         (make_charset): Use Qunbound instead Qnil as initial value of
2432         decoding_table.
2433
2434 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2435
2436         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2437         element is Qunloaded.
2438         (map_over_uint16_byte_table): Likewise.
2439         (map_over_byte_table): Likewise.
2440         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2441         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2442         database support, load encoding-table of the specified
2443         coded-charset if it is not loaded yet.
2444         (save_uint8_byte_table): New function of UTF-2000 with external
2445         database support.
2446         (save_uint16_byte_table): Likewise.
2447         (save_byte_table): Likewise.
2448         (Fput_char_attribute): Don't store value into external database
2449         even if the external database feature is supported in UTF-2000;
2450         set `attribute' as name of char-table if the external database
2451         feature is supported.
2452         (Fsave_char_attribute_table): New function in UTF-2000.
2453         (syms_of_chartab): Add new builtin function
2454         `save-char-attribute-table' in UTF-2000.
2455
2456 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2457
2458         * chartab.c (char_attribute_table_to_put): New variable in
2459         UTF-2000.
2460         (Qput_char_table_map_function): Likewise.
2461         (value_to_put): Likewise.
2462         (Fput_char_table_map_function): New function in UTF-2000.
2463         (put_char_table): Use `Fmap_char_attribute' for
2464         CHARTAB_RANGE_CHARSET in UTF-2000.
2465         (Fput_char_attribute): Store symbol instead of string in
2466         `XCHAR_TABLE_NAME (table)'.
2467         (load_char_attribute_maybe): Likewise.
2468         (syms_of_chartab): Add new symbol/function
2469         `put-char-table-map-function'.
2470
2471 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2472
2473         * database.h: Add new EXFUN for `Fmap_database'.
2474
2475         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2476         (syms_of_database): Likewise.
2477
2478         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2479         UTF-2000.
2480         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2481         (XCHAR_TABLE_UNLOADED): Likewise.
2482
2483         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2484         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2485         HAVE_DATABASE is defined.
2486         (char_attribute_table_to_load): New variable of UTF-2000 with
2487         external database support.
2488         (Qload_char_attribute_table_map_function): Likewise.
2489         (Fload_char_attribute_table_map_function): New function of
2490         UTF-2000 with external database support.
2491         (Fload_char_attribute_table): New function of UTF-2000.
2492         (Fmap_char_attribute): Call Fload_char_attribute_table if
2493         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2494         (syms_of_chartab): Add new symbol and function
2495         `load-char-attribute-table-map-function' in UTF-2000 with external
2496         database support; add new function `load-char-attribute-table' in
2497         UTF-2000.
2498
2499 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2500
2501         * chartab.h (load_char_attribute_maybe): New prototype for
2502         UTF-2000 with DATABASE support.
2503         (get_char_id_table): Use `load_char_attribute_maybe' if
2504         HAVE_DATABASE is defined.
2505
2506         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2507         with DATABASE support.
2508
2509 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2510
2511         * chartab.c (Fput_char_attribute): Use S-expression as key of
2512         external database.
2513
2514         * chartab.h (get_char_id_table): Use S-expression as key of
2515         external database.
2516
2517 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2518
2519         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2520         if an element is not loaded, load the corresponding attributes
2521         from an external database.
2522         (map_over_uint16_byte_table): Likewise.
2523         (map_over_byte_table): Likewise.
2524         (map_char_table): Modify for `map_over_uint8_byte_table',
2525         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2526         element is not loaded, load the corresponding attributes from an
2527         external database.
2528         (Fput_char_attribute): Change initial values to Qunloaded.
2529
2530         * chartab.h (get_char_id_table): If a character attribute is not
2531         loaded and the attribute value is not found in an external
2532         database, store Qunbound as the attribute value.
2533
2534 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2535
2536         * chartab.c (BT_UINT8_unloaded): New macro.
2537         (UINT8_VALUE_P): Accept Qunloaded.
2538         (UINT8_ENCODE): Likewise.
2539         (UINT8_DECODE): Likewise.
2540         (BT_UINT16_unloaded): New macro.
2541         (UINT16_VALUE_P): Accept Qunloaded.
2542         (UINT16_ENCODE): Likewise.
2543         (UINT16_DECODE): Likewise.
2544         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2545         BT_UINT16_unloaded.
2546         (mark_char_table): Mark `ct->name' in UTF-2000.
2547         (char_table_description): Add `name' in UTF-2000.
2548         (Fmake_char_table): Initialize `ct->name'.
2549         (Fcopy_char_table): Copy `ct->name'.
2550         (Fput_char_attribute): Store value into an external database if
2551         HAVE_DATABASE is defined.
2552
2553         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2554         UTF-2000.
2555         (CHAR_TABLE_NAME): New macro in UTF-2000.
2556         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2557         (get_char_id_table): Try to read an external database if Qunloaded
2558         is stored in a table.
2559
2560         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2561         Qunloaded.
2562
2563 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2564
2565         * database.h: Add EXFUN definitions for Fopen_database,
2566         Fput_database, Fget_database and Fclose_database.
2567
2568         * data.c (Qunloaded): New variable in UTF-2000.
2569
2570         * lisp.h (Qunloaded): New variable in UTF-2000.
2571
2572 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2573
2574         * mule-charset.c (put_char_ccs_code_point): Modify for
2575         `decoding_table_remove_char' and `decoding_table_put_char'.
2576         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2577
2578         * char-ucs.h (decoding_table_remove_char): Change arguments to
2579         hide decoding_table vector.
2580         (decoding_table_put_char): Likewise.
2581
2582 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2583
2584         * mule-charset.c (decoding_table_remove_char): Moved to
2585         char-ucs.h.
2586         (decoding_table_put_char): Likewise.
2587
2588         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2589         from mule-charset.c].
2590         (decoding_table_remove_char): New inline function [moved from
2591         mule-charset.c].
2592         (decoding_table_put_char): Likewise.
2593
2594 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2595
2596         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2597         extension.
2598
2599 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2600
2601         * mule-charset.c (decode_builtin_char): Support mother charsets.
2602
2603 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2604
2605         * mule-charset.c (Q94x94x60): New variable.
2606         (charset_code_point): Support conversion `94x94x60'.
2607         (Fmake_charset): Likewise.
2608         (syms_of_mule_charset): Add new symbol `94x94x60'.
2609
2610         * char-ucs.h (CONVERSION_94x94x60): New macro.
2611
2612 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2613
2614         * mule-charset.c (charset_code_point): Unify code about
2615         `code-offset'.
2616
2617 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2618
2619         * mule-charset.c (charset_code_point): Merge code about builtin
2620         characters into code about mother charsets; don't use
2621         `range_charset_code_point'.
2622         (range_charset_code_point): Deleted.
2623
2624 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2625
2626         * mule-charset.c (Qcode_offset): New variable.
2627         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2628         `max-code'; accept new property `code-offset'.
2629         (syms_of_mule_charset): Add new symbol `code-offset'.
2630
2631 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2632
2633         * mule-charset.c (range_charset_code_point): Fixed.
2634
2635 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2636
2637         * mule-charset.c (decode_builtin_char): Change semantics of
2638         code-offset of coded-charset.
2639         (charset_code_point): Likewise.
2640         (range_charset_code_point): Likewise.
2641         (complex_vars_of_mule_charset): Modify for the change.
2642
2643 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2644
2645         * mule-charset.c (Fencode_char): Reverse arguments.
2646
2647         * mule-charset.c (charset_code_point): Fixed.
2648
2649 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2650
2651         * mule-charset.c (Vcharset_mojikyo): Deleted.
2652         (Vcharset_mojikyo_2022_1): Deleted.
2653         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2654         (Qmin_code): New variable in UTF-2000.
2655         (Qmax_code): Likewise.
2656         (Qmother): Likewise.
2657         (Qconversion): Likewise.
2658         (Q94x60): Likewise.
2659         (Qmojikyo): Deleted.
2660         (Qmojikyo_2022_1): Deleted.
2661         (Qmojikyo_pj_{1..22}): Deleted.
2662         (mark_charset): Mark `cs->mother'.
2663         (charset_description): Add description for `mother'.
2664         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2665         new arguments `mother' and `conversion'; use
2666         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2667         (charset_code_point): Moved from char-ucs.h; support `mother'
2668         charset feature.
2669         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2670         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2671         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2672         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2673         allow 2 as the value of `graphic' in UTF-2000; add new properties
2674         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2675         require `final' in UTF-2000; modify for `make_charset'.
2676         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2677         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2678         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2679         (Fencode_char): New function.
2680         (syms_of_mule_charset): Add new builtin function `encode-char' in
2681         UTF-2000; add new symbols `min-code', `max-code', `mother',
2682         `conversion' and `94x60'; delete symbols `mojikyo',
2683         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2684         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2685         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2686         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2687
2688         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2689         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2690
2691         * char-ucs.h (Vcharset_mojikyo): Deleted.
2692         (Vcharset_mojikyo_2022_1): Deleted.
2693         (LEADING_BYTE_MOJIKYO): Deleted.
2694         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2695         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2696         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2697         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2698         add new member `mother'; add new member `conversion'.
2699         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2700         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2701         (CHARSET_MOTHER): New macro.
2702         (CHARSET_CONVERSION): New macro.
2703         (CONVERSION_IDENTICAL): New macro.
2704         (CONVERSION_94x60): New macro.
2705         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2706         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2707         (XCHARSET_MOTHER): New macro.
2708         (XCHARSET_CONVERSION): New macro.
2709         (MIN_CHAR_MOJIKYO): Deleted.
2710         (MAX_CHAR_MOJIKYO): Deleted.
2711         (DECODE_MOJIKYO_2022): Deleted.
2712         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2713         (charset_code_point): Changed to non-inline function.
2714         (encode_char_1): Use `charset_code_point'.
2715         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2716
2717 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2718
2719         * lread.c (read_compiled_function): Fix prototype.
2720         (read_vector): Likewise.
2721
2722 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2723
2724         * lrecord.h (struct lrecord_header): Delete `older'.
2725         (set_lheader_implementation): Delete code for `older'.
2726         (set_lheader_older_implementation): Deleted.
2727         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2728         (OLDER_RECORD_P): Deleted.
2729         (OLDER_RECORD_HEADER_P): Deleted.
2730         (alloc_older_lcrecord): Deleted.
2731         (alloc_older_lcrecord_type): Deleted.
2732
2733         * alloc.c (all_older_lcrecords): Deleted.
2734         (alloc_older_lcrecord): Deleted.
2735         (disksave_object_finalization_1): Delete code for older objects.
2736         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2737         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2738
2739 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2740
2741         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2742         instead of `make_older_vector'.
2743         (put_char_ccs_code_point): Likewise.
2744         (mark_charset): Mark `cs->decoding_table'.
2745         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2746
2747         * lisp.h (make_older_vector): Deleted.
2748         (make_vector_newer): Deleted.
2749
2750         * config.h.in (HAVE_GGC): Deleted.
2751
2752         * alloc.c (make_older_vector): Deleted.
2753         (make_vector_newer_1): Deleted.
2754         (make_vector_newer): Deleted.
2755
2756 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2757
2758         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2759         (Qideograph_daikanwa_2): New variable.
2760         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2761         (complex_vars_of_mule_charset): Add new coded-charset
2762         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2763         `LEADING_BYTE_DAIKANWA'.
2764
2765         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2766         (LEADING_BYTE_DAIKANWA_1): New macro.
2767         (LEADING_BYTE_DAIKANWA_2): New macro.
2768         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2769
2770 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2771
2772         * mule-charset.c (complex_vars_of_mule_charset): Change
2773         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2774         the second revised version.
2775
2776 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2777
2778         * mule-charset.c (Vcharset_ucs_smp): New variable.
2779         (Vcharset_ucs_sip): New variable.
2780         (Qucs_smp): New variable.
2781         (Qucs_sip): New variable.
2782         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2783         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2784         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2785         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2786         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2787         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2788
2789         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2790         (LEADING_BYTE_UCS_SIP): New macro.
2791         (MIN_CHAR_SMP): New macro.
2792         (MAX_CHAR_SMP): New macro.
2793         (MIN_CHAR_SIP): New macro.
2794         (MAX_CHAR_SIP): New macro.
2795
2796 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2797
2798         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2799         utf-2000.
2800
2801 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2802
2803         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2804         value; don't store value into `encoding_table' of `Lisp_Charset'.
2805         (mark_charset): `encoding_table' was deleted.
2806         (charset_description): Likewise.
2807         (make_charset): Likewise.
2808         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2809         `put_char_ccs_code_point'.
2810
2811         * chartab.h (Fput_char_attribute): New EXFUN.
2812
2813         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2814         is unified with normal symbol space.
2815         (Fget_char_attribute): Likewise.
2816         (Fput_char_attribute): Likewise; behavior of
2817         `put_char_ccs_code_point' is changed.
2818
2819         * char-ucs.h: Include "elhash.h".
2820         (Vchar_attribute_hash_table): New external variable.
2821         (struct Lisp_Charset): Delete `encoding_table'.
2822         (CHARSET_ENCODING_TABLE): New implementation; refer
2823         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2824         `Lisp_Charset'.
2825
2826 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2827
2828         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2829         (cs) == 0.
2830
2831 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2832
2833         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2834         `chinese-big5'.
2835
2836 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2837
2838         * chartab.c (uint8_byte_table_description): New constant.
2839         (uint8-byte-table): Use `uint8_byte_table_description'.
2840         (uint16_byte_table_description): New constant.
2841         (uint16-byte-table): Use `uint16_byte_table_description'.
2842
2843 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2844
2845         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2846         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2847
2848 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2849
2850         * mule-charset.c (Vcharset_ucs_ks): New variable.
2851         (Qucs_ks): New variable.
2852         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2853         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2854
2855         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2856
2857 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2858
2859         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2860         (Fdecode_char): Likewise.
2861
2862         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2863         chartab.h.
2864         (Fdefine_char): Modify for Fdecode_char.
2865         (Ffind_char): Likewise.
2866
2867         * mule-charset.c (Fdecode_char): Add new optional argument
2868         `defined-only'.
2869         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2870
2871 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2872
2873         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2874         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2875         (allocate_coding_system): Initialize initial-charsets of
2876         CODESYS_BIG5 in XEmacs UTF-2000.
2877         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2878         CODESYS_BIG5 in XEmacs UTF-2000.
2879         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2880         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2881
2882         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2883         variables.
2884         (Qideograph_hanziku_{1 .. 12}): Likewise.
2885         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2886         .. 12}'.
2887         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2888         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2889         `ideograph-hanziku-{1 .. 12}'.
2890
2891         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2892         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2893         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2894         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2895         (DECODE_DEFINED_CHAR): New inline function.
2896         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2897
2898 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2899
2900         * mule-charset.c (Vcharset_china3_jef): Renamed from
2901         `Vcharset_japanese_jef_china3'.
2902         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2903         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2904         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2905         (syms_of_mule_charset): Rename `china3-jef' from
2906         `japanese-jef-china3'.
2907         (complex_vars_of_mule_charset): Likewise; rename
2908         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2909
2910         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2911         `LEADING_BYTE_JEF_CHINA3'.
2912         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2913         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2914
2915 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2916
2917         * mule-charset.c (encode_builtin_char_1): Comment out special code
2918         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2919
2920         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2921         (MAX_CHAR_MOJIKYO_0): Comment out.
2922         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2923         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2924         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2925         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2926
2927 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2928
2929         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2930         (Qideograph_cbeta): New variable.
2931         (encode_builtin_char_1): Comment out special code for
2932         coded-charset `mojikyo' and `japanese-jef-china3'.
2933         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2934         (complex_vars_of_mule_charset): Add new coded-charset
2935         `ideograph-cbeta'.
2936
2937         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2938         (MIN_CHAR_CBETA): New macro.
2939         (MAX_CHAR_CBETA): New macro.
2940
2941 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2942
2943         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2944         (LEADING_BYTE_JEF_CHINA3): New macro.
2945         (MIN_CHAR_JEF_CHINA3): New macro.
2946         (MAX_CHAR_JEF_CHINA3): Likewise.
2947         (DECODE_CHAR): Fixed.
2948
2949 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2950
2951         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2952         (Qjapanese_jef_china3): New variable.
2953         (encode_builtin_char_1): Support `japanese-jef-china3'.
2954         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2955         (complex_vars_of_mule_charset): Add new coded-charset
2956         `japanese-jef-china3'.
2957
2958 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2959
2960         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2961         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2962         94^4, 96^3, 96^4, 128^n and 256^n set.
2963         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2964         (map_char_table): Likewise.
2965
2966 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2967
2968         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2969         UTF-2000.
2970
2971 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2972
2973         * chartab.h (get_char_id_table): New inline function.
2974
2975         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2976         function.
2977
2978 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2979
2980         * chartab.h (decode_char_table_range): New prototype in XEmacs
2981         UTF-2000.
2982         (put_char_id_table): New inline function in XEmacs UTF-2000.
2983
2984         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2985         function.
2986         (decode_char_table_range): Delete static declaration in XEmacs
2987         UTF-2000.
2988
2989 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2990
2991         * chartab.c (put_char_id_table): Use `put_char_table'.
2992
2993 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2994
2995         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2996         (map_over_uint16_byte_table): Likewise.
2997         (map_over_byte_table): Likewise.
2998         (map_char_table): Modify for `map_over_uint8_byte_table',
2999         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
3000         UTF-2000.
3001
3002 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3003
3004         * chartab.c (struct map_char_table_for_charset_arg): New
3005         structure.
3006         (map_char_table_for_charset_fun): New function.
3007         (map_char_table): Use `map_char_table' for encoding_table of
3008         `range->charset'.
3009
3010 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3011
3012         * chartab.c (map_char_table): Check a character is found in
3013         range->charset instead of non default value is defined in
3014         char-table when range is CHARTAB_RANGE_ROW.
3015
3016 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3017
3018         * chartab.c (map_char_id_table): Deleted.
3019         (Fmap_char_attribute): Use `map_char_table' instead of
3020         `map_char_id_table'.
3021
3022 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3023
3024         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
3025         UTF-2000.
3026         (update_syntax_table): Deleted in XEmacs UTF-2000.
3027
3028         * syntax.c (find_defun_start): Use `syntax_table' instead of
3029         `mirror_syntax_table' in XEmacs UTF-2000.
3030         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
3031         UTF-2000.
3032         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
3033         XEmacs UTF-2000.
3034         (Fmatching_paren): Likewise.
3035         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
3036         in XEmacs UTF-2000.
3037         (find_start_of_comment): Likewise.
3038         (find_end_of_comment): Likewise.
3039         (Fforward_comment): Likewise.
3040         (scan_lists): Likewise.
3041         (char_quoted): Likewise.
3042         (Fbackward_prefix_chars): Likewise.
3043         (scan_sexps_forward): Likewise.
3044         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
3045         (update_syntax_table): Likewise.
3046
3047         * search.c (skip_chars): Use `syntax_table' instead of
3048         `mirror_syntax_table' in XEmacs UTF-2000.
3049         (wordify): Likewise.
3050         (Freplace_match): Likewise.
3051
3052         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
3053         `mirror_syntax_table' in XEmacs UTF-2000.
3054         (WORDCHAR_P_UNSAFE): Likewise.
3055         (re_match_2_internal): Likewise.
3056
3057         * font-lock.c (find_context): Use `buf->syntax_table' instead of
3058         `buf->mirror_syntax_table' in XEmacs UTF-2000.
3059
3060         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
3061         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
3062
3063         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
3064         XEmacs UTF-2000.
3065
3066         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
3067         UTF-2000.
3068         (print_char_table): Print `default_value' in XEmacs UTF-2000.
3069         (char_table_description): Delete `mirror_table' in XEmacs
3070         UTF-2000.
3071         (fill_char_table): Don't call `update_syntax_table' in XEmacs
3072         UTF-2000.
3073         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
3074         (Fcopy_char_table): Likewise.
3075         (put_char_table): Don't call `update_syntax_table' in XEmacs
3076         UTF-2000.
3077
3078         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
3079         `buf->mirror_syntax_table' in XEmacs UTF-2000.
3080         (casify_region_internal): Likewise.
3081
3082         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
3083
3084         * buffer.c (common_init_complex_vars_of_buffer): Don't use
3085         `mirror_syntax_table' in XEmacs UTF-2000.
3086
3087         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
3088         `buf->mirror_syntax_table' in XEmacs UTF-2000.
3089         (Fexpand_abbrev): Likewise.
3090
3091 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3092
3093         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
3094
3095 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3096
3097         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
3098         (map_over_uint16_byte_table): Likewise.
3099         (map_over_byte_table): Likewise.
3100         (get_char_id_table): Refer `cit->default_value'.
3101         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
3102         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
3103         of character-id ranges.
3104         (mark_char_table): Mark `ct->default_value'.
3105         (char_table_description): Add `default_value'.
3106         (fill_char_table): Use `default_value'.
3107         (decode_char_table_range): Decode `nil' as
3108         `CHARTAB_RANGE_DEFAULT'.
3109         (get_char_id_table): Refer `cit->default_value'.
3110         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
3111         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
3112         temporary hack; check value of char-table is bound or not.
3113         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
3114
3115         * chartab.h (struct Lisp_Char_Table): Add new member
3116         `default_value' in XEmacs UTF-2000.
3117         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
3118         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
3119         UTF-2000.
3120
3121 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3122
3123         * chartab.h (Lisp_Char_ID_Table): Deleted.
3124
3125         * chartab.c (char_table_description): Fix typo.
3126         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
3127         `Lisp_Char_ID_Table'.
3128
3129 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3130
3131         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
3132         `CHAR_ID_TABLE_P'.
3133
3134         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
3135         `CHAR_ID_TABLE_P'.
3136
3137         * chartab.h (XCHAR_ID_TABLE): Deleted.
3138         (XSETCHAR_ID_TABLE): Deleted.
3139         (CHAR_ID_TABLE_P): Deleted.
3140
3141         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
3142         `CHAR_ID_TABLE_P'.
3143         (Fget_composite_char): Likewise.
3144         (put_char_table): Likewise.
3145         (add_char_attribute_alist_mapper): Fixed.
3146         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
3147         `CHAR_ID_TABLE_P'.
3148         (Fget_char_attribute): Likewise.
3149         (Fget_char_attribute): Likewise.
3150         (Fmap_char_attribute): Likewise.
3151
3152         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
3153         `CHAR_ID_TABLE_P'.
3154         (encode_char_1): Likewise.
3155
3156 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3157
3158         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
3159         `XCHAR_ID_TABLE'.
3160
3161         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
3162         instead of `XCHAR_ID_TABLE'.
3163         (remove_char_ccs): Likewise.
3164
3165         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
3166         `XCHAR_ID_TABLE'.
3167         (Fget_composite_char): Likewise.
3168         (Fchar_variants): Likewise.
3169         (put_char_table): Likewise.
3170         (add_char_attribute_alist_mapper): Likewise.
3171         (Fchar_attribute_alist): Likewise.
3172         (Fget_char_attribute): Likewise.
3173         (Fput_char_attribute): Likewise.
3174         (Fmap_char_attribute): Likewise.
3175         (Fmap_char_attribute): Likewise.
3176
3177         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
3178         `XCHAR_ID_TABLE'.
3179         (encode_char_1): Likewise.
3180
3181 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3182
3183         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
3184         `Lisp_Char_ID_Table'.
3185         (mark_char_id_table): Deleted.
3186         (print_char_id_table): Likewise.
3187         (char_id_table_equal): Likewise.
3188         (char_id_table_hash): Likewise.
3189         (char_id_table_description): Likewise.
3190         (char_id_table): Likewise.
3191         (make_char_id_table): Use `Fmake_char_table' and
3192         `fill_char_table'.
3193         (get_char_id_table): Use `Lisp_Char_Table' instead of
3194         `Lisp_Char_ID_Table'.
3195         (put_char_id_table): Likewise.
3196         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
3197         `XCHAR_ID_TABLE'.
3198         (Fremove_char_attribute): Likewise.
3199         (syms_of_chartab): Don't define type `char-id-table'.
3200
3201         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
3202         (char_id_table): Likewise.
3203         (GC_CHAR_ID_TABLE_P): Likewise.
3204         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
3205         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
3206         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
3207         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
3208         (get_char_id_table): Use `Lisp_Char_Table' instead of
3209         `Lisp_Char_ID_Table'.
3210         (put_char_id_table_0): Likewise.
3211         (put_char_id_table): Likewise.
3212
3213 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3214
3215         * chartab.h: Lisp_Byte_Table related codes are moved from
3216         chartab.h.
3217
3218         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
3219
3220 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3221
3222         * chartab.h: Don't include "chartab.h".
3223         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
3224         (Lisp_Char_ID_Table): Likewise.
3225         (char_id_table): Likewise.
3226         (XCHAR_ID_TABLE): Likewise.
3227         (XSETCHAR_ID_TABLE): Likewise.
3228         (CHAR_ID_TABLE_P): Likewise.
3229         (GC_CHAR_ID_TABLE_P): Likewise.
3230         (get_char_id_table): Likewise.
3231
3232         * char-ucs.h: Include "chartab.h".
3233         (struct Lisp_Char_ID_Table): Moved to chartab.h.
3234         (Lisp_Char_ID_Table): Likewise.
3235         (char_id_table): Likewise.
3236         (XCHAR_ID_TABLE): Likewise.
3237         (XSETCHAR_ID_TABLE): Likewise.
3238         (CHAR_ID_TABLE_P): Likewise.
3239         (GC_CHAR_ID_TABLE_P): Likewise.
3240         (get_char_id_table): Likewise.
3241
3242 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3243
3244         * chartab.c (copy_uint8_byte_table): New function.
3245         (copy_uint16_byte_table): New function.
3246         (copy_byte_table): New function.
3247         (map_over_uint8_byte_table): Modify to avoid huge numbers of
3248         characters to call.
3249         (map_over_uint16_byte_table): Likewise.
3250         (map_over_byte_table): Likewise.
3251         (get_byte_table): Move prototype to chartab.h.
3252         (put_byte_table): Likewise.
3253         (put_char_id_table_0): Moved to chartab.h.
3254         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
3255         (char_table_entry_equal): Likewise.
3256         (char_table_entry_hash): Likewise.
3257         (char_table_entry_description): Likewise.
3258         (char_table_entry): Likewise.
3259         (make_char_table_entry): Likewise.
3260         (copy_char_table_entry): Likewise.
3261         (get_non_ascii_char_table_value): Likewise.
3262         (map_over_charset_ascii): Likewise.
3263         (map_over_charset_control_1): Likewise.
3264         (map_over_charset_row): Likewise.
3265         (map_over_other_charset): Likewise.
3266         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
3267         (print_char_table): Likewise.
3268         (char_table_equal): Likewise.
3269         (char_table_hash): Likewise.
3270         (char_table_description): Likewise.
3271         (fill_char_table): Likewise.
3272         (Fcopy_char_table): Likewise.
3273         (get_char_table): Likewise.
3274         (Fget_range_char_table): Likewise.
3275         (put_char_table): Likewise.
3276         (map_char_table): Likewise.
3277         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
3278         UTF-2000.
3279
3280 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3281
3282         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
3283         `Vauto_fill_chars' in XEmacs UTF-2000.
3284
3285         * chartab.h (get_byte_table): New prototype [moved from
3286         chartab.c].
3287         (put_byte_table): Likewise [moved from chartab.c].
3288         (put_char_id_table_0): New inline function [moved from chartab.c].
3289         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
3290         (Lisp_Char_Table_Entry): Likewise.
3291         (char_table_entry): Likewise.
3292         (XCHAR_TABLE_ENTRY): Likewise.
3293         (XSETCHAR_TABLE_ENTRY): Likewise.
3294         (CHAR_TABLE_ENTRYP): Likewise.
3295         (CHECK_CHAR_TABLE_ENTRY): Likewise.
3296         (NUM_ASCII_CHARS): Likewise.
3297         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
3298         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
3299
3300 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3301
3302         * chartab.c (get_char_id_table): Change interface.
3303         (put_char_id_table_0): New function.
3304         (put_char_id_table): Change interface; new implementation.
3305         (Fget_composite_char): Modify for interface change of
3306         `get_char_id_table'.
3307         (Fchar_variants): Likewise.
3308         (add_char_attribute_alist_mapper): Likewise.
3309         (Fchar_attribute_alist): Likewise.
3310         (Fget_char_attribute): Likewise.
3311         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
3312         as same as character as the first argument like `put-char-table';
3313         modify for interface change of `put_char_id_table'.
3314         (Fremove_char_attribute): Modify for interface change of
3315         `put_char_id_table'.
3316
3317 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3318
3319         * text-coding.c: Sync up with XEmacs 21.2.41.
3320         (COMPOSE_ADD_CHAR): Modify for interface change of
3321         `get_char_id_table'.
3322
3323         * mule-charset.c (put_char_ccs_code_point): Modify for interface
3324         change of `put_char_id_table'.
3325         (remove_char_ccs): Likewise.
3326
3327         * chartab.h (put_char_id_table): Change interface.
3328
3329         * char-ucs.h (get_char_id_table): Change interface.
3330         (charset_code_point): Modify for interface change of
3331         `get_char_id_table'.
3332         (encode_char_1): Likewise.
3333
3334 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3335
3336         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3337         argument `ccs'.
3338         (map_over_uint16_byte_table): Likewise.
3339         (map_over_byte_table): Likewise.
3340         (map_char_id_table): Add new argument `range' like
3341         `map_char_table'.
3342         (Fmap_char_attribute): Add new argument `range' like
3343         `Fmap_char_table'.
3344
3345 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3346
3347         * chartab.c (map_over_uint8_byte_table): Change interface of
3348         mapping function to use struct chartab_range instead of Emchar.
3349         (map_over_uint16_byte_table): Likewise.
3350         (map_over_byte_table): Likewise.
3351         (map_char_id_table): Likewise.
3352         (struct slow_map_char_id_table_arg): Deleted.
3353         (slow_map_char_id_table_fun): Deleted.
3354         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3355         function `slow_map_char_table_fun' instead of struct
3356         `slow_map_char_id_table_arg' and function
3357         `slow_map_char_id_table_fun'.
3358
3359 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3360
3361         * mule-charset.c: Move char-it-table related codes to chartab.c.
3362         (Vutf_2000_version): Moved to chartab.c.
3363         (Fdefine_char): Likewise.
3364         (Ffind_char): Likewise.
3365         (syms_of_mule_charset): Move types `uint8-byte-table',
3366         `uint16-byte-table', `byte-table' and `char-id-table' to
3367         chartab.c; move functions `char_attribute_list,
3368         `find_char_attribute_table, `char_attribute_alist,
3369         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3370         `map_char_attribute, `define_char, `find_char, `char_variants and
3371         `get_composite_char to chartab.c; move symbols `=>ucs',
3372         `->decomposition', `compat', `isolated', `initial', `medial',
3373         `final', `vertical', `noBreak', `fraction', `super', `sub',
3374         `circle', `square', `wide', `narrow', `small' and `font' to
3375         chartab.c.
3376         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3377         setting codes for `Vcharacter_composition_table' and
3378         `Vcharacter_variant_table' to chartab.c.
3379         (complex_vars_of_mule_charset): Move setting code for
3380         `Vchar_attribute_hash_table' to chartab.c.
3381
3382         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3383         (make_char_id_table): New prototype.
3384         (put_char_id_table): Likewise.
3385         (Fget_char_attribute): Likewise.
3386
3387         * chartab.c: Move char-id-table related code from mule-charset.c.
3388         (Vutf_2000_version): Moved from mule-charset.c.
3389
3390         * char-ucs.h (Qucs): New external variable.
3391         (put_char_ccs_code_point): New prototype.
3392         (remove_char_ccs): Likewise.
3393
3394 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3395
3396         * mule-charset.c (Vcharset_ucs_jis): New variable.
3397         (Qucs_jis): Likewise.
3398         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3399         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3400
3401         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3402
3403 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3404
3405         * mule-charset.c (map_over_uint8_byte_table): New function.
3406         (map_over_uint16_byte_table): Likewise.
3407         (map_over_byte_table): Likewise.
3408         (map_char_id_table): Likewise.
3409         (slow_map_char_id_table_fun): Likewise.
3410         (Fmap_char_attribute): Likewise.
3411         (syms_of_mule_charset): Add new function `map-char-attribute'.
3412
3413 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3414
3415         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3416         (syms_of_mule_charset): Add new function `find-char'.
3417
3418 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3419
3420         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3421         XEmacs UTF-2000.
3422         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3423         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3424         XEmacs UTF-2000.
3425         (complex_vars_of_mule_charset): Add new coded-charset
3426         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3427         `ideograph-gt-pj-*'.
3428
3429         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3430
3431 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3432
3433         * mule-charset.c (encode_builtin_char_1): Purge codes about
3434         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3435         {MIN|MAX}_CHAR_HEBREW.
3436         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3437         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3438
3439         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3440         (MAX_CHAR_GREEK): Purged.
3441         (MIN_CHAR_CYRILLIC): Purged.
3442         (MAX_CHAR_CYRILLIC): Purged.
3443         (MIN_CHAR_HEBREW): Commented out.
3444         (MAX_CHAR_HEBREW): Likewise.
3445
3446 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3447
3448         * mule-charset.c (Qto_ucs): New variable.
3449         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3450         (Fdefine_char): Likewise.
3451         (syms_of_mule_charset): Add new symbol `=>ucs'.
3452
3453 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3454
3455         * mule-charset.c (Fdecode_char): Fixed.
3456
3457 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3458
3459         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3460         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3461         "tcvn5712-1".
3462
3463 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3464
3465         * mule-charset.c (Vcharset_ucs_big5): New variable.
3466         (Qucs_big5): Likewise.
3467         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3468         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3469
3470         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3471
3472 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3473
3474         * mule-charset.c (decode_builtin_char): Check Big5 code range
3475         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3476
3477 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3478
3479         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3480         (Qchinese_gb12345): Likewise.
3481         (Fdecode_builtin_char): Fixed.
3482         (syms_of_mule_charset): Add `chinese-gb12345'.
3483         (complex_vars_of_mule_charset): Add coded-charset
3484         `chinese-gb12345'.
3485
3486         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3487         (LEADING_BYTE_CHINESE_GB12345): New macro.
3488
3489 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3490
3491         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3492         and `latin-viscii-upper' for `latin-viscii'.
3493
3494 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3495
3496         * mule-charset.c (Fdecode_builtin_char): Comment out
3497         regularization code for ISO-IR GR representation.
3498
3499 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3500
3501         * mule-charset.c (decode_builtin_char): New function; renamed from
3502         `make_builtin_char'; return -1 instead of signal.
3503         (Fdecode_builtin_char): Use `decode_builtin_char'.
3504
3505         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3506         `make_builtin_char'.
3507         (DECODE_CHAR): Use `decode_builtin_char' instead of
3508         `make_builtin_char'; use mapping table of `chinese-big5' for
3509         `chinese-big5-{1,2}'.
3510
3511 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3512
3513         * text-coding.c (char_encode_big5): New function.
3514         (char_finish_big5): Likewise.
3515         (reset_encoding_stream): Use `char_encode_big5' and
3516         `char_finish_big5' for CODESYS_BIG5.
3517         (mule_encode): Don't use `encode_coding_big5'.
3518         (encode_coding_big5): Deleted.
3519
3520 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3521
3522         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3523         0x81- in XEmacs UTF-2000.
3524         (detect_coding_big5): Likewise.
3525
3526 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3527
3528         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3529         generate character-id if the CCS property does not have
3530         corresponding predefined character.
3531         (make_builtin_char): Return -1 if corresponding predefined
3532         character is not found.
3533         (Fdecode_char): Return nil if corresponding character is not
3534         found.
3535         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3536         don't map to builtin ucs space.
3537
3538 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3539
3540         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3541         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3542
3543 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3544
3545         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3546         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3547         (Qideograph_gt): Likewise.
3548         (Qideograph_gt_pj_{1..11}): Likewise.
3549         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3550         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3551         `ideograph-gt-pj-11'.
3552         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3553         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3554         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3555
3556         * char-ucs.h (LEADING_BYTE_GT): New macro.
3557         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3558         (MIN_CHAR_GT): Likewise.
3559         (MAX_CHAR_GT): Likewise.
3560
3561 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3562
3563         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3564         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3565
3566         * doprnt.c (unsigned_int_converters): Add `c'.
3567         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3568
3569         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3570         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3571         `MIN_CHAR_MOJIKYO'.
3572         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3573         (MAX_CHAR_MOJIKYO_0): New macro.
3574         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3575
3576 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3577
3578         * mule-charset.c (Fdefine_char): Delete cemented out code.
3579         (encode_builtin_char_1): Modify for new allocation of builtin
3580         Mojikyo characters.
3581
3582         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3583
3584 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3585
3586         * mule-charset.c (Vcharset_ucs_cns): New variable.
3587         (Qucs_cns): New variable.
3588         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3589         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3590
3591 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3592
3593         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3594
3595 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3596
3597         * search.c (search_buffer): Make `charset_base_code' as
3598         character-id >> 6 to eliminate the corresponding last byte in
3599         UTF-8 representation [I'm not sure it is right thing].
3600         (boyer_moore): Likewise.
3601
3602 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3603
3604         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3605         representation in MULE.
3606
3607 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3608
3609         * text-coding.c (Fmake_coding_system): Use
3610         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3611         `EXTERNAL_PROPERTY_LIST_LOOP'.
3612
3613 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3614
3615         * text-coding.c (decode_output_utf8_partial_char): New function.
3616         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3617
3618 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3619
3620         * text-coding.c (decode_coding_utf8): Output original byte
3621         sequence if it is broken; change order of conditions.
3622
3623         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3624         of conditions.
3625
3626         * mb-multibyte.h (BYTE_ASCII_P):
3627         Use bit ops for char-signedness safety.
3628         (BYTE_C0_P): Use bit ops for char-signedness safety.
3629         (BYTE_C1_P): Use bit ops for char-signedness safety.
3630
3631         * character.h: (XCHAR_OR_CHAR_INT):
3632         Always use inline function.
3633         Remove redundant type checking assert() - XINT will abort quite
3634         nicely.
3635
3636 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3637
3638         * text-coding.c: (Fencode_shift_jis_char):
3639         (Fencode_big5_char):
3640         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3641         Replace 0 with '\0' when working with bytes.
3642         Replace initial "(" with "\(" in docstrings.
3643
3644         (Fmake_coding_system):
3645         When type is ccl and value is vector, register it with a proper
3646         symbol.  And checks whether the given ccl program is valid.
3647         (mule_decode): When calling ccl_driver, if src indicates
3648         NULL pointer, set an empty string instead.
3649         (mule_encode): Likewise.
3650
3651         (detect_eol_type):
3652         (detect_coding_sjis):
3653         (decode_coding_sjis):
3654         (detect_coding_big5):
3655         (decode_coding_big5):
3656         (detect_coding_ucs4):
3657         (decode_coding_ucs4):
3658         (detect_coding_utf8):
3659         (decode_coding_utf8):
3660         (detect_coding_iso2022):
3661         (decode_coding_iso2022):
3662         (decode_coding_no_conversion):
3663         (mule_decode):
3664         Make all detecting and decoding functions take an Extbyte * arg.
3665         (text_encode_generic):
3666         (encode_coding_big5):
3667         (encode_coding_no_conversion):
3668         (mule_encode):
3669         Make all encoding functions take a Bufbyte * arg.
3670         Use size_t instead of unsigned int for memory sizes.
3671         Only cast to unsigned char whenever dereferencing Extbyte *.
3672
3673         (struct lrecord_description fcd_description_1): Use countof.
3674         (complex_vars_of_file_coding):
3675         Use countof instead of sizeof.
3676         Use CHECK_NATNUM instead of CHECK_INT.
3677
3678 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3679
3680         * mule-charset.c (Fget_char_attribute): Add new optional argument
3681         `default-value'.
3682         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3683         (remove_char_ccs): Likewise.
3684
3685 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3686
3687         * text-coding.c (char_encode_shift_jis): New implementation in
3688         UTF-2000.
3689         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3690         ...)'.
3691
3692         * mule-charset.c (Vcharset_chinese_big5): New variable in
3693         UTF-2000.
3694         (Qchinese_big5): New variable in UTF-2000.
3695         (BIG5_SAME_ROW): New macro in UTF-2000.
3696         (make_builtin_char): Use builtin characters of
3697         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3698         characters of `Vcharset_chinese_big5'.
3699         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3700         (complex_vars_of_mule_charset): Add new coded-charset
3701         `chinese-big5' in UTF-2000.
3702
3703         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3704         (Vcharset_chinese_big5): New external variable declaration.
3705         (Vcharset_japanese_jisx0208_1990): Likewise.
3706
3707 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3708
3709         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3710         function.
3711         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3712
3713 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3714
3715         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3716         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3717         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3718         `mojikyo-pj-*'.
3719
3720 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3721
3722         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3723
3724 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3725
3726         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3727         to 0.17.
3728
3729 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3730
3731         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3732         for `CHARSET_BY_ATTRIBUTES'.
3733         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3734         `CHARSET_BY_ATTRIBUTES'.
3735
3736         * text-coding.c (struct decoding_stream): Rename member `CH' to
3737         `CPOS'.
3738         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3739         (decode_coding_sjis): Likewise.
3740         (decode_coding_big5): Likewise.
3741         (decode_coding_ucs4): Likewise.
3742         (decode_coding_utf8): Likewise.
3743         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3744         `CHARSET_BY_ATTRIBUTES'.
3745         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3746         `str->counter'; decode 3, 4 bytes sets.
3747         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3748         sets.
3749         (decode_coding_no_conversion): Use `str->cpos' instead of
3750         `str->ch'.
3751
3752         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3753         (Qmojikyo_2022_1): New variable.
3754         (make_charset): Don't use `CHARSET_TYPE_*'.
3755         (range_charset_code_point): Support coded-charset
3756         `mojikyo-2022-1'.
3757         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3758         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3759         `CHARSET_BY_ATTRIBUTES'.
3760         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3761         `CHARSET_BY_ATTRIBUTES'.
3762         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3763         (complex_vars_of_mule_charset): Add new coded-charset
3764         `mojikyo-2022-1'.
3765
3766         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3767         interface; changed to inline function.
3768
3769         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3770         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3771         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3772         (CHARSET_TYPE_94): Deleted.
3773         (CHARSET_TYPE_94X94): Deleted.
3774         (CHARSET_TYPE_96): Deleted.
3775         (CHARSET_TYPE_96X96): Deleted.
3776         (CHARSET_TYPE_128): Deleted.
3777         (CHARSET_TYPE_128X128): Deleted.
3778         (CHARSET_TYPE_256): Deleted.
3779         (CHARSET_TYPE_256X256): Deleted.
3780         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3781         to inline function.
3782         (DECODE_MOJIKYO_2022): New inline function.
3783         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3784         `Vcharset_mojikyo_2022_1'.
3785
3786 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3787
3788         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3789         instead of `EQ'.
3790         (put_byte_table): Likewise.
3791         (char_id_table_equal): Use `get_byte_table' [new implementation].
3792
3793 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3794
3795         * mule-charset.c: Include <limits.h> in UTF-2000.
3796         (BT_UINT8_MIN): New macro in UTF-2000.
3797         (BT_UINT8_MAX): New macro in UTF-2000.
3798         (BT_UINT8_t): New macro in UTF-2000.
3799         (BT_UINT8_nil): New macro in UTF-2000.
3800         (BT_UINT8_unbound): New macro in UTF-2000.
3801         (INT_UINT8_P): New inline function in UTF-2000.
3802         (UINT8_VALUE_P): New inline function in UTF-2000.
3803         (UINT8_ENCODE): New inline function in UTF-2000.
3804         (UINT8_DECODE): New inline function in UTF-2000.
3805         (mark_uint8_byte_table): New function in UTF-2000.
3806         (print_uint8_byte_table): New function in UTF-2000.
3807         (uint8_byte_table_equal): New function in UTF-2000.
3808         (uint8_byte_table_hash): New function in UTF-2000.
3809         (make_uint8_byte_table): New function in UTF-2000.
3810         (uint8_byte_table_same_value_p): New function in UTF-2000.
3811         (BT_UINT16_MIN): New macro in UTF-2000.
3812         (BT_UINT16_MAX): New macro in UTF-2000.
3813         (BT_UINT16_t): New macro in UTF-2000.
3814         (BT_UINT16_nil): New macro in UTF-2000.
3815         (BT_UINT16_unbound): New macro in UTF-2000.
3816         (INT_UINT16_P): New inline function in UTF-2000.
3817         (UINT16_VALUE_P): New inline function in UTF-2000.
3818         (UINT16_ENCODE): New inline function in UTF-2000.
3819         (UINT16_DECODE): New inline function in UTF-2000.
3820         (UINT8_TO_UINT16): New inline function in UTF-2000.
3821         (mark_uint16_byte_table): New function in UTF-2000.
3822         (print_uint16_byte_table): New function in UTF-2000.
3823         (uint16_byte_table_equal): New function in UTF-2000.
3824         (uint16_byte_table_hash): New function in UTF-2000.
3825         (make_uint16_byte_table): New function in UTF-2000.
3826         (uint16_byte_table_same_value_p): New function in UTF-2000.
3827         (print_byte_table): New function in UTF-2000.
3828         (byte-table): Use `print_byte_table' as printer.
3829         (make_byte_table): Delete second argument `older'.
3830         (byte_table_same_value_p): New function in UTF-2000.
3831         (copy_byte_table): Deleted.
3832         (get_byte_table): New function in UTF-2000.
3833         (put_byte_table): New function in UTF-2000.
3834         (print_char_id_table): New function in UTF-2000.
3835         (char-id-table): Use `print_char_id_table' as printer.
3836         (make_char_id_table): Delete second argument `older'.
3837         (get_char_id_table): Use `get_byte_table [new implementation].
3838         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3839         implementation].
3840         (Ffind_char_attribute_table): New function in UTF-2000.
3841         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3842         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3843         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3844         (syms_of_mule_charset): Add new function
3845         `find-char-attribute-table' in UTF-2000.
3846
3847         * lrecord.h (enum lrecord_type): Add
3848         `lrecord_type_uint16_byte_table' and
3849         `lrecord_type_uint8_byte_table'.
3850
3851         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3852         (Lisp_Uint8_Byte_Table): New type.
3853         (XUINT8_BYTE_TABLE): New macro.
3854         (XSETUINT8_BYTE_TABLE): New macro.
3855         (UINT8_BYTE_TABLE_P): New macro.
3856         (GC_UINT8_BYTE_TABLE_P): New macro.
3857         (struct Lisp_Uint16_Byte_Table): New structure.
3858         (Lisp_Uint16_Byte_Table): New type.
3859         (XUINT16_BYTE_TABLE): New macro.
3860         (XSETUINT16_BYTE_TABLE): New macro.
3861         (UINT16_BYTE_TABLE_P): New macro.
3862         (GC_UINT16_BYTE_TABLE_P): New macro.
3863
3864 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3865
3866         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3867         (Vcharacter_ideographic_strokes_table): Deleted.
3868         (Vcharacter_total_strokes_table): Deleted.
3869         (Vcharacter_morohashi_daikanwa_table): Deleted.
3870         (Vcharacter_decomposition_table): Deleted.
3871         (Qname): Deleted because it is duplicated.
3872         (Qideographic_radical): Deleted.
3873         (Qideographic_strokes): Deleted.
3874         (Qtotal_strokes): Deleted.
3875         (Qmorohashi_daikanwa): Deleted.
3876         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3877         `ideographic-radical', `ideographic-strokes', `total-strokes',
3878         `morohashi-daikanwa' and `->decomposition'.
3879         (Fget_char_attribute): Likewise.
3880         (Fput_char_attribute): Likewise; use `make-vector' instead of
3881         `make_older_vector' for `->decomposition' value.
3882         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3883         `ideograph-daikanwa'.
3884         (syms_of_mule_charset): Delete builtin symbols `name',
3885         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3886         `morohashi-daikanwa'.
3887         (vars_of_mule_charset): Don't setup
3888         `Vcharacter_ideographic_radical_table',
3889         `Vcharacter_ideographic_strokes_table',
3890         `Vcharacter_total_strokes_table',
3891         `Vcharacter_morohashi_daikanwa_table' and
3892         `Vcharacter_decomposition_table'.
3893
3894 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3895
3896         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3897         `make_older_vector', `make_vector_newer_1' and
3898         `make_vector_newer'.
3899
3900         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3901         `make_older_vector' and `make_vector_newer'.
3902
3903         * config.h.in (HAVE_GGC): New macro.
3904
3905 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3906
3907         * mule-charset.c (struct char_attribute_list_closure): New
3908         structure in UTF-2000.
3909         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3910         (Fchar_attribute_list): Likewise.
3911         (Fset_charset_mapping_table): Use `make_vector_newer'.
3912         (Fdecode_builtin_char): New function in UTF-2000.
3913         (syms_of_mule_charset): Add new function `char-attribute-list' and
3914         `decode-builtin-char' in UTF-2000.
3915
3916         * lisp.h (make_vector_newer): New prototype.
3917
3918         * alloc.c (make_vector_newer_1): New function.
3919         (make_vector_newer): New function.
3920
3921 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3922
3923         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3924         50100)'.
3925
3926 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3927
3928         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3929         (Vcharacter_attribute_table): Deleted.
3930         (Vcharacter_name_table): Deleted.
3931         (put_char_attribute): Deleted.
3932         (remove_char_attribute): Deleted.
3933         (struct char_attribute_alist_closure): New structure.
3934         (add_char_attribute_alist_mapper): New function.
3935         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3936         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3937         (Fget_char_attribute): Likewise.
3938         (Fput_char_attribute): Likewise.
3939         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3940         of `remove_char_attribute'.
3941         (Fdefine_char): Return character.
3942         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3943         and `Vcharacter_name_table'.
3944         (complex_vars_of_mule_charset): Likewise
3945         `Vchar_attribute_hash_table'.
3946
3947 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3948
3949         * character.h (CHARC_CHARSET): New macro.
3950         (CHARC_CHARSET_ID): New macro.
3951         (CHARC_CODE_POINT): New macro.
3952         (CHARC_COLUMNS): New macro.
3953         (CHARC_TO_CHAR): New inline function.
3954         (CHARC_EQ): New inline function.
3955         (CHARC_ASCII_EQ): New inline function.
3956         (CHARC_IS_SPACE): New inline function.
3957         (ASCII_TO_CHARC): New inline function.
3958
3959         * char-ucs.h (encode_char_2): Deleted.
3960         (ENCODE_CHAR): Use `encode_char_1' again.
3961         (breakup_char_1): Likewise.
3962         (CHAR_TO_CHARC): New inline function.
3963
3964         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3965
3966 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3967
3968         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3969         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3970         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3971         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3972         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3973         `CHARC_IS_SPACE'.
3974         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3975
3976         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3977         `CHARC_CODE_POINT'.
3978         (x_output_display_block): Use `CHARC_CHARSET' and
3979         `CHARC_ASCII_EQ'.
3980
3981         * redisplay-tty.c (tty_output_display_block): Use
3982         `CHARC_ASCII_EQ'.
3983         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3984
3985         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3986
3987         * insdel.c (find_charsets_in_charc_string): Use
3988         `CHARC_CHARSET_ID'.
3989         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3990         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3991         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3992         (convert_charc_string_into_malloced_string): Likewise.
3993
3994 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3995
3996         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3997         instead of <Emchar_dynarr *> for buf; use
3998         `convert_bufbyte_string_into_charc_dynarr' instead of
3999         `convert_bufbyte_string_into_emchar_dynarr'; use
4000         `find_charsets_in_charc_string' instead of
4001         `find_charsets_in_emchar_string'.
4002
4003         * redisplay.h:
4004         - Include "character.h".
4005         (struct rune): New member `cglyph'; delete member `chr'.
4006
4007         * redisplay.c (redisplay_text_width_charc_string): New function;
4008         delete `redisplay_text_width_emchar_string'.
4009         (rtw_charc_dynarr): New variable; renamed from
4010         `rtw_emchar_dynarr'.
4011         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
4012         `rtw_emchar_dynarr'; use
4013         `convert_bufbyte_string_into_charc_dynarr' instead of
4014         `convert_bufbyte_string_into_emchar_dynarr'; use
4015         `redisplay_text_width_charc_string' instead of
4016         `redisplay_text_width_emchar_string'.
4017         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
4018         instead of `rtw_emchar_dynarr'; use
4019         `convert_bufbyte_string_into_charc_dynarr' instead of
4020         `convert_bufbyte_string_into_emchar_dynarr'.
4021         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
4022         `redisplay_text_width_charc_string' instead of
4023         `redisplay_text_width_emchar_string'.
4024         (create_text_block): Modify for <struct rune> change.
4025         (generate_formatted_string_db): Likewise.
4026         (create_string_text_block): Likewise.
4027         (pixel_to_glyph_translation): Likewise.
4028
4029         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
4030         instead of <const Emchar *>.
4031         (x_text_width): Likewise.
4032         (x_output_display_block): Use <Charc_dynarr *> instead
4033         <Emchar_dynarr *>; modify for <structure rune> change.
4034         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
4035         *>.
4036
4037         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
4038         <const Emchar *>; use `charc_string_displayed_columns' instead of
4039         `emchar_string_displayed_columns'.
4040         (tty_output_display_block): Use <Charc_dynarr *> instead of
4041         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
4042         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
4043         (tty_output_charc_dynarr_dynarr): New variable; renamed from
4044         `tty_output_emchar_dynarr_dynarr'.
4045         (tty_output_charc_dynarr): New function; delete
4046         `tty_output_charc_dynarr'.
4047
4048         * redisplay-output.c (compare_runes): Modify for `struct rune'.
4049         (redisplay_output_layout): Use <Charc_dynarr *> instead of
4050         <Emchar_dynarr *> for buf; use
4051         `convert_bufbyte_string_into_charc_dynarr' instead of
4052         `convert_bufbyte_string_into_emchar_dynarr'.
4053
4054         * frame.c (title_string_charc_dynarr): New variable; renamed from
4055         `title_string_emchar_dynarr'.
4056         (generate_title_string): Use `title_string_charc_dynarr' instead
4057         of `title_string_emchar_dynarr'; use
4058         `convert_charc_string_into_malloced_string' instead of
4059         `convert_emchar_string_into_malloced_string'.
4060         (init_frame): Use `title_string_charc_dynarr' instead of
4061         `title_string_emchar_dynarr'.
4062
4063         * console.h:
4064         - Include "character.h".
4065         (struct console_methods): Use <const Charc *> instead of <const
4066         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
4067         <Emchar_dynarr *> in output_string_method.
4068
4069         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
4070         <Emchar_dynarr *>.
4071
4072         * console-stream.c (stream_text_width): Use <const Charc *>
4073         instead of <const Emchar *>.
4074
4075         * character.h (Charc_dynarr): New type.
4076
4077         * char-ucs.h (structure Charc): New structure; define new type
4078         `Charc'.
4079
4080         * char-lb.h (DECODE_CHAR): New inline function.
4081         (encode_char_1): New inline function.
4082         (ENCODE_CHAR): New macro.
4083         (structure Charc): New structure; define new type `Charc'.
4084
4085         * char-1byte.h (Vcharset_control_1): New macro.
4086         (Vcharset_latin_iso8859_1): New macro.
4087         (DECODE_CHAR): New inline function.
4088         (encode_char_1): New inline function.
4089         (ENCODE_CHAR): New macro.
4090         (structure Charc): New structure; define new type `Charc'.
4091
4092         * insdel.c (find_charsets_in_charc_string): New function; delete
4093         `find_charsets_in_emchar_string'.
4094         (charc_string_displayed_columns): New function; delete
4095         `emchar_string_displayed_columns'.
4096         (convert_bufbyte_string_into_charc_dynarr): New function; delete
4097         `convert_bufbyte_string_into_emchar_dynarr'.
4098         (convert_charc_string_into_bufbyte_dynarr): New function; delete
4099         `convert_charc_string_into_bufbyte_dynarr'.
4100         (convert_charc_string_into_malloced_string): New function; delete
4101         `convert_charc_string_into_malloced_string'.
4102
4103         * buffer.h (find_charsets_in_charc_string): New prototype; delete
4104         `find_charsets_in_emchar_string'.
4105         (charc_string_displayed_columns): New prototype; delete
4106         `emchar_string_displayed_columns'.
4107         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
4108         `convert_charc_string_into_bufbyte_dynarr'.
4109         (convert_charc_string_into_malloced_string): New prototype; delete
4110         `convert_charc_string_into_malloced_string'.
4111
4112 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4113
4114         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
4115
4116 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4117
4118         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
4119
4120         * char-ucs.h: Use <short> for <Charset_ID>.
4121
4122         * mule-charset.h, char-1byte.h: Use <unsigned char> for
4123         <Charset_ID>.
4124
4125 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4126
4127         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4128         to 0.16.
4129
4130 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4131
4132         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
4133         variable.
4134         (Qmorohashi_daikanwa): New variable.
4135         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
4136         for `morohashi-daikanwa' attribute.
4137         (Fget_char_attribute): Likewise.
4138         (Fput_char_attribute): Likewise.
4139         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
4140         has the same value of `ideograph-daikanwa'.
4141         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
4142         (vars_of_mule_charset): Setup
4143         `Vcharacter_morohashi_daikanwa_table'.
4144
4145 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4146
4147         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
4148         attributes.
4149         (add_charset_to_list_mapper): Add `key' instead of
4150         `XCHARSET_NAME (value)' to return aliases.
4151
4152 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4153
4154         * mule-charset.c (Vcharacter_ideographic_radical_table): New
4155         variable.
4156         (Vcharacter_ideographic_strokes_table): New variable.
4157         (Qideographic_radical): New variable.
4158         (Qideographic_strokes): New variable.
4159         (Fchar_attribute_alist): Use
4160         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
4161         attribute; use `Vcharacter_ideographic_strokes_table' for
4162         `ideographic-strokes' attribute.
4163         (Fget_char_attribute): Likewise.
4164         (Fput_char_attribute): Likewise.
4165         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
4166         `ideographic-strokes'.
4167         (vars_of_mule_charset): Setup
4168         `Vcharacter_ideographic_radical_table' and
4169         `Vcharacter_ideographic_strokes_table'.
4170
4171 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4172
4173         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
4174         (Qtotal_strokes): New variable.
4175         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
4176         `total-strokes' attribute.
4177         (Fget_char_attribute): Likewise.
4178         (Fput_char_attribute): Likewise.
4179         (syms_of_mule_charset): Add new symbol `total-strokes'.
4180         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
4181
4182 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4183
4184         * mule-charset.c (Vcharacter_decomposition_table): New variable.
4185         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
4186         are found.
4187         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
4188         `->decomposition' attribute.
4189         (Fput_char_attribute): Likewise.
4190         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
4191
4192 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4193
4194         * mule-charset.c (decoding_table_check_elements): New function.
4195         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
4196
4197 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4198
4199         * mule-charset.c (Fset_charset_mapping_table): Use
4200         `put_char_ccs_code_point'.
4201
4202 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4203
4204         * mule-charset.c (decoding_table_put_char): New inline function.
4205         (put_char_ccs_code_point): Use `decoding_table_put_char'.
4206
4207 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4208
4209         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
4210         (XCHARSET_BYTE_SIZE): New macro.
4211         (decoding_table_remove_char): New inline function.
4212         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
4213         `decoding_table_remove_char'.
4214         (remove_char_ccs): Use `decoding_table_remove_char'.
4215         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
4216
4217 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4218
4219         * mule-charset.c (Vcharacter_name_table): New variable.
4220         (Qname): New variable.
4221         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
4222         attribute.
4223         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
4224         `Vcharacter_name_table' for `name' attribute.
4225         (Fremove_char_attribute): Use function `remove_char_ccs'.
4226         (put_char_ccs_code_point): New function.
4227         (remove_char_ccs): New function.
4228         (syms_of_mule_charset): Add new symbol `name'.
4229         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
4230
4231 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4232
4233         * mule-charset.c (make_byte_table): Add new argument `older'.
4234         (make_char_id_table): Likewise.
4235         (copy_char_id_table): Comment out because it is not used.
4236         (put_char_id_table): Modify for `make_byte_table'.
4237         (Fput_char_attribute): Make encoding_table as older object;
4238         inherit older bit of `Vcharacter_composition_table'.
4239         (mark_charset): Don't mark `cs->encoding_table'.
4240         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
4241         normal object; make `Vcharacter_composition_table' as an older
4242         object; delete staticpro for `Vcharacter_composition_table'; make
4243         `Vcharacter_variant_table' as a normal object.
4244
4245         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
4246         (mark_object): Don't check older object in UTF-2000.
4247
4248         * lrecord.h (struct lrecord_header): Add new member `older' in
4249         UTF-2000.
4250         (set_lheader_implementation): Setup `SLI_header->older' in
4251         UTF-2000.
4252         (set_lheader_older_implementation): New macro in UTF-2000.
4253         (OLDER_RECORD_P): New macro in UTF-2000.
4254         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
4255         (alloc_older_lcrecord): New prototype in UTF-2000.
4256         (alloc_older_lcrecord_type): New macro in UTF-2000.
4257
4258 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4259
4260         * mule-charset.c (byte_table_description): Use
4261         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
4262         (char_id_table_description): Delete bogus `, 1'.
4263         (Fget_char_attribute): Refer encoding_table of each coded-charset
4264         to get value of coded-charset attribute of a character.
4265         (Fput_char_attribute): Use `make_older_vector' instead of
4266         `make_vector'; use encoding_table of each coded-charset to store
4267         value of coded-charset attribute of a character.
4268         (Fremove_char_attribute): Use encoding_table of each coded-charset
4269         to store value of coded-charset attribute of a character.
4270         (mark_charset): Mark `cs->encoding_table'; don't mark
4271         `cs->decoding_table'.
4272         (charset_description): Add description of new member
4273         `encoding_table'.
4274         (make_charset): Initialize `encoding_table'.
4275
4276         * char-ucs.h (struct Lisp_Charset): Add new member
4277         `encoding_table'.
4278         (CHARSET_ENCODING_TABLE): New macro.
4279         (XCHARSET_ENCODING_TABLE): New macro.
4280         (charset_code_point): New implementation.
4281         (encode_char_1): Likewise.
4282
4283         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
4284         (disksave_object_finalization_1): Call finalizers of
4285         `all_older_lcrecords' in UTF-2000.
4286         (make_older_vector): New function in UTF-2000.
4287         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
4288         UTF-2000.
4289
4290         * lisp.h (make_older_vector): New prototype in UTF-2000.
4291
4292 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4293
4294         * lrecord.h (enum lrecord_type): Rename
4295         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
4296
4297         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
4298         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
4299         `get_char_code_table'.
4300
4301         * mule-charset.c (mark_char_id_table): Renamed from
4302         `mark_char_code_table'.
4303         (char_id_table_equal): Renamed from `char_code_table_equal'.
4304         (char_id_table_hash): Renamed from `char_code_table_hash'.
4305         (make_char_id_table): Renamed from `make_char_code_table'.
4306         (copy_char_id_table): Renamed from `copy_char_code_table'.
4307         (get_char_id_table): Renamed from `get_char_code_table'.
4308         (put_char_id_table): Renamed from `put_char_code_table'.
4309         (to_char_id): Renamed from `to_char_code'.
4310
4311         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
4312         `Lisp_Char_Code_Table'.
4313         (char_id_table): Renamed from `char_code_table'.
4314         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
4315         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
4316         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
4317         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
4318         (get_char_id_table): Renamed from `get_char_code_table'.
4319
4320 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4321
4322         * lrecord.h (enum lrecord_type): Rename
4323         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
4324
4325         * mule-charset.c (mark_byte_table): Renamed from
4326         `mark_char_byte_table'.
4327         (byte_table_equal): Renamed from `char_byte_table_equal'.
4328         (byte_table_hash): Renamed from `byte_table_hash'.
4329         (make_byte_table): Renamed from `make_byte_table'.
4330         (copy_byte_table): Renamed from `copy_char_byte_table'.
4331
4332         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4333         `Lisp_Char_Byte_Table'.
4334         (byte_table): Renamed from `char_byte_table'.
4335         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4336         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4337         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4338         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4339
4340 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4341
4342         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4343         (dfc_convert_to_internal_format): Likewise.
4344         
4345         * text-coding.c (Fcoding_system_canonical_name_p): New function.
4346         * text-coding.c (Fcoding_system_alias_p): New function.
4347         * text-coding.c (Fcoding_system_aliasee): New function.
4348         * text-coding.c (append_suffix_to_symbol): New function.
4349         * text-coding.c (dangling_coding_system_alias_p): New function.
4350         * text-coding.c (Ffind_coding_system):
4351         * text-coding.c (Fcopy_coding_system):
4352         * text-coding.c (encode_coding_no_conversion):
4353         * text-coding.c (syms_of_file_coding):
4354         * text-coding.c (vars_of_file_coding):
4355         Rewrite coding system alias code.
4356         Allow nested aliases, like symbolic links.
4357         Allow redefinition of coding system aliases.
4358         Prevent existence of dangling coding system aliases.
4359         Eliminate convert_to_external_format.
4360         Eliminate convert_to_internal_format.
4361         
4362         * text-coding.c: Change enum eol_type to eol_type_t.
4363
4364 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4365
4366         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4367         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4368
4369         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4370         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4371
4372 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4373
4374         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4375         `ideograph-daikanwa'.
4376
4377         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4378         (Vcharset_ucs_bmp): Likewise.
4379         (Vcharset_mojikyo): Add new extern variable definition.
4380         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4381         (Vcharset_latin_iso8859_3): Likewise.
4382         (Vcharset_latin_iso8859_4): Likewise.
4383         (Vcharset_latin_iso8859_9): Likewise.
4384         (Vcharset_latin_viscii_lower): Likewise.
4385         (Vcharset_latin_viscii_upper): Likewise.
4386         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4387         `mojikyo' code-point is used to decode.
4388         (encode_char_2): New function [to convert `mojikyo' code-point to
4389         Mojikyo font encoding].
4390         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4391         (breakup_char_1): Likewise.
4392         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4393
4394 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4395
4396         * text-coding.c (Fmake_coding_system): Add document about
4397         `disable-composition' property.
4398
4399 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4400
4401         * text-coding.c (Qdisable_composition): New variable; delete
4402         `Qcomposite'.
4403         (Fmake_coding_system): Add new property `disable-composite';
4404         delete property `composite'.
4405         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4406         instead of `!CODING_SYSTEM_COMPOSITE'.
4407         (syms_of_file_coding): Add new symbol `disable-composition';
4408         delete symbol `composite'.
4409
4410         * file-coding.h (struct Lisp_Coding_System): Add
4411         `disable_composition'; delete `enable_composition'.
4412         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4413         `CODING_SYSTEM_COMPOSITE'.
4414         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4415         `XCODING_SYSTEM_COMPOSITE'.
4416
4417 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4418
4419         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4420         to 0.15.
4421
4422 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4423
4424         * text-coding.c (Qcomposite): New variable.
4425         (Fmake_coding_system): Add new property `composite'.
4426         (struct decoding_stream): Add `combined_char_count',
4427         `combined_chars' and `combining_table' in UTF-2000.
4428         (COMPOSE_FLUSH_CHARS): New macro.
4429         (COMPOSE_ADD_CHAR): New macro.
4430         (reset_decoding_stream): Reset `str->combined_char_count' and
4431         `str->combining_table' in UTF-2000.
4432         (decode_coding_iso2022): Modify for character-decomposition.
4433         (syms_of_file_coding): Add new symbol `composite'.
4434
4435 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4436
4437         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4438         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4439         of `Vcharacter_composition_table' if `->decomposition' property
4440         has only 1 element.
4441         (Qlatin_tcvn5712): New variable.
4442         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4443         (complex_vars_of_mule_charset): Add new coded-charset
4444         `latin-tcvn5712'.
4445
4446         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4447
4448 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4449
4450         * file-coding.h (struct Lisp_Coding_System): Add
4451         `enable_composition'.
4452         (CODING_SYSTEM_COMPOSITE): New macro.
4453         (XCODING_SYSTEM_COMPOSITE): New macro.
4454
4455 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4456
4457         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4458
4459 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4460
4461         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4462         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4463
4464 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4465
4466         * mule-charset.c (Vcharset_mojikyo): New variable.
4467         (Fdefine_char): Don't use coded-charset which does not have
4468         non-builtin character range to allocate character-id.
4469         (Qmojikyo): New variable.
4470         (syms_of_mule_charset): Add new symbol `mojikyo'.
4471         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4472
4473         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4474         (LEADING_BYTE_MOJIKYO): New macro.
4475         (MIN_CHAR_MOJIKYO): New macro.
4476         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4477         (MAX_CHAR_MOJIKYO): New macro.
4478
4479 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4480
4481         * mule-charset.c (remove_char_attribute): Fixed.
4482
4483 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4484
4485         * mule-charset.c (remove_char_attribute): New function.
4486         (Fremove_char_attribute): New function.
4487         (encode_builtin_char_1): Comment out builtin-support for
4488         greek-iso8859-7 and cyrillic-iso8859-5.
4489         (Fdecode_char): Check `code' is an integer.
4490         (syms_of_mule_charset): Add `remove-char-attribute'.
4491         (MIN_CHAR_GREEK): Deleted.
4492         (MAX_CHAR_GREEK): Likewise.
4493         (MIN_CHAR_CYRILLIC): Likewise.
4494         (MAX_CHAR_CYRILLIC): Likewise.
4495         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4496         MAX_CHAR_GREEK for `greek-iso8859-7'.
4497
4498         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4499         (MAX_CHAR_GREEK): Likewise.
4500         (MIN_CHAR_CYRILLIC): Likewise.
4501         (MAX_CHAR_CYRILLIC): Likewise.
4502
4503 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4504
4505         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4506         format is used without `ucs' property.
4507         (Fdecode_char): Fix problem with GR representation.
4508         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4509         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4510
4511 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4512
4513         * mule-charset.c (make_builtin_char): New function.
4514         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4515         (Fset_charset_mapping_table): Modify for new representation of
4516         code-point.
4517         (Fdecode_char): New function.
4518         (syms_of_mule_charset): Add new builtin function `decode-char' in
4519         UTF-2000.
4520
4521         * char-ucs.h (make_builtin_char): New prototype.
4522         (DECODE_CHAR): New inline function.
4523         (MAKE_CHAR): Use `DECODE_CHAR'.
4524
4525 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4526
4527         * text-coding.c (parse_charset_conversion_specs): Use
4528         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4529         `XCHARSET_TYPE'.
4530         (iso2022_designate): Likewise.
4531
4532         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4533         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4534
4535         * mule-charset.c (Vcharset_ucs): New variable.
4536         (print_charset): Change design; use `CHARSET_CHARS' and
4537         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4538         (make_charset): Change signature to specify `chars' and
4539         `dimension' instead of `type'.
4540         (range_charset_code_point): Modify for 256^n-set.
4541         (encode_builtin_char_1): Encode as `ucs' in default.
4542         (Fmake_charset): Modify for `make_charset'.
4543         (Fmake_reverse_direction_charset): Likewise.
4544         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4545         UTF-2000.
4546         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4547         for `make_charset'.
4548
4549         * char-ucs.h (Vcharset_ucs): New variable.
4550         (LEADING_BYTE_UCS): New macro.
4551         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4552         and `chars' to `unsigned short' from `unsigned int'.
4553         (CHARSET_TYPE): Deleted.
4554         (XCHARSET_TYPE): Deleted.
4555
4556 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4557
4558         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4559
4560         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4561         (ENCODE_CHAR): New macro.
4562
4563 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4564
4565         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4566         to 0.14 (Kawachi-Katakami).
4567
4568 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4569
4570         * text-coding.c (char_encode_shift_jis): Modify for
4571         `charset_code_point'.
4572         (char_encode_iso2022): Likewise.
4573
4574         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4575         (integer) instead of list of <Lisp_Object>s (integers) as the
4576         format of code-point of a coded-charset.
4577         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4578         (encode_builtin_char_1): New function; delete
4579         `split_builtin_char'.
4580         (charset_code_point): Return <int> instead of <Lisp_Object>.
4581         (Fsplit_char): Don't use `SPLIT_CHAR'.
4582
4583         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4584         prototype for `split_builtin_char'.
4585         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4586         (charset_code_point): Likewise.
4587         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4588         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4589
4590 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4591
4592         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4593         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4594
4595 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4596
4597         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4598
4599         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4600         (MAX_CHAR_OBS_94x94): Deleted.
4601
4602 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4603
4604         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4605
4606         * char-ucs.h (MAX_CHAR_BMP): New macro.
4607
4608 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4609
4610         * text-coding.c: Sync with r21-2-24.
4611
4612 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4613
4614         * file-coding.c: Modify for UTF-2000.
4615
4616 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4617
4618         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4619         to 0.13 (Takaida).
4620
4621 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4622
4623         * mule-charset.c (split_builtin_char): Delete builtin support for
4624         `katakana-jisx0201'.
4625         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4626         BMP area in builtin representation.
4627
4628         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4629         `Vcharset_katakana_jisx0201'.
4630
4631 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4632
4633         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4634         (Qisolated): New variable.
4635         (Qinitial): New variable.
4636         (Qmedial): New variable.
4637         (Qfinal): New variable.
4638         (Qvertical): New variable.
4639         (Qsmall): New variable.
4640         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4641         `Qvertical' and `Qsmall'.
4642         (Qmojikyo_pj_[1 .. 21]): New variable.
4643         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4644         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4645         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4646         .. 21]'.
4647
4648 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4649
4650         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4651         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4652         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4653
4654 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4655
4656         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4657         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4658         BMP.
4659         (Qjapanese_jisx0208_1990): New variable.
4660         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4661         (complex_vars_of_mule_charset): Add new coded-charset
4662         `japanese-jisx0208-1990'.
4663
4664         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4665         (MIN_CHAR_JIS_X0208_1990): New macro.
4666         (MAX_CHAR_JIS_X0208_1990): New macro.
4667
4668 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4669
4670         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4671         coded-charset is not found.
4672
4673 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4674
4675         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4676         (Fdefine_char): Use `Fmake_char'.
4677
4678 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4679
4680         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4681         (Vcharset_hiragana_jisx0208): Deleted.
4682         (Vcharset_katakana_jisx0208): Deleted.
4683         (Qideograph_daikanwa): New variable.
4684         (Qhiragana_jisx0208): Deleted.
4685         (Qkatakana_jisx0208): Deleted.
4686         (split_builtin_char): Split `ideograph-daikanwa'.
4687         (Fsplit_char): New implementation for UTF-2000.
4688         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4689         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4690         (complex_vars_of_mule_charset): Add new coded-charset
4691         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4692         `katakana-jisx0208'.
4693
4694         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4695         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4696         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4697         (MIN_CHAR_DAIKANWA): New macro.
4698         (MAX_CHAR_DAIKANWA): New macro.
4699
4700 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4701
4702         * data.c (Fstring_to_number): Don't recognize floating point if
4703         base is not 10.
4704
4705 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4706
4707         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4708
4709 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4710
4711         * mule-charset.c (Qsquare): New variable.
4712         (to_char_code): Add `Qsquare'.
4713         (syms_of_mule_charset): Add new symbol `square'.
4714
4715 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4716
4717         * mule-charset.c (Qcircle): New variable.
4718         (to_char_code): Add `Qcircle'.
4719         (syms_of_mule_charset): Add new symbol `circle'.
4720
4721 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4722
4723         * mule-charset.c (Qfont): New variable.
4724         (to_char_code): Add `Qfont'.
4725         (syms_of_mule_charset): Add new symbol `font'.
4726
4727 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4728
4729         * mule-charset.c (Qsub): New variable.
4730         (to_char_code): Add `Qsub'.
4731         (syms_of_mule_charset): Add new symbol `sub'.
4732
4733 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4734
4735         * mule-charset.c (Fput_char_attribute): Convert each element of
4736         VALUE to GL position if ATTRIBUTE is a GR-set,
4737
4738 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4739
4740         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4741         coded-charset is a GR-set.
4742
4743 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4744
4745         * mule-charset.c (Fput_char_attribute): Check each element of
4746         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4747
4748 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4749
4750         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4751         UTF-2000.
4752         (Qethiopic_ucs): New variable in UTF-2000.
4753         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4754         (complex_vars_of_mule_charset): Add new coded-charset
4755         `ethiopic-ucs' in UTF-2000.
4756
4757         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4758         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4759         9)'.
4760         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4761         10)'.
4762         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4763
4764 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4765
4766         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4767         `ascii'.
4768
4769 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4770
4771         * mule-charset.c (Vcharacter_variant_table): New variable.
4772         (Q_ucs): New variable.
4773         (Fchar_variants): New function.
4774         (Fput_char_attribute): Register `->ucs' value to
4775         `Vcharacter_variant_table'.
4776         (syms_of_mule_charset): Add new function `char-variants' and new
4777         symbol `->ucs'.
4778         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4779
4780 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4781
4782         * mule-charset.c (get_char_code_table): Allow negative character
4783         code.
4784         (put_char_code_table): Likewise.
4785         (Vcharacter_composition_table): New variable.
4786         (Q_decomposition): New variable.
4787         (Qwide): New variable.
4788         (Qnarrow): New variable.
4789         (Qcompat): New variable.
4790         (QnoBreak): New variable.
4791         (Qsuper): New variable.
4792         (Qfraction): New variable.
4793         (to_char_code): New function.
4794         (Fget_composite_char): New function.
4795         (Fput_char_attribute): Register `->decomposition' value to
4796         `Vcharacter_composition_table'.
4797         (syms_of_mule_charset): Add new function `get-composite-char', new
4798         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4799         `super' and `fraction'.
4800         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4801
4802 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4803
4804         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4805         character; copy the return value.
4806
4807 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4808
4809         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4810
4811         * mule-charset.c (range_charset_code_point): Must use make_int.
4812         (split_builtin_char): New function.
4813
4814 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4815
4816         * mule-charset.c (char_byte_table): Change name from
4817         "char-code-table" to "char-byte-table".
4818         (mark_char_code_table): New function.
4819         (char_code_table_equal): New function.
4820         (char_code_table_hash): New function.
4821         (char_code_table_description): New constant.
4822         (char_code_table): New type.
4823         (make_char_code_table): New function.
4824         (copy_char_code_table): New function.
4825         (get_char_code_table): Modify for `char_code_table' type.
4826         (put_char_code_table): Likewise.
4827         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4828         (Kashiwara).
4829
4830         * char-ucs.h (char_code_table): New type.
4831         (XCHAR_CODE_TABLE): New macro.
4832         (XSETCHAR_CODE_TABLE): New macro.
4833         (CHAR_CODE_TABLE_P): New macro.
4834         (GC_CHAR_CODE_TABLE_P): New macro.
4835         (struct Lisp_Char_Code_Table): New structure.
4836
4837 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4838
4839         * mule-charset.c (Fmake_charset): Setup byte_offset for
4840         {94|96}^n-set.
4841
4842 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4843
4844         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4845         character.
4846
4847 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4848
4849         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4850         is found.
4851
4852 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4853
4854         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4855         charset, it is regarded as a charset.
4856         (put_char_attribute): New function in UTF-2000.
4857         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4858         charset, mapping-table of the charset is modified.
4859         (Fdefine_char): New function in UTF-2000.
4860         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4861         `Fput_char_attribute'.
4862         (syms_of_mule_charset): Add new function `define-char' and new
4863         symbol `ucs' in UTF-2000.
4864         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4865
4866 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4867
4868         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4869         non-UTF-2000 configuration.
4870
4871 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4872
4873         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4874         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4875
4876         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4877         deleted.
4878         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4879         (Fset_charset_mapping_table): Likewise.
4880
4881         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4882         (CHARSET_ENCODING_TABLE): Delete.
4883         (XCHARSET_ENCODING_TABLE): Delete.
4884         (charset_code_point): New interface.
4885
4886 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4887
4888         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4889         instead of `charset_get_byte1' and `charset_get_byte2'.
4890
4891         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4892         (charset_get_byte2): Deleted.
4893
4894 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4895
4896         * char-ucs.h (SPLIT_CHAR): New inline function.
4897         (breakup_char_1): Use `SPLIT_CHAR'.
4898
4899         * mule-charset.c (range_charset_code_point): New function.
4900         (charset_code_point): New function.
4901
4902         * char-ucs.h (range_charset_code_point): New interface.
4903         (breakup_char_1): Use `range_charset_code_point'.
4904
4905 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4906
4907         * mule-charset.c (Fmake_charset): Delete unused local variable
4908         `code_offset'.
4909
4910         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4911         (breakup_char_1): Find a charset and code-point in
4912         `Vcharacter_attribute_table'.
4913
4914 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4915
4916         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4917         to 0.10 (Yao).
4918
4919 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4920
4921         * mule-charset.c (Vcharacter_attribute_table): New variable.
4922         (Fchar_attribute_alist): New function.
4923         (Fget_char_attribute): New function.
4924         (Fput_char_attribute): New function.
4925         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4926         too.
4927         (syms_of_mule_charset): Add new function `char-attribute-alist',
4928         `get-char-attribute' and `put-char-attribute'.
4929         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4930
4931 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4932
4933         * mule-charset.c (Fmake_charset): Just use
4934         `get_unallocated_leading_byte'.
4935
4936         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4937         sets; don't use final-byte based number for private sets.
4938
4939 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4940
4941         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4942         integer.
4943
4944 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4945
4946         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4947         to 0.9.
4948
4949 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4950
4951         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4952         of `CHAR_LEADING_BYTE' in UTF-2000.
4953
4954         * insdel.c (find_charsets_in_bufbyte_string): Use
4955         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4956         (find_charsets_in_emchar_string): Likewise.
4957
4958         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4959         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4960
4961         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4962         (CHAR_CHARSET_ID): New macro.
4963
4964 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4965
4966         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4967         charset-id - MIN_LEADING_BYTE.
4968         (put_char_table): Likewise.
4969
4970 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4971
4972         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4973         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4974         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4975         (CHARSET_ID_OFFSET): New macro.
4976         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4977         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4978         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4979         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4980         4).
4981         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4982         5).
4983         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4984         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4985         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4986         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4987         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4988
4989 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4990
4991         * mule-charset.c (next_allocated_leading_byte): New variable in
4992         UTF-2000.
4993         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4994         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4995         (get_unallocated_leading_byte): Simply use
4996         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4997         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4998         UTF-2000.
4999
5000         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
5001         (MAX_LEADING_BYTE_PRIVATE): New macro.
5002         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
5003         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
5004
5005 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5006
5007         * mule-charset.c (Fmake_charset): Allocate final-byte based
5008         charset-id for 94-set, 96-set and 94x94-set.
5009
5010 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5011
5012         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
5013         ambiguous `else'.
5014         (Fmake_charset): Likewise.
5015         (complex_vars_of_mule_charset): Modify the font registry of
5016         `ucs-bmp' not to match `Ethiopic-Unicode'.
5017
5018 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5019
5020         * mule-charset.c (complex_vars_of_mule_charset): Add font
5021         registory of `ucs-bmp'.
5022
5023 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5024
5025         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
5026         coded-charsets in `default-coded-charset-priority-list' when
5027         breaking up a character.
5028
5029         * mule-charset.c (Vcharset_latin_viscii): New variable.
5030         (Qlatin_viscii): New variable.
5031         (make_charset): Don't use `decoding_table'.
5032         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
5033         byte_offset.
5034         (Fset_charset_mapping_table): New implementation.
5035         (syms_of_mule_charset): Add new symbol `latin-viscii'.
5036         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
5037         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
5038         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
5039         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
5040         charset `latin_viscii'.
5041
5042         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
5043         (CHARSET_TYPE_94X94): Change to 1 from 2.
5044         (CHARSET_TYPE_96): Change to 2 from 1.
5045         (CHARSET_TYPE_128): New macro.
5046         (CHARSET_TYPE_128X128): Change to 5 from 4.
5047         (CHARSET_TYPE_256): New macro.
5048         (CHARSET_TYPE_256X256): Change to 7 from 5.
5049         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
5050
5051 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5052
5053         * text-coding.c (char_encode_shift_jis): Refer
5054         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
5055         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
5056
5057         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
5058         (char_byte_table_equal): New function in UTF-2000.
5059         (char_byte_table_hash): New function in UTF-2000.
5060         (char_byte_table_description): New constant in UTF-2000.
5061         (char_byte_table): New type in UTF-2000.
5062         (make_char_byte_table): New function in UTF-2000.
5063         (copy_char_byte_table): New function in UTF-2000.
5064         (make_char_code_table): New macro in UTF-2000.
5065         (get_char_code_table): New function in UTF-2000.
5066         (put_char_code_table): New function in UTF-2000.
5067         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
5068         (charset_description): Add setting in UTF-2000.
5069         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
5070         `CHARSET_TO_BYTE1_TABLE(cs)'.
5071         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
5072         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
5073         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
5074         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
5075         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
5076         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
5077         `CHARSET_TO_BYTE2_TABLE(cs)'.
5078
5079         * char-ucs.h (char_byte_table): New type.
5080         (XCHAR_BYTE_TABLE): New macro.
5081         (XSETCHAR_BYTE_TABLE): New macro.
5082         (CHAR_BYTE_TABLE_P): New macro.
5083         (GC_CHAR_BYTE_TABLE_P): New macro.
5084         (struct Lisp_Char_Byte_Table): New structure.
5085         (get_char_code_table): New interface.
5086         (Emchar_to_byte_table): Deleted.
5087         (get_byte_from_character_table): Deleted.
5088         (struct Lisp_Charset): Add `encoding_table'; delete
5089         `to_byte1_table' and `to_byte2_table'.
5090         (CHARSET_ENCODING_TABLE): New macro.
5091         (CHARSET_TO_BYTE1_TABLE): Deleted.
5092         (CHARSET_TO_BYTE2_TABLE): Deleted.
5093         (XCHARSET_ENCODING_TABLE): New macro.
5094         (XCHARSET_TO_BYTE1_TABLE): Deleted.
5095         (XCHARSET_TO_BYTE2_TABLE): Deleted.
5096
5097 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5098
5099         * mule-charset.c (syms_of_mule_charset): Delete charset alias
5100         `vietnamese-viscii-*'.
5101
5102 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5103
5104         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
5105         (Qvietnamese_viscii_upper): New variable.
5106         (Fdefine_charset_alias): New function.
5107         (syms_of_mule_charset): Add new function `define-charset-alias'.
5108         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
5109         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
5110         `latin-viscii-*'.
5111
5112 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
5113
5114         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
5115         (MAX_CHAR_OBS_94x94): New macro.
5116         (breakup_char_1): Support obsolete XEmacs-UCS private code space
5117         for 94x94 sets.
5118
5119         * mule-charset.c (put_byte_from_character_table): Change unit size
5120         from 128 to 256.
5121         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
5122         not defined.
5123         (Fmake_reverse_direction_charset): Modify dummy argument of
5124         `make_charset' for non-UTF-2000 environment.
5125
5126 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5127
5128         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
5129
5130         * mule-charset.c (destroy_byte_from_character_table): New macro.
5131         (latin_jisx0201_to_ucs): Deleted.
5132         (latin_iso8859_2_to_ucs): Deleted.
5133         (latin_iso8859_3_to_ucs): Deleted.
5134         (latin_iso8859_4_to_ucs): Deleted.
5135         (latin_iso8859_9_to_ucs): Deleted.
5136         (latin_viscii_lower_to_ucs): Deleted.
5137         (latin_viscii_upper_to_ucs): Deleted.
5138         (mark_charset): Mark `cs->decoding_table'.
5139         (Fcharset_mapping_table): Fix DOC-string.
5140         (Fset_charset_mapping_table): New function.
5141         (syms_of_mule_charset): Add nwe function
5142         `set-charset-mapping-table'.
5143         (complex_vars_of_mule_charset): Don't setup and use
5144         `latin_*_to_ucs'.
5145
5146 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5147
5148         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
5149         charset.
5150
5151 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5152
5153         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
5154         (Vcharset_katakana_jisx0208): New variable.
5155         (Qhiragana_jisx0208): New variable.
5156         (Qkatakana_jisx0208): New variable.
5157         (make_charset): Add new argument `byte_offset'.
5158         (charset_get_byte1): Modify for new coded-charset definition; use
5159         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5160         `XCHARSET_BYTE_OFFSET'.
5161         (Fmake_charset): Modify for `make_charset'.
5162         (Fmake_reverse_direction_charset): Likewise.
5163         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
5164         `katakana-jisx0208'.
5165         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
5166         `.'  in font registry of charset `katakana-jisx0201',
5167         `latin-jisx0201', `vietnamese-viscii-lower' and
5168         `vietnamese-viscii-upper'; modify DOC-string of charset
5169         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
5170         registry of charset `japanese-jisx0208' not to use font for JIS
5171         X0208:1990; add new charset `hiragana-jisx0208' and
5172         `katakana-jisx0208'.
5173
5174         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
5175         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
5176         (struct Lisp_Charset): Add `byte_offset'.
5177         (CHARSET_BYTE_OFFSET): New macro.
5178         (XCHARSET_UCS_MIN): New macro.
5179         (XCHARSET_UCS_MAX): New macro.
5180         (XCHARSET_CODE_OFFSET): New macro.
5181         (XCHARSET_BYTE_OFFSET): New macro.
5182         (MIN_CHAR_HIRAGANA): New macro.
5183         (MAX_CHAR_HIRAGANA): New macro.
5184         (MIN_CHAR_KATAKANA): New macro.
5185         (MAX_CHAR_KATAKANA): New macro.
5186         (MAKE_CHAR): Modify for new coded-charset definition; use
5187         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5188         `XCHARSET_BYTE_OFFSET'.
5189
5190 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5191
5192         * mule-charset.c (CHAR96): Deleted.
5193         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
5194         <Lisp_Object>.
5195         (latin_iso8859_2_to_ucs): Likewise.
5196         (latin_iso8859_3_to_ucs): Likewise.
5197         (latin_iso8859_4_to_ucs): Likewise.
5198         (latin_iso8859_9_to_ucs): Likewise.
5199         (latin_viscii_lower_to_ucs): Likewise.
5200         (latin_viscii_upper_to_ucs): Likewise.
5201         (latin_tcvn5712_to_ucs): Commented out.
5202         (make_charset): Change type of argument `decoding_table' from
5203         <Emchar*> to <Lisp_Object> [vector of characters].
5204         (Fmake_charset): Modify for `make_charset'.
5205         (Fmake_reverse_direction_charset): Likewise.
5206         (Fcharset_mapping_table): New function in UTF-2000.
5207         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
5208         UTF-2000.
5209         (complex_vars_of_mule_charset): Modify for type change of
5210         `*_to_ucs'; modify for `make_charset'.
5211
5212         * char-ucs.h (struct Lisp_Charset): Change type of
5213         `decoding_table' from <Emchar*> to <Lisp_Object>.
5214         (MAKE_CHAR): Modify for new specification of `decoding_table'.
5215
5216 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
5217
5218         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
5219         error with non-UTF-2000-Mule.
5220
5221 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
5222
5223         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
5224         in lisp again].
5225         (Vcharset_chinese_cns11643_4): Likewise.
5226         (Vcharset_chinese_cns11643_5): Likewise.
5227         (Vcharset_chinese_cns11643_6): Likewise.
5228         (Vcharset_chinese_cns11643_7): Likewise.
5229         (Qchinese_cns11643_3): Likewise.
5230         (Qchinese_cns11643_4): Likewise.
5231         (Qchinese_cns11643_5): Likewise.
5232         (Qchinese_cns11643_6): Likewise.
5233         (Qchinese_cns11643_7): Likewise.
5234         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
5235         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5236         and `chinese-cns11643-7' to lisp/mule/chinese.el.
5237         (complex_vars_of_mule_charset): Likewise.
5238
5239 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
5240
5241         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
5242         96-set.
5243         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
5244         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
5245
5246 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5247
5248         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
5249         0xFF60.
5250         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
5251         (breakup_char_1): Likewise.
5252
5253         * text-coding.c (char_encode_iso2022): Keep designated charsets if
5254         one of them includes the specified character.
5255
5256 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5257
5258         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
5259
5260 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5261
5262         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
5263
5264 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5265
5266         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
5267         definition for non-UTF-2000 Mule.
5268         (latin_iso8859_3_to_ucs): Likewise.
5269         (latin_iso8859_4_to_ucs): Likewise.
5270         (latin_iso8859_9_to_ucs): Likewise.
5271         (latin_jisx0201_to_ucs): Likewise.
5272         (MIN_CHAR_THAI): Likewise.
5273         (MAX_CHAR_THAI): Likewise.
5274         (MIN_CHAR_GREEK): Likewise.
5275         (MAX_CHAR_GREEK): Likewise.
5276         (MIN_CHAR_HEBREW): Likewise.
5277         (MAX_CHAR_HEBREW): Likewise.
5278         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
5279         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
5280         (MIN_CHAR_CYRILLIC): Likewise.
5281         (MAX_CHAR_CYRILLIC): Likewise.
5282
5283 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5284
5285         * char-ucs.h (breakup_char_1): Use
5286         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
5287         thai-tis620 and katakana-jisx0201 area.
5288
5289 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5290
5291         * char-ucs.h (breakup_char_1): Use
5292         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
5293         area.
5294
5295         * text-coding.c (reset_encoding_stream): Fixed.
5296         (char_encode_ucs4): Delete `& 255'.
5297
5298         * char-ucs.h (breakup_char_1): Use
5299         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
5300
5301 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5302
5303         * file-coding.c (Fmake_coding_system): Don't set up
5304         `codesys->fixed.size'.
5305         (encode_coding_no_conversion): Don't refer
5306         `str->codesys->fixed.size'.
5307
5308 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5309
5310         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
5311         (latin_a_char_to_byte1): Deleted.
5312         (latin_a_char_to_byte2): Deleted.
5313
5314 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5315
5316         * mule-charset.c (make_charset): Add new argument `ucs_min',
5317         `ucs_max' and `code_offset'.
5318         (charset_get_byte1): New implementation [delete specific charset
5319         depended implementations].
5320         (Fmake_charset): Modify for `make_charset'.
5321         (Fmake_reverse_direction_charset): Likewise.
5322         (complex_vars_of_mule_charset): Likewise.
5323
5324         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
5325         `code_offset'.
5326         (CHARSET_UCS_MIN): New macro.
5327         (CHARSET_UCS_MAX): New macro.
5328         (CHARSET_CODE_OFFSET): New macro.
5329         (MAKE_CHAR): Delete charset depended definitions [except
5330         katakana-jisx0201].
5331
5332 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
5333
5334         * char-ucs.h (breakup_char_1): Use
5335         `Vdefault_coded_charset_priority_list' for C0-Controls,
5336         Basic-Latin, C1-Controls and Latin-1-Supplement area.
5337
5338 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5339
5340         * char-ucs.h (charset_get_byte1): New function.
5341         (XCHARSET_GET_BYTE1): Deleted.
5342         (charset_get_byte2): New function.
5343         (XCHARSET_GET_BYTE2): Deleted.
5344         (Vdefault_coded_charset_priority_list): New external variable.
5345         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5346         `Vdefault_preferred_coded_charset_list'.
5347
5348         * mule-charset.c (charset_get_byte1): New function.
5349         (charset_get_byte2): New function.
5350         (Vdefault_coded_charset_priority_list): New variable.
5351         (vars_of_mule_charset): Add new variable
5352         `default-coded-charset-priority-list'.
5353
5354 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5355
5356         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5357         (XCHARSET_GET_BYTE2): New inline function.
5358         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5359         `XCHARSET_GET_BYTE2'.
5360
5361 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5362
5363         * mule-charset.c (make_charset): Initialize
5364         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5365         NULL if table is not defined.
5366
5367 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5368
5369         * text-coding.c (char_encode_shift_jis): Use
5370         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5371         `ucs_to_latin_jisx0201'.
5372
5373         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5374         (ucs_to_latin_iso8859_2): Deleted.
5375         (ucs_to_latin_iso8859_3): Deleted.
5376         (ucs_to_latin_iso8859_4): Deleted.
5377         (ucs_to_latin_iso8859_9): Deleted.
5378         (ucs_to_latin_viscii_lower): Deleted.
5379         (ucs_to_latin_viscii_upper): Deleted.
5380         (ucs_to_latin_tcvn5712): Deleted.
5381         (make_charset): Add new argument `decoding_table'; set up
5382         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5383         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5384         `decoding_table' is defined in UTF-2000.
5385         (Fmake_charset): Modify for `make_charset'.
5386         (Fmake_reverse_direction_charset): Likewise.
5387         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5388         and `GENERATE_96_SET'.
5389
5390         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5391         (ucs_to_latin_jisx0201): Deleted.
5392         (latin_iso8859_2_to_ucs): Deleted.
5393         (ucs_to_latin_iso8859_2): Deleted.
5394         (latin_iso8859_3_to_ucs): Deleted.
5395         (ucs_to_latin_iso8859_3): Deleted.
5396         (latin_iso8859_4_to_ucs): Deleted.
5397         (ucs_to_latin_iso8859_4): Deleted.
5398         (latin_iso8859_9_to_ucs): Deleted.
5399         (ucs_to_latin_iso8859_9): Deleted.
5400         (latin_viscii_lower_to_ucs): Deleted.
5401         (ucs_to_latin_viscii_lower): Deleted.
5402         (latin_viscii_upper_to_ucs): Deleted.
5403         (ucs_to_latin_viscii_upper): Deleted.
5404         (struct Lisp_Charset): Renamed `encoding_table' to
5405         `to_byte1_table'; add `to_byte2_table'.
5406         (CHARSET_DECODING_TABLE): New macro.
5407         (CHARSET_TO_BYTE1_TABLE): New macro.
5408         (CHARSET_TO_BYTE2_TABLE): New macro.
5409         (XCHARSET_DECODING_TABLE): New macro.
5410         (XCHARSET_TO_BYTE1_TABLE): New macro.
5411         (XCHARSET_TO_BYTE2_TABLE): New macro.
5412         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5413         tables.
5414         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5415         don't use `ucs_to_*' tables.
5416
5417 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5418
5419         * text-coding.c (Fmake_coding_system): Don't set up
5420         `codesys->fixed.size'.
5421         (encode_coding_no_conversion): Use `if' instead of `switch'.
5422
5423         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5424
5425 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5426
5427         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5428         (Fmake_charset): Modify for `make_charset'.
5429         (Fmake_reverse_direction_charset): Likewise.
5430         (complex_vars_of_mule_charset): Likewise.
5431
5432 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5433
5434         * text-coding.c (char_encode_shift_jis): Use table
5435         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5436
5437 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5438
5439         * text-coding.c (text_encode_generic): Use `if' instead of
5440         `switch'.
5441         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5442         decode JIS-Latin.
5443
5444 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5445
5446         * text-coding.c (encode_coding_sjis): Deleted.
5447         (char_encode_shift_jis): New function.
5448         (char_finish_shift_jis): New function.
5449         (reset_encoding_stream): Set up `encode_char' and `finish' for
5450         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5451         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5452         (char_encode_utf8): Treat `eol_type'.
5453
5454 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5455
5456         * file-coding.c (decode_coding_iso2022): Use
5457         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5458
5459 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5460
5461         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5462         to 0.7 (Hirano).
5463
5464 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5465
5466         * char-lb.h (CHAR_COLUMNS): New macro.
5467
5468 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5469
5470         * text-coding.c (char_encode_ucs4): New function.
5471         (char_finish_ucs4): New function.
5472         (encode_coding_ucs4): Deleted.
5473         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5474         (text_encode_generic): Delete local variable `charset' and `half'.
5475         (ucs_to_mule_table): Deleted.
5476         (mule_to_ucs_table): Deleted.
5477         (Fset_ucs_char): Deleted.
5478         (ucs_to_char): Deleted.
5479         (Fucs_char): Deleted.
5480         (Fset_char_ucs): Deleted.
5481         (Fchar_ucs): Deleted.
5482         (decode_ucs4): Deleted.
5483         (mule_char_to_ucs4): Deleted.
5484         (encode_ucs4): Deleted.
5485         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5486         (decode_coding_utf8): Likewise.
5487         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5488         (char_encode_iso2022): Fixed.
5489         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5490         `Fset_char_ucs' and `Fchar_ucs'.
5491         (complex_vars_of_file_coding): Don't initialize
5492         `ucs_to_mule_table'.
5493
5494         * objects-tty.c (tty_initialize_font_instance): Don't use
5495         `XCHARSET_COLUMNS'.
5496
5497         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5498         UTF-2000.
5499
5500         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5501         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5502
5503         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5504         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5505         (emchar_string_displayed_columns): Likewise.
5506
5507         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5508         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5509         (string_column_at_point): Likewise.
5510         (Fmove_to_column): Likewise.
5511
5512         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5513         `encoding_table' and `decoding_table'.
5514         (CHARSET_REP_BYTES): Deleted.
5515         (XCHARSET_REP_BYTES): Deleted.
5516         (XCHARSET_COLUMNS): Deleted.
5517         (CHAR_COLUMNS): New macro.
5518         (lookup_composite_char): Deleted unconditionally.
5519         (composite_char_string): Likewise.
5520
5521 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5522
5523         * char-ucs.h (Emchar_to_byte_table): New type.
5524         (get_byte_from_character_table): New function interface.
5525         (Vcharset_latin_jisx0201): New variable.
5526         (latin_jisx0201_to_ucs): New variable.
5527         (ucs_to_latin_jisx0201): New variable.
5528         (Vcharset_latin_iso8859_2): New variable.
5529         (latin_iso8859_2_to_ucs): New variable.
5530         (ucs_to_latin_iso8859_2): New variable.
5531         (Vcharset_latin_iso8859_3): New variable.
5532         (latin_iso8859_3_to_ucs): New variable.
5533         (ucs_to_latin_iso8859_3): New variable.
5534         (Vcharset_latin_iso8859_4): New variable.
5535         (latin_iso8859_4_to_ucs): New variable.
5536         (ucs_to_latin_iso8859_4): New variable.
5537         (Vcharset_latin_iso8859_9): New variable.
5538         (latin_iso8859_9_to_ucs): New variable.
5539         (ucs_to_latin_iso8859_9): New variable.
5540         (Vcharset_latin_viscii_lower): New variable.
5541         (latin_viscii_lower_to_ucs): New variable.
5542         (ucs_to_latin_viscii_lower): New variable.
5543         (Vcharset_latin_viscii_upper): New variable.
5544         (latin_viscii_upper_to_ucs): New variable.
5545         (ucs_to_latin_viscii_upper): New variable.
5546         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5547         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5548         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5549         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5550         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5551         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5552         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5553         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5554         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5555         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5556
5557         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5558         (Vcharset_latin_viscii_upper): New variable.
5559         (make_byte_from_character_table): New function.
5560         (put_byte_from_character_table): New function.
5561         (get_byte_from_character_table): New function.
5562         (CHAR96): New macro.
5563         (ucs_to_latin_jisx0201): New variable.
5564         (latin_jisx0201_to_ucs): New variable.
5565         (ucs_to_latin_iso8859_2): New variable.
5566         (latin_iso8859_2_to_ucs): New variable.
5567         (ucs_to_latin_iso8859_3): New variable.
5568         (latin_iso8859_3_to_ucs): New variable.
5569         (ucs_to_latin_iso8859_4): New variable.
5570         (latin_iso8859_4_to_ucs): New variable.
5571         (ucs_to_latin_iso8859_9): New variable.
5572         (latin_iso8859_9_to_ucs): New variable.
5573         (ucs_to_latin_viscii_lower): New variable.
5574         (latin_viscii_lower_to_ucs): New variable.
5575         (ucs_to_latin_viscii_upper): New variable.
5576         (latin_viscii_upper_to_ucs): New variable.
5577         (ucs_to_latin_tcvn5712): New variable.
5578         (latin_tcvn5712_to_ucs): New variable.
5579         (Qlatin_viscii_lower): New variable.
5580         (Qlatin_viscii_upper): New variable.
5581         (syms_of_mule_charset): Set up new symbol
5582         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5583         (complex_vars_of_mule_charset): Set up new charset
5584         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5585         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5586         `ucs_to_<CHARSET>' tables.
5587
5588 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5589
5590         * text-coding.c: New file.
5591
5592 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5593
5594         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5595
5596         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5597         (MAKE_CHAR): Modify for `ucs-bmp'.
5598         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5599         non-MULE characters of BMP.
5600
5601 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5602
5603         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5604         to 0.6.
5605
5606 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5607
5608         * lstream.h:
5609         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5610         - Include character.h for `CHAR_ASCII_P'.
5611
5612         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5613
5614         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5615         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5616
5617         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5618         (BYTE_C0_P): Likewise.
5619         (BYTE_C1_P): Likewise.
5620         (Lstream_get_emchar_1): Likewise.
5621         (Lstream_fput_emchar): Likewise.
5622         (Lstream_funget_emchar): Likewise.
5623         (copy_internal_to_external): Likewise.
5624         (copy_external_to_internal): Likewise.
5625
5626         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5627         (BYTE_C0_P): Likewise.
5628         (BYTE_C1_P): Likewise.
5629         (Lstream_get_emchar_1): Likewise.
5630         (Lstream_fput_emchar): Likewise.
5631         (Lstream_funget_emchar): Likewise.
5632         (copy_internal_to_external): Likewise.
5633         (copy_external_to_internal): Likewise.
5634
5635         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5636         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5637
5638         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5639         (BYTE_ASCII_P): Moved to mb-1byte.h.
5640
5641 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5642
5643         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5644
5645         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5646         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5647         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5648         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5649         (VALIDATE_CHARPTR_FORWARD): Likewise.
5650         (simple_charptr_emchar): Moved to mb-multibyte.h.
5651         (simple_set_charptr_emchar): Likewise.
5652         (simple_charptr_copy_char): Likewise.
5653         (non_ascii_charptr_emchar): Likewise.
5654         (non_ascii_set_charptr_emchar): Likewise.
5655         (non_ascii_charptr_copy_char): Likewise.
5656         (charptr_emchar): Moved to mb-*byte.h.
5657         (set_charptr_emchar): Likewise.
5658         (charptr_copy_char): Likewise.
5659
5660         * mb-1byte.h, mb-multibyte.h: New files.
5661
5662 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5663
5664         * mb-utf-8.h (MULTIBYTE): New macro.
5665         (MAX_EMCHAR_LEN): Moved from buffer.h.
5666         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5667
5668         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5669
5670         * mb-lb.h, multibyte.h: New files.
5671
5672         * char-1byte.h (Charset_ID): Moved from buffer.h.
5673         (MIN_LEADING_BYTE): Likewise.
5674         (LEADING_BYTE_ASCII): Likewise.
5675         (NUM_LEADING_BYTES): Likewise.
5676         (CHARSETP): Likewise.
5677         (CHARSET_BY_LEADING_BYTE): Likewise.
5678         (XCHARSET_LEADING_BYTE): Likewise.
5679         (XCHARSET_GRAPHIC): Likewise.
5680         (XCHARSET_COLUMNS): Likewise.
5681         (XCHARSET_DIMENSION): Likewise.
5682         (CHAR_CHARSET): Likewise.
5683         (CHAR_LEADING_BYTE): Likewise.
5684         (BREAKUP_CHAR): Likewise.
5685         (Vcharset_ascii): Likewise.
5686
5687         * buffer.h: Include multibyte.h unconditionally.
5688         (VALID_CHARPTR_P): Moved to multibyte.h.
5689         (ASSERT_VALID_CHARPTR): Likewise.
5690         (REAL_INC_CHARPTR): Likewise.
5691         (REAL_INC_CHARBYTIND): Likewise.
5692         (REAL_DEC_CHARPTR): Likewise.
5693         (INC_CHARPTR): Likewise.
5694         (INC_CHARBYTIND): Likewise.
5695         (DEC_CHARPTR): Likewise.
5696         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5697         (VALIDATE_CHARPTR_FORWARD): Likewise.
5698         (charptr_n_addr): Likewise.
5699         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5700         (simple_charptr_emchar): Moved to multibyte.h.
5701         (simple_set_charptr_emchar): Likewise.
5702         (simple_charptr_copy_char): Likewise.
5703         (non_ascii_charptr_emchar): Likewise.
5704         (non_ascii_set_charptr_emchar): Likewise.
5705         (non_ascii_charptr_copy_char): Likewise.
5706         (charptr_emchar): Likewise.
5707         (set_charptr_emchar): Likewise.
5708         (charptr_copy_char): Likewise.
5709         (charptr_emchar_n): Likewise.
5710         (Charset_ID): Moved to char-1byte.h.
5711         (Vcharset_ascii): Likewise.
5712         (CHAR_CHARSET): Likewise.
5713         (CHAR_LEADING_BYTE): Likewise.
5714         (LEADING_BYTE_ASCII): Likewise.
5715         (NUM_LEADING_BYTES): Likewise.
5716         (MIN_LEADING_BYTE): Likewise.
5717         (CHARSETP): Likewise.
5718         (CHARSET_BY_LEADING_BYTE): Likewise.
5719         (XCHARSET_LEADING_BYTE): Likewise.
5720         (XCHARSET_GRAPHIC): Likewise.
5721         (XCHARSET_COLUMNS): Likewise.
5722         (XCHARSET_DIMENSION): Likewise.
5723         (BREAKUP_CHAR): Likewise.
5724
5725 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5726
5727         * character.h: Add document about interface for characters.
5728
5729         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5730         (MAKE_CHAR): Delete comment about
5731         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5732         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5733         (BREAKUP_CHAR): Modify name of arguments.
5734         (CHAR_CHARSET): Modify name of argument.
5735
5736         * buffer.h: Delete document about Emchar accessors.
5737
5738 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5739
5740         * character.h (CHAR_INTP): Moved from buffer.h
5741         (CHAR_OR_CHAR_INTP): Likewise.
5742         (XCHAR_OR_CHAR_INT): Likewise.
5743         (CHECK_CHAR_COERCE_INT): Likewise.
5744
5745         * buffer.h (CHAR_INTP): Moved to character.h
5746         (CHAR_OR_CHAR_INTP): Likewise.
5747         (XCHAR_OR_CHAR_INT): Likewise.
5748         (CHECK_CHAR_COERCE_INT): Likewise.
5749
5750 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5751
5752         * character.h:
5753         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5754         - Include char-1byte.h, char-lb.h or char-ucs.h.
5755
5756         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5757
5758         * buffer.h: Include character unconditionally.
5759         (valid_char_p): Moved to char-*.h.
5760         (non_ascii_valid_char_p): Moved to char-lb.h.
5761
5762         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5763
5764 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5765
5766         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5767         in UTF-2000 because it is not ported yet and not to use
5768         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5769         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5770         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5771
5772         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5773         (CHAR_ASCII_P): Moved from character.h.
5774
5775         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5776         (CHAR_ASCII_P): Likewise.
5777         (CHAR_FIELD1_MASK): Deleted.
5778         (CHAR_FIELD2_MASK): Deleted.
5779         (CHAR_FIELD3_MASK): Deleted.
5780         (MAX_CHAR_BASIC_LATIN): New macro.
5781         (CHAR_FIELD1): Deleted.
5782         (CHAR_FIELD2_INTERNAL): Deleted.
5783         (CHAR_FIELD3_INTERNAL): Deleted.
5784         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5785         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5786         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5787         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5788         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5789         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5790         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5791         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5792         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5793         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5794         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5795         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5796         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5797         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5798         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5799         (MIN_CHAR_COMPOSITION): Deleted.
5800         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5801         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5802
5803 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5804
5805         * buffer.h: Include mb-utf-8.h in UTF-2000.
5806
5807         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5808
5809         * mb-utf-8.h: New file.
5810
5811 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5812
5813         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5814         instead of `int'.
5815
5816         * mule-charset.h, buffer.h (Charset_ID): New type.
5817
5818 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5819
5820         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5821         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5822         instead of `MULE_CHAR_PRIVATE_OFFSET',
5823         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5824         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5825         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5826
5827         * character.h (Vcharset_japanese_jisx0212): New variable
5828         definition.
5829
5830 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5831
5832         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5833         (charset_by_attributes): Delete array about direction.
5834         (latin_a_char_to_charset): New variable in UTF-2000.
5835         (latin_a_char_to_byte1): New variable in UTF-2000.
5836         (latin_a_char_to_byte2): New variable in UTF-2000.
5837         (Qucs_bmp): New variable.
5838         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5839         `Bufbyte'.
5840         (next_allocated_2_byte_leading_byte): Likewise.
5841         (non_ascii_set_charptr_emchar): Likewise.
5842         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5843         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5844         `charset_by_attributes'.
5845         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5846         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5847         and `CHARSET_BY_LEADING_BYTE'.
5848         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5849         `utf-2000-version' to `vars_of_mule_charset'.
5850         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5851         define `leading-code-private-11' in UTF-2000; move setting of
5852         `utf-2000-version' from `syms_of_mule_charset'.
5853         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5854         UTF-2000.
5855
5856         * character.h (Charset_ID): New type.
5857         (LEADING_BYTE_UCS_BMP): New macro.
5858         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5859         (CHARSET_ID_OFFSET_94): New macro.
5860         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5861         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5862         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5863         final-byte.
5864         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5865         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5866         (CHARSET_ID_OFFSET_96): New macro.
5867         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5868         CHARSET_ID_OFFSET_96 and final-byte.
5869         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5870         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5871         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5872         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5873         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5874         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5875         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5876         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5877         (LEADING_BYTE_THAI_TIS620): Likewise.
5878         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5879         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5880         (CHARSET_ID_OFFSET_94x94): New macro.
5881         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5882         CHARSET_ID_OFFSET_94x94 and final-byte.
5883         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5884         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5885         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5886         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5887         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5888         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5889         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5890         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5891         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5892         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5893         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5894         (CHARSET_TYPE_128X128): New macro.
5895         (CHARSET_TYPE_256X256): New macro.
5896         (XCHARSET_PRIVATE_P): Delete unconditionally.
5897         (charset_by_attributes): Delete array about direction.
5898         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5899         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5900         (MIN_CHAR_94): New macro.
5901         (MAX_CHAR_94): New macro.
5902         (MIN_CHAR_96): New macro.
5903         (MAX_CHAR_96): New macro.
5904         (MIN_CHAR_94x94): New macro.
5905         (MAX_CHAR_94x94): New macro.
5906         (MIN_CHAR_96x96): New macro.
5907         (MAX_CHAR_96x96): New macro.
5908         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5909         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5910         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5911         - 32)'.
5912         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5913         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5914         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5915         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5916         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5917         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5918         `XCHARSET_LEADING_BYTE' to make code-point.
5919         (latin_a_char_to_charset): New variable.
5920         (latin_a_char_to_byte1): New variable.
5921         (latin_a_char_to_byte2): New variable.
5922         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5923         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5924         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5925
5926         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5927         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5928         (find_charsets_in_emchar_string): Likewise.
5929         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5930
5931         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5932         `int'.
5933         (decode_coding_iso2022): Likewise.
5934
5935         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5936         of `unsigned char'.
5937
5938         * redisplay.c (redisplay_text_width_emchar_string): Use
5939         `Charset_ID' instead of `unsigned char'.
5940         (redisplay_frame_text_width_string): Likewise.
5941
5942         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5943         `unsigned char'.
5944
5945         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5946         instead of `unsigned char'.
5947         (face_cachel_charset_font_metric_info): Likewise.
5948
5949         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5950         (get_non_ascii_char_table_value): Likewise.
5951         (get_char_table): Likewise.
5952         (put_char_table): Likewise.
5953         (map_over_other_charset): Likewise.
5954         (map_char_table): Likewise.
5955
5956         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5957         instead of `unsigned char'.
5958
5959 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5960
5961         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5962         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5963
5964         * mule-charset.c (leading_code_private_11): Don't define in
5965         UTF-2000.
5966
5967         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5968         in UTF-2000 because it is not ported yet and not to use
5969         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5970
5971 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5972
5973         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5974
5975 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5976
5977         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5978         in UTF-2000.
5979
5980         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5981         of unsigned char to store leading-byte.
5982
5983         * chartab.c (get_non_ascii_char_table_value): Don't use
5984         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5985
5986         * file-coding.c (encode_coding_big5): Delete bogus implementation
5987         in UTF2000.
5988
5989         * character.h (LEADING_BYTE_*): Delete definition for
5990         non-UTF-2000.
5991         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5992         (LEADING_BYTE_PREFIX_P): Deleted.
5993         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5994         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5995         (BUFBYTE_LEADING_BYTE_P): Deleted.
5996         (CHARSET_PRIVATE_P): Deleted unconditionally.
5997         (rep_bytes_by_first_byte): Deleted unconditionally.
5998         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5999         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
6000         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
6001         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
6002         (CHAR_FIELD2): Deleted.
6003         (CHAR_FIELD3): Deleted.
6004         (MAKE_CHAR): Delete definition for non-UTF-2000.
6005         (BREAKUP_CHAR_1_UNSAFE): Deleted.
6006         (breakup_char_1): New implementation.
6007         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
6008         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
6009
6010 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
6011
6012         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
6013         condition.
6014
6015 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
6016
6017         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
6018         (CHARSET_PRIVATE_P): Likewise.
6019         (XCHARSET_PRIVATE_P): Likewise.
6020         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
6021
6022         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
6023         UTF2000.
6024         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
6025
6026 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
6027
6028         * character.h (LEADING_BYTE_*): Changed in UTF2000.
6029         (NUM_LEADING_BYTES): Changed from 128 to 256.
6030         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
6031         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
6032         UTF2000.
6033         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
6034
6035         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
6036         UTF2000.
6037         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
6038         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
6039         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
6040         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
6041         (Qchinese_cns11643_3): New variable in UTF2000.
6042         (Qchinese_cns11643_4): New variable in UTF2000.
6043         (Qchinese_cns11643_5): New variable in UTF2000.
6044         (Qchinese_cns11643_6): New variable in UTF2000.
6045         (Qchinese_cns11643_7): New variable in UTF2000.
6046         (syms_of_mule_charset): Define `chinese-cns11643-3',
6047         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
6048         and `chinese-cns11643-7' in UTF2000.
6049         (vars_of_mule_charset): Initialize
6050         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
6051         + 1 in UTF2000.
6052         (complex_vars_of_mule_charset): Setup charset
6053         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
6054         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
6055
6056 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
6057
6058         * mule-charset.c: Move setting for `leading-code-private-11' from
6059         `syms_of_mule_charset' to `vars_of_mule_charset'.
6060
6061 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
6062
6063         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
6064         and `NUM_LEADING_BYTES' in assert.
6065
6066 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
6067
6068         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
6069         instead of 128.
6070         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
6071         `NUM_LEADING_BYTES' instead of 128.
6072
6073 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
6074
6075         * mule-charset.h (charset_by_leading_byte): Use
6076         `NUM_LEADING_BYTES' instead of 128.
6077         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
6078
6079         * mule-charset.c (charset_by_leading_byte): Use
6080         `NUM_LEADING_BYTES' instead of 128.
6081         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
6082
6083         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
6084         128.
6085
6086 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
6087
6088         * mule-charset.c (syms_of_mule_charset): Update to
6089         0.4 (Shin-Imamiya).
6090
6091 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
6092
6093         * file-coding.c (encode_coding_sjis): New implementation for
6094         UTF2000.  (decode_coding_sjis): Ditto.
6095
6096 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
6097
6098         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
6099         Don't define in UTF2000.
6100
6101         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
6102         defined.
6103
6104         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
6105         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
6106         MULE.
6107
6108 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
6109
6110         * config.h.in (CHAR_IS_UCS4): New macro.
6111
6112         * mule-charset.c (rep_bytes_by_first_byte): Modify for
6113         conventional MULE representation.
6114         (syms_of_mule_charset): Update to 0.3 (Imamiya).
6115
6116         * mule-charset.h: Reverted to original.
6117
6118         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
6119         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
6120         "mule-charset.h" if CHAR_IS_UCS4 is defined.
6121
6122         * character.h: New file.
6123
6124         * file-coding.c (Fmake_coding_system): Set 1 to
6125         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
6126         defined.
6127         (encode_coding_no_conversion): New implementation for UTF2000.
6128
6129         * file-coding.h (struct Lisp_Coding_System): Add new member
6130         `fixed.size'.
6131
6132 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
6133
6134         * file-coding.c (decode_coding_iso2022): Code-point arguments of
6135         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
6136         (encode_coding_iso2022): New implementation for UTF2000.
6137
6138 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6139
6140         * mule-canna.c (c2mu): New implementation for UTF2000.
6141         (m2c): Likewise.
6142
6143 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6144
6145         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
6146
6147 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6148
6149         * file-coding.c (reset_encoding_stream): Set 0 to
6150         `str->iso2022.current_char_boundary' in UTF2000.
6151         (encode_utf8): Don't define in UTF2000.
6152         (encode_coding_utf8): New implementation for UTF-8 representation
6153         of UTF2000.
6154         (complex_vars_of_file_coding): Define coding-system `utf-8'.
6155
6156 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6157
6158         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
6159
6160         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
6161         UTF2000.
6162         (REP_BYTES_BY_FIRST_BYTE): Likewise.
6163
6164         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
6165
6166         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
6167         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
6168         as UTF-8 in UTF2000.
6169         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
6170         (non_ascii_valid_char_p): Don't define in UTF2000.
6171         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
6172         (Lstream_get_emchar_1): Likewise.
6173         (utf-2000-version): New variable in UTF2000.
6174
6175         * lread.c (read_escape): Add new reader `u'.
6176
6177         * insdel.c (three_to_one_table): Don't define in UTF2000.
6178         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
6179         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6180         UTF2000.
6181         (bytind_to_bufpos_func): Likewise.
6182         (buffer_mule_signal_inserted_region): Likewise.
6183         (vars_of_insdel): Don't initialize `three_to_one_table'.
6184         (init_buffer_text): Use `buf->text->mule_size' instead of
6185         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6186         UTF2000.
6187
6188         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
6189         UTF-8 representation in UTF2000.
6190         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
6191         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
6192         (decode_coding_iso2022): Don't define local variable `lb' in
6193         UTF2000; don't use LEADING_BYTE in UTF2000; use
6194         `DECODE_ADD_UCS_CHAR' in UTF2000.
6195         (convert_to_external_format): Decode as UTF-8 in UTF2000.
6196
6197         * config.h.in (UTF2000): New macro.
6198
6199         * buffer.h (struct buffer_text): Add new member `mule_size' and
6200         don't add `mule_shifter' and `mule_three_p' in UTF2000.
6201         (valid_char_p): Return always 1 in UTF2000.
6202         (MAX_EMCHAR_LEN): 6 in UTF2000.
6203         (three_to_one_table): Don't define in UTF2000.
6204         (real_bufpos_to_bytind): Modify for UTF-8 representation in
6205         UTF2000.
6206         (real_bytind_to_bufpos): Likewise.
6207
6208         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
6209
6210 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
6211
6212         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
6213         representation change.
6214         (Vutf_2000_version): New variable.
6215         (leading_code_private_11): New variable.
6216         (syms_of_mule_charset): Add new variables `utf-2000-version' and
6217         `leading-code-private-11'.
6218
6219         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
6220         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
6221         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
6222         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
6223         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
6224         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
6225         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
6226         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
6227         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
6228         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
6229         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
6230         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
6231         (MIN_CHAR_GREEK): New macro.
6232         (MAX_CHAR_GREEK): New macro.
6233         (MIN_CHAR_CYRILLIC): New macro.
6234         (MAX_CHAR_CYRILLIC): New macro.
6235         (MIN_CHAR_HEBREW): New macro.
6236         (MAX_CHAR_HEBREW): New macro.
6237         (MIN_CHAR_THAI): New macro.
6238         (MAX_CHAR_THAI): New macro.
6239         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
6240         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
6241         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
6242         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
6243         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
6244         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
6245         (CHAR_FIELD2): New inline function.
6246         (CHAR_FIELD3): New inline function.
6247         (MULE_CHAR_PRIVATE_OFFSET): New macro.
6248         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
6249         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
6250         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
6251         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
6252         (MIN_CHAR_COMPOSITION): Likewise.
6253         (CHAR_LEADING_BYTE): Modified for character representation change.
6254         (MAKE_CHAR): Likewise.
6255
6256         * lisp.h (Vcharset_latin_iso8859_1): New variable.
6257         (Vcharset_greek_iso8859_7): Likewise.
6258         (Vcharset_cyrillic_iso8859_5): Likewise.
6259         (Vcharset_hebrew_iso8859_8): Likewise.
6260         (Vcharset_thai_tis620): Likewise.
6261         (Vcharset_katakana_jisx0201): Likewise.
6262
6263 2008-12-28  Vin Shelton  <acs@xemacs.org>
6264
6265         * XEmacs 21.4.22 is released
6266
6267 2008-12-27  Vin Shelton  <acs@xemacs.org>
6268
6269         * syswindows.h: Don't define wide character interfaces for Cygwin
6270         1.7 and up.
6271
6272 2008-03-05  Dominique Quatravaux  <domq@cpan.org>
6273
6274         * glyphs-gtk.c: Fixed compilation under gcc 4.x.
6275
6276 2008-11-01  Stephen J. Turnbull  <stephen@xemacs.org>
6277
6278         * regex.c (re_search_2): Fix at_dot by changing charpos to bytepos.
6279         From Julian Bradfield <18654.1143.304851.782755@krk.inf.ed.ac.uk>.
6280
6281 2008-12-25  Vin Shelton  <acs@xemacs.org>
6282
6283         * mule-ccl.c (ccl_driver): Fix off-by-one error.
6284         By Julian Bradfield in
6285         <18691.16568.526264.972026@krk.inf.ed.ac.uk>.
6286
6287         * mule-ccl.c (ccl_driver): 
6288
6289 2007-10-07  Vin Shelton  <acs@xemacs.org>
6290
6291         * XEmacs 21.4.21 is released
6292
6293 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
6294
6295         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
6296
6297 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
6298
6299         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
6300         (png_instantiate): Initialize setjmp_buffer early, and avoid
6301         recursive entry to error handler.
6302
6303 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
6304
6305         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
6306         a typo fix.
6307
6308 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
6309
6310         * event-Xt.c (x_reset_modifier_mapping):
6311         * event-gtk.c (gtk_reset_modifier_mapping):
6312         Zero out the device's modifier map once we've freed it, to prevent
6313         a double free on a re-entrant call. 
6314
6315 2007-05-17  Vin Shelton  <acs@xemacs.org>
6316
6317         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
6318         64-bit linux.  Patch from Hans de Graaff.
6319
6320 2007-05-02  Vin Shelton  <acs@xemacs.org>
6321
6322         * dumper.c (pdump): Don't close pdump_fd (already closed by
6323         fclose() call.  Patch from Steve Higham.
6324         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
6325         already closed.  Patch inspired by Steve Higham.
6326
6327 2007-05-01  Vin Shelton  <acs@xemacs.org>
6328
6329         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
6330         (mswindows_fstat): Ditto.
6331         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
6332
6333 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
6334
6335         * postgresql.c: Update Steve Baur's email address by his request.
6336         * postgresql.h: Ditto.
6337
6338 2007-01-04  Vin Shelton  <acs@xemacs.org>
6339
6340         * fileio.c (check_writable): Check old-style readonly bit only for
6341         non-directories.
6342
6343 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
6344
6345         * src/fileio.c (check_writable): 
6346         Cope with the fact that the read-only attribute trumps Windows NTFS
6347         ACLS.
6348
6349
6350 2006-12-09  Vin Shelton  <acs@xemacs.org>
6351
6352         * XEmacs 21.4.20 is released
6353
6354 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
6355
6356         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
6357         relocated the definitions to be used sooner in file.
6358         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6359         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6360         overflow.
6361
6362 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
6363
6364         * sound.c (init_native_sound):
6365         Only X11 and GTK devices can possibly not be on the console of the
6366         associated machine. Fixes a crash when init_native_sound is called
6367         on a msprinter device. 
6368
6369 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
6370
6371         * buffer.c (buffer-file-name): Document invariant.
6372         (buffer-file-truename): Sync wording to buffer-file-name.
6373         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6374         and discussion.
6375
6376 2006-11-19  Benson Margulies  <benson@dchbk.us>
6377
6378         * fileio.c: Add code to use full Win32 API to check for write
6379         access.  Win32 has the general design policy that you aren't
6380         supposed to ask this question, since security checks change
6381         depending on asynchronous processes.  Nonetheless, there is a way,
6382         by acting as if we are a server doing interpretive access
6383         control.
6384
6385 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6386
6387         * bytecode.c: Use xnew_array instead of alloca.
6388
6389 2006-07-04  Vin Shelton  <acs@xemacs.org>
6390
6391         * redisplay-msw.c: Fix tiny, but crucial typo.
6392
6393 2006-06-22  Jerry James  <james@xemacs.org>
6394
6395         * EmacsShell-sub.c (ChangeManaged):
6396         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6397         NULL.
6398         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6399         checking if it is NULL.  Also fix a memory leak.
6400         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6401         dereference it, not the other way around.
6402         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6403         overflow check.
6404         * dumper.c (pdump_register_struct): Ditto.
6405         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6406         to (short) warnpath overflow warnpath.
6407         * extents.c (detach_all_extents): Call extent_list_delete_all with
6408         a non-NULL parameter only.
6409         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6410         NULL width and height.
6411         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6412         xic before checking if they are NULL.
6413         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6414         allocated array.
6415         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6416         * nas.c (Err): Fix a memory leak.
6417         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6418         Don't create the buffer if there is nothing to do.
6419         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6420         * redisplay-output.c (redisplay_output_layout): Ditto.
6421         * redisplay-tty.c (tty_output_display_block): Ditto.
6422         * redisplay-x.c (x_output_display_block): Ditto.
6423         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6424         dereference instance->scrollbar_data if it is NULL.
6425         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6426         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6427         for sb->scrollbar_data.
6428         * sound.c (init_native_sound): Avoid a buffer overflow by
6429         allocating a buffer with the appropriate size.
6430
6431 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6432
6433         * EmacsShell-sub.c (RootGeometryManager):
6434         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6435         Based on a suggestion by Francois L'Archeveque.
6436
6437 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6438
6439         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6440         current values found in GNU Emacs.
6441
6442 2006-03-17  Vin Shelton  <acs@xemacs.org>
6443
6444         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6445         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6446
6447         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6448         'hex_initialized' because it conflicts with 'initialized' in
6449         lisp.h.
6450
6451 2006-01-28  Vin Shelton  <acs@xemacs.org>
6452
6453         * XEmacs 21.4.19 is released
6454
6455 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6456
6457         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6458
6459 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6460
6461         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6462         5000 to INT_MAX.
6463
6464 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6465
6466         * database.c: Suppress compiler warning under Cygwin.
6467         * database.c: Removed __FreeBSD__ check, should be handled by
6468         HAVE_U_xxx_T defines.
6469
6470 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6471
6472         * console.c (stuff_buffered_input): Compile body only if
6473         HAVE_TTY.
6474
6475 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6476
6477         * callproc.c: #include sysdir.h, so that any appropriate Mule
6478         magic happens with the chdir() call when calling a subprocess. 
6479
6480 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6481
6482         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6483         * mule-ccl.c: Check that a character set exists before using it
6484         to create a character. 
6485
6486 2005-12-06  Vin Shelton  <acs@xemacs.org>
6487
6488         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6489         to INT_MAX.
6490
6491 2005-12-03  Vin Shelton <acs@xemacs.org>
6492
6493         * XEmacs 21.4.18 is released
6494
6495 2005-11-27  Kean Johnston <kean@armory.com>
6496
6497         * redisplay-tty.c (set_tty_modes):
6498         (reset_tty_modes): disable auto-margins if the terminal supports
6499         them.
6500         (init_tty_for_redisplay): fix cursor shape.
6501
6502 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6503
6504         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6505         for control-1 characters properly, both when reading multibyte
6506         characters and writing them. 
6507
6508 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6509
6510         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6511         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6512         were seeing with incremental selection transfer failing. 
6513
6514 2005-11-26  Vin Shelton  <acs@xemacs.org>
6515
6516         * callproc.c (Fold_call_process_internal): Create the buffer if it
6517         does not already exist.  The original patch came from Ben Wing in
6518         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6519
6520 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6521
6522         * callproc.c: Process-related docstring improvements spurred by
6523         Norbert Koch.
6524
6525 2005-11-25  Vin Shelton  <acs@xemacs.org>
6526
6527         * depend: Regenerated.
6528
6529 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6530
6531         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6532         says it clashes with a global with the same name.
6533
6534 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6535
6536         * sysdll.c (dll_open): Under MacOS X return NULL under the
6537         filename is NULL.  Fixes problems finding local symbols under 10.4
6538         (Tiger)
6539
6540 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6541         
6542         * config.h.in: New HAVE_U_INT*_T defines.
6543         
6544         * database.c: Only use u_int*_t typedefs if not already
6545         defined.
6546
6547 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6548
6549         * src/process-unix.c (unix_open_network_stream): moved
6550           'portbuf' buffer out of an inner block as it is used in the
6551           entire function. With gcc4, the stack may get corrupted
6552           after leaving this block. This patches adjusts the size of
6553           the used buffer also; static '128' bytes are far too much
6554           currently and might not suffice for future architectures
6555           (e.g. for 512 bit ones ;)). Instead of, use only the really
6556           required space (max octets * ln(256)/ln(10) chars + space
6557           for '\0' and the sign)
6558
6559 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6560
6561         * callproc.c: Include sysdir.h, so any necessary Mule processing
6562         is done on the current directory name before starting a new
6563         process.
6564
6565 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6566
6567         * chartab.c (Fchar_table_p):
6568         (Fget_range_char_table):
6569         (Fput_char_table):
6570         (Fmap_char_table):
6571         Describe range representation and fix typo.
6572
6573 2005-02-12  Vin Shelton  <acs@xemacs.org>
6574
6575         * emacs.c (shut_down_emacs): Advise users to send email to the
6576         xemacs-beta list instead of crashes@xemacs.org.
6577
6578 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6579
6580         * process-unix.c (unix_send_process): Flush the last chunk, even
6581         when the pipe is blocked.
6582
6583 2005-02-06  Vin Shelton <acs@xemacs.org>
6584
6585         * XEmacs 21.4.17 is released
6586
6587 2005-01-31  Ben Wing  <ben@xemacs.org>
6588
6589         * emacs.c:
6590         Define assert_failed() always.
6591         * lisp.h:
6592         Always define ABORT().
6593
6594 2005-01-25  Ben Wing  <ben@xemacs.org>
6595
6596         * Makefile.in.in:
6597         * Makefile.in.in (%.o):
6598         Don't compile executable as Windows (-mwindows) under Cygwin.
6599         Semi-recent changes to Cygwin's executable-startup handling make
6600         it impossible to access the TTY this way.
6601
6602         Don't use special linker file under Cygwin (cygwin.sc) except
6603         when non-PDUMP (even in this case it is highly questionable); you
6604         get errors like
6605
6606       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6607    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6608
6609 2005-01-29  Ben Wing  <ben@xemacs.org>
6610
6611         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6612
6613         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6614
6615 2005-01-29  Ben Wing  <ben@xemacs.org>
6616
6617         * bytecode.c (optimize_compiled_function):
6618         * print.c (FROB):
6619         * print.c (long_to_string):
6620         Add casts to avoid warning.
6621         
6622         * glyphs-eimage.c:
6623         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6624         #### The better solution is to move the TIFF and JPEG code to
6625         different files.
6626         
6627         * glyphs-msw.c (mswindows_xbm_instantiate):
6628         Define __STDC__ to avoid problems with compface.h.
6629         
6630         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6631         * EmacsShell-sub.c:
6632         * EmacsShell-sub.c (ABORT):
6633         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6634         * EmacsShell-sub.c (RootGeometryManager):
6635         * EmacsShell.c:
6636         * EmacsShell.c (ABORT):
6637         * EmacsShell.c (EmacsShellUpdateSizeHints):
6638         * alloc.c (free_lcrecord):
6639         * alloca.c (i00afunc):
6640         * buffer.c (delete_from_buffer_alist):
6641         * buffer.c (MARKED_SLOT):
6642         * bytecode.c (execute_rare_opcode):
6643         * bytecode.c (optimize_byte_code):
6644         * bytecode.c (Ffetch_bytecode):
6645         * chartab.c (char_table_type_to_symbol):
6646         * chartab.c (Freset_char_table):
6647         * chartab.c (decode_char_table_range):
6648         * chartab.c (Fget_range_char_table):
6649         * chartab.c (check_valid_char_table_value):
6650         * chartab.c (map_char_table):
6651         * chartab.c (slow_map_char_table_fun):
6652         * chartab.c (chartab_instantiate):
6653         * cm.c (cmcheckmagic):
6654         * console-msw.c (DHEADER):
6655         * console.c (MARKED_SLOT):
6656         * data.c (finish_marking_weak_lists):
6657         * data.c (encode_weak_list_type):
6658         * debug.h (DASSERT):
6659         * device-gtk.c (gtk_init_device):
6660         * device-msw.c (mswindows_get_default_margin):
6661         * device-tty.c (tty_init_device):
6662         * device-x.c (get_device_from_display):
6663         * device-x.c (x_get_visual_depth):
6664         * doprnt.c (parse_doprnt_spec):
6665         * doprnt.c (get_doprnt_args):
6666         * dumper.c (pdump_get_indirect_count):
6667         * dumper.c (pdump_register_sub):
6668         * dumper.c (pdump_register_object):
6669         * dumper.c (pdump_register_struct):
6670         * dumper.c (pdump_dump_data):
6671         * dumper.c (pdump_reloc_one):
6672         * elhash.c (print_hash_table):
6673         * elhash.c (make_standard_lisp_hash_table):
6674         * elhash.c (hash_table_instantiate):
6675         * emacs.c:
6676         * emacs.c (Fforce_debugging_signal):
6677         * emacs.c (sort_args):
6678         * emacs.c (main):
6679         * emacs.c (assert_failed):
6680         * eval.c (throw_or_bomb_out):
6681         * eval.c (signal_1):
6682         * eval.c (Fsignal):
6683         * event-Xt.c:
6684         * event-Xt.c (emacs_Xt_mapping_action):
6685         * event-Xt.c (Xt_process_to_emacs_event):
6686         * event-msw.c:
6687         * event-stream.c (check_event_stream_ok):
6688         * event-stream.c (Fadd_timeout):
6689         * event-stream.c (Fadd_async_timeout):
6690         * event-stream.c (Fdiscard_input):
6691         * event-stream.c (execute_internal_event):
6692         * event-stream.c (Frecent_keys):
6693         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6694         * event-stream.c (lookup_command_event):
6695         * event-unixoid.c (poll_fds_for_input):
6696         * events.c:
6697         * events.c (mark_event):
6698         * events.c (event_equal):
6699         * events.c (event_hash):
6700         * events.c (Fmake_event):
6701         * events.c (Fdeallocate_event):
6702         * events.c (event_chain_find_previous):
6703         * events.c (event_to_character):
6704         * events.c (format_event_object):
6705         * events.c (Fevent_type):
6706         * events.c (event_pixel_translation):
6707         * events.c (Fevent_properties):
6708         * extents.c (extent_in_region_p):
6709         * extents.c (print_extent):
6710         * extents.c (process_extents_for_insertion_mapper):
6711         * extents.c (report_extent_modification_mapper):
6712         * extents.c (glyph_layout_to_symbol):
6713         * faces.c (face_validate):
6714         * file-coding.c (eol_type_to_symbol):
6715         * file-coding.c (subsidiary_coding_system):
6716         * file-coding.c (Fcoding_system_type):
6717         * file-coding.c (Fcoding_system_property):
6718         * file-coding.c (mule_decode):
6719         * file-coding.c (mule_encode):
6720         * file-coding.c (encode_coding_ucs4):
6721         * file-coding.c (encode_coding_utf8):
6722         * file-coding.c (parse_iso2022_esc):
6723         * file-coding.c (encode_coding_iso2022):
6724         * fileio.c:
6725         * fns.c (concat):
6726         * fns.c (Fsubseq):
6727         * fns.c (mapcar1):
6728         * fns.c (Fbase64_encode_region):
6729         * fns.c (Fbase64_encode_string):
6730         * fns.c (Fbase64_decode_region):
6731         * fns.c (Fbase64_decode_string):
6732         * font-lock.c (find_context):
6733         * font-lock.c (context_to_symbol):
6734         * frame-gtk.c (gtk_set_frame_pointer):
6735         * frame-gtk.c (gtk_update_frame_external_traits):
6736         * frame-x.c (x_wm_mark_shell_size_user_specified):
6737         * frame-x.c (x_wm_mark_shell_position_user_specified):
6738         * frame-x.c (x_wm_set_shell_iconic_p):
6739         * frame-x.c (x_wm_set_cell_size):
6740         * frame-x.c (x_wm_set_variable_size):
6741         * frame-x.c (x_wm_store_class_hints):
6742         * frame-x.c (x_wm_maybe_store_wm_command):
6743         * frame-x.c (x_initialize_frame_size):
6744         * frame-x.c (x_update_frame_external_traits):
6745         * frame.c:
6746         * frame.c (delete_frame_internal):
6747         * frame.c (mouse_pixel_position_1):
6748         * frame.c (change_frame_size_1):
6749         * free-hook.c (check_free):
6750         * free-hook.c (check_realloc):
6751         * free-hook.c (note_block_input):
6752         * free-hook.c (log_gcpro):
6753         * gccache-gtk.c (gc_cache_lookup):
6754         * glyphs-eimage.c (tiff_memory_write):
6755         * glyphs-gtk.c (gtk_finalize_image_instance):
6756         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6757         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6758         * glyphs-gtk.c (gtk_xpm_instantiate):
6759         * glyphs-gtk.c (gtk_unmap_subwindow):
6760         * glyphs-gtk.c (gtk_map_subwindow):
6761         * glyphs-gtk.c (gtk_button_redisplay):
6762         * glyphs-msw.c:
6763         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6764         * glyphs-x.c (init_image_instance_from_xbm_inline):
6765         * glyphs-x.c (extract_xpm_color_names):
6766         * glyphs-x.c (x_xpm_instantiate):
6767         * glyphs.c (get_image_instantiator_governing_domain):
6768         * glyphs.c (print_image_instance):
6769         * glyphs.c (image_instance_equal):
6770         * glyphs.c (image_instance_hash):
6771         * glyphs.c (encode_image_instance_type):
6772         * glyphs.c (make_image_instance_1):
6773         * glyphs.c (inherit_instantiate):
6774         * glyphs.c (image_instantiate):
6775         * glyphs.c (allocate_glyph):
6776         * glyphs.c (Fglyph_type):
6777         * glyphs.c (redisplay_subwindow):
6778         * glyphs.c (display_table_entry):
6779         * gtk-glue.c (xemacs_list_to_gtklist):
6780         * gtk-glue.c (xemacs_gtklist_to_list):
6781         * gtk-glue.c (xemacs_list_to_array):
6782         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6783         * gutter.c (gutter_was_visible):
6784         * gutter.c (get_gutter_coords):
6785         * input-method-xlib.c (get_XIM_input):
6786         * insdel.c (bufpos_to_bytind_func):
6787         * insdel.c (bytind_to_bufpos_func):
6788         * insdel.c (move_gap):
6789         * intl.c (x_get_composed_input):
6790         * keymap.c (keymap_lookup_directly):
6791         * keymap.c (keymap_delete_inverse_internal):
6792         * keymap.c (ensure_meta_prefix_char_keymapp):
6793         * keymap.c (accessible_keymaps_mapper_1):
6794         * keymap.c (where_is_recursive_mapper):
6795         * lisp.h:
6796         * lisp.h (ABORT):
6797         * lread.c (read_atom):
6798         * lstream.c (Lstream_delete):
6799         * lstream.c (make_lisp_buffer_stream_1):
6800         * macros.c (pop_kbd_macro_event):
6801         * malloc.c (malloc):
6802         * malloc.c (free):
6803         * marker.c (bi_marker_position):
6804         * marker.c (set_bi_marker_position):
6805         * menubar-gtk.c (menu_descriptor_to_widget_1):
6806         * menubar-msw.c (prune_menubar):
6807         * menubar-x.c (set_frame_menubar):
6808         * mule-charset.c (get_unallocated_leading_byte):
6809         * mule-charset.h (CHAR_LEADING_BYTE):
6810         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6811         * nt.c (init_environment):
6812         * nt.c (generate_inode_val):
6813         * ntproc.c (delete_child):
6814         * ntproc.c (_sys_read_ahead):
6815         * ntproc.c (create_child):
6816         * objects.c (color_instantiate):
6817         * objects.c (font_instantiate):
6818         * objects.c (face_boolean_instantiate):
6819         * print.c (printing_major_badness):
6820         * process-nt.c (nt_send_process):
6821         * process-unix.c (unix_send_process):
6822         * process.c (get_process):
6823         * ralloc.c (obtain):
6824         * ralloc.c (relinquish):
6825         * ralloc.c (relocate_blocs):
6826         * ralloc.c (resize_bloc):
6827         * ralloc.c (r_alloc_free):
6828         * ralloc.c (r_re_alloc):
6829         * ralloc.c (r_alloc_thaw):
6830         * ralloc.c (init_ralloc):
6831         * ralloc.c (Free_Addr_Block):
6832         * ralloc.c (r_alloc):
6833         * redisplay-gtk.c (gtk_output_display_block):
6834         * redisplay-msw.c (mswindows_output_display_block):
6835         * redisplay-output.c (get_next_display_block):
6836         * redisplay-output.c (get_cursor_size_and_location):
6837         * redisplay-output.c (redisplay_output_layout):
6838         * redisplay-output.c (redisplay_clear_region):
6839         * redisplay-tty.c (tty_output_display_block):
6840         * redisplay-x.c (x_output_display_block):
6841         * redisplay.c (add_propagation_runes):
6842         * redisplay.c (add_glyph_rune):
6843         * redisplay.c (create_text_block):
6844         * redisplay.c (add_margin_runes):
6845         * redisplay.c (create_left_glyph_block):
6846         * redisplay.c (create_right_glyph_block):
6847         * redisplay.c (create_string_text_block):
6848         * redisplay.c (regenerate_window):
6849         * redisplay.c (REGEN_INC_FIND_START_END):
6850         * redisplay.c (redisplay_frame):
6851         * redisplay.c (point_in_line_start_cache):
6852         * regex.c:
6853         * regex.c (ABORT):
6854         * regex.c (re_compile_fastmap):
6855         * regex.c (re_match_2_internal):
6856         * regex.c (regerror):
6857         * scrollbar-gtk.c (gtk_scrollbar_loop):
6858         * scrollbar-gtk.c (scrollbar_cb):
6859         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6860         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6861         * scrollbar-x.c (x_update_scrollbar_instance_status):
6862         * scrollbar-x.c (x_scrollbar_loop):
6863         * scrollbar-x.c (x_update_frame_scrollbars):
6864         * search.c (search_command):
6865         * search.c (Fmatch_data):
6866         * select-x.c (motif_clipboard_cb):
6867         * signal.c (interrupt_signal):
6868         * specifier.c (specifier_add_spec):
6869         * specifier.c (specifier_instance_from_inst_list):
6870         * specifier.c (specifier_instance):
6871         * specifier.h:
6872         * specifier.h (struct specifier_methods):
6873         * strftime.c (add_num_time_t):
6874         * sunplay.c (init_device):
6875         * symbols.c (Fsetplist):
6876         * symbols.c (do_symval_forwarding):
6877         * symbols.c (store_symval_forwarding):
6878         * symbols.c (Fset):
6879         * symbols.c (Fbuilt_in_variable_type):
6880         * symbols.c (decode_magic_handler_type):
6881         * symbols.c (handler_type_from_function_symbol):
6882         * syntax.c (update_syntax_cache):
6883         * sysdep.c (init_baud_rate):
6884         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6885         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6886         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6887         * toolbar.c (get_toolbar_coords):
6888         * ui-gtk.c (build_gtk_boxed):
6889         * ui-gtk.c (describe_gtk_arg):
6890         * ui-gtk.c (gtk_type_to_lisp):
6891         * ui-gtk.c (lisp_to_gtk_type):
6892         * ui-gtk.c (lisp_to_gtk_ret_type):
6893         * ui-gtk.c (lisp_to_flag):
6894         * unexnt.c (read_in_bss):
6895         * unexnt.c (map_in_heap):
6896         * window.c (real_window):
6897         * window.c (window_display_lines):
6898         * window.c (window_display_buffer):
6899         * window.c (set_window_display_buffer):
6900         * window.c (window_modeline_height):
6901         * window.c (unshow_buffer):
6902         * window.c (window_loop):
6903         * window.c (Fget_lru_window):
6904         * window.c (Fsplit_window):
6905         * window.c (Fset_window_configuration):
6906         * window.c (saved_window_index):
6907         * xgccache.c (gc_cache_lookup):
6908         abort() -> ABORT().  Eliminate preprocessor games with abort()
6909         since it creates huge problems in VC7, solvable only by including
6910         massive amounts of files in every compile (and not worth it).
6911
6912         * sysdep.c:
6913         * sysproc.h:
6914         Inclusion of process.h does not need to be before lisp.h any more.
6915         Move later and remove comment about abort().
6916
6917 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6918
6919         * regex.c (re_match_2_internal):
6920         Correctly initialize loop which clears uninitialized registers.
6921
6922 2005-01-28  Vin Shelton  <acs@xemacs.org>
6923
6924         * sheap.c (more_static_core): Applied Ben's version of the long
6925         string patch.
6926
6927 2005-01-24  Vin Shelton  <acs@xemacs.org>
6928
6929         * sheap.c (more_static_core): Reformatted printf string so
6930         gcc-3.3.3 will compile this on Cygwin.
6931
6932 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6933
6934         * console.c (function_key_map): Reference `key-binding'.
6935
6936         * keymap.c (Vkey_translation_map): Improve docstring.
6937
6938 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6939
6940         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6941         * window.c (window_loop): [fix] Take into account
6942         `allow-deletion-of-last-visible-frame' variable.
6943         * window.c (replace-buffer-in-windows): Ditto.
6944
6945 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6946
6947         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6948
6949 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6950
6951         * event-gtk.c: Recognise AltGr as a valid modifier.
6952
6953 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6954
6955         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6956
6957 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6958
6959         Fix backreference bug caught by test suite.
6960
6961         * regex.c (regex_compile):
6962         Make backref duplicate internal register.
6963
6964 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6965
6966         Documentation, code clarification, and warning suppression.
6967         
6968         * regex.c (regex_compile):
6969         Improve comments.
6970         (re_match_2_internal):
6971         Improve comments and avoid redundant braces.  [Most of the big hunk
6972         at l. 4710 is indentation; use diff -w to see the real changes.]
6973         (alt_match_null_string_p):
6974         (common_op_match_null_string_p):
6975         Avoid shadowing global on Mac OS X 10.4, at least.
6976
6977 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6978
6979         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6980         introduced with shy groups fix).  [Already applied, probably
6981         with the second "fix shy groups" patch of 2004-10-07.] 
6982
6983 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6984
6985         From Andrey Slusar <anrays@gmail.com>:
6986
6987         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6988
6989 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6990
6991         * Makefile (RECURSIVE_MAKE): Removed.
6992         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6993         handling parallel builds.
6994
6995 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6996
6997         * Makefile.in.in: Enable support for parallel builds.
6998
6999 2005-01-09  Steve Youngs  <steve@sxemacs.org>
7000
7001         From Andrey Slusar <anrays@gmail.com>:
7002
7003         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
7004         FreeBSD version is >= 199701 _and_ < 600006.
7005
7006 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
7007
7008         * scrollbar.c (compute_scrollbar_instance_usage):
7009         Only call device method compute_scrollbar_instance_usage() if it
7010         is defined.
7011
7012 2004-12-05  Vin Shelton <acs@xemacs.org>
7013
7014         * XEmacs 21.4.16 is released
7015
7016 2004-12-04  Vin Shelton  <acs@xemacs.org>
7017
7018         * depend: Regenerated.
7019
7020 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
7021
7022         * regex.c (re_match_2_internal): Map internal to external
7023         registers.  Fixes bug identified by Steve Youngs 2004-09-30
7024         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
7025
7026 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
7027
7028         * buffer.c (Frecord_buffer): Make sure the argument is buffer
7029         to fix a crash.  Also, check the buffer is live and it
7030         really exists in buffer_list.  If the buffer is not in the list,
7031         prepend it.
7032
7033 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
7034
7035         Fix shy groups by implementing recording of all groups for
7036         repetition and backtracking.  Backport from 21.5.
7037         
7038         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
7039         external_to_internal_register, external_to_internal_register_size,
7040         and update comments for re_nsub.
7041
7042         * regex.c (re_opcode_t): Update comments.
7043         (print_compiled_pattern): Ouput external_to_internal_register,
7044         external_to_internal_register_size, and re_ngroups for debugging.
7045         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
7046         (regex_compile): Update header comment.
7047         Ensure that all groups are recorded so that repeat matches and
7048         backtracking work correctly.  Comment related warning for groups >
7049         255.
7050         (re_search_2): Construct map of API indexes (which count only
7051         nonshy groups) to internal register numbers, and keep it updated.
7052
7053 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
7054
7055         * frame-gtk.c (gtk_make_frame_visible):
7056         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
7057         show/hide.  This is what X uses and is prevents previously hidden
7058         widgets from suddenly reappearing.
7059         * gtk-xemacs.c (gtk_xemacs_paint):
7060         * gtk-xemacs.c (gtk_xemacs_draw):
7061         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
7062         drawable.
7063         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
7064         size and location changes so that they can be seen before the next
7065         idle event.  Without this rapid changes to scrollbar properties
7066         are not seen.
7067
7068 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
7069
7070         * console-gtk.h:
7071         * console-gtk.h (struct gtk_frame):
7072         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
7073           Add hash tables track tab_control callback data.
7074           Added #defines for GTK object data names.
7075           Declaration of gtk_widget_to_frame().
7076         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
7077         * frame-gtk.c (gtk_widget_to_frame): New.
7078         * frame-gtk.c (gtk_create_widgets):
7079         * frame-gtk.c (allocate_gtk_frame_struct):
7080         * frame-gtk.c (gtk_mark_frame):
7081         Manage frame callbakc hash tables.
7082         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
7083         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
7084         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
7085         of widget size.
7086         * glyphs-gtk.c (gtk_widget_query_geometry): New
7087         * glyphs-gtk.c (gtk_register_gui_item): New
7088         * glyphs-gtk.c (gtk_add_tab_item): New
7089         * glyphs-gtk.c (gtk_tab_control_callback): New
7090         * glyphs-gtk.c (gtk_tab_control_instantiate): New
7091         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
7092         Use correct list when loading item.
7093         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
7094         Register new methods.
7095         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
7096         default size, for widgets.
7097         * gui-x.c:  Improved comment.
7098         * menubar-gtk.c (__generic_button_callback): Use
7099         gtk_widget_to_frame instead of __get_channel.
7100         * scrollbar-gtk.c:
7101         * ui-gtk.c: Use symbolic names for GTK object data.
7102
7103 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
7104
7105         * s/usg5-4.h (NSIG): Define only inside emacs binary.
7106
7107 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
7108
7109         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
7110
7111 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
7112
7113         * malloc.c (morecore): siz is a long because in some architectures
7114         (eg ia-64) an int cannot hold the address range.  Additional patch
7115         from the SuSe distribution.
7116
7117 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
7118
7119         * emacs.c:
7120         * malloc.c: lim_data is a long because in some architectures
7121         (eg ia-64) an int cannot hold the address range.
7122         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
7123         instead of ulimit() because ulimit() always returns -1.
7124
7125 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
7126
7127         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
7128
7129 2004-06-11  David Kastrup  <dak@gnu.org>
7130
7131         * search.c (match_limit): Don't flag an error if match-data
7132         exceeding the allocated search_regs.num_regs gets requested, just
7133         return Qnil.
7134
7135 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7136
7137         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
7138         replace symbolic color entries with the real colors specified in
7139         xpm-color-symbols, before passing the XPM to gtk.
7140         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
7141         instead of a GTK specific field, so that it is used in by generic
7142         code.
7143
7144 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
7145
7146        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
7147         coredump from deref of NULL ptr (ExtData)
7148
7149 2004-04-19  Jerry James  <james@xemacs.org>
7150
7151         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
7152         VALBITS to compute the location of the sign bit.
7153         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
7154         of VALBITS with EMACS_INT_MAX.
7155         * events.c (Fevent_timestamp): Ditto.
7156         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
7157         compute the halfway point to timestamp wraparound.
7158         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
7159         EMACS_INT_MIN instead of using VALBITS.
7160         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
7161         incorrect number with VALBITS.
7162         * fns.c (Frandom): Correct number of integer bits in docstring.
7163         Use INT_VALBITS instead of VALBITS to compute the denominator.
7164         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
7165         build random numbers.
7166
7167 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7168         * event-gtk.c:
7169         * event-gtk.c (gtk_event_to_emacs_event):
7170         * menubar-gtk.c:
7171         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
7172         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
7173         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
7174         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
7175         * menubar-gtk.c (__activate_menu):
7176         * menubar-gtk.c (convert_underscores):
7177         * menubar-gtk.c (remove_underscores):
7178         * menubar-gtk.c (menu_convert):
7179         * menubar-gtk.c (menu_descriptor_to_widget_1):
7180         * menubar-gtk.c (menu_descriptor_to_widget):
7181         * menubar-gtk.c (menu_can_reuse_widget):
7182         * menubar-gtk.c (menu_create_menubar):
7183         * menubar-gtk.c (gtk_popup_menu):
7184         * menubar-gtk.c (Fgtk_build_xemacs_menu):
7185         Added support for Gtk menu bar and menu item mnemonics.
7186
7187 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7188
7189         * sysdll.c: (dll_function): Added support for finding symbols in
7190         Darwin shared libraries as well in Darwin bundles.
7191         * sysdll.c (image_for_address): New
7192         * sysdll.c (my_find_image): New
7193         * sysdll.c (search_linked_libs): New
7194
7195 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7196
7197         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
7198         return to GTK requires a different API to marshalling data to use
7199         as GTK parameters.
7200         * ui-gtk.c (lisp_to_gtk_ret_type): New.
7201
7202 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
7203
7204         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
7205
7206 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7207
7208         * glyphs.c (process_image_string_instantiator):
7209         (Fset_console_type_image_conversion_list):
7210         Stop GCC from warning about shadowing of `exp'.
7211
7212         * redisplay-x.c (x_output_string): Fix unsigned lossage.
7213
7214 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7215
7216         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
7217
7218 2004-02-03  Vin Shelton  <acs@xemacs.org>
7219
7220         * glyphs.c (image_instance_layout): Remove pointless assertion.
7221         * regex.c (regex_grow_registers): Return type is void.
7222
7223 2004-02-02  Vin Shelton <acs@xemacs.org>
7224
7225         * XEmacs 21.4.15 is released
7226
7227 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
7228
7229         * device-x.c (x_error_handler): Don't call stderr_out
7230
7231 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
7232
7233         * buffer.c (other-buffer): Clarify documentation of order of
7234         arguments for FSF Emacs.
7235
7236 2003-10-11  Olivier Galibert  <galibert@pobox.com>
7237
7238         * window.c (Fdelete_window): Dirty the mirror structure _before_
7239         marking the window deleted.
7240
7241 2003-09-15  Jerry James  <james@xemacs.org>
7242
7243         * event-msw.c (debug_mswin_messages): Conditionally compile
7244         messages missing from the Cygwin headers.
7245
7246 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
7247
7248         * data.c (eq_with_ebola_notice): Fix typo in comment.
7249         (Ftrue_list_p): Improve docstring.
7250
7251 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
7252
7253         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
7254
7255 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
7256
7257         * search.c (trivial_regexp_p): Regexps containing "\{" are
7258         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
7259         Stefan Monnier for suggesting a diagnosis.
7260
7261 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
7262
7263         * elhash.c (make-hash-table): Clarify use of :test #'equal.
7264
7265 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
7266
7267         * search.c (Fsearch_forward):
7268         (Fsearch_backward):
7269         Document negative count.
7270
7271 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
7272
7273         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
7274
7275 2003-09-13  Martin Buchholz  <martin@xemacs.org>
7276
7277         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
7278
7279 2003-09-15  Vin Shelton  <acs@xemacs.org>
7280
7281         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
7282         21.5.
7283
7284 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7285
7286         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
7287         (re_search_2): Match the first byte of Bufbyte, not Emchar.
7288         (re_match_2_internal): Use TRANSLATE instead of
7289         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
7290         non-ASCII char case conversion.
7291
7292 2003-09-08  Mike Sperber  <mike@xemacs.org>
7293
7294         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
7295         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
7296
7297 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
7298
7299        * .gdbinit (pobj): fix printing of symbol name.
7300
7301 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
7302
7303         * frame-x.c (x_layout_widgets): When resizing is about to cause
7304         frame size slip, mark it for redisplay.
7305
7306 2003-08-18  Jerry James  <james@xemacs.org>
7307
7308         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
7309
7310 2003-09-03  Vin Shelton <acs@xemacs.org>
7311
7312         * XEmacs 21.4.14 is released
7313
7314 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
7315
7316         * config.h.in (REGEX_MALLOC): Make it configure'able.
7317
7318 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
7319
7320         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
7321         linking.
7322         * sysdll.c (dll_init):
7323         * sysdll.c (dll_open):
7324         * sysdll.c (dll_close):
7325         * sysdll.c (dll_function):
7326         * sysdll.c (dll_variable):
7327         * sysdll.c (dll_error):
7328         Add support for loading bundles using Darwin/MacOSX
7329         native API.
7330
7331 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
7332
7333         * process.c (start-process-internal): Document coding systems.
7334
7335 2003-07-30  Jerry James  <james@xemacs.org>
7336
7337         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
7338
7339 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
7340
7341         * event-msw.c (mswindows_enqueue_mouse_button_event):
7342         * event-msw.c (mswindows_wnd_proc):
7343           enqueue button event when scrollwheel event isn't handled by 
7344           mswindows_handle_mousewheel_event, such as when the scrollbars
7345           are not showing.
7346
7347 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
7348
7349         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
7350
7351 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
7352
7353         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
7354
7355 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
7356
7357         * regex.c (re_match_2_internal): Fix matching degenerate word
7358         boundaries.
7359
7360 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
7361
7362         * XEmacs 21.4.13 is released
7363
7364 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
7365
7366         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
7367         * lisp.h (<inttypes.h>):
7368         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
7369         the definition.
7370
7371 2003-03-15  Martin Buchholz  <martin@xemacs.org>
7372
7373         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7374         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7375         Result: "temacs can only be run in -batch mode."
7376         Fix: Check xemacs executable candidate for directory-ness.
7377
7378 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7379
7380         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7381           they conflict with <sys/types.h>.
7382
7383 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7384
7385         * database.c: Berkeley DB wants __STDC__ to be defined.
7386
7387 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7388
7389         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7390
7391 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7392
7393         * process-unix.c (unix_send_process): Fix C++ compile error.
7394
7395 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7396
7397         * Added .dylib as an acceptable shared library file extension
7398         * to support MacOSX.
7399
7400 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7401
7402         * EmacsFrameP.h (EmacsFramePart):
7403         Kludge to allow compiling with Motif1, but linking with Motif2.
7404
7405 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7406
7407         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7408
7409
7410 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7411
7412         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7413
7414 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7415
7416         * sysdll.c: Included lisp.h to define needed alloca_array.
7417
7418 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7419
7420         Make XEmacs redisplay 10 times faster.
7421         If, that is, you're using a slow X connection and MoveOpaque.
7422         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7423         Use compress_motion = TRUE.
7424         * EmacsFrame.c (emacsFrameClassRec): 
7425         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7426         * EmacsManager.c (emacsManagerClassRec):
7427         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7428
7429 2003-01-30  Vin Shelton  <acs@xemacs.org>
7430
7431         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7432
7433 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7434
7435         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7436         Patch by Martin Buchholz.
7437
7438 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7439
7440         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7441         Thanks to icc for warning and Martin Buchholz for reporting.
7442
7443 2003-01-29  Vin Shelton <acs@xemacs.org>
7444
7445         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7446
7447         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7448         remember to multiply by the element size.
7449
7450 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7451
7452         * XEmacs 21.4.12 "Portable Code" is released.
7453
7454 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7455
7456         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7457         * s/cygwin.sc: new linker file.
7458
7459 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7460
7461         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7462
7463         * redisplay-x.c (x_output_string): Use X11-specified types.
7464         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7465         * emacs.c (__free_hook): Use typeof with Intel compiler.
7466         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7467
7468 2003-01-08  Andy Piper  <andy@xemacs.org>
7469
7470         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7471         reserve size during unexec().
7472
7473 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7474
7475         * process-unix.c (unix_create_process): Don't let outchannel block.
7476
7477 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7478
7479         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7480         Needed for IsBadReadPtr().
7481
7482 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7483
7484         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7485
7486 2002-12-14  Ben Wing  <ben@xemacs.org>
7487
7488         * callint.c: Declaration error.
7489         * dumper.c (pdump):
7490         * dumper.c (pdump_load): Warning fix.
7491         * process.c: GCPRO error.
7492         * glyphs.c (unmap_subwindow):
7493         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7494         * event-stream.c (maybe_kbd_translate): Wrong argument to
7495         character_to_event().
7496
7497         * alloc.c (garbage_collect_1):
7498         * emacs.c:
7499         * emacs.c (debug_can_access_memory):
7500         * emacs.c (fatal_error_signal):
7501         * emacs.c (mswindows_handle_hardware_exceptions):
7502         * emacs.c (main_1):
7503         * emacs.c (main):
7504         * emacs.c (assert_failed):
7505         * emacs.c (syms_of_emacs):
7506         * lisp.h:
7507         * print.c:
7508         * print.c (std_handle_out_va):
7509         * print.c (write_string_to_stdio_stream):
7510         * print.c (write_fmt_string):
7511         * print.c (printing_badness):
7512         * print.c (printing_major_badness):
7513         * print.c (print_internal):
7514         * print.c (debug_print_no_newline):
7515         * print.c (debug_backtrace):
7516         Be more defensive in handling bad values when printing.  Add code
7517         from trunk involving inhibit_non_essential_printing_operations.
7518         When going down or in debug_print(), don't do external conversion
7519         and such and try really, really hard when printing to avoid core
7520         dumping.  Add force-debugging-signal, debug_break().
7521
7522 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7523
7524         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7525         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7526
7527 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7528
7529         * database.c: Fix open_database. Berkeley DB API has changed in
7530         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7531
7532 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7533
7534         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7535
7536 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7537
7538         * event-Xt.c (Xt_timeout):
7539         (Xt_timeout_callback):
7540         (emacs_Xt_add_timeout):
7541         (emacs_Xt_remove_timeout):
7542         (Xt_timeout_to_emacs_event):
7543         Turn completed_timeouts from a stack into a queue.  Fixes
7544         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7545
7546 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7547
7548         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7549         * emacs.c (main): Assert that mmap'd allocation is disabled.
7550
7551 2002-10-14  Andy Piper  <andy@xemacs.org>
7552
7553         * glyphs-widget.c (layout_query_geometry): add in fiddle
7554         factor. Include border text in width layout calculation.
7555         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7556
7557 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7558
7559         * XEmacs 21.4.10 "Military Intelligence" is released.
7560
7561 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7562
7563         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7564         using the NAS private array SoundFileInfo that no longer exists in
7565         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7566         and earlier.  This is broken for some versions between 1.5a and
7567         1.5f.
7568
7569 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7570
7571         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7572
7573         * emacs.c (shut_down_emacs): Improve crash message.
7574
7575 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7576
7577         * file-coding.c (determine_real_coding_system): Check for coding
7578         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7579         shebangs and Python PEP 263.
7580
7581 2002-10-08  Andy Piper  <andy@xemacs.org>
7582
7583         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7584         if static sizes haven't been set.
7585
7586 2002-08-30  Mike Alexander  <mta@arbortext.com>
7587
7588         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7589         to close a socket.
7590
7591 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7592
7593         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7594
7595 2002-09-20  Mike Sperber <mike@xemacs.org>
7596
7597         (This partially gets back my patch from 2002-07-20 without the
7598         bug.)
7599         * callproc.c (child_setup): Remove Ben's comment noting confusion
7600         over the file descriptors >= 3: close_process_descs() doesn't
7601         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7602         * process-unix.c (unix_create_process): Call
7603         begin_dont_check_for_quit to inhibit unwanted interaction (and
7604         thus breaking of X event synchronicity) in the child.
7605
7606 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7607
7608         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7609         widget.
7610
7611 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7612
7613         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7614         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7615         the xemacs process did not exit, but looped infinitely here.  This
7616         fixes that problem.
7617
7618 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7619
7620         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7621         (find_context): Improve comments.
7622
7623         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7624         (re_match_2): An XCHAR_TABLE operation was missing.
7625
7626         Many of the following changes were inspired by Andy Piper's (now
7627         obsolete) patch to make syntax-table text property lookup optional.
7628
7629         [Documentation]
7630
7631         * syntax.h (top level): Document semantics of syntax flags.
7632         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7633         * syntax.c, syntax.h (top level): Document syntax cache better in
7634         comments.
7635
7636         [Instrument syntax caching (temporary change)]
7637
7638         * syntax.h (enum syntax_cache_statistics_functions, struct
7639         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7640         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7641         * syntax.c (scan_words, Fforward_comment, scan_lists,
7642         Fbackward_prefix_characters):
7643         * font-lock.c (find_context):
7644         Use them to instrument syntax caching. 
7645         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7646         syntax_cache_statistics_function_names): New type and variables.
7647         * syntax.c (update_syntax_cache): Update and report statistics.
7648
7649         [Major syntax cache optimizations]
7650
7651         syntax.c (lookup_syntax_properties): Default off.
7652
7653         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7654         * syntax.c (update_syntax_cache):
7655         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7656
7657         [Minor syntax cache optimizations and code clarifications]
7658
7659         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7660         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7661         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7662         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7663         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7664         (Code clarification.)
7665
7666         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7667         scan_lists): Compute code from syncode, use Boolean macros instead
7668         of redundant masking operations.  (Code clarification; any decent
7669         compiler can do this optimization.)
7670
7671         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7672         for clarity.
7673
7674         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7675         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7676         use F*_single_property_change instead of F*_extent_change.
7677         Currently F*_single_property_change is _much_ less efficient.
7678
7679         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7680         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7681         syntax_cache.object properly, don't leave Qt or Qnil.
7682         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7683         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7684         tests for Qt or Qnil.
7685
7686 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7687
7688         * redisplay.c (point_in_line_start_cache): 
7689         * extents.c (print_extent_1):
7690         Fix warnings.
7691
7692         * extents.c (Fset_extent_property): Document `syntax-table' property.
7693
7694         * extents.h (Fnext_single_property_change): EXFUN it.
7695
7696 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7697
7698         * search.c (clear_unused_search_regs): New static function.
7699         (search_buffer): 
7700         (simple_search): 
7701         (boyer_moore):
7702         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7703         Minor clarifications in comments.
7704
7705         * regex.c (re_match_2_internal): Ensure no stale submatches.
7706
7707 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7708
7709         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7710
7711 2002-08-29  Jerry James  <james@xemacs.org>
7712
7713         * lisp.h: structrures -> structures.
7714
7715 2002-06-03  Andy Piper  <andy@xemacs.org>
7716
7717         * frame.c (frame_conversion_internal): add conversion appropriate
7718         for setting frame dimensions in pixels.
7719
7720         * console.h (struct console_methods): add device-specific widget
7721         layout functions.
7722
7723         * emacs.c (main_1): initialize glyph vars.
7724
7725         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7726         (handle_focus_event_2): new function. Allow focus to
7727         be set to a particular window and widget.
7728         (enqueue_focus_event): new function. Create a
7729         synthetic focus event.
7730         (emacs_Xt_handle_magic_event): call
7731         handle_focus_event_2.
7732
7733         * frame.c (Fset_frame_pixel_height): new function. Allow
7734         pixel-based sizing. Does the right thing on character-oriented
7735         displays.
7736         (Fset_frame_pixel_width): ditto.
7737         (Fset_frame_pixel_size): ditto.
7738         (syms_of_frame): declare.
7739
7740         * general-slots.h: add :vertically-justify and
7741         :horizontally-justify.
7742
7743         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7744         (mswindows_widget_border_width): new function.
7745         (mswindows_combo_box_instantiate): set border widths.
7746         (console_type_create_glyphs_mswindows): declare.
7747
7748         * glyphs-widget.c:
7749         (check_valid_justification): allow vertical and horizontal
7750         justification.
7751         (widget_border_width): new function. Call device methods.
7752         (widget_instance_border_width): ditto.
7753         (logical_unit_height): new function. Determine the height of a
7754         logical-unit. Logical units are intended to provide grid-like
7755         layout for subcontrols in a layout. If the layout is
7756         :vertically-justify top then subcontrols will be positioned on
7757         logical-unit boundaries, thus allowing adjacent subcontrols to
7758         line up.
7759         (widget_logical_unit_height): ditto for widgets.
7760         (redisplay_widget): misc cleanup.
7761         (widget_spacing): new function. Call device specific
7762         methods. Intended to be the default gap between adjacent widgets.
7763         (widget_query_geometry): use new spacing functions to determine
7764         appropriate geometry.
7765         (initialize_widget_image_instance): initialize horizontal and
7766         vertical justification.
7767         (widget_instantiate): use logica-units where appropriate for
7768         sizing large widgets.
7769         (button_query_geometry): use widget_instance_border_width.
7770         (tree_view_query_geometry): ditto.
7771         (tab_control_query_geometry): ditto.
7772         (edit_field_query_geometry): new function.
7773         (layout_update): pick up :justify, :horizontally-justify and
7774         :vertically-justify none of which worked previously. :justify is
7775         used as a fallback for both horizontal and vertical justification.
7776         (layout_query_geometry): use logical units to size appropriately.
7777         (layout_layout): ditto.
7778         (Fwidget_logical_to_character_width): new function. Allow users to
7779         convert from logical units to characters so that frame sizes can
7780         be set appropriately.
7781         (Fwidget_logical_to_character_height): ditto.
7782         (syms_of_glyphs_widget): declare.
7783         (image_instantiator_edit_fields): add edit_field_query_geometry.
7784         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7785         :horizontally-justify.
7786         (specifier_vars_of_glyphs_widget): new function. Declare
7787         Vwidget_border_width which is not yet used.
7788
7789         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7790         (x_widget_border_width): new function.
7791         (x_widget_instantiate): create a sensible name for widgets.
7792         (console_type_create_glyphs_x): declare x_widget_border_width.
7793
7794         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7795         (struct Lisp_Image_Instance): add :vertically-justify and
7796         :horizontally-justify.
7797         (LAYOUT_JUSTIFY_TOP): new.
7798         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7799         (ROUND_UP): new macro. Round argument up to next integral
7800         interval.
7801
7802         * redisplay-output.c (redisplay_output_layout): misc formatting.
7803
7804         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7805
7806 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7807
7808         * XEmacs 21.4.9 "Informed Management" is released.
7809
7810 2002-08-19  Andy Piper  <andy@xemacs.org>
7811
7812         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7813         win32 format.
7814
7815         * realpath.c (xrealpath): normalize drive spec also so that dir
7816         sep chars are not mixed on cygwin.
7817
7818 2002-08-06  Jerry James  <james@xemacs.org>
7819
7820         * window.c (Fsplit_window): Count only half of the divider width
7821         against the left window when splitting horizontally. 
7822
7823 2002-06-24  Andy Piper  <andy@xemacs.org>
7824
7825         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7826         toolbar was cleared.
7827
7828         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7829         function. Split out from mswindows_output_frame_toolbars.
7830         (mswindows_output_frame_toolbars): move clear pieces to
7831         mswindows_output_frame_toolbars.
7832
7833         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7834         out from gtk_output_frame_toolbars.
7835         (gtk_output_frame_toolbars): move clear pieces to
7836         gtk_clear_frame_toolbars.
7837
7838         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7839         the frame is cleared. How this ever worked before is a mystery.
7840         (x_output_frame_toolbars): Only output toolbars.
7841         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7842
7843         * gutter.c (update_gutter_geometry):
7844         Mark frame layout changed.
7845         (update_frame_gutter_geometry, update_frame_gutters):
7846         Respect frame_layout_changed.
7847
7848         * console.h (struct console_methods): add
7849         clear_frame_toolbars_method.
7850
7851         * redisplay.c (redisplay_frame): call
7852         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7853
7854         * toolbar.h: declare update_frame_toolbars_geometry.
7855
7856         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7857         out from update_frame_toolbars.  Call clear_frame_toolbars.
7858         (update_frame_toolbars): only output, do not change geometry.
7859
7860         * redisplay.c: add frame_layout_changed.
7861
7862         * redisplay.h: add frame_layout_changed.
7863         (CLASS_RESET_CHANGED_FLAGS): set it.
7864         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7865         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7866         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7867
7868         * device.h (struct device): add frame_layout_changed.
7869         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7870
7871         * frame.h (struct frame): add frame_layout_changed.
7872         (MARK_FRAME_LAYOUT_CHANGED): new.
7873
7874 2002-06-30  Mike Alexander  <mta@arbortext.com>
7875
7876         * event-msw.c (mswindows_need_event): Don't wait for a new message
7877         if the queue is not empty.  Suggested by Paul Moore.
7878
7879 2002-06-12  Andy Piper  <andy@xemacs.org>
7880
7881         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7882         for printing on accurately.
7883
7884 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7885
7886         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7887         WM_ACTIVATE message. Make sure that the frame is visible if the
7888         window is visible. This seemss to fix the problem where XEmacs
7889         appears to freeze after switching desktops with certain virtual
7890         window managers.
7891         (debug_output_mswin_message): Added code to output message
7892         parameters for WM_WINDOWPOSCHANGED, 
7893         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7894
7895 2002-05-25  Andy Piper  <andy@xemacs.org>
7896
7897         * select-x.c (vars_of_select_x): Fix docstring of
7898         x-selection-strict-motif-ownership
7899
7900 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7901
7902         * keymap.c (get_keymap):
7903         Add comment about do_autoload GCPROs own args.
7904
7905 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7906
7907         * bytecode.c (execute_optimized_program): check_opcode ifdef
7908         ERROR_CHECK_BYTE_CODE.
7909
7910 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7911
7912         Thanks to Ben Wing and Michael Sperber.
7913
7914         * eval.c (Fcommand_execute):
7915         (Feval):
7916         (Ffuncall):
7917         (Fmacroexpand_internal):
7918         (function_argcount):
7919         callint.c (Fcall_interactively):
7920         Add comment about do_autoload GCPROs own args.
7921
7922         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7923
7924         * eval.c (Ffuncall): Extra braces to placate GCC.
7925
7926 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7927
7928         * backtrace.h (grow_specpdl):
7929         (SPECPDL_RESERVE):
7930         * EmacsFrame.c (EmacsFrameSetValues):
7931         * eval.c (grow_specpdl):
7932         * ExternalShell.c (hack_event_masks_1):
7933         * glyphs-x.c (convert_EImage_to_XImage): 
7934         (x_finalize_image_instance):
7935         * ralloc.c (page_size):
7936         (r_alloc_sbrk):
7937         * xgccache.c (gc_cache_hash):
7938         Fix unsigned comparison warnings.
7939
7940 2002-07-29  Jerry James  <james@xemacs.org>
7941
7942         * lread.c (locate_file): Any nonnegative return value indicates
7943         success if MODE is nonnegative.
7944
7945 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7946
7947         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7948         argument. 
7949
7950 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7951
7952         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7953
7954         * dumper.c (pdump_get_indirect_count):
7955         (pdump_scan_by_alignment):
7956         (pdump_dump_root_struct_ptrs):
7957         (pdump_dump_rtables):
7958         (pdump_dump_root_objects):
7959         (pdump):
7960         * nas.c (WaveOpenDataForReading):
7961         * fns.c (print_bit_vector):
7962         * font-lock.c (SINGLE_SYNTAX_STYLE):
7963         * glyphs.c (check_for_ignored_expose):
7964         (find_matching_subwindow):
7965         * glyphs-eimage.c:
7966         * imgproc.c (get_histogram):
7967         * redisplay.c (point_in_line_start_cache):
7968         * redisplay-output.c (redisplay_unmap_subwindows):
7969         * symbols.c (defsymbol_massage_name_1):
7970         (defkeyword_massage_name):
7971         (deferror_massage_name_and_message):
7972         * redisplay-x.c (x_output_string): 
7973         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7974         * frame.h (struct frame):
7975         * filelock.c (current_lock_owner):
7976         * doprnt.c (emacs_doprnt_1):
7977         * lisp.h (struct Lisp_Bit_Vector):
7978         (DO_REALLOC):
7979         Fix warnings.
7980
7981 2002-02-13  Ben Wing  <ben@xemacs.org>
7982
7983         * event-stream.c (reset_key_echo):
7984         * event-stream.c (reset_this_command_keys):
7985         * event-stream.c (execute_command_event):
7986         If console is dead as a result of C-x 5 0, then post-command stuff
7987         needs to be careful and do only non-console-specific stuff.
7988
7989 2002-07-01  Mike Sperber <mike@xemacs.org>
7990
7991         * process-unix.c (unix_send_process): Mark coding_outstream as
7992         non-open upon SIGPIPE.
7993
7994         * event-stream.c (Fnext_event): Reorder switch cases to something
7995         that makes sense.
7996
7997 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7998
7999         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
8000         Don't bogusly reinitialize ascii_character property.
8001
8002 2002-07-08  Mike Sperber <mike@xemacs.org>
8003
8004         * process.c (Fstart_process_internal): Do error checking before we
8005         fork off the child, so the child can't muck with the state of the
8006         parent.
8007
8008 2002-07-08  Mike Sperber <mike@xemacs.org>
8009
8010         * ralloc.c (init_ralloc): Allocate properly for pdump.
8011
8012 2002-06-12  Andy Piper  <andy@xemacs.org>
8013
8014         * glyphs.c (query_string_geometry): check the string.
8015
8016         * glyphs-widget.c (widget_logical_unit_height): cope with nil
8017         widget names.
8018
8019 2002-06-17  Jerry James  <james@xemacs.org>
8020
8021         * sysdll.c: Remove RTLD_GLOBAL initialization.
8022         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
8023
8024 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
8025
8026         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
8027
8028 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
8029
8030         * sysdep.c (sys_rename): Make sys_rename work for the case where
8031         Windows rename sets errno to EACCES if target file exists.
8032
8033 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
8034
8035         * device-msw.c (mswindows_handle_page_setup_dialog_box):
8036         Fix detection of metric units to work on Win95
8037
8038 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
8039
8040         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
8041
8042 2002-04-25  Andy Piper  <andy@xemacs.org>
8043
8044         * redisplay.c (create_text_block): Remove extra comment trailer.
8045
8046 2002-04-24  Andy Piper  <andy@xemacs.org>
8047
8048         * redisplay.c (create_text_block): Don't actually add propagation
8049         data if the line ends after we have added a glyph.
8050
8051 2002-04-22  Andy Piper  <andy@xemacs.org>
8052
8053         * extents.c (extent_fragment_update): check for glyphs we have
8054         previously displayed.
8055         * extents.c (print_extent_1): warning removal.
8056         * extents.h: change prototype.
8057         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
8058         widths correctly for wide glyphs.
8059         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
8060         * redisplay.c (prop_type): add PROP_GLYPH.
8061         * redisplay.c (struct prop_block): add glyph type
8062         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
8063         to the propagation data.
8064         * redisplay.c (create_text_block): if there is a glyph in the
8065         propagation data use it to salt extent_fragment_update.
8066         * redisplay.c (create_string_text_block): ditto.
8067
8068 2002-04-13  Nix  <nix@esperi.demon.co.uk>
8069
8070         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
8071         * redisplay-output.c (compare_runes): Compare them.
8072         * redisplay.c: Update copyright date.
8073         * redisplay.c (pos_data): Add need_baseline_computation field.
8074         * redisplay.c (add_glyph_rune): Update ascent, descent, and
8075         need_baseline_computation; zero yoffset. Set max_pixmap_height
8076         for all pixmaps, not just automatically positioned ones.
8077         * redisplay.c (calculate_yoffset): New, compute yoffset values.
8078         * redisplay.c (calculate_baseline): New, compute textual baseline.
8079         * redisplay.c (add_glyph_rune): Call them.
8080         * redisplay.c (create_text_block): Likewise.
8081         * redisplay.c (create_overlay_glyph_block): Likewise.
8082         * redisplay.c (add_margin_runes): Likewise.
8083         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
8084
8085         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
8086         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
8087         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
8088         * redisplay-msw.c (mswindows_output_string): Likewise.
8089         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
8090         * redisplay-gtk.c (gtk_output_display_block): Likewise.
8091         * redisplay-x.c (x_output_display_block): Likewise.
8092
8093 2002-03-28  Ben Wing  <ben@xemacs.org>
8094
8095         * redisplay.c: Fixed bug in redisplay
8096         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
8097         and down of the lines, since they're bigger than the line
8098         size. (It was seen most obviously when there's a horizontal scroll
8099         bar, e.g. do C-h a glyph or something like that.) The problem was
8100         that the glyph-contrib-p setting on glyphs was ignored even if it
8101         was set properly, which it wasn't until now.
8102
8103 2002-04-24  Andy Piper  <andy@xemacs.org>
8104
8105         * lisp.h (Dynarr_end): Fix definition.
8106
8107 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
8108
8109         * redisplay.c (mark_redisplay): Remove call to
8110         update_frame_window_mirror.
8111
8112 2001-11-15  Andy Piper  <andy@xemacs.org>
8113
8114         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
8115         cygwin (again).
8116
8117 2002-02-13  Andy Piper  <andy@xemacs.org>
8118
8119         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
8120         we did in fact enqueue the XM_MAPFRAME event.
8121
8122 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
8123
8124         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
8125         to fix problem switching between virtual desktops under virtuawin
8126         virtual window manager.
8127
8128 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
8129
8130         * event-msw.c: Typo fix.
8131         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
8132         magic XM_MAPFRAME event has been sent.
8133
8134 2001-11-23  Andy Piper  <andy@xemacs.org>
8135
8136         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
8137
8138 2001-11-21  Andy Piper  <andy@xemacs.org>
8139
8140         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
8141         mouse events outside the frame.
8142
8143 2002-03-20  Andy Piper  <andy@xemacs.org>
8144
8145         * menubar-msw.c (mswindows_popup_menu): warning removal.
8146         * dialog-msw.c (dialog_popped_down): ditto.
8147
8148 2001-12-11  Andy Piper  <andy@xemacs.org>
8149
8150         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
8151         * dialog-msw.c (mswindows_make_dialog_box_internal): set
8152         popup_up_p.
8153         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
8154         * menubar-msw.c (mswindows_handle_wm_command): ditto.
8155         * menubar-msw.c (mswindows_popup_menu): ditto.
8156
8157 2001-10-29  Andy Piper  <andy@xemacs.org>
8158
8159         * dialog-msw.c (handle_directory_dialog_box): quit if the user
8160         cancels.
8161
8162 2002-01-03  Andy Piper  <andy@xemacs.org>
8163
8164         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
8165         letters.
8166         (xrealpath): ditto.
8167
8168 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
8169
8170         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
8171         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
8172         * device-msw.c (mswindows_handle_page_setup_dialog_box):
8173         Detect and handle case where machine is set up for metric units
8174
8175 2002-04-02  Andy Piper  <andy@xemacs.org>
8176
8177         * dired-msw.c (mswindows_get_files): 
8178         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
8179         completely handled by XEmacs. Suggested by Thomas Vogler
8180         <mail@thomas-vogler.de>.
8181
8182 2001-11-14  Andy Piper  <andy@xemacs.org>
8183
8184         * nt.c (REG_ROOT): change registry key to XEmacs.
8185
8186 2002-04-27  Andy Piper  <andy@xemacs.org>
8187
8188         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
8189
8190 2002-04-26  Andy Piper  <andy@xemacs.org>
8191
8192         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
8193         behavior.
8194
8195 2002-03-14  Mike Alexander  <mta@arbortext.com>
8196
8197         * event-msw.c (mswindows_unwait_process): New, remove process from
8198         wait list
8199         * process-nt.c (nt_finalize_process_data): Call
8200         mswindows_unwait_process
8201         * console-msw.h: Declare mswindows_unwait_process
8202
8203 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
8204
8205         * editfns.c (Fdecode_time):
8206         (Fformat_time_string):
8207         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
8208         (make_time): Warning elimination (change arg name).
8209
8210 2001-11-24  Andy Piper  <andy@xemacs.org>
8211
8212         * window.c (Fsplit_window): Doc return type.
8213
8214 2002-04-01  Andy Piper  <andy@xemacs.org>
8215
8216         * emacs.c (Fkill_emacs): Only output message box in interactive
8217         mode.
8218
8219 2002-04-26  Andy Piper  <andy@xemacs.org>
8220  
8221         * config.h.in: pull in 21.5.x change to stop alloca warnings under
8222         cygwin.
8223
8224 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
8225
8226         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
8227         bit platform.
8228
8229 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
8230
8231         * XEmacs 21.4.8 "Honest Recruiter" is released.
8232
8233 2002-05-07  Nix  <nix@esperi.demon.co.uk>
8234
8235         Supersedes 2002-04-17 patch.
8236
8237         * process.h (PROCESS_LIVE_P): Use the process status as
8238         evidence of health, not the state of the input stream.
8239         (PROCESS_READABLE_P): Say if the process is readable
8240         from. (It may be dead nonetheless.)
8241         (CHECK_READABLE_PROCESS): Test for that condition.
8242
8243         * process.c (create_process): Use PROCESS_READABLE_P.
8244         (read_process_output, set_process_filter): Likewise.
8245
8246         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
8247         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
8248
8249         This code is #if 0'd, this is not the time to add new functions:
8250
8251         * process.c (Fprocess_readable_p): Report readability status.
8252         * process.c (Qprocess_readable_p): New, associated symbol...
8253         * process.c (syms_of_process): ... initialize it.
8254
8255 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
8256
8257         * XEmacs 21.4.7 "Economic Science" is released.
8258
8259 2002-04-17  Nix  <nix@esperi.demon.co.uk>
8260
8261         * process.h (PROCESS_LIVE_P): Use the process status as
8262         evidence of health, not the state of the input stream.
8263
8264 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
8265
8266         * sysdep.c (sys_siglist): change "signum" to "signal"
8267
8268 2001-04-21  Martin Buchholz  <martin@xemacs.org>
8269
8270         * s/darwin.h: New file.
8271         Thanks to Greg Parker <gparker@cs.stanford.edu>.
8272         
8273 2002-04-23  Andreas Jaeger  <aj@suse.de>
8274
8275         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
8276         which use lib64 for 64-bit libs.
8277         (START_FILES): Likewise.
8278
8279 2002-02-11  Mike Sperber  <mike@xemacs.org>
8280
8281         * device-x.c: 
8282         (x_IO_error_handler):
8283         (x_init_device): Temporarily keep device in static variable
8284         `device_being_initialized' so we can recover gracefully from
8285         internal XOpenDevice failure.  (XOpenDevice is documented to
8286         return NULL on failure, but sometimes calls the IO error handler
8287         instead.)
8288
8289 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
8290
8291         * dired.c (Ffile_name_all_completions): Change documentation --
8292         remove reference to completion-ignored-extensions.
8293         * dired.c (vars_of_dired): Change documentation for
8294         completion-ignored-extensions -- remove reference to
8295         file-name-all-completions.
8296
8297 2002-03-06  Jerry James  <james@xemacs.org>
8298
8299         * emodules.c (emodules_load): Fix multiple loading of same module.
8300
8301 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
8302         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
8303         RTLD_LAZY to avoid incorrect symbol binding when using nested
8304         shared libraries on Solaris.
8305
8306 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
8307
8308         * fileio.c (Ffind_file_name_handler): Improve docstring.
8309
8310 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
8311
8312         * fns.c (Fmapconcat): Improve docstring.
8313
8314 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
8315
8316         * device-gtk.c: Add prototype for
8317         emacs_gtk_selection_clear_event_handle.
8318         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
8319         selection.  Setup signal handler for "selection_clear_event"
8320         (emacs_gtk_selection_clear_event_handle).
8321
8322         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
8323         other applications owning the clipboard (based on
8324         x_handle_selection_clear).
8325
8326 2001-12-23  William M. Perry  <wmperry@gnu.org>
8327
8328         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
8329         
8330 2002-01-04  Martin Buchholz  <martin@xemacs.org>
8331
8332         * keymap.c (define_key_alternate_name): Parenthesize EQ.
8333
8334 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
8335
8336         * XEmacs 21.4.6 "Common Lisp" is released.
8337
8338 2001-12-16  Torsten Duwe  <duwe@caldera.de>
8339
8340         * search.c (Freplace_match): Add missing sub-expression functionality.
8341
8342         * buffer.c (decode_buffer): Add a check for pointer type to
8343         decode_buffer, before gcc's CSE optimization reorders a
8344         dereference in front of the allow_string test.
8345
8346 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
8347
8348         * window.c (window_loop): Fix bug that sometimes prevented
8349         window_loop() from iterating across multiple devices.  Also, at
8350         Ben's request, changed infloop-detecting code to abort() instead
8351         of silently terminating window_loop().
8352
8353 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
8354
8355         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
8356         * editfns.c (make_time): New function.
8357         (Fencode_time): Use it instead of wasteful_word_to_lisp.
8358         * lisp.h (make_time): Prototype and comment it.
8359         * dired.c (wasteful_word_to_lisp): Deprecate.
8360         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8361
8362 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
8363
8364         * fileio.c (auto_save_1): Use current coding system, not
8365         escape-quoted.
8366
8367 2001-11-13  Ben Wing  <ben@xemacs.org>
8368
8369         * window.c:
8370         * window.c (window_truncation_on):
8371         * window.c (syms_of_window):
8372         truncate-partial-width-windows should respect the buffer being
8373         displayed, like other redisplay vars.
8374
8375 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8376
8377         * event-stream.c (Fread_key_sequence): save current buffer.
8378
8379 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8380
8381         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8382
8383 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8384
8385         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8386
8387 2001-10-26  Mike Alexander  <mta@arbortext.com>
8388
8389         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8390
8391 2001-10-25  Andy Piper  <andy@xemacs.org>
8392
8393         * ChangeLog:
8394         * dialog-msw.c (handle_directory_proc): new function.
8395          (handle_directory_dialog_box): new fucntion.
8396          (handle_file_dialog_box): use new directory dialog support.
8397          (mswindows_make_dialog_box_internal): ditto.
8398         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8399         handling.
8400         (mswindows_find_frame): make global.
8401         * fileio.c (Fexpand_file_name): build fix.
8402         * general-slots.h: add Qdirectory.
8403         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8404         handling.
8405         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8406         cygwin not leaving win32 paths unchanged.
8407         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8408         cygwin runtime to do path conversion.
8409         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8410         (syms_of_win32): add new function.
8411         * window.c (window_loop): build fix.
8412
8413 2001-10-15  Andy Piper  <andy@xemacs.org>
8414
8415         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8416
8417 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8418
8419         * XEmacs 21.4.5 "Civil Service" is released.
8420
8421 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8422
8423         * glyphs-x.c: Force buffer-tab highlight update when moving the
8424         buffer, avoiding an ugly black border, used for keyboard focus
8425         indication, on a widget that can never have keyboard focus, the
8426         buffer tab.
8427
8428 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8429
8430         * process-unix.c (unix_open_multicast_group): Remove too much
8431         conversion between host and network byte order.
8432
8433 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8434
8435         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8436         before replacing them.
8437
8438         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8439         operation.
8440
8441         * src/window.c (undedicate_windows): Use it.
8442         * src/window.h: Add prototype.
8443
8444 2001-09-17  Ben Wing  <ben@xemacs.org>
8445
8446         * fileio.c (normalize_filename):
8447         * fileio.c (Fexpand_file_name):
8448         Fix various C++ compile errors in Andy's recent code.
8449         
8450         * callint.c (Fcall_interactively):
8451         * editfns.c (Ftemp_directory):
8452         * editfns.c (Fuser_full_name):
8453         * emacs.c (argmatch):
8454         * lread.c (locate_file_map_suffixes):
8455         * redisplay-x.c (x_ring_bell):
8456         Fix sign-compare warnings.
8457         
8458 2001-09-08  Andy Piper  <andy@xemacs.org>
8459
8460         * fileio.c (normalize_filename): copied from nt.c
8461         * (Ffile_name_directory): enable win32 paths under cygwin.
8462         * (Ffile_name_nondirectory): ditto.
8463         * (directory_file_name): ditto.
8464         * (Fexpand_file_name): ditto.
8465         * (Ffile_truename): ditto.
8466         * (Fsubstitute_in_file_name): ditto.
8467         * (Ffile_name_absolute_p): ditto.
8468         * (Ffile_readable_p): ditto.
8469
8470 2001-09-08  Andy Piper  <andy@xemacs.org>
8471
8472         * device-msw.c (mswindows_finish_init_device): remove dde
8473         initialization.
8474         * device-msw.c (mswindows_init_dde): factor out from
8475         mswindows_finish_init_device()
8476         * device-msw.c (init_mswindows_very_early): new function
8477         initialize but don't enable dde.
8478         * emacs.c (main_1): call init_mswindows_very_early.
8479         * event-msw.c:
8480         * event-msw.c (mswindows_dde_callback): only execute when we are
8481         ready.
8482         * symsinit.h: declare init_mswindows_very_early.
8483
8484 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8485
8486         [sjt: This has been in 21.5 for months with no complaints.]
8487
8488         * console.h (struct console_methods): Added flags member.
8489         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8490         (CONMETH_IMPL_FLAG):
8491         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8492         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8493
8494         * device.c (window_system_pixelated_geometry): Use the above macros.
8495
8496         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8497         implememntation flag.
8498         * device.h (DEVICE_DISPLAY_P): Use it.
8499
8500         * frame.c (delete_frame_internal): Use the above macro.
8501
8502         * redisplay.c (redisplay_device): Use it.
8503         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8504         (redisplay_frame): Ditto.
8505
8506         * device-msw.c (mswindows_device_implementation_flags): Removed.
8507         (msprinter_device_implementation_flags): Removed.
8508         (console_type_create_device_mswindows): Removed references to
8509         implementation_flags methods, set implementation flags here.
8510         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8511
8512         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8513         (console_type_create_device_gtk): Removed method declaration.
8514         Added commented out statement which semantically matches the
8515         commented out statement in the above removed method.
8516
8517 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8518
8519         The attached patch fixes a few warnings. 
8520
8521         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8522         * src/frame-gtk.c: guard against GNOME calls in GTK only
8523         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8524         * src/select-gtk.c: prototype lisp_to_time
8525
8526 2001-06-08  Ben Wing  <ben@xemacs.org>
8527
8528         ------ gc-in-window-procedure fixes ------
8529         
8530         * alloc.c:
8531         * alloc.c (struct post_gc_action):
8532         * alloc.c (register_post_gc_action):
8533         * alloc.c (run_post_gc_actions):
8534         * alloc.c (garbage_collect_1):
8535         Create "post-gc actions", to avoid those dreaded "GC during window
8536         procedure" problems.
8537
8538         * event-msw.c:
8539         Abort, clean and simple, when GC in window procedure.  We want
8540         to flush these puppies out.
8541
8542         * glyphs-msw.c:
8543         * glyphs-msw.c (finalize_destroy_window):
8544         * glyphs-msw.c (mswindows_finalize_image_instance):
8545         Use a post-gc action when destroying subwindows.
8546
8547         * lisp.h:
8548         Declare register_post_gc_action().
8549
8550         * scrollbar-msw.c:
8551         * scrollbar-msw.c (unshow_that_mofo):
8552         Use a post-gc action when unshowing scrollbar windows, if in gc.
8553
8554         * redisplay.c (mark_redisplay):
8555         Add comment about the utter evilness of what's going down here.
8556
8557         ------ cygwin setitimer fixes ------
8558         
8559         * Makefile.in.in (sheap_objs):
8560         * Makefile.in.in (profile_objs):
8561         * Makefile.in.in (objs):
8562         Compile profile.c only when HAVE_SETITIMER.
8563         
8564         * nt.c (mswindows_sigset):
8565         * nt.c (mswindows_sighold):
8566         * nt.c (mswindows_sigrelse):
8567         * nt.c (mswindows_sigpause):
8568         * nt.c (mswindows_raise):
8569         * nt.c (close_file_data):
8570         Style fixes.
8571         
8572         * nt.c:
8573         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8574         
8575         * profile.c:
8576         * profile.c (Fstart_profiling):
8577         * profile.c (Fstop_profiling):
8578         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8579         instead of just plain setitimer().
8580         
8581         * signal.c:
8582         * signal.c (set_one_shot_timer):
8583         * signal.c (alarm):
8584         Define qxe_setitimer() as an encapsulation around setitimer() --
8585         call setitimer() directly unless Cygwin or MS Win, in which case
8586         we use our simulated version in win32.c.
8587         
8588         * systime.h:
8589         * systime.h (struct itimerval):
8590         * systime.h (ITIMER_REAL):
8591         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8592         comment about "qxe" and the policy regarding encapsulation.
8593
8594         * win32.c:
8595         * win32.c (setitimer_helper_proc):
8596         * win32.c (setitimer_helper_period):
8597         * win32.c (setitimer_helper):
8598         * win32.c (mswindows_setitimer):
8599         Move setitimer() emulation here, so Cygwin can use it.
8600         Rename a couple of functions and variables to be longer and more
8601         descriptive.  In setitimer_helper_proc(), send the signal
8602         using either mswindows_raise() or (on Cygwin) kill().  If for
8603         some reason we are still getting lockups, we'll change the kill()
8604         to directly invoke the signal handlers.
8605
8606         ------ windows shell fixes ------
8607         
8608         * callproc.c:
8609         * ntproc.c:
8610         Comments about how these two files must die.
8611
8612         * callproc.c (init_callproc):
8613         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8614         not just COMSPEC. (more correct and closer to FSF.) Don't
8615         force a value for SHELL into the environment. (Comments added
8616         to explain why not.)
8617         
8618         * nt.c (init_user_info):
8619         Don't shove a fabricated SHELL into the environment.  See above.
8620
8621 2001-06-01  Ben Wing  <ben@xemacs.org>
8622
8623         * Makefile.in.in (ldflags):
8624         eliminate that pesky "defaulting to 00401000" warning.
8625         * nt.h:
8626         eliminate warnings.
8627
8628 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8629
8630         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8631         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8632
8633 2001-04-24  Jerry James <james@xemacs.org>
8634
8635         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8636         correct order.
8637
8638 2001-06-01  Ben Wing  <ben@xemacs.org>
8639
8640         * event-msw.c (debug_mswin_messages):
8641         conditionalize the messages that were causing compile errors.
8642         (if only macros could generate #ifdef statements ...)
8643
8644 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8645
8646         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8647
8648 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8649
8650         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8651
8652 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8653
8654         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8655         * process-unix.c (unix_canonicalize_host_name):
8656         sysdep.c (init_system_name):
8657         Use it to conditionally support IPv6 canonicalization.
8658
8659 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8660
8661         * event-msw.c:
8662         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8663
8664 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8665
8666         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8667         attempt is made to scroll when no scroll bar is available.
8668
8669 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8670
8671         * input-method-motif.c (XIM_delete_frame): New callback.
8672         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8673         got deleted from 21.4.3.)
8674
8675 2001-06-01  Ben Wing  <ben@xemacs.org>
8676
8677         * nt.c (mswindows_utime):
8678         * nt.c (close_file_data):
8679         fix off-by-one-indirection error.
8680
8681 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8682
8683         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8684         because set_file_times() now takes Lisp_Object path, instead of
8685         char*.
8686         * nt.c: Include buffer.h.
8687         * nt.c (convert_from_time_t): New.
8688         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8689         not set mtime correctly.
8690         * nt.h: Declare mswindows_utime().
8691         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8692         path, instead of char*.
8693         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8694
8695 2001-05-30  Ben Wing  <ben@xemacs.org>
8696
8697         For 21.4:
8698
8699         (Stephen, just take all event-msw.c patches.  This includes
8700         the "iconify" fix below.)
8701
8702         * event-msw.c:
8703         * event-msw.c (mswindows_dequeue_dispatch_event):
8704         * event-msw.c (assert):
8705         * event-msw.c (emacs_mswindows_quit_p):
8706         * event-msw.c (debug_mswin_messages):
8707         * event-msw.c (debug_output_mswin_message):
8708         * event-msw.c (vars_of_event_mswindows):
8709         Fix yet more problems with C-g handling.
8710         Implement debug-mswindows-events.
8711         
8712 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8713
8714         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8715         
8716 2001-05-23  Ben Wing  <ben@xemacs.org>
8717
8718         * event-msw.c (winsock_writer):
8719         * event-msw.c (winsock_closer):
8720         prior kludgy code was clobbering the buffer, thinking it was
8721         "unused" space to store an unneeded return value; instead, use
8722         the variable we've already got staring us in the face.
8723
8724 2001-05-17  Andy Piper  <andy@xemacs.org>
8725
8726         * sysfile.h: don't assume that file attributes are boolean
8727
8728 2001-05-23  Ben Wing  <ben@xemacs.org>
8729
8730         * device-msw.c (msprinter_init_device):
8731         signal an error rather than crash with an unavailable network
8732         printer (from Mike Alexander).
8733         
8734         * event-msw.c:
8735         * event-msw.c (struct winsock_stream):
8736         * event-msw.c (winsock_writer):
8737         * event-msw.c (winsock_closer):
8738         * event-msw.c (make_winsock_stream_1):
8739         cleanup headers.  fix (hopefully) an error with data corruption
8740         when sending to a network connection.
8741
8742         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8743         to handle the ~user prefix by (a) always assuming we're referencing
8744         ourselves and not even verifying the user -- hence any file with
8745         a tilde as its first char is invalid! (b) if there wasn't a slash
8746         following the filename, the pointer was set *past* the end of
8747         file and we started reading from uninitialized memory.  Now we
8748         simply treat these as files, always.
8749
8750         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8751         
8752 2001-05-19  Ben Wing  <ben@xemacs.org>
8753
8754         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8755
8756         * process-nt.c:
8757         * process-nt.c (vars_of_process_nt):
8758         remove unused mswindows-quote-process-args.  rec for 21.4.
8759         
8760 2001-05-12  Ben Wing  <ben@xemacs.org>
8761
8762         * event-msw.c (mswindows_dde_callback):
8763         * event-msw.c (mswindows_wnd_proc):
8764         eliminate cygwin warnings.
8765
8766 2001-05-06  Ben Wing  <ben@xemacs.org>
8767
8768         * console-msw.h:
8769         * device-msw.c:
8770         * device-msw.c (print_dialog_worker):
8771         * device-msw.c (mswindows_handle_print_dialog_box):
8772         * device-msw.c (syms_of_device_mswindows):
8773         * dialog-msw.c (mswindows_make_dialog_box_internal):
8774         * general-slots.h:
8775         implement printing the selection when it's selected.
8776
8777 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8778
8779         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8780
8781 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8782
8783         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8784         EMACS_INT is signed.
8785
8786 2001-04-15  Michael Lausch  <mla@1012surf.net>
8787
8788         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8789         gtk_widget_request_size() to give scrollbar >0 width for
8790         GTK >1.2.8.
8791
8792 2001-05-30  William M. Perry  <wmperry@gnu.org>
8793
8794         * event-gtk.c: Check for buttons as modifier keys.
8795
8796 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8797
8798         * s\mingw32.h:
8799         Properly find MinGW's <process.h> inside Cygwin's restructured
8800         include directories.  Don't try to include <cygwin/version.h>
8801         since we are dropping support for MinGW in versions of Cygwin
8802         earlier than b21.
8803         * nt.c:
8804         Drop support for MinGW in versions of Cygwin before b21.
8805         * sysdep.c:
8806         Properly find MinGW's <process.h> inside Cygwin's restructured
8807         include directories.
8808         * syswindows.h:
8809         Drop support for MinGW in versions of Cygwin before b21.
8810         * unexcw.c:
8811         Even though a.out.h is no longer detected by configure, allow
8812         MinGW to use it until we figure out how to do the job with Win32.
8813
8814 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8815
8816         * syntax.c (find_start_of_comment):
8817         Fix `unbalanced parentheses' bug when dealing with mixed comment
8818         styles in c++/java/etc. mode
8819
8820 2001-05-29  Mike Alexander  <mta@arbortext.com>
8821
8822         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8823         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8824
8825 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8826
8827         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8828
8829 2001-03-31  Mike Sperber <mike@xemacs.org>
8830
8831         * search.c (Freplace_match): Support FSF-style specification of
8832         match subexpression when applied to a buffer.
8833
8834 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8835
8836         * event-stream.c (is_scrollbar_event): add missing semicolon
8837
8838 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8839
8840         * Makefile.in.in: Use TAR macro instead of hardcoding
8841           tar.  Allows use of GNU tar instead of system tar
8842
8843 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8844
8845         * event-stream.c (is_scrollbar_event): add missing semicolon
8846
8847 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8848
8849         * XEmacs 21.4.3 "Academic Rigor" is released.
8850
8851 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8852
8853         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8854
8855 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8856
8857         * buffer.c (Vcase_fold_search): Remove obsolete
8858           comment about non ASCII case-fold-search.  This
8859           bug has been fixed by case-table changes.
8860
8861 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8862
8863         * event-msw.c: Restore include of events-mod.h.
8864
8865 2001-04-22   zhaoway  <zw@debian.org>
8866
8867         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8868         !HAVE_SCROLLBARS.
8869
8870 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8871
8872         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8873
8874 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8875
8876         * mule-charset.c (Fmake_charset): Add missing else.
8877
8878 2001-04-23  Ben Wing  <ben@xemacs.org>
8879
8880         * event-msw.c (FAKE_MOD_QUIT):
8881         * event-msw.c (mswindows_dequeue_dispatch_event):
8882         * event-msw.c (mswindows_wnd_proc):
8883         * event-msw.c (emacs_mswindows_quit_p):
8884         Get critical quit working.
8885
8886 2001-05-05  Ben Wing  <ben@xemacs.org>
8887
8888         * console-msw.h:
8889         * device-msw.c:
8890         * device-msw.c (mswindows_get_default_margin):
8891         * frame-msw.c (mswindows_size_frame_internal):
8892         * frame-msw.c (msprinter_init_frame_1):
8893         * frame-msw.c (vars_of_frame_mswindows):
8894         Change top/bottom margin defaults to 0.5 inches.
8895
8896 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8897
8898         Fix link error with gcc 3.0 on Linux.
8899         * terminfo.c (UP): Remove.
8900         * terminfo.c (BC): Remove.
8901         * terminfo.c (PC): Remove.
8902         They weren't used, and in any case, these symbols should be
8903         defined in the *library*.
8904
8905 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8906
8907         * s/aix4.h: Fix crash with xlc -O3.
8908         Improve comment explaining how -O3 works.
8909
8910 2001-04-15  Ben Wing  <ben@xemacs.org>
8911
8912         * event-stream.c:
8913         * event-stream.c (Fnext_event):
8914         * event-stream.c (is_scrollbar_event):
8915         * event-stream.c (execute_command_event):
8916         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8917         crash' problem.  His fix introduces other problems.  We filter
8918         out scrollbar events specifically, making them somewhat invisible
8919         to command-building, and not appearing in `this-command-keys'.
8920         More work is still needed (see comments in event-stream.c), but
8921         this fixes all the major problems.
8922
8923 2001-04-20  Ben Wing  <ben@xemacs.org>
8924
8925         * .cvsignore: Added stuff for Windows.
8926
8927 2001-04-28  Ben Wing  <ben@xemacs.org>
8928
8929         * buffer.c (Ferase_buffer):
8930         * editfns.c (buffer_insert1):
8931         * editfns.c (Finsert_before_markers):
8932         * editfns.c (Finsert_string):
8933         * editfns.c (Finsert_char):
8934         * editfns.c (Fdelete_region):
8935         * editfns.c (Fwiden):
8936         * editfns.c (Fnarrow_to_region):
8937         remove bogus lines setting zmacs_region_stays to 0.
8938         
8939 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8940
8941         * process-unix.c (unix_open_network_stream): If connect() fails
8942         invalidate file descriptor after closing it.
8943
8944 2001-03-08  Mike Alexander  <mta@arbortext.com>
8945
8946         * event-msw.c (mswindows_need_event_in_modal_loop):
8947         Don't dispatch a message if we didn't get one.
8948         (mswindows_need_event):
8949         Terminate the correct process when one exits instead of the first
8950         one on Vprocess_list and look for process termination when in
8951         mswindows_protect_modal_loop.
8952
8953 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8954
8955         * XEmacs 21.4.1 "Copyleft" is released.
8956
8957 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8958
8959         * input-method-motif.c (XIM_delete_frame): New callback.
8960         (XIM_init_frame): Register it.
8961
8962 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8963
8964         * XEmacs 21.4.0 "Solid Vapor" is released.
8965
8966 2001-04-15  Ben Wing  <ben@xemacs.org>
8967
8968         * cmdloop.c (call_command_loop):
8969         Fix braino in bit-rotting code.
8970         
8971 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8972
8973         * extents.c (Fset_extent_endpoints): Force creation of extent info
8974         in buffer_or_string.
8975
8976         * extents.c (process_extents_for_insertion_mapper): Correctly
8977         check for open-open zero-length extents.
8978
8979 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8980
8981         * lisp.h: New typedefs Memory_count, Element_count.
8982         * regex.c:
8983         * regex.h:
8984         Sign-compare warning elimination: several unsigned -> signed.
8985         Based on work by Ben Wing <ben@xemacs.org>.
8986
8987 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8988
8989         * XEmacs 21.2.47 "Zephir" is released.
8990
8991 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8992
8993         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8994
8995 2001-04-03  Mike Sperber <mike@xemacs.org>
8996
8997         * search.c: Revert previous patch due because of release.
8998
8999 2001-03-30  Ben Wing  <ben@xemacs.org>
9000
9001         * s\cygwin32.h:
9002         Add missing killpg prototype.
9003
9004         * elhash.c:
9005         Add a comment about fixing problems when a new entry is added
9006         while mapping.
9007
9008         * frame-msw.c (mswindows_init_frame_1):
9009         Fix compile warnings.
9010
9011         * menubar.c (vars_of_menubar):
9012         Provide `menu-accelerator-support' to indicate that we properly
9013         support %_ in menu specifications, so that package code can
9014         conditionalize on this (and remove %_ from menu specifications
9015         on older versions).
9016
9017         * event-msw.c:
9018         * scrollbar-msw.c:
9019         * scrollbar-msw.c (can_scroll):
9020         * scrollbar-msw.h:
9021         Fix handling of mouse wheel under Windows to follow standards --
9022         now scrolls window under pointer, not selected window.
9023
9024 2001-03-31  Mike Sperber <mike@xemacs.org>
9025
9026         * search.c (Freplace_match): Support FSF-style specification of
9027         match subexpression when applied to a buffer.
9028
9029 2001-03-15  Martin Buchholz  <martin@xemacs.org>
9030
9031         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
9032         function to modify KEYMAP, so map over a copy of the hash table.
9033
9034 2001-03-21  Martin Buchholz <martin@xemacs.org>
9035
9036         * XEmacs 21.2.46 "Urania" is released.
9037
9038 2001-03-20  Dan Holmsand  <dan@eyebee.com>
9039
9040         * realpath.c (xrealpath): Make file-truename work with symlinks to
9041         /cygdrive paths on cygwin. Always lowercase drive-letters on
9042         native windows.
9043         (cygwin_readlink): Don't try to find canonical filename unless
9044         file exists.
9045
9046 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
9047
9048         * ChangeLog: Log GTK merge.
9049
9050         * dumper.c:
9051         * select-x.c:
9052         * specifier.c:
9053         * symeval.h:
9054         Revert gratuitous whitespace changes from GTK merge.
9055
9056         * emacs.c: Document end of complex #ifdef @ l. 1495.
9057
9058
9059 2001-03-12  Andy Piper  <andy@xemacs.org>
9060
9061         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
9062         have to do likewise.
9063
9064 2001-03-12  Andy Piper  <andy@xemacs.org>
9065
9066         * sysdep.c: we only support mingw now.
9067
9068 2001-03-09  Andy Piper  <andy@xemacs.org>
9069
9070         * unexcw.c (copy_executable_and_dump_data_section): making approx
9071         overrun a warning only.
9072
9073 2001-03-10  William M. Perry  <wmperry@aventail.com>
9074
9075         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
9076         satisfy Stephen's identical-after-cpp plea.
9077
9078 2001-03-02  Ben Wing  <ben@xemacs.org>
9079
9080         * cmds.c:
9081         * cmds.c (Fforward_char):
9082         * syntax.c:
9083         * window.c:
9084
9085         Augment documentation of the most common motion commands to make
9086         note of the shifted-motion support.
9087         
9088 2001-03-02  Ben Wing  <ben@xemacs.org>
9089
9090         * nt.c (mswindows_fstat):
9091         * nt.c (mswindows_stat):
9092         * search.c (boyer_moore):
9093         Fix compile warnings under Windows.
9094         
9095         * sysdep.c (sys_readdir):
9096         Fix buggy filename-conversion code under Mule.
9097
9098 2001-03-09  William M. Perry  <wmperry@aventail.com>
9099
9100         * Makefile.in.in:
9101         * config.h.in:
9102         * console.c:
9103         * console.h:
9104         * device.c:
9105         * device.h:
9106         * dragdrop.c:
9107         * emacs.c:
9108         * event-stream.c:
9109         * events.c:
9110         * events.h:
9111         * faces.c:
9112         * frame.h:
9113         * general-slots.h:
9114         * glyphs.c:
9115         * gutter.c:
9116         * inline.c:
9117         * lisp.h:
9118         * lrecord.h:
9119         * make-src-depend:
9120         * redisplay-output.c:
9121         * redisplay.c:
9122         * symsinit.h:
9123         * sysfile.h:
9124         * toolbar.c:
9125         * window.c:
9126         The Great GTK Merge.
9127
9128         * ChangeLog.GTK:
9129         * console-gtk.c:
9130         * console-gtk.h:
9131         * device-gtk.c:
9132         * emacs-marshals.c:
9133         * emacs-widget-accessors.c:
9134         * event-gtk.c:
9135         * frame-gtk.c:
9136         * gccache-gtk.c:
9137         * gccache-gtk.h:
9138         * glade.c:
9139         * glyphs-gtk.c:
9140         * glyphs-gtk.h:
9141         * gtk-glue.c:
9142         * gtk-xemacs.c:
9143         * gtk-xemacs.h:
9144         * gui-gtk.c:
9145         * gui-gtk.h:
9146         * menubar-gtk.c:
9147         * native-gtk-toolbar.c:
9148         * objects-gtk.c:
9149         * objects-gtk.h:
9150         * redisplay-gtk.c:
9151         * scrollbar-gtk.c:
9152         * scrollbar-gtk.h:
9153         * select-gtk.c:
9154         * toolbar-gtk.c:
9155         * ui-byhand.c:
9156         * ui-gtk.c:
9157         * ui-gtk.h:
9158         The Great GTK Merge: new files.
9159
9160 2001-02-26  Ben Wing  <ben@xemacs.org>
9161
9162         Reapplied Lstream change.
9163
9164 2001-02-26  Ben Wing  <ben@xemacs.org>
9165
9166         Undid the last change, since it is more controversial than I
9167         thought.  It should be back in at some point soon.
9168         
9169 2001-02-25  Ben Wing  <ben@xemacs.org>
9170
9171         * buffer.c:
9172         * callproc.c (Fold_call_process_internal):
9173         * event-msw.c (ntpipe_slurp_reader):
9174         * event-msw.c (ntpipe_shove_writer):
9175         * event-msw.c (winsock_reader):
9176         * event-msw.c (winsock_writer):
9177         * file-coding.c:
9178         * file-coding.c (detect_eol_type):
9179         * file-coding.c (detect_coding_type):
9180         * file-coding.c (determine_real_coding_system):
9181         * file-coding.c (Fdetect_coding_region):
9182         * file-coding.c (decoding_reader):
9183         * file-coding.c (decoding_writer):
9184         * file-coding.c (mule_decode):
9185         * file-coding.c (Fdecode_coding_region):
9186         * file-coding.c (encoding_reader):
9187         * file-coding.c (encoding_writer):
9188         * file-coding.c (mule_encode):
9189         * file-coding.c (Fencode_coding_region):
9190         * file-coding.c (detect_coding_sjis):
9191         * file-coding.c (decode_coding_sjis):
9192         * file-coding.c (encode_coding_sjis):
9193         * file-coding.c (detect_coding_big5):
9194         * file-coding.c (decode_coding_big5):
9195         * file-coding.c (encode_coding_big5):
9196         * file-coding.c (detect_coding_ucs4):
9197         * file-coding.c (decode_coding_ucs4):
9198         * file-coding.c (encode_coding_ucs4):
9199         * file-coding.c (detect_coding_utf8):
9200         * file-coding.c (decode_coding_utf8):
9201         * file-coding.c (encode_coding_utf8):
9202         * file-coding.c (detect_coding_iso2022):
9203         * file-coding.c (decode_coding_iso2022):
9204         * file-coding.c (encode_coding_iso2022):
9205         * file-coding.c (decode_coding_no_conversion):
9206         * file-coding.c (encode_coding_no_conversion):
9207         * glyphs-x.c (write_lisp_string_to_temp_file):
9208         * gpmevent.c (tty_get_foreign_selection):
9209         * lisp.h:
9210         * lstream.c:
9211         * lstream.c (Lstream_flush_out):
9212         * lstream.c (Lstream_adding):
9213         * lstream.c (Lstream_write_1):
9214         * lstream.c (Lstream_write):
9215         * lstream.c (Lstream_raw_read):
9216         * lstream.c (Lstream_read_more):
9217         * lstream.c (Lstream_read):
9218         * lstream.c (Lstream_unread):
9219         * lstream.c (Lstream_fputc):
9220         * lstream.c (stdio_reader):
9221         * lstream.c (stdio_writer):
9222         * lstream.c (filedesc_reader):
9223         * lstream.c (filedesc_writer):
9224         * lstream.c (lisp_string_reader):
9225         * lstream.c (struct fixed_buffer_stream):
9226         * lstream.c (make_fixed_buffer_input_stream):
9227         * lstream.c (make_fixed_buffer_output_stream):
9228         * lstream.c (fixed_buffer_reader):
9229         * lstream.c (fixed_buffer_writer):
9230         * lstream.c (struct resizing_buffer_stream):
9231         * lstream.c (resizing_buffer_writer):
9232         * lstream.c (dynarr_writer):
9233         * lstream.c (lisp_buffer_reader):
9234         * lstream.c (lisp_buffer_writer):
9235         * lstream.h:
9236         * lstream.h (lstream_implementation):
9237         * lstream.h (struct lstream):
9238         * md5.c (Fmd5):
9239         * process-nt.c (nt_send_process):
9240         * process-unix.c (unix_send_process):
9241         
9242         Correct Lstream lossage due to mixing of signed and unsigned
9243         quantities.  All Lstream uses of size_t and ssize_t are now a
9244         single signed data type Lstream_data_count.  This fixes problems
9245         under Windows with sending large quantities of data to a process,
9246         and may well fix other subtle bugs.
9247
9248 2001-02-23  Martin Buchholz <martin@xemacs.org>
9249
9250         * XEmacs 21.2.45 "Thelxepeia" is released.
9251
9252 2001-02-21  Martin Buchholz  <martin@xemacs.org>
9253
9254         * lisp-union.h (XSETINT): 
9255         (XSETCHAR):
9256         (XSETOBJ): 
9257         Reverse previous change of 2001-02-06.
9258
9259 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
9260
9261         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
9262         buffers.
9263         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9264         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
9265         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
9266         * regex.c (POS_AS_IN_BUFFER): removed
9267         * regex.c (re_search_2):
9268         * regex.c (re_match_2):
9269         Don't use an offset of 1 when calculating buffer positions, since
9270         `BI_BUF_BEGV' does it already.
9271
9272 2001-02-18  Wim Dumon  <wim@easics.be>
9273
9274         * insdel.c (prepare_to_modify_buffer): Also check for
9275         supersession when clash-detection is enabled. 
9276
9277 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
9278
9279         * regex.c (re_match_2_internal):
9280         Convert temp characters from 'const unsigned char' to 're_char'.
9281         Fix crashing bug with extended characters under mule.
9282         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
9283         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
9284         font-lock, pdump, and new syntax-table code.
9285         * syntax.c (find_start_of_comment):
9286         (find_end_of_comment):
9287         (forward-comment):
9288         Fix crashing bugs involving moving beyond end of buffer.
9289         * syntax.c (find_start_of_comment):
9290         Fixed logic to allow proper detection of cases where the same
9291         character is used to end both a two-char comment start and a
9292         two-char comment end sequence. Fixes `(forward-comment -1)'.
9293         * syntax.c (find_start_of_comment):
9294         Return position just past last comment-end character for all cases
9295         (previously was only done for two-char comment-end sequences).
9296         * syntax.c (forward-comment):
9297         Take value returned from `find_end_of_comment', rather than
9298         incrementing it.
9299         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9300         Properly deal with BUFFERP (syntax_cache.object)
9301
9302 2001-02-17  Martin Buchholz  <martin@xemacs.org>
9303
9304         * alloc.c (Fgarbage_collect): 
9305         * alloc.c (make_bit_vector_from_byte_vector):
9306         -Wsign-compare-correctness.
9307
9308 2001-02-16  Martin Buchholz  <martin@xemacs.org>
9309
9310         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
9311         (XSETCHAR): Likewise.
9312         (XSETOBJ): Likewise.
9313
9314 2001-02-15  Martin Buchholz  <martin@xemacs.org>
9315
9316         * mule-canna.c (canna-func-delete_previous): 
9317         Rename to canna-func-delete-previous.
9318
9319 2001-02-14  Martin Buchholz  <martin@xemacs.org>
9320
9321         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
9322
9323 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
9324
9325         * font-lock.c (find_context): Fix C++ compile errors introduced by
9326         recent patch
9327
9328 2001-02-13  Martin Buchholz  <martin@xemacs.org>
9329
9330         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
9331         pragma, but earlier ones barf on the same pragma.
9332
9333 2001-02-06  Mike Sperber <mike@xemacs.org>
9334
9335         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
9336         `configure-mule-lisp-directory'.
9337
9338 2001-02-12  Martin Buchholz  <martin@xemacs.org>
9339
9340         Make sure dump-id.c is compiled in the same way as other .c's.
9341         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
9342         * dump-id.h: Remove.
9343         * emacs.c: Move dump-id.h into dumper.h.
9344         * dumper.h: Move dump-id.h into dumper.h.
9345         * Makefile.in.in:
9346         Use standard .c.o rule for building dump-id.o.
9347         Remove preprocessor flags from link command.
9348         Add dump-id.o to ${otherobjs} if PDUMP.
9349
9350 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
9351
9352         Port FSF 20.7 syntax table improvements.
9353         * syntax.c.
9354         * syntax.h.
9355
9356         Fixups for new syntax table stuff.
9357         * dired.c: Include syntax.c.
9358         (Fdirectory_files): Initialize regex_match_object and
9359         regex_emacs_buffer.
9360         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9361         and Fget_char_property.
9362
9363         Use ported FSF 20.7 syntax table improvements.
9364         * font-lock.c.
9365         * regex.c.
9366         * search.c.
9367         
9368 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9369
9370         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9371         Unixware's enum boolean from sys/types.h.
9372
9373 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9374
9375         Fix support for building with latest Purify.
9376         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9377         (PURIFY_FLAGS): Likewise.
9378
9379 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9380
9381         * fileio.c (lisp_string_set_file_times): New.
9382         * fileio.c (Fcopy_file): Use it.
9383         Fixes bug:
9384         (copy-file filename non-ascii-filename t t)
9385         ==> No such file or directory, non-ascii-filename
9386
9387 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9388
9389         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9390         USHRT_MAX seems clearer than ~0 anyways.
9391
9392 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9393
9394         dumper improvements.  Inspired by Olivier.
9395         * dumper.c (pdump_max_align): New.
9396         * dumper.c (pdump_add_entry): Use pdump_max_align.
9397         * dumper.c (pdump_get_entry_list): Likewise.
9398         * dumper.c (pdump_scan_by_alignment): Likewise.
9399         Don't iterate through unnecessary alignments.
9400         * dumper.c (pdump_file_get): No need to align result of malloc().
9401         * dumper.c (pdump_mallocadr): Remove.  
9402         The result of malloc() is guaranteed to be maximally aligned.
9403         * dumper.c: s/elmt/elt/g;
9404         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9405         * dumper.c (pdump_alert_undump_object): Likewise.
9406         * dumper.c (pdump_align_table): 
9407         Don't support alignments > 64.
9408         Store ALIGNOF's, not shift counts, in table.
9409
9410 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9411
9412         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9413         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9414         * systime.h: Use HAVE_UTIME.
9415         * sysdep.c (struct utimbuf): Remove.
9416         * sysdep.c (set_file_times): Prefer utime() to utimes().
9417         * config.h.in (HAVE_UTIME): New.
9418         * config.h.in (HAVE_UTIME_H): Remove.
9419         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9420
9421 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9422
9423         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9424
9425 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9426
9427         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9428
9429 2001-02-08  Martin Buchholz <martin@xemacs.org>
9430
9431         * XEmacs 21.2.44 "Thalia" is released.
9432
9433 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9434
9435         Fixes crashes in kill-emacs on some systems.
9436         * process-unix.c (unix_kill_child_process):
9437         It's OK for kill() to fail with ESRCH.
9438
9439 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9440
9441         Contortions to make .gdbinit tricks work on most systems.
9442         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9443         * alloc.c (dbg_valmask): Make non-const.
9444         * alloc.c (dbg_typemask): Make non-const.
9445         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9446         * alloc.c (dbg_valbits): Make non-const.
9447         * alloc.c (dbg_gctypebits): Make non-const.
9448         * .gdbinit (decode_object): Make it work with AIX cc.
9449
9450 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9451
9452         * elhash.c (make_general_lisp_hash_table):
9453         Use simpler and more efficient calloc to clear entries.
9454
9455 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9456
9457         * window.c (window_scroll): Work around an AIX C compiler bug.
9458         Fixes 'scroll-up' does nothing problem with xlC.
9459
9460 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9461
9462         * .gdbinit: Remove obsolete comment.
9463
9464 2001-01-31  Mike Alexander  <mta@arbortext.com>
9465
9466         * select.c (Fown_selection_internal): Set owned_p for device
9467         method correctly.
9468
9469 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9470
9471         Port to g++ 2.97.
9472         "not" cannot be used as a macro name as it is an operator in C++
9473         * config.h.in: Stop #defining `not'.
9474         * chartab.c (check_category_char): not ==> not_p
9475         * chartab.h: Likewise.
9476         * regex.c (re_match_2_internal): Likewise.
9477
9478 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9479
9480         * lisp-disunion.h: Fix up comments.
9481
9482 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9483
9484         * keymap.c (define_key_check_and_coerce_keysym):
9485         (syms_of_keymap):
9486         Support mouse-6 and mouse-7 bindings in the obvious way.
9487
9488 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9489
9490         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9491
9492 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9493
9494         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9495         Previous patch missed DEFVAR_INT_MAGIC.
9496         Make sure future DEFVAR_foo use correct types.
9497         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9498         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9499         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9500         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9501         * (DEFVAR_INT): Likewise.
9502         * redisplay.c (vertical_clip): Should be of type Fixnum.
9503         * redisplay.c (horizontal_clip): Likewise.
9504         * lisp.h (dump_add_opaque_int): New.
9505         (dump_add_opaque_fixnum): New.
9506
9507 2001-01-29  Andy Piper  <andy@xemacs.org>
9508
9509         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9510         since they can be eval'ed
9511
9512 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9513
9514         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9515         Oops, XEmacs redefines `class'.  Use `typename' instead.
9516
9517 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9518
9519         * dumper.c: Fix C++ compile errors.
9520
9521 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9522
9523         * tparam.c: Use correct prototypes.
9524
9525 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9526
9527         * sysproc.h: #include util.h for NetBSD's openpty.
9528
9529 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9530
9531         More 64-bit correctness.
9532         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9533         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9534         Fix up comments.
9535         This finally finishes the 64-bit SGI port.
9536         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9537         * symbols.c: Fix up comments and type casts.
9538         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9539         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9540         * symeval.h (Fixnum): New type.
9541         * symeval.h (symbol_value_type): Fix up comment.
9542
9543         * commands.h:
9544         * nt.c:
9545         * emacs.c:
9546         * data.c:
9547         * redisplay.c:
9548         * abbrev.c:
9549         * dired-msw.c:
9550         * event-Xt.c:
9551         * eldap.c:
9552         * window.c:
9553         * sound.c:
9554         * event-stream.c:
9555         * eval.c:
9556         * buffer.c:
9557         * mule-canna.c: A million DEFVAR_INTs here...
9558         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9559         * extents.c:
9560         * cmdloop.c:
9561         * lisp.h:
9562         * select-x.c:
9563         * console-x.h:
9564         * event-msw.c:
9565         * mule-wnnfns.c:
9566         * hpplay.c:
9567         * ralloc.c:
9568         * alloc.c:
9569         * keymap.c:
9570         * profile.c:
9571         s/int/Fixnum/g in DEFVAR_INT declarations.
9572
9573 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9574
9575         Port pdump to SGI alignment-sensitive environment.
9576         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9577         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9578         properly aligned.
9579         Define and use aligned reading and writing macros.
9580         Use buffered stdio instead of posix i/o for faster dumping.
9581         Eliminate kludgy 256 byte space for header.
9582         Read and write from dump file using structs for alignment safety.
9583         * dumper.c (pdump_align_stream): New.
9584         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9585         * dumper.c (PDUMP_READ_ALIGNED): New.
9586         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9587         * dumper.c (pdump_static_Lisp_Object): New struct.
9588         * dumper.c (pdump_static_pointer): New struct.
9589         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9590         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9591         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9592         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9593
9594         * dumper.c (pdump_backtrace):
9595         * dumper.c (pdump_get_indirect_count):
9596         * dumper.c (pdump_register_object):
9597         * dumper.c (pdump_register_struct):
9598         * dumper.c (pdump_reloc_one):
9599         * dumper.c (pdump_scan_by_alignment):
9600         * dumper.c (pdump_dump_from_root_struct_ptrs):
9601         * dumper.c (pdump_dump_opaques):
9602         * dumper.c (pdump_dump_rtables):
9603         * dumper.c (pdump_dump_from_root_objects):
9604         * dumper.c (pdump):
9605         * dumper.c (pdump_load_finish):
9606         Use aligned reading and writing.
9607
9608         * dumper.c (pdump_free): Make static.
9609         * dumper.c (pdump_hFile): Likewise.
9610         * dumper.c (pdump_hMap): Likewise.
9611
9612 2001-01-26  Martin Buchholz <martin@xemacs.org>
9613
9614         * XEmacs 21.2.43 "Terspichore" is released.
9615
9616 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9617
9618         Type fiddling for window_config.saved_windows_count
9619         * window.c (struct window_config): 
9620         Make saved_windows_count member unsigned.
9621         * window.c (sizeof_window_config_for_n_windows): 
9622         Make parameter unsigned.
9623         * window.c (mark_window_config):
9624         * window.c (window_config_equal):
9625         * window.c (free_window_configuration):
9626         * window.c (Fset_window_configuration):
9627         * window.c (count_windows):
9628         * window.c (Fcurrent_window_configuration):
9629         * window.c (reinit_vars_of_window):
9630         Update all callers and users.
9631
9632 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9633
9634         Alignment correctness for flexible arrays.
9635         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9636         Make alignment-correct. Add interesting comments.
9637         * alloc.c (size_vector):
9638         * alloc.c (make_vector_internal):
9639         * alloc.c (make_bit_vector_internal):
9640         * alloc.c (sweep_bit_vectors_1):
9641         * fns.c (size_bit_vector):
9642         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9643         * window.c (sizeof_window_config_for_n_windows): 
9644         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9645
9646 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9647
9648         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9649
9650 2001-01-23  Andy Piper  <andy@xemacs.org>
9651
9652         * select.c (Fown_selection_internal): pass owned_p
9653
9654         * select-msw.c (mswindows_own_selection): New Signature.
9655
9656         * console.h (struct console_methods): add owned_p to
9657         _own_selection.
9658
9659         * select-x.c (x_own_selection): pass owned_p
9660         (hack_motif_clipboard_selection): use owned_p
9661         (vars_of_select_x): new variable -
9662         x_selection_strict_motif_ownership.
9663
9664 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9665
9666         * specifier.h (specifier_data_offset): Remove pointless parens.
9667         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9668
9669 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9670
9671         Make Lisp_Object sizeof methods be alignment-correct.
9672         pdump must restore objects to the same alignment as the C compiler
9673         assumes.  It really matters on SGIs.
9674         * lstream.c (aligned_sizeof_lstream): New.
9675         (sizeof_lstream): Use aligned_sizeof_lstream.
9676         (Lstream_new): Likewise.
9677         * opaque.c (aligned_sizeof_opaque): New.
9678         (sizeof_opaque): Use aligned_sizeof_opaque.
9679         (make_opaque): Likewise.
9680         * specifier.c (aligned_sizeof_specifier): New.
9681         (sizeof_specifier): Use aligned_sizeof_specifier.
9682         (make_specifier_internal): Likewise.
9683
9684 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9685
9686         * lstream.h (struct lstream): Use max_align_t for trailing data.
9687         * specifier.h (struct Lisp_Specifier): Likewise.
9688
9689 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9690
9691         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9692         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9693         (CCL_SUSPEND): Likewise.
9694         (CCL_INVALID_CMD): Likewise.
9695         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9696         (ccl_driver): Likewise.
9697         (CCL_WRITE_CHAR): Macro hygiene.
9698         (CCL_WRITE_STRING): Macro hygiene.
9699
9700 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9701
9702         Port "portable" dumper to SunOS 4 and HP-UX.
9703         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9704         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9705         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9706
9707 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9708
9709         * lisp.h (ALIGNOF): A better definition for C++.
9710
9711 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9712
9713         Macro hygiene.
9714         Fix printf warnings: int format, long int arg.
9715         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9716         (PUSH_FAILURE_POINT): Use correct printf formats.
9717         (POP_FAILURE_POINT): Use correct printf formats.  
9718         Use do {...} while (0)
9719
9720 2001-01-20  Martin Buchholz <martin@xemacs.org>
9721
9722         * XEmacs 21.2.42 "Poseidon" is released.
9723
9724 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9725
9726         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9727
9728 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9729
9730         De-kludgify FIXED_TYPE free list frobbing.
9731         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9732         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9733         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9734         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9735         * alloc.c (LRECORD_FREE_P): New.
9736         * alloc.c (MARK_LRECORD_AS_FREE): New.
9737         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9738         * alloc.c (STRUCT_FREE_P): Deleted.
9739         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9740         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9741         * alloc.c (STRING_CHARS_FREE_P): New.
9742         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9743         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9744         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9745         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9746         * alloc.c (resize_string): Use new definitions.
9747         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9748         * alloc.c (verify_string_chars_integrity): Use new definitions.
9749         * alloc.c (compact_string_chars): Use new definitions.
9750         * alloc.c: Update monster comments.
9751         * lrecord.h (lrecord_type): Add some new lrecord types for
9752         alloc.c's use.
9753
9754 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9755
9756         Improve alignment hackery.
9757         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9758         (max_align_t): Moved from opaque.h - general purpose.
9759         (ALIGN_PTR): Use size_t, not long.
9760         * opaque.h (max_align_t): Move to lisp.h.
9761
9762 2001-01-18  Norbert Koch  <nk@LF.net>
9763
9764         * gui.h: Fix and add prototypes to fix build problems.
9765
9766 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9767
9768         temacs is going away, so `dump-temacs' is now a bad name.
9769         * .dbxrc (dump-temacs): Rename to `dmp'.
9770         * .gdbinit (dump-temacs): Rename to `dmp'.
9771
9772 2001-01-17  Andy Piper  <andy@xemacs.org>
9773
9774         * glyphs.c (print_image_instance): comment to make martin happy.
9775
9776         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9777         change.
9778
9779         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9780         activation.
9781         (mswindows_tab_control_redisplay): warning suppression.
9782
9783         * glyphs-widget.c (widget_update): re-write to cope with updated
9784         items.
9785         (widget_instantiate): use new gui_item functions.
9786         (tab_control_update): deleted.
9787         (progress_gauge_update): deleted.
9788         (image_instantiator_progress_guage): take out update reference.
9789         (image_instantiator_tree_view): ditto.
9790         (image_instantiator_tab_control): ditto.
9791
9792         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9793         Right the new way.
9794         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9795         return whether anything was changed.
9796         (update_gui_item_keywords): as it sounds.
9797
9798         * gui.h: declare widget_gui_parse_item_keywords.
9799
9800         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9801         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9802
9803 2001-01-17  Martin Buchholz <martin@xemacs.org>
9804
9805         * XEmacs 21.2.41 "Polyhymnia" is released.
9806
9807 2001-01-16  Didier Verna  <didier@xemacs.org>
9808
9809         * glyphs.c (image_instantiate): don't use fallbacks when
9810         instantiating a face's background pixmap by inheritance.
9811
9812 2001-01-14  Mike Sperber <mike@xemacs.org>
9813
9814         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9815         Conditionalize accordingly.
9816
9817 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9818
9819         * dumper.c (pdump_file_get): Fix a compiler warning.
9820
9821 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9822
9823         Make Purify happy when pdumping.
9824         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9825         iniitalizing all bits of new lisp object memory.
9826         * symbols.c (Fmake_local_variable): Likewise.
9827         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9828         * symbols.c (Fdefvaralias): Likewise.
9829         * mule-charset.c (vars_of_mule_charset): Likewise.
9830
9831 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9832         Add the `-nd' flag when running pre-dump operations under the debugger.
9833         * .dbxrc (run-temacs): Add `-nd'.
9834         * .dbxrc (update-elc): Likewise.
9835         * .dbxrc (dump-temacs): Likewise.
9836         * .gdbinit (run-temacs): Likewise.
9837         * .gdbinit (check-temacs): Likewise.
9838         * .gdbinit (update-elc): Likewise.
9839         * .gdbinit (dump-temacs): Likewise.
9840
9841 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9842
9843         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9844         export OBJECT_MODE=64
9845         configure --pdump --use-union-type=no
9846         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9847         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9848
9849         * miscplay.c (sndcnv8U_2mono):
9850         Avoid two uses of `++' in the same expression.
9851         Suppresses a GCC warning.
9852
9853 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9854
9855         Make sure future compilers don't miscompile alloc.c.
9856         * alloc.c:
9857         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9858         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9859
9860 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9861
9862         * dumper.c: A little post-pdump-rename comment fixup.
9863
9864 2001-01-09  Jerry James  <james@eecs.ku.edu>
9865
9866         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9867
9868 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9869
9870         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9871         script:
9872         #!/bin/sh
9873         replace_symbol () {
9874           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9875         }
9876
9877         replace_symbol pdump_wire_lists pdump_weak_object_chains
9878         replace_symbol pdump_wire_list dump_add_weak_object_chain
9879
9880         replace_symbol pdump_wires pdump_root_objects
9881         replace_symbol pdump_wire dump_add_root_object
9882
9883         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9884         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9885
9886         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9887         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9888         replace_symbol dumpstructinfo pdump_root_struct_ptr
9889         replace_symbol dumpstruct dump_add_root_struct_ptr
9890
9891         replace_symbol dumpopaque dump_add_opaque
9892         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9893         replace_symbol dumpopaqueinfos pdump_opaques
9894         replace_symbol dumpopaqueinfo pdump_opaque
9895
9896         replace_symbol nb_structdump nb_root_struct_ptrs
9897         replace_symbol nb_opaquedump nb_opaques
9898
9899         replace_symbol align_table pdump_align_table
9900         replace_symbol dump_header pdump_header
9901
9902         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9903         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9904
9905
9906 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9907
9908         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9909         optimizing bytecount_to_charcount().
9910
9911 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9912
9913         * config.h.in:
9914         (HAVE_DLFCN_H): Removed.
9915         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9916
9917 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9918
9919         Portable dumper maintainability improvements.
9920         * alloc.c (staticpro):
9921         * alloc.c (staticpro_nodump):
9922         * alloc.c (garbage_collect_1):
9923         * alloc.c (reinit_alloc_once_early):
9924         * alloc.c (init_alloc_once_early):
9925         * alloc.c: Move dumper functions to alloc.c.
9926         * dumper.c (pdump_backtrace):
9927         * dumper.c (pdump_dump_structs):
9928         * dumper.c (pdump_dump_opaques):
9929         * dumper.c (pdump_dump_rtables):
9930         * dumper.c (pdump_dump_wired):
9931         * dumper.c (pdump):
9932         * dumper.c (pdump_load_check):
9933         * dumper.c (pdump_load_finish):
9934         * dumper.c (pdump_file_unmap):
9935         * dumper.c (pdump_file_get):
9936         * dumper.c (pdump_resource_free):
9937         * dumper.c (pdump_resource_get):
9938         * dumper.c (pdump_file_free):
9939         * dumper.c (pdump_file_try):
9940         * dumper.c (pdump_load):
9941         Remove fixed size limits on staticpro(), staticpro_nodump(),
9942         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9943         Remove custom code for dumping lrecord_implementations_table - use
9944         dumpopaque instead.
9945         Remove (most of the) custom code for dumping staticpros - dump it
9946         like any other dynarr.
9947
9948         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9949         * dumper.c: Moved functions from alloc.c.
9950         * alloc.c (dumpstruct): Moved to dumper.c.
9951         * alloc.c (dumpopaque): Likewise.
9952         * alloc.c (pdump_wire): Likewise.
9953         * alloc.c (pdump_wire_list): Likewise.
9954
9955         * lisp.h (Dynarr_sizeof): New.
9956         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9957         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9958         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9959
9960         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9961         * lisp.h (dumpopaque): ditto.
9962         * lisp.h (pdump_wire): ditto.
9963         * lisp.h (pdump_wire_list): ditto.
9964
9965 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9966
9967         * make-src-depend (PrintPatternDeps):
9968         Use `sort' to make output independent of perl version.
9969
9970 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9971
9972         Port to Netbsd 1.5.
9973         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9974         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9975
9976 2001-01-03  Didier Verna  <didier@xemacs.org>
9977
9978         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9979         that `focus_frame' is alive before thinking of calling
9980         `redisplay_redraw_cursor' on it.
9981
9982 2001-01-08  Martin Buchholz <martin@xemacs.org>
9983
9984         * XEmacs 21.2.40 is released.
9985
9986 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9987
9988         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9989
9990 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9991
9992         * alloc.c (dbg_valmask): Make const.
9993         * alloc.c (dbg_typemask): Make const.
9994         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9995         * alloc.c (dbg_valbits): Make const.
9996         * alloc.c (dbg_gctypebits): Make const.
9997
9998 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9999
10000         * redisplay-x.c (x_bevel_area):
10001         redisplay.h (struct rune):
10002         Typo fixes in comments.
10003
10004 2001-01-05  Andy Piper  <andy@xemacs.org>
10005
10006         * glyphs-x.c (x_redisplay_widget): use size changed for offset
10007         adjustment.
10008
10009         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
10010
10011 2001-01-05  Martin Buchholz  <martin@xemacs.org>
10012
10013         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
10014
10015         * mule-ccl.c (stack_idx_of_map_multiple):
10016         Non const global data must not be initialized!
10017         Found by MIYASHITA Hisashi.
10018
10019 2001-01-02  Andy Piper  <andy@xemacs.org>
10020
10021         * frame.c (change_frame_size): make sure frame size is always
10022         marked as changed.
10023
10024         * glyphs.c (image_instance_layout): minor code reuse.
10025
10026         * window.c (Fcurrent_window_configuration): revert previous
10027         change.
10028
10029 2001-01-02  Martin Buchholz  <martin@xemacs.org>
10030
10031         * glyphs.h:
10032         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
10033
10034 2000-12-31  Andy Piper  <andy@xemacs.org>
10035
10036         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
10037         when widget gets unmapped.
10038
10039         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
10040         function. Make sure widgets losing focus don't just drop it.
10041         (handle_focus_event_1): record the widget with focus.
10042
10043 2000-12-31  Andy Piper  <andy@xemacs.org>
10044
10045         * window.c (allocate_window): use
10046         make_image_instance_cache_hash_table.
10047         (make_dummy_parent): ditto.
10048         (Fset_window_configuration): ditto.
10049
10050         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
10051
10052         * glyphs.c (process_image_string_instantiator): use
10053         INSTANTIATOR_TYPE.
10054         (get_image_instantiator_governing_domain): ditto.
10055         (normalize_image_instantiator): ditto.
10056         (instantiate_image_instantiator): ditto.
10057         (make_image_instance_1): ditto.
10058         (image_instantiate): ditto. Key on glyph *and* instantiator type.
10059         (instantiator_eq_equal): new function for use with instance hash
10060         tables.
10061         (instantiator_eq_hash): ditto.
10062         (make_image_instance_cache_hash_table): create a suitable hash
10063         table for storing image instances.
10064
10065         * elhash.h (hash_table_weakness): new internal weakness type
10066         HASH_TABLE_KEY_CAR_VALUE_WEAK.
10067         declare new functions.
10068
10069         * elhash.c (finish_marking_weak_hash_tables): introduce yet
10070         another weakness type for glyphs.
10071         (make_standard_lisp_hash_table): new function split out from
10072         make_general_lisp_hash_table.
10073         (make_lisp_hash_table): call make_standard_lisp_hash_table.
10074         (hash_table_instantiate): ditto.
10075         (Fmake_hash_table): ditto.
10076
10077 2000-12-31  Martin Buchholz <martin@xemacs.org>
10078
10079         * XEmacs 21.2.39 is released.
10080
10081 2000-12-29  Andy Piper  <andy@xemacs.org>
10082
10083         * menubar.c (menubar_visible_p_changed): signal the frame changed.
10084
10085         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
10086         the frame has changed so that we pick up geometry changes such as
10087         menubar visibility.
10088
10089 2000-12-28  Andy Piper  <andy@xemacs.org>
10090
10091         * lastfile.c (my_ebss): make a char array so we can pad the
10092         bss. Fixes cygwin unexec.
10093
10094         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
10095
10096 2000-12-26  Andy Piper  <andy@xemacs.org>
10097
10098         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
10099         comments and try and be more precise about a non-/SIGIO world.
10100         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
10101         SIGIO.
10102
10103         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
10104         we don't normalize to zero width or height.
10105
10106 2000-12-24  Andy Piper  <andy@xemacs.org>
10107
10108         * Makefile.in.in (ldflags): add -mwindows when appropriate.
10109
10110 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
10111
10112         * s/sco5.h: SCO 5 has pty support.
10113
10114 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
10115
10116         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
10117         input-method-xlib.c contains whole contents of input-method-xfs.c,
10118         so we can use input-method-xlib.c's code for USE_XFONTSET
10119         using #ifdefs.
10120         * input-method-xfs.c: removed.
10121
10122 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
10123
10124         * file-coding.h (enum coding_category_type): reorder enumerators to
10125         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
10126         (now one greater than largest real coding_category_type enumerator).
10127         * file-coding.c (coding_category_symbol, coding_category_by_priority,
10128         coding_category_system, fcd_descriptihon_1, decode_coding_category,
10129         Fcoding_category_list, Fset_coding_priority_list,
10130         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
10131         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
10132
10133 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10134
10135         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
10136         * redisplay-output.c (redisplay_output_window): Clear top of window
10137         when face is changed.
10138         * redisplay-x.c (x_redraw_exposed_window): Call
10139         redisplay_clear_top_of_window.
10140         * redisplay.h: Publish redisplay_clear_top_of_window.
10141
10142 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10143
10144         * buffer.c (Fkill_buffer): Map over all devices.
10145         * window.c (window_loop): Remove UNSHOW_BUFFER code.
10146         (list_windows): New function.
10147         (list_all_windows): Ditto.
10148         (Freplace_buffer_in_windows): Use them.
10149
10150 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
10151
10152         * database.c (berkdb_subtype): Recognize new subtype `queue'.
10153         (Fopen_database): Use `db_create' instead of `db_open'.
10154         (syms_of_database): Initialize Qqueue.
10155
10156 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10157
10158         * buffer.c (common_init_complex_vars_of_buffer): Initialize
10159         buffer_local_face_property.
10160         * buffer.h (struct buffer): New member buffer_local_face_property.
10161         * window.c (Fset_window_buffer):  Mark window's face as changed
10162         when buffer has buffer local face.
10163         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
10164         * objects.c (color_after_change): Set buffer_local_face_property
10165         when locale of face specifier is buffer.
10166         * objects.c (font_after_change): Ditto.
10167         * objects.c (face_boolean_after_change): Ditto.
10168         * glyphs.c (image_after_change): Ditto.
10169
10170 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10171
10172         * nt.c (mswindows_fstat): Report file permissions, volume serial
10173         number, etc. Code adapted from FSF Emacs 20.7.
10174
10175 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10176
10177         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
10178         of stat when we don't have symbolic links, to make sure
10179         mswindows_stat is called on mswindows.
10180
10181 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
10182
10183         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
10184
10185 2000-12-12  Martin Buchholz  <martin@xemacs.org>
10186
10187         * doprnt.c (emacs_doprnt_1): More printing fixes.
10188         Make printing of numbers compatible with libc and FSF Emacs.
10189         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
10190         Use the system printf to do most of the hard work of formatting,
10191         instead of doprnt_1().
10192         Calculate memory to allocate for format string.
10193         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
10194         (doprnt_1): Cleaner code and documentation.
10195
10196 2000-12-01  Jerry James  <james@eecs.ukans.edu>
10197
10198         * Makefile.in.in: Use the loop variable to install headers.
10199
10200 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10201
10202         * window.c (Fsplit_window): Don't invalidate face cache.
10203
10204 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10205
10206         * minibuf.c (Fall_completions): Undo the previous change
10207         which removed checking elements start with space.
10208
10209 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10210
10211         * mule-canna.c: Didier suppression.
10212
10213 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10214
10215         * mule-canna.c: rename static unsigned char buf[] to key_buffer
10216         (warning suppression).  Add English comment translations.
10217
10218 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10219
10220         * unexelfsgi.c (unexec): Better test for mmap failure.
10221
10222 2000-12-05  Martin Buchholz <martin@xemacs.org>
10223
10224         * XEmacs 21.2.38 is released.
10225
10226 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10227
10228         * redisplay.c (bar-cursor): Make a user variable.
10229
10230         * symsinit.h: Add init_postgresql_from_environment.
10231
10232 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10233
10234         * regex.c: Convert to clean C.
10235
10236 2000-12-05  Dan Holmsand  <dan@eyebee.com>
10237
10238         * realpath.c:
10239         Don't #include sysfile.h. Revert to duplicating PATH_MAX
10240         initialization.
10241         (sys_readlink): renamed to system_readlink to avoid conflict with
10242         the other sys_readlink.
10243
10244 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
10245
10246         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
10247
10248 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
10249
10250         * postgresql.c (init_postgresql_from_environment): new function.
10251         (vars_of_postgresql): Move code initializing Lisp variables out and
10252         into init_postgresql_from_environment.
10253         emacs.c (main_1): Call init_postgresql_from_environment if and only
10254         if running a dumped XEmacs.
10255
10256 2000-08-31  Dan Holmsand  <dan@eyebee.com>
10257
10258         * buffer.c: Make find-file-compare-truenames default to true on
10259         windows.
10260
10261         * realpath.c (win32_abs_start):
10262         (cygwin_readlink):
10263         (win32_readlink): New functions.
10264         (xrealpath): Return really real filenames on windows.
10265
10266         * fileio.c (Ffile_truename): Make file-truename work on windows.
10267
10268 2000-11-29  Didier Verna  <didier@xemacs.org>
10269
10270         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
10271         * faces.c (update_face_cachel_data): use it.
10272         * faces.c (add_face_cachel): use it. Complete background pixmap
10273         frobbing in face cache if `update_face_cachel_data' has not done so.
10274
10275 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
10276
10277         * search.c (string_match_1): Don't set last_thing_searched
10278         when search failed.
10279
10280 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
10281
10282         * buffer.c: Include casetab.h
10283         (common_init_complex_vars_of_buffer): Use new case-table object.
10284         * buffer.h: Include casetab.h
10285         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
10286         (DOWNCASE_TABLE_OF): Ditto.
10287         * bufslots.h: Remove char-tables and add case-table.
10288         * casetab.c: Include casetab.h
10289         (CASE_TABLE_P): Removed.
10290         (mark_case_table): New function.
10291         (allocate_case_table): New function.
10292         (Fcase_table_p): Use new case-table.
10293         (case_table_char): New function.
10294         (Fget_case_table): Ditto.
10295         (Fput_case_table): Ditto.
10296         (Fput_case_table_pair): Ditto.
10297         (Fcopy_case_table): Ditto.
10298         (Fcurrent_case_table): Return case-table.
10299         (Fstandard_case_table): Return case-table.
10300         (Fset_case_table): Fix doc-string.
10301         (set_case_table): Use case-table
10302         (syms_of_casetab): DEFSUBR new functions.
10303         (complex_vars_of_casetab): Set up standard case-table.
10304         * casetab.h: New file.
10305         * editfns.c: Include casetab.h
10306         (Fcompare_buffer_substrings): Use case-table.
10307         * inline.c: Include casetab.h
10308         * lisp.h: Remove bogus extern.
10309         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
10310         * search.c: Include casetab.h
10311         (TRANSLATE_ASCII): Removed.
10312         (TRANSLATE): Unconditionally translate character.
10313         (looking_at_1): Use case-table.
10314         (string_match_1): Ditto.
10315         (fast_string_match): Ditto.
10316         (search_command): Ditto.
10317         (search_buffer): Separate boyer_moore.  Check whether
10318         boyer_moore is possible.
10319         (simple_search): New function.
10320         (boyer_moore): Separated from search_buffer. Translate char.
10321
10322 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10323
10324         * regex.c (RE_TR_ASCII): Removed.
10325         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
10326         (PATFETCH): Call PATFETCH_RAW.
10327         (PATFETCH_RAW): Fetch Emchar.
10328         (PATUNFETCH): Decrement charptr.
10329         (GET_BUFFER_SPACE): Rename b to buf_end.
10330         (BUF_PUSH): Ditto.
10331         (BUF_PUSH_2): Ditto.
10332         (BUF_PUSH_3): Ditto.
10333         (EXTEND_BUFFER): Ditto.
10334         (SET_LIST_BIT): Ditto.
10335         (regex_compile): Ditto.  Translate non ASCII char.
10336         (compile_range): Ditto.
10337         (re_search_2): Ditto.
10338         (re_match_2_internal): Compare Emchar.
10339         (bcmp_translate): Ditto.
10340
10341 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
10342
10343         * lisp.h (basic char/int typedefs):  comment improvement.
10344
10345 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
10346
10347         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
10348         unstomp inhibit_site_lisp.  Improve comments.
10349
10350 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
10351
10352         * mule-charset.c (Fcharset_property):  improve type checking, comments.
10353
10354 2000-11-28  Andy Piper  <andy@xemacs.org>
10355
10356         * redisplay-output.c (redisplay_output_subwindow): make sure we do
10357         clipped display for windows in the gutter also.
10358         (redisplay_display_boxes_in_window_p): change semantics of return
10359         codes to be more intuitive.
10360
10361         * gutter.h: declare display_boxes_in_gutter_p.
10362
10363         * gutter.c (display_boxes_in_gutter_p): new function for
10364         redisplay.
10365
10366 2000-11-22  Andy Piper  <andy@xemacs.org>
10367
10368         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10369         autodetect domain.
10370
10371 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10372
10373         * callproc.c (Fold_call_process_internal):
10374         * gpm.c (Freceive_gpm_event):
10375         (tty_get_foreign_selection): Might be just warning supression.
10376         * fileio.c (Fwrite_region_internal):
10377         (Fset_visited_file_modtime):
10378         * keymap.c (event_matches_key_specifier_p):
10379         Initialize GCPROed variable.
10380
10381         * menubar-x.c (command_builder_find_menu_accelerator):
10382         Initialize before use.
10383
10384 2000-11-23  Andy Piper  <andy@xemacs.org>
10385
10386         * unexcw.c (unexec): make the resulting executable executable.
10387
10388 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10389
10390         * doc.c (get_doc_string):
10391         Use size_t, not int, for result of XSTRING_LENGTH.
10392
10393         * cmds.c (Fdelete_char):
10394         * cmds.c (Fpoint_at_eol):
10395         * cmds.c (Fself_insert_command):
10396         Use EMACS_INT, not int, for result of XINT.
10397         Someday, someone will want to insert more than 2**31 identical characters.
10398
10399         * cmds.c (Fdelete_char):
10400         * cmds.c (Fdelete_backward_char):
10401         * syntax.c (Fforward_word):
10402         * syntax.c (Fforward_comment):
10403         Make COUNT argument optional, for consistency with forward-char et al.
10404
10405 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10406
10407         * lisp.h:
10408         * print.c (long_to_string):
10409         Return a useful value: the pointer at end of data written.
10410
10411         * doprnt.c:
10412         Use `static const char * const' for constant strings.
10413         (union printf_arg): Delete `i', `ui' members.
10414         (get_doprnt_args):
10415         (emacs_doprnt_1):
10416         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10417         Do all printf-ing via the `l' specifier.
10418         Use EMACS_INT instead of int.
10419         Optimize.
10420
10421 2000-11-20  Didier Verna  <didier@xemacs.org>
10422
10423         * faces.c (update_face_cachel_data): don't frob the background
10424         pixmap when the window is being created. The face is needed but
10425         does not exist yet.
10426
10427 2000-11-20  Andy Piper  <andy@xemacs.org>
10428
10429         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10430         messing with a debug environment.
10431
10432 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10433
10434         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10435
10436 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10437
10438         * casetab.c (Fcase_table_p): Fix compile error and crash.
10439
10440 2000-11-18  Philip Aston  <philipa@mail.com>
10441
10442         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10443
10444 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10445
10446         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10447         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10448
10449 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10450
10451         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10452         * unexelf.c: Use HAVE_ELF_H.
10453         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10454         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10455         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10456         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10457         for testing.
10458         So this is an unexelfsgi.c from a different line of development.
10459
10460 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10461
10462         * regex.c (RE_TR_ASCII): New function.
10463         (RE_TRANSLATE): Call it.
10464
10465 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10466
10467         * buffer.h (TRT_TABLE_OF): Remove assert.
10468         (IN_TRT_TABLE_DOMAIN): Removed.
10469
10470 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10471
10472         * free-hook.c (log_gcpro):
10473         (show_gcprohist): Add support for GCPRO5.
10474
10475 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10476
10477         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10478
10479 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10480
10481         * symeval.h: Declare flush_all_buffer_local_cache.
10482
10483         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10484         (flush_buffer_local_cache): Added.
10485         (flush_all_buffer_local_cache): Added.
10486
10487         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10488
10489         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10490         (pdump_dump_data): Ditto.
10491         (pdump_reloc_one): Ditto.
10492         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10493         before dumping.
10494
10495
10496 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10497
10498         * buffer.c: Remove if 0'ed entry.
10499         * buffer.h: Rewrite TRT to use char-table.
10500         * bufslots.h: Remove mirror tables.
10501         * casetab.c: Remove mirror tables.
10502         (CASE_TABLE_P): New macro.
10503         (Fcase_table_p): Element of a case table is string or char-table.
10504         (make_mirror_trt_table): Removed.
10505         (set_case_table): Setup char-table from strings for backward
10506         compatibility.
10507         * dired.c (Fdirectory_files):
10508         * dired-msw.c: (mswindows_get_files):
10509         * lisp.h: Change prototype of re_pattern_buffer.
10510         * regex.c: (RE_TRANSLATE): New macro.
10511         (TRANSLATE_P): Ditto.
10512         Change translate to type RE_TRANSLATE_TYPE.
10513         * regex.h: Define RE_TRANSLATE_TYPE
10514         * search.c (TRANSLATE): New macro.
10515         (TRANSLATE_ASCII): New macro.
10516         Translate table is changed to Lisp_Object.
10517         (signal_failure): Inhibit return.
10518
10519 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10520
10521         * device-msw.c:
10522         * eldap.c:
10523         * event-Xt.c:
10524         * event-stream.c:
10525         * print.c:
10526         Do UNGCPRO before return.
10527
10528 2000-11-14  Martin Buchholz <martin@xemacs.org>
10529
10530         * XEmacs 21.2.37 is released.
10531
10532 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10533
10534         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10535         Add comments about discarded return value.
10536
10537 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10538
10539         * callint.c:
10540         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10541
10542 2000-10-27  Andy Piper  <andy@xemacs.org>
10543
10544         * gutter.c (Fset_default_gutter_position): default left and right
10545         gutters to visible.
10546         (calculate_gutter_size): calculate resonable heuristic for left
10547         and right gutter sizes.
10548         (specifier_vars_of_gutter): change left and right gutter sizes to
10549         autodetect.
10550         (calculate_gutter_size_from_display_lines): new function.
10551         (output_gutter): check for resizing on left and right gutters.
10552         (clear_gutter): don't special case top and left gutters.
10553         (specifier_vars_of_gutter): use new signature for
10554         set_specifier_caching.
10555
10556         * glyphs-x.c (x_redisplay_widget): spelling fix.
10557         * glyphs.c (specifier_vars_of_glyphs):
10558         * menubar.c (specifier_vars_of_menubar):
10559         * redisplay.c (specifier_vars_of_redisplay):
10560         * toolbar.c (specifier_vars_of_toolbar):
10561         * window.c (specifier_vars_of_window):
10562         * scrollbar.c (specifier_vars_of_scrollbar):
10563         (complex_vars_of_scrollbar): use new signature for
10564         set_specifier_caching.
10565
10566         * specifier.c (set_specifier_caching): include recompute flag.
10567         (recompute_one_cached_specifier_in_window): always recompute if
10568         flag set.
10569         (recompute_one_cached_specifier_in_frame): ditto.
10570
10571         * specifier.h (struct specifier_caching): add recompute flag.
10572
10573 2000-10-24  Andy Piper  <andy@xemacs.org>
10574
10575         * unexcw.c (copy_executable_and_dump_data_section): add new
10576         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10577         5.0 happy.
10578
10579 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10580
10581         * console-x.h (x_device): New member modifier_release_time.
10582         * event-Xt.c (x_handle_sticky_modifiers):
10583         Bound interval modifier keys are sticky.
10584         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10585         * events.h: extern it.
10586
10587 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10588
10589         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10590
10591 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10592
10593         * event-stream.c (execute_command_event): Preserve current_events
10594         and the like when event is misc-user-event.
10595         Inhibit quit during the call to maybe_echo_keys.
10596
10597 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10598
10599         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10600         symlink when buffer is killed.
10601         (inhibit_clash_detection): New variable.
10602
10603 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10604
10605         * console.c (Fset_input_method): Trigger redisplay on tty.
10606
10607 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10608
10609         * process.c (Fprocess_status): Revert to previous behavior:
10610         (process-status "nosuchprocess") ==> nil
10611
10612 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10613
10614         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10615         Work around another GCC 2.95.2 optimizer bug.
10616
10617 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10618
10619         * process.c (Fget_process): Use LIST_LOOP_2.
10620         (kill_buffer_processes): Use LIST_LOOP_2.
10621
10622         * minibuf.c (Fall_completions):
10623         Delete old non-functional code for FSF fourth argument.
10624
10625         * frame.c (frame_matches_frame_spec):
10626         Renamed from `frame_matches_frametype'.  Update all callers.
10627         (device_matches_device_spec):
10628         Renamed from 'device_matches_console_spec'.  Update all callers.
10629
10630         * doc.c (Fsubstitute_command_keys):
10631         Remove buffer overflow crash.  Small code cleanups.
10632
10633         * casetab.c (check_case_table): Simpler code.
10634
10635         * window.c (Freplace_buffer_in_windows):
10636         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10637         (and similar implementation) as Fdelete_windows_on.
10638         Update all callers.
10639
10640         * alloc.c (Fmake_list):
10641         * alloc.c (make_vector):
10642         * alloc.c (Fmake_vector):
10643         * alloc.c (make_bit_vector):
10644         * alloc.c (Fmake_bit_vector):
10645         * alloc.c (Fbit_vector):
10646         * alloc.c (Fmake_string):
10647         * alloc.c (Fpurecopy):
10648         * alloc.c (Fmemory_limit):
10649         * buffer.c:
10650         * buffer.c (Fget_buffer):
10651         * buffer.c (Fkill_buffer):
10652         * buffer.c (complex_vars_of_buffer):
10653         * bytecode.c (Fcompiled_function_stack_depth):
10654         * callint.c (Fprefix_numeric_value):
10655         * event-stream.c:
10656         * event-stream.c (Fread_key_sequence):
10657         * casetab.c:
10658         * casetab.c (Fcase_table_p):
10659         * casetab.c (check_case_table):
10660         * casetab.c (Fset_case_table):
10661         * casetab.c (Fset_standard_case_table):
10662         * chartab.c:
10663         * chartab.c (Fchar_table_type):
10664         * chartab.c (Freset_char_table):
10665         * chartab.c (Fget_char_table):
10666         * chartab.c (Fget_range_char_table):
10667         * chartab.c (Fput_char_table):
10668         * chartab.c (Fmap_char_table):
10669         * chartab.c (Fcategory_table_p):
10670         * chartab.c (Fcheck_category_at):
10671         * chartab.c (Fchar_in_category_p):
10672         * chartab.c (Fcategory_table):
10673         * chartab.c (Fcopy_category_table):
10674         * chartab.c (Fset_category_table):
10675         * chartab.c (Fcategory_designator_p):
10676         * chartab.c (Fcategory_table_value_p):
10677         * cmds.c (Fdelete_char):
10678         * cmds.c (Fdelete_backward_char):
10679         * cmds.c (Fself_insert_command):
10680         * cmds.c (Fself_insert_internal):
10681         * console.c (Fvalid_console_type_p):
10682         * console.c (Fcdfw_console):
10683         * console.c (Fconsole_type):
10684         * console.c (Fconsole_name):
10685         * console.c (Fconsole_device_list):
10686         * console.c (Fconsole_on_window_system_p):
10687         * data.c:
10688         * data.c (Feq):
10689         * data.c (Fold_eq):
10690         * data.c (Fsubr_interactive):
10691         * data.c (Fchar_to_int):
10692         * data.c (Fint_to_char):
10693         * data.c (Fsetcar):
10694         * data.c (Fsetcdr):
10695         * data.c (Fnumber_to_string):
10696         * data.c (Fstring_to_number):
10697         * data.c (Frem):
10698         * database.c (mark_database):
10699         * database.c (finalize_database):
10700         * database.c (Fdatabase_live_p):
10701         * database.c (Fdatabasep):
10702         * device-x.c (Fx_get_resource):
10703         * device.c (Fdfw_device):
10704         * dired.c:
10705         * dired.c (Ffile_name_completion):
10706         * dired.c (Ffile_name_all_completions):
10707         * dired.c (Fuser_name_completion):
10708         * dired.c (Fuser_name_completion_1):
10709         * dired.c (Fuser_name_all_completions):
10710         * doc.c (Fdocumentation):
10711         * doc.c (Fdocumentation_property):
10712         * doc.c (Fsubstitute_command_keys):
10713         * editfns.c:
10714         * editfns.c (Fchar_to_string):
10715         * editfns.c (Fstring_to_char):
10716         * editfns.c (Ftemp_directory):
10717         * editfns.c (Finsert_char):
10718         * editfns.c (Fbuffer_substring_no_properties):
10719         * editfns.c (Fnarrow_to_region):
10720         * editfns.c (Fchar_equal):
10721         * editfns.c (Fchar_Equal):
10722         * editfns.c (Ftranspose_regions):
10723         * emacs.c (Fdump_emacs):
10724         * eval.c (Fthrow):
10725         * eval.c (Fcommand_execute):
10726         * eval.c (Fautoload):
10727         * eval.c (Fbacktrace):
10728         * eval.c (Fbacktrace_frame):
10729         * events.c:
10730         * events.c (Fcopy_event):
10731         * events.c (Fcharacter_to_event):
10732         * events.c (Fevent_button):
10733         * events.c (Fevent_process):
10734         * extents.c:
10735         * extents.c (Fnext_extent_change):
10736         * extents.c (Fextent_property):
10737         * faces.c (Ffacep):
10738         * faces.c (Fmake_face):
10739         * file-coding.c:
10740         * file-coding.c (Fencode_shift_jis_char):
10741         * file-coding.c (Fencode_big5_char):
10742         * fileio.c (Ffile_name_directory):
10743         * fileio.c (Ffile_name_nondirectory):
10744         * fileio.c (Ffile_name_as_directory):
10745         * fileio.c (Fdirectory_file_name):
10746         * fileio.c (Ffile_truename):
10747         * fileio.c (Fsubstitute_in_file_name):
10748         * fileio.c (Ffile_modes):
10749         * fileio.c (Fset_file_modes):
10750         * fileio.c (Fset_default_file_modes):
10751         * fileio.c (Fverify_visited_file_modtime):
10752         * floatfns.c (Facos):
10753         * floatfns.c (Fasin):
10754         * floatfns.c (Fatan):
10755         * floatfns.c (Fcos):
10756         * floatfns.c (Fsin):
10757         * floatfns.c (Ftan):
10758         * floatfns.c (Fbessel_j0):
10759         * floatfns.c (Fbessel_j1):
10760         * floatfns.c (Fbessel_jn):
10761         * floatfns.c (Fbessel_y0):
10762         * floatfns.c (Fbessel_y1):
10763         * floatfns.c (Fbessel_yn):
10764         * floatfns.c (Ferf):
10765         * floatfns.c (Ferfc):
10766         * floatfns.c (Flog_gamma):
10767         * floatfns.c (Fexp):
10768         * floatfns.c (Fexpt):
10769         * floatfns.c (Flog):
10770         * floatfns.c (Flog10):
10771         * floatfns.c (Fsqrt):
10772         * floatfns.c (Fcube_root):
10773         * floatfns.c (Facosh):
10774         * floatfns.c (Fasinh):
10775         * floatfns.c (Fatanh):
10776         * floatfns.c (Fcosh):
10777         * floatfns.c (Fsinh):
10778         * floatfns.c (Ftanh):
10779         * floatfns.c (Fabs):
10780         * floatfns.c (Ffloat):
10781         * floatfns.c (Flogb):
10782         * floatfns.c (Fceiling):
10783         * floatfns.c (Ffloor):
10784         * floatfns.c (Fround):
10785         * floatfns.c (Ftruncate):
10786         * floatfns.c (Ffceiling):
10787         * floatfns.c (Fffloor):
10788         * floatfns.c (Ffround):
10789         * floatfns.c (Fftruncate):
10790         * fns.c (Fstring_equal):
10791         * fns.c (Fstring_lessp):
10792         * fns.c (concat2):
10793         * fns.c (concat3):
10794         * fns.c (vconcat2):
10795         * fns.c (vconcat3):
10796         * fns.c (Fsubstring):
10797         * fns.c (Fassoc):
10798         * fns.c (Fold_assoc):
10799         * fns.c (assoc_no_quit):
10800         * fns.c (Fassq):
10801         * fns.c (Fold_assq):
10802         * fns.c (assq_no_quit):
10803         * fns.c (Frassoc):
10804         * fns.c (Fold_rassoc):
10805         * fns.c (Frassq):
10806         * fns.c (Fold_rassq):
10807         * fns.c (rassq_no_quit):
10808         * fns.c (Fremassoc):
10809         * fns.c (remassoc_no_quit):
10810         * fns.c (Fremassq):
10811         * fns.c (remassq_no_quit):
10812         * fns.c (Fremrassoc):
10813         * fns.c (Fremrassq):
10814         * fns.c (remrassq_no_quit):
10815         * fns.c (Fsort):
10816         * fns.c (Fplist_get):
10817         * fns.c (Fplist_put):
10818         * fns.c (Fplist_remprop):
10819         * fns.c (Fplist_member):
10820         * fns.c (Flax_plist_get):
10821         * fns.c (Flax_plist_put):
10822         * fns.c (Flax_plist_remprop):
10823         * fns.c (Flax_plist_member):
10824         * fns.c (Fequal):
10825         * fns.c (Fold_equal):
10826         * fns.c (Frequire):
10827         * fns.c (Fbase64_encode_region):
10828         * fns.c (Fbase64_encode_string):
10829         * fns.c (Fbase64_decode_region):
10830         * frame.c:
10831         * frame.c (frame_matches_frame_spec):
10832         * frame.c (device_matches_device_spec):
10833         * frame.c (next_frame):
10834         * frame.c (previous_frame):
10835         * frame.c (Fnext_frame):
10836         * frame.c (Fprevious_frame):
10837         * frame.c (Fframe_property):
10838         * frame.c (Fset_frame_height):
10839         * frame.c (Fset_frame_size):
10840         * frame.h:
10841         * glyphs.c:
10842         * glyphs.c (if):
10843         * glyphs.c (decode_error_behavior_flag):
10844         * glyphs.c (Fmake_image_instance):
10845         * indent.c (Findent_to):
10846         * intl.c (Fignore_defer_gettext):
10847         * keymap.c (Fkeymapp):
10848         * keymap.c (Flookup_key):
10849         * lread.c:
10850         * lread.c (Fload_internal):
10851         * lread.c (Feval_buffer):
10852         * lread.c (Feval_region):
10853         * macros.c (Fexecute_kbd_macro):
10854         * marker.c (set_marker_internal):
10855         * marker.c (Fset_marker):
10856         * marker.c (set_marker_restricted):
10857         * marker.c (Fcopy_marker):
10858         * marker.c (noseeum_copy_marker):
10859         * menubar.c:
10860         * menubar.c (Fpopup_menu):
10861         * minibuf.c:
10862         * mule-charset.c (Fcharset_name):
10863         * mule-charset.c (Fchar_charset):
10864         * mule-charset.c (Fchar_octet):
10865         * mule-charset.c (Fsplit_char):
10866         * mule-wnnfns.c (Fwnn_open):
10867         * mule-wnnfns.c (Fwnn_dict_comment):
10868         * mule-wnnfns.c (Fwnn_quit_henkan):
10869         * mule-wnnfns.c (Fwnn_word_toroku):
10870         * mule-wnnfns.c (Fwnn_word_sakujo):
10871         * mule-wnnfns.c (Fwnn_word_use):
10872         * mule-wnnfns.c (Fwnn_hindo_set):
10873         * objects.c:
10874         * objects.c (Fmake_color_instance):
10875         * objects.c (Fmake_font_instance):
10876         * print.c (Fwrite_char):
10877         * process.c:
10878         * process.c (mark_process):
10879         * process.c (print_process):
10880         * process.c (get_process_from_usid):
10881         * process.c (Fprocessp):
10882         * process.c (Fprocess_live_p):
10883         * process.c (Fget_process):
10884         * process.c (Fget_buffer_process):
10885         * process.c (get_process):
10886         * process.c (Fprocess_id):
10887         * process.c (Fprocess_name):
10888         * process.c (Fprocess_command):
10889         * process.c (init_process_io_handles):
10890         * process.c (start_process_unwind):
10891         * process.c (Fstart_process_internal):
10892         * process.c (Fopen_multicast_group_internal):
10893         * process.c (Fset_process_window_size):
10894         * process.c (read_process_output):
10895         * process.c (send_process):
10896         * process.c (Fprocess_tty_name):
10897         * process.c (Fset_process_buffer):
10898         * process.c (Fprocess_buffer):
10899         * process.c (Fprocess_mark):
10900         * process.c (set_process_filter):
10901         * process.c (Fset_process_filter):
10902         * process.c (Fprocess_filter):
10903         * process.c (Fprocess_send_region):
10904         * process.c (Fprocess_send_string):
10905         * process.c (exec_sentinel):
10906         * process.c (Fset_process_sentinel):
10907         * process.c (Fprocess_sentinel):
10908         * process.c (status_notify):
10909         * process.c (Fprocess_status):
10910         * process.c (Fprocess_exit_status):
10911         * process.c (process_send_signal):
10912         * process.c (Fprocess_send_eof):
10913         * process.c (deactivate_process):
10914         * process.c (remove_process):
10915         * process.c (Fdelete_process):
10916         * process.c (kill_buffer_processes):
10917         * process.c (Fprocess_kill_without_query):
10918         * process.c (Fprocess_kill_without_query_p):
10919         * rangetab.c:
10920         * rangetab.c (Fget_range_table):
10921         * rangetab.c (Fput_range_table):
10922         * rangetab.c (Fremove_range_table):
10923         * rangetab.c (Fclear_range_table):
10924         * search.c:
10925         * search.c (Fskip_chars_forward):
10926         * search.c (Fskip_chars_backward):
10927         * search.c (Fskip_syntax_forward):
10928         * search.c (Fskip_syntax_backward):
10929         * search.c (search_command):
10930         * search.c (Freplace_match):
10931         * search.c (Fregexp_quote):
10932         * select.c (Fown_selection_internal):
10933         * select.c (Fselection_owner_p):
10934         * select.c (Fselection_exists_p):
10935         * select.c (Fget_selection_internal):
10936         * specifier.c:
10937         * symbols.c:
10938         * symbols.c (Fintern):
10939         * symbols.c (Fintern_soft):
10940         * symbols.c (Funintern):
10941         * symbols.c (Fapropos_internal):
10942         * symbols.c (Fset_default):
10943         * syntax.c:
10944         * syntax.c (Fsyntax_table_p):
10945         * syntax.c (Fcopy_syntax_table):
10946         * syntax.c (Fset_syntax_table):
10947         * syntax.c (Fchar_syntax):
10948         * syntax.c (syntax_match):
10949         * syntax.c (Fmatching_paren):
10950         * syntax.c (Fforward_word):
10951         * syntax.c (scan_lists):
10952         * syntax.c (Fscan_lists):
10953         * syntax.c (Fscan_sexps):
10954         * syntax.c (Fparse_partial_sexp):
10955         * toolbar.c (Fcheck_toolbar_button_syntax):
10956         * tooltalk.doc:
10957         * window.c:
10958         * window.c (Fwindowp):
10959         * window.c (Fwindow_live_p):
10960         * window.c (Fwindow_point):
10961         * window.c (Fdelete_window):
10962         * window.c (Fnext_window):
10963         * window.c (Fprevious_window):
10964         * window.c (Fother_window):
10965         * window.c (window_loop):
10966         * window.c (Fget_lru_window):
10967         * window.c (Fsplit_window):
10968         * window.c (Fenlarge_window):
10969         * window.c (Fenlarge_window_pixels):
10970         * window.c (Fshrink_window):
10971         * window.c (Fshrink_window_pixels):
10972         * window.c (change_window_height):
10973         * window.c (Fwindow_configuration_p):
10974         * window.c (Fcurrent_window_configuration):
10975         * window.h:
10976         * casefiddle.c (casify_object):
10977         * casefiddle.c (Fupcase):
10978         * casefiddle.c (Fdowncase):
10979         * casefiddle.c (Fcapitalize):
10980         * casefiddle.c (Fupcase_initials):
10981         * casefiddle.c (casify_region_internal):
10982         * casefiddle.c (casify_region):
10983         * casefiddle.c (Fupcase_region):
10984         * casefiddle.c (Fdowncase_region):
10985         * casefiddle.c (Fcapitalize_region):
10986         * casefiddle.c (Fupcase_initials_region):
10987         * casefiddle.c (Fupcase_word):
10988         * casefiddle.c (Fdowncase_word):
10989         * casefiddle.c (Fcapitalize_word):
10990         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10991         Replace 0 with '\0' when working with bytes.
10992         Replace initial "(" with "\(" in docstrings.
10993
10994 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10995
10996         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10997
10998         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10999
11000 2000-10-31  Martin Buchholz  <martin@xemacs.org>
11001
11002         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
11003
11004 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
11005
11006         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
11007         correctly.
11008
11009 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
11010
11011         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
11012         (inhibit_auto_save_session): New variable.
11013         (vars_of_fileio): Declare and initialize them.
11014         * fileio.c (Fdo_auto_save): Don't create session file if
11015         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
11016
11017 2000-10-31  Martin Buchholz  <martin@xemacs.org>
11018
11019         * sgiplay.c (play_internal): C++ compilability.
11020         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
11021         * callproc.c (Fold_call_process_internal):
11022         Remove unused vars `env', `first'.
11023         * scrollbar.c (update_scrollbar_instance):
11024         #### unused var `current_window'.
11025         * redisplay-tty.c: Put currently unused vars insert_mode_on,
11026         etc. within #ifdef NOT_YET.
11027         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
11028         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
11029         * specifier.c (specifier_instance):
11030         #### unused var `tag'.
11031         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
11032
11033 2000-10-27  Martin Buchholz  <martin@xemacs.org>
11034
11035         * fns.c (Fbutlast):
11036         * fns.c (list_sort):
11037         * fns.c (Ffillarray):
11038         * fns.c (bytecode_nconc2):
11039         * fns.c (Fnconc):
11040         * fns.c (mapcar1):
11041         * fns.c (Fmapconcat):
11042         Be pedantically 64-bit correct.  For the time when someone will
11043         want to have a list with length > 2**32.
11044
11045         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11046         Work around MIPSpro compiler bug.
11047
11048         * process-unix.c (unix_kill_child_process): Add snarky comment.
11049         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
11050
11051         * config.h.in: Oops, _getpt ==> _getpty
11052
11053 2000-10-26  Martin Buchholz  <martin@xemacs.org>
11054
11055         * config.h.in:
11056         * regex.c:
11057         Use void*, not char*, as return type of alloca().
11058
11059         * alloc.c (free_marker): Side effect inside assert expression!
11060
11061 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
11062
11063         * mule-charset.c (Fset_charset_ccl_program): To check
11064         if the given ccl program is valid, use setup_ccl_program()
11065         instead of CHECK_VECTOR().
11066         (Fmake_charset): Likewise.
11067
11068 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
11069
11070         * faces.c (get_extent_fragment_face_cache_index):
11071         Fix cachel.merged_faces memory leak.
11072
11073 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
11074
11075         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
11076         Reset MSB of octets obtained by DECODE_SJIS
11077         because of the incompatibility with Emacs.
11078         (ccl_driver)<CCL_ENCODE_SJIS>:
11079         Set MSB of octets before passing them to
11080         ENCODE_SJIS because of the incompatibility
11081         with Emacs.
11082
11083 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
11084
11085         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
11086         (DECLARE_LRECORD): Undo the last change.
11087         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
11088
11089 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
11090
11091         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
11092         the implementation to lrecord_implementations_table.
11093
11094 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
11095
11096         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
11097         initial value of `lrecord_type_##c_name' and
11098         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
11099         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
11100         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
11101         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
11102         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
11103
11104 2000-10-17  Martin Buchholz  <martin@xemacs.org>
11105
11106         * miscplay.c (sndcnv8S_2mono):
11107         (sndcnv2monounsigned):
11108         (sndcnvULaw_2linear):
11109         (sndcnv16swap):
11110         Remove implementation-defined behavior.
11111
11112 2000-10-12  Martin Buchholz  <martin@xemacs.org>
11113
11114         * input-method-xlib.c: Warning suppression.
11115
11116 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
11117
11118         * mule-ccl.c: Sync up with Emacs 21.0.90.
11119         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
11120         Do nothing.
11121         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
11122         Likewise.
11123         (ccl_driver[WriteMultibyteChar2]): Bug fix.
11124         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
11125         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
11126         leading char belongs to official 2-dimensional charset.
11127         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
11128         write the given character as is.  Otherwise,
11129         if it is a multibyte char, convert it by
11130         non_ascii_set_charptr_emchar, then write it.
11131         (CCL_WRITE_STRING): Likewise.
11132         (ccl_get_compiled_code): New function.
11133         (setup_ccl_program): When ccl_prog is invalid,
11134         return -1.
11135         (Fregister_code_conversion_map): New function.
11136         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
11137
11138         * mule-ccl.h: Sync up with Emacs 21.0.90.
11139         (Fregister_ccl_program): export it.
11140
11141         * redisplay-msw.c (separate_textual_runs):
11142         If ccl program is not valid, don't do ccl conversion.
11143
11144         * redisplay-x.c (separate_textual_runs): Ditto.
11145
11146         * file-coding.c (Fmake_coding_system):
11147         When type is ccl and value is vector, register it
11148         with a proper symbol.  And checks whether the
11149         given ccl program is valid.
11150         (mule_decode): When calling ccl_driver, if src indicates
11151         NULL pointer, set an empty string instead.
11152         (mule_encode): Likewise.
11153
11154 2000-10-11  Martin Buchholz  <martin@xemacs.org>
11155
11156         The following large batch of changes gets us back to a state of
11157         C++ compilability.  Extbyte is now a char, which means that
11158         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
11159
11160         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
11161
11162         * sound.c (Fplay_sound): Type correctness.
11163
11164         * select-x.c (hack_motif_clipboard_selection): Type correctness.
11165         (x_get_window_property): Type correctness.
11166         (receive_incremental_selection): unsigned char ==> Extbyte
11167         (selection_data_to_lisp_data): unsigned char ==> Extbyte
11168         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
11169         (Fx_store_cutbuffer_internal): Type correctness.
11170
11171         * process-unix.c (try_to_initialize_subtty): Type correctness.
11172
11173         * objects-x.c (x_print_color_instance): Type correctness.
11174         (x_print_font_instance): Type correctness.
11175         (x_list_fonts): SExtbyte ==> Extbyte.
11176         (valid_x_font_name_p): SExtbyte ==> Extbyte.
11177         (x_find_charset_font): SExtbyte ==> Extbyte.
11178         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
11179         (truename_via_XListFonts): SExtbyte ==> Extbyte.
11180         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
11181         Use bufbyte_strcmp.
11182
11183         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
11184         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
11185         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
11186         (BYTE_C0_P): Use bit ops for char-signedness safety.
11187         (BYTE_C1_P): Use bit ops for char-signedness safety.
11188         (CHARSET_BY_LEADING_BYTE):
11189         (CHARSET_BY_ATTRIBUTES):
11190         Always use inline function.
11191         Use type_checking_assert.
11192         Hide chlook.
11193
11194         * mule-charset.c (non_ascii_charptr_copy_char):
11195         Modify to work with both ASCII and non-ASCII characters.
11196         Improve docs and variable names.
11197         Replace over-clever fall-through switch with a simple loop.
11198         (Lstream_get_emchar_1):
11199         Replace over-clever fall-through switch with a simple loop.
11200
11201         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11202         Warning suppression.
11203
11204         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
11205         the return value of Lstream_getc, which could be EOF as well.
11206
11207         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
11208
11209         * lisp.h: Make Extbyte a char, not unsigned char, so that external
11210         APIs can be used on Extbytes without casts.  Risky!
11211         (SExtbyte): Remove.
11212         (UExtbyte): Remove.
11213
11214         * input-method-xlib.c (XIM_init_device):
11215         Use Xlib.h instead of IntrinsicP.h.
11216         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
11217         which will break in X11R7.
11218         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
11219         to call XRegisterIMInstantiateCallback with correct types.
11220
11221         * gui-x.c (button_item_to_widget_value): Type correctness.
11222
11223         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
11224
11225         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
11226         (xbm_instantiate_1): Type correctness.
11227         (BUILD_GLYPH_INST):  Type correctness.
11228
11229         * fileio.c (Fsubstitute_in_file_name): Type correctness.
11230
11231         * file-coding.c:
11232         (decode_coding_sjis):
11233         (decode_coding_big5):
11234         (decode_coding_ucs4):
11235         (decode_coding_utf8):
11236         (decode_coding_iso2022):
11237         (decode_coding_no_conversion):
11238         Make all decoding functions take an Extbyte * arg.
11239         (encode_coding_sjis):
11240         (encode_coding_big5):
11241         (encode_coding_ucs4):
11242         (encode_coding_utf8):
11243         (encode_coding_iso2022):
11244         (encode_coding_no_conversion):
11245         Make all encoding functions take a Bufbyte * arg.
11246         Use size_t instead of unsigned int for memory sizes.
11247         Only cast to unsigned char whenever dereferencing Extbyte *.
11248
11249         * doc.c (unparesseuxify_doc_string): Type correctness.
11250
11251         * console-x.c (split_up_display_spec):
11252         Rewrite without using details of internal string representation.
11253         (x_semi_canonicalize_device_connection): Type correctness.
11254
11255         * config.h.in:
11256         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
11257         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
11258         (HAVE_XFREE386): Removed.
11259
11260         * buffer.h (DEC_CHARPTR): `const' correctness.
11261         (bufbyte_strcmp): New.
11262         (bufbyte_memcmp): New.
11263
11264         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
11265
11266         * buffer.h (XCHAR_OR_CHAR_INT):
11267         Always use inline function.
11268         Remove redundant type checking assert() - XINT will abort quite nicely.
11269
11270 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11271
11272         * search.c (Freplace_match): Set newtext to an empty string.
11273
11274 2000-10-10  Martin Buchholz  <martin@xemacs.org>
11275
11276         * s/decosf1-3.h: Remove #include of stropts.h
11277         * s/ptx.h: Remove #include of stropts.h
11278         * s/usg5-4.h: Remove #include of stropts.h
11279         * sysproc.h:
11280         * config.h.in:
11281         Use stropts.h, not sys/stropts.h.
11282         Use strtio.h, not sys/strtio.h.
11283
11284 2000-10-04  Martin Buchholz <martin@xemacs.org>
11285
11286         * XEmacs 21.2.36 is released.
11287
11288 2000-09-21  Andy Piper  <andy@xemacs.org>
11289
11290         * glyphs-x.c (x_redisplay_widget): make sure non-structural
11291         changes still involve copying the widget tree.
11292         (update_widget_face): make sure a change is register in the widget
11293         tree. Call update_tab_widget_face appropriately.
11294         (update_tab_widget_face): ditto.
11295         (x_tab_control_redisplay): make sure non-structural changes still
11296         involve copying the widget tree.
11297
11298 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
11299
11300         * lread.c (locate_file): Check the path element is non-nil.
11301
11302 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11303
11304         * lisp.h: Warning suppression for SCO compilers.
11305
11306         * redisplay-tty.c (reset_tty_modes): Fix crash.
11307         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
11308
11309 2000-09-27  Martin Buchholz  <martin@xemacs.org>
11310
11311         Big signal/process handling overhaul.  Bugs fixed:
11312         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
11313         M-x comint-kill-subjob should work for both values nil and t of
11314         process-connection-type. It was broken on most platforms.
11315         Testing on Irix and Cygwin still needed.  Other plaforms tested.
11316         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
11317         * process-unix.c: Signal/Process handling overhaul.
11318         (pty_name): make 64 bytes, as `expect' does, for paranoia.
11319         (allocate_pty): Use all available modern methods of allocating
11320         ptys, falling back to old style BSD allocation as a last resort.
11321         Use allegedly more secure Unix98 pty allocation by default.
11322         (allocate_pty_the_old_fashioned_way): New. the last resort.
11323         (unix_create_process): Push ptem, ldterm, ttcompat where
11324         available.  Autoconfiscate.
11325         (try_to_initialize_subtty): New.
11326         (unix_kill_child_process): Proper signal handling for ptys on most
11327         platforms, using special knowledge of AIX, BSD, etc...
11328         (unix_create_process): Always disconnect_controlling_terminal() for
11329         subprocesses, whether using ptys or not.
11330         * process.h: Remove old getpt-dependent PTY code.
11331         * process.c (Fprocess_send_signal): New, obvious generic function.
11332         (decode_signal): New.
11333         (Finterrupt_process):
11334         (Fkill_process):
11335         (Fquit_process):
11336         (Fstop_process):
11337         (Fcontinue_process):
11338         (Fsignal_process): Use decode_signal.
11339         (process_send_signal):
11340         Many docstring corrections.
11341         Allow any signal to be sent to a process object.
11342         * config.h.in: Add symbols for big signal/process overhaul.
11343         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
11344         * sysproc.h: Include process-related headers, where available:
11345         sys/stropts.h sys/strtio.h pty.h libutil.h
11346         * s/irix4-0.h:
11347         * s/irix5-0.h:
11348         * s/cygwin32.h:
11349         * s/gnu.h:
11350         * s/linux.h:
11351         * s/hpux.h:
11352         * s/aix3-1.h:
11353         Remove old S&M pty stuff.
11354         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
11355         * systty.h: Simplify cpp hackery, improve comments.
11356         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
11357
11358         * editfns.c (Fformat_time_string):
11359         Be a little more paranoid with the return value of ctime.
11360
11361         * fileio.c (check_executable):
11362         (check_writable):
11363         Use symbolic constants X_OK, W_OK.
11364
11365         * console-x.c (split_up_display_spec): Fix a warning.
11366
11367 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11368
11369         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11370         * ntproc.c (sys_spawnve): make_string ==> build_string
11371         Small clarity improvements.
11372
11373 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11374
11375         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11376
11377         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11378
11379         * config.h.in (HAVE_STRCASECMP): Remove.
11380
11381 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11382
11383         * redisplay-output.c (redisplay_output_pixmap):
11384         Cleaner and possibly more 64-bit correct code.
11385
11386 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11387
11388         * dumper.c (pdump_load_finish): move restoration of
11389         `noninteractive1' to emacs.c (main_1).
11390         * emacs.c (main_1): protect LISP-visible command-line flags
11391         from pdump_load().
11392
11393 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11394
11395         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11396         DUMP_TARGET instead of literal program names.
11397
11398 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11399
11400         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11401
11402 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11403
11404         * *: Spelling mega-patch
11405
11406 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11407
11408         * fns.c (bad_bad_turtle):
11409         Delete "Eek!" comment, since we fixed the bug to which it refers.
11410
11411 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11412
11413         * alloca.c: Replace REGISTER with register.
11414
11415 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11416
11417         * file-coding.c (ucs_to_char): Use countof.
11418
11419 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11420
11421         * file-coding.c: (ucs_to_char):
11422         (complex_vars_of_file_coding):
11423         Use countof instead of sizeof.
11424         Use CHECK_NATNUM instead of CHECK_INT.
11425
11426         * sysdep.c (strcasecmp): Remove.
11427         * device-x.c (ascii_strcasecmp): New.
11428         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11429         Avoid using non-standard non-portable strcasecmp.
11430
11431 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11432
11433         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11434         * font-lock.c: remove reference to emacsfns.h.
11435         * search.c: small doc improvement.
11436         * event-Xt.c: correct file names in comments.
11437         * console-x.h Correct file names in comments.
11438         * frame.c: Correct file names in comments.
11439         * event-stream.c: remove Energize from comments.
11440
11441 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11442
11443         * symeval.h (DEFERROR_STANDARD):
11444         (DEFERROR):
11445         (DEFSYMBOL):
11446         (DEFSYMBOL_NO_DUMP):
11447         (DEFSYMBOL_MULTIWORD_PREDICATE):
11448         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11449         (DEFKEYWORD):
11450         The construct &##name is not sensible C.
11451         Fixes compilation errors with Unixware native compiler.
11452
11453 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11454
11455         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11456         (next_frame_internal): Removed.  We now just have next_frame.
11457         (next_frame):
11458         Write a simpler and cleaner one-pass algorithm.
11459         Remove called_from_delete_device arg and #ifdefed-out code.
11460         (previous_frame):
11461         Renamed from prev_frame.  Update callers.
11462         Cleaned up to have an analogous implementation to next_frame.
11463         (other_visible_frames_internal): Remove the
11464         called_from_delete_device bogus arg, and hence, remove this
11465         function.  Just use other_visible_frames().
11466
11467         * window.c (Fnext_window):
11468         Prettify docstring.
11469         Since next_frame() is guaranteed to return a frame, remove check
11470         for nil inserted in previous patch.
11471         (Fprevious_window):
11472         Prettify docstring.
11473         Make code look more like Fnext_window.
11474         (window_loop):
11475         Respect the `console' arg when iterating through windows.
11476         Fixes bug: (get-buffer-window buffer t device) not respecting
11477         the `device' arg.
11478         This function needs more work, as others have pointed out.
11479
11480         * frame.h: Rename prev_frame to previous_frame.
11481         device_matches_console_spec no longer takes a `frame' arg.
11482
11483         * s/gnu.h:
11484         * s/linux.h:
11485         * s/hpux.h:
11486         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11487         From "Golubev I. N." <gin@mo.msk.ru>.
11488
11489         * make-src-depend: Fix typo.
11490
11491 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11492
11493         * window.c (Fnext_window):
11494         next_frame() might return nil, not a frame.
11495         Fixes this crash:
11496         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11497
11498         * frame.c (next_frame_internal):
11499         We've passed a frame if we've passed its device.
11500         Fixes this crash:
11501         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11502 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11503
11504 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11505
11506         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11507         Allow option to suppress accelerators in menu/dialog items.
11508         (populate_or_checksum_helper): Pass dialog title through above.
11509
11510 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11511
11512         * event-msw.c (mswindows_key_to_emacs_keysym):
11513         Add "pause" key, fix "menu" key.
11514
11515 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11516
11517         * eval.c (reinit_vars_of_eval):
11518         Increase max_lisp_eval_depth to 1000,
11519         required for thai-xtis.el to byte-compile under some circumstances.
11520
11521 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11522
11523         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11524         From Kenichi Handa.
11525
11526 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11527
11528         * make-src-depend: Make the generated Makefiles smaller.
11529
11530         * s/hpux.h (SETUP_SLAVE_PTY):
11531         Provide a %d in the format string for the errno argument.
11532
11533         * editfns.c (Ftemp_directory):
11534         Warning fix.
11535         Avoid buffer overrun on very long file name.
11536
11537         * input-method-xlib.c (XIM_init_device):
11538         6th parameter of XRegisterIMInstantiateCallback has different
11539         pointer types on different OSes, so simply cast to (void *).
11540
11541         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11542
11543         * sysdll.c (dll_open):
11544         shl_load will hang hard if passed a NULL filename.
11545         Simply return NULL for compatibility with dlopen.
11546         * sysdll.c: Conform to XEmacs coding standards.
11547
11548         * sysdep.c (get_pty_max_bytes):
11549         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11550
11551 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11552
11553         * tooltalk.c: Add #include <syssignal.h>
11554
11555 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11556
11557         * s/hpux.h: Don't use undefined function sigunblock().
11558
11559 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11560
11561         * config.h.in: Add HAVE_BALLOON_HELP.
11562         * emacs.c: Use HAVE_BALLOON_HELP.
11563         * Makefile.in.in (x_objs):
11564         Make Balloon Help conditional on finding shape.h.
11565
11566 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11567
11568         * syntax.c (regex_emacs_buffer_p): New variable.
11569         * syntax.h (regex_emacs_buffer_p): extern.
11570         * search.c (looking_at_1):
11571         (string_match_1):
11572         (fast_string_match):
11573         (search_buffer): Set regex_emacs_buffer_p.
11574         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11575         when before_dot, at_dot, after_dot.
11576
11577 2000-08-23  Andy Piper  <andy@xemacs.org>
11578
11579         * gui-x.c (popup_selection_callback): Only set action_occurred
11580         when we really have an image instance.
11581         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11582
11583 2000-08-23  Andy Piper  <andy@xemacs.org>
11584
11585         * gui-msw.c (mswindows_handle_gui_wm_command): set
11586         action_occurred.
11587         * gui-x.c (popup_selection_callback): ditto.
11588
11589         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11590         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11591         (struct Lisp_Image_Instance): add action_occurred flag.
11592
11593         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11594         (image_instance_changed): ditto.
11595         (reset_frame_subwindow_instance_cache): only unmap windows - do
11596         not remove them from the cache also.
11597
11598         * glyphs-widget.c (tab_control_update): better debug.
11599         (progress_gauge_update): ditto.
11600         (layout_update): ditto.
11601         (layout_instantiate): ditto.
11602         (tab_control_order_only_changed): cope with null pending items.
11603
11604         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11605         debug. Force selection of an item when an action occurred. Cope
11606         with null pending_items.
11607         (mswindows_progress_gauge_redisplay): better debug.
11608         * glyphs-x.c (x_tab_control_redisplay): ditto.
11609
11610         * redisplay.c (redisplay_frame): reset the frame cache if the
11611         frame is garbaged.
11612
11613         * window.c (Fset_window_configuration): potentially re-enable
11614         frame cache reset.
11615         (window_unmap_subwindows): need to finalize instances here since
11616         it is only used in mark_window_as_deleted.
11617
11618 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11619
11620         * nas.c (SndOpenDataForReading):
11621         nas.c (WaveOpenDataForReading):
11622         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11623         Somehow escaped from the 2000-08-14 patch.
11624
11625 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11626
11627         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11628         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11629
11630 2000-08-21  Andy Piper  <andy@xemacs.org>
11631
11632         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11633         window if it is not already displayed.
11634
11635         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11636         it is not already displayed.
11637
11638         * window.c (Fset_window_configuration): don't reset the frame
11639         cache.
11640
11641         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11642         instances from the frame cache if we are actually finalizing them.
11643         (reset_frame_subwindow_instance_cache): reset frame cache only
11644         after unmapping everything.
11645         (map_subwindow): set displayed flag after mapping.
11646
11647 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11648
11649         * data.c (indirect_function):
11650         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11651
11652         * eval.c (function_argcount):
11653         Use original function when signaling errors.
11654
11655 2000-08-18  Andy Piper  <andy@xemacs.org>
11656
11657         * frame.c (delete_frame_internal): use new
11658         free_frame_subwindow_instances name.
11659
11660         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11661         (add_tab_item): make return type correct.
11662         (mswindows_tab_control_instantiate): assert index of tab.
11663         (mswindows_tab_control_redisplay): Re-code to use
11664         gui_item_equal_sans_selected and gui_item_list_find_selected.
11665
11666         * glyphs-widget.c (tab_control_update): Correct comment.
11667
11668         * window.c (window_unmap_subwindows): use new
11669         unmap_subwindow_instance_cache_mapper.
11670         (window_unmap_subwindows_cache_mapper): deleted.
11671         (Fset_window_configuration): comparisons should now be with
11672         EQ. Preserve the subwindow instance cache across configuration
11673         changes.
11674         (allocate_window): ditto.
11675         (make_dummy_parent): ditto.
11676
11677         * glyphs.c (free_frame_subwindow_instances): rename from
11678         free_frame_subwindow_instance_cache. finalize all instances rather
11679         than just those in the display cache.
11680         (finalize_all_subwindow_instances): walk windows unmapping and
11681         finalizing subwindows.
11682         (unmap_subwindow_instance_cache_mapper): moved from
11683         window.c. Allow finalization as well as unmapping.
11684
11685         * gui.c (gui_item_list_find_selected): new function.
11686
11687         * gui.h (gui_item_list_find_selected): declare.
11688
11689         * glyphs-x.c (x_tab_control_redisplay): pick tab
11690         explicitly. Re-code to use gui_item_equal_sans_selected and
11691         gui_item_list_find_selected.
11692
11693         * glyphs-x.h: add lwlib-utils.h
11694
11695         * buffer.c (Frecord_buffer): undo previous change.
11696
11697 2000-08-09  Vin Shelton  <acs@xemacs.org>
11698
11699         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11700         possible.  Create temporary files more securely.  The patch was
11701         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11702         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11703         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11704         for details.
11705
11706 2000-08-07  Ben Wing  <ben@xemacs.org>
11707
11708         * getloadavg.c: remove duplicate (and windows-breaking)
11709         includes of fcntl.h and sys/file.h.
11710
11711         * nt.c: remove duplicate getloadavg() definition.
11712
11713         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11714         encodings.
11715
11716 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11717
11718         * eval.c (function_argcount): If function needs to be autoloaded
11719         actually use the loaded definition.
11720         GCPRO function.
11721
11722 2000-08-05  Ben Wing  <ben@xemacs.org>
11723
11724         * getloadavg.c: add prototype for getloadavg().  remove
11725         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11726         of the code).  remove duplicate header includes.
11727
11728         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11729
11730         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11731         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11732         useful load average.
11733
11734         * alloc.c (reinit_alloc_once_early): removed references to
11735         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11736         the lisp vars are the only things referencing the malloc_sbrk_*
11737         vars, and they were already if 0'd out.  these vars only exist
11738         in the older malloc.c, which is basically unused, and they're
11739         only for informational purposes.
11740
11741         * m\*.h: removed useless VIRT_ADDR_VARIES.
11742
11743         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11744
11745 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11746
11747         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11748         color if the image is a mono pixmap.
11749
11750 2000-07-30  Ben Wing  <ben@xemacs.org>
11751
11752         * Makefile.in.in (release):
11753         Remove stray @.
11754
11755         * buffer.c (directory_is_current_directory):
11756         * dired-msw.c (mswindows_get_files):
11757         * dired.c:
11758         * dired.c (Fdirectory_files):
11759         * dired.c (file_name_completion_stat):
11760         * dired.c (Ffile_attributes):
11761         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11762         preprocessor tricks, to avoid problems on some machines
11763         (e.g. SCO).
11764
11765         * callproc.c (egetenv): GC docs.
11766
11767         * console-msw.h:
11768         * console-msw.h (struct mswindows_dialog_id):
11769         * lrecord.h (lrecord_type):
11770         New object for use with MSW dialogs.
11771
11772         * console.h (struct console_methods):
11773         New enable/disable frame methods, for proper modal dialogs.
11774
11775         * device-msw.c (msprinter_default_printer): Fix to follow
11776         proper Mule conventions.
11777
11778         * device-msw.c:
11779         * device-msw.c (signal_open_printer_error):
11780         * device-msw.c (msprinter_init_device):
11781         * device-msw.c (ensure_not_printing):
11782         * device-msw.c (plist_get_margin):
11783         * device-msw.c (Fmsprinter_select_settings):
11784         * device-msw.c (finalize_devmode):
11785         * device-msw.c (Fmsprinter_settings_despecialize):
11786         * device-msw.c (signal_enum_priner_error):
11787         * extents.c (decode_extent):
11788         * extents.c (decode_map_extents_flags):
11789         * extents.c (decode_extent_at_flag):
11790         * extents.c (Fextent_at):
11791         * extents.c (Fextents_at):
11792         * extents.c (symbol_to_glyph_layout):
11793         [[[[2]]]] Use structured errors.
11794
11795         * dialog-msw.c:
11796         * dialog-msw.c (mswindows_is_dialog_msg):
11797         * dialog-msw.c (mark_mswindows_dialog_id):
11798         * dialog-msw.c (dialog_proc):
11799         * dialog-msw.c (handle_question_dialog_box):
11800         * dialog-msw.c (syms_of_dialog_mswindows):
11801         Define new object to clean up marking; use it as a dialog identifier.
11802         Call new delete-dialog-box-hook.
11803
11804         * dialog-x.c (dbox_selection_callback):
11805         * dialog-x.c (dbox_descriptor_to_widget_value):
11806         * dialog-x.c (x_make_dialog_box_internal):
11807         Call new delete-dialog-box-hook.
11808         Return an id.
11809
11810         * dialog.c:
11811         * dialog.c (syms_of_dialog):
11812         * dialog.c (vars_of_dialog):
11813         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11814
11815         * eval.c:
11816         * eval.c (signal_call_debugger):
11817         when noninteractive, output stack traces on the console instead
11818         of in a (never-seen) buffer.
11819
11820         * eval.c (signal_type_error):
11821         * eval.c (invalid_argument_2):
11822         * lisp.h:
11823         new funs for use w/structured errors.
11824
11825         * event-Xt.c:
11826         * event-Xt.c (x_to_emacs_keysym):
11827         * event-Xt.c (describe_event):
11828         * event-Xt.c (emacs_Xt_event_handler):
11829         * event-Xt.c (vars_of_event_Xt):
11830         * event-msw.c:
11831         * event-msw.c (mswindows_wnd_proc):
11832         * event-msw.c (vars_of_event_mswindows):
11833         rename {x,mswindows}-debug-events to debug-{}-events for
11834         consistency with other debug-foo variables.
11835
11836         * event-stream.c:
11837         document next-event more clearly.
11838
11839         * fileio.c (Ffile_name_directory):
11840         * fileio.c (Ffile_name_nondirectory):
11841         * fileio.c (Funhandled_file_name_directory):
11842         * fileio.c (file_name_as_directory):
11843         * fileio.c (Ffile_name_as_directory):
11844         * fileio.c (directory_file_name):
11845         * fileio.c (Fdirectory_file_name):
11846         * fileio.c (Fmake_temp_name):
11847         * fileio.c (Ffile_truename):
11848         * fileio.c (Fsubstitute_in_file_name):
11849         * fileio.c (expand_and_dir_to_file):
11850         * fileio.c (barf_or_query_if_file_exists):
11851         * fileio.c (check_executable):
11852         * fileio.c (Ffile_exists_p):
11853         * fileio.c (Ffile_writable_p):
11854         * fileio.c (Ffile_directory_p):
11855         * fileio.c (Ffile_regular_p):
11856         * fileio.c (Ffile_modes):
11857         * fileio.c (Ffile_newer_than_file_p):
11858         * fileio.c (Fverify_visited_file_modtime):
11859         * fileio.c (Fset_visited_file_modtime):
11860         * fileio.c (auto_save_1):
11861         (1). (2).
11862         fix up gcpro's.
11863
11864         * frame-msw.c:
11865         * frame-msw.c (mswindows_init_frame_1):
11866         * frame-msw.c (mswindows_enable_frame):
11867         * frame-msw.c (error_frame_unsizable):
11868         * frame-msw.c (msprinter_init_frame_1):
11869         * frame-msw.c (msprinter_init_frame_3):
11870         * frame-msw.c (console_type_create_frame_mswindows):
11871         (2).
11872         implement new enable/disable frame methods.
11873
11874         * frame-x.c:
11875         * frame-x.c (x_enable_frame):
11876         * frame-x.c (console_type_create_frame_x):
11877         implement new enable/disable frame methods.
11878
11879         * frame.c:
11880         * frame.c (Fdisable_frame):
11881         * frame.c (syms_of_frame):
11882         * frame.h (struct frame):
11883         implement new enable/disable frame methods/functions.
11884
11885         * general-slots.h:
11886         add initial-focus.
11887
11888         * glyphs-msw.c (mswindows_widget_instantiate):
11889         comment that initial-focus should be implemented.
11890
11891         * glyphs-widget.c:
11892         * glyphs-widget.c (check_valid_instantiator):
11893         * glyphs-widget.c (check_valid_orientation):
11894         * glyphs-widget.c (check_valid_tab_orientation):
11895         * glyphs-widget.c (check_valid_justification):
11896         * glyphs-widget.c (check_valid_border):
11897         * glyphs-widget.c (check_valid_callback):
11898         * glyphs-widget.c (check_valid_int_or_function):
11899         * glyphs-widget.c (check_valid_string_or_vector):
11900         * glyphs-widget.c (check_valid_item_list_1):
11901         * glyphs-widget.c (widget_validate):
11902         * glyphs-widget.c (combo_box_validate):
11903         * glyphs-widget.c (widget_instantiate):
11904         * glyphs-widget.c (syms_of_glyphs_widget):
11905         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11906         * glyphs-widget.c (image_instantiator_combo_box):
11907         * glyphs-widget.c (image_instantiator_scrollbar):
11908         * glyphs-widget.c (image_instantiator_tab_control):
11909         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11910         (2).
11911         support (unimplemented) keyword initial-focus.
11912         reindent long macros.
11913
11914         * glyphs-x.c (x_redisplay_widget):
11915         * glyphs-x.c (x_button_instantiate):
11916         * glyphs-x.c (x_button_redisplay):
11917         * glyphs-x.c (x_progress_gauge_instantiate):
11918         * glyphs-x.c (x_edit_field_instantiate):
11919         * glyphs-x.c (x_combo_box_instantiate):
11920         * glyphs-x.c (x_tab_control_instantiate):
11921         * glyphs-x.c (x_label_instantiate):
11922         * gui-x.c:
11923         * gui-x.c (button_item_to_widget_value):
11924         * gui-x.c (gui_items_to_widget_values_1):
11925         * gui-x.c (gui_item_children_to_widget_values):
11926         * gui-x.c (gui_items_to_widget_values):
11927         * gui-x.h:
11928         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11929         add new flag to gui-parsing routines to indicate whether
11930         accelerator specs should be supported.
11931
11932         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11933
11934         * glyphs.h (struct Lisp_Image_Instance):
11935         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11936         add initial-focus flag.
11937
11938         * gui.c:
11939         * gui.c (syms_of_gui):
11940         * gui.c (vars_of_gui):
11941         clean up menu-no-selection-hook.
11942
11943         * gui.h:
11944         support delete-dialog-box-hook.
11945
11946         * lread.c (Fload_internal):
11947         * lread.c (locate_file_in_directory_mapper):
11948         (1).
11949
11950         * lrecord.h:
11951         * lrecord.h (struct toolbar_button):
11952         * lrecord.h (syms_of_toolbar):
11953         document how to create a new object.
11954
11955         * menubar-msw.c (mswindows_char_is_accelerator):
11956         may be called on frames w/o menus.
11957
11958         * menubar.c (vars_of_menubar):
11959         clean up :filter docs.
11960
11961         * nt.c (readdir):
11962         * ntproc.c:
11963         (1).
11964
11965         * process-nt.c:
11966         * process-nt.c (validate_signal_number):
11967         * process-nt.c (signal_cannot_launch):
11968         * process-nt.c (nt_create_process):
11969         * process-nt.c (nt_send_process):
11970         * process-nt.c (nt_kill_child_process):
11971         * process-nt.c (nt_open_network_stream):
11972         * process-nt.c (syms_of_process_nt):
11973         (2).
11974         delete quote-handling.  call new lisp code that does it better.
11975
11976         * process-unix.c (connect_to_file_descriptor):
11977         * process-unix.c (allocate_pty):
11978         * process-unix.c (unix_send_process):
11979         * process-unix.c (unix_kill_child_process):
11980         * process-unix.c (unix_open_network_stream):
11981         * process-unix.c (unix_open_multicast_group):
11982         (1). (2).
11983
11984         * process.c:
11985         * process.c (Fstart_process_internal):
11986         (2).  need to canonicalize process path even if absolute.
11987
11988         * select-msw.c (symbol_to_ms_cf):
11989         * select-msw.c (ms_cf_to_symbol):
11990         * select-msw.c (cf_is_autofreed):
11991         * select-msw.c (mswindows_destroy_selection):
11992         * select.c:
11993         * select.c (syms_of_select):
11994         * select.h:
11995         support dibv5, fix bugs. (from Mike Alexander)
11996
11997         * select.c (Fget_selection_internal):
11998         * select.c (select_convert_out):
11999
12000         * sysdep.c:
12001         * sysdep.c (xemacs_stat):
12002         renamed.
12003
12004         * sysdep.c (mkdir):
12005         * sysdep.c (rmdir):
12006         but keep original stat() here because we provide encapsulation
12007         around these funs.
12008
12009         * sysfile.h:
12010         * sysfile.h (fstat):
12011         remove stat garbage.
12012
12013         * syswindows.h:
12014         fix X/MSW conflict.
12015         don't include tchar.h.  it's inappropriate because it makes
12016         compile-time distinctions when we want runtime distinctions.
12017         (we provide our own tchar replacements)
12018
12019         * toolbar.c:
12020         use default object printer for toolbar-button.
12021
12022         * unexcw.c:
12023         make sure we don't encapsulate.
12024
12025         * window.c (vars_of_window):
12026         emphasize that temp-buffer-show-hook is obsolete.
12027
12028 2000-08-05  Martin Buchholz  <martin@xemacs.org>
12029
12030         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
12031         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
12032
12033         * events.c (Fevent_timestamp_lessp):
12034         Not 64-bit clean.  Use EMACS_INT, not int.
12035
12036 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
12037
12038         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
12039         unsigned int and changed the last enum to
12040         lrecord_type_last_built_in_type.
12041         (lrecord_implementations_table): changed prototype to know how
12042         long the array is supposed to be.
12043         (lrecord_type_count): new unsigned int to keep track of the
12044         current number of lisp lrecord types.
12045         (DEFINE_EXTERNAL_LRECORD):
12046         (DECLARE_EXTERNAL_LRECORD): Added these two for external
12047         dynamic-modules to declare new lisp types. They are the same
12048         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
12049         int for each new type, and increment lrecord_type_count by 1.
12050
12051         * alloc.c (lrecord_implementations_table): Changed to reference
12052         lrecord_type_last_built_in_type for the size of the array.
12053         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
12054
12055 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12056
12057         * glyphs.h (check_valid_item_list): Renamed from
12058         check_valid_item_list_1.
12059
12060 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
12061
12062         * select.c (Qselect_coerce): New.
12063         * select.c (Vselection_coercion_alist): New.
12064         * select.c (syms_of_select): Declare.
12065         * select.c (get-selection-internal): Use it.
12066         Use the new select-coerce functionality.
12067
12068         * select.c (select_coerce): New.
12069         * select.h (select_coerce): Declare.
12070         New function to coerce one type of data into another.
12071
12072 2000-08-03  Martin Buchholz  <martin@xemacs.org>
12073
12074         * callproc.c (Fcall_process_internal):
12075         (Fcall_process_internal):
12076         * process-unix.c (unix_create_process):
12077         Save and restore the value of errno, so that error messages are accurate.
12078
12079 2000-08-01  Martin Buchholz  <martin@xemacs.org>
12080
12081         * elhash.c (print_hash_table):
12082         Fix printing of hash tables to also use `key-and-value' instead of `t'.
12083         Prettify docstrings and indentation.
12084
12085 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
12086
12087         * window.c (Fwindow_pixel_edges): Subtract frame border and
12088         gutter size.
12089
12090 2000-07-31  Andy Piper  <andy@xemacs.org>
12091
12092         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
12093         will acknowledge the change.
12094
12095         * glyphs.h: declare tab_control_order_only_changed.
12096
12097         * glyphs-x.c (x_tab_control_redisplay): use
12098         tab_control_order_only_changed.
12099
12100         * glyphs-widget.c (tab_control_order_only_changed): new function.
12101
12102         * glyphs-msw.c (mswindows_tab_control_redisplay): use
12103         tab_control_order_only_changed.
12104
12105         * gui.c (gui_item_equal_sans_selected): new function.
12106         (gui_item_equal): use it.
12107
12108         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
12109         :properties in favor of :items..
12110
12111         * glyphs-widget.c (check_valid_item_list): rename from
12112         check_valid_item_list_1.
12113         (check_valid_item_list_1): renamed.
12114         (combo_box_validate): deprecate :properties in favor of :items.
12115         (widget_instantiate): ditto.
12116         (tab_control_update): ditto.
12117         (image_instantiator_combo_box): ditto.
12118         (image_instantiator_tree_view): ditto.
12119         (image_instantiator_tab_control): ditto.
12120         (layout_post_instantiate): remove dead code.
12121
12122         * print.c (debug_print_no_newline): only write to debugger if in
12123         WIN32_NATIVE.
12124
12125         * elhash.c (Fmake_hash_table): update doc string.
12126
12127         * event-msw.c (mswindows_wnd_proc): don't allow processing of
12128         messages whilst in GC. This at least stops XEmacs crashing but has
12129         the potential for wierd behaviour.
12130
12131 2000-07-31  Martin Buchholz  <martin@xemacs.org>
12132
12133         * config.h.in:
12134         Make existence of s&m files optional.
12135
12136         * s/bsd386.h: Remove HAVE_GETLOADAVG.
12137         * s/freebsd.h: Remove HAVE_GETLOADAVG.
12138         * s/gnu.h: Remove HAVE_GETLOADAVG.
12139         * s/netbsd.h: Remove HAVE_GETLOADAVG.
12140         * s/sol2.h: Remove HAVE_GETLOADAVG.
12141         * lisp.h: Remove getloadavg() declaration.
12142         * fns.c:
12143         Include <sys/loadavg.h> if available.
12144         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
12145         * config.h.in:  Group together getloadavg()-related macros.
12146         Use only configure-time tests to detect getloadavg().
12147
12148 2000-07-30  Martin Buchholz  <martin@xemacs.org>
12149
12150         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
12151
12152 2000-07-25  Andy Piper  <andy@xemacs.org>
12153
12154         * syswindows.h: add tchar.h for native builds.
12155
12156         * frame.c (syms_of_frame): remove set-glyph-image.
12157
12158         * general-slots.h: add Qset_glyph_image.
12159
12160         * glyphs-widget.c (layout_update): add domain arg to
12161         set-glyph-image.
12162         (syms_of_glyphs_widget): remove set-glyph-image.
12163
12164 2000-07-23  Ben Wing  <ben@xemacs.org>
12165
12166         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
12167         Vpopup_frame_list.
12168
12169 2000-07-22  Andy Piper  <andy@xemacs.org>
12170
12171         * symsinit.h: add syms_of_win32().
12172
12173         * gui-msw.c (syms_of_gui_mswindows): remove
12174         Fmswindows_shell_execute.
12175         (Fmswindows_shell_execute): moved to win32.c.
12176
12177         * emacs.c (main_1): add syms_of_win32 ().
12178
12179         * win32.c (init_potentially_nonexistent_functions): rewrite in
12180         compiler-friendly terms.
12181         (Fmswindows_shell_execute): move here from gui-msw.c.
12182         (syms_of_win32): new.
12183
12184         * device-msw.c (Fmswindows_printer_list): clean up args to
12185         EnumPrinters.
12186         Don't include tchar under cygwin or mingw.
12187         (msprinter_default_printer): make cygwin-friendly.
12188
12189 2000-07-21  Andy Piper  <andy@xemacs.org>
12190
12191         * glyphs-widget.c (image_instantiator_tree_view): use tab
12192         control's update function.
12193         (layout_property): new function. Retrieve items.
12194
12195         * glyphs-msw.c (mswindows_tree_view_redisplay): new
12196         function. Re-populate the tree view from the pending items.
12197
12198         * glyphs.c (instantiate_image_instantiator): Make sure the domain
12199         is designated the parent if the domain is an image instance. This
12200         is needed so that dirtiness can be cascade up the hierarchy and
12201         thus for layout children to be redisplayed correctly.
12202         (allocate_image_instance): rename glyph -> parent.
12203
12204         * redisplay.h: change redisplay_output_layout signature.
12205
12206         * redisplay-msw.c (mswindows_output_display_block): use domain
12207         arg.
12208
12209         * redisplay-x.c (x_output_display_block): use domain arg.
12210
12211 2000-07-10  Andy Piper  <andy@xemacs.org>
12212
12213         * window.c (Fset_window_configuration): add comment.
12214
12215         * redisplay-output.c (compare_runes):
12216         (redisplay_output_subwindow): redisplay rather than update subwindow.
12217         (redisplay_output_layout): ditto.
12218
12219         * redisplay-msw.c (mswindows_frame_output_end):
12220         (mswindows_frame_output_end): make defer window pos optional.
12221
12222         * lisp.h: add Flast.
12223
12224         * glyphs.h (struct image_instantiator_methods): add dest_mask top
12225         normalize method. Change update method to be for changed
12226         instantiators. Add redisplay method. Change signature of layout
12227         method.
12228         (struct Lisp_Image_Instance): add instantiator.
12229         (IMAGE_INSTANCE_INSTANTIATOR): new.
12230         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
12231         (XIMAGE_INSTANCE_INSTANTIATOR): new.
12232         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
12233
12234         * glyphs.c:
12235         (find_instantiator_differences): new function.
12236         (Fset_instantiator_property): new convenience function.
12237         (check_image_instance_structure): strictly check for vector
12238         instantiators.
12239         (normalize_image_instantiator): make non-static.
12240         (instantiate_image_instantiator): pass on dest_mask and use new
12241         signatures for image_instance_layout and friends.
12242         (mark_image_instance): mark the instantiator. Mark the subwindow
12243         face not the widget face.
12244         (image_instance_equal): add instantiator.
12245         (image_instance_hash): ditto.
12246         (allocate_image_instance): ditto.
12247         (Fset_image_instance_property): removed.
12248         (Fimage_instance_file_name): ditto.
12249         (Fcolorize_image_instance): ditto.
12250         (image_instance_layout): add offsets to be set.
12251         (update_image_instance): new function. update an image instance
12252         from its changed instantiator.
12253         (inherit_normalize): add dest_mask.
12254         (xbm_normalize): ditto.
12255         (xface_normalize): ditto.
12256         (xpm_normalize): ditto.
12257         (text_update): set_property -> update.
12258         (image_instantiate): use the glyph identity as a hash key, not the
12259         instantiator.
12260         (glyph_width): use new image_instance_layout signature.
12261         (glyph_ascent): ditto.
12262         (glyph_descent): ditto.
12263         (glyph_height): ditto.
12264         (glyph_query_geometry): ressurrect.
12265         (glyph_layout): ditto.
12266         (redisplay_subwindow): update -> redisplay.
12267         (syms_of_glyphs): add Fset_instantiator_property.
12268         (image_instantiator_format_create): set_property -> update.
12269
12270         * glyphs-x.c:
12271         (autodetect_normalize): add dest_maks to signature.
12272         (x_redisplay_subwindow): update -> redisplay.
12273         (x_redisplay_widget): ditto.
12274         (x_button_redisplay): ditto.
12275         (x_progress_gauge_redisplay): ditto.
12276         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
12277         stacking order.
12278         (console_type_create_glyphs_x): update -> redisplay.
12279         (image_instantiator_format_create_glyphs_x): ditto.
12280
12281         * glyphs-widget.c:
12282         (check_valid_instantiator): disallow glyphs in the instantiator,
12283         they must now be vectors.
12284         (check_valid_instantiator_list): ditto.
12285         (glyph_instantiator_to_glyph): use internal symbol rather than
12286         intern.
12287         (widget_update): renamed from widget_set_property. Call cascaded
12288         update methods.
12289         (redisplay_widget): renamed from update_widget.
12290         (widget_layout): image_instance_layout now takes position as well
12291         as size.
12292         (widget_normalize): ditto.
12293         (widget_instantiate): ditto.
12294         (tab_control_query_geometry) ditto.:
12295         (tab_control_update): renamed from tab_control_set_property.
12296         (progress_gauge_update): set_property -> update.
12297         (layout_normalize): rewrite so that child instantiators are
12298         normalized also.
12299         (layout_update): new function. Create glyphs from the normalized
12300         children and cope with any other layout keywords. We do not
12301         instantiate children here that will be take care of by
12302         redisplay_output_layout.
12303         (layout_instantiate): call layout_update and not much else.
12304         (layout_post_instantiate): not sure whether this is needed
12305         anymore.
12306         (layout_query_geometry): query glyph geometry rather than
12307         image_instance geometry.
12308         (layout_layout): set offsets from pass in parameters. Use glyph
12309         geometry and layout functions rather than image instance ones.
12310         (native_layout_layout): ditto.
12311         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
12312         (image_instantiator_widget): set_property -> update.
12313         (image_instantiator_buttons): ditto.
12314         (image_instantiator_progress_guage): ditto.
12315         (image_instantiator_tab_control): ditto.
12316         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
12317         (image_instantiator_layout): add update method.
12318
12319         * glyphs-msw.c (bmp_normalize):
12320         (mswindows_resource_normalize): add dest_mask so that it can be
12321         proprogated by layout_normalize.
12322         (begin_defer_window_pos): make optional because it may not be the
12323         right thing to do and it introduces differences with X.
12324         (mswindows_unmap_subwindow): ditto.
12325         (mswindows_map_subwindow): ditto.
12326         (mswindows_redisplay_subwindow): renamed from
12327         mswindows_update_subwindow.
12328         (mswindows_redisplay_widget): ditto.
12329         (mswindows_button_redisplay): renamed from
12330         mswindows_button_update. Update is now what the instantiation
12331         function does for a changed instantiator.
12332         (mswindows_progress_gauge_instantiate): set the progress value
12333         here if appropriate.
12334         (mswindows_tab_control_redisplay): cope with re-ordering of the
12335         members of the tab widget by simply selecting the new top
12336         widget. This makes things appear ok if you click on a tab.
12337         (mswindows_combo_box_instantiate): image_instance_layout now takes
12338         position as well as size.
12339         (mswindows_progress_gauge_redisplay): renamed from
12340         mswindows_progress_gauge_update.
12341         (console_type_create_glyphs_mswindows): fix update -> redisplay.
12342         (image_instantiator_format_create_glyphs_mswindows): ditto.
12343
12344         * glyphs-eimage.c (jpeg_normalize):
12345         (gif_normalize):
12346         (png_normalize):
12347         (tiff_normalize): add dest_mask so that it can be proprogated by
12348         layout_normalize.
12349
12350         * elhash.c:
12351         (print_hash_table):
12352         (hash_table_weakness_validate):
12353         (decode_hash_table_weakness):
12354         (Fhash_table_weakness):
12355         (Fhash_table_type):
12356         (syms_of_elhash): use Ben's naming scheme for hashtable types..
12357
12358         * console.h (struct console_methods): move update_* to
12359         redisplay_*.
12360
12361 2000-07-20  Ben Wing  <ben@xemacs.org>
12362
12363         * *.[ch] (XSETOBJ): remove unused middle argument.
12364         lisp-disunion.h: correct wrap_object() to one argument.
12365
12366 2000-07-15  Ben Wing  <ben@xemacs.org>
12367
12368         * s/cygwin32.h:
12369         * s/cygwin32.h (CYGWIN_CONV_PATH):
12370         Add missing logb prototype for v1.1.
12371         Use post-b20 names and alias to pre-b20 names when pre-b20.
12372
12373         * s/windowsnt.h: [5].
12374
12375 2000-07-15  Ben Wing  <ben@xemacs.org>
12376
12377         * Makefile.in.in (x_objs):
12378         * Makefile.in.in (sheap_objs):
12379         * Makefile.in.in (objs):
12380         added win32.o, cosmetic cleanups.
12381
12382         * alloc.c (Fmake_byte_code):
12383         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12384         etc. macros which declare their own args now.
12385
12386         * alloc.c (syms_of_alloc):
12387         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12388
12389         * buffer.c:
12390         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12391
12392         * buffer.c (Fget_file_buffer):
12393         Fixed GCPRO problem.
12394
12395         * buffer.c (get_truename_buffer):
12396         Fixed comment about GC checking.
12397
12398         * buffer.c (syms_of_buffer):
12399         Undeclared those dedicated frame funs.
12400         [2].
12401
12402         * buffer.h:
12403         Define convenience macros for internal/external conversions.
12404         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12405         and Qenvironment_variable_encoding for cleaner code.
12406
12407         * bufslots.h:
12408         Remove dedicated-frame; in lisp.
12409
12410         * bytecode.c (funcall_compiled_function):
12411         [1].
12412
12413         * bytecode.c (syms_of_bytecode):
12414         [2].
12415
12416         * console-msw.c:
12417         * console-msw.c (mswindows_show_console): Rewrote.
12418
12419         * console-msw.c (Fmswindows_debugging_output): New.
12420         Sends to OutputDebugString (special MSWin debugger interface).
12421
12422         * console-msw.c (Fmswindows_message_box):
12423         Fixed stupid bugs so it works when called from kill-emacs.
12424
12425         * console-msw.c (syms_of_console_mswindows):
12426         Declare Fmswindows_debugging_output.
12427
12428         * console-msw.h:
12429         New MSWin prototypes.
12430
12431         * console-msw.h (struct mswindows_frame):
12432         New entry last-click-mods for improved button-modifier support.
12433
12434         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12435         New struct entry `popup' with corresponding accessor.
12436
12437         * console-x.c:
12438         * console-x.c (split_up_display_spec):
12439         * console-x.c (get_display_arg_connection):
12440         * console-x.c (x_semi_canonicalize_console_connection):
12441         * console-x.c (x_canonicalize_device_connection):
12442         [[[6]]]: Change char to more specific type.
12443         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12444
12445         * console-x.c (x_semi_canonicalize_console_connection):
12446         * console-x.c (x_canonicalize_device_connection):
12447         [[[9]]]: Fix up error signalling to use new structured error system.
12448
12449         * console-x.h:
12450         [[[4]]]: Define codesys aliases:
12451         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12452         Qx_color_name_encoding, Qx_display_name_encoding.
12453
12454         * console.h (struct console_methods):
12455         New method make_dialog_box_internal supersedes older
12456         popup_dialog_box method.
12457
12458         * data.c:
12459         Define many new errors, part of new structured errors.
12460
12461         * data.c (init_errors_once_early):
12462         * data.c (syms_of_data):
12463         [2].
12464
12465         * device-msw.c (mswindows_init_device):
12466         [[[5]]]: Cleanup to support NT 3.51.
12467
12468         * device-msw.c (decode_devmode): Cleanup.
12469
12470         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12471         * device-msw.c (mswindows_handle_print_dialog_box):
12472         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12473         * device-msw.c (syms_of_device_mswindows):
12474         Delete the dialog box primitives recently introduced by Kirill and
12475         instead interface to general dialog box interface.
12476
12477         * device-x.c:
12478         * device-x.c (compute_x_app_name):
12479         * device-x.c (x_init_device):
12480         * device-x.c (Fx_valid_keysym_name_p):
12481         * device-x.c (Fx_set_font_path):
12482         [6].
12483         [7].
12484
12485         * device.h (wrap_device): New.
12486         First of its kind; meant to replace XSETDEVICE.
12487
12488         * dialog-msw.c: Many file-dialog symbols.
12489
12490         * dialog-msw.c (mswindows_register_popup_frame): New.
12491         * dialog-msw.c (mswindows_is_dialog_msg): New.
12492         For supporting kbd traversal in dialog boxes.
12493
12494         * dialog-msw.c (dialog_proc):
12495         Support hitting ESC in dialogs.
12496
12497         * dialog-msw.c (struct):
12498         Common dialog box errors.
12499
12500         * dialog-msw.c (handle_file_dialog_box): New.
12501         Add file dialog code.
12502
12503         * dialog-msw.c (handle_question_dialog_box):
12504         Redo existing code to support new question dialog syntax.
12505
12506         * dialog-msw.c (console_type_create_dialog_mswindows):
12507         We support new dialog console method.
12508
12509         * dialog-msw.c (syms_of_dialog_mswindows):
12510         * dialog-msw.c (vars_of_dialog_mswindows):
12511         New file dialog symbols, vars.
12512
12513         * dialog-x.c:
12514         * dialog-x.c (maybe_run_dbox_text_callback):
12515         * dialog-x.c (dbox_descriptor_to_widget_value):
12516         * dialog-x.c (x_make_dialog_box_internal):
12517         * dialog-x.c (console_type_create_dialog_x):
12518         Mule-ize entire file.
12519         Redo to support question dialog syntax.
12520         [6].
12521
12522         * dialog.c:
12523         * dialog.c (Fmake_dialog_box_internal):
12524         * dialog.c (syms_of_dialog):
12525         Kill old popup-dialog-box, replace with new primitive.
12526         Just call device method or signal error.
12527
12528         * eldap.c (Fldap_open):
12529         * eldap.c (Fldap_search_basic):
12530         * eldap.c (Fldap_add):
12531         * eldap.c (Fldap_modify):
12532         [1].
12533         [7].
12534
12535         * emacs.c:
12536         * emacs.c (make_arg_list_1):
12537         * emacs.c (make_arg_list):
12538         Mule-ize call to dll_init().
12539         [6].
12540         [8].
12541
12542         * emacs.c (make_argc_argv):
12543         * emacs.c (free_argc_argv):
12544         * emacs.c (init_cmdargs):
12545         * emacs.c (main_1):
12546         * emacs.c (Fkill_emacs):
12547         * emacs.c (Fdump_emacs):
12548         Update comments about what can be used in syms_* etc.
12549         Call init_win32() when necessary.
12550         Fix up MS Win dialog box in kill-buffer to actually work right.
12551         [7].
12552
12553         * eval.c:
12554         * eval.c (For):
12555         * eval.c (Fand):
12556         * eval.c (Fprogn):
12557         * eval.c (Fprog1):
12558         * eval.c (Fprog2):
12559         * eval.c (FletX):
12560         * eval.c (Flet):
12561         * eval.c (condition_case_3):
12562         * eval.c (Feval):
12563         * eval.c (function_argcount):
12564         * eval.c (funcall_lambda):
12565         [1].
12566
12567         * eval.c (type_error): New.
12568         * eval.c (maybe_type_error): New.
12569         * eval.c (continuable_type_error): New.
12570         * eval.c (maybe_continuable_type_error): New.
12571         * eval.c (type_error_with_frob): New.
12572         * eval.c (maybe_type_error_with_frob): New.
12573         * eval.c (continuable_type_error_with_frob): New.
12574         * eval.c (maybe_continuable_type_error_with_frob): New.
12575         New functions for use with structured errors.
12576
12577         * event-Xt.c:
12578         * event-Xt.c (x_event_to_emacs_event):
12579         Buttons are now modifiers too.
12580
12581         * event-Xt.c (emacs_Xt_current_event_timestamp):
12582         Implement new event method.
12583         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12584
12585         * event-msw.c:
12586         * event-msw.c (ntpipe_shove_writer): [5].
12587         * event-msw.c (mswindows_enqueue_mouse_button_event):
12588         * event-msw.c (mswindows_drain_windows_queue):
12589         * event-msw.c (mswindows_wnd_proc): [7].
12590         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12591         * event-msw.c (mswindows_modifier_state):
12592         Throughout: support new button modifiers.
12593
12594         * event-msw.c (emacs_mswindows_current_event_timestamp):
12595         Implement new event method.
12596         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12597
12598         * event-stream.c:
12599         * event-stream.c (event_stream_current_event_timestamp): New.
12600         * event-stream.c (maybe_kbd_translate): New functionality.
12601         * event-stream.c (vars_of_event_stream):
12602         Document new kbd-translate-table functionality.
12603
12604         * event-stream.c (Fcurrent_event_timestamp): New.
12605         New primitive for use in fabricated events.
12606         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12607
12608         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12609
12610         * events.c:
12611         * events.c (Fmake_event):
12612         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12613         [1].
12614         [9].
12615
12616         * events.c (format_event_object): fix gcc warnings.
12617
12618         * events.c (Fevent_timestamp): Document new primitives.
12619
12620         * events.c (TIMESTAMP_HALFSPACE): New.
12621
12622         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12623         comparing timestamps correctly (half-space algorithm).
12624
12625         * events.c (Fevent_modifier_bits): Doc fix.
12626
12627         * events.c (Fevent_modifiers): Major doc addition.
12628         * events.c (event_x_y_pixel_internal): Typo fix.
12629         * events.c (syms_of_events): Declare new primitives.
12630
12631         * events.h:
12632         Update long comment for button modifiers, timestamps.
12633
12634         * events.h (struct event_stream):
12635         New current_event_timestamp method.
12636
12637         * extents.c:
12638         * extents.c (extent_in_region_p):
12639         * extents.c (decode_extent):
12640         * extents.c (Fset_extent_parent):
12641         * extents.c (decode_map_extents_flags):
12642         Fix gcc warnings.
12643         [9].
12644
12645         * extents.c (struct extent_at_arg):
12646         * extents.c (decode_extent_at_flag):
12647         * extents.c (extent_at_mapper):
12648         * extents.c (extent_at_bytind):
12649         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12650         * extents.c (Fextents_at): New primitive. [9].
12651         * extents.c (symbol_to_glyph_layout): [9].
12652         Support new primitive `extents-at'.
12653
12654
12655         * extents.c (get_text_property_bytind):
12656         extent_at_bytind has another arg.
12657         [9].
12658
12659         * extents.c (syms_of_extents): New primitive.
12660
12661         * file-coding.c (Fmake_coding_system): [1].
12662         * file-coding.c (subsidiary_coding_system): fix gcc warning
12663         * file-coding.c (syms_of_file_coding): [2].
12664
12665         * fileio.c (Fexpand_file_name):
12666         * fileio.c (Fsysnetunam):
12667         * fileio.c (Ffile_exists_p):
12668         * fileio.c (Ffile_executable_p):
12669         * fileio.c (Fverify_visited_file_modtime):
12670         Clean up GCPROing.
12671
12672         * fileio.c (syms_of_fileio): [2].
12673
12674         * filelock.c (lock_file_1):
12675         * filelock.c (current_lock_owner):
12676         * filelock.c (lock_if_free):
12677         * filelock.c (lock_file):
12678         * filelock.c (unlock_file):
12679         Clean up GCPROing.
12680
12681         * fns.c (concat): Fix gcc warning.
12682
12683         * fns.c (Fmember):
12684         * fns.c (Fold_member):
12685         * fns.c (Fmemq):
12686         * fns.c (Fold_memq):
12687         * fns.c (memq_no_quit):
12688         * fns.c (Fassoc):
12689         * fns.c (Fold_assoc):
12690         * fns.c (Fassq):
12691         * fns.c (Fold_assq):
12692         * fns.c (assq_no_quit):
12693         * fns.c (Frassoc):
12694         * fns.c (Fold_rassoc):
12695         * fns.c (Frassq):
12696         * fns.c (Fold_rassq):
12697         * fns.c (rassq_no_quit):
12698         * fns.c (Fdelete):
12699         * fns.c (Fold_delete):
12700         * fns.c (Fdelq):
12701         * fns.c (Fold_delq):
12702         * fns.c (delq_no_quit):
12703         * fns.c (Fremassoc):
12704         * fns.c (Fremassq):
12705         * fns.c (remassq_no_quit):
12706         * fns.c (Fremrassoc):
12707         * fns.c (Fremrassq):
12708         * fns.c (remrassq_no_quit):
12709         * fns.c (Freverse):
12710         * fns.c (mapcar1):
12711         [1].
12712
12713         * frame-msw.c (mswindows_init_frame_1):
12714         * frame-msw.c (mswindows_delete_frame):
12715         Register popups with dialog code so keyboard traversing works.
12716
12717         * frame-tty.c (tty_raise_frame_no_select): [1].
12718
12719         * frame-x.c:
12720         * frame-x.c (x_set_frame_text_value):
12721         * frame-x.c (x_set_frame_properties):
12722         * frame-x.c (x_create_widgets):
12723         [7].
12724
12725         * frame.c:
12726         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12727
12728         * frame.h (wrap_frame): New.
12729         Macro like wrap_device.
12730
12731         * general.c:
12732         * general.c (SYMBOL):
12733         * general.c (syms_of_general):
12734         Major reorg.  This is now just a wrapper and symbols themselves
12735         are listed in general-slots.h.
12736
12737         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12738         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12739
12740         * glyphs-msw.c (mswindows_native_layout_instantiate):
12741         Add DS_CONTROL so keyboard traversal will work.
12742
12743         * glyphs-widget.c:
12744         * glyphs-widget.c (syms_of_glyphs_widget):
12745         Move some symbols to general-slots.h.
12746
12747         * glyphs-x.c:
12748         * glyphs-x.c (xbm_instantiate_1):
12749         * glyphs-x.c (x_xbm_instantiate):
12750         * glyphs-x.c (x_xface_instantiate):
12751         * glyphs-x.c (autodetect_instantiate):
12752         * glyphs-x.c (cursor_font_instantiate):
12753         * glyphs-x.c (x_update_widget):
12754         * glyphs-x.c (x_widget_instantiate):
12755         * glyphs.c (bitmap_to_lisp_data):
12756         * glyphs.c (pixmap_to_lisp_data):
12757         [7].
12758
12759         * glyphs.c (syms_of_glyphs):
12760         [2].
12761
12762         * gui-x.c:
12763         * gui-x.c (print_widget_value):
12764         * gui-x.c (menu_separator_style_and_to_external):
12765         * gui-x.c (add_accel_and_to_external):
12766         * gui-x.c (button_item_to_widget_value):
12767         * gui-x.c (gui_items_to_widget_values_1):
12768         * gui-x.c (gui_items_to_widget_values):
12769         * gui-x.c (syms_of_gui_x):
12770         * gui-x.c (vars_of_gui_x):
12771         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12772         [9].
12773
12774         * gui-x.h:
12775         Muleize, prototype changes matching gui-x.c.
12776
12777         * gui.c:
12778         * gui.c (separator_string_p):
12779         * gui.c (gui_item_add_keyval_pair):
12780         * gui.c (make_gui_item_from_keywords_internal):
12781         * gui.c (signal_too_long_error):
12782         * gui.c (parse_gui_item_tree_item):
12783         * gui.c (syms_of_gui):
12784         * gui.c (vars_of_gui):
12785         * gui.h:
12786         menu-no-selection-hook moved here (used by MSWin).
12787         Move some symbols to general-slots.h.
12788         [6].
12789         [9].
12790
12791         * insdel.c (get_buffer_pos_char):
12792         * insdel.c (get_buffer_range_char):
12793         Add GC comments.
12794
12795         * keymap.c (keymap_lookup_directly):
12796         * keymap.c (keymap_store):
12797         * keymap.c (ensure_meta_prefix_char_keymapp):
12798         * keymap.c (describe_map):
12799         * keymap.h:
12800         Support new button modifiers.
12801
12802         * lisp-disunion.h (wrap_object):
12803         * lisp-disunion.h (XSETOBJ):
12804         Rename make_obj to wrap_object.
12805
12806         * lisp-union.h:
12807         * lisp-union.h (make_int):
12808         * lisp-union.h (make_char):
12809         Support wrap_object.
12810
12811         * lisp.h:
12812         * lisp.h (LIST_LOOP):
12813         * lisp.h (EXTERNAL_LIST_LOOP):
12814         * lisp.h (LIST_LOOP_2):
12815         * lisp.h (EXTERNAL_LIST_LOOP_1):
12816         * lisp.h (EXTERNAL_LIST_LOOP_2):
12817         * lisp.h (EXTERNAL_LIST_LOOP_3):
12818         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12819         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12820         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12821         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12822         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12823         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12824         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12825         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12826         * lisp.h (struct Lisp_Symbol):
12827         * lisp.h (maybe_continuable_error_with_frob):
12828         Fix up section comments.
12829         Add new types for char to indicate usage.
12830         Delete symbols auto-generated from general-slots.h.
12831         Add prototypes for structured error functions.
12832         Add long comments describing looping macros and change interface
12833         so that lvalues are automatically declared.
12834         Add NO_DECLARE macro in case callers want to declare lvalues
12835         themselves.
12836
12837         * lread.c (read_syntax_error):
12838         * lread.c (continuable_read_syntax_error):
12839         * lread.c (read_structure):
12840         * lread.c (sequence_reader):
12841         * lread.c (read_list_conser):
12842         * lread.c (read_compiled_function):
12843         Rename syntax_error and continuable_syntax_error to avoid clash
12844         with same-named structured error functions.
12845
12846         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12847         * menubar-msw.c (populate_menu_add_item):
12848         * menubar-msw.c (populate_or_checksum_helper):
12849         [5].
12850         [9].
12851
12852         * menubar-x.c:
12853         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12854         Mule-ize whole file.
12855
12856         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12857
12858         * mule-charset.c (Fmake_charset):
12859         * mule-wnnfns.c (Fwnn_set_param):
12860         [1].
12861
12862         * ntproc.c (create_child):
12863         * ntproc.c (Fwin32_set_current_locale):
12864         Add comments portending doom.
12865
12866         * objects-msw.c:
12867         * objects-msw.c (old_font_enum_callback_2):
12868         * objects-msw.c (font_enum_callback_1):
12869         * objects-msw.c (mswindows_enumerate_fonts):
12870         [5].
12871
12872         * objects-x.c:
12873         * objects-x.c (allocate_nearest_color):
12874         * objects-x.c (x_parse_nearest_color):
12875         * objects-x.c (x_initialize_color_instance):
12876         * objects-x.c (x_print_color_instance):
12877         * objects-x.c (x_finalize_color_instance):
12878         * objects-x.c (x_valid_color_name_p):
12879         * objects-x.c (x_initialize_font_instance):
12880         * objects-x.c (x_print_font_instance):
12881         * objects-x.c (valid_x_font_name_p):
12882         * objects-x.c (truename_via_FONT_prop):
12883         * objects-x.c (truename_via_random_props):
12884         * objects-x.c (truename_via_XListFonts):
12885         * objects-x.c (x_font_truename):
12886         * objects-x.c (x_font_instance_truename):
12887         * objects-x.c (x_font_instance_properties):
12888         * objects-x.c (x_list_fonts):
12889         * objects-x.c (x_find_charset_font):
12890         Mule-ize entire file.
12891         [7].
12892
12893         * objects-x.h:
12894         Mule-verify.
12895
12896         * print.c:
12897         * print.c (std_handle_out_external):
12898         * print.c (debug_print_no_newline):
12899         * print.c (syms_of_print):
12900         Output to all debugger kinds in debug-print.
12901         Fix console-output code under MSWin to actually work.
12902
12903         * process-nt.c (send_signal):
12904         * process-nt.c (nt_create_process):
12905         Use newer Unicode macros.
12906
12907         * process-unix.c (unix_create_process):
12908         * process-unix.c (unix_canonicalize_host_name):
12909         * process-unix.c (unix_open_network_stream):
12910         [7].
12911
12912         * scrollbar-x.c:
12913         Mule-verify.
12914
12915         * search.c (syms_of_search):
12916         [2].
12917
12918         * select-msw.c (mswindows_destroy_selection):
12919         Use LIST_LOOP_2.
12920
12921         * select-x.c (symbol_to_x_atom):
12922         [7].
12923
12924         * select.c (syms_of_select):
12925         [2].
12926
12927         * sound.c (Fplay_sound_file):
12928         [7].
12929
12930         * specifier.c:
12931         * specifier.c (decode_specifier_type):
12932         * specifier.c (Fvalid_specifier_locale_type_p):
12933         * specifier.c (check_valid_locale_or_locale_type):
12934         * specifier.c (decode_locale):
12935         * specifier.c (decode_locale_type):
12936         * specifier.c (decode_locale_list):
12937         * specifier.c (check_valid_domain):
12938         * specifier.c (decode_specifier_tag_set):
12939         * specifier.c (Fcanonicalize_tag_set):
12940         * specifier.c (Fdefine_specifier_tag):
12941         * specifier.c (Fspecifier_tag_predicate):
12942         * specifier.c (check_valid_inst_list):
12943         * specifier.c (check_valid_spec_list):
12944         * specifier.c (decode_how_to_add_specification):
12945         * specifier.c (check_modifiable_specifier):
12946         * specifier.c (specifier_add_spec):
12947         * specifier.c (boolean_validate):
12948         * specifier.c (display_table_validate):
12949         [9].
12950
12951         * specifier.c (syms_of_specifier):
12952         Move some symbols to general-slots.h.
12953         [2].
12954
12955         * symbols.c:
12956         * symbols.c (Fmapatoms):
12957         * symbols.c (Fapropos_internal):
12958         Add GCPROs.
12959
12960         * symbols.c (set_default_buffer_slot_variable):
12961         * symbols.c (set_default_console_slot_variable):
12962         [1].
12963
12964         * symbols.c (defsymbol_massage_name_1):
12965         * symbols.c (defkeyword_massage_name):
12966         * symbols.c (deferror_1):
12967         * symbols.c (deferror):
12968         * symbols.c (deferror_massage_name_and_message):
12969         * symeval.h:
12970         * symeval.h (DEFSYMBOL):
12971         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12972
12973         * symbols.c (syms_of_symbols):
12974         [2].
12975
12976         * symsinit.h:
12977         * symsinit.h (init_win32): New.
12978         Also new is syms_of_dialog_mswindows.
12979
12980         * syswindows.h:
12981         Add new Unicode macros, missing Cygwin wide-char functions,
12982         convenience conversion macros for Qmswindows_tstr, macros for
12983         encapsulating required MSWin <-> Cygwin filename conversions,
12984         prototype for dynamically-extracted (not in NT 3.51) functions.
12985
12986         * toolbar-x.c:
12987         Mule-verify.
12988
12989         * tooltalk.c (Fadd_tooltalk_message_arg):
12990         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12991         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12992         [7].
12993
12994         * tooltalk.c (syms_of_tooltalk):
12995         [2].
12996
12997         * unexnt.c:
12998         * unexnt.c (unexec):
12999         Fix up headers, declaration of unexec() to be more standard.
13000
13001 2000-07-20  Martin Buchholz  <martin@xemacs.org>
13002
13003         * offix.h: Revert change to guard macros - they're used in offix.c!
13004
13005 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13006
13007         * lisp.h: Defsubred Fdelete.
13008
13009         * console-msw.h:  (msprinter_default_printer): Added.
13010
13011         * console-msw.c (msprinter_canonicalize_console_connection):
13012         (msprinter_canonicalize_device_connection): Added.
13013
13014         * device-msw.c (msprinter_default_printer):
13015         (Fmswingows_get_default_printer):
13016         (signal_enum_priner_error):
13017         (Fmswingows_printer_list): Added.
13018
13019 2000-07-19  Martin Buchholz <martin@xemacs.org>
13020
13021         * XEmacs 21.2.35 is released.
13022
13023 2000-07-19  Martin Buchholz  <martin@xemacs.org>
13024
13025         * select-x.c (x_handle_selection_request):
13026         Text selected in xemacs and pasted into xterm failed to appear.
13027         Spelling fixes and cosmetic changes.
13028
13029 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13030
13031         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
13032         XEmacs frame (fix for doubling chars in dialog boxes).
13033
13034 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
13035
13036         * select.c (select_convert_in, select_convert_out):
13037         Don't call intern() every time.
13038
13039         * select.c (Qselect_convert_in, Qselect_convert_out): New.
13040         * select.c (vars_of_select): Initialise them.
13041
13042 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
13043
13044         * select.c (selection-coercible-types): New.
13045
13046         * select.c (own-selection-internal):
13047         * select.c (get-selection-internal):
13048         MULE bug fix - these should default to COMPOUND_TEXT and not
13049         STRING for MULE. I think.
13050
13051         * select.c (select_convert_out): Use selection-coercible-types
13052         to find types that we can attempt to perform coercions on.
13053
13054 2000-07-18  Martin Buchholz  <martin@xemacs.org>
13055
13056         * mule-wnnfns.c:
13057         * mule-canna.c:
13058         Add coding: cookie to identify encoding.
13059
13060         * mule-canna.c (CANNA_mode_keys): make static.
13061         Use proper prototypes, even for functions of no arguments.
13062         Remove external prototype for Fding().
13063
13064         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
13065
13066         * select.c (syms_of_select): Add missing DEFSUBR.
13067
13068 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
13069
13070         * select.c (get_selection_internal, own_selection_internal):
13071         Make the type default to STRING, rather than placing a nil type
13072         into Vselection_alist.
13073
13074 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
13075
13076         * gpmevent.c (tty_selection_exists_p):
13077         * gpmevent.c (tty_own_selection):
13078         Updated parameter lists.
13079
13080 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
13081
13082         * select.h (selection-alist): Removed declaration.
13083
13084         * select.h (get_local_selection):
13085         * select.c (get_local_selection):
13086         Made static.
13087
13088         * select.h (convert_selection): Removed declaration.
13089         * select.c (convert_selection): Removed.
13090         This function belongs in Lisp.
13091
13092         * select.h (select_convert_in): Declare.
13093         * select.h (select_convert_out): Declare.
13094         * select.c (select_convert_in): New.
13095         * select.c (select_convert_out): New.
13096         New conversion functions for other files to call.
13097
13098         * select.h (select_notify_buffer_kill): Declare.
13099         * select.c (select_notify_buffer_kill): New.
13100         New functions that get called from kill-buffer.
13101
13102         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
13103         X-specific lisp code.
13104
13105         * select.h: Declare some of the lisp-visible functions for
13106         external use.
13107
13108         * select.c (clean_local_selection_data): Removed. This was
13109         a disgusting function, and previously should have been in
13110         select-x.c in any case. The functionality is now provided
13111         in select-convert-from-integer (select.el).
13112
13113         * select.c (available-selection-types): Fixed stupidity where
13114         INTEGER and ATOM got added twice. Also add STRING when we see an
13115         extent.
13116
13117         * select.c (get-selection-internal): Removed symbol stripping. No
13118         longer causes conversion when data comes from the internal cache.
13119
13120         * select.c (syms_of_select): Added new functions.
13121
13122         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
13123         error checking - previously this called abort!
13124
13125         * select-x.c (x_own_selection): Changed comment.
13126
13127         * select-x.c (x_handle_selection_request): Use select_convert_out.
13128         Don't mess with selection-alist; it's an internal variable of select.c.
13129
13130         * select-x.c (x_get_foreign_selection): Use select_convert_in.
13131
13132         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
13133         rather than messing with selection-alist.
13134
13135         * select-msw.c (mswindows_get_foreign_selection):
13136         Use TO_INTERNAL_FORMAT rather than hacking.
13137
13138 2000-07-14  Martin Buchholz  <martin@xemacs.org>
13139
13140         * process-unix.c (unix_open_multicast_group):
13141         (unix_open_multicast_group): Remove useless casts.
13142
13143 2000-07-13  Martin Buchholz  <martin@xemacs.org>
13144
13145         * sound.c (Fplay_sound): Fix `unused variable' warning.
13146
13147         * emacs.c (main): Use correct type for _environ on SCO5.
13148
13149 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
13150
13151         * console.h (own_selection_method):
13152         * console.h (selection_exists_p_method):
13153         * console.h (available_selection_types_method): New.
13154         * console.h (register_selection_data_type_method): New.
13155         * console.h (selection_data_type_name): New.
13156
13157         * console-msw.h (mswindows_destroy_selection): Declare it.  New
13158         function & alist to track GlobalAlloc()'d handles that need
13159         releasing when the clipboard data gets replaced or emptied.
13160
13161         * event-msw.c (mswindows_wnd_proc): Call it.
13162
13163         * lisp.h, general.c (Qappend): New symbol representing a
13164         `how-to-add' mode.
13165
13166         * select.c (own-selection-internal):
13167         * select.c (selection-exists-p):
13168         * select.c (available-selection-types): New.
13169         * select.c (register-selection-data-type): New.
13170         * select.c (selection-data-type-name): New.  New functions to deal
13171         with device-specific selection data formats.
13172         * select.c (selection-converter-out-alist): Renamed.
13173         * select.c (selection-converter-in-alist): New.
13174         * select.c (selection-appender-alist): New.  Added new alists.
13175         * select.c (syms_of_select, vars_of_select): Added new symbols &
13176         variables.
13177         * select.c (get_local_selection): Split.
13178         * select.c: Removed spurious type checking - selections may now be
13179         of any type, not just strings.
13180         * select.c (own-selection-internal):
13181
13182         * select.h, select.c (convert_selection): New. Created
13183         convert_selection() function based on get_local_selection().
13184         * select.h, select.c (QCF_*): New symbols representing mswindows
13185         clipboard formats.
13186         * select.h, select.c (Qreplace_all, Qreplace_existing): New
13187         symbols representing `how-to-add' modes.
13188
13189         * select-msw.c (x_sym_p): New.
13190         * select-msw.c (symbol_to_ms_cf): New.
13191         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
13192         symbols & clipboard formats. Can also handle string names.
13193         * select-msw.c (mswindows_own_selection):
13194         * select-msw.c (mswindows_selection_exists_p):
13195         Added `data-type' parameter. Use it.
13196         * select-msw.c (mswindows_available_selection_types): New.
13197         * select-msw.c (mswindows_register_selection_data_type): New.
13198         * select-msw.c (mswindows_selection_data_type_name): New.
13199         * select-msw.c (mswindows_own_selection):
13200         * select-msw.c (mswindows_get_foreign_selection):
13201         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
13202         * select-msw.c (console_create_select_mswindows): Added new methods.
13203         * select-msw.c (mswindows_destroy_selection): New.
13204         * select-msw.c (Vhandle_alist): New list.
13205         * select-msw.c (mswindows_own_selection):
13206
13207         * select-x.c (x_own_selection):
13208         * select-x.c (x_selection_exists_p):
13209         * select-x.c: Added some comments about maybe using new
13210         functionality.
13211         * select-x.c (x_own_selection):
13212
13213         * specifier.c: Remove definition of Qappend (now in general.c)
13214         * specifier.c (syms_of_specifier): Remove Qappend.
13215
13216 2000-07-12  Martin Buchholz  <martin@xemacs.org>
13217
13218         * config.h.in: Add socklen_t.
13219
13220         * s/decosf4-0.h: No special compiler flags needed or desired.
13221         In particular, undefine _BSD for DEC OSF 4.0.
13222
13223 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13224
13225         * redisplay-msw.c (msprinter_frame_output_end): Added.
13226         (console_type_create_redisplay_mswindows): Referred the above.
13227
13228         * frame.c (setup_frame_without_minibuffer): Do not create a
13229         default minibuffer frame on a printer device.
13230
13231         * frame-msw.c (apply_dc_geometry): Added.
13232         (msprinter_start_page):
13233         (msprinter_init_frame_3):
13234         (msprinter_eject_page): Use it.
13235
13236         * console-msw.h (struct msprinter_frame): Added pix_left and top,
13237         and removed residual duplex and orientation properties.
13238
13239 2000-07-11  Martin Buchholz  <martin@xemacs.org>
13240
13241         * eval.c (function_argcount): Work around a DEC CC compiler bug.
13242
13243         * unexalpha.c: Remove system prototypes from C sources!
13244
13245 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
13246
13247         * eval.c: Remove references to M-x edit-options in DEFUNs for
13248         `defvar' and `defconst'.
13249
13250 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13251
13252         * config.h.in: Remove SMART_INCLUDE hackery.
13253
13254         PostgreSQL hacking:
13255         * config.h.in: Don't use SMART_INCLUDE.
13256
13257         * postgresql.h: Include libpq-fe.h here.  Fix typo.
13258         * inline.c: Simply #include "postgresql.h"
13259         * postgresql.c:
13260         - Don't use SMART_INCLUDE
13261         - Use simply "const".
13262         - Use standard doc string conventions.
13263         - Use correct type for result of PQstatus.
13264
13265 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13266
13267         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
13268
13269         C++ compilation changes.
13270         * config.h.in (EXTERN_C): Define.
13271         * config.h.in (not): This is also a C++ keyword.
13272         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
13273         * cm.c: Use EXTERN_C.
13274         * redisplay-tty.c: Use EXTERN_C.
13275         * sysdep.c: Use EXTERN_C.  Remove Gould support.
13276
13277 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13278
13279         * general.c: Remove duplicate definition for Qfunction.
13280
13281 2000-07-08  Ben Wing  <ben@xemacs.org>
13282
13283         * device-msw.c (msprinter_init_device):
13284         * device-msw.c (sync_printer_with_devmode):
13285         * device-msw.c (handle_devmode_changes):
13286         * device-msw.c (print_dialog_worker):
13287         * device-msw.c (Fmsprinter_apply_settings):
13288         * device-msw.c (hash_devmode):
13289         * device-msw.c (Fmsprinter_settings_despecialize):
13290         use Qmswindows_tstr, not Qctext.
13291
13292         * vm-limit.c (check_memory_limits):
13293         avoid infinite loop printing warning messages.
13294
13295 2000-07-05  Craig Lanning  <lanning@scra.org>
13296
13297         * Makefile.in.in: Add support for including the Windows resources
13298         when building with the cygwin and mingw targets.
13299
13300         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
13301         not set or not correct.
13302         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
13303         (init_initial_directory): Don't try to use $PWD on the
13304         WIN32_NATIVE target.
13305
13306         * s\cygwin32.h:
13307         [[Add -mwindows to eliminate console window.]] not required --ben
13308         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13309         (MAIL_USE_POP): removed; now handled by configure.
13310
13311         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
13312         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
13313         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13314         (MAIL_USE_POP): removed; now handled by configure.
13315         (ENCAPSULATE_STAT): from Dan Holmsand, added.
13316         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
13317         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
13318         constant string.
13319         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
13320         up from <winsock.h> via systime.h.
13321         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
13322         (getpagesize): from Dan Holmsand, added.
13323         Added #endif which was left dangling by Ben's mega patch; added
13324         comment to help prevent this in the future.
13325
13326         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
13327
13328 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13329
13330         * console-msw.h (struct mswindows_device): Removed unnecessary
13331         cached device geometry values.
13332         Added update_tick and an accessor macro.
13333         (Lisp_Devmode): Added lrecord declaration.
13334         (struct msprinter_device): Contain devmode as a Lisp object.
13335         Added mswindows_get_selected_frame_hwnd();
13336
13337         * console.h (struct console_methods): Indentation nitpicking.
13338
13339         * device-msw.c (mswindows_init_device): Do not initialize geometry
13340         cache. Initialize update tick.
13341         (mswindows_device_system_metrics): Ask the device for its geometry.
13342         (global_free_2_maybe):
13343         (devmode_to_hglobal):
13344         (handle_printer_changes):
13345         (ensure_not_printing):
13346         (print_dialog_worker):
13347         (Fmsprinter_print_setup_dialog):
13348         (Fmsprinter_print_dialog):
13349         (plist_get_margin):
13350         (plist_set_margin):
13351         (Fmsprinter_page_setup_dialog): Added functions.
13352         (sync_printer_with_devmode):
13353         (handle_devmode_changes):
13354         (Fmsprinter_get_settings):
13355         (Fmsprinter_select_settings):
13356         (Fmsprinter_apply_settings):
13357         (allocate_devmode):
13358         (Fmsprinter_settings_copy):
13359         (Fmsprinter_settings_despecialize):
13360         (print_devmode):
13361         (finalize_devmode):
13362         (equal_devmode):
13363         (hash_devmode): Added functions
13364         (syms_of_device_mswindows): Init devmode lrecord class.
13365
13366         * device.h: Added an exfun for find-device.
13367
13368         * event-msw.c (mswindows_wnd_proc): Do not update the cached
13369         geometry; although, recreate the device compatible DC.
13370
13371         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13372         (msprinter_init_frame_3):
13373         (msprinter_frame_property):
13374         (msprinter_internal_frame_property_p):
13375         (msprinter_frame_properties):
13376         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13377         print job properties (will move to device settings).
13378
13379         * lisp.h: Added symbols.
13380
13381         * general.c (syms_of_general): Declared them.
13382
13383         * hash.c (string_hash): Added.
13384
13385         * lrecord.h (lrecord_type): Added devmode lrecord type.
13386
13387 2000-07-02  Mike Sperber <mike@xemacs.org>
13388
13389         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13390         FreeBSD 4.0.
13391
13392 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13393
13394         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13395         integer.
13396
13397 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13398
13399         * data.c (Fstring_to_number): Don't recognize floating point if
13400         base is not 10.
13401
13402 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13403
13404         * glyphs-widget.c (tab_control_query_geometry):
13405         (widget_query_geometry):
13406         (button_query_geometry):
13407         * glyphs.c (text_query_geometry):
13408         Enforce type correctness.
13409
13410 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13411
13412         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13413         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13414
13415 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13416
13417         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13418         conflicts with gcc's fixincluded version of FOO.h.
13419
13420         * glyphs.h (image_instance_geometry): Remove trailing `,'
13421
13422 2000-06-08  Mike Alexander  <mta@arbortext.com>
13423
13424         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13425         (shove_thread): Don't write the same output twice
13426         (make_ntpipe_output_stream): Increase priority of shove thread
13427         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13428         chance to run
13429         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13430         it.
13431
13432 2000-06-12  Ben Wing  <ben@xemacs.org>
13433
13434         * s\mingw32.h (sigset):
13435         * s\windowsnt.h (sigset):
13436         rename msw_ to mswindows_ for consistency with general convention.
13437
13438 2000-06-12  Ben Wing  <ben@xemacs.org>
13439
13440         * console-msw.c:
13441         * console-msw.c (mswindows_get_console_hwnd):
13442         * console-msw.c (mswindows_ensure_console_allocated):
13443         * console-msw.c (mswindows_hide_console):
13444         * console-msw.c (mswindows_show_console):
13445         * console-msw.c (mswindows_ensure_console_buffered):
13446         * console-msw.c (mswindows_output_console_string):
13447         * console-msw.c (mswindows_windows9x_p):
13448         * console-msw.h:
13449         * device-msw.c (mswindows_get_workspace_coords):
13450         * device-msw.c (mswindows_device_system_metrics):
13451         * dialog-msw.c (mswindows_popup_dialog_box):
13452         * event-msw.c (mswindows_wnd_proc):
13453         * frame-msw.c (mswindows_size_frame_internal):
13454         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13455         * menubar-msw.c (displayable_menu_item):
13456         * menubar-msw.c (mswindows_char_is_accelerator):
13457         * nt.c:
13458         * nt.c (mswindows_sigset):
13459         * nt.c (mswindows_sigrelse):
13460         * nt.c (mswindows_sigpause):
13461         * nt.c (mswindows_raise):
13462         * nt.c (timer_proc):
13463         * ntproc.c:
13464         * ntproc.c (find_child_console):
13465         * ntproc.c (sys_kill):
13466         * print.c:
13467         * print.c (std_handle_out_external):
13468         * process-nt.c (find_child_console):
13469         * process-nt.c (send_signal_the_95_way):
13470         * process-nt.c (ensure_console_window_exists):
13471         * process-nt.c (nt_create_process):
13472         * syssignal.h:
13473         rename msw_ to mswindows_ for consistency with general convention.
13474
13475         * emacs.c:
13476         * dumper.c:
13477         include nt.h, not syswindows.h.
13478
13479         * nt.c (mswindows_fstat):
13480         * nt.c (mswindows_stat):
13481         prefix mswindows_ instead of attempting to directly override the
13482         library functions.  fix declarations.
13483
13484         * nt.h:
13485         include syswindows.h.  move some sysdep.h stuff here.
13486
13487         * ntheap.h:
13488         include syswindows.h, not <windows.h>.
13489
13490         * ntplay.c:
13491         clean up headers.
13492
13493         * sysdep.c:
13494         clean up headers.
13495
13496         * sysdep.c (sys_fstat):
13497         * sysdep.c (sys_stat):
13498         call mswindows versions when appropriate.
13499
13500         * sysdep.h:
13501         move mswin decls to nt.h.
13502
13503         * syswindows.h:
13504         add long comment describing appropriate use of the various windows
13505         headers.
13506
13507 2000-06-11  Ben Wing  <ben@xemacs.org>
13508
13509         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13510
13511 2000-06-10  Ben Wing  <ben@xemacs.org>
13512
13513         * Makefile.in.in (release):
13514         Correction to make sure xemacs.exe always dumped when correct.
13515
13516         * alloca.c:
13517         * balloon_help.c:
13518         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13519
13520         * buffer.c (set_buffer_internal):
13521         [[[[2]]]]: Remove HAVE_FEP code.
13522
13523         * buffer.c (init_initial_directory):
13524         [3].
13525
13526         * bytecode.c:
13527         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13528         individual files.
13529
13530         * callproc.c:
13531         * callproc.c (call_process_cleanup):
13532         * callproc.c (Fold_call_process_internal):
13533         * callproc.c (child_setup):
13534         * callproc.c (getenv_internal):
13535         * callproc.c (init_callproc):
13536         * callproc.c (vars_of_callproc):
13537         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13538         __CYGWIN32__ -> CYGWIN.
13539         DOS_NT -> WIN32_NATIVE.
13540         Remove MSDOS support/references, converting to WIN32_NATIVE
13541           where correct.
13542         __MINGW32__ -> MINGW.
13543         Fix windows.h includes.
13544         Remove bogus HAVE_NTGUI.
13545
13546         * config.h.in:
13547         [2].
13548
13549         * console-msw.c:
13550         mswindows_message_outputted added for use in allowing startup
13551         errors on the console to be seen.
13552
13553         * console-msw.c (msw_ensure_console_allocated):
13554         * console-msw.c (msw_output_console_string):
13555         * console-msw.c (DHEADER):
13556         * console-msw.c (DOPAQUE_DATA):
13557         * console-msw.c (DEVENT):
13558         * console-msw.c (DCONS):
13559         * console-msw.c (DCONSCDR):
13560         * console-msw.c (DSTRING):
13561         * console-msw.c (DVECTOR):
13562         * console-msw.c (DSYMBOL):
13563         * console-msw.c (DSYMNAME):
13564         Fix warnings.
13565
13566         * console-stream.c (stream_init_console):
13567         Fix text/binary problems.
13568
13569         * device-msw.c:
13570         * device-msw.c (mswindows_finish_init_device):
13571         * device-msw.c (mswindows_delete_device):
13572         [1].
13573
13574         * device.c (handle_asynch_device_change):
13575         [3].
13576
13577         * dgif_lib.c:
13578         * dgif_lib.c (DGifOpenFileName):
13579         * dgif_lib.c (DGifOpenFileHandle):
13580         * dgif_lib.c (DGifGetLine):
13581         * dgif_lib.c (DGifGetPixel):
13582         Added config.h/lisp.h, fix up includes.
13583         [1].
13584
13585         * dired-msw.c:
13586         [4].
13587
13588         * dired.c:
13589         * dired.c (file_name_completion):
13590         * dired.c (Ffile_attributes):
13591         * dired.c (syms_of_dired):
13592         [1].
13593
13594         * dumper.c:
13595         * dumper.c (pdump_file_unmap):
13596         * dumper.c (pdump_load):
13597         [1].
13598
13599         * editfns.c:
13600         * editfns.c (Ftemp_directory):
13601         * editfns.c (user_login_name):
13602         * editfns.c (Fuser_real_login_name):
13603         * editfns.c (get_home_directory):
13604         [1].
13605
13606         * elhash.c (finish_marking_weak_hash_tables):
13607         [[[[5]]]]: Fix GCC warnings.
13608
13609         * emacs.c:
13610         * emacs.c (mswindows_handle_hardware_exceptions):
13611         * emacs.c (make_arg_list_1):
13612         * emacs.c (main_1):
13613         * emacs.c (Fkill_emacs):
13614         * emacs.c (Fdump_emacs):
13615         [1].
13616         Fix problems with nested crashes, add long comment.
13617
13618         * event-Xt.c (init_event_Xt_late):
13619         [1].
13620
13621         * event-msw.c:
13622         * event-msw.c (mswindows_dde_callback):
13623         * event-msw.c (mswindows_handle_sticky_modifiers):
13624         * event-msw.c (mswindows_wnd_proc):
13625         [1].
13626         [5].
13627
13628         * events.c (character_to_event):
13629         [1].
13630
13631         * fileio.c:
13632         * fileio.c (Ffile_name_directory):
13633         * fileio.c (Ffile_name_nondirectory):
13634         * fileio.c (directory_file_name):
13635         * fileio.c (Fexpand_file_name):
13636         * fileio.c (Fsubstitute_in_file_name):
13637         * fileio.c (Ffile_name_absolute_p):
13638         * fileio.c (check_executable):
13639         * fileio.c (Ffile_readable_p):
13640         * fileio.c (Ffile_accessible_directory_p):
13641         * fileio.c (Ffile_modes):
13642         * fileio.c (Funix_sync):
13643         * fileio.c (vars_of_fileio):
13644         [1]. [4].
13645
13646         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13647
13648         Expand getdefdir defn.
13649         Fix bogus rename() comment.
13650
13651         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13652         to use standard XEmacs include files, e.g. sysfile.h, rather
13653         than system-specific includes.
13654
13655         * fns.c:
13656         * fns.c (Fsubseq):
13657         [5]. [6].
13658
13659         * frame.c (vars_of_frame):
13660         [1].
13661
13662         * getloadavg.c:
13663         * getloadavg.c (getloadavg):
13664         [1]. [6].
13665         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13666         (We don't use it elsewhere in the code; just add a comment.)
13667
13668         * gif_io.c:
13669         [6].
13670         Add config.h.
13671
13672         * glyphs-msw.c:
13673         * glyphs-msw.c (mswindows_resource_instantiate):
13674         [1].
13675
13676         * glyphs-x.c (x_native_layout_instantiate):
13677         [5].
13678
13679         * gui-msw.c (Fmswindows_shell_execute):
13680         [1].
13681
13682         * insdel.c:
13683         [4].
13684
13685         * lisp.h:
13686         [4]. [5].
13687
13688         * lread.c (locate_file_in_directory_mapper):
13689         [1].
13690
13691         * lstream.c:
13692         [4].
13693
13694         * mem-limits.h:
13695         * mem-limits.h (get_lim_data):
13696         [1].
13697
13698         * menubar-msw.c:
13699         [4].
13700
13701         * ndir.h:
13702         [1].
13703
13704         * nt.c:
13705         * nt.c (getwd):
13706         * nt.c (closedir):
13707         * nt.c (rva_to_section):
13708         * nt.c (mswindows_executable_type):
13709         [1]. [6].
13710         Fix closedir() defn.
13711
13712         * nt.h:
13713         [[[[8]]]]: *_OK defs moved to sysfile.h.
13714
13715         * ntproc.c:
13716         [6]. [7].
13717
13718         * objects-x.c:
13719         [4].
13720
13721         * print.c:
13722         * print.c (std_handle_out_external):
13723         [1]. [4].
13724
13725         * process-nt.c:
13726         * process-nt.c (nt_create_process):
13727         [6].
13728         try to fix process quoting somewhat.
13729
13730         * process-unix.c (unix_create_process):
13731         [1].
13732
13733         * process.c:
13734         * process.c (vars_of_process):
13735         Add Vnull_device.
13736
13737         * process.h:
13738         [1].
13739
13740         * realpath.c:
13741         * realpath.c (xrealpath):
13742         [1].
13743
13744         * redisplay-tty.c (init_tty_for_redisplay):
13745         [3].
13746
13747         * redisplay.c:
13748         [4]. [6].
13749
13750         * scrollbar-msw.c:
13751         [4].
13752
13753         * sheap.c:
13754         * sheap.c (more_static_core):
13755         * sheap.c (report_sheap_usage):
13756         [5]. [6].
13757
13758         * signal.c:
13759         * signal.c (alarm_signal):
13760         [1]. [6].
13761
13762         * sound.c:
13763         [6].
13764
13765         * strftime.c:
13766         * strftime.c (zone_name):
13767         [1]. [5].
13768
13769         * symsinit.h (init_sunpro):
13770         [1].
13771
13772         * syscommctrl.h:
13773         commctrl.h not in Cygwin b20.1.
13774
13775         * sysdep.c:
13776         * sysdep.c (endif):
13777         * sysdep.c (sys_subshell):
13778         * sysdep.c (init_baud_rate):
13779         * sysdep.c (emacs_get_tty):
13780         * sysdep.c (emacs_set_tty):
13781         * sysdep.c (tty_init_sys_modes_on_device):
13782         * sysdep.c (init_system_name):
13783         * sysdep.c (sys_open):
13784         * sysdep.c (interruptible_open):
13785         * sysdep.c (sys_fopen):
13786         * sysdep.c (sys_mkdir):
13787         * sysdep.c (sys_rename):
13788         * sysdep.c (get_process_times_1):
13789         [1]. [6].
13790
13791         * sysdep.h:
13792         [1].
13793
13794         * sysdir.h:
13795         * sysdir.h (DIRENTRY_NONEMPTY):
13796         [1]. [6].
13797
13798         * sysdll.c (dll_init):
13799         * sysdll.h:
13800         [1].
13801
13802         * sysfile.h:
13803         [1]. [6]. [8].
13804         added text/binary defs.
13805
13806         * sysfloat.h:
13807         [1].
13808
13809         * sysproc.h:
13810         * sysproc.h (EDESTADDRREQ):
13811         * sysproc.h (poll_fds_for_input):
13812         [1]. [6].
13813
13814         * syspwd.h:
13815         [6].
13816
13817         * syssignal.h:
13818         [1].
13819
13820         * systime.h:
13821         [1]. [6].
13822
13823         * systty.h:
13824         [1].
13825
13826         * syswindows.h:
13827         [1].
13828         Always define WIN32_LEAN_AND_MEAN.
13829
13830         * unexcw.c (unexec):
13831         [5].
13832
13833         * unexec.c:
13834         * unexec.c (copy_text_and_data):
13835         * unexec.c (adjust_lnnoptrs):
13836         [1].
13837
13838         * unexnt.c:
13839         * unexnt.c (_start):
13840         [1].
13841
13842 2000-06-07  Ben Wing  <ben@xemacs.org>
13843
13844         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13845         was used only as a model.  We've long since extracted any useful
13846         logic or code out of this. (I just did an exhaustive search.)
13847
13848         * s\msdos.h: Removed.
13849
13850         * s\windows95.h: Removed.
13851
13852 2000-06-10  Ben Wing  <ben@xemacs.org>
13853
13854         * s\cygwin32.h:
13855         [1]. [5].
13856         Don't use extern with fun defs.
13857
13858         * s\mingw32.h:
13859         [1]. [7].
13860         Remove nt\inc include.
13861         Remove getdisk, getdefdir. (The former is unused, the latter
13862         expanded in fileio.h.)
13863
13864         * s\windowsnt.h:
13865         * s\windowsnt.h (WIN32_NATIVE):
13866         * s\windowsnt.h (HAVE_STRCASECMP):
13867         [1]. [7].
13868         Add long comment about preprocessor changes.
13869         Remove getdisk, getdefdir. (The former is unused, the latter
13870         expanded in fileio.h.)
13871
13872 2000-06-10  Ben Wing  <ben@xemacs.org>
13873
13874         * m\arm.h:
13875         * m\delta.h:
13876         * m\intel386.h:
13877         * m\sequent.h:
13878         * m\template.h:
13879         * m\windowsnt.h:
13880         [1].
13881         Remove bogus/unused NO_SOCK_SIGIO.
13882
13883 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13884
13885         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13886         not an Emchar.
13887
13888 2000-06-04  Mike Sperber <mike@xemacs.org>
13889
13890         * casetab.c (set_case_table): For `set-standard-case-table',
13891         actually deposit the new case tables where the rest of XEmacs can
13892         see them.
13893
13894 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13895
13896         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13897
13898 2000-06-05  Ben Wing  <ben@xemacs.org>
13899
13900         * callproc.c (child_setup): Don't do close_load_descs() under
13901         MS Windows.  Put in a comment explaining why.
13902
13903 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13904
13905         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13906         Toolkit shell" which breaks `kill-compilation' on Windows NT
13907         native, retaining STDERR handling improvements.
13908
13909 2000-06-01  Andreas Jaeger  <aj@suse.de>
13910
13911         * s/s390.h: Support for S390, based on a patch by Martin
13912         Schwidefsky <schwidefsky@de.ibm.com>.
13913
13914 2000-05-30  Andy Piper  <andy@xemacs.org>
13915
13916         * window.c (allocate_window):
13917         (make_dummy_parent):
13918         (Fset_window_configuration): use new hashtable type.
13919
13920         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13921         (struct image_instantiator_methods):
13922         (struct Lisp_Image_Instance): make instance geometry signed.
13923
13924         * glyphs.c (instantiate_image_instantiator):
13925         (image_instance_query_geometry):
13926         (image_instance_layout):
13927         (image_instance_layout):
13928         (query_string_geometry):
13929         (text_query_geometry):
13930         (image_instantiate):
13931         (image_instantiate):
13932         (cache_subwindow_instance_in_frame_maybe):
13933         (subwindow_query_geometry): make instance geometry signed.
13934
13935         * glyphs-widget.c (widget_query_geometry):
13936         (widget_layout):
13937         (button_query_geometry):
13938         (tree_view_query_geometry):
13939         (tab_control_query_geometry):
13940         (layout_query_geometry):
13941         (layout_layout):
13942         (native_layout_layout): make instance geometry signed.
13943
13944 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13945
13946         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13947         constant.
13948
13949         * general.c (syms_of_general): Add Qfull_assoc symbol.
13950
13951         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13952         correctly.
13953         (decode_weak_list_type): Decode full-assoc type.
13954         (encode_weak_list_type): Encode full-assoc type.
13955         (Fmake_weak_list): Update doc string.
13956
13957 2000-05-30  Andy Piper  <andy@xemacs.org>
13958
13959         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13960
13961         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13962         (decode_hash_table_weakness): ditto.
13963         (Fhash_table_weakness): ditto.
13964         (Fhash_table_type): ditto.
13965         (finish_marking_weak_hash_tables): ditto.
13966         (hash_table_weakness_validate): ditto.
13967         (syms_of_elhash): ditto.
13968
13969 2000-05-28  Martin Buchholz <martin@xemacs.org>
13970
13971         * XEmacs 21.2.34 is released.
13972
13973 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13974
13975         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13976         start cache.
13977         (updating_line_start_cache): Gone.
13978         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13979         generic code to force a minimum of 1 line laid out in the
13980         CMOTION_DISP case.
13981
13982 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13983
13984         * glyphs.c (instantiate_image_instantiator): Check for initialized
13985         height & width no longer special cases IMAGE_NOTHING.
13986         (nothing_instantiate): Set height and width of instance.
13987
13988 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13989
13990         * unexelf.c (unexec): Search for ".data" section.
13991         Initialize new_data2_offset from old_data_index.
13992         Remove redundant check for ElfW.
13993
13994 2000-05-23  Andy Piper  <andy@xemacs.org>
13995
13996         * glyphs.c (get_image_instantiator_governing_domain): allow more
13997         specific domains as the governing domain rather than expecting an
13998         exact match. This fixes problems with layouts.
13999
14000 2000-05-22  Andy Piper  <andy@xemacs.org>
14001
14002         * redisplay-output.c (compare_runes): check for non-images
14003
14004         * glyphs.c (set_glyph_dirty_p): ditto.
14005         (update_glyph_cachel_data): ditto.
14006
14007         * glyphs-widget.c (layout_post_instantiate): ditto.
14008         (layout_post_instantiate): ditto.
14009
14010         * event-msw.c (mswindows_wnd_proc): warning removal.
14011
14012 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
14013
14014         * s\mingw32.h: Added #undef for CLASH_DETECTION.
14015
14016         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
14017
14018         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
14019
14020         * nt.c (rva_to_section): mingw32 needs rva_to_section.
14021         (mswindows_executable_type): mingw32 now has enough headers for
14022         this to work.
14023
14024 2000-05-20  Andy Piper  <andy@xemacs.org>
14025
14026         * console-msw.c (mswindows_output_last_error): ; -> ,
14027
14028 2000-05-12  Andy Piper  <andy@xemacs.org>
14029
14030         * console-msw.c (FROB): compare ints with ints.
14031
14032 2000-05-11  Andy Piper  <andy@xemacs.org>
14033
14034         * glyphs-x.c (x_finalize_image_instance): make minimal build
14035         happy.
14036
14037 2000-05-20  Ben Wing  <ben@xemacs.org>
14038
14039         * event-Xt.c:
14040         * event-Xt.c (vars_of_event_Xt):
14041         move modifier-keys-are-sticky to event-stream.c.
14042
14043         * event-msw.c:
14044         * event-msw.c (mswindows_enqueue_mouse_button_event):
14045         * event-msw.c (key_needs_default_processing_p):
14046         * event-msw.c (XEMSW_LCONTROL):
14047         * event-msw.c (mswindows_handle_sticky_modifiers):
14048         * event-msw.c (FROB):
14049         * event-msw.c (clear_sticky_modifiers):
14050         * event-msw.c (output_modifier_keyboard_state):
14051         * event-msw.c (output_alt_keyboard_state):
14052         * event-msw.c (mswindows_wnd_proc):
14053         * event-msw.c (mswindows_modifier_state):
14054         * event-msw.c (emacs_mswindows_handle_magic_event):
14055         implement sticky modifiers.
14056
14057         * event-stream.c:
14058         * event-stream.c (vars_of_event_stream):
14059         move modifier-keys-are-sticky here.
14060
14061         * lisp.h:
14062         add CHECK_FUNCTION.
14063
14064         * rangetab.c:
14065         implement map-range-table.
14066
14067
14068 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
14069
14070         * redisplay-tty.c (reset_tty_modes):
14071         (tty_redisplay_shutdown): Adjust argument type to
14072         tty_frame_output_end.
14073
14074 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14075
14076         * eval.c (Fbacktrace): Don't output a line with only right
14077         parenthesis.
14078
14079 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
14080
14081         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
14082         (Fpq_reset_poll): Ditto.
14083
14084 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
14085
14086         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
14087
14088 2000-05-16  Ben Wing  <ben@xemacs.org>
14089
14090         * buffer.c:
14091         * buffer.c (dfc_convert_to/from_internal_format):
14092         * buffer.c (reinit_vars_of_buffer):
14093         Fix conversion functions to allow reentrancy.
14094
14095         * console-msw.c:
14096         * console-msw.c (mswindows_output_last_error):
14097         New fun, generally useful -- output a human-readable
14098         version of GetLastError() on the console.
14099
14100         * console-msw.h:
14101         * console-msw.h (struct mswindows_frame):
14102         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
14103
14104         * console-stream.c (stream_output_begin):
14105         * console-stream.c (stream_output_end):
14106         * console-stream.c (stream_output_vertical_divider):
14107         * console-stream.c (stream_clear_region):
14108         * console-stream.c (stream_flash):
14109         * console-stream.c (console_type_create_stream):
14110         Delete blank stream methods, not needed.
14111
14112         * console.h (struct console_methods):
14113         Split begin/end methods into window and frame.
14114
14115         * event-msw.c:
14116         * event-msw.c (mswindows_handle_paint):
14117         * event-msw.c (output_alt_keyboard_state):
14118         * event-msw.c (mswindows_wnd_proc):
14119         * event-msw.c (vars_of_event_mswindows):
14120         Comment about problems with ignored-expose.
14121         Define mswindows-debug-events; not really implemented.
14122
14123         * frame-msw.c (mswindows_init_frame_1):
14124         random cleanups.
14125
14126         * glyphs-msw.c:
14127         * glyphs-msw.c (begin_defer_window_pos):
14128         * glyphs-msw.c (mswindows_unmap_subwindow):
14129         * glyphs-msw.c (mswindows_map_subwindow):
14130         * glyphs-msw.c (mswindows_resize_subwindow):
14131         Use DeferWindowPos to reduce flashing when mapping/unmapping.
14132
14133         * glyphs.c (make_image_instance_1):
14134         Fix crash.
14135
14136         * gutter.c (Fredisplay_gutter_area):
14137         Use new begin/end methods.
14138
14139         * lisp.h (Dynarr_new2):
14140         New creation fun.
14141
14142         * redisplay-msw.c:
14143         * redisplay-msw.c (mswindows_frame_output_begin):
14144         * redisplay-msw.c (mswindows_frame_output_end):
14145         * redisplay-msw.c (console_type_create_redisplay_mswindows):
14146         New begin/end methods -- handle DeferWindowPos.
14147
14148         * redisplay-output.c (redisplay_move_cursor):
14149         * redisplay-output.c (redraw_cursor_in_window):
14150         * redisplay-output.c (redisplay_update_line):
14151         * redisplay-output.c (redisplay_output_window):
14152         New begin/end methods.
14153
14154         * redisplay-tty.c:
14155         * redisplay-tty.c (tty_frame_output_begin):
14156         * redisplay-tty.c (tty_frame_output_end):
14157         * redisplay-tty.c (console_type_create_redisplay_tty):
14158         New begin/end methods.
14159
14160         * redisplay-x.c:
14161         * redisplay-x.c (x_window_output_begin):
14162         * redisplay-x.c (x_window_output_end):
14163         * redisplay-x.c (console_type_create_redisplay_x):
14164         New begin/end methods.
14165
14166         * redisplay.c (redisplay_frame):
14167         * redisplay.c (Fredisplay_echo_area):
14168         New begin/end methods.
14169         use MAYBE_DEVMETH for clear_frame; it may not exist.
14170
14171         * window.h (WINDOW_XFRAME):
14172         WINDOW_XFOO macros -- get locale and decode struct pointer.
14173
14174
14175 2000-05-12  Ben Wing  <ben@xemacs.org>
14176
14177         * emacs.c:
14178         * emacs.c (ensure_no_quitting_from_now_on):
14179         * emacs.c (fatal_error_signal):
14180         * emacs.c (mswindows_handle_hardware_exceptions):
14181         * emacs.c (main):
14182         * emacs.c (Fkill_emacs):
14183         * emacs.c (shut_down_emacs):
14184         * emacs.c (assert_failed):
14185         various improvements in fatal error handling.
14186
14187         * eval.c:
14188         move preparing_for_armageddon to emacs.c.
14189
14190         * lisp.h:
14191         declare fatal_error_in_progress.
14192
14193         * print.c:
14194         * print.c (std_handle_out_external):
14195         * print.c (std_handle_out_va):
14196         * print.c (stderr_out):
14197         * print.c (stdout_out):
14198         use console under mswin when no standard output.
14199         don't do code conversion during fatal error.
14200
14201         * scrollbar.c (Fscrollbar_page_up):
14202         * scrollbar.c (Fscrollbar_page_down):
14203         fix missing else.  reindent.
14204
14205 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
14206
14207         Emergency fix.
14208
14209         * glyphs.h (GLYPH_CACHEL_DESCENT):
14210         (GLYPH_CACHEL_DESCENT):
14211         (GLYPH_CACHEL_DESCENT):
14212         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
14213         used in case these are inline functions.
14214         Use more absurd values to error check.
14215
14216         include window.h for error check functions.
14217
14218 2000-05-11  Ben Wing  <ben@xemacs.org>
14219
14220         * cmdloop.c (Freally_early_error_handler):
14221         Display message box under windows; otherwise, message will disappear
14222         before it can be viewed.
14223
14224         * console-msw.c:
14225         * console-msw.c (Fmswindows_message_box):
14226         * console-msw.c (FROB):
14227         * console-msw.c (syms_of_console_mswindows):
14228         Define new fun `mswindows-message-box'.
14229         #### I will merge this into `popup-dialog-box'; just give me
14230         a bit of time.
14231
14232         * general.c:
14233         * general.c (syms_of_general):
14234         Some new symbols used in `mswindows-message-box'.
14235
14236         * glyphs.c:
14237         * glyphs.c (Fset_image_instance_property):
14238         put warning in this fun.
14239
14240         * glyphs.h:
14241         * glyphs.h (GLYPH_CACHEL_WIDTH):
14242         * glyphs.h (GLYPH_CACHEL_ASCENT):
14243         * glyphs.h (GLYPH_CACHEL):
14244         * glyphs.h (GLYPH_CACHEL_GLYPH):
14245         define error-checking versions to try to catch a bug i've seen --
14246         redisplay gets in an infinite loop because the glyph width of the
14247         continuation glyph is 65535.
14248
14249         * lisp.h:
14250         Extern message-box stuff.
14251
14252         * window.c (allocate_window):
14253         * window.c (make_dummy_parent):
14254         * window.c (Fset_window_configuration):
14255         Use EQUAL not EQ for subwindow caches to make them work a bit
14256         better. (Something is still very broken.)
14257
14258
14259 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14260
14261         * glyphs.c (image_instantiate): Suppress gcc warnings.
14262         (Fmake_image_instance): Fix doc string.
14263         * specifier.c (Fmake_specifier): Ditto.
14264
14265 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
14266
14267         * paths.h.in (PATH_LOCK): Removed.
14268         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
14269         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
14270
14271 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14272
14273         * fns.c (Ffeaturep): Update e-mail address in doc-string.
14274         Document (featurep '(and xemacs 21.02)).
14275
14276 2000-05-09  Ben Wing  <ben@xemacs.org>
14277
14278         * buffer.c (complex_vars_of_buffer):
14279         update modeline-format doc.
14280
14281         * device.h:
14282         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
14283
14284         * emacs.c:
14285         timeline of all released versions of Emacs, for use in creating
14286         authorship comments and in synching up.
14287
14288         * glyphs-widget.c (image_instantiator_buttons):
14289         * glyphs-widget.c (image_instantiator_edit_fields):
14290         * glyphs-widget.c (image_instantiator_combo_box):
14291         * glyphs-widget.c (image_instantiator_scrollbar):
14292         * glyphs-widget.c (image_instantiator_progress_guage):
14293         * glyphs-widget.c (image_instantiator_tree_view):
14294         * glyphs-widget.c (image_instantiator_tab_control):
14295         * glyphs-widget.c (image_instantiator_labels):
14296         * glyphs-widget.c (image_instantiator_layout):
14297         * glyphs-widget.c (image_instantiator_native_layout):
14298         rename decode_domain method to governing_domain.
14299
14300         * glyphs.c:
14301         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
14302         * glyphs.c (add_entry_to_device_ii_format_list):
14303         make sure we don't put an entry more than once into the list.
14304         * glyphs.c (check_instance_cache_mapper):
14305         *************************************************************
14306         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14307         HAVE BEEN GETTING.
14308         *************************************************************
14309         * glyphs.c (get_image_instantiator_governing_domain):
14310         clean up, expand on new concept of governing domain.
14311         * glyphs.c (instantiate_image_instantiator):
14312         * glyphs.c (allocate_image_instance):
14313         use governing_domain instead of cache_domain in naming.
14314         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
14315         * glyphs.c (make_image_instance_1):
14316         * glyphs.c (Fmake_image_instance):
14317         allow for any domain (not just device), and process the
14318         governing domain correctly.  very big doc fix.
14319         * glyphs.c (Fimage_instance_domain):
14320         new primitive, to retrieve the governing domain of an image instance.
14321         * glyphs.c (image_instantiate):
14322         use new governing_domain stuff.  this fixes a crash you could get
14323         by instantiating certain widget glyphs in frame locales. (should
14324         signal an error instead of crashing.)
14325         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
14326         * glyphs.c (Fglyphp): clean up doc.
14327         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
14328         * glyphs.c (syms_of_glyphs):
14329         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
14330         * glyphs.c (image_instantiator_format_create): add some comments about
14331         bogus code.
14332         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
14333         for current-display-table. (Apparently Hrjove implemented in 1998 a
14334         design I wrote up in 1996, but didn't update the doc string.)
14335
14336         * glyphs.h: clean up a doc string.
14337         * glyphs.h (governing_domain):
14338         * glyphs.h (struct image_instantiator_methods):
14339         changes for governing_domain stuff.
14340
14341         * gutter.c:
14342         * gutter.c (Fgutter_specifier_p):
14343         * gutter.c (Fgutter_size_specifier_p):
14344         * gutter.c (Fgutter_visible_specifier_p):
14345         * objects.c:
14346         * objects.c (Fcolor_specifier_p):
14347         * objects.c (Ffont_specifier_p):
14348         * objects.c (Fface_boolean_specifier_p):
14349         doc strings moved to make-*-specifier.
14350
14351         * redisplay.c (add_disp_table_entry_runes_1):
14352         * redisplay.c (generate_fstring_runes):
14353         * redisplay.c (screen):
14354         add random comments and doc strings.
14355
14356         * specifier.c:
14357         * specifier.c (Fmake_specifier):
14358         major overhaul of this doc string.
14359
14360         * specifier.c (Fvalid_specifier_domain_p):
14361         comment about the bogosity of image instances being domains.
14362         * specifier.c (decode_domain):
14363         now non-static, used in glyphs.c.
14364         * specifier.c (specifier_instance):
14365         comment about the bogosity of image instances being domains.
14366         * specifier.c (Fgeneric_specifier_p):
14367         move doc string to make-generic-specifier.
14368         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14369         rebackslashify.
14370
14371         * specifier.h:
14372         * specifier.h (DOMAIN_FRAME):
14373         * specifier.h (DOMAIN_LIVE_P):
14374         * specifier.h (DOMAIN_XDEVICE):
14375         rebackslashify.
14376         add comments about problems with these macros.
14377         prototype for decode_domain.
14378
14379         * toolbar.c:
14380         * toolbar.c (Ftoolbar_specifier_p):
14381         move doc string to `make-toolbar-specifier'.
14382
14383         * window.c (window_unmap_subwindows_cache_mapper):
14384         *************************************************************
14385         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14386         HAVE BEEN GETTING.
14387         *************************************************************
14388
14389 2000-05-09  Andy Piper  <andy@xemacs.org>
14390
14391         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14392
14393         * window.c (Fset_window_configuration): reset the frame subwindow
14394         cache and re-initialize the window subwindow caches.
14395
14396         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14397
14398 2000-05-09  Ben Wing  <ben@xemacs.org>
14399
14400         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14401         DWORD.
14402
14403 2000-04-26  Mike Woolley  <mike@bulsara.com>
14404
14405         * ntheap.c: Changed recreate_heap to limit the amount reserved
14406         for the heap to that which is actually available. Also now
14407         displays a message box (with some dignostics) in the event that
14408         it still can't start.
14409
14410 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14411
14412         * callproc.c (Fold_call_process_internal): GCPRO path
14413
14414 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14415
14416         Patch by Bill Perry.
14417
14418         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14419         back data instead of #ifdef.
14420         (Fscrollbar_page_down): ditto.
14421
14422 2000-05-07  Ben Wing  <ben@xemacs.org>
14423
14424         * buffer.h:
14425         Kludge for defining Qmswindows_tstr.
14426
14427         * nt.c:
14428         * nt.c (open_input_file):
14429         * nt.c (open_output_file):
14430         * nt.c (rva_to_section):
14431         * nt.c (mswindows_executable_type):
14432         Move all memory-mapped-file routines here (some were in unexnt.c,
14433         which is bad because they are used by process-nt.c, and unexnt
14434         won't be around when portable dumping).  Synched the above routines
14435         with FSF 20.6.
14436
14437         * nt.h:
14438         Removed ifdef'd out bogus code.
14439         Fixed some prototypes.
14440
14441         * nt.h (file_data):
14442         * nt.h (OFFSET_TO_RVA):
14443         * nt.h (RVA_TO_OFFSET):
14444         * nt.h (RVA_TO_PTR):
14445         Moved the memory-mapped-file structures, macros and prototypes
14446         here, to parallel nt.c.  ntheap.h should really be removed
14447         entirely, and it's a non-portable-dumper specific file.
14448
14449         * ntheap.h (round_to_next):
14450         Moved the memory-mapped-file structures, macros and prototypes
14451         to nt.h.
14452
14453         * ntproc.c (compare_env):
14454         Moved rva_to_section and mswindows_executable_type to nt.c.
14455         Moved compare_env to process-nt.c.
14456         ntproc.c will die, one day.
14457
14458         * ntproc.c (sys_spawnve):
14459         Account for win32_ -> mswindows_.
14460
14461         * process-nt.c:
14462         * process-nt.c (struct nt_process_data):
14463         * process-nt.c (ensure_console_window_exists):
14464         * process-nt.c (compare_env):
14465         * process-nt.c (nt_create_process):
14466         * process-nt.c (nt_kill_process_by_pid):
14467         * process-nt.c (syms_of_process_nt):
14468         * process-nt.c (vars_of_process_nt):
14469         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14470         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14471         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14472         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14473         Move compare_env here from ntproc.c.
14474
14475         * process.c (Fprocess_send_region):
14476         Takes an optional fourth argument, BUFFER, which should fix some
14477         problems with call-process.
14478
14479         * syscommctrl.h:
14480         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14481
14482         * syswindows.h:
14483         Move ICC_BAR_CLASSES to syscommctrl.h.
14484         Add preliminary macros for MSWindows/Mule.  More to come.
14485
14486         * unexnt.c:
14487         * unexnt.c (unexec):
14488         open_output_file moved to nt.c.
14489
14490
14491 2000-05-05  Andy Piper  <andy@xemacs.org>
14492
14493         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14494         instance from the frame cache also since GC may catch up too late
14495         to make frame deletion sane.
14496
14497 2000-05-04  Andy Piper  <andy@xemacs.org>
14498
14499         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14500         (x_finalize_image_instance): ungcpro on deletion.
14501
14502         * glyphs.c (image_instantiator_format_create): give pointers a
14503         query geometry method so that the geometry is at least set.
14504
14505         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14506         initialize layouts if using widgets.
14507
14508 2000-05-03  Andy Piper  <andy@xemacs.org>
14509
14510         * nt.c: remove bogus reference to sysmmsystem.h
14511
14512         * gui-x.c (popup_selection_callback): fix no selection abort.
14513
14514 2000-05-02  Andy Piper  <andy@xemacs.org>
14515
14516         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14517         (mswindows_widget_instantiate): ditto.
14518
14519         * glyphs-widget.c (initialize_widget_image_instance): initialize
14520         children correctly.
14521         (widget_instantiate): cope with children and items in the same
14522         instance.
14523
14524         * glyphs.c (mark_image_instance): cope with children as a first
14525         class member.
14526         (image_instance_equal): ditto.
14527         (image_instance_hash): ditto.
14528         (image_instance_changed): ditto.
14529
14530 2000-04-30  Andy Piper  <andy@xemacs.org>
14531
14532         * glyphs.c (subwindow_query_geometry): new function. Return some
14533         defaults.
14534         (subwindow_instantiate): don't assign dimensions if none have been
14535         given.
14536         (image_instantiator_format_create): add subwindow_query_geometry.
14537         (print_image_instance): cope with layouts as widgets.
14538
14539 2000-04-29  Andy Piper  <andy@xemacs.org>
14540
14541         * frame.c (delete_frame_internal): call
14542         free_frame_subwindow_instance_cache so that all subwindows are
14543         finalized before their parent.
14544         (mark_frame): remove subwindow_cachels.
14545         (Fmake_frame): remove subwindow_cachel manipulation.
14546         (allocate_frame_core): subwindow_instance_cache is a weak list.
14547         (delete_frame_internal): set subwindow_instance_cache to nil.
14548
14549         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14550         finalization safe.
14551         (mswindows_finalize_image_instance): use the device
14552         not the domain as the domain may have died already.
14553
14554         * glyphs-x.c (x_finalize_image_instance): ditto.
14555         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14556         HEIGHT.
14557
14558         * redisplay-output.c (redisplay_unmap_subwindows): update for
14559         subwindow instance cache as a weak list.
14560         (redisplay_unmap_subwindows_maybe): ditto.
14561         (redisplay_unmap_subwindows_except_us): ditto.
14562
14563         * glyphs.c (unmap_subwindow): error checking will check the domain
14564         so don't deal with it here. Don't use cachels anymore.
14565         (map_subwindow): ditto.
14566         (update_subwindow_cachel_data): remove old accessor names.
14567         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14568         (Fresize_subwindow): don't update cachel.
14569         (mark_subwindow_cachels):
14570         (update_subwindow_cachel_data):
14571         (add_subwindow_cachel):
14572         (get_subwindow_cachel_index):
14573         (update_subwindow_cachel):
14574         (reset_subwindow_cachels):
14575         (mark_subwindow_cachels_as_not_updated): deleted.
14576         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14577         subwindow instance to the frame cache.
14578         (find_matching_subwindow): update for subwindow instance cache as
14579         a weak list.
14580         (update_widget_instances): ditto.
14581         (image_instance_type_to_mask):inlined.
14582         (free_frame_subwindow_instance_cache): new function. finalize all
14583         subwindows that are instantiated.
14584
14585         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14586         of cachel information.
14587         (IMAGE_INSTANCE_DISPLAY_X):
14588         (IMAGE_INSTANCE_DISPLAY_Y):
14589         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14590         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14591         (XIMAGE_INSTANCE_DISPLAY_X):
14592         (XIMAGE_INSTANCE_DISPLAY_Y):
14593         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14594         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14595         remove subwindow_cachel structure and function references.
14596         (image_instance_type_to_mask): inline from glyphs.c
14597
14598         * redisplay.c (redisplay_frame): remove subwindow_cachel
14599         references.
14600
14601         * frame.h (struct frame): remove subwindow_cachels.
14602         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14603
14604         * frameslots.h: add subwindow_instance_cache.
14605
14606         * window.c (replace_window): check subwindow cache of replacement.
14607         (window_unmap_subwindows_cache_mapper):
14608         (window_unmap_subwindows): new functions. Unmap all subwindows
14609         cached on this window.
14610         (mark_window_as_deleted): unmap all subwindows.
14611
14612 2000-04-27  Andy Piper  <andy@xemacs.org>
14613
14614         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14615
14616         * glyphs-widget.c (widget_layout): return something.
14617         (layout_layout): return something. Fail if not initialized.
14618         (layout_query_geometry): ditto.
14619         (image_instantiator_native_layout): new function. Initialized the
14620         native layout type.
14621         (widget_instantiate): don't do layout stuff here.
14622
14623         * glyphs.c (instantiate_image_instantiator): reorded calling or
14624         instantiate and post_instantiate with layout in between.
14625         (image_instance_layout): be more selective about deciding whether
14626         the layout has been done or not.
14627
14628         * glyphs.h (struct image_instantiator_methods): return a value
14629         from layout_method.
14630
14631 2000-04-26  Andy Piper  <andy@xemacs.org>
14632
14633         * glyphs.c (allocate_image_instance): make initial width and
14634         height unspecified. Set initialized to 0.
14635
14636         * syscommctrl.h new file. Encapsulates commctrl.h.
14637
14638         * syswindows.h new file. Encapsulates windows.h.
14639
14640         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14641         * nt.c: ditto.
14642         * console-msw.h: ditto.
14643
14644         * redisplay-tty.c (tty_output_display_block): remove layout references.
14645
14646         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14647         window handle rather than just the frame.
14648
14649         * glyphs.c (mark_image_instance): remove layout references.
14650         (print_image_instance): ditto.
14651         (image_instance_equal): ditto.
14652         (image_instance_hash): ditto.
14653         (decode_image_instance_type): ditto.
14654         (encode_image_instance_type): ditto.
14655         (image_instantiate): ditto.
14656         (allocate_glyph): ditto.
14657         (Fimage_instance_height): ditto.
14658         (Fimage_instance_width): ditto.
14659         (update_subwindow): ditto.
14660
14661         * redisplay-x.c (x_output_display_block): recode for layouts as
14662         widgets.
14663
14664         * redisplay-output.c (redisplay_output_layout): recode for layouts
14665         as widgets.
14666         (compare_runes): remove layout references.
14667
14668         * redisplay-msw.c (mswindows_output_display_block): recode for
14669         layouts as widgets.
14670
14671         * glyphs-widget.c (image_instantiator_layout): remove
14672         layout_possible_dest_types.
14673         (layout_possible_dest_types): deleted.
14674
14675         * glyphs.h (image_instance_type): remove layout references.
14676         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14677         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14678         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14679
14680 2000-04-25  Andy Piper  <andy@xemacs.org>
14681
14682         * glyphs-widget.c (image_instantiator_buttons):
14683         (image_instantiator_edit_fields):
14684         (image_instantiator_combo_box):
14685         (image_instantiator_scrollbar):
14686         (image_instantiator_progress_guage):
14687         (image_instantiator_tree_view):
14688         (image_instantiator_tab_control):
14689         (image_instantiator_labels):
14690         (image_instantiator_layout): call default post_instantiate method.
14691         (widget_post_instantiate): new function. Simply lays out the
14692         widgets.
14693
14694         * glyphs.h (struct image_instantiator_methods): add
14695         post_instantiate method.
14696
14697         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14698         method calls.
14699
14700 2000-04-23  Andy Piper  <andy@xemacs.org>
14701
14702         * glyphs.h (struct image_instantiator_methods): add
14703         decode_domain_method.
14704         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14705         derived from the domain.
14706         (IMAGE_INSTANCE_FRAME): new accessor.
14707         (XIMAGE_INSTANCE_FRAME): ditto.
14708
14709         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14710         instead of _SUBWINDOW_FRAME.
14711         (finalize_image_instance): ditto.
14712         (Fimage_instance_foreground): ditto.
14713         (Fimage_instance_background): ditto.
14714         (image_instantiate): ditto.
14715         (update_subwindow_cachel): ditto.
14716         (update_subwindow): ditto.
14717         (unmap_subwindow): ditto.
14718         (map_subwindow): ditto
14719         (subwindow_instantiate): ditto.
14720         * glyphs-msw.c (mswindows_update_widget): ditto.
14721         (mswindows_progress_gauge_instantiate): ditto.
14722         (mswindows_tab_control_update): ditto.
14723         * glyphs-x.c (x_update_widget): ditto.
14724         (x_widget_instantiate): ditto.
14725         (x_tab_control_instantiate): ditto.
14726         (x_tab_control_update): ditto.
14727         * event-msw.c (mswindows_wnd_proc): ditto
14728
14729         * glyphs-widget.c (image_instantiator_layout): use
14730         subwindow_decode_domain.
14731         (image_instantiator_buttons): ditto.
14732         (image_instantiator_edit_fields): ditto.
14733         (image_instantiator_combo_box): ditto.
14734         (image_instantiator_scrollbar): ditto.
14735         (image_instantiator_progress_guage): ditto.
14736         (image_instantiator_tree_view): ditto.
14737         (image_instantiator_tab_control): ditto.
14738         (image_instantiator_labels): ditto.
14739         (image_instantiator_layout): ditto.
14740
14741         * glyphs.c: add instance error checking to many functions.
14742         (instantiate_image_instantiator): decode device from cache_domain.
14743         (image_instantiate): partially rewrite by using
14744         decode_image_instantiator_domain to determine what domain the
14745         instance needs to be cached in.
14746         (decode_image_instantiator_domain): new function. Determine what
14747         domain the image needs to be cached in.
14748         (check_window_subwindow_cache): new error checking function.
14749         (check_instance_cache_mapper): ditto.
14750         (check_image_instance_structure): ditto.
14751         (subwindow_decode_domain): new function. Encodes a window as a
14752         subwindow's cache domain.
14753         (image_instantiator_format_create): use it for text and
14754         subwindows.
14755
14756 2000-04-21  Andy Piper  <andy@xemacs.org>
14757
14758         * glyphs.c (image_instance_device): new function.
14759         (image_instance_frame): new function.
14760         (image_instance_window): new function.
14761         (image_instance_live_p): new function.
14762
14763         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14764         cache to nil.
14765
14766         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14767         (IMAGE_INSTANCE_DOMAIN): new accessor.
14768         (XIMAGE_INSTANCE_DOMAIN): ditto.
14769
14770         * glyphs-x.c (x_finalize_image_instance): device->domain.
14771
14772         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14773         (mswindows_finalize_image_instance): ditto.
14774
14775         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14776         (gif_instantiate): ditto.
14777         (png_instantiate): ditto.
14778         (tiff_instantiate): ditto.
14779
14780         * glyphs.c (instantiate_image_instantiator): use domain rather
14781         than device.
14782         (mark_image_instance): device -> domain.
14783         (print_image_instance): ditto.
14784         (finalize_image_instance): ditto.
14785         (image_instance_equal): ditto.
14786         (allocate_image_instance): ditto.
14787         (Fcolorize_image_instance): ditto.
14788         (query_string_geometry): ditto.
14789         (image_instantiate): ditto
14790         (query_string_font): ditto.
14791         (image_instantiate): ditto.
14792         (update_subwindow): ditto.
14793         (unmap_subwindow): ditto.
14794         (map_subwindow): ditto.
14795         (subwindow_instantiate): ditto.
14796
14797         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14798         (DOMAIN_FRAME): ditto.
14799         (DOMAIN_WINDOW): ditto.
14800         (DOMAIN_LIVE_P): ditto.
14801         (XDOMAIN_DEVICE): ditto.
14802         (XDOMAIN_FRAME): ditto.
14803         (XDOMAIN_WINDOW): ditto.
14804
14805         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14806         a valid specifier domain.
14807
14808 2000-04-19  Andy Piper  <andy@xemacs.org>
14809
14810         * glyphs-widget.c (syms_of_glyphs_widget): remove
14811         widget-callback-current-channel.
14812         (vars_of_glyphs_widget): ditto.
14813         * glyphs.h: ditto
14814
14815         * gui.c (get_gui_callback): revert to previous behaviour.
14816
14817 2000-04-18  Andy Piper  <andy@xemacs.org>
14818
14819         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14820         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14821         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14822
14823         * glyphs.c (image_instance_equal): add margin_width.
14824         (image_instance_hash): ditto.
14825
14826         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14827         (layout_query_geometry): ditto.
14828         (layout_layout): ditto.
14829         (syms_of_glyphs_widget): add margin-width.
14830         (image_instantiator_layout): allow margin-width.
14831
14832         * glyphs.c (update_widget_instances): make a normal function.
14833         (syms_of_glyphs): remove Qupdate_widget_instances.
14834         * glyphs.h: ditto.
14835
14836         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14837         so that we don't corrupt ideas about the last event or
14838         command. Remove widget-callback-current-channel fiddling.
14839         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14840
14841 2000-05-01  Martin Buchholz <martin@xemacs.org>
14842
14843         * XEmacs 21.2.33 is released.
14844
14845 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14846
14847         * make-src-depend: Allow dots in header file name.
14848
14849 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14850
14851         * mule-charset.h (struct charset_lookup): Add
14852         next_allocated_1_byte_leading_byte and
14853         next_allocated_2_byte_leading_byte.
14854         * mule-charset.c: Move above two variables so that those values
14855         will be dumped.
14856
14857 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14858
14859         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14860         when string length is zero.
14861         (find_charsets_in_emchar_string): Ditto.
14862
14863 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14864
14865         * lisp.h: extern Qdialog and Qmenubar.
14866
14867         * gui-x.c: added events.h.
14868                 also fixed typo which made the file uncompilable.
14869
14870         * general.c: Added Qmenubar and Qdialog
14871
14872 2000-04-28  Ben Wing  <ben@xemacs.org>
14873
14874         * frame-msw.c (mswindows_init_frame_1):
14875         * frame-msw.c (mswindows_mark_frame):
14876         * event-msw.c (mswindows_enqueue_dispatch_event):
14877         * console-msw.h:
14878         * console-msw.h (struct mswindows_frame):
14879         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14880         there are now three hash tables for callbacks.
14881         mswindows_enqueue_dispatch_event is no longer static.
14882
14883         * dialog-x.c (maybe_run_dbox_text_callback):
14884         * dialog-x.c (dbox_descriptor_to_widget_value):
14885         switch to new cons3 form for callbacks.
14886
14887         * glyphs-msw.c (mswindows_register_gui_item):
14888         * glyphs-msw.c (mswindows_widget_instantiate):
14889         * glyphs-msw.c (add_tree_item):
14890         * glyphs-msw.c (add_tab_item):
14891         new image instance parameter, so it can be passed to callback-ex.
14892         respect :callback-ex as well as :callback.
14893
14894         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14895         add :callback-ex.
14896
14897         * glyphs.c (print_image_instance):
14898         prettify, e.g. now prints widget type.
14899
14900         * gui-x.h:
14901         certain funs have new image instance parameter.
14902
14903         * gui.c:
14904         * gui.c (get_gui_callback):
14905         * gui.c (gui_item_add_keyval_pair):
14906         * gui.c (gui_item_init):
14907         * gui.c (gui_add_item_keywords_to_plist):
14908         * gui.c (mark_gui_item):
14909         * gui.c (gui_item_hash):
14910         * gui.c (gui_item_equal):
14911         * gui.c (copy_gui_item):
14912         * gui.c (syms_of_gui):
14913         recognize callback-ex in a number of places.
14914         also, fix the annoying "can't get out of yes-no dialog" bug.
14915
14916         * gui.h:
14917         * gui.h (struct Lisp_Gui_Item):
14918         recognize callback-ex in a number of places.
14919
14920         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14921         new parameter in button_item_to_widget_value.
14922
14923         * glyphs-x.c (x_update_widget):
14924         * glyphs-x.c (x_button_instantiate):
14925         * glyphs-x.c (x_button_update):
14926         * glyphs-x.c (x_progress_gauge_instantiate):
14927         * glyphs-x.c (x_edit_field_instantiate):
14928         * glyphs-x.c (x_combo_box_instantiate):
14929         * glyphs-x.c (x_tab_control_instantiate):
14930         * glyphs-x.c (x_label_instantiate):
14931         new image instance parameter in various places.
14932
14933         * event-Xt.c:
14934         * event-Xt.c (enqueue_Xt_dispatch_event):
14935         this fun gets exported.
14936
14937         * gui-msw.c:
14938         * gui-msw.c (mswindows_handle_gui_wm_command):
14939         handle both :callback and :callback-ex, and generate our own
14940         event because it's one of the callback-ex arguments.
14941
14942         * gui-x.c:
14943         * gui-x.c (popup_selection_callback):
14944         handle both :callback and :callback-ex, and generate our own
14945         event because it's one of the callback-ex arguments.
14946         * gui-x.c (button_item_to_widget_value):
14947         * gui-x.c (gui_items_to_widget_values_1):
14948         * gui-x.c (gui_item_children_to_widget_values):
14949         * gui-x.c (gui_items_to_widget_values):
14950         new image instance parameter in various places.
14951
14952         * fns.c (Freplace_list):
14953         fix small typo in doc string.
14954
14955         * lisp.h:
14956         declare enqueue_Xt_dispatch_event.
14957
14958 2000-04-28  Ben Wing  <ben@xemacs.org>
14959
14960         * buffer.c:
14961         * buffer.c (Frecord_buffer):
14962         * buffer.c (syms_of_buffer):
14963         delete record-buffer-hook.
14964
14965         * fns.c:
14966         * fns.c (Freplace_list):
14967         * fns.c (syms_of_fns):
14968         new primitive replace-list.
14969
14970         * frameslots.h:
14971         slot for old buffer-alist.
14972
14973         * lisp.h:
14974         exfun replace-list.
14975
14976         * redisplay.c:
14977         * redisplay.c (redisplay_frame):
14978         * redisplay.c (syms_of_redisplay):
14979         * redisplay.c (vars_of_redisplay):
14980         new hook buffer-list-changed-hook.
14981         call it.
14982
14983 2000-04-27  Ben Wing  <ben@xemacs.org>
14984
14985         * extents.h: extern in_modeline_generation.
14986
14987         * redisplay.c (generate_formatted_string_db): set
14988         in_modeline_generation.
14989
14990         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14991         flags if in modeline generation.  otherwise frame-modified-tick
14992         is ticked far too often.
14993         Declare in_modeline_generation.
14994
14995 2000-04-26  Ben Wing  <ben@xemacs.org>
14996
14997         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14998         option.
14999         (vars_of_emacs): add quick-build as an error-checking option.
15000         A bit kludgy, but there doesn't seem much point in creating
15001         a real var for this.
15002
15003         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
15004
15005 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15006
15007         * redisplay.h (struct display_line): Add a new variable,
15008         line_continuation.
15009
15010         * redisplay.c (create_text_block): Set dl->line_continuation if
15011         the line continues.
15012         (create_string_text_block): Ditto.
15013         (regenerate_window_incrementally): Use line_continuation instead
15014         of searching continuation glyph.
15015         (add_margin_runes): Call add_glyph_rune.
15016         (add_glyph_rune): Handle margin glyph.
15017
15018 2000-04-20  Martin Buchholz  <martin@xemacs.org>
15019
15020         * filelock.c (fill_in_lock_file_name):
15021         ANSIfy.
15022         Check for IS_ANY_SEP instead of '/'.
15023         (lock_file_1):
15024         Avoid generating gratuitous garbage.  Call user_login_name() directly.
15025         Never check errno without first seeing that system call failed.
15026         (unlock_file): Add GCPRO.
15027         (Flock_buffer): Fix docstring.
15028         (Ffile_locked_p): Fix docstring.  Add GCPRO.
15029
15030 2000-04-19  Martin Buchholz  <martin@xemacs.org>
15031
15032         * sysdep.c (get_pty_max_bytes):
15033         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
15034         strings longer than 252 bytes.
15035
15036         * md5.c: Unconditionally include ANSI header <limits.h>
15037
15038         * glyphs-x.c (convert_EImage_to_XImage):
15039         * lisp-union.h (union Lisp_Object):
15040         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
15041
15042 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
15043
15044         * filelock.c (current_lock_owner): Remove unused variable o, p.
15045
15046 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
15047
15048         * callint.c: Remove multiply defined symbol Qlet
15049         (syms_of_callint): ditto.
15050
15051 2000-04-14  Andy Piper  <andy@xemacs.org>
15052
15053         * general.c (syms_of_general): add last-command, this-command, let
15054         and funcall.
15055
15056         * lisp.h: declare various symbols.
15057
15058         * glyphs.h: declare Qwidget_callback_current_channel;
15059
15060         * glyphs-widget.c (syms_of_glyphs_widget): add
15061         Qgui_callback_current_channel.
15062         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
15063
15064         * gui-msw.c (mswindows_handle_gui_wm_command): bind
15065         widget-callback-current-channel when invoking the interactive
15066         arg. Also bind last-command and next-command when invoking the
15067         widget updates.
15068         * gui-x.c (popup_selection_callback): ditto.
15069
15070         * gui.c (get_gui_callback): massage args so that we are always
15071         calling eval. This allows us to add our own variable bindings
15072         outside.
15073
15074         * glyphs-x.c (x_button_instantiate): use
15075         gui_items_to_widget_values since this is GC safe.
15076         (x_progress_gauge_instantiate): ditto.
15077         (x_edit_field_instantiate): ditto.
15078         (x_label_instantiate): ditto.
15079
15080         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
15081         (emacs_Xt_event_widget_focus_out): new function
15082         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
15083         focus.
15084         (emacs_Xt_event_add_widget_actions): new function. add focus
15085         functions as actions.
15086         (init_event_Xt_late): use it.
15087
15088 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
15089
15090         * event-stream.c (Fdispatch_event): Doc fix.
15091
15092 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
15093
15094         * postgresql.c: Remove all references to PQsetenv*.
15095
15096         * postgresql.h: Remove references to PGsetenvHandler object.
15097         * lrecord.h (lrecord_type): Ditto.
15098
15099 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15100
15101         * glyphs-msw.h (struct mswindows_image_instance_data): Added
15102         real_heigh and real_width members, and accessor macros for these.
15103
15104         * glyphs-msw.c (init_image_instance_geometry): New function.
15105         (init_image_instance_from_dibitmap): Use it.
15106         (mswindows_resource_instantiate): Use it.
15107         (init_image_instance_from_xbm_inline): Use it.
15108         (mswindows_initialize_image_instance_mask): Use real bitmap
15109         geometry.
15110         (mswindows_create_resized_bitmap): Ditto.
15111         (mswindows_create_resized_mask): Ditto.
15112
15113         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
15114         and bitmap to their surface size.
15115
15116 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
15117
15118         * process-unix.c (unix_send_process): Guard against process MIA
15119         after Faccept_process_output.
15120
15121 2000-04-11  Ben Wing  <ben@xemacs.org>
15122
15123         * eval.c (unbind_to_hairy): fix brokenness introduced by
15124         nanosecond speed improvements.
15125
15126 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
15127
15128         * sunplay.c (init_device): To play sounds correctly, the device
15129         apparently needs to be initialized at least once by XEmacs.  Make
15130         it so.
15131
15132 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15133
15134         * redisplay.c (add_margin_runes): Add text image glyph
15135           handling.
15136
15137 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
15138
15139         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
15140         gcc is newer than 2.5.
15141
15142 2000-04-06  Colin Rafferty  <colin@xemacs.org>
15143
15144         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
15145
15146         * fns.c (size_bit_vector):
15147         * alloc.c (size_vector):
15148         (make_vector_internal):
15149         (make_bit_vector_internal):
15150         (sweep_bit_vectors_1):
15151         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
15152
15153 2000-04-06  Andy Piper  <andy@xemacs.org>
15154
15155         * gmalloc.c (malloc): undo previous change.
15156         (malloc): ditto.
15157         (free): ditto.
15158         (realloc): ditto.
15159
15160 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
15161
15162         * line-number.c (buffer_line_number): Revert to former version.
15163
15164 2000-04-06  Andy Piper  <andy@xemacs.org>
15165
15166         * gmalloc.c (malloc): add error checking.
15167         (malloc): ditto.
15168         (free): ditto.
15169         (realloc): ditto.
15170
15171         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
15172         button_item_to_widget_value arg.
15173
15174         * glyphs-x.c (x_button_instantiate): add extra
15175         button_item_to_widget_value arg.
15176         (x_progress_gauge_instantiate): ditto.
15177         (x_edit_field_instantiate): ditto.
15178         (x_label_instantiate): ditto.
15179
15180         * gui-x.c (gui_items_to_widget_values_1): add extra
15181         button_item_to_widget_value arg.
15182         (button_item_to_widget_value): add extra menu_item_p arg.
15183
15184         * gui-x.h: change signature of button_item_to_widget_value.
15185
15186         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
15187         button_item_to_widget_value arg.
15188
15189 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
15190
15191         * buffer.h (struct buffer): auto_save_modified should be long.
15192
15193 2000-04-05  Andy Piper  <andy@xemacs.org>
15194
15195         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
15196         type.
15197         (button_query_geometry): give a little more room so that athena
15198         buttons fit.
15199
15200 2000-04-05  Andy Piper  <andy@xemacs.org>
15201
15202         * faces.c (complex_vars_of_faces): The widget face should inherit
15203         the font of the gui-element face.
15204
15205 2000-04-04  Andy Piper  <andy@xemacs.org>
15206
15207         * glyphs-x.c (x_button_update): new function. unconditionally
15208         update a button's state when the instance is dirty.
15209         (image_instantiator_format_create_glyphs_x): add x_button_update.
15210         (x_widget_instantiate): remove old resize cruft.
15211
15212 2000-04-02  Andy Piper  <andy@xemacs.org>
15213
15214         * frame.c (change_frame_size_1): The introduction of gutters means
15215         that we need to allow 0 as a potential frame dimension.
15216
15217 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15218
15219         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
15220         image glyph if allow_cursor.
15221         (add_hscroll_rune): Don't allow cursor to border glyph.
15222         (create_text_block): Ditto.
15223
15224         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
15225         text not in buffer.
15226         (redisplay_output_layout): Call ensure_face_cachel_complete for
15227         text image glyph.
15228
15229
15230 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15231
15232         * redisplay.c (add_glyph_rune): Adding text image as text runes.
15233
15234         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
15235         not in buffer
15236
15237         * redisplay-tty.c (tty_output_display_block): Delete the routine
15238         for text image glyph
15239         * redisplay-x.c (x_output_display_block): ditto
15240         * redisplay-msw.c (mswindows_output_display_block): ditto
15241
15242 2000-02-02  Mike Alexander  <mta@arbortext.com>
15243
15244         Note: Some of these were committed by accident as part of other
15245         patches.
15246
15247         * regex.c (regex_compile): Avoid compiler warnings.
15248
15249         * ntproc.c (sys_spawnve): Avoid compiler warnings.
15250
15251         * nt.h: Declare term_ntproc correctly.
15252
15253         * nt.c: Remove incorrect declaration of get_home_directory which
15254         is declared correctly in lisp.h.
15255
15256         * keymap.c (get_keyelt): Avoid compiler warnings.
15257         (raw_lookup_key_mapper): Avoid compiler warnings.
15258
15259         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
15260
15261         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
15262
15263         * filemode.c (mode_string): Avoid compiler warnings.
15264
15265         * file-coding.c (Fcoding_system_aliasee): Add return statement to
15266         avoid warning.
15267
15268         * events-mod.h: Undef some things that winuser.h defines differently.
15269
15270         * data.c (Faset): Avoid compiler warnings.
15271
15272         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
15273
15274 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15275
15276         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
15277         Fall through to simple beep on error.
15278         Replace "extern" by real header file.
15279
15280         * linuxplay.c: Use nativesound.h
15281         (play_sound_data): Return error code. Be less verbose on error.
15282
15283         * sunplay.c: Use nativesound.h
15284         (play_sound_data): Return error code. Be less verbose on error.
15285
15286         * ntplay.c: Use nativesound.h
15287         (play_sound_data): Return fake error code
15288
15289         * sgiplay.c: Use nativesound.h
15290         (play_sound_data): Return error code
15291
15292         * hpplay.c: Use nativesound.h, partially implement
15293         new error code. Break compilation until finished.
15294         (play_sound_data): error code.
15295
15296         * nativesound.h (play_sound_file):
15297           (play_sound_data): Prototype in new header.
15298
15299 2000-03-31  Andy Piper  <andy@xemacs.org>
15300
15301         * glyphs-widget.c: (button_query_geometry): new function. Adjust
15302         for toggle and radio buttons.
15303         (image_instantiator_buttons): use it.
15304
15305 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15306
15307         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
15308         (x_update_horizontal_scrollbar_callback): Return if no mirror was
15309         found. Scrollbar event probably belonged to some old config.
15310
15311 2000-03-31  Andy Piper  <andy@xemacs.org>
15312
15313         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
15314         than 1.
15315         (initialize_widget_image_instance): default layout to
15316         LAYOUT_HORIZONTAL rather than 0.
15317         (widget_instantiate): reverse the item list at the end rather than
15318         every iteration.
15319         (layout_layout): re-code for the border text at the front of the
15320         item list rather than at the end.
15321         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
15322         provided by the user.
15323         (widget_query_geometry): comment.
15324
15325 2000-03-30  Andy Piper  <andy@xemacs.org>
15326
15327         * glyphs-widget.c (image_instantiator_layout): allow standard
15328         widget keywords in layouts.
15329
15330         * gutter.c (output_gutter): cope with nil gutter contents.
15331
15332         * frame.c (Fset_frame_properties): add gutter docs.
15333
15334 2000-03-29  Andy Piper  <andy@xemacs.org>
15335
15336         * toolbar-msw.c (TBSTYLE_FLAT): add.
15337         (mswindows_output_toolbar): minor fiddling.
15338
15339 2000-03-29  Andy Piper  <andy@xemacs.org>
15340
15341         * gutter.c (output_gutter): force gutter size recalculation if
15342         what we are trying to display won't fit.
15343         (update_gutter_geometry): new function. A per-gutter version of
15344         update_frame_gutter_geometry.
15345         (update_frame_gutter_geometry): use it.
15346         (redraw_exposed_gutter): add extra debugging output.
15347
15348 2000-03-28  Mike Alexander  <mta@arbortext.com>
15349
15350         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
15351         (pdump_file_unmap): Implement it on Windows
15352         (pdump_file_get): Save alocated handles for pdump_file_unmap
15353
15354 2000-03-28  Andy Piper  <andy@xemacs.org>
15355
15356         * gui.c (get_gui_callback): treat Quit specially.
15357
15358 2000-03-27  Andy Piper  <andy@xemacs.org>
15359
15360         * glyphs.c (image_instantiate): be careful to check in the same
15361         way we assigned.
15362
15363 2000-03-27  Didier Verna  <didier@xemacs.org>
15364
15365         * config.h.in: define the proper SMART_INCLUDE macro.
15366         handle renaming of `foo_h_path' to `foo_h_file'.
15367
15368         * database.c: ditto.
15369
15370         * emacs.c: ditto.
15371
15372         * linuxplay.c: ditto.
15373
15374         * terminfo.c: ditto.
15375
15376         * tooltalk.h: ditto.
15377
15378 2000-03-27  Andy Piper  <andy@xemacs.org>
15379
15380         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15381         gets updated whenever the face might have changed.
15382
15383 2000-03-26  Mike Alexander  <mta@arbortext.com>
15384
15385         * dumper.c (pdump_resource_free): Fix the comment.
15386
15387 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15388
15389         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15390
15391 2000-03-22  Mike Alexander  <mta@arbortext.com>
15392
15393         * dumper.c: Include Windows headers on Windows
15394         (pdump_resource_free): Add a body to the function
15395         (pdump_load): exe_name -> exe_path and add some comments.
15396
15397 2000-03-25  Mike Alexander  <mta@arbortext.com>
15398
15399         * gui.c (copy_gui_item_tree): Return a value in all cases
15400
15401 2000-03-21  Didier Verna  <didier@xemacs.org>
15402
15403         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15404         lwlib/config.h.in.
15405         (SMART_INCLUDE): new macro.
15406         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15407         the proper location.
15408
15409         * postgresql.c: use it.
15410
15411         * inline.c: ditto.
15412
15413 2000-03-24  Andy Piper  <andy@xemacs.org>
15414
15415         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15416         do this.
15417
15418 2000-03-24  Andy Piper  <andy@xemacs.org>
15419
15420         * redisplay-output.c (compare_runes): use image_instance_changed
15421         to detect changes. Do not depend on glyphs_changed, only depend on
15422         dirtiness.
15423          (redisplay_output_layout): add debug messages.
15424         (compare_runes): ditto.
15425
15426         * glyphs.h: declare new functions.
15427         (struct Lisp_Image_Instance): remove percent and associated
15428         accessors.
15429
15430         * gui.h: declare new copying functions.
15431
15432         * gui.c (copy_gui_item_tree): new function.
15433         (copy_gui_item): new function.
15434         (gui_item_id_hash): revert to standard hash.
15435         (gui_item_hash): ditto.
15436         (gui_item_hash_internal): deleted.
15437         (mark_gui_item): mark value.
15438         (gui_item_add_keyval_pair): add value.
15439         (gui_item_init): ditto.
15440         (gui_add_item_keywords_to_plist): ditto.
15441         (gui_item_equal): ditto.
15442         (syms_of_gui): add Q_value.
15443
15444         * glyphs-x.c (x_progress_gauge_update): use pending items and
15445         value for setting the state.
15446         (x_update_widget): don't set items from pending here.
15447
15448         * glyphs-widget.c (update_widget): update items here.
15449         (progress_gauge_set_property): use items for storing value. Put
15450         new value in pending items.
15451
15452         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15453         items for new value. Convert percent -> value.
15454         (mswindows_tab_control_update): don't update items here.
15455
15456         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15457         (update_subwindow): ditto.
15458         (image_instance_changed): new function. Compare hash values and
15459         past and present widget items.
15460         (image_instantiate): We more careful about where we instantiate
15461         things.
15462         (image_instantiate): add error checking.
15463
15464         * gutter.c (syms_of_gutter): use -hook.
15465
15466 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15467
15468         * console-tty.c (Fset_console_tty_input_coding_system): Use
15469         Qkeyboard.
15470         (Fset_console_tty_output_coding_system): Use Qterminal.
15471         (tty_init_console): Use Qkeyboard and Qterminal.
15472
15473 2000-03-21  Ben Wing  <ben@xemacs.org>
15474
15475         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15476         From Mike Alexander <mta@arbortext.com>.
15477
15478 2000-03-21  Ben Wing  <ben@xemacs.org>
15479
15480         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15481         process brokenness.  Proper implementation to come.
15482         * callproc.c:
15483         Rename call-process-internal to old-call-process-internal.
15484         New impl. in process.el.
15485
15486 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15487
15488         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15489
15490 2000-03-20  Andy Piper  <andy@xemacs.org>
15491
15492         * glyphs.c (full_list_hash): make hashes of the same elements in
15493         different orders return different values.
15494
15495 2000-03-20  Martin Buchholz <martin@xemacs.org>
15496
15497         * XEmacs 21.2.32 is released.
15498
15499 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15500
15501         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15502         (DFC_MALLOC_USE_CONVERTED_DATA):
15503         Add aliasing-safe casts to allow use with char* or unsigned char*
15504         lvalues.
15505
15506         * eldap.c (Fldap_open):
15507         (Fldap_search_basic):
15508         (Fldap_add):
15509         (Fldap_modify):
15510         Make C++-compilable.
15511         Make sure GCPRO'ed variables are initialized.
15512         Use temp variables to avoid repeated calls to Flength.
15513
15514 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15515
15516         * sysfile.h:
15517         Make sure PATH_MAX is always defined.
15518         Include limits.h for PATH_MAX.
15519         Deprecate use of MAXPATHLEN.
15520
15521 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15522
15523         * emacs.c: Add reinit_vars_of_fileio.
15524         * symsinit.h: Add reinit_vars_of_fileio.
15525         * fileio.c (reinit_vars_of_fileio): New.
15526         * fileio.c (Fmake_temp_name):
15527         Initialize temp_name random number from microseconds to make
15528         collisions even less likely.  Initialize always at process startup
15529         time.  (make-temp-name) used to return the same file name twice in
15530         a row when PDUMP.
15531         Random stylistic fiddling.
15532         Comment fixes.
15533
15534 2000-03-20  Andy Piper  <andy@xemacs.org>
15535
15536         * glyphs.c (image_instantiate): allow text glyphs to be
15537         instantiated in the minibuffer window.
15538
15539 2000-03-19  Andy Piper  <andy@xemacs.org>
15540
15541         * glyphs.c (image_instance_hash): be careful about which items we
15542         hash on.
15543
15544         * glyphs-widget.c (tab_control_set_property): record into pending
15545         items rather than the actual items.
15546
15547         * glyphs-x.c (x_update_widget): use pending items to update with.
15548
15549         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15550         to update with.
15551
15552         * glyphs.c (mark_image_instance): mark pending items.
15553
15554         * window.c (Fset_window_configuration): record the buffer.
15555         (Fselect_window): totally revert previous change which breaks many
15556         things.
15557
15558 2000-03-18  Andy Piper  <andy@xemacs.org>
15559
15560         * glyphs-msw.c (mswindows_tab_control_update): force selected
15561         item.
15562
15563         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15564         window domain cache, otherwise we get inconsistencies at
15565         startup. There is something fishy at startup which can lead to the
15566         minibuffer being the selected window when the gutter content is
15567         instantiated.
15568
15569         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15570         gcpros.
15571         (parse_gui_item_tree_children): ditto.
15572         (parse_gui_item_tree_item): ditto.
15573
15574         * glyphs.c (Fupdate_widget_instances): return something.
15575
15576 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15577
15578         * window.c (Fselect_window): Undo 2000-03-17 change.
15579
15580 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15581
15582         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15583         against v7.0 libraries.  Insta-coredump city until the postgres
15584         folks fix it.
15585
15586 2000-03-17  Andy Piper  <andy@xemacs.org>
15587
15588         * faces.c (complex_vars_of_faces): don't give the widget face an
15589         inherited background pixmap.
15590
15591         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15592         selected item.
15593
15594         * event-stream.c (Fdispatch_non_command_events): return something.
15595
15596         * gutter.c (output_gutter): use widget face.
15597         (clear_gutter): ditto.
15598
15599         * NEWS: adjust again.
15600
15601         * window.c (Fselect_window): make sure this runs to completion to
15602         avoid oddities with Fset_window_configuration.
15603         (Fcurrent_window_configuration): in general do not save the
15604         minibuffer as the selected window.
15605
15606         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15607
15608 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15609
15610         * emacs.c (Frunning_temacs_p): Revert previous patch.
15611         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15612
15613 2000-03-16  Andy Piper  <andy@xemacs.org>
15614
15615         * glyphs-x.c (x_tab_control_update): if no widget values then
15616         return.
15617
15618         * NEWS: update for new features.
15619
15620         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15621         synthetic event to the native system.
15622         (reinit_vars_of_event_Xt): set force_event_pending to
15623         emacs_Xt_force_event_pending.
15624
15625         * events.h (struct event_stream): add force_event_pending.
15626
15627         * specifier.c (recompute_one_cached_specifier_in_window): add
15628         comment.
15629
15630         * redisplay.c (redisplay_frame): don't call
15631         update_frame_subwindows. Reset subwindow cachels when
15632         subwindows_changed, removing this was an optimization too far.
15633
15634         * redisplay-output.c (compare_runes): reorganize so that we catch
15635         glyph changes when we want them. Set optimize_output when this
15636         would help layouts.
15637         (redisplay_output_layout): remove frame_really_changed, use
15638         optimize_output instead.
15639
15640         * redisplay-msw.c (mswindows_output_display_block): reset
15641         optimize_output after outputting a glyph.
15642         * redisplay-x.c (x_output_display_block): ditto.
15643         * redisplay-tty.c (tty_output_display_block): ditto.
15644
15645         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15646         functions.
15647         (gutter_specs_changed): do specific gutter positions.
15648         (top_gutter_specs_changed): new function. Only update the
15649         specified gutter specs.
15650         (bottom_gutter_specs_changed): ditto.
15651         (left_gutter_specs_changed): ditto.
15652         (right_gutter_specs_changed): ditto.
15653
15654         * gui.c (gui_item_hash_internal): new function, does a real hash.
15655         (gui_item_id_hash): use it.
15656         (gui_item_hash): hash the eval'ed gui_item.
15657
15658         * gui-x.c (popup_selection_callback): send an eval event to call
15659         Fupdate_widget_instances.
15660
15661         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15662         to call Fupdate_widget_instances.
15663
15664         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15665         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15666
15667         * glyphs.c: (update_frame_subwindows): deleted.
15668         (Fupdate_widget_instances): new function for updating the dirty
15669         state of widgets that might have changed.
15670         (syms_of_glyphs): add Qupdate_widget_instances.
15671         (full_list_hash): hash a list completely.
15672         (image_instance_hash): use it for items and properties.
15673
15674         * frame-msw.c (mswindows_size_frame_internal): remove unused
15675         variable.
15676
15677         * faces.h (struct face_cachel): fix comment.
15678
15679         * event-stream.c (Fdispatch_non_command_events): new
15680         function. Process non-command events, forcing an event cycle
15681         beforehand.
15682         (syms_of_event_stream): declare.
15683         (event_stream_force_event_pending): new function. Force an event
15684         on the native event queue so that an event cycle will occur next
15685         time we check.
15686
15687         * event-msw.c:
15688         (struct ntpipe_shove_stream):
15689         (mswindows_enqueue_dispatch_event):
15690         (mswindows_dequeue_dispatch_event):
15691         (mswindows_cancel_dispatch_event):
15692         (mswindows_pump_outstanding_events):
15693         (mswindows_drain_windows_queue):
15694         (mswindows_handle_paint):
15695         (mswindows_wnd_proc):
15696         (mswindows_key_to_emacs_keysym):
15697         (get_process_input_waitable):
15698         (emacs_mswindows_delete_stream_pair): re-indent file.
15699         (mswindows_need_event): do not process further fds if the windows
15700         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15701         fixes the 100% cpu problem.
15702         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15703
15704 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15705
15706         * alloc.h: New.
15707         * dumper.h: New.
15708         * dumper.c: New.
15709
15710         * emacs.c: Moved dump file searching to dumper.c.
15711         (Frunning_temacs_p): Fixed.
15712
15713         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15714         last_lrecord_type_index_assigned.
15715
15716 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15717
15718         * symsinit.h: Added reinit parameter to init_console_stream
15719         declaration.
15720
15721         * lisp.h: Added file parameter to pdump_load declaration.
15722
15723         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15724         support.  Added dump file searching.
15725
15726         * config.h.in: Added EMACS_PROGNAME.
15727
15728         * console-stream.c (init_console_stream): Fix reinitialisation
15729         when running from temacs.
15730
15731         * alloc.c (pdump): Add id support.
15732         (pdump_load): Add file parameter and signature/id support.
15733
15734         * Makefile.in.in: Add full pdump support.
15735
15736 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15737
15738         * postgresql.c: Update documentation to reflect latest code
15739         status.
15740         (print_result): Show tuple counts in printed representation when
15741         appropriate.
15742         (Fpq_put_nbytes): MULE-ize.
15743         (Fpq_get_line_async): Ditto.
15744
15745 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15746
15747         * postgresql.c (Fpq_lo_import): Fix return value.
15748         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15749
15750 2000-03-13  Ben Wing  <ben@xemacs.org>
15751
15752         * alloc.c (pdump_load):
15753         Fix compile warning under mswin.
15754
15755 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15756
15757         * postgresql.c: Mule-ization, bug fixes.
15758         Use PG_CODING to encapsulate coding system name changes.
15759         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15760         (pg-coding-system): Create.
15761
15762         (Fpq_conn_defaults): Mule-ize.
15763         (Fpq_connectdb): Mule-ize & bug fix.
15764         (Fpq_connect_start): Mule-ize.
15765         (Fpq_set_client_encoding): Mule-ize.
15766         (Fpq_finish): Document `DEAD' connection status.
15767         (Fpq_clear): Ditto.
15768         (Fpq_pgconn): Mule-ize.
15769         (Fpq_exec): Mule-ize & bug fix.
15770         (Fpq_send_query): Ditto.
15771         (Fpq_get_result): Ditto.
15772         (Fpq_res_status): Mule-ize.
15773         (Fpq_result_error_message): Mule-ize.
15774         (Fpq_ntuples): fix comments.
15775         (Fpq_fname): Mule-ize.
15776         (Fpq_fnumber): Mule-ize.
15777         (Fpq_ftype): fix comments.
15778         (Fpq_get_value): Mule-ize.
15779         (Fpq_cmd_status): Ditto.
15780         (Fpq_cmd_tuples): Ditto.
15781         (Fpq_oid_value): Ditto.
15782         (Fpq_notifies): Ditto.
15783         (Fpq_lo_import): Ditto.
15784         (Fpq_lo_export): Ditto.
15785         (Fpq_get_line): Ditto.
15786         (Fpq_put_line): Mule-ize and bug fix.
15787         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15788
15789 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15790
15791         * postgresql.c (vars_of_postgresql): Mule-ize.
15792         (Fpq_conn_defaults): Ditto.
15793
15794 2000-03-12  Ben Wing  <ben@xemacs.org>
15795
15796         * alloc.c (Fmake_byte_code):
15797         * alloc.c (debug_string_purity_print):
15798         * alloc.c (pdump_backtrace):
15799         * alloc.c (pdump_get_indirect_count):
15800         * alloc.c (pdump_register_sub):
15801         * alloc.c (pdump_register_object):
15802         * alloc.c (pdump_register_struct):
15803         * alloc.c (pdump_dump_data):
15804         * alloc.c (pdump_reloc_one):
15805         Minor cleanups.
15806
15807         * console-msw.c:
15808         * console-msw.c (GetConsoleHwnd):
15809         * console-msw.c (msw_hide_console):
15810         * console-msw.c (msw_show_console):
15811         * console-msw.c (msw_ensure_console_buffered):
15812         * console-msw.c (msw_output_console_string):
15813         * console-msw.c (console_type_create_mswindows):
15814
15815         a) Added functions to manipulate the console window for use with
15816         shell support.
15817
15818         b) Added support for writing text to the console, which is now
15819         used under Windows when xemacs is not being run non-interactively,
15820         to write text that would otherwise be destined for stdout because
15821         under these circumstances, text written to stdout tends to
15822         disappear and not be seen.
15823
15824         * console-msw.h:
15825         * event-Xt.c:
15826         * event-Xt.c (x_event_to_emacs_event):
15827         * event-Xt.c (describe_event_window):
15828         * events-mod.h (XEMACS_MOD_CONTROL):
15829         * events.c:
15830         * events.c (Fmake_event):
15831         * events.c (character_to_event):
15832         * events.c (event_to_character):
15833         * events.c (format_event_object):
15834         * events.c (Fevent_modifiers):
15835         * events.h:
15836         * events.h (struct key_data):
15837         * events.h (struct button_data):
15838         * events.h (struct misc_user_data):
15839         * frame-x.c (Fcde_start_drag_internal):
15840         * frame-x.c (Foffix_start_drag_internal):
15841         * gpmevent.c (Freceive_gpm_event):
15842         * keymap.c:
15843         * keymap.c (bucky_sym_to_bucky_bit):
15844         * keymap.c (control_meta_superify):
15845         * keymap.c (make_key_description):
15846         * keymap.c (keymap_lookup_directly):
15847         * keymap.c (create_bucky_submap):
15848         * keymap.c (keymap_store):
15849         * keymap.c (define_key_check_and_coerce_keysym):
15850         * keymap.c (define_key_parser):
15851         * keymap.c (define_key_alternate_name):
15852         * keymap.c (Fdefine_key):
15853         * keymap.c (raw_lookup_key_mapper):
15854         * keymap.c (struct map_keymap_unsorted_closure):
15855         * keymap.c (map_keymap_unsorted_mapper):
15856         * keymap.c (map_keymap_sort_predicate):
15857         * keymap.c (map_keymap_sorted):
15858         * keymap.c (accessible_keymaps_mapper_1):
15859         * keymap.c (where_is_recursive_mapper):
15860         * keymap.c (describe_map_mapper):
15861         * keymap.c (describe_map_sort_predicate):
15862         * keymap.c (describe_map):
15863         * keymap.c (complex_vars_of_keymap):
15864         And a number of other files, the key modifier preprocessor
15865         constants that xemacs uses have names that conflict with constants
15866         defined under MS Windows for other purposes, so they were renamed
15867         to begin with the prefix XEMACS_. The variables that hold such
15868         modifiers were changed to consistently be of type int to fix
15869         various compile warnings.
15870
15871         * console.c (complex_vars_of_console):
15872         * device.c:
15873         * device-msw.c:
15874         * device-msw.c (mswindows_finish_init_device):
15875         * device-msw.c (msw_get_workspace_coords):
15876         * device-msw.c (mswindows_device_system_metrics):
15877         and various other files, added support for a new
15878         device property called offset-workspace which returns the position
15879         of the upper left corner of the workspace area and goes along with
15880         the existing size-workspace property.
15881
15882         * dialog-msw.c:
15883         * dialog-msw.c (push_bufbyte_string_as_unicode):
15884         * dialog-msw.c (mswindows_popup_dialog_box):
15885         Added support for XEmacs-style accelerator specifications in
15886         button text.  Note: I didn't add support for this under X Windows,
15887         and somebody needs to do this.
15888
15889         * dialog.c:
15890         * dialog.c (Fpopup_dialog_box):
15891         Documented the support for accelerators that was just mentioned.
15892
15893         editfns.c (get_home_directory): Changed behavior under Windows
15894         when HOME not defined; former behavior was irretrievably broken.
15895
15896         * emacs.c:
15897         * emacs.c (main_1):
15898         * emacs.c (main):
15899         * minibuf.c (clear_echo_area_internal):
15900         * minibuf.c (echo_area_append):
15901         * print.c:
15902         * print.c (std_handle_out_external):
15903         * print.c (std_handle_out_va):
15904         * print.c (fatal):
15905         * print.c (write_string_to_stdio_stream):
15906         * print.c (output_string):
15907         * print.c (debug_print):
15908         * print.c (debug_backtrace):
15909         * print.c (debug_short_backtrace):
15910         Cleaned up the code that prints text to stdout so that this can be
15911         changed to output into a console window instead under MS Windows,
15912         as described above.
15913
15914         * eval.c:
15915         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15916         * eval.c (internal_catch):
15917         * eval.c (unwind_to_catch):
15918         * eval.c (throw_or_bomb_out):
15919         * eval.c (condition_case_1):
15920         * eval.c (signal_1):
15921         * eval.c (check_error_state_sanity):
15922         * eval.c (call_with_suspended_errors_1):
15923         * eval.c (call_with_suspended_errors):
15924         * eval.c (reinit_vars_of_eval):
15925         Added code to catch throw loops and check for a pesky bug that may
15926         be gone now.
15927
15928         * event-msw.c:
15929         * event-msw.c (key_needs_default_processing_p):
15930         * event-msw.c (mswindows_wnd_proc):
15931         * event-msw.c (mswindows_modifier_state):
15932         * event-msw.c (emacs_mswindows_quit_p):
15933         * event-msw.c (vars_of_event_mswindows):
15934         a) Added support for using the alt key to select menu items as is
15935         standard under MS Windows.  This is controlled using the variable
15936         menu-accelerator-enabled, just like under X Windows.  There is an
15937         option on the options menu to turn this support on.  I really
15938         think that it should be on by default under Windows, but I'm not
15939         going to make this change yet.
15940
15941         b)  Added support for dynamic display size changes under Windows.
15942
15943         * event-stream.c:
15944         * event-stream.c (maybe_echo_keys):
15945         * event-stream.c (Fnext_event):
15946         * event-stream.c (command_builder_find_leaf):
15947         * event-stream.c (lookup_command_event):
15948         * event-stream.c (execute_command_event):
15949         * event-stream.c (pre_command_hook):
15950         * event-stream.c (post_command_hook):
15951         * event-stream.c (syms_of_event_stream):
15952         * event-stream.c (vars_of_event_stream):
15953         * event-stream.c (complex_vars_of_event_stream):
15954         * events.h (struct command_builder):
15955
15956         a) Tried to clean up a little bit the horribly written x-specific
15957         accelerator code that crept into this file.  I moved this code
15958         into menubar-x.c where it belongs. I also needed to move the
15959         command builder structure into the file events.h because it is
15960         accessed directly by this accelerator code.  What I didn't do, but
15961         which should be done at some point, is to properly abstract this
15962         code using device methods instead of the kludgy way that it
15963         currently hooks into the event code.
15964
15965         b) Added the lisp variables this-command-properties and
15966         last-command- properties, which should be used to synchronize two
15967         adjacent commands in preference to playing games with the variable
15968         this-command, which is typically what happens.
15969
15970         c) Added some slightly nasty code to hook into the lisp support
15971         for shifted- motion-key selection.  This is actually necessary for
15972         somewhat complicated reasons, which are described in
15973         simple.el. (NB: I think the proper thing would be to have the code
15974         that calls the pre and post command hooks also call out to generic
15975         lisp functions in simple.el, where all built-in stuff could be
15976         added.  I will think about this more.)
15977
15978         * event-unixoid.c (poll_fds_for_input):
15979         * lread.c (readchar):
15980         * redisplay-tty.c (tty_clear_frame):
15981         * redisplay-x.c (x_get_gc):
15982         * signal.c (interrupt_signal):
15983         And a whole bunch of other files: fixed up places that printed
15984         directly to stderr to instead call the function stderr_out so that
15985         the changes I made under Windows work correctly.
15986
15987         * filemode.c (mode_string):
15988         Warning fixes.
15989
15990         * frame-msw.c:
15991         * frame-msw.c (mswindows_size_frame_internal):
15992         Fixed the computation of frame size and position to keep the frame
15993         within the workspace area, rather than within the physical
15994         dimensions of the screen, so that the frame doesn't overlap window
15995         manager decorations, such as the start menu and toolbar, typically
15996         at the bottom of the screen.
15997
15998         * frame.c (vars_of_frame):
15999         Changed the default frame title format under MS Windows to consist
16000         of buffername-XEmacs, which is standard under MS Windows.  I think
16001         it might be a good idea to change this everywhere because I think
16002         it is superior to the current frame title format, but this is the
16003         kind of change that is likely to cause some people to get annoyed,
16004         so I'm not making it.
16005
16006         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
16007
16008         * gui-msw.c (mswindows_handle_gui_wm_command):
16009         Fixed compile warnings.
16010
16011         * gui-x.c:
16012         * gui-x.c (strdup_and_add_accel):
16013         * gui-x.c (button_item_to_widget_value):
16014         * gui-x.h:
16015         Added code to automatically put an accelerator onto the beginning
16016         of menu items that don't have one as is now the standard, and is
16017         described more later.  Also fixed things so that the menu item
16018         name can be an evaluated expression, again a new standard.
16019
16020         * gui.c:
16021         * gui.c (gui_item_add_keyval_pair):
16022         * gui.c (make_gui_item_from_keywords_internal):
16023         * gui.c (gui_add_item_keywords_to_plist):
16024         * gui.c (gui_item_accelerator):
16025         * gui.c (gui_name_accelerator):
16026         * gui.c (gui_item_included_p):
16027         * gui.c (gui_item_display_flush_left):
16028         * gui.c (gui_item_display_flush_right):
16029         * gui.c (parse_gui_item_tree_item):
16030         * gui.c (parse_gui_item_tree_children):
16031         * gui.c (parse_gui_item_tree_list):
16032         Mule-ized.  Cleanup.  GCPRO addition.
16033
16034         * line-number.c (buffer_line_number):
16035         * lisp.h:
16036         * lisp.h (EMACS_INT_MAX):
16037         Added the manifest constant EMACS_INT_MIN corresponding to the
16038         existing constant EMACS_INT_MAX.  This is partially to fix compile
16039         warnings under Windows, and partly for cleanliness.
16040
16041         * menubar-msw.c:
16042         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
16043         * menubar-msw.c (msw_translate_menu_or_dialog_item):
16044         * menubar-msw.c (displayable_menu_item):
16045         * menubar-msw.c (populate_menu_add_item):
16046         * menubar-msw.c (populate_or_checksum_helper):
16047         * menubar-msw.c (populate_menu):
16048         * menubar-msw.c (update_frame_menubar_maybe):
16049         * menubar-msw.c (prune_menubar):
16050         * menubar-msw.c (msw_char_is_accelerator):
16051         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
16052         * menubar-msw.c (mswindows_handle_wm_command):
16053         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
16054         * menubar-msw.c (mswindows_handle_wm_initmenu):
16055         * menubar-msw.c (mswindows_update_frame_menubars):
16056         * menubar-msw.c (mswindows_free_frame_menubars):
16057         * menubar-msw.c (mswindows_popup_menu):
16058         Fixed a bug in handling accelerators where an extra character
16059         would be displayed in the menu item.  Also generalized the
16060         function displayable_menu_item because it is now used by the
16061         dialog box code as well.  And finally, added code in the functions
16062         that create the menubar to extract a list of accelerators for the
16063         top level menubar, which is used in the event code to determine
16064         whether a particular alt-key combination should be used to invoke
16065         a menu item, or should be passed through to access the standard
16066         XEmacs keymap binding for this key combination.
16067
16068         Much needed GCPROing.
16069
16070         * menubar-x.c:
16071         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
16072         * menubar-x.c (menu_item_descriptor_to_widget_value):
16073         * menubar-x.c (restore_in_menu_callback):
16074         * menubar-x.c (x_popup_menu):
16075         * menubar-x.c (menu_move_up):
16076         * menubar-x.c (menu_move_down):
16077         * menubar-x.c (menu_move_left):
16078         * menubar-x.c (menu_move_right):
16079         * menubar-x.c (menu_select_item):
16080         * menubar-x.c (command_builder_operate_menu_accelerator):
16081         * menubar-x.c (menu_accelerator_junk_on_error):
16082         * menubar-x.c (command_builder_find_menu_accelerator):
16083         * menubar-x.c (Faccelerate_menu):
16084         * menubar.h:
16085         Moved a whole bunch of code here that was previously in
16086         event-stream.c as described above.  There is also code connected
16087         to the new standard of adding an accelerator to the beginning of
16088         menu items that don't have one as described above and below.
16089
16090         * menubar.c:
16091         * menubar.c (menu_parse_submenu_keywords):
16092         * menubar.c (Fmenu_find_real_submenu):
16093         * menubar.c (Fnormalize_menu_item_name):
16094         * menubar.c (syms_of_menubar):
16095         * menubar.c (vars_of_menubar):
16096         * menubar.c (complex_vars_of_menubar):
16097
16098         a) Cleaned up a bunch of documentation and improved it.
16099
16100         b) XEmacs now automatically adds an accelerator onto the beginning
16101         of any menu items that don't have one.  I did this because there
16102         will inevitably be some menu items on the main menubar that don't
16103         have accelerators on them because the package that adds that
16104         particular menu item hasn't yet been fixed up to have accelerators
16105         in them and it looked rather strange to have some items with and
16106         some items without accelerators, especially since even in items
16107         without accelerators, you can, at least under windows, still
16108         access the item through an accelerator corresponding to the first
16109         character in the item's name.  If people don't like this behavior,
16110         I can add a variable to turn it off optionally, but I'm not sure
16111         this is a good idea because we really do need to have accelerators
16112         on all of the menu items, and if a package doesn't like the
16113         accelerators being put on the first character, then it should put
16114         the accelerators where they belong.
16115
16116         c) I made a behavior change, which is that the descriptor that
16117         specifies the text of the menu item, which formerly was just a
16118         string, can now also be an evaluated expression.  This makes this
16119         descriptor parallel with all of the others, which could also be
16120         evaluated expressions.  This also obviates the need for the
16121         keyword :label, which was previously listed in the documentation
16122         as unimplemented, and which was for the same purpose.
16123
16124         d) GCPROing.
16125
16126         * ntproc.c:
16127         * ntproc.c (new_child):
16128         * ntproc.c (sys_spawnve):
16129         * ntproc.c (find_child_console):
16130         * ntproc.c (sys_kill):
16131         Fixed compile warnings.  By the way, this file should really go
16132         away entirely, and this will happen as soon as Kirill makes his
16133         final round of process cleanups, which affect the function
16134         call-process.
16135
16136         * process-nt.c:
16137         * process-nt.c (struct nt_process_data):
16138         * process-nt.c (find_process_from_pid):
16139         * process-nt.c (send_signal_the_nt_way):
16140         * process-nt.c (enable_child_signals):
16141         * process-nt.c (find_child_console):
16142         * process-nt.c (send_signal_the_95_way):
16143         * process-nt.c (nt_finalize_process_data):
16144         * process-nt.c (ensure_console_window_exists):
16145         * process-nt.c (nt_create_process):
16146         * process-nt.c (nt_kill_child_process):
16147         * process-nt.c (nt_kill_process_by_pid):
16148         * process-nt.c (nt_open_network_stream):
16149         * process-nt.c (vars_of_process_nt):
16150         Copied over code from Emacs 20.5 to correctly send signals to sub-
16151         processes under Windows 95.  Also added code to automatically
16152         create and hide console window when a sub-process is created under
16153         Windows 95, which obviates the need for the separate runemacs.exe
16154         executable, and finally implemented some variables that were
16155         implemented in Emacs 20.5, but previously not in XEmacs.  These
16156         include mswindows- start-process-share-console and
16157         mswindows-start-process-inherit-error-mode. (Both of these only
16158         apply to Windows 95.)
16159
16160         * regex.c (regex_compile): Fixed a compile warning.
16161
16162         * select-msw.c:
16163         * select-msw.c (mswindows_own_selection):
16164         * select-msw.c (mswindows_get_foreign_selection):
16165         * select-msw.c (mswindows_disown_selection):
16166         * select-msw.c (console_type_create_select_mswindows):
16167         * select-msw.c (syms_of_select_mswindows):
16168         Cleaned up the file and implemented the device method
16169         selection_exists_p, which had accidentally been left out.  Also
16170         removed four lisp functions that were remnants from before the
16171         time when the selection code was properly device abstracted.
16172         These functions are no longer needed because there are generic
16173         equivalents, and because they were added recently and don't exist
16174         in FSF Emacs, I don't think there's any problem with just deleting
16175         them.
16176
16177         * sysdep.c:
16178         * sysdep.c (sys_subshell):
16179         Fixed a compile warning, although in this case there's probably
16180         something wrong with this code, and it ought to be looked into
16181         more thoroughly by somebody who understands it.
16182
16183         * window.c:
16184         * window.c (Fwindow_text_area_height):
16185         * window.c (Fwindow_width):
16186         * window.c (Fwindow_full_width):
16187         * window.c (Fwindow_pixel_width):
16188         * window.c (debug_print_window):
16189         * window.c (syms_of_window):
16190         Added functions window-text-area-height and window-full-width,
16191         which are functions for returning various width and height
16192         characteristics of a window. (One of these functions is necessary
16193         for making the file dialog box work correctly, and the other one
16194         was added for completeness.)  Also added a table to the
16195         documentation for window-height which describes the entire scheme
16196         for accessing width and height characteristics of a window.
16197
16198 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16199
16200         * nt.c (fstat): Added a comment for another problem with
16201         non-encapsulated [f]stat(), reported by Adrian Aichner
16202         <aichner@ecf.teradyne.com>.
16203
16204 2000-03-11  Andy Piper  <andy@xemacs.org>
16205
16206         * window.c (make_dummy_parent): initialize subwindow instance
16207         cache.
16208         (Fset_window_configuration): zero extent_modiff.
16209
16210 2000-03-10  Andy Piper  <andy@xemacs.org>
16211
16212         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
16213         more changes can be triggered.
16214         (Fredisplay_frame): ditto.
16215         (Fredraw_device): ditto.
16216         (Fredisplay_device): ditto.
16217         (redisplay_frame): make non-static.
16218         (redisplay_frame): call update_frame_gutter_geometry outside of
16219         display proper.
16220
16221         * gutter.h: declare update_frame_gutter_geometry.
16222
16223         * redisplay.h: declare redisplay_frame.
16224
16225         * gutter.c (update_frame_gutter_geometry): move geometry changes
16226         in update_frame_gutters here. Geometry changes can only occur
16227         outside of redisplay.
16228         (update_frame_gutters): remove geometry change code.
16229         (Fredisplay_gutter_area): make sure that we are in display when we
16230         update and that we have flushed any size changes.
16231
16232 2000-03-11  Andy Piper  <andy@xemacs.org>
16233
16234         * alloc.c (pdump_dump_data): remove i & count shadows.
16235
16236 2000-02-27  Mike Alexander  <mta@arbortext.com>
16237
16238         * sysdep.h: Declare pdump_read_file
16239
16240         * sysdep.c (pdump_read_file): New function
16241
16242         * alloc.c (pdump_load): Call pdump_read_file to get the portable
16243         dump data
16244
16245 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
16246
16247         * lrecord.h: add `lrecord_type_pgsetenv'.
16248
16249 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
16250
16251         * symsinit.h: declare (vars|syms)_of* functions.
16252         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
16253
16254 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
16255
16256         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
16257
16258         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
16259         GCCs.
16260
16261         * emacs.c (main_1): Call postgres initialization code.
16262
16263         * postgresql.h: New file.  PostgreSQL RDBMS support.
16264         * postgresql.c: New file.
16265
16266 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
16267
16268         * redisplay-output.c (redisplay_output_display_block): Disable
16269         redundant code.
16270
16271 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16272
16273         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
16274         (Fcanna_henkan_next): Ditto.
16275         (Fcanna_bunsetu_henkou): Ditto.
16276         (Fcanna_henkan_kakutei): Ditto.
16277         (Fcanna_henkan_end): Ditto.
16278         (Fcanna_henkan_quit): Ditto.
16279         (Fcanna_henkan_next): Set retun value correctly.
16280         (c2mu): Use unsigned char instead of signed char.
16281
16282 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16283
16284         * emacs.c (main_1): Always call syms_of_gui.
16285         * inline.c: include gui.h
16286
16287 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16288
16289         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
16290         converted to Lisp_Object.
16291         (Qtop_bottom): New variable.
16292         (syms_of_redisplay): Initialize it.
16293         * redisplay.h (Vvisible_bell): Ditto.
16294         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
16295         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
16296         only flash top and bottom.
16297
16298 2000-03-08  Andy Piper  <andy@xemacs.org>
16299
16300         * buffer.c (Frename_buffer): record new buffer name the right way.
16301
16302 2000-03-08  Andy Piper  <andy@xemacs.org>
16303
16304         * glyphs.c (update_subwindow): increase hash depth so that widget
16305         items get picked up properly.
16306
16307         * redisplay-output.c (compare_runes): increase hash depth so that
16308         widget items get picked up properly.
16309
16310 2000-03-08  Andy Piper  <andy@xemacs.org>
16311
16312         * gutter.c (output_gutter): add some debug.
16313
16314         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
16315         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
16316         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
16317
16318         * redisplay-output.c (compare_runes): use display_hash to
16319         determine if glyphs really are not the same.
16320
16321         * glyphs.c (update_subwindow): check display_hash to see if
16322         anything really needs to be updated. If not then do
16323         nothing. Record the display_hash after updating.
16324         (image_instance_equal): compare the image_instance face also.
16325
16326 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
16327
16328         * redisplay.h: Fix comment style.
16329
16330 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16331
16332         * consle-msw.h (struct mswindows_frame):
16333         Added new member paint_pending to indicate whether a WM_PAINT
16334         magic event has been queued for this frame.
16335
16336         * event-msw.c (mswindows_drain_windows_queue):
16337         Don't queue a WM_PAINT magic event if one is already queued.
16338         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
16339
16340         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
16341
16342 2000-03-07  Didier Verna  <didier@xemacs.org>
16343
16344         * dired.c: #include `regex.h' after `sysfile.h'.
16345
16346 2000-03-06  Martin Buchholz  <martin@xemacs.org>
16347
16348         * sound.c (init_nas_sound): Fix compiler warning.
16349
16350         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
16351         (FREE_STRUCT_P):
16352         (MARK_STRUCT_AS_FREE):
16353         (MARK_STRUCT_AS_NOT_FREE):
16354         Make `gcc -fstrict-aliasing' work properly.
16355
16356 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16357
16358         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16359         (mswindows_delete_device): Call CoUnnitialize().
16360
16361         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16362
16363 2000-02-25    <CraigL@DyCon.com>
16364
16365         * process-nt.c: MinGW now has <shellapi.h>, but still needs
16366         <errno.h>.
16367
16368         * sysdep.c: This extern declaration for environ prevents MinGW
16369         from finding the variable in CRTDLL.DLL.
16370
16371         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16372         windows headers.
16373         (SHGFI_EXETYPE): ..
16374         (WM_MOUSEWHEEL): ..
16375         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16376         definitions.
16377         (MMRESULT): Removed, now defined in cygwin's windows headers.
16378         (TIMECAPS): ..
16379         (uid_t,gid_t,pid_t,ssize_t): ..
16380         (_timeb): Removed, MinGW defines both _timeb and timeb.
16381         (HAVE_H_ERRNO): Added.
16382         (HAVE_TZNAME): Added, configure is not detecting this.
16383
16384 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16385
16386         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16387         * syntax.c (syntax_match): Use it.
16388
16389         * cmds.c: Import auto-fill-chars from FSF Emacs.
16390         (Vauto_fill_chars): New variables.
16391         (internal_self_insert): Check Vauto_fill_chars.
16392         (vars_of_cmds):
16393         Declare auto-fill-chars as a Lisp variable and initialize it.
16394
16395 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16396
16397         * fileio.c (Fmake_symbolic_link):
16398         (Ffile_symlink_p):
16399         Run handlers even if local machine doesn't have symlinks.
16400
16401 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16402
16403         * event-msw.c (mswindows_drain_windows_queue):
16404         Don't generate paint magic events for non-XEmacs frames.
16405
16406 2000-03-05  Andy Piper  <andy@xemacs.org>
16407
16408         * redisplay.c (redisplay_frame): generate_displayable_area and
16409         friends assumes that we are not in GC, we therefore have to make
16410         sure that this doesn't happen.
16411
16412         * gutter.c (calculate_gutter_size): generate_displayable_area
16413         assumes that we are not in GC, we therefore have to make sure that
16414         this doesn't happen.
16415
16416 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16417
16418         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16419
16420 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16421
16422         * redisplay.c (regenerate_window): Make sure we set a sane value
16423         for end_pos even if we jump out of the loop.
16424         (regenerate_window): Answer Ben's question :-).
16425         (start_end_of_last_line): Add may_error argument.
16426         (start_of_last_line):
16427         (end_of_last_line): Pass may_error = 0.
16428         (end_of_last_line_may_error): New function.
16429         (pixel_to_glyph_translation): Use it, so we don't crash in
16430         event_to_glyph.
16431
16432 2000-03-04  Andy Piper  <andy@xemacs.org>
16433
16434         * window.h (struct window): add gutter_extent_modiff.
16435
16436         * window.c (allocate_window): zero out gutter_extent_modiff.
16437
16438         * redisplay.h: declare sync_display_line_structs.
16439
16440         * redisplay.c (add_glyph_rune): add a better comment.
16441
16442         * redisplay-output.c (sync_display_line_structs): made non-static.
16443         (compare_runes): remove unneccesary glyph cachel access.
16444
16445         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16446
16447         * gutter.c (output_gutter): don't output the gutter if extent
16448         changes only involve extents in buffers. use 4 sets of display
16449         lines.
16450         (gutter_extent_signal_changed_region_maybe): new function. Mark
16451         extents in gutters as changed.
16452         (update_frame_gutters): use 4 sets of display lines.
16453         (reset_gutter_display_lines): ditto.
16454         (free_frame_gutters): ditto.
16455         (redraw_exposed_gutter): force output of gutters.
16456
16457         * frame.h (struct frame): add 4 sets of gutter display lines.
16458
16459         * extents.c: (extent_changed_for_redisplay): signal changes to
16460         extents in strings in the gutter as well as extents in buffers.
16461
16462 2000-03-02  Andy Piper  <andy@xemacs.org>
16463
16464         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16465
16466         * frame.c (Fmake_frame): make sure the gutters get initialized
16467         after the frame is visible.
16468         (set_frame_selected_window): re-arrange compilation macros a
16469         little.
16470         (change_frame_size_1): mark gutters changed.
16471
16472         * device.c (Fset_device_class): mark gutters changed.
16473
16474 2000-03-01  Andy Piper  <andy@xemacs.org>
16475
16476         * window.c (window_top_frame_gutter_height): deleted.
16477         (window_bottom_frame_gutter_height): ditto.
16478         (window_left_frame_gutter_height): ditto.
16479         (window_right_frame_gutter_height): ditto.
16480         (window_top_gutter_height): don't use them.
16481         (window_bottom_gutter_height): ditto.
16482         (window_left_gutter_width): ditto.
16483         (window_right_gutter_width): ditto.
16484         (Fsplit_window): ditto.
16485         (Fwindow_pixel_edges): don't use border dimensions here.
16486
16487         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16488         (update_scrollbar_instance): ditto.
16489
16490         * redisplay.c (generate_modeline): don't take gutters into account.
16491         (generate_modeline): ditto.
16492         (redisplay_frame): small gutter display optimization.
16493
16494         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16495
16496         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16497         gutters into account.
16498
16499         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16500         for window position and type.
16501
16502         * gutter.c (get_gutter_coords): fix for frame gutters.
16503         (update_frame_gutters): update frame geometry if the gutters have
16504         changed.
16505         (init_frame_gutters): record current gutter geometries.
16506
16507         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16508         var.
16509         (mswindows_widget_instantiate): ditto.
16510
16511         * frame.h (struct frame): add current_gutter_bounds.
16512
16513         * frame.c (change_frame_size_1): position window and minibuffer
16514         appropriately taking into account the frame gutters.
16515
16516         * frame-x.c: (x_initialize_frame_size): take into account the
16517         frame gutters.
16518
16519 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16520
16521         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16522
16523 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16524
16525         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16526
16527 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16528
16529         * file-coding.c (reset_decoding_stream): Clear previous
16530         detection state when autodetect.
16531
16532 2000-02-29  Didier Verna  <didier@xemacs.org>
16533
16534         * extents.c (set_extent_glyph_1): don't require extents to be
16535         attached.
16536
16537 2000-02-27  Andy Piper  <andy@xemacs.org>
16538
16539         * gutter.c (Fset_default_gutter_position): don't default left and
16540         right gutter visibility to t.
16541         (Fset_default_gutter_position): run
16542         default-gutter-position-changed-hook.
16543         (syms_of_gutter): add default-gutter-position-changed-hook.
16544
16545 2000-02-26  Andy Piper  <andy@xemacs.org>
16546
16547         * specifier.c (Fmake_specifier): add gutter references.
16548
16549         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16550
16551         * lisp.h: declare Fvalid_plist_p.
16552
16553         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16554         as changed.
16555         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16556         well as its visibility so that it gets reconstructed.
16557         (construct_window_gutter_spec): new function. Construct a string
16558         to be displayed in the gutter from a plist of strings. Take care
16559         to only use elements that are declared as visible.
16560         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16561         WINDOW_GUTTER.
16562         (gutter_validate): allow plists of strings in the specifier.
16563         (gutter_specs_changed): construct the real_gutter from the gutter
16564         specs using construct_window_gutter_spec.
16565         (gutter_visible_validate): gutter-visible is a new specifier type.
16566         (Fgutter_visible_specifier_p): new function for the new specifier.
16567         (syms_of_gutter): declare gutter-visible and
16568         Fgutter_visible_specifier_p.
16569         (specifier_type_create_gutter): intitalize new gutter-visible
16570         specifier.
16571         (reinit_specifier_type_create_gutter): ditto.
16572         (specifier_vars_of_gutter): use new specifier type for gutter
16573         visibility.
16574         (init_frame_gutters): construct real_gutter correctly.
16575         (Fgutter_specifier_p): beef up documentation.
16576         (Fgutter_size_specifier_p): ditto.
16577
16578         * winslots.h: add real_gutter slots.
16579
16580 2000-02-25  Andy Piper  <andy@xemacs.org>
16581
16582         * device-msw.c: Be kind to older cygwin versions. From Raymond
16583         Toy <toy@rtp.ericsson.se>.
16584
16585         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16586         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16587
16588 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16589
16590         * elhash.c (MARK_OBJ): Practice macro hygiene.
16591
16592 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16593
16594         * miscplay.c: s/__inline__/inline/g;
16595         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16596         (get_device_compdc): INLINE ==> static inline
16597         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16598         find -name '*.h' | \
16599         xargs global-replace \
16600         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16601
16602 2000-02-25  Andy Piper  <andy@xemacs.org>
16603
16604         * window.c (window_top_frame_gutter_height): new function.
16605         (window_top_window_gutter_height): ditto.
16606         (window_top_gutter_height): use them.
16607         (window_bottom_frame_gutter_height): new function.
16608         (window_bottom_window_gutter_height): ditto.
16609         (window_bottom_gutter_height): use them.
16610         (window_left_window_gutter_width): new function.
16611         (window_left_frame_gutter_width): ditto.
16612         (window_left_gutter_width): use them.
16613         (window_right_window_gutter_width): new function.
16614         (window_right_frame_gutter_width): ditto.
16615         (window_right_gutter_width): use them.
16616         (window_pixel_height): new function. calulate window pixel height
16617         with frame gutter involvement.
16618         (Fsplit_window): calculate new sizes taking frame gutters into
16619         account.
16620         (window_char_height_to_pixel_height): don't include frame gutters.
16621         (window_char_height): use window_pixel_height.
16622         (window_pixheight): rename from window_pixel_height.
16623         (change_window_height): use it.
16624         (window_pixel_height_to_char_height): don't include frame gutters.
16625         (window_char_width_to_pixel_width): ditto.
16626
16627 2000-02-25  Andy Piper  <andy@xemacs.org>
16628
16629         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16630         if it is.
16631
16632 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16633
16634         * alloc.c (staticpro):
16635         (staticpro_nodump):
16636         (dumpstruct):
16637         (dumpopaque):
16638         (pdump_wire):
16639         (pdump_wire_list):
16640         (compact_string_chars):
16641         (pdump_dump_wired):
16642         Convert:  if (foo) abort();  ==>  assert (! foo);
16643
16644         * eldap.c (Fldap_search_basic):
16645         (Fldap_add):
16646         (Fldap_modify):
16647         (Fldap_delete):
16648         Fix compiler warnings, and possible crashes if (random) return
16649         value were to be used.
16650
16651 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16652
16653         * device-msw.c: Workaround ResetDC failure.
16654
16655         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16656         applying a devmode.
16657
16658         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16659         (mswindows_text_width): Do not start printer page.
16660
16661         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16662
16663         * glyphs-msw.c: Added image methods to msprinter console and
16664         msprinter-specific image instantiation.
16665
16666 2000-02-20  Mike Alexander  <mta@arbortext.com>
16667
16668         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16669         to avoid crashes when selection-sets-clipboard is on
16670         (mswindows_own_selection): ditto
16671
16672 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16673
16674         * glyphs-msw.c:
16675         * redisplay-msw.c (get_frame_dc):
16676         (get_frame_compdc):
16677         * console-msw.h:
16678         * device-msw.c (mswindows_init_device):
16679         (mswindows_delete_device):
16680         (msprinter_init_device):
16681         (msprinter_delete_device):
16682         * frame-msw.c (mswindows_init_frame_1):
16683         (mswindows_delete_frame):
16684         (msprinter_init_frame_3):
16685         (msprinter_delete_frame): Move compatible DC to device object from
16686         frame object, for both mswindows and msprinter. Only one at a time
16687         is needed, it is a real waste to have one per frame!
16688
16689 2000-02-23  Andy Piper  <andy@xemacs.org>
16690
16691         * glyphs.c: add dynamic width and height elements.
16692         (image_instance_equal): ditto.
16693
16694         * glyphs-widget.c (widget_query_geometry): calculate width and
16695         height dynamically if required.
16696         (initialize_widget_image_instance): initialize dynamic dimensions.
16697         (widget_instantiate): pick-up dynamic dimensions.
16698
16699         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16700         dynamic determination. Add appropriate macros.
16701
16702         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16703         dimensions safe.
16704         (WINDOW_GUTTER_SIZE): ditto.
16705         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16706
16707         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16708         inline.
16709         (get_frame_dc): ditto.
16710
16711         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16712         here.
16713
16714 2000-02-23  Martin Buchholz <martin@xemacs.org>
16715
16716         * XEmacs 21.2.31 is released.
16717
16718 2000-02-22  Ben Wing <ben@xemacs.org>
16719
16720         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16721
16722 2000-02-22  Andy Piper  <andy@xemacs.org>
16723
16724         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16725
16726 2000-02-21  Mike Sperber <mike@xemacs.org>
16727
16728         * .dbxrc:
16729         * .gdbinit:
16730         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16731         variables.
16732
16733 2000-02-21  Mike Sperber <mike@xemacs.org>
16734
16735         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16736
16737 2000-02-21  Martin Buchholz <martin@xemacs.org>
16738
16739         * XEmacs 21.2.30 is released.
16740
16741 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16742
16743         Performance hacking.
16744         * *.c (syms_of_*):
16745         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16746         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16747         * emacs.c (main_1):
16748         * lisp.h (DEFUN):
16749         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16750         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16751         * symeval.h (DEFVAR_SYMVAL_FWD):
16752         * symbols.c (guts_of_unbound_marker):
16753         Make all c_readonly objects also lisp_readonly and marked for life.
16754         * lrecord.h (struct lrecord_implementation):
16755         Document flags better.
16756         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16757         * lrecord.h (DECLARE_LRECORD):
16758         * lrecord.h (XSETRECORD):
16759         * lrecord.h (RECORDP):
16760         * lrecord.h (RECORD_TYPEP):
16761         * lrecord.h (RECORD_MARKER): New.
16762         * lrecord.h (error_check_*):
16763         * lrecord.h (CONCHECK_NONRECORD):
16764         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16765         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16766         * lrecord.h (set_lheader_implementation):
16767         * lrecord.h (enum lrecord_type): New.
16768         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16769         * alloc.c (disksave_object_finalization_1):
16770         * alloc.c (mark_object):
16771         * alloc.c (lrecord_type_index):
16772         * alloc.c (tick_lcrecord_stats):
16773         * alloc.c (Fgarbage_collect):
16774         * alloc.c (init_alloc_once_early):
16775         * alloc.c (pdump_load):
16776         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16777         * alloc.c (lrecord_type_index): Delete.
16778         Make lisp object type indexes be constant.
16779           Makes (byte-compile) 5% faster.
16780         Put all marker functions into their own array.
16781           Makes (garbage-collect) 5% faster.
16782         Optimize SYMBOL_VALUE_MAGIC_P.
16783           Makes (byte-compile) 2-3% faster.
16784         * config.h.in (gc_checking_assert): New.
16785         * alloc.c: Use gc_checking_assert().
16786         * .dbxrc: Make compatible with new object type implementation.
16787         * .gdbinit: Make compatible with new object type implementation.
16788         * alloc.c: Delete all symbols defined only for debugging, such as
16789         Lisp_Type_Vector and lrecord_charset.
16790
16791 2000-02-21  Andy Piper  <andy@xemacs.org>
16792
16793         * gui-msw.c (Fmswindows_shell_execute): fix file location
16794         problems.
16795
16796         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16797         unshowing so that set_window_buffer doesn't undo
16798         kill_buffer_hook's hard work.
16799
16800         * glyphs-widget.c (tab_control_query_geometry): don't count the
16801         first item when calculating geometry.
16802
16803         * glyphs.c (map_subwindow): remove redundant code.
16804         (update_frame_subwindows): be more circumspect about when to
16805         update subwindows.
16806
16807         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16808         when items haven't changed. Update faces if faces have changed as
16809         well as just the widget face.
16810         (x_tab_control_update): Update faces if faces have changed as well
16811         as just the widget face.
16812
16813 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16814
16815         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16816         registration.
16817         (build_syscolor_string): Use mswindows_color_to_string to try to
16818         get a named color.
16819         (mswindows_device_system_metrics): Reverse the foreground and
16820         background colors so that they match the documentation.
16821
16822         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16823         they match the default Windows palette.
16824         (mswindows_color_to_string): New function.
16825
16826 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16827
16828         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16829
16830 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16831
16832         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16833         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16834
16835         * symbols.c (init_symbols_once_early): Removed obsolete
16836         DATA_SEG_BITS related kludge.
16837         (defvar_magic): Ditto.
16838
16839         * malloc.c: Removed obsolete DATA_SEG_BITS
16840         * ralloc.c: Ditto.
16841         * mem-limits.h: Ditto.
16842
16843         * Makefile.in.in: Removed obsolete HAVE_SHM
16844         * emacs.c: Ditto.
16845
16846 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16847
16848         *  device-msw.c (mswindows_delete_device): Free DDE string
16849         handles.
16850
16851 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16852
16853         * keymap.c (get_keyelt):
16854         * unexnt.c (unexec):
16855         * vm-limit.c (memory_warnings):
16856         * ntheap.c (recreate_heap):
16857         * ntheap.h (UNINIT_PTR):
16858         * select-msw.c (Fmswindows_get_clipboard):
16859         (Fmswindows_set_clipboard):
16860         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16861         * objects-msw.c:
16862         * menubar-msw.c (displayable_menu_item):
16863         * glyphs-msw.c:
16864         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16865         * sysdep.c (sys_subshell):
16866         * process-nt.c (nt_create_process):
16867         * nt.c (normalize_filename):
16868         (dostounix_filename):
16869         (unixtodos_filename):
16870         * ntproc.c (win32_executable_type):
16871         * ntplay.c (play_sound_data_1):
16872         (play_sound_file):
16873         * editfns.c (get_home_directory):
16874         * event-msw.c (struct winsock_stream):
16875         (mswindows_dde_callback):
16876         * device-msw.c (msprinter_init_device):
16877         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16878
16879         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16880         mswindows_clear_toolbar were swapped!
16881
16882         * objects-msw.c:(colormap_t):
16883         (fontmap_t):
16884         * emacs.c (struct standard_args): Fixed const jumble.
16885
16886         * glyphs-widget.c (update_widget): Fixed comparison notation.
16887
16888         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16889
16890         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16891         __declspec(noreturn) syntax.
16892
16893 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16894
16895         * eldap.c (Fldap_open):
16896         (Fldap_search_basic):
16897         (Fldap_add):
16898         (Fldap_modify):
16899         Use new coding system conversion macros.
16900
16901 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16902
16903         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16904
16905 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16906
16907         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16908         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16909
16910         * eldap.c (Qadd, Qreplace): New constant symbols
16911         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16912         interruptions by XEmacs signals
16913         Remove unnecessary calls to slow_down_interrupts and
16914         speed_up_interrupts
16915         (Fldap_search_basic): Renamed from Fldap_search_internal
16916         Added new optional parameter VERBOSE that triggers the
16917         display of progress messages
16918         Remove unnecessary calls to slow_down_interrupts and
16919         speed_up_interrupts
16920         LDAP result code analysis rewritten
16921         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16922         (syms_of_eldap): Define the new symbols and functions
16923
16924
16925 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16926
16927         * realpath.c: Determine PATH_MAX maximally portably.
16928
16929         * insdel.c (bytecount_to_charcount): Optimize.
16930         The function used to be optimized for entirely ASCII sequences.
16931         Now it is optimized for successive characters from the same
16932         charset.  This also wins big for _mostly_ ASCII sequences.
16933
16934         * fileio.c (Ffile_truename): convert return from realpath() using
16935         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16936         - Rewrite GCPROing slightly.
16937
16938         * sysdep.c (sys_open): Do filename conversion, like all other
16939         sys_* functions.  Fixes bug:
16940         (let ((file-name-coding-system 'iso-8859-2))
16941            (write-region x y latin2-name))
16942         ==> writes filename using internal encoding.
16943
16944 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16945
16946         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16947         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16948         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16949         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16950         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16951         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16952         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16953         (CONST_IF_NOT_DEBUG): Delete.
16954         * alloc.c (this_one_is_unmarkable): Delete.
16955         (mark_object): Don't check for this_one_is_unmarkable. Use the
16956         c_readonly flag instead.
16957         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16958
16959 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16960
16961         * event-msw.c (mswindows_drain_windows_queue):
16962         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16963         away redundant repaint events.
16964
16965 2000-02-17  Andy Piper  <andy@xemacs.org>
16966
16967         * redisplay.h: declare mark_redisplay_structs.
16968
16969         * redisplay.c (redisplay_window):
16970         (redisplay_frame): don't check subwindows_state_changed.
16971         (mark_redisplay): mark gutters here.
16972
16973         * glyphs.c: (instantiate_image_instantiator): always layout if we
16974         haven't done so already.
16975         (allocate_image_instance): don't mark as dirty.
16976         (update_subwindow): bind inhibit_quit.
16977
16978         * gutter.c (mark_gutters): new function.
16979
16980         * glyphs-x.c (x_update_widget): Always resize to get round a
16981         widget bug.
16982
16983         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16984         breaking absolutely everything.
16985
16986         * gutter.h: declare mark_gutters.
16987
16988 2000-02-16  Martin Buchholz <martin@xemacs.org>
16989
16990         * XEmacs 21.2.29 is released.
16991
16992 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16993
16994         * fns.c (size_bit_vector): Fix computation of the size.
16995
16996 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16997
16998         * *.[ch]: Change CONST to const globally.
16999         find -name '*.[ch]' | \
17000         xargs global-replace \
17001         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
17002         - Remove vestigial references to CONST_IS_LOSING
17003
17004 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
17005
17006         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
17007         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
17008         events instead of dispatching them directly.
17009         (mswindows_handle_paint): New function to do repainting.
17010         (mswindows_wnd_proc):
17011         (emacs_mswindows_handle_magic_event): Call above function.
17012
17013 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
17014
17015         * objects-msw.c (mswindows_create_font_variant): Return the new
17016         font handle.
17017         (initialize_font_instance): Get font metrics from the underlined
17018         variant of the font to cope with the case where the underlined
17019         font has a bigger descent.
17020
17021 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17022
17023         * gui.c (gui_item_accelerator): Return the first underlined
17024         character in item name.
17025
17026 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17027
17028         * lisp.h: Added Qprinter.
17029
17030         * general.c (syms_of_general): Initialized it.
17031
17032         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
17033         (get_frame_dc):
17034         (get_frame_compdc): Made inline.
17035
17036         * console.h (struct console_methods): Added eject_page method.
17037
17038         * frame.h: Added FRAME_DISPLAY_P and friends.
17039         Aligned backslahes in many macros in more readable fashion.
17040         Added page_number to struct frame, and an accessor macro
17041         for it.
17042
17043         * defice.h: Added DEVICE_DISPLAY_P and friends.
17044
17045         * device.c (Fdevice_printer_p): Used these.
17046
17047         * frame.c (allocate_frame_core): Initialize page number.
17048         (Fprint_job_page_number):
17049         (Fprint_job_eject_page): Implemented.
17050
17051         * frame-msw.c (msprinter_eject_page): Added method.
17052         (msprinter_start_page): Added.
17053
17054         * window.c (Fwindow_truncated_p): Fixed docstring.
17055         (Fwindow_last_line_visible_height): Implemented.
17056
17057 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
17058
17059         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
17060
17061 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17062
17063         * syntax.c (scan_words): Always advance at least one character.
17064
17065 2000-02-13  Andy Piper  <andy@xemacs.org>
17066
17067         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
17068         to make sure the glyph is in the cachels.
17069
17070         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
17071         global image instance flag.
17072         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
17073         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
17074
17075         * glyphs.c (allocate_image_instance): set dirty bits correctly.
17076         (Fset_image_instance_property): mark layout as changed.
17077         (invalidate_glyph_geometry_maybe): mark layout as changed.
17078         (glyph_width): use new NEEDS_LAYOUT macro.
17079         (glyph_ascent): ditto.
17080         (glyph_descent): ditto.
17081         (glyph_height): ditto.
17082         (image_instance_layout): mark layout as clean after laying out.
17083         (update_subwindow): don't mark layout as clean here.
17084
17085         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
17086         should no longer be needed.
17087
17088         * glyphs-x.c (x_update_widget): sanitize asserts.
17089         (x_finalize_image_instance): sanitize assignment to widgets.
17090
17091         * glyphs-widget.c (widget_instantiate): don't need to clear the
17092         layout flag here.
17093
17094 2000-02-13  Martin Buchholz  <martin@xemacs.org>
17095
17096         * sysdep.c (getcwd): Use standard prototype.
17097         * sysdep.h (getcwd): Use standard prototype.
17098
17099         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
17100         (sequence, start, end).
17101         Remove redundant type checking.
17102         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
17103         view of `caller-protects') to avoid a crash where the real fix was
17104         found elsewhere.
17105
17106 2000-02-12  Martin Buchholz  <martin@xemacs.org>
17107
17108         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
17109
17110         * s/sol2.h: Remove feature macro initialization.
17111
17112         * alloc.c (alloc_lcrecord): Add more type checking assertions.
17113         (vector_hash): New.  Code from internal_hash.
17114         * lrecord.h:
17115         Fix up allocation subsystem comments.
17116
17117         * config.h.in: Add __EXTENSIONS__ for Solaris.
17118
17119         * systime.h (EMACS_GETTIMEOFDAY): New.
17120         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
17121         Remove Solaris-specific code.
17122         Use void* for the (ignored) second arg for gettimeofday().
17123
17124         * elhash.c (hash_table_hash): Implement it, finally.
17125         * elhash.c:  Use hashcode_t.
17126
17127         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
17128         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
17129
17130         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
17131         * fns.c (size_bit_vector):
17132         * alloc.c (size_vector):
17133         (make_vector_internal):
17134         (make_bit_vector_internal):
17135         (sweep_bit_vectors_1):
17136         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
17137
17138 2000-02-10  Martin Buchholz  <martin@xemacs.org>
17139
17140         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
17141         Include strings.h to avoid warnings for bzero and strcasecmp.
17142
17143 2000-02-10  Olivier Galibert  <galibert@pobox.com>
17144
17145         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
17146         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
17147
17148         * fns.c (size_bit_vector): New.  Declare bit vectors as a
17149         sequence.
17150
17151 2000-02-10  Olivier Galibert  <galibert@pobox.com>
17152
17153         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
17154         use a value field instead.
17155         (symbol_value_forward_forward): Use value field.
17156         (DEFVAR_SYMVAL_FWD): Use value field.
17157         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
17158         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
17159         (DEFVAR_CONST_INT): Ditto.
17160         (DEFVAR_BOOL): Ditto.
17161         (DEFVAR_CONST_BOOL): Ditto.
17162         (DEFVAR_INT_MAGIC): Ditto.
17163         (DEFVAR_BOOL_MAGIC): Ditto.
17164
17165         * symbols.c (guts_of_unbound_marker): Use value field.
17166         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
17167         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
17168
17169         * lisp.h: Declare dumpopaque and noninteractive1.
17170
17171         * alloc.c (dumpopaque): Added.
17172         (pdump_dump_opaquevec): Added.
17173         (pdump): Call pdump_dump_opaquevec to dump opaque data.
17174         (pdump_load): Reload opaque data.  Sync noninteractive1 with
17175         noninteractive.
17176
17177 2000-02-10  Andy Piper  <andy@xemacs.org>
17178
17179         * glyphs.c (image_instance_layout): if the size changes, mark it
17180         as such.
17181
17182         * redisplay-output.c (redisplay_output_layout): Update the
17183         subwindow here.
17184         (redisplay_output_subwindow): ditto.
17185
17186         * glyphs.c (update_subwindow): make sure we reset flags for
17187         layouts as well as everything else.
17188
17189         * glyphs-widget.c (layout_layout): don't need to set the instances
17190         dimensions here.
17191
17192 2000-02-09  Martin Buchholz  <martin@xemacs.org>
17193
17194         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
17195         not HAVE_DLOPEN, which is a lower-level thing.
17196
17197         * .cvsignore: Ignore gmon.out
17198
17199 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
17200
17201         * .cvsignore: Ignore portable dumper xemacs.dmp file
17202
17203 2000-02-09  Andy Piper  <andy@xemacs.org>
17204
17205         * redisplay-output.c (redisplay_output_layout): be more clever
17206         about when we output based on the changed flags.
17207
17208         * glyphs.h (struct image_instantiator_methods): add update_method.
17209         (struct Lisp_Image_Instance): add changed flags. Declare new
17210         macros for manipulating them.
17211
17212         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
17213         (image_instance_parent_glyph): find an image_instance's parent
17214         glyph or image_instance.
17215         (image_instance_layout): mark the size as changed.
17216         (set_image_instance_dirty_p): new function. mark an image
17217         instance, plus all of its parents, as dirty.
17218         (Fset_image_instance_property): use it.
17219         (Fglyph_animated_timeout_handler): use it.
17220         (update_subwindow): call update_widget and device methods for
17221         update_subwindow. Mark all changed flags as clean.
17222         (Fresize_subwindow): mark size as changed.
17223
17224         * glyphs-x.c (x_finalize_image_instance): try and detect gc
17225         failures.
17226         (x_update_subwindow): only resize subwindows here.
17227         (x_update_widget): new function. Update all changed properties of
17228         a widget.
17229         (x_resize_subwindow): deleted.
17230         (x_widget_set_property): deleted.
17231         (x_progress_gauge_set_property): deleted.
17232         (x_progress_gauge_update): new function. Implement recorded
17233         changes.
17234         (x_tab_control_update): ditto.
17235         (x_tab_control_set_property): deleted.
17236         (console_type_create_glyphs_x): declare new functions.
17237         (image_instantiator_format_create_glyphs_x): ditto.
17238
17239         * glyphs-widget.c (widget_set_property): mark text changed.
17240         (update_widget): new function. Update properties of a widget.
17241         (widget_instantiate): for layouts make sure we set their
17242         children's parent correctly.
17243         (tab_control_set_property): new function. Record changes that will
17244         take place under redisplay's control.
17245         (progress_gauge_set_property): ditto.
17246         (image_instantiator_progress_guage): declare new functions.
17247         (image_instantiator_tab_control): ditto.
17248
17249         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
17250         now.
17251         (mswindows_update_widget): new function. Update all properties on
17252         a widget that have changed.
17253         (mswindows_button_update): new function. Update a button's set
17254         state.
17255         (mswindows_tab_control_update): new function. Update the items in
17256         a tab.
17257         (mswindows_tab_control_set_property): deleted.
17258         (mswindows_progress_gauge_update): new function. Update the
17259         progress gauge's progress.
17260         (mswindows_widget_set_property): deleted. This is all done
17261         asynchronously now.
17262         (mswindows_progress_gauge_set_property): ditto.
17263         (console_type_create_glyphs_mswindows): declare new methods.
17264         (image_instantiator_format_create_glyphs_mswindows): ditto.
17265
17266         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
17267         (msprinter_set_frame_properties): ditto.
17268
17269         * console.h (struct console_methods): Add update_widget_method.
17270
17271 2000-02-09  Andy Piper  <andy@xemacs.org>
17272
17273         * gui-msw.c (Fmswindows_shell_execute): Make
17274         mswindows-shell-execute industrial strength.
17275
17276 2000-02-08  Martin Buchholz  <martin@xemacs.org>
17277
17278         * lrecord.h: Make macro argument `props' match member function `plist'.
17279         * fns.c (Fget):
17280         * fns.c (Fput):
17281         * fns.c (Fremprop):
17282         * fns.c (Fobject_plist):
17283         * alloc.c:
17284         * symbols.c:
17285         Object property list frobbing cleanup.
17286         - Allow any lisp object (compared with `eq'), not just symbols, as
17287           keys in object plists.
17288         - Move symbol plist frobbing into symbols.c, where it belongs.
17289         - Move string plist frobbing into alloc.c, where it belongs.
17290         - Everything's an lrecord now, so no need to test for symbolp, etc.
17291         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
17292
17293         * extents.c: Reorder code to remove declarations.
17294
17295         * frame.h (store_in_alist): Remove useless declaration.
17296
17297 2000-02-07  Martin Buchholz  <martin@xemacs.org>
17298
17299         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
17300         * config.h.in: Add HAVE_XCONVERTCASE.
17301
17302 2000-02-07  Andy Piper  <andy@xemacs.org>
17303
17304         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
17305         it breaks many things.
17306
17307 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
17308
17309         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
17310         actually can start a common comment type.
17311         * src/syntax.h (SYNTAX_END_P): ditto for end.
17312
17313 2000-02-07  Martin Buchholz <martin@xemacs.org>
17314
17315         * XEmacs 21.2.28 is released.
17316
17317 2000-02-06  Martin Buchholz  <martin@xemacs.org>
17318
17319         * event-Xt.c (x_keysym_to_character): New.
17320         (maybe_define_x_key_as_self_inserting_character): New.
17321         (x_has_keysym): New.
17322         Auto-define all keys on the keyboard as self-insert-key.
17323
17324 2000-02-02  Martin Buchholz  <martin@xemacs.org>
17325
17326         * menubar.c (vars_of_menubar): A small code simplification.
17327
17328         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
17329
17330         * ExternalShell.c:
17331         * ExternalClient.c:
17332         * EmacsShell-sub.c:
17333         * EmacsManager.c:
17334         * EmacsFrame.c:
17335         Use consistent style for specifying X resources.
17336
17337         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
17338         This makes (dontusethis-set-symbol-value-handler) actually usable.
17339
17340         * lrecord.h (lrecord_decription_type):
17341         * alloc.c (pdump_register_sub):
17342         (pdump_dump_data):
17343         (pdump_reloc_one):
17344         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
17345         Comply with XEmacs coding style.
17346         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
17347         args, and XD_LISP_OBJECT_ARRAY with 3 args.
17348
17349         * keymap.c (Faccessible_keymaps):
17350         Make (accessible-keymaps map "\C-h") do the Right Thing.
17351         Make (accessible-keymaps map []) do the Right Thing.
17352         Make (accessible-keymaps map "") do the Right Thing.
17353         (check_keymap_definition_loop): New function.
17354         (keymap_store_internal): Keep luser from shooting self in foot,
17355           via (define-key ctl-x-4-map "p" global-map).
17356         Remove fullness slot from struct Lisp_Keymap, since hash tables
17357         are now reliable.
17358         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17359
17360 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17361
17362         * redisplay.c (init_redisplay): Fix small memory leak.
17363         * elhash.h:
17364         * elhash.c (pdump_reorganize_hash_table):
17365         Rename from reorganize_hash_table. Change prototype.
17366         Reuse the original memory for hentries.  Save 100k.
17367         * alloc.c (PDUMP_READ): new macro.
17368         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17369         * alloc.c: No need to #ifndef before #undef.
17370
17371         * print.c: Allow debug_print() to print readably by modifying
17372         debug_print_readably.  Use consistent variable names.
17373
17374         * .dbxrc: Try to get things to work even if stopped in a function
17375         without source available by explicitly specifying source files.
17376 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17377
17378         * unexnt.c (_start): Removed bogus code which caused loading heap
17379         from differrent executable file.
17380         Removed bogus assignment to _fmode, which caused inconsistencies.
17381
17382 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17383
17384         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17385         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17386         Do not preliminary `#define signal sigset'.
17387
17388         * systime.h: Do not prototype environ on windows nt and cygwin,
17389         this conflicts with system header.
17390
17391         * syssignal.h: Use correct define for WINDOWSNT
17392
17393         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17394         with system header.
17395
17396         * sysdep.c (near start of file): Fixed commentary and rearranged
17397         ifdefs in readable order.
17398         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17399         (start_of_text):
17400         (end_of_text):
17401         (end_of_data): Do not compile in if using PDUMP.
17402
17403         * symsinit.h: Prototyped vars_of_nt().
17404
17405         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17406         (find_child_console): Use it.
17407         (sys_kill): Use it.
17408
17409         * ntheap.h: Do not extern os_subtype.
17410
17411         * ntheap.c (cache_system_info): Do not cache unneeded:
17412         nt_major_version, nt_minor_version and os_subtype.
17413         (recreate_heap): Do not compile in when PDUMPing.
17414
17415         * nt.c (geteuid and friends): Use the new varibale
17416         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17417         (init_user_info): Removed the above mentioned hackery.
17418         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17419         stat has been fixed in the C runtime.
17420         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17421
17422         * file-coding.c (struct file_coding_dump): Do not define
17423         ucs_to_mule_table in the struct if not MULE.
17424         (struct struct lrecord_description fcd_description_1): Do not dump
17425         the above.
17426
17427         * emacs.c (main_1): Call vars_of_nt().
17428         (right before Fdump_emacs_data): Don't need lastfile if using both
17429         portabe dumper and system malloc.
17430
17431         * alloc.c (Fmemory_limit): Conditionalized out.
17432         (pdump): Use OPEN_BINARY for the portable dump file.
17433         (pdump_load): Ditto.
17434
17435 2000-02-02  Mike Alexander  <mta@arbortext.com>
17436
17437         * nt.c (convert_time): Set tm_isdst before calling mktime and
17438         avoid calling it at all if the compiler supports 64 bit integers.
17439         Also initialize utc_base_ft before using it.
17440
17441 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17442
17443         * frame.c (change_frame_size_1): Take f->internal_border_width
17444         into consideration when calculating the width of the frame.
17445
17446 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17447
17448         * window.c (frame_min_height):
17449         (frame_size_valid_p):
17450         (frame_pixsize_valid_p): Added.
17451         (check_frame_size): Generalized.
17452
17453         * window.h: Prototyped the above.
17454
17455         * lisp.h:
17456         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17457         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17458         Deleted Vwin32_* and Vbinary_process_* unused variables.
17459
17460         * device-msw.c (msprinter_init_device): Do not get printer font
17461         list; Added DEVMODE functions.
17462
17463         * frame-msw.c: Added lots of printer code.
17464
17465         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17466         general.c.
17467
17468         * console-msw.h: Added more msprinter device private slots.
17469
17470 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17471
17472         * event-msw.c (key_needs_default_processing_p): Added.
17473         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17474
17475 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17476
17477         * glyphs.c (image_instance_layout): Mark image instance as clean
17478         after layout.
17479         (glyph_dirty_p): Removed redundant function.
17480         (invalidate_glyph_geometry_maybe): Added.
17481         (update_glyph_cachel_data): Call it.
17482
17483         * glyphs.h: Prototyped it.
17484
17485         * redisplay.c (add_glyph_rune): Call it.
17486         (redisplay_window): Reset glyphs cachels when frame faces have
17487         changed, thus forcing recomputation of built-in border glyphs.
17488
17489 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17490
17491         * Makefile.in.in: Make portable dumper and purify play well together.
17492         Add imperfect, but better than nothing, support for pdump.
17493         Remove xemacs.dmp when temacs is re-generated.
17494         Don't ignore errors when dumping xemacs.
17495
17496         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17497
17498 2000-01-28  Andy Piper  <andy@xemacs.org>
17499
17500         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17501         (setup_normal_frame): ditto.
17502         (setup_frame_without_minibuffer): ditto.
17503         (setup_minibuffer_frame): ditto.
17504         (delete_frame_internal): ditto.
17505         (Fmake_frame_invisible): ditto.
17506         (Ficonify_frame): ditto.
17507
17508         * window.h: change Fset_window_buffer signature.
17509
17510         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17511         (Fset_window_buffer): allow recording of buffer if the window is
17512         the selected window.
17513         (window_loop): Use new Fset_window signature.
17514
17515 2000-01-23  Daniel Pittman  <daniel@danann.net>
17516
17517         * config.h.in: Added template for `HAVE_ATHENA_3D'
17518
17519 2000-01-29  Andy Piper  <andy@xemacs.org>
17520
17521         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17522
17523         * gutter.c (output_gutter): Don't output if the window isn't live.
17524
17525 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17526
17527         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17528         of 01/12/00: Moved SetFocus back here where it belongs.
17529
17530 2000-01-23  Andy Piper  <andy@xemacs.org>
17531
17532         * s/cygwin32.h: declare printer things.
17533
17534 2000-01-26  Andy Piper  <andy@xemacs.org>
17535
17536         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17537         Alexander.
17538
17539 2000-01-24  Andy Piper  <andy@xemacs.org>
17540
17541         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17542         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17543
17544         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17545
17546         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17547
17548         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17549
17550         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17551         (mswindows_output_display_block): Avoid local shadows.
17552
17553         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17554         (mswindows_enqueue_mouse_button_event): ditto.
17555         (mswindows_handle_gui_wm_command): remove declaration.
17556
17557         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17558         warnings.
17559
17560         * console-msw.h: Avoid shadows.
17561         (mswindows_get_toolbar_button_text):
17562         (emacs_mswindows_create_stream_pair):
17563         (emacs_mswindows_delete_stream_pair):
17564         (mswindows_handle_toolbar_wm_command): declare.
17565
17566         * device-msw.c (build_syscolor_string): Avoid shadows.
17567
17568 2000-01-23  Andy Piper  <andy@xemacs.org>
17569
17570         * glyphs-widget.c (widget_instantiate): reverse the items for
17571         layouts so that children are in the expected order.
17572
17573 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17574
17575         * ralloc.c: safe_bcopy ==> memmove
17576         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17577         * s/msdos.h: Remove BCOPY macros.
17578         * insdel.c (gap_right): Remove BCOPY conditional code.
17579         * insdel.c (gap_left): Remove BCOPY conditional code.
17580         XEmacs demands a working ANSI C compiler - hence memmove.
17581
17582         * regex.c (regex_compile): Remove accidental use of trigraphs.
17583
17584 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17585
17586         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17587         event timestamp.
17588
17589 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17590
17591         * event-msw.c (mswindows_drain_windows_queue): Added the
17592         parameter.
17593         (mswindows_need_event): Commented the call to
17594         mswindows_drain_windows_queue().
17595         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17596         only.
17597
17598         * console-msw.h: Moved a few function prototypes here from
17599         event-msw.c.
17600
17601         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17602         parameter from unsigned short to unsigned long.
17603         (Fmswindows_shell_execute): Added return value.
17604
17605 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17606
17607         * sysdep.c (init_system_name):
17608           process-unix.c (unix_canonicalized_host_name):
17609         Don't call freeaddrinfo() if getaddrinfo() fails.
17610
17611         * process-unix.c (unix_open_unix_network_stream):
17612         Moved the code to get a port # into address loop.
17613
17614 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17615
17616         * buffer.c (reinit_vars_of_buffer):
17617         The right place to initialize conversion_in_dynarr and
17618         conversion_out_dynarr.
17619
17620         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17621
17622         * process-unix.c (unix_canonicalize_host_name): Muleize.
17623         (unix_open_network_stream): Muleize.
17624
17625         * buffer.h: Fix up prototypes for ralloc.c functions.
17626
17627 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17628         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17629         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17630                 instead of gethostbyname()
17631         * process-unix.c: In unix_canonicalize_host_name() and
17632                 unix_open_network_stream(), add code to use getaddrinfo()
17633                 instead of gethostbyname().
17634
17635 2000-01-27  Daniel Pittman <daniel@danann.net>
17636
17637         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17638         libs when built with flat Athena.
17639
17640 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17641
17642         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17643         Use coding standards for function prototypes.
17644
17645 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17646
17647         * dialog-msw.c (push_lisp_string_as_unicode):
17648         * doc.c (unparesseuxify_doc_string):
17649         * dired.c (Fuser_name_completion_1):
17650         * dired.c (Fuser_name_all_completions):
17651         * dired.c (free_user_cache):
17652         * dired.c (user_name_completion):
17653         * console-x.c (get_display_arg_connection):
17654         * minibuf.c (clear_echo_area_internal):
17655         * minibuf.c (echo_area_append):
17656         * eldap.c (Fldap_open):
17657         * eldap.c (Fldap_search_internal):
17658         * frame-x.c (x_set_frame_text_value):
17659         * frame-x.c (x_set_frame_properties):
17660         * frame-x.c (x_create_widgets):
17661         * redisplay-tty.c (term_get_fkeys_1):
17662         * objects-x.c (x_parse_nearest_color):
17663         * objects-x.c (x_valid_color_name_p):
17664         * objects-x.c (x_initialize_font_instance):
17665         * objects-x.c (x_list_fonts):
17666         * objects-x.c (x_find_charset_font):
17667         * tooltalk.c (Fadd_tooltalk_message_arg):
17668         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17669         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17670         * process-unix.c (unix_create_process):
17671         * ntproc.c (sys_spawnve):
17672         * sound.c (Fplay_sound_file):
17673         * sound.c (Fplay_sound):
17674         * buffer.c (init_initial_directory):
17675         * buffer.c (init_buffer):
17676         * editfns.c (init_editfns):
17677         * editfns.c (Ftemp_directory):
17678         * editfns.c (Fuser_full_name):
17679         * editfns.c (uncache_home_directory):
17680         * editfns.c (get_home_directory):
17681         * editfns.c (Fuser_home_directory):
17682         * editfns.c (Fformat_time_string):
17683         * editfns.c (Fcurrent_time_string):
17684         * gui-x.c (button_item_to_widget_value):
17685         * database.c (Fopen_database):
17686         * event-Xt.c (x_to_emacs_keysym):
17687         * event-Xt.c (x_event_to_emacs_event):
17688         * event-Xt.c (describe_event_window):
17689         * event-msw.c (mswindows_wnd_proc):
17690         * glyphs-eimage.c (jpeg_instantiate):
17691         * glyphs-eimage.c (gif_instantiate):
17692         * glyphs-eimage.c (png_instantiate):
17693         * glyphs-eimage.c (tiff_instantiate):
17694         * glyphs-x.c (xbm_instantiate_1):
17695         * glyphs-x.c (x_xbm_instantiate):
17696         * glyphs-x.c (x_xface_instantiate):
17697         * glyphs-x.c (autodetect_instantiate):
17698         * glyphs-x.c (cursor_font_instantiate):
17699         * glyphs-x.c (x_widget_instantiate):
17700         * glyphs-x.c (x_widget_set_property):
17701         * glyphs-x.c (x_widget_property):
17702         * glyphs-x.c (BUILD_GLYPH_INST):
17703         * print.c (write_string_to_stdio_stream):
17704         * print.c (output_string):
17705         * print.c (Falternate_debugging_output):
17706         * print.c (Fexternal_debugging_output):
17707         * glyphs-msw.c (extract_xpm_color_names):
17708         * glyphs-msw.c (mswindows_xpm_instantiate):
17709         * glyphs-msw.c (bmp_instantiate):
17710         * glyphs-msw.c (resource_name_to_resource):
17711         * glyphs-msw.c (mswindows_resource_instantiate):
17712         * glyphs-msw.c (xbm_instantiate_1):
17713         * glyphs-msw.c (mswindows_xbm_instantiate):
17714         * glyphs-msw.c (mswindows_xface_instantiate):
17715         * glyphs-msw.c (mswindows_widget_instantiate):
17716         * glyphs-msw.c (add_tree_item):
17717         * glyphs-msw.c (add_tab_item):
17718         * glyphs-msw.c (mswindows_combo_box_instantiate):
17719         * glyphs-msw.c (mswindows_widget_property):
17720         * glyphs-msw.c (mswindows_combo_box_property):
17721         * glyphs-msw.c (mswindows_widget_set_property):
17722         * console.c (stuff_buffered_input):
17723         * objects-msw.c (mswindows_initialize_color_instance):
17724         * objects-msw.c (mswindows_valid_color_name_p):
17725         * objects-msw.c (mswindows_list_fonts):
17726         * objects-msw.c (mswindows_font_instance_truename):
17727         * bytecode.c (optimize_compiled_function):
17728         * select-x.c (symbol_to_x_atom):
17729         * select-x.c (x_atom_to_symbol):
17730         * select-x.c (hack_motif_clipboard_selection):
17731         * select-x.c (selection_data_to_lisp_data):
17732         * select-x.c (lisp_data_to_selection_data):
17733         * select-x.c (Fx_get_cutbuffer_internal):
17734         * select-x.c (Fx_store_cutbuffer_internal):
17735         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17736         * buffer.h (TO_INTERNAL_FORMAT): New function.
17737         * emacs.c (make_arg_list_1):
17738         * emacs.c (make_argc_argv):
17739         * emacs.c (main_1):
17740         * emacs.c (Fdump_emacs):
17741         * emacs.c (split_string_by_emchar_1):
17742         * file-coding.h:
17743         * lisp.h:
17744         * lstream.h:
17745         * symsinit.h:
17746         * device-x.c (x_init_device):
17747         * device-x.c (Fx_valid_keysym_name_p):
17748         * device-x.c (Fx_get_font_path):
17749         * device-x.c (Fx_set_font_path):
17750         * glyphs.c (bitmap_to_lisp_data):
17751         * glyphs.c (pixmap_to_lisp_data):
17752         * alloc.c (make_ext_string): Use coding system arguments.  Update
17753         all callers.
17754         * alloc.c (build_string):
17755         * callproc.c (child_setup):
17756         * callproc.c (init_callproc):
17757         * fileio.c (lisp_strerror):
17758         * fileio.c (directory_file_name):
17759         * fileio.c (Fexpand_file_name):
17760         * fileio.c (Ffile_truename):
17761         * fileio.c (Fsysnetunam):
17762         * fileio.c (Fdo_auto_save):
17763         * sysdep.c (sys_readdir):
17764         * tests.c: New file.  Allow adding C tests.
17765         Replace GET_* macros with a more comprehensible and flexible
17766         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17767         Modify all calls.
17768         Any coding system can be used to do format conversion.
17769         Eliminate enum external_data_format.
17770         Eliminate convert_to_external_format.
17771         Eliminate convert_to_internal_format.
17772         Make sure file-name, keyboard, terminal, and ctext are always
17773         defined as coding systems or aliases.  Make
17774         file-name-coding-system, terminal-coding-system, and
17775         keyboard-coding-system magical variables that are equivalent to
17776         defining the corresponding coding system aliases.
17777
17778         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17779         * file-coding.c (Fcoding_system_alias_p): New function.
17780         * file-coding.c (Fcoding_system_aliasee): New function.
17781         * file-coding.c (append_suffix_to_symbol): New function.
17782         * file-coding.c (dangling_coding_system_alias_p): New function.
17783         * file-coding.c (Ffind_coding_system):
17784         * file-coding.c (Fcopy_coding_system):
17785         * file-coding.c (encode_coding_no_conversion):
17786         * file-coding.c (syms_of_file_coding):
17787         * file-coding.c (vars_of_file_coding):
17788         Rewrite coding system alias code.
17789         Allow nested aliases, like symbolic links.
17790         Allow redefinition of coding system aliases.
17791         Prevent existence of dangling coding system aliases.
17792
17793         * dired.c (Fuser_name_completion_1):
17794         * dired.c (Fuser_name_all_completions):
17795         A crash would happen if user did QUIT in the middle of building
17796         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17797
17798         * lisp.h:
17799         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17800
17801         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17802         an unsigned char *.  Update all callers.
17803
17804 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17805
17806         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17807
17808 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17809
17810         * elhash.c (hentry_description): Use more portable definition.
17811         (resize_hash_table): Initialize new hentries using
17812         xnew_array_and_zero, thereby simplifying the code.
17813
17814         * mule-charset.c (make_charset): Make sure entire object is
17815         initialized, to avoid Purify warnings.
17816
17817         * alloc.c (resize_string): Fix unlikely crash with big strings.
17818
17819 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17820
17821         * realpath.c (xrealpath):
17822         Don't call getwd().
17823
17824 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17825
17826         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17827
17828 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17829
17830         * unexelfsgi.c (unexec): Change the way we decide which segment
17831         should be extended.
17832
17833         Assumption that .bss section should be outside the PT_LOADable
17834         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17835         it's present) is inside the 'data' segment. This would fail the
17836         test which was used to find a segment to grow and cover new
17837         heap. Instead of this assumption, I created another one - on IRIX
17838         the segment to grow should start below .bss and it's address
17839         should extent above the end of .bss. Once this segment is
17840         identified, it's grown to accommodate the new heap and new
17841         zero-length .bss section is added at the end of .data2.
17842
17843 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17844
17845         * eval.c (Feval): Wrong number of arguments should use original
17846         function, not the indirect_function version of it.
17847
17848 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17849
17850         * glyphs-x.c (x_button_instantiate): Don't add image if
17851         it is not a pixmap.
17852         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17853         is relative.
17854
17855 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17856
17857         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17858         declaration.
17859         (DEFVAR_INT_MAGIC): Ditto.
17860         (DEFVAR_BOOL_MAGIC): Ditto.
17861         * glyphs.h: Reindent backslash.
17862
17863 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17864
17865         * glyphs-widget.c (layout_query_geometry):
17866         (layout_layout): Use correct types for gheight, gwidth.
17867
17868 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17869
17870         * EmacsManager.c (QueryGeometry): Purified.
17871
17872 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17873
17874         * alloc.c (make_float): Make sure entire object is initialized, to
17875         avoid Purify warnings.
17876         (pdump_register_sub): Remove useless assignment.
17877         (pdump): Use xmalloc, not malloc.
17878         (pdump_load): Use xmalloc, not malloc.
17879
17880 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17881
17882         * callproc.c:
17883         * dired-msw.c:
17884         * fileio.c:
17885         * process-nt.c:
17886         * redisplay-msw.c:
17887         * sysdep.c: Removed redundant #include <windows.h>
17888
17889 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17890
17891         * frame.c (delete_frame_internal): Do not delete device when its
17892         implementation so declares.
17893         (delete_frame_internal): Set device selected frame to nil when
17894         last frame goes away.
17895
17896         * device-msw.c (msprinter_device_system_metrics): Implemented.
17897         (mswindows_device_system_metrics): Added 'device-dpi property.
17898
17899         * device.c: (Fdevice_printer_p): Added.
17900         Added 'offset-workspace device metric.
17901
17902         * console.h (device_metrics): Declared DM_offset_workspace.
17903
17904 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17905
17906         * fileio.c (Ffile_truename): Remove pointless and confusing
17907         initialization of elen.
17908
17909         * glyphs-widget.c: Compiler warning fixes.
17910
17911 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17912
17913         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17914         instead of a Lisp_Object as argument to make it consistent with
17915         the other LIVE_P macros.
17916         (CHECK_LIVE_PROCESS): New macro.
17917
17918         * process.c: Declare Qprocess_live_p.
17919         (Fprocess_live_p): New function.
17920         (create_process): Use PROCESS_LIVE_P.
17921         (read_process_output): Ditto.
17922         (set_process_filter): Ditto.
17923         (Fdelete_process): Ditto.
17924         (kill_buffer_processes): Ditto
17925         (process_send_signal): Use CHECK_LIVE_PROCESS.
17926         (Fprocess_input_coding_system): Check whether process is still
17927         alive (fix PR#1061).
17928         (Fprocess_output_coding_system): Ditto.
17929         (Fprocess_coding_system): Ditto.
17930         (Fset_process_input_coding_system): Ditto.
17931         (Fset_process_output_coding_system): Ditto.
17932
17933 2000-01-23  Andy Piper  <andy@xemacs.org>
17934
17935         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17936         layout and widget.
17937
17938         * glyphs.c (mark_image_instance): take into account changed
17939         image_instance format.
17940         (image_instance_equal): ditto.
17941         (image_instance_hash): ditto.
17942
17943         * glyphs-widget.c (widget_instantiate): Incorporate layout
17944         instantiation here. Delay layout of the layout until later.
17945         (layout_instantiate): deleted.
17946         (layout_query_geometry): new function. get the geometry of a
17947         layout.
17948         (layout_layout): layout a layout dynamically.
17949         (image_instantiator_widget): New function - splitting up
17950         image_instantiator_format_create_glyphs_widget for netwinder
17951         compilation.
17952         (image_instantiator_buttons):
17953         (image_instantiator_edit_fields):
17954         (image_instantiator_combo_box):
17955         (image_instantiator_scrollbar):
17956         (image_instantiator_progress_guage):
17957         (image_instantiator_tree_view):
17958         (image_instantiator_tab_control):
17959         (image_instantiator_labels):
17960         (image_instantiator_layout): ditto.
17961         (image_instantiator_format_create_glyphs_widget): Call preceding
17962         functions.
17963
17964 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17965
17966         * process.c (Fset_process_coding_system):
17967         * device-x.c (Fx_keysym_hash_table):
17968         Docstring fixes.
17969
17970         * lstream.c (Lstream_write): Return documented value, not 0.
17971
17972         * fileio.c (directory_file_name):
17973         (Fsubstitute_in_file_name):
17974         (Fsubstitute_insert_file_contents_internal):
17975         (Fwrite_region_internal):
17976         * emacs.c:
17977         * sysdep.c:
17978         * getloadavg.c:
17979         * systty.h:
17980         Remove vestigial APOLLO-conditional code.
17981
17982 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17983
17984         * getpagesize.h: Add guard macros.
17985         * libsst.h: Add guard macros.
17986         * libst.h: Add guard macros.
17987         * line-number.h: Add guard macros.
17988         * ndir.h: Add guard macros.
17989         * sysfloat.h: Add guard macros.
17990         * sysfile.h: Add guard macros.
17991         * sysproc.h: Add guard macros.
17992         * syswait.h: Add guard macros.
17993         * xintrinsic.h: Add guard macros.
17994         * xintrinsicp.h: Add guard macros.
17995         * xmmanager.h: Add guard macros.
17996         * xmmanagerp.h: Add guard macros.
17997         * xmprimitive.h: Add guard macros.
17998         * xmu.h: Add guard macros.
17999         * gpmevent.h: Add copyright statement. Add guard macros.
18000         * miscplay.h: Add guard macros.
18001         * *.h: Use consistent C-standards-approved guard macro names.
18002
18003         * opaque.c (make_opaque): Switch parameter order.
18004         * opaque.h (make_opaque): Switch parameter order.
18005         Update all callers.
18006         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
18007
18008         * config.h.in (type_checking_assert): Added.
18009         (bufpos_checking_assert): Added.
18010
18011 2000-01-21  Martin Buchholz  <martin@xemacs.org>
18012
18013         * alloc.c: Harmless pdump changes.
18014         - Use countof().
18015         - spell alignment correctly.
18016         * sysdep.c: Use countof()
18017
18018 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18019
18020         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
18021         initially_selected_for_input() console method, default to 0.
18022         (semi_canonicalize_console_connection): Try to delegate to
18023         canonicalize_console_connection if no such console method.
18024         (canonicalize_console_connection): Vice versa.
18025         (print_console): Do not print nil connection.
18026
18027         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
18028         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
18029         (XDEVIMPF_FRAMELESS_OK): Added.
18030         (CONSOLE_INHERITS_METHOD): Added.
18031
18032         * console-msw.c (mswindows_canonicalize_console_connection):
18033         Added.
18034         (mswindows_canonicalize_device_connection): Added.
18035
18036         * console-msw.h (struct msprinter_device): Added this struct and
18037         accessor macros.
18038         (mswindows_device): Made fontlist a lisp object.
18039
18040         * device.c (semi_canonicalize_device_connection):  Try to delegate
18041         to canonicalize_device_connection if no such console method.
18042         (canonicalize_device_connection): Vice versa.
18043         (print_device): Do not print nil connection.
18044
18045         * device-msw.c (mswindows_init_device): Call InitCommonControls
18046         when have widgets.
18047         (mswindows_delete_device): Removed fontlist deallocation.
18048         (mswindows_mark_device): Added.
18049
18050         * events.c (event_equal): Added abort() at unreached code.
18051         (event_hash): Ditto.
18052
18053         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
18054         fallback tags of Windows devices.
18055
18056         * general.c (syms_of_general): Initialized Qmsprinter.
18057
18058         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
18059         of fallback tags of Windows devices.
18060
18061         * lisp.h: Declared Qmsprinter.
18062
18063         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
18064         of strings.
18065         (mswindows_list_fonts): Ditto.
18066         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
18067         that it can be used by both mswindows and msprinter devices.
18068         (initialize_font_instance): Added.
18069         (mswindows_initialize_font_instance): Use it.
18070         (msprinter_initialize_font_instance): Added.
18071
18072         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
18073         and implementation flags check.
18074         (redisplay_without_hooks): Changed the call to the above.
18075         (Fredraw_device): Ditto.
18076         (Fredisplay_device): Ditto.
18077
18078         * redisplay-msw.c (get_frame_dc): Implemented.
18079         (get_frame_compdc): Implemented.
18080         (many functions): Use the two functions above to get device
18081         contexts, ether for a window or a printer.
18082
18083 2000-01-21  Olivier Galibert  <galibert@pobox.com>
18084
18085         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
18086         initialization here.
18087         (init_symbols_once_early): Call it.
18088         * emacs.c (main_1): Call it.
18089         * symsinit.h: Declare it.
18090
18091 2000-01-19  Olivier Galibert  <galibert@pobox.com>
18092
18093         * alloc.c: Use a lrecord_header * in the backtrace instead of a
18094         Lisp_Object.
18095         (pdump_backtrace): Ditto.
18096         (pdump_register_object): Ditto.  Cleanup use of the pointers.
18097         (pdump_get_entry): Abort if trying to register a null pointer.
18098         (pdump_dump_data): Cleanup types when relocating.
18099         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
18100         (pdump_dump_rtables): Remove bad casts.
18101         (pdump_load): Cleanup relocation w.r.t union type.  Use a
18102         Lisp_Object instead of a EMACS_INT for the hashtable
18103         reorganization.
18104
18105 2000-01-20  Martin Buchholz  <martin@xemacs.org>
18106
18107         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
18108
18109         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
18110
18111         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
18112
18113         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
18114
18115 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18116
18117         * faces.h (FACE_STRIKETHRU_P): Added.
18118
18119         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
18120         of font variants.
18121
18122         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
18123         (mswindows_set_dc_font): New function, aware of font variants,
18124         separated from mswindows_update_dc.
18125
18126         * objects-msw.h (struct mswindows_font_instance_data): Added
18127         definition.
18128
18129         * objects-msw.c (mswindows_finalize_font_instance): Delete all
18130         cached fonts and the data structure.
18131         (mswindows_initialize_font_instance): Added creation of font data
18132         structure.
18133         (mswindows_print_font_instance): Print at least something.
18134         (mswindows_create_font_variant): Implemented.
18135         (mswindows_get_hfont): Implemented.
18136
18137 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
18138
18139         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
18140         prototyping problem with msvc.
18141
18142         * emacs.c (main_1): added syms_of_gui_mswindows() call
18143
18144         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
18145         syms_of_gui_mswindows() function
18146
18147         * symsinit.h: added the prototype for syms_of_gui_mswindows()
18148
18149 2000-01-18  Martin Buchholz <martin@xemacs.org>
18150
18151         * XEmacs 21.2.27 is released.
18152
18153 2000-01-18  Martin Buchholz  <martin@xemacs.org>
18154
18155         * glyphs-eimage.c (struct tiff_error_struct):
18156         (tiff_error_func):
18157         (tiff_warning_func):
18158         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
18159
18160         * unexmips.c:
18161         * unexhp9k3.c:
18162         * unexfreebsd.c:
18163         * unexec.c: Remove vestigial Lucid C code.
18164         * unexalpha.c:
18165         * unexaix.c:
18166         * termcap.c:
18167         * libsst.c: Ansify.
18168         Remove declarations of errno and strerror().
18169
18170         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
18171
18172         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
18173
18174 2000-01-16  Martin Buchholz  <martin@xemacs.org>
18175
18176         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
18177         Optimize.
18178
18179 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18180
18181         * md5.c:
18182         * file-coding.c:
18183         * file-coding.h:
18184         Change enum eol_type to eol_type_t.
18185
18186 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18187
18188         * gui.c (get_gui_callback): Check cons before accessing car.
18189
18190 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18191
18192         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
18193         (XSETSPECIFIER_TYPE): Ditto.
18194
18195 2000-01-17  Didier Verna  <didier@xemacs.org>
18196
18197         * redisplay.c (generate_fstring_runes): compute string size in
18198         characters, not bytes.
18199
18200 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18201
18202         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
18203
18204 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
18205
18206         * print.c (print_error_message): Call print_prepare().
18207
18208 2000-01-14  Martin Buchholz  <martin@xemacs.org>
18209
18210         * .dbxrc: Renamed from dbxrc.
18211
18212         * events.c (event_to_character):
18213         Use `assert (foo)' instead of `if (!foo) abort()'
18214
18215         * .gdbinit (xtype): Add documentation.
18216         * .gdbinit (check-temacs): New function.
18217         * .gdbinit (check-xemacs): New function.
18218         * dbxrc (check-xemacs): New function.
18219         * dbxrc (check-xemacs): New function.
18220
18221 2000-01-14  Andy Piper  <andy@xemacs.org>
18222
18223         * glyphs-widget.c (widget_query_geometry): Make sure that we
18224         calculate default dimensions correctly.
18225
18226 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18227
18228         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
18229
18230         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
18231         pdump_wire'd variable.
18232
18233         * emacs.c: (main_1): Conditionalized calls to
18234         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
18235
18236 2000-01-13  Martin Buchholz  <martin@xemacs.org>
18237
18238         * window.c (Fset_window_configuration):
18239         * sysdep.c (_start):
18240         * input-method-motif.c (res):
18241         * event-Xt.c (Xt_process_to_emacs_event):
18242         Simple compiler warning fixes.
18243
18244         * bytecode.c (funcall_compiled_function): Use the original
18245         function symbol on the backtrace list in preference to the
18246         compiled_function object in error messages.
18247
18248 2000-01-13  Andy Piper  <andy@xemacs.org>
18249
18250         * glyphs-x.c (update_widget_face): Make sure we update the widget
18251         background as well as foreground.
18252
18253 2000-01-13  Andy Piper  <andy@xemacs.org>
18254
18255         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
18256         fields to subwindow.
18257         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
18258         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
18259         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18260         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18261
18262         * glyphs-widget.c (check_valid_tab_orientation): new function.
18263         (initialize_widget_image_instance): zero orientation and
18264         justification.
18265         (widget_instantiate): pick up orientation.
18266         (tab_control_query_geometry): return appropriate values for
18267         vertical tabs.
18268
18269         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
18270         appropriate creation flags for left, right and bottom tabs.
18271
18272         * s/cygwin32.h: add tab definitions.
18273
18274 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18275
18276         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
18277         frame upon hiding a subwindow.
18278         (mswindows_button_instantiate): Changed the push button style to
18279         BS_PUSHBUTTON.
18280         (mswindows_button_instantiate): Removed button BS_NOTIFY
18281         style.
18282         (mswindows_button_instantiate): Removed redundant check for
18283         a disabled gui item.
18284         (mswindows_button_instantiate): Made use of WS_TABSTOP
18285         consistent: "operable" controls (edit, button, tree, scroll) have
18286         this style, "display-only" ones (static, progress gauge) do
18287         not. This style is currently ignored by XEmacs though. Also,
18288         removed the WS_EX_CONTROLPARENT style - it is not for children,
18289         it is for their parents!
18290         (mswindows_edit_field_instantiate): Ditto.
18291         (mswindows_progress_gauge_instantiate): Ditto.
18292         (mswindows_tree_view_instantiate): Ditto.
18293         (mswindows_tab_control_instantiate): Ditto.
18294         (mswindows_scrollbar_instantiate): Ditto.
18295         (mswindows_combo_box_instantiate): Ditto.
18296         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
18297         style to the "clip" window.
18298         (mswindows_button_instantiate): Removed compilation warning by
18299         equally typing terms of the ?: operator.
18300
18301 2000-01-12  Didier Verna  <didier@xemacs.org>
18302
18303         * redisplay.c (generate_fstring_runes): new parameter holding the
18304         last modeline-format extent.
18305         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
18306         extent, fill the glyph block with it.
18307         (generate_fstring_runes): handle these parameters.
18308         (generate_formatted_string_db): ditto.
18309
18310         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
18311         glyphs'extents in the modeline.
18312
18313 1999-01-11  Mike Woolley  <mike@bulsara.com>
18314
18315         * ntheap.c: Reduced the reserved heap space from 1Gb down to
18316         256Mb, as a workaround for the non-starting problem many people
18317         have experienced.
18318
18319 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18320
18321         * console-tty.c (Fset_console_tty_output_coding_system):
18322         Force redrawing tty frame.
18323
18324 2000-01-10  Didier Verna  <didier@xemacs.org>
18325
18326         * redisplay.c (generate_fstring_runes): fix size computation bug.
18327
18328 2000-01-09  William M. Perry <wmperry@aventail.com>
18329
18330         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
18331
18332 2000-01-09  Andy Piper  <andy@xemacs.org>
18333
18334         * glyphs-msw.c: index -> i to avoid shadows.
18335         (xbm_create_bitmap_from_data): make static.
18336         (check_valid_string_or_int): deleted.
18337         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
18338
18339         * glyphs-x.c (x_update_subwindow): remove unused args.
18340
18341         * glyphs.c (glyph_image_instance): return the thing. Don't set the
18342         back pointer - this is done in allocate_image_instance.
18343         (query_string_font): return Qnil to make the compiler happy.
18344         (unmap_subwindow): set to ~0 to make the compiler happy.
18345         (glyph_query_geometry): comment out until used.
18346         (glyph_layout): ditto.
18347
18348 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18349
18350         * insdel.c (signal_after_change): Remove extraneous unbind_to().