update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2011-02-12  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (Fmake_charset): Fix problem for 94^n or 96^n
4         coded-charsets with builtin characters.
5
6 2011-02-09  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
7
8         * text-coding.c (Qrep_decomposition): New extern.
9         (char_encode_utf8): Try to encode as combing sequence (or IVS).
10
11 2011-01-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
12
13         * concord.c (Fconcord_genre_ds): Add "#ifdef HAVE_LIBCHISE" ...
14         "#endif" for code to refer Vchise_system_db_directory.
15
16 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
17
18         * concord.c (Fconcord_object_put): Use `member' instead of `memq'.
19         (Fconcord_object_adjoin): New function.
20         (Fconcord_object_adjoinX): New function.
21         (syms_of_concord): Defsubred `Fconcord_object_adjoin' and
22         `Fconcord_object_adjoinX'.
23
24 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
25
26         * concord.c:
27         - Include "elconcord.h".
28         - Move EXFUNs for `Fconcord_decode_object', `Fconcord_object_put'
29           and `Fconcord_object_get' to elconcord.h.
30         (Lisp_CONCORD_DS): Moved to elconcord.h.
31         (struct Lisp_CONCORD_DS): Ditto.
32         (XCONCORD_DS): Ditto.
33         (XSET_CONCORD_DS): Ditto.
34         (CONCORD_DS_P): Ditto.
35         (CHECK_CONCORD_DS): Ditto.
36         (CONCHECK_CONCORD_DS): Ditto.
37         (Lisp_CONCORD_Object): Ditto.
38         (struct Lisp_CONCORD_Object): Ditto.
39         (XCONCORD_OBJECT): Ditto.
40         (XSET_CONCORD_OBJECT): Ditto.
41         (CONCORD_OBJECT_P): Ditto.
42         (CHECK_CONCORD_OBJECT): Ditto.
43         (CONCHECK_CONCORD_OBJECT): Ditto.
44         (CONCORD_OBJECT_GENRE): Ditto.
45         (CONCORD_OBJECT_ID): Ditto.
46         (XCONCORD_OBJECT_ID): Ditto.
47         (XCONCORD_OBJECT_GENRE): Ditto.
48         (concord_object_equal): New function.
49         (LRECORD_IMPLEMENTATION of "concord_object"): Use
50         `concord_object_equal'.
51
52         * elconcord.h: New file.
53
54 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
55
56         * concord.c (print_concord_object): Use readable form even if
57         `print-readably' is nil.
58
59 2010-11-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
60
61         * concord.c (print_concord_object): Don't display location of
62         data-source when `print-readably' is nil.
63
64 2010-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
65
66         * concord.c (Fconcord_genre_ds): Use Vchise_system_db_directory as
67         the default location of data-source.
68         (complex_vars_of_concord): Use Vchise_system_db_directory to
69         assign genre `character' and `feature'.
70
71         * chartab.h (Vchise_system_db_directory): New extern when
72         HAVE_CONCORD is defined.
73
74 2010-09-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
75
76         * concord.c: Include <chise.h> if HAVE_LIBCHISE is defined.
77         (Qcharacter): New variable when HAVE_LIBCHISE is defined.
78         (Qfeature): Ditto.
79         (Fconcord_object_genre): New function.
80         (syms_of_concord):
81         - Add new builtin symbols `character' and `feature' when
82           HAVE_LIBCHISE is defined.
83         - Add Add new builtin function `concord-object-genre'.  
84         (complex_vars_of_concord): New function; assign genres `character'
85         and `feature' when HAVE_LIBCHISE is defined.
86
87 2010-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
88
89         * emacs.c (main_1): Call `complex_vars_of_concord' when
90         HAVE_CONCORD is defined.
91
92         * symsinit.h (complex_vars_of_concord): New prototype.
93
94 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
95
96         * chartab.c (allocate_character): Add `static'.
97
98 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
99
100         * chartab.c (allocate_character): New function.
101         (Fdefine_char): Use allocate_character().
102
103 2010-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
104
105         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.25
106         (Ōkawara).
107
108 2010-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
109
110         * chartab.c (save_uint8_byte_table): Fixed problem when a property
111         is unloaded.
112         (save_uint16_byte_table): Likewise.
113
114 2010-02-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
115
116         * chartab.c (Fchar_feature_property): New function when LIBCHISE
117         is enabled.
118         (Fput_char_feature_property): Likewise.
119         (syms_of_chartab): Add new builtin functions
120         `char-feature-property' and `put-char-feature-property' when
121         LIBCHISE is enabled.
122
123 2009-04-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
124
125         * mule-charset.c (Fmake_charset): Add DOC-string of 'iso-ir and
126         '=>iso-ir.
127         (Fcharset_property): Regard '=>iso-ir as same as `iso_ir.
128
129 2009-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
130
131         * mule-charset.c (Qto_iso_ir): New variable for XEmacs CHISE.
132         (make_charset): Add new argument `iso_ir'.
133         (Fmake_charset): Add new property `=>iso-ir' in XEmacs CHISE.
134         (Fmake_reverse_direction_charset): Copy CHARSET_ISO_IR(cs) in
135         XEmacs CHISE.
136         (Fcharset_property): Support `iso-ir' in XEmacs CHISE.
137         (syms_of_mule_charset): Add new builtin symbol `=>iso-ir' in
138         XEmacs CHISE.
139         (complex_vars_of_mule_charset): Specify argument `iso_ir' of
140         function `make_charset'.
141
142         * char-ucs.h (LEADING_BYTE_*): Enclose negative value with ( ).
143         (struct Lisp_Charset): Add new member `iso_ir'.
144         (CHARSET_ISO_IR): New macro.
145
146 2009-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
147
148         * mule-charset.c (Fdecode_char): Fix problem when decoding GR
149         code-point by GL charset.
150
151 2008-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
152
153         * concord.c (concord_id_validate): New function.
154         (structure_type_create_concord): Use `concord_id_validate' instead
155         of `concord_name_validate' to accept integer and character as =id.
156
157 2008-09-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
158
159         * concord.c (func_for_each_object): Fix bug about GC-protection.
160
161 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
162
163         * concord.c (Fconcord_object_put): Check argument FEATURE is a
164         symbol.
165
166 2008-09-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
167
168         * text-coding.c (struct decoding_stream): Add new member
169         `bom_flag' in XEmacs CHISE.
170         (reset_decoding_stream): Ignore U+FEFF in the beginning of stream
171         in XEmacs CHISE.
172
173 2008-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
174
175         * mule-charset.c: Move definition of `=jis-x0208@1978' to
176         lisp/mule/mule-conf.el.
177
178 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
179
180         * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
181         (make_charset): Add new argument `partial'.
182         (Fmake_charset): Add new property 'partial in XEmacs CHISE.
183         (Fmake_reverse_direction_charset): Modify for `make_charset'.
184         (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
185         CHISE.
186         (complex_vars_of_mule_charset): Modify for `make_charset'; specify
187         `=jis-x0208' as a partial coded-charset.
188
189 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
190
191         * text-coding.c (decode_add_er_char): Fix problem when a character
192         represented by an entity-reference is not defined.
193
194 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
195
196         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
197         Qrep_*.
198
199 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
200
201         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
202         (Kasagi).
203
204 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
205
206         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
207         is a relation feature.
208
209 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
210
211         * chartab.c (syms_of_chartab): Define
212         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
213
214         * chartab.h (Q_denotational): New extern when UTF2000 or
215         HAVE_CONCORD is defined.
216         (Q_denotational_from): Likewise.
217         (Q_subsumptive): Likewise.
218         (Q_subsumptive_from): Likewise.
219
220 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
221
222         * concord.c (concord_object_put): New function.
223         (Fconcord_object_put): Use `concord_object_put'.
224
225 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
226
227         * concord.c (Fconcord_define_object): New function.
228         (syms_of_concord): Add new builtin function
229         `concord-define-object'.
230
231 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
232
233         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
234         (Kamo).
235
236 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
237
238         * concord.c: Add EXFUN for Fconcord_object_get.
239         (Vconcord_genre_object_hash_table): New variable.
240         (concord_genre_cache_get_object): New function.
241         (concord_genre_cache_put_object): New function.
242         (Fconcord_make_object): Use object cache; put object-ID into `=id'
243         feature.
244         (Fconcord_object_put): Call `concord_index_sync' after
245         `concord_index_strid_put_obj'.
246         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
247
248 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
249
250         * concord.c (Fconcord_decode_object): Do GCPRO for
251         Fconcord_make_object.
252         (func_for_each_object): Likewise; do GCPRO for
253         for_each_object_closure->function.
254         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
255         for_each_object_closure->function, for_each_object_closure->genre,
256         for_each_object_closure->ds and for_each_object_closure->ret.
257         (concord_object_validate): Do GCPRO for Fconcord_make_object.
258
259 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
260
261         * concord.c: Add EXFUNs for Fconcord_decode_object and
262         Fconcord_object_put.
263         (Fconcord_make_object): Change order of arguments.
264         (Fconcord_decode_object): Modify for Fconcord_make_object.
265         (func_for_each_object): Likewise.
266         (concord_object_validate): Likewise.
267         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
268
269 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
270
271         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
272
273 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
274
275         * concord.c (Fconcord_decode_object): Try to use readable print
276         form as a key of Concord-index.
277         (Fconcord_object_get): Try to use readable print form as an ID of
278         Concord-object.
279         (Fconcord_object_put): Try to use readable print form as an ID of
280         Concord-object and a feature value.
281         (Fconcord_object_spec): Try to use readable print form as an ID of
282         Concord-object.
283
284 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
285
286         * concord.c (print_concord_object): Support readable form.
287
288 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
289
290         * emacs.c (main_1): Call `structure_type_create_concord' when
291         HAVE_CONCORD is defined.
292
293         * symsinit.h (structure_type_create_concord): New prototype.
294
295         * concord.c (Qconcord_object): New variable.
296         (Qgenre): Likewise.
297         (Q_id): Likewise.
298         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
299         for directory.
300         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
301         char*> for genre-name.
302         (Fconcord_feature_list): Likewise.
303         (Fconcord_make_object): Likewise.
304         (Fconcord_decode_object): Likewise; use <char*> instead of
305         <unsigned char*> for feature_name and strid.
306         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
307         c_obj and feature_name.
308         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
309         char*> for c_value.
310         (struct closure_for_object_spec): Use <char*> instead of <unsigned
311         char*> for member `object_id'.
312         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
313         char*> for feature-name.
314         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
315         for c_obj.
316         (func_for_each_object): Cast to avoid warnings.
317         (Fconcord_foreach_object_in_feature): Use <char*> instead of
318         <unsigned char*> for genre_name and feature_name.
319         (concord_name_validate): New function.
320         (concord_object_validate): Likewise.
321         (concord_object_instantiate): Likewise.
322         (syms_of_concord): Add new builtin symbols `concord-object',
323         `genre' and `=id'.
324         (structure_type_create_concord): New function.
325
326 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
327
328         * concord.c (Vconcord_ds_hash_table): New variable.
329         (Vconcord_genre_hash_table): New variable.
330         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
331         (Fconcord_ds_directory): New function.
332         (Fconcord_assign_genre): New function.
333         (Fconcord_genre_directory): New function.
334         (Fconcord_genre_ds): New function.
335         (Fconcord_feature_list): Allow to omit `ds'.
336         (Fconcord_make_object): Likewise.
337         (Fconcord_decode_object): Likewise.
338         (Fconcord_foreach_object_in_feature): Likewise.
339         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
340         Fconcord_assign_genre, Fconcord_genre_directory and
341         Fconcord_genre_ds.
342         (vars_of_concord): Setup Vconcord_ds_hash_table and
343         Vconcord_genre_hash_table.
344
345 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
346
347         * concord.c (struct closure_for_each_object): Add new member
348         `ret'.
349         (func_for_each_object): Setup the return value to
350         `for_each_object_closure->ret'.
351         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
352         returns the value instead of Qt.
353
354 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
355
356         * concord.c: New file.
357
358 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
359
360         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
361         `lrecord_type_concord_object'.
362
363 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
364
365         * symsinit.h (syms_of_concord): New prototype.
366         (vars_of_concord): New prototype.
367
368         * emacs.c (main_1): Setup symbols and variable about concord if
369         HAVE_CONCORD is defined.
370
371         * config.h.in (HAVE_CONCORD): New macro.
372
373 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
374
375         * chartab.c (Fput_char_attribute): For each character relation
376         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
377
378 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
379
380         * chartab.c (Fput_char_attribute): Use
381         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
382         calling `put_char_composition'.
383
384 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
385
386         * chartab.c (Q_halfwidth_of): New variable.
387         (put_char_composition): Return `<-halfwidth' instead of
388         `=decomposition' for compatibility mapping to single character
389         tagged `narrow'.
390         (Fput_char_attribute): Convert char-specs in value of
391         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
392         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
393         for `<-halfwidth'.
394         (syms_of_chartab): Add new symbol `<-halfwidth'.
395
396 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
397
398         * chartab.c (put_char_composition): Return
399         `<-formed@{isolated|initial|medial|final}' for compatibility
400         mapping to single character tagged
401         `{isolated|initial|medial|final}'.
402
403 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * chartab.c (Q_compat_of): Deleted.
406         (put_char_composition): Return `<-FOO' for compatibility mapping
407         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
408         of `symbol_name (XSYMBOL(...))'.
409         (Fput_char_attribute): Convert char-specs in value of
410         `{<-|->}font[^*]*' to characters and put reverse links.
411         (Fsave_char_attribute_table): Don't refer Q_compat_of.
412         (syms_of_chartab): Delete builtin symbol `<-compat'.
413
414 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
415
416         * chartab.c (Q_circled_of): New variable.
417         (put_char_composition): Return `<-circled' instead of
418         `=decomposition' for compatibility mapping to single character
419         tagged `circle'.
420         (Fput_char_attribute): Convert char-specs in value of
421         `{<-|->}circled[^*]*' to characters and put reverse links.
422         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
423         for `<-circled'.
424         (syms_of_chartab): Add new symbol `<-circled'.
425
426 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
427
428         * chartab.c (Qto_decomposition_at_circled): New variable.
429         (put_char_composition): Return `=>decomposition@circled' instead
430         of `=decomposition' for compatibility decomposition mapping tagged
431         `circle'.
432         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
433
434 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
435
436         * chartab.c (Q_subscript_of): New variable.
437         (put_char_composition): Return `<-subscript' instead of
438         `=decomposition' for compatibility mapping to single character
439         tagged `sub'.
440         (Fput_char_attribute): Convert char-specs in value of
441         `{<-|->}subscript[^*]*' to characters and put reverse links.
442         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
443         for `<-subscript'.
444         (syms_of_chartab): Add new symbol `<-subscript'.
445
446 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
447
448         * chartab.c (Q_superscript_of): New variable.
449         (put_char_composition): Return `<-superscript' instead of
450         `=decomposition' for compatibility mapping to single character
451         tagged `super'.
452         (Fput_char_attribute): Convert char-specs in value of
453         `{<-|->}superscript[^*]*' to characters and put reverse links.
454         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
455         for `<-superscript'.
456         (syms_of_chartab): Add new symbol `<-superscript'.
457
458 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
459
460         * chartab.c (Qto_decomposition_at_compat): Deleted.
461         (Qto_decomposition_at_superscript): New variable.
462         (put_char_composition): Use `=>decomposition@superscript' instead
463         of `=decomposition' for compatibility decomposition mapping tagged
464         `super'.
465         (Fput_char_attribute): Fix condition about `put_char_composition'.
466         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
467         add news symbol `=>decomposition@superscript'.
468
469 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
470
471         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
472         for compatibility decomposition mapping tagged FOO.
473         (Fput_char_attribute): Modify for `put_char_composition'.
474
475 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
476
477         * chartab.c (Qto_decomposition_at_compat): New variable.
478         (Q_compat_of): Renamed from `Q_compatibility_of'.
479         (put_char_composition): Rename `Q_compatibility_of' to
480         `Q_compat_of'; return `=>decomposition@compat' for compatibility
481         decomposition mapping.
482         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
483         `Q_compat_of'.
484         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
485         `<-compatibility' to `<-compat'.
486
487 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
488
489         * chartab.c (Q_compatibility_of): New variable.
490         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
491         object is proved to be a cons cell; return `<-compatibility' if
492         the first element of argument `value' is `compat'.
493         (Fput_char_attribute): Eliminate the first value if
494         `put_char_composition' returns `<-compatibility'.
495         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
496         for `<-compatibility'.
497         (syms_of_chartab): Add new symbol `<-compatibility'.
498
499 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
500
501         * chartab.c (Q_canonical): New variable.
502         (put_char_composition): Return a feature name: return
503         `->canonical' if argument `value' specifies single character.
504         (Fput_char_attribute): Use `put_char_composition' to determine
505         feature name for `=decomposition' or `->denotational'.
506         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
507         for `->canonical'.
508         (syms_of_chartab): Add new symbol `->canonical'.
509
510 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
511
512         * chartab.c (Qmap_decomposition): New variable.
513         (Fput_char_attribute): Convert `->decomposition' to
514         `=decomposition'.
515         (syms_of_chartab): Add new symbol `=decomposition'.
516
517 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
518
519         * chartab.c (Fget_range_char_table): Fix serious problem when
520         `range' is nil.
521
522 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
523
524         * chartab.c (char_table_get_db): Use `read_from_c_string'.
525
526 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
527
528         * lread.c (read_from_c_string): New function.
529
530         * lisp.h (read_from_c_string): New prototype.
531
532 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
533
534         * chartab.c (Fput_char_attribute): Convert char-specs in value of
535         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
536         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
537         for `{<-|->}Oracle-Bones[^*]*'.
538
539 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
540
541         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
542         (Kizu).
543
544 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
545
546         * text-coding.c (Qccs_priority_list): New variable in XEmacs
547         CHISE.
548         (Fmake_coding_system): Support new property `ccs-priority-list' in
549         XEmacs CHISE.
550         (Fcoding_system_property): Likewise.
551         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
552         Vdefault_coded_charset_priority_list in XEmacs CHISE.
553         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
554         XEmacs CHISE.
555         (complex_vars_of_file_coding): Define new coding-system-property
556         `ccs-priority-list' in XEmacs CHISE.
557
558         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
559
560 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
561
562         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
563         changed to normal function.
564         (encode_char_2): Likewise.
565
566         * mule-charset.c (decoding_table_put_char): Copied from
567         char-ucs.h; changed to normal function.
568         (encode_char_2): Likewise.
569
570 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
571
572         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
573         New extern.
574         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
575         (encode_char_2_search_children): New inline function.
576         (encode_char_2): Refer
577         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
578         and use `encode_char_2_search_children'.
579
580 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
581
582         * mule-charset.c
583         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
584         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
585         (vars_of_mule_charset): Add new variable
586         `display-coded-charset-priority-use-inheritance' and
587         `display-coded-charset-priority-use-hierarchy-order'.
588
589 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
590
591         * char-ucs.h (Q_subsumptive): New extern.
592         (Q_denotational): Likewise.
593         (encode_char_2): Search children specified by `->subsumptive' and
594         `->denotational'.
595
596 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
597
598         * mule-charset.c (complex_vars_of_mule_charset): Modify the
599         X-registry of `ucs-bmp'.
600
601 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
602
603         * chartab.c (char-variants): Refer `->subsumptive',
604         `->denotational' and `->identical' as same as `->ucs-unified'.
605
606 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
607
608         * chartab.c (Fput_char_attribute): Convert char-specs in value of
609         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
610         links.
611
612 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
613
614         * text-coding.c: Add EXFUN for `Fregexp_quote'.
615         (decode_add_er_char): Fix problem about infinite loop when a CCS
616         specified in `coded-charset-entity-reference-alist' is not
617         existed.
618
619 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
620
621         * mule-charset.c (syms_of_mule_charset): Rename
622         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
623
624 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
625
626         * fns.c (simplify_char_spec): Don't allocate new character-object
627         if specified char_spec does not have any CCS-features.
628
629         * chartab.h: Add EXFUN for Fdefine_char.
630
631         * chartab.c: Delete EXFUN for Fdefine_char.
632
633 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
634
635         * fns.c (simplify_char_spec): Use Fdefine_char instead of
636         Ffind_char for char-spec.
637
638 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
639
640         * lisp-disunion.h (XCHARVAL): Fix condition about
641         SIZEOF_EMACS_INT.
642
643 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
644
645         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
646         <int> for `code'.
647         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
648         point; use <Emchar> instead of <int> for character-id.
649
650 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
651
652         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
653         (make_char): Likewise.
654         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
655         environment.
656         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
657         instead of <int> as the type of return value; use <Lisp_Object>
658         instead of <Emchar> as the type of argument.
659         (XCHARVAL[macro version]): Cast the result into <Emchar>.
660
661         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
662         syntaxcode> instead of <int>.
663
664 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
665
666         * chartab.c (put_char_composition): Use DECODE_CHAR to get
667         character corresponding with UCS code point.
668         (Fput_char_attribute): Likewise.
669
670         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
671         character in the UCS decoding-table if the char-id is not equal to
672         the UCS code point.
673
674 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
675
676         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
677         for aliases; write `description'; write
678         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
679         not 0.
680
681 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
682
683         * chartab.c (Fsave_char_attribute_table): Don't use
684         `save_charset_properties'.
685
686         * mule-charset.c (Fsave_charset_properties): Renamed from
687         `save_charset_properties' and changed to Lisp function again;
688         write property `type' as `CCS'; write properties `final-byte' and
689         `mother' if they exists.
690         (syms_of_mule_charset): Revive builtin function
691         `save-charset-properties' when HAVE_LIBCHISE is defined.
692
693 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
694
695         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
696         instead of Vexec_directory.
697         (char_attribute_system_db_file): Likewise.
698
699 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
700
701         * chartab.c (Fsave_char_attribute_table): Use
702         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
703         defined.
704
705         * mule-charset.c (save_charset_properties): Renamed from
706         `Fsave_charset_properties'; changed to non-Lisp function.
707         (syms_of_mule_charset): Abolish builtin function
708         `save-charset-properties'.
709
710 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
711
712         * mule-charset.c (Fsave_charset_properties): New function when
713         HAVE_LIBCHISE is defined.
714         (syms_of_mule_charset): Add new builtin function
715         `save-charset-properties' when HAVE_LIBCHISE is defined.
716
717 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
718
719         * chartab.c (Fput_char_attribute): Convert char-specs in value of
720         `{<-|->}ancient[^*]*' to characters and put reverse links.
721         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
722         for `{<-|->}ancient[^*]*'.
723
724 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
725
726         * chartab.c (Fput_char_attribute): Convert char-specs in value of
727         `{<-|->}original[^*]*' to characters and put reverse links.
728         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
729         for `{<-|->}original[^*]*'.
730
731 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
732
733         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
734
735 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
736
737         * mule-charset.c (Qsystem_char_id): New variable.
738
739         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
740         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
741
742 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
743
744         * chartab.c (Fput_char_attribute): When processing a reference of
745         a character, put into the end of the reversed reference of each
746         target character.
747
748 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
749
750         * chartab.c (Q_same): Deleted.
751         (Q_same_of): Deleted.
752         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
753         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
754         for `{<-|->}same'.
755         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
756
757 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
758
759         * chartab.c (Q_vulgar): Deleted.
760         (Q_vulgar_of): Deleted.
761         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
762         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
763         for `{<-|->}vulgar'.
764         (syms_of_chartab): Don't define `{<-|->}vulgar'.
765
766 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
767
768         * chartab.c (Fput_char_attribute): Convert char-specs in value of
769         `{<-|->}wrong[^*]*' to characters and put reverse links.
770         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
771         for `{<-|->}wrong[^*]*'.
772
773 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
774
775         * chartab.c (Q_vulgar): New variable.
776         (Q_vulgar_of): New variable.
777         (Fput_char_attribute): Convert char-specs in value of
778         `{->|<-}vulgar' to characters and put reverse links.
779         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
780         for `{->|<-}vulgar'.
781         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
782
783 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
784
785         * text-coding.c (decode_add_er_char): Must to quote prefix string
786         as regexp.
787
788 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
789
790         * mule-charset.c (put_char_ccs_code_point): Store characters of
791         =ucs whose code_points >= 0xF0000.
792
793 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
794
795         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
796         CHISE.
797         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
798         CHISE.
799         (complex_vars_of_mule_charset): Add new coded-charset
800         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
801         builtin characters over 0xEFFFF.
802
803         * chartab.c (syms_of_chartab): Don't define symbol
804         `system-char-id' in every case.
805
806         * char-ucs.h (Qsystem_char_id): New extern variable.
807         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
808
809 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
810
811         * text-coding.c (char_encode_utf8): Try to use entity-references
812         for U-000F0000 ...  U-0010FFFF.
813
814 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
815
816         * text-coding.c (ER_BUF_SIZE): New macro.
817         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
818         `er_buf'.
819         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
820         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
821
822 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
823
824         * chartab.c (find_char_feature_in_family): New function.
825         (Fchar_feature): Use `find_char_feature_in_family' with
826         `->identical', `<-subsumptive' and `<-denotational'.
827
828 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
829
830         * text-coding.c (char_encode_as_entity_reference): Allow prefix
831         within 8 characters; fix infinite loop.
832
833 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
834
835         * chartab.c (Q_same): New variable.
836         (Q_same_of): New variable.
837         (Fput_char_attribute): Convert char-specs in value of
838         `{->|<-}same' to characters and put reverse links.
839         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
840         for `{->|<-}same'.
841         (syms_of_chartab): Add new symbols `{->|<-}same'.
842
843 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
844
845         * chartab.c (Q_component): New variable.
846         (Q_component_of): Likewise.
847         (Fput_char_attribute): Convert char-specs in value of
848         `{->|<-}ideographic-component-forms' to characters and put reverse
849         links.
850         (syms_of_chartab): Add new symbols
851         `{->|<-}ideographic-component-forms'.
852
853 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
854
855         * chartab.c (Q_identical): New variable.
856         (Q_identical_from): New variable.
857         (Fchar_feature): Regard `->identical' as a feature to find
858         ancestors.
859         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
860         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
861         for `{->|<-}identical'.
862         (syms_of_chartab): Add new symbols `{->|<-}identical'.
863
864 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
865
866         * char-ucs.h (encode_char_2): New inline function.
867         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
868
869 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
870
871         * chartab.c (Fput_char_attribute): Convert char-specs to
872         characters in value of `ideographic-structure'.
873         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
874         for `{<-|->}simplified(@...)'.
875         (Fdefine_char): Try to use predefined character's id.
876
877 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
878
879         * fns.c (simplify_char_spec): Try to convert builtin chars to
880         defined chars.
881
882 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
883
884         * chartab.c (Fput_char_attribute): Convert char-specs in value of
885         `<-simplified[^*]*' to characters and put reverse links.
886
887 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
888
889         * chartab.c (Q_subsumptive): Renamed from Q_unified.
890         (Q_subsumptive_from): Renamed from Q_unified_from.
891         (Fchar_feature): Use `Q_subsumptive_from' instead of
892         `Q_unified_from'.
893         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
894         `Q_unified'.
895         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
896         `<-unified' to `<-subsumptive'.
897
898 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
899
900         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
901         inheritance itself; fix typo; stop recursive search if cyclic
902         inheritance is found.
903
904 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
905
906         * chartab.c (Q_denotational): New variable.
907         (Q_denotational_from): New variable.
908         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
909         (put_char_attribute): New function.
910         (Fput_char_attribute): Use `put_char_attribute'; regard
911         `->denotational' and `<-denotational' as same as `->unified' and
912         `<-unified'.
913         (syms_of_chartab): Add new symbols `->denotational' and
914         `<-denotational'.
915
916 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
917
918         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
919         `Fget_char_attribute'.
920         (Fchar_variants): Likewise.
921         (get_char_table): Likewise.
922         (Fchar_feature): New function.
923         (put_char_composition): Use `Fchar_feature' instead of
924         `Fget_char_attribute'.
925         (Fput_char_attribute): Likewise; don't put the target character
926         into its `->unified' value.
927         (syms_of_chartab): Add new builtin function `char-feature'.
928
929 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
930
931         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
932         `Fget_char_attribute'.
933         (char_encode_utf8): Likewise.
934
935         * chartab.h: Add an EXFUN for `Fchar_feature'.
936
937 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
938
939         * chartab.c (Vnext_defined_char_id): New variable.
940         (Fput_char_attribute): Accept characters in `->unified'.
941         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
942         new characters which are not related with builtin char-id ranges.
943         (vars_of_chartab): Add new variable `next-defined-char-id'.
944
945 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
946
947         * chartab.c (Q_unified): New variable.
948         (Q_unified_from): New variable.
949         (Fput_char_attribute): Add code for `->unified'.
950         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
951         XEmacs CHISE.
952
953 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
954
955         * mule-charset.c (decode_ccs_conversion): New function.
956         (decode_defined_char): Use `decode_ccs_conversion'.
957         (decode_builtin_char): Likewise.
958
959 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
960
961         * char-ucs.h: Change some charset-ids of private coded-charsets.
962
963 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
964
965         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
966         (char_encode_as_entity_reference): Likewise.
967         (decode_coding_big5): Modify for `decode_defined_char' and
968         `DECODE_CHAR'.
969         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
970         avoid compiler warning.
971         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
972
973         * mule-charset.c (decode_defined_char): Add new argument
974         `without_inheritance'.
975         (Fdecode_char): Add new optional argument `without_inheritance'.
976         (Fdecode_builtin_char): Modify for `Fdecode_char'.
977
978         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
979         (simplify_char_spec): Likewise.
980
981         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
982         setting.
983
984         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
985         (map_char_table): Likewise.
986         (Fdefine_char): Use `Fdecode_char' without inheritance.
987         (Ffind_char): Modify for `Fdecode_char'.
988
989         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
990
991         * char-ucs.h (decode_defined_char): Add new argument
992         `without_inheritance'.
993         (DECODE_CHAR): Likewise.
994         (MAKE_CHAR): Modify for `DECODE_CHAR'.
995
996 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
997
998         * chartab.c (Vchise_system_db_directory): New variable.
999         (vars_of_chartab): Add new variable `chise-system-db-directory'.
1000
1001 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1002
1003         * chartab.c: EXFUN `Fmount_char_attribute_table'.
1004         (print_chartab_range): Don't define when `UTF2000' is defined.
1005         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
1006         `CHISE_DS_open'.
1007
1008 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1009
1010         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
1011         and optional argument `rehash' is specified, call
1012         `open_chise_data_source_maybe' before
1013         `chise_ds_foreach_char_feature_name' is called.
1014
1015 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1016
1017         * chartab.c (char_attribute_list_reset_map_func): New function
1018         when HAVE_LIBCHISE is defined.
1019         (Fchar_attribute_list): Add new optional argument `rehash' when
1020         HAVE_LIBCHISE is defined.
1021         (open_chise_data_source_maybe): Use "chise-db" instead of
1022         "char-db".
1023         (char_attribute_system_db_file): Likewise.
1024         (Fload_char_attribute_table): Use
1025         `chise_feature_foreach_char_with_value' instead of
1026         `chise_char_feature_value_iterate'.
1027
1028 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1029
1030         * chartab.c (Vchise_db_directory): New variable.
1031         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
1032
1033 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1034
1035         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
1036         instead of HAVE_CHISE to specify using with libchise.
1037
1038         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
1039
1040         * chartab.h: Don't use HAVE_CHISE_CLIENT.
1041
1042         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
1043         defined or HAVE_LIBCHISE_LIBCHISE is defined.
1044         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
1045         is defined.
1046         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
1047         HAVE_CHISE to specify using with libchise.
1048         (syms_of_chartab): Don't define symbol `system-char-id' when
1049         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
1050
1051 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1052
1053         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1054         specify CHISE DB support.
1055         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
1056         of `char_attribute_system_db_file' to check feature DB file.
1057
1058         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
1059         HAVE_CHISE_CLIENT to specify CHISE DB support.
1060
1061         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1062         specify CHISE DB support.
1063         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
1064         not defined.
1065         (Freset_char_attribute_table): Use `chise_feature_setup_db'
1066         instead of `char_attribute_system_db_file' to check feature DB
1067         file.
1068
1069 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1070
1071         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
1072         `HAVE_CHISE_CLIENT'.
1073
1074 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1075
1076         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
1077         (Fsave_charset_mapping_table): Don't use
1078         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1079
1080         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
1081         (HAVE_LIBCHISE): New macro.
1082
1083         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
1084
1085         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
1086         (Fsave_char_attribute_table): Don't use
1087         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1088
1089 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1090
1091         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
1092         defined.
1093         (save_uint16_byte_table): Likewise.
1094         (save_byte_table): Likewise.
1095         (char_table_get_db): Use `chise_ds_load_char_feature_value'
1096         instead of `chise_char_load_feature_value'.
1097         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
1098
1099 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1100
1101         * chartab.h (struct Lisp_Char_Table): Delete member
1102         `feature_table' if CHISE is defined.
1103
1104         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
1105         (Fcopy_char_table): Likewise.
1106         (char_table_open_db_maybe): Likewise.
1107         (char_table_close_db_maybe): Likewise.
1108         (char_table_get_db): Likewise.
1109         (Fmount_char_attribute_table): Likewise.
1110         (Fload_char_attribute_table): Likewise.
1111
1112 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1113
1114         * mule-charset.c (load_char_decoding_entry_maybe): Use
1115         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
1116         `chise_ccs_decode'.
1117
1118 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1119
1120         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
1121         instead of `chise_open_data_source'.
1122         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
1123         `chise_ds_close'.
1124
1125 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1126
1127         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
1128         instead of `chise_ds_open_feature_table'.
1129         (char_table_close_db_maybe): Don't use `chise_ft_close'.
1130
1131 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1132
1133         * mule-charset.c (Fsave_charset_mapping_table): Use
1134         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
1135         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
1136         `chise_ccs_sync' instead of `chise_ccst_close'.
1137         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
1138
1139         * chartab.c (open_chise_data_source_maybe): Modify for
1140         `chise_open_data_source'.
1141         (char_table_open_db_maybe): Modify for
1142         `chise_ds_open_feature_table'.
1143
1144 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1145
1146         * mule-charset.c (load_char_decoding_entry_maybe): Use
1147         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
1148         `chise_ccst_close'.
1149
1150 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1151
1152         * mule-charset.c (Fsave_charset_mapping_table): Use
1153         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
1154         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
1155         `chise_dt_put_char' and `chise_dt_close'.
1156         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
1157         `chise_ccs_decode' and `chise_ccst_close' instead of
1158         `chise_ds_open_decoding_table', `chise_dt_get_char' and
1159         `chise_dt_close'.
1160
1161         * chartab.c (char_table_get_db): Use
1162         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
1163         (load_char_attribute_table_map_func): Modify for
1164         `chise_char_feature_value_iterate'.
1165         (Fload_char_attribute_table): Use
1166         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
1167
1168 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1169
1170         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
1171
1172 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1173
1174         * chartab.c (put_char_table): Modify for inherited coded-charsets
1175         in XEmacs CHISE.
1176
1177 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1178
1179         * chartab.c (Fput_char_table_map_function): Fixed.
1180         (word_boundary_p): Don't check charset in XEmacs CHISE.
1181
1182 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1183
1184         * mule-charset.c (Fsave_charset_mapping_table): Use
1185         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1186         instead of `chise_open_decoding_table'; refer
1187         `default_chise_data_source'; use `chise_dt_close' instead of
1188         `chise_close_decoding_table'.
1189         (load_char_decoding_entry_maybe): Likewise.
1190
1191         * chartab.c (default_chise_data_source): New variable when `CHISE'
1192         is defined.
1193         (Fcopy_char_table): `ct->ds' is deleted.
1194         (open_chise_data_source_maybe): New function.
1195         (Fclose_char_data_source): New function.
1196         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1197         use `chise_ds_open_feature_table' instead of
1198         `chise_open_feature_table'.
1199         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1200         `chise_close_feature_table'; `cit->ds' is deleted.
1201         (syms_of_chartab): Add new builtin function
1202         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1203
1204         * chartab.h (default_chise_data_source): New extern variable.
1205         (open_chise_data_source_maybe): New prototype.
1206         (struct Lisp_Char_Table): Delete `ds'.
1207
1208 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1209
1210         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1211         `CHISE' is defined.
1212
1213 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1214
1215         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1216         not defined; add code for non-libchise setting.
1217         (char_table_close_db_maybe): Likewise.
1218         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1219         defined.
1220         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1221         even if `CHISE' is not defined.
1222         (Freset_char_attribute_table): Likewise.
1223         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1224         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1225         `char_table_get_db'.
1226         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1227         `char_table_close_db_maybe' even if `CHISE' is not defined.
1228
1229 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1230
1231         * chartab.c (char_table_open_db_maybe): New function.
1232         (char_table_close_db_maybe): New function.
1233         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1234         (Freset_char_attribute_table): Likewise.
1235         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1236         `char_table_close_db_maybe'.
1237         (Fload_char_attribute_table): Likewise.
1238
1239 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1240
1241         * chartab.c: Don't include <chise.h> because it is included in
1242         chartab.h.
1243         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1244         defined.
1245         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1246         `CHISE' is defined.
1247         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1248         `CHISE' is defined.
1249         (Fclose_char_attribute_table): Close `ct->feature_table' and
1250         `ct->ds' when `CHISE' is defined.
1251         (Freset_char_attribute_table): Likewise.
1252         (load_char_attribute_maybe): Use `cit->ds' and
1253         `cit->feature_table' when `CHISE' is defined.
1254         (Fload_char_attribute_table): Likewise.
1255
1256         * chartab.h: Include <chise.h> when `CHISE' is defined.
1257         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1258         when `CHISE' is defined.
1259
1260 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1261
1262         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1263         is defined.
1264         (char_table_description): Likewise.
1265         (Fmake_char_table): Likewise.
1266         (Fcopy_char_table): Likewise.
1267         (Fmount_char_attribute_table): Likewise.
1268         (Fclose_char_attribute_table): Likewise.
1269         (Freset_char_attribute_table): Likewise.
1270         (load_char_attribute_maybe): Likewise.
1271         (Fload_char_attribute_table): Likewise.
1272
1273         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1274         defined.
1275
1276 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1277
1278         * chartab.c (load_char_attribute_table_map_func): New function
1279         when CHISE is defined.
1280         (Qload_char_attribute_table_map_function): Don't define when CHISE
1281         is defined.
1282         (Fload_char_attribute_table_map_function): Likewise.
1283         (Fload_char_attribute_table): Use libchise when `CHISE' is
1284         defined.
1285         (syms_of_chartab): Don't define
1286         `load-char-attribute-table-map-function' when CHISE is defined.
1287
1288 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1289
1290         * chartab.c: Include <chise.h> when `CHISE' is defined.
1291         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1292
1293 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1294
1295         * mule-charset.c (charset_code_point): Fix problem when searching
1296         in mother CCS fails with `defined_only' mode.
1297
1298 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1299
1300         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1301         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1302         (put_char_composition): Likewise.
1303         (Fput_char_attribute): Likewise.
1304         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1305
1306 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1307
1308         * chartab.c (Q_ucs): Deleted.
1309         (Fput_char_attribute): Don't refer `->ucs'.
1310         (Fdefine_char): Likewise.
1311         (Ffind_char): Likewise.
1312         (syms_of_chartab): Delete `->ucs'.
1313
1314 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1315
1316         * mule-charset.c (Qmap_cns11643_2): Renamed from
1317         `Qchinese_cns11643_2'.
1318         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1319         `chinese-cns11643-2'.
1320         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1321         `=cns11643-2'.
1322
1323 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1324
1325         * mule-charset.c (Qmap_cns11643_1): Renamed from
1326         `Qchinese_cns11643_1'.
1327         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1328         `chinese-cns11643-1'.
1329         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1330         `=cns11643-1'.
1331
1332 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1333
1334         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1335         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1336         `chinese-gb12345'.
1337         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1338         `=gb12345'.
1339
1340 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1341
1342         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1343         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1344         `chinese-gb2312'.
1345         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1346         `=gb2312'.
1347
1348 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1349
1350         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1351         (syms_of_mule_charset): Add new symbol `=big5' instead of
1352         `chinese-big5'.
1353         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1354
1355 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1356
1357         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1358         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1359         `korean-ksc5601'.
1360         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1361         `=ks-x1001'.
1362
1363 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1364
1365         * mule-charset.c (Qmap_jis_x0212): Renamed from
1366         `Qjapanese_jisx0212'.
1367         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1368         `japanese-jisx0212'.
1369         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1370         `=jis-x0212'.
1371
1372 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1373
1374         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1375         `Qjapanese_jisx0208'.
1376         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1377         of `japanese-jisx0208'.
1378         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1379         `=jis-x0208-1983'.
1380
1381 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1382
1383         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1384         `Qjapanese_jisx0208_1978'.
1385         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1386         of `japanese-jisx0208-1978'.
1387         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1388         `=jis-x0208-1978'.
1389
1390 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1391
1392         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1393         only for XEmacs CHISE.
1394
1395 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1396
1397         * char-ucs.h: Compact non-ISO-IR charset-ids.
1398         (LEADING_BYTE_UCS): Changed to -177.
1399         (LEADING_BYTE_CONTROL_1): Changed to -77.
1400         (LEADING_BYTE_UCS_BMP): Changed to -176.
1401         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1402
1403 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1404
1405         * mule-charset.c (Qiso_ir): New variable.
1406         (Fmake_charset): Recognise new property `iso-ir'.
1407         (syms_of_mule_charset): Add new symbol `iso-ir'.
1408
1409 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1410
1411         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1412         n to -n; charset-id of non ISO-IR sets are changed to positive
1413         numbers.
1414
1415 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1416
1417         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1418         for &MCS-XXXXXXXX; values.
1419
1420 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1421
1422         * mule.c (Vxemacs_chise_version): Renamed from
1423         `Vutf_2000_version'.
1424         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1425         `utf-2000-version' as an alias for `xemacs-chise-version'.
1426
1427 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1428
1429         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1430         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1431         defined.
1432
1433         * config.h.in (CHISE): New macro.
1434
1435 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1436
1437         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1438         of `ucs'.
1439         (Qmap_ucs): New variable.
1440         (syms_of_mule_charset): Add new symbol `=ucs'.
1441         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1442
1443         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1444         (simplify_char_spec): Likewise.
1445
1446         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1447
1448         * char-ucs.h (Qmap_ucs): New extern variable.
1449
1450 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1451
1452         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1453         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1454         don't define it when UTF2000 is not defined.
1455         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1456         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1457         when UTF2000 is not defined.
1458         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1459         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1460
1461 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1462
1463         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1464
1465         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1466         (Qucs_gb): Deleted.
1467         (syms_of_mule_charset): Delete `ucs-gb'.
1468         (complex_vars_of_mule_charset): Likewise.
1469
1470 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1471
1472         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1473
1474         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1475         (Qucs_cns): Deleted.
1476         (syms_of_mule_charset): Delete `ucs-cns'.
1477         (complex_vars_of_mule_charset): Likewise.
1478
1479 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1480
1481         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1482
1483         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1484         (Qucs_jis): Deleted.
1485         (syms_of_mule_charset): Delete `ucs-jis'.
1486         (complex_vars_of_mule_charset): Likewise.
1487
1488 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1489
1490         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1491
1492         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1493         (Qucs_ks): Deleted.
1494         (syms_of_mule_charset): Delete `ucs-ks'.
1495         (complex_vars_of_mule_charset): Likewise.
1496
1497 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1498
1499         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1500         (Qideograph_daikanwa_2): Deleted.
1501         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1502         (complex_vars_of_mule_charset): Likewise.
1503
1504         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1505         (LEADING_BYTE_DAIKANWA_1): Deleted.
1506         (LEADING_BYTE_DAIKANWA_2): Deleted.
1507         (MIN_CHAR_DAIKANWA): Deleted.
1508         (MAX_CHAR_DAIKANWA): Deleted.
1509
1510 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1511
1512         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1513         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1514         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1515
1516         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1517         (Vcharset_ideograph_daikanwa): Deleted.
1518         (Qideograph_hanziku_{1..12}): Deleted.
1519         (Qideograph_daikanwa): Deleted.
1520         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1521         Vcharset_ideograph_daikanwa.
1522         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1523         `ideograph-hanziku-{1..12}'.
1524         (complex_vars_of_mule_charset): Likewise.
1525
1526 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1527
1528         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1529
1530         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1531         (Qideograph_gt_pj_{1..11}): Deleted.
1532         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1533         (complex_vars_of_mule_charset): Likewise.
1534
1535 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1536
1537         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1538         (Vcharset_ideograph_gt): Deleted.
1539         (Qucs_big5): Deleted.
1540         (Qideograph_gt): Deleted.
1541         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1542         `ideograph-gt'.
1543         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1544         and `ideograph-gt'.
1545
1546         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1547         (LEADING_BYTE_GT): Deleted.
1548         (MIN_CHAR_GT): Deleted.
1549         (MAX_CHAR_GT): Deleted.
1550
1551 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1552
1553         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1554
1555 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1556
1557         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1558         (save_uint16_byte_table): Likewise.
1559         (save_byte_table): Likewise; convert values by it.
1560         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1561         for `ideographic-structure'.
1562         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1563         as the filter for `ideographic-structure'.
1564
1565 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1566
1567         * chartab.c (put_char_composition): New function.
1568         (Fput_char_attribute): Use `put_char_composition'; use
1569         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1570
1571         * fns.c (simplify_char_spec): New function.
1572         (char_ref_simplify_spec): New function.
1573         (Fchar_refs_simplify_char_specs): New function.
1574         (syms_of_fns): Add new builtin function
1575         `char-refs-simplify-char-specs'.
1576
1577 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1578
1579         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1580         (Qideograph_cbeta): Deleted.
1581         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1582         (complex_vars_of_mule_charset): Likewise.
1583
1584         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1585         (MIN_CHAR_CBETA): Comment out.
1586         (MAX_CHAR_CBETA): Likewise.
1587
1588 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1589
1590         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1591         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1592         CHISE client feature.
1593
1594 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1595
1596         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1597
1598 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1599
1600         * mule-charset.c (charset_lookup_description_1): Use
1601         `NUM_LEADING_BYTES' in UTF-2000.
1602
1603 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1604
1605         * char-ucs.h (GC_CHARSETP): Deleted.
1606
1607 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1608
1609         * char-ucs.h (MAX_CHAR_GT): Updated.
1610
1611 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1612
1613         * text-coding.c: Sync with XEmacs 21.4.10.
1614
1615 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1616
1617         * mule-charset.c (Vcharset_china3_jef): Deleted.
1618         (Qchina3_jef): Deleted.
1619         (syms_of_mule_charset): Don't define `china3-jef'.
1620         (complex_vars_of_mule_charset): Likewise.
1621
1622         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1623         (MIN_CHAR_CHINA3_JEF): Comment out.
1624         (MAX_CHAR_CHINA3_JEF): Comment out.
1625
1626 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1627
1628         * mule-charset.c (Vcharset_ucs_gb): New variable.
1629         (Qucs_gb): New variable.
1630         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1631         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1632
1633         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1634
1635 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1636
1637         * mule-charset.c (charset_code_point): if a coded-charset has a
1638         final-byte, don't inherit the builtin range of the mother CCS.
1639
1640 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1641
1642         * mule-charset.c (charset_code_point): Fix problem about
1643         inheritance.
1644
1645 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1646
1647         * mule-charset.c (decode_builtin_char): Reorganized.
1648
1649 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1650
1651         * text-coding.c (char_encode_as_entity_reference): Modify for
1652         `charset_code_point'.
1653         (char_encode_shift_jis): Likewise.
1654         (char_encode_big5): Likewise.
1655         (char_encode_utf8): Likewise.
1656         (char_encode_iso2022): Likewise.
1657
1658         * mule-charset.c (charset_code_point): Add new argument
1659         `defined_only'.
1660         (Fencode_char): Add new optional argument `defined_only'.
1661
1662         * chartab.c (put_char_table): Modify for `charset_code_point'.
1663
1664         * char-ucs.h (charset_code_point): Add new argument
1665         `defined_only'.
1666         (encode_char_1): Modify for `charset_code_point'.
1667
1668 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1669
1670         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1671         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1672
1673 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1674
1675         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1676         (Qjis_x0208): Likewise.
1677         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1678         XCHARSET_FINAL(charset).
1679         (charset_code_point): Modify condition for final-byte based
1680         builtin-chars.
1681         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1682         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1683         in UTF-2000; specify `=jis-x0208' as the mother of
1684         `japanese-jisx0208-1978', `japanese-jisx0208' and
1685         `japanese-jisx0208-1990' in UTF-2000.
1686
1687 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1688
1689         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1690
1691 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1692
1693         * text-coding.c (decode_coding_utf16): Support UTF-16.
1694         (char_encode_utf16): Fixed.
1695
1696 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1697
1698         * text-coding.c (Qutf16): New variable in MULE.
1699         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1700         (Fcoding_system_type): Add `utf-16' in MULE.
1701         (struct detection_state): Add a structure for utf16 in MULE.
1702         (detect_coding_type): Setup st->utf16.mask in MULE.
1703         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1704         MULE.
1705         (reset_encoding_stream): Use `char_encode_utf16' and
1706         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1707         (detect_coding_utf16): New function [incomplete].
1708         (decode_coding_utf16): New function [support only UCS-2].
1709         (char_encode_utf16): New function.
1710         (char_finish_utf16): New function.
1711         (syms_of_file_coding): Add new symbol `utf-16'; setup
1712         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1713
1714         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1715         UTF-2000.
1716         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1717         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1718
1719 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1720
1721         * chartab.c (put_char_table): When a charset is specified as a
1722         range in UTF-2000, don't support builtin characters.
1723
1724 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1725
1726         * mule-charset.c (decode_defined_char): Don't refer external
1727         database if Qunbound or Qnil are found.
1728         (Fsave_charset_mapping_table): Don't define it if
1729         HAVE_CHISE_CLIENT is not defined.
1730         (Freset_charset_mapping_table): New function.
1731         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1732         found in external database.
1733         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1734         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1735         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1736
1737 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1738
1739         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1740         not.
1741
1742 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1743
1744         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1745         Q_lowercase, Q_uppercase in UTF-2000.
1746
1747         * chartab.c (get_char_table): Add special code for the standard
1748         case table to use character attribute `->downcase' and
1749         `->uppercase' for case operations in UTF-2000.
1750
1751         * casetab.c (Qflippedcase): New variable in UTF-2000.
1752         (Q_lowercase): Likewise.
1753         (Q_uppercase): Likewise.
1754         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1755         and `->uppercase' in UTF-2000.
1756         (complex_vars_of_casetab): Assign attribute name `downcase' to
1757         downcase and CANON table of Vstandard_case_table in UTF-2000;
1758         assign attribute name `flippedcase' to upcase and EQV table of
1759         Vstandard_case_table in UTF-2000.
1760
1761 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1762
1763         * text-coding.c (decode_add_er_char): Support isolated-chars.
1764         (char_encode_as_entity_reference): Likewise.
1765
1766 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1767
1768         * emacs.c (Vutf_2000_lisp_directory): New variable.
1769         (Vconfigure_utf_2000_lisp_directory): Likewise.
1770         (complex_vars_of_emacs): Add new variable
1771         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1772
1773 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1774
1775         * char-ucs.h (DECODE_CHAR): Delete special code for
1776         `chinese-big5-1' and `chinese-big5-2'.
1777
1778         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1779         (Qbig5_2): Likewise.
1780         (decode_defined_char): Support CONVERSION_BIG5_1 and
1781         CONVERSION_BIG5_2.
1782         (decode_builtin_char): Likewise.
1783         (charset_code_point): Likewise.
1784         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1785         'conversion in UTF-2000.
1786         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1787         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1788         `chinese-big5-2' as children of `chinese-big5'.
1789
1790         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1791         (CONVERSION_BIG5_2): New macro.
1792
1793 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1794
1795         * text-coding.c (char_encode_big5): Support entity-reference.
1796
1797 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1798
1799         * text-coding.c (char_encode_as_entity_reference): New function.
1800         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1801
1802 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1803
1804         * text-coding.c (decode_coding_big5): Support entity-reference
1805         decoding feature.
1806
1807 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1808
1809         * text-coding.c (allocate_coding_system): Initialize initial
1810         charsets for CODESYS_UTF8.
1811         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1812         charset-g2 for CODESYS_UTF8.
1813         (decode_coding_utf8): Use charset-g0.
1814         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1815         to force variants to map to UCS.
1816
1817 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1818
1819         * text-coding.c (Qutf_8_mcs): New variable.
1820         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1821         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1822         instead of `utf-8' in UTF-2000.
1823
1824 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1825
1826         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1827         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1828         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1829         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1830         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1831         CONVERSION_96x96x96x96 are introduced.
1832         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1833         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1834         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1835
1836         * char-ucs.h (CONVERSION_94): New macro.
1837         (CONVERSION_96): New macro.
1838         (CONVERSION_94x94): New macro.
1839         (CONVERSION_96x96): New macro.
1840         (CONVERSION_94x94x94): New macro.
1841         (CONVERSION_96x96x96): New macro.
1842         (CONVERSION_94x94x94x60): New macro.
1843         (CONVERSION_94x94x94x94): New macro.
1844         (CONVERSION_96x96x96x96): New macro.
1845
1846 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1847
1848         * chartab.c (Vcharacter_variant_table): Deleted.
1849         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1850         of `Vcharacter_variant_table'.
1851         (Fput_char_attribute): Likewise.
1852         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1853         (complex_vars_of_chartab): Likewise.
1854
1855 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1856
1857         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1858
1859         * fns.c (Qideographic_structure): New variable.
1860         (Qkeyword_char): New variable.
1861         (ids_format_unit): New function.
1862         (Fideographic_structure_to_ids): New function.
1863         (syms_of_fns): Add new symbols `ideographic-structure' and
1864         `:char'; add new builtin function `ideographic-structure-to-ids'.
1865
1866         * data.c (Fchar_ref_p): New function.
1867         (syms_of_data): Add new builtin function `char-ref-p'.
1868
1869         * chartab.h: Add an EXFUN for `Ffind_char'.
1870
1871 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1872
1873         * text-coding.c (Vcharacter_composition_table): Deleted.
1874         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1875         in every UTF-2000.
1876
1877         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1878         UTF-2000.
1879         (Vcharacter_composition_table): Deleted.
1880         (Fget_composite_char): Use the implementation for external-DB
1881         support in every UTF-2000.
1882         (Fput_char_attribute): Likewise.
1883         (char_attribute_system_db_file): Don't define if external-DB
1884         feature is not available.
1885         (Fsave_char_attribute_table): Likewise.
1886         (Fmount_char_attribute_table): Likewise.
1887         (Fclose_char_attribute_table): Likewise.
1888         (Freset_char_attribute_table): Likewise.
1889         (Fload_char_attribute_table): Likewise.
1890         (syms_of_chartab): Don't define `save-char-attribute-table',
1891         `mount-char-attribute-table', `reset-char-attribute-table',
1892         `close-char-attribute-table' and `load-char-attribute-table' if
1893         external-DB feature is not available.
1894         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1895
1896 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1897
1898         * text-coding.c (Qcomposition): Add extern if external-DB feature
1899         is supported.
1900         (Vcharacter_composition_table): Don't add extern if external-DB
1901         feature is supported.
1902         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1903         character composition rule if external-DB feature is supported.
1904
1905         * chartab.c (Vcharacter_composition_table): Don't define if
1906         external-DB feature is supported.
1907         (Qcomposition): New variable.
1908         (Fget_composite_char): New implementation for external-DB support.
1909         (Fput_char_attribute): Use `composition' property of each
1910         character instead of `Vcharacter_composition_table' to store
1911         character-composition rules if external-DB feature is supported.
1912         (syms_of_chartab): Add new symbol `composition'.
1913         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1914         external-DB feature is supported.
1915
1916 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1917
1918         * chartab.c (Vchar_db_stingy_mode): New variable.
1919         (load_char_attribute_maybe): Close database if
1920         Vchar_db_stingy_mode is not NIL.
1921         (Fload_char_attribute_table_map_function): Use
1922         `get_char_id_table_0' instead of `get_char_id_table'.
1923         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1924
1925         * chartab.h (get_char_id_table_0): New inline function.
1926         (get_char_id_table): Use `get_char_id_table_0'.
1927
1928 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1929
1930         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1931         and `COMPOSE_ADD_CHAR'.
1932         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1933
1934 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1935
1936         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1937         instead of `DECODE_ADD_UCS_CHAR'.
1938         (COMPOSE_ADD_CHAR): Likewise.
1939
1940 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1941
1942         * text-coding.c (decode_flush_er_chars): New inline function.
1943         (decode_add_er_char): New function.
1944         (decode_coding_utf8): Use `decode_flush_er_chars' and
1945         `decode_add_er_char'.
1946
1947 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1948
1949         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1950         done before `decode_output_utf8_partial_char'.
1951
1952         * mule-charset.c (complex_vars_of_mule_charset): Specify
1953         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1954         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1955
1956 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1957
1958         * mule-charset.c (decode_defined_char): New function; search
1959         mother.
1960         (decode_builtin_char): Don't search mother if
1961         XCHARSET_MAX_CODE(charset) == 0.
1962         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1963         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1964         (Fdecode_char): Use `decode_defined_char' instead of
1965         `DECODE_DEFINED_CHAR'.
1966         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1967         mother of `Vcharset_ucs_jis'.
1968
1969         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1970         instead of `DECODE_DEFINED_CHAR'.
1971
1972         * char-ucs.h (decode_defined_char): Renamed from
1973         `DECODE_DEFINED_CHAR'; changed to normal function.
1974         (DECODE_CHAR): Use `decode_defined_char' instead of
1975         `DECODE_DEFINED_CHAR'.
1976
1977         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1978
1979 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1980
1981         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1982
1983         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1984         variable.
1985         (Quse_entity_reference): New variable.
1986         (Qd): New variable.
1987         (Qx): New variable.
1988         (QX): New variable.
1989         (coding_system_description): Add description for
1990         `ccs_priority_list'.
1991         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1992         (allocate_coding_system): Initialize `ccs_priority_list' in
1993         UTF-2000.
1994         (Fmake_coding_system): Add description about
1995         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1996         (codesys).
1997         (Fcoding_system_property): Accept `disable-composition' and
1998         `use-entity-reference' in UTF-2000.
1999         (struct decoding_stream): Add new member `er_counter' and `er_buf'
2000         in UTF-2000.
2001         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
2002         (decode_coding_utf8): Decode entity-reference if
2003         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
2004         (char_encode_utf8): Encode non-Unicode characters as
2005         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
2006         (str->codesys).
2007         (syms_of_file_coding): Add new symbols `use-entity-reference',
2008         `d', `x', `X'.
2009         (vars_of_file_coding): Add new variable
2010         `coded-charset-entity-reference-alist'.
2011         (complex_vars_of_file_coding): Declare `disable-composition' and
2012         `use-entity-reference' to be coding-system-properties in UTF-2000.
2013
2014         * file-coding.h (struct Lisp_Coding_System): Add new member
2015         `use_entity_reference' and `ccs_priority_list'.
2016         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2017         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
2018         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2019
2020 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2021
2022         * chartab.c (save_uint8_byte_table): Don't clear the table.
2023         (save_uint16_byte_table): Likewise.
2024         (save_byte_table): Likewise.
2025         (Fmount_char_attribute_table): New function.
2026         (syms_of_chartab): Add new builtin function
2027         `mount-char-attribute-table'.
2028
2029 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2030
2031         * mule-charset.c (Fsave_charset_mapping_table): Open database as
2032         "w+" mode.
2033         (load_char_decoding_entry_maybe): Open database as read-only mode.
2034
2035         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
2036         open database as "w+" mode.
2037         (load_char_attribute_maybe): Open database as read-only mode.
2038         (Fload_char_attribute_table): Likewise.
2039
2040 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2041
2042         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
2043         (char_table_description): Delete member `db_file'.
2044         (Fmake_char_table): Don't refer `ct->db_file'.
2045         (Fcopy_char_table): Likewise.
2046         (Fsave_char_attribute_table): Likewise.
2047         (Fclose_char_attribute_table): Likewise.
2048         (Freset_char_attribute_table): Likewise.
2049         (load_char_attribute_maybe): Likewise.
2050         (Fload_char_attribute_table): Likewise.
2051
2052         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
2053
2054 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2055
2056         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
2057         (Fsave_char_attribute_table): Don't check `ct->db_file' if
2058         `ct->db' is living.
2059         (load_char_attribute_maybe): Likewise.
2060         (Fload_char_attribute_table): Likewise.
2061
2062 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2063
2064         * chartab.c (Fclose_char_attribute_table): Set Qnil on
2065         `ct->db_file' unconditionally.
2066
2067 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2068
2069         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
2070         UTF-2000.
2071         (char_table_description): Add description for `db_file' and `db'
2072         in UTF-2000.
2073         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
2074         UTF-2000.
2075         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
2076         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
2077         (Fclose_char_attribute_table): New function.
2078         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
2079         (load_char_attribute_maybe): Change interface; use `cit->db_file'
2080         and `cit->db'.
2081         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
2082         (syms_of_chartab): Add new builtin function
2083         `Fclose_char_attribute_table'.
2084
2085 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2086
2087         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
2088         `db' in UTF-2000.
2089         (load_char_attribute_maybe): Change interface.
2090         (get_char_id_table): Modify for `load_char_attribute_maybe'.
2091
2092 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2093
2094         * database.h: Add an EXFUN for `Fdatabase_live_p'.
2095
2096 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2097
2098         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
2099         instead of `DECODE_CHAR' for mother; don't use special code for
2100         chinese-big5 to use code space of chinese-big5-1 and
2101         chinese-big5-2.
2102         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
2103         `MAX_CHAR_BIG5_CDP' for chinese-big5.
2104
2105         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
2106         (MAX_CHAR_BIG5_CDP): Revival.
2107
2108 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2109
2110         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
2111         the XLFD registry-encoding name of `chinese-big5'.
2112
2113 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2114
2115         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
2116         (Qchinese_big5_cdp): Deleted.
2117         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
2118         (complex_vars_of_mule_charset): Delete coded-charset
2119         `chinese-big5-cdp'.
2120
2121         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
2122         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
2123         `CHARSET_ID_OFFSET - n' for private CCS.
2124         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
2125         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
2126         of `MIN_LEADING_BYTE'.
2127         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
2128         `(CHARSET_ID_OFFSET - 97)'.
2129         (MIN_CHAR_BIG5_CDP): Deleted.
2130         (MAX_CHAR_BIG5_CDP): Deleted.
2131
2132 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2133
2134         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
2135
2136 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2137
2138         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
2139         (vars_of_mule): Add new variable `utf-2000-version' [moved from
2140         chartab.c].
2141
2142         * chartab.c (Vutf_2000_version): Moved to mule.c.
2143         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
2144
2145 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2146
2147         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
2148         when HAVE_CHISE_CLIENT is not defined.
2149
2150         * mule.c (vars_of_mule): Provide feature `chise' when
2151         HAVE_CHISE_CLIENT is defined.
2152
2153 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2154
2155         * config.h.in (UTF2000): Add comment.
2156         (HAVE_CHISE_CLIENT): New macro.
2157
2158 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2159
2160         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
2161         CONSP.
2162         (Fput_char_attribute): Likewise.
2163         (char_attribute_system_db_file): Encode file-name of attribute.
2164         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
2165         the initial value.
2166
2167 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2168
2169         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
2170         (Fsave_charset_mapping_table): Use
2171         `char_attribute_system_db_file'.
2172         (load_char_decoding_entry_maybe): Likewise.
2173
2174         * chartab.h (Qsystem_char_id): New external variable.
2175         (char_attribute_system_db_file): New prototype.
2176
2177         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2178         (char_attribute_system_db_file): New function.
2179         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2180         (Freset_char_attribute_table): Likewise.
2181         (load_char_attribute_maybe): Likewise.
2182         (Fload_char_attribute_table): Likewise.
2183         (syms_of_chartab): Add new symbol `system-char-id'.
2184
2185 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2186
2187         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2188         `XCHARSET_GRAPHIC(ccs)'.
2189
2190 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2191
2192         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2193
2194 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2195
2196         * chartab.c (Q_ucs_variants): New variable.
2197         (syms_of_chartab): Add new symbol `->ucs-variants'.
2198         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2199         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2200         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2201
2202         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2203
2204         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2205         `HAVE_DATABASE' is defined.
2206         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2207         `HAVE_DATABASE' is defined.
2208
2209 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2210
2211         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2212         attribute-table.
2213         (Freset_char_attribute_table): New function.
2214         (syms_of_chartab): Add new builtin function
2215         `reset-char-attribute-table'.
2216
2217 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2218
2219         * chartab.c (load_char_attribute_maybe): Don't make directories.
2220
2221 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2222
2223         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2224
2225         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2226         for decoding-table.
2227
2228 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2229
2230         * mule-charset.c (Fsave_charset_mapping_table): Use
2231         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2232
2233         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2234         instead of `XCHARSET_CHARS'.
2235
2236 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2237
2238         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2239         (XCHARSET_BYTE_SIZE): Likewise.
2240
2241         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2242         mule-charset.c].
2243         (XCHARSET_BYTE_SIZE): Likewise.
2244
2245 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2246
2247         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2248         data-directory to store database.
2249         (Fsave_char_attribute_table): Likewise.
2250         (load_char_attribute_maybe): Likewise.
2251         (Fload_char_attribute_table): Likewise.
2252
2253 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2254
2255         * mule-charset.c (Fsave_charset_mapping_table): New function.
2256         (syms_of_mule_charset): Add new builtin function
2257         `save-charset-mapping-table'.
2258
2259 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2260
2261         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2262         (get_ccs_octet_table): New inline function.
2263         (put_ccs_octet_table): Likewise.
2264         (decoding_table_put_char): Use `get_ccs_octet_table' and
2265         `put_ccs_octet_table'.
2266         (decoding_table_remove_char): Use `decoding_table_put_char'.
2267         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2268
2269         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2270         into encoding_table.
2271         (make_charset): Use Qunbound instead Qnil as initial value of
2272         decoding_table.
2273
2274 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2275
2276         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2277         element is Qunloaded.
2278         (map_over_uint16_byte_table): Likewise.
2279         (map_over_byte_table): Likewise.
2280         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2281         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2282         database support, load encoding-table of the specified
2283         coded-charset if it is not loaded yet.
2284         (save_uint8_byte_table): New function of UTF-2000 with external
2285         database support.
2286         (save_uint16_byte_table): Likewise.
2287         (save_byte_table): Likewise.
2288         (Fput_char_attribute): Don't store value into external database
2289         even if the external database feature is supported in UTF-2000;
2290         set `attribute' as name of char-table if the external database
2291         feature is supported.
2292         (Fsave_char_attribute_table): New function in UTF-2000.
2293         (syms_of_chartab): Add new builtin function
2294         `save-char-attribute-table' in UTF-2000.
2295
2296 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2297
2298         * chartab.c (char_attribute_table_to_put): New variable in
2299         UTF-2000.
2300         (Qput_char_table_map_function): Likewise.
2301         (value_to_put): Likewise.
2302         (Fput_char_table_map_function): New function in UTF-2000.
2303         (put_char_table): Use `Fmap_char_attribute' for
2304         CHARTAB_RANGE_CHARSET in UTF-2000.
2305         (Fput_char_attribute): Store symbol instead of string in
2306         `XCHAR_TABLE_NAME (table)'.
2307         (load_char_attribute_maybe): Likewise.
2308         (syms_of_chartab): Add new symbol/function
2309         `put-char-table-map-function'.
2310
2311 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2312
2313         * database.h: Add new EXFUN for `Fmap_database'.
2314
2315         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2316         (syms_of_database): Likewise.
2317
2318         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2319         UTF-2000.
2320         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2321         (XCHAR_TABLE_UNLOADED): Likewise.
2322
2323         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2324         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2325         HAVE_DATABASE is defined.
2326         (char_attribute_table_to_load): New variable of UTF-2000 with
2327         external database support.
2328         (Qload_char_attribute_table_map_function): Likewise.
2329         (Fload_char_attribute_table_map_function): New function of
2330         UTF-2000 with external database support.
2331         (Fload_char_attribute_table): New function of UTF-2000.
2332         (Fmap_char_attribute): Call Fload_char_attribute_table if
2333         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2334         (syms_of_chartab): Add new symbol and function
2335         `load-char-attribute-table-map-function' in UTF-2000 with external
2336         database support; add new function `load-char-attribute-table' in
2337         UTF-2000.
2338
2339 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2340
2341         * chartab.h (load_char_attribute_maybe): New prototype for
2342         UTF-2000 with DATABASE support.
2343         (get_char_id_table): Use `load_char_attribute_maybe' if
2344         HAVE_DATABASE is defined.
2345
2346         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2347         with DATABASE support.
2348
2349 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2350
2351         * chartab.c (Fput_char_attribute): Use S-expression as key of
2352         external database.
2353
2354         * chartab.h (get_char_id_table): Use S-expression as key of
2355         external database.
2356
2357 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2358
2359         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2360         if an element is not loaded, load the corresponding attributes
2361         from an external database.
2362         (map_over_uint16_byte_table): Likewise.
2363         (map_over_byte_table): Likewise.
2364         (map_char_table): Modify for `map_over_uint8_byte_table',
2365         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2366         element is not loaded, load the corresponding attributes from an
2367         external database.
2368         (Fput_char_attribute): Change initial values to Qunloaded.
2369
2370         * chartab.h (get_char_id_table): If a character attribute is not
2371         loaded and the attribute value is not found in an external
2372         database, store Qunbound as the attribute value.
2373
2374 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2375
2376         * chartab.c (BT_UINT8_unloaded): New macro.
2377         (UINT8_VALUE_P): Accept Qunloaded.
2378         (UINT8_ENCODE): Likewise.
2379         (UINT8_DECODE): Likewise.
2380         (BT_UINT16_unloaded): New macro.
2381         (UINT16_VALUE_P): Accept Qunloaded.
2382         (UINT16_ENCODE): Likewise.
2383         (UINT16_DECODE): Likewise.
2384         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2385         BT_UINT16_unloaded.
2386         (mark_char_table): Mark `ct->name' in UTF-2000.
2387         (char_table_description): Add `name' in UTF-2000.
2388         (Fmake_char_table): Initialize `ct->name'.
2389         (Fcopy_char_table): Copy `ct->name'.
2390         (Fput_char_attribute): Store value into an external database if
2391         HAVE_DATABASE is defined.
2392
2393         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2394         UTF-2000.
2395         (CHAR_TABLE_NAME): New macro in UTF-2000.
2396         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2397         (get_char_id_table): Try to read an external database if Qunloaded
2398         is stored in a table.
2399
2400         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2401         Qunloaded.
2402
2403 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2404
2405         * database.h: Add EXFUN definitions for Fopen_database,
2406         Fput_database, Fget_database and Fclose_database.
2407
2408         * data.c (Qunloaded): New variable in UTF-2000.
2409
2410         * lisp.h (Qunloaded): New variable in UTF-2000.
2411
2412 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2413
2414         * mule-charset.c (put_char_ccs_code_point): Modify for
2415         `decoding_table_remove_char' and `decoding_table_put_char'.
2416         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2417
2418         * char-ucs.h (decoding_table_remove_char): Change arguments to
2419         hide decoding_table vector.
2420         (decoding_table_put_char): Likewise.
2421
2422 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2423
2424         * mule-charset.c (decoding_table_remove_char): Moved to
2425         char-ucs.h.
2426         (decoding_table_put_char): Likewise.
2427
2428         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2429         from mule-charset.c].
2430         (decoding_table_remove_char): New inline function [moved from
2431         mule-charset.c].
2432         (decoding_table_put_char): Likewise.
2433
2434 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2435
2436         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2437         extension.
2438
2439 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2440
2441         * mule-charset.c (decode_builtin_char): Support mother charsets.
2442
2443 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2444
2445         * mule-charset.c (Q94x94x60): New variable.
2446         (charset_code_point): Support conversion `94x94x60'.
2447         (Fmake_charset): Likewise.
2448         (syms_of_mule_charset): Add new symbol `94x94x60'.
2449
2450         * char-ucs.h (CONVERSION_94x94x60): New macro.
2451
2452 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2453
2454         * mule-charset.c (charset_code_point): Unify code about
2455         `code-offset'.
2456
2457 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2458
2459         * mule-charset.c (charset_code_point): Merge code about builtin
2460         characters into code about mother charsets; don't use
2461         `range_charset_code_point'.
2462         (range_charset_code_point): Deleted.
2463
2464 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2465
2466         * mule-charset.c (Qcode_offset): New variable.
2467         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2468         `max-code'; accept new property `code-offset'.
2469         (syms_of_mule_charset): Add new symbol `code-offset'.
2470
2471 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2472
2473         * mule-charset.c (range_charset_code_point): Fixed.
2474
2475 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2476
2477         * mule-charset.c (decode_builtin_char): Change semantics of
2478         code-offset of coded-charset.
2479         (charset_code_point): Likewise.
2480         (range_charset_code_point): Likewise.
2481         (complex_vars_of_mule_charset): Modify for the change.
2482
2483 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2484
2485         * mule-charset.c (Fencode_char): Reverse arguments.
2486
2487         * mule-charset.c (charset_code_point): Fixed.
2488
2489 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2490
2491         * mule-charset.c (Vcharset_mojikyo): Deleted.
2492         (Vcharset_mojikyo_2022_1): Deleted.
2493         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2494         (Qmin_code): New variable in UTF-2000.
2495         (Qmax_code): Likewise.
2496         (Qmother): Likewise.
2497         (Qconversion): Likewise.
2498         (Q94x60): Likewise.
2499         (Qmojikyo): Deleted.
2500         (Qmojikyo_2022_1): Deleted.
2501         (Qmojikyo_pj_{1..22}): Deleted.
2502         (mark_charset): Mark `cs->mother'.
2503         (charset_description): Add description for `mother'.
2504         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2505         new arguments `mother' and `conversion'; use
2506         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2507         (charset_code_point): Moved from char-ucs.h; support `mother'
2508         charset feature.
2509         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2510         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2511         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2512         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2513         allow 2 as the value of `graphic' in UTF-2000; add new properties
2514         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2515         require `final' in UTF-2000; modify for `make_charset'.
2516         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2517         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2518         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2519         (Fencode_char): New function.
2520         (syms_of_mule_charset): Add new builtin function `encode-char' in
2521         UTF-2000; add new symbols `min-code', `max-code', `mother',
2522         `conversion' and `94x60'; delete symbols `mojikyo',
2523         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2524         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2525         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2526         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2527
2528         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2529         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2530
2531         * char-ucs.h (Vcharset_mojikyo): Deleted.
2532         (Vcharset_mojikyo_2022_1): Deleted.
2533         (LEADING_BYTE_MOJIKYO): Deleted.
2534         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2535         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2536         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2537         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2538         add new member `mother'; add new member `conversion'.
2539         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2540         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2541         (CHARSET_MOTHER): New macro.
2542         (CHARSET_CONVERSION): New macro.
2543         (CONVERSION_IDENTICAL): New macro.
2544         (CONVERSION_94x60): New macro.
2545         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2546         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2547         (XCHARSET_MOTHER): New macro.
2548         (XCHARSET_CONVERSION): New macro.
2549         (MIN_CHAR_MOJIKYO): Deleted.
2550         (MAX_CHAR_MOJIKYO): Deleted.
2551         (DECODE_MOJIKYO_2022): Deleted.
2552         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2553         (charset_code_point): Changed to non-inline function.
2554         (encode_char_1): Use `charset_code_point'.
2555         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2556
2557 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2558
2559         * lread.c (read_compiled_function): Fix prototype.
2560         (read_vector): Likewise.
2561
2562 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2563
2564         * lrecord.h (struct lrecord_header): Delete `older'.
2565         (set_lheader_implementation): Delete code for `older'.
2566         (set_lheader_older_implementation): Deleted.
2567         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2568         (OLDER_RECORD_P): Deleted.
2569         (OLDER_RECORD_HEADER_P): Deleted.
2570         (alloc_older_lcrecord): Deleted.
2571         (alloc_older_lcrecord_type): Deleted.
2572
2573         * alloc.c (all_older_lcrecords): Deleted.
2574         (alloc_older_lcrecord): Deleted.
2575         (disksave_object_finalization_1): Delete code for older objects.
2576         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2577         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2578
2579 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2580
2581         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2582         instead of `make_older_vector'.
2583         (put_char_ccs_code_point): Likewise.
2584         (mark_charset): Mark `cs->decoding_table'.
2585         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2586
2587         * lisp.h (make_older_vector): Deleted.
2588         (make_vector_newer): Deleted.
2589
2590         * config.h.in (HAVE_GGC): Deleted.
2591
2592         * alloc.c (make_older_vector): Deleted.
2593         (make_vector_newer_1): Deleted.
2594         (make_vector_newer): Deleted.
2595
2596 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2597
2598         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2599         (Qideograph_daikanwa_2): New variable.
2600         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2601         (complex_vars_of_mule_charset): Add new coded-charset
2602         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2603         `LEADING_BYTE_DAIKANWA'.
2604
2605         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2606         (LEADING_BYTE_DAIKANWA_1): New macro.
2607         (LEADING_BYTE_DAIKANWA_2): New macro.
2608         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2609
2610 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2611
2612         * mule-charset.c (complex_vars_of_mule_charset): Change
2613         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2614         the second revised version.
2615
2616 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2617
2618         * mule-charset.c (Vcharset_ucs_smp): New variable.
2619         (Vcharset_ucs_sip): New variable.
2620         (Qucs_smp): New variable.
2621         (Qucs_sip): New variable.
2622         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2623         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2624         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2625         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2626         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2627         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2628
2629         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2630         (LEADING_BYTE_UCS_SIP): New macro.
2631         (MIN_CHAR_SMP): New macro.
2632         (MAX_CHAR_SMP): New macro.
2633         (MIN_CHAR_SIP): New macro.
2634         (MAX_CHAR_SIP): New macro.
2635
2636 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2637
2638         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2639         utf-2000.
2640
2641 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2642
2643         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2644         value; don't store value into `encoding_table' of `Lisp_Charset'.
2645         (mark_charset): `encoding_table' was deleted.
2646         (charset_description): Likewise.
2647         (make_charset): Likewise.
2648         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2649         `put_char_ccs_code_point'.
2650
2651         * chartab.h (Fput_char_attribute): New EXFUN.
2652
2653         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2654         is unified with normal symbol space.
2655         (Fget_char_attribute): Likewise.
2656         (Fput_char_attribute): Likewise; behavior of
2657         `put_char_ccs_code_point' is changed.
2658
2659         * char-ucs.h: Include "elhash.h".
2660         (Vchar_attribute_hash_table): New external variable.
2661         (struct Lisp_Charset): Delete `encoding_table'.
2662         (CHARSET_ENCODING_TABLE): New implementation; refer
2663         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2664         `Lisp_Charset'.
2665
2666 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2667
2668         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2669         (cs) == 0.
2670
2671 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2672
2673         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2674         `chinese-big5'.
2675
2676 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2677
2678         * chartab.c (uint8_byte_table_description): New constant.
2679         (uint8-byte-table): Use `uint8_byte_table_description'.
2680         (uint16_byte_table_description): New constant.
2681         (uint16-byte-table): Use `uint16_byte_table_description'.
2682
2683 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2684
2685         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2686         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2687
2688 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2689
2690         * mule-charset.c (Vcharset_ucs_ks): New variable.
2691         (Qucs_ks): New variable.
2692         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2693         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2694
2695         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2696
2697 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2698
2699         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2700         (Fdecode_char): Likewise.
2701
2702         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2703         chartab.h.
2704         (Fdefine_char): Modify for Fdecode_char.
2705         (Ffind_char): Likewise.
2706
2707         * mule-charset.c (Fdecode_char): Add new optional argument
2708         `defined-only'.
2709         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2710
2711 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2712
2713         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2714         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2715         (allocate_coding_system): Initialize initial-charsets of
2716         CODESYS_BIG5 in XEmacs UTF-2000.
2717         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2718         CODESYS_BIG5 in XEmacs UTF-2000.
2719         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2720         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2721
2722         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2723         variables.
2724         (Qideograph_hanziku_{1 .. 12}): Likewise.
2725         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2726         .. 12}'.
2727         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2728         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2729         `ideograph-hanziku-{1 .. 12}'.
2730
2731         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2732         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2733         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2734         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2735         (DECODE_DEFINED_CHAR): New inline function.
2736         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2737
2738 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2739
2740         * mule-charset.c (Vcharset_china3_jef): Renamed from
2741         `Vcharset_japanese_jef_china3'.
2742         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2743         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2744         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2745         (syms_of_mule_charset): Rename `china3-jef' from
2746         `japanese-jef-china3'.
2747         (complex_vars_of_mule_charset): Likewise; rename
2748         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2749
2750         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2751         `LEADING_BYTE_JEF_CHINA3'.
2752         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2753         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2754
2755 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2756
2757         * mule-charset.c (encode_builtin_char_1): Comment out special code
2758         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2759
2760         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2761         (MAX_CHAR_MOJIKYO_0): Comment out.
2762         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2763         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2764         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2765         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2766
2767 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2768
2769         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2770         (Qideograph_cbeta): New variable.
2771         (encode_builtin_char_1): Comment out special code for
2772         coded-charset `mojikyo' and `japanese-jef-china3'.
2773         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2774         (complex_vars_of_mule_charset): Add new coded-charset
2775         `ideograph-cbeta'.
2776
2777         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2778         (MIN_CHAR_CBETA): New macro.
2779         (MAX_CHAR_CBETA): New macro.
2780
2781 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2782
2783         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2784         (LEADING_BYTE_JEF_CHINA3): New macro.
2785         (MIN_CHAR_JEF_CHINA3): New macro.
2786         (MAX_CHAR_JEF_CHINA3): Likewise.
2787         (DECODE_CHAR): Fixed.
2788
2789 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2790
2791         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2792         (Qjapanese_jef_china3): New variable.
2793         (encode_builtin_char_1): Support `japanese-jef-china3'.
2794         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2795         (complex_vars_of_mule_charset): Add new coded-charset
2796         `japanese-jef-china3'.
2797
2798 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2799
2800         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2801         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2802         94^4, 96^3, 96^4, 128^n and 256^n set.
2803         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2804         (map_char_table): Likewise.
2805
2806 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2807
2808         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2809         UTF-2000.
2810
2811 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2812
2813         * chartab.h (get_char_id_table): New inline function.
2814
2815         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2816         function.
2817
2818 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2819
2820         * chartab.h (decode_char_table_range): New prototype in XEmacs
2821         UTF-2000.
2822         (put_char_id_table): New inline function in XEmacs UTF-2000.
2823
2824         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2825         function.
2826         (decode_char_table_range): Delete static declaration in XEmacs
2827         UTF-2000.
2828
2829 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2830
2831         * chartab.c (put_char_id_table): Use `put_char_table'.
2832
2833 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2834
2835         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2836         (map_over_uint16_byte_table): Likewise.
2837         (map_over_byte_table): Likewise.
2838         (map_char_table): Modify for `map_over_uint8_byte_table',
2839         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2840         UTF-2000.
2841
2842 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2843
2844         * chartab.c (struct map_char_table_for_charset_arg): New
2845         structure.
2846         (map_char_table_for_charset_fun): New function.
2847         (map_char_table): Use `map_char_table' for encoding_table of
2848         `range->charset'.
2849
2850 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2851
2852         * chartab.c (map_char_table): Check a character is found in
2853         range->charset instead of non default value is defined in
2854         char-table when range is CHARTAB_RANGE_ROW.
2855
2856 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2857
2858         * chartab.c (map_char_id_table): Deleted.
2859         (Fmap_char_attribute): Use `map_char_table' instead of
2860         `map_char_id_table'.
2861
2862 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2863
2864         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2865         UTF-2000.
2866         (update_syntax_table): Deleted in XEmacs UTF-2000.
2867
2868         * syntax.c (find_defun_start): Use `syntax_table' instead of
2869         `mirror_syntax_table' in XEmacs UTF-2000.
2870         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2871         UTF-2000.
2872         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2873         XEmacs UTF-2000.
2874         (Fmatching_paren): Likewise.
2875         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2876         in XEmacs UTF-2000.
2877         (find_start_of_comment): Likewise.
2878         (find_end_of_comment): Likewise.
2879         (Fforward_comment): Likewise.
2880         (scan_lists): Likewise.
2881         (char_quoted): Likewise.
2882         (Fbackward_prefix_chars): Likewise.
2883         (scan_sexps_forward): Likewise.
2884         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2885         (update_syntax_table): Likewise.
2886
2887         * search.c (skip_chars): Use `syntax_table' instead of
2888         `mirror_syntax_table' in XEmacs UTF-2000.
2889         (wordify): Likewise.
2890         (Freplace_match): Likewise.
2891
2892         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2893         `mirror_syntax_table' in XEmacs UTF-2000.
2894         (WORDCHAR_P_UNSAFE): Likewise.
2895         (re_match_2_internal): Likewise.
2896
2897         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2898         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2899
2900         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2901         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2902
2903         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2904         XEmacs UTF-2000.
2905
2906         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2907         UTF-2000.
2908         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2909         (char_table_description): Delete `mirror_table' in XEmacs
2910         UTF-2000.
2911         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2912         UTF-2000.
2913         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2914         (Fcopy_char_table): Likewise.
2915         (put_char_table): Don't call `update_syntax_table' in XEmacs
2916         UTF-2000.
2917
2918         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2919         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2920         (casify_region_internal): Likewise.
2921
2922         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2923
2924         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2925         `mirror_syntax_table' in XEmacs UTF-2000.
2926
2927         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2928         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2929         (Fexpand_abbrev): Likewise.
2930
2931 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2932
2933         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2934
2935 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2936
2937         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2938         (map_over_uint16_byte_table): Likewise.
2939         (map_over_byte_table): Likewise.
2940         (get_char_id_table): Refer `cit->default_value'.
2941         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2942         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2943         of character-id ranges.
2944         (mark_char_table): Mark `ct->default_value'.
2945         (char_table_description): Add `default_value'.
2946         (fill_char_table): Use `default_value'.
2947         (decode_char_table_range): Decode `nil' as
2948         `CHARTAB_RANGE_DEFAULT'.
2949         (get_char_id_table): Refer `cit->default_value'.
2950         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2951         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2952         temporary hack; check value of char-table is bound or not.
2953         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2954
2955         * chartab.h (struct Lisp_Char_Table): Add new member
2956         `default_value' in XEmacs UTF-2000.
2957         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2958         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2959         UTF-2000.
2960
2961 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2962
2963         * chartab.h (Lisp_Char_ID_Table): Deleted.
2964
2965         * chartab.c (char_table_description): Fix typo.
2966         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2967         `Lisp_Char_ID_Table'.
2968
2969 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2970
2971         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2972         `CHAR_ID_TABLE_P'.
2973
2974         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2975         `CHAR_ID_TABLE_P'.
2976
2977         * chartab.h (XCHAR_ID_TABLE): Deleted.
2978         (XSETCHAR_ID_TABLE): Deleted.
2979         (CHAR_ID_TABLE_P): Deleted.
2980
2981         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2982         `CHAR_ID_TABLE_P'.
2983         (Fget_composite_char): Likewise.
2984         (put_char_table): Likewise.
2985         (add_char_attribute_alist_mapper): Fixed.
2986         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2987         `CHAR_ID_TABLE_P'.
2988         (Fget_char_attribute): Likewise.
2989         (Fget_char_attribute): Likewise.
2990         (Fmap_char_attribute): Likewise.
2991
2992         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2993         `CHAR_ID_TABLE_P'.
2994         (encode_char_1): Likewise.
2995
2996 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2997
2998         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2999         `XCHAR_ID_TABLE'.
3000
3001         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
3002         instead of `XCHAR_ID_TABLE'.
3003         (remove_char_ccs): Likewise.
3004
3005         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
3006         `XCHAR_ID_TABLE'.
3007         (Fget_composite_char): Likewise.
3008         (Fchar_variants): Likewise.
3009         (put_char_table): Likewise.
3010         (add_char_attribute_alist_mapper): Likewise.
3011         (Fchar_attribute_alist): Likewise.
3012         (Fget_char_attribute): Likewise.
3013         (Fput_char_attribute): Likewise.
3014         (Fmap_char_attribute): Likewise.
3015         (Fmap_char_attribute): Likewise.
3016
3017         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
3018         `XCHAR_ID_TABLE'.
3019         (encode_char_1): Likewise.
3020
3021 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3022
3023         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
3024         `Lisp_Char_ID_Table'.
3025         (mark_char_id_table): Deleted.
3026         (print_char_id_table): Likewise.
3027         (char_id_table_equal): Likewise.
3028         (char_id_table_hash): Likewise.
3029         (char_id_table_description): Likewise.
3030         (char_id_table): Likewise.
3031         (make_char_id_table): Use `Fmake_char_table' and
3032         `fill_char_table'.
3033         (get_char_id_table): Use `Lisp_Char_Table' instead of
3034         `Lisp_Char_ID_Table'.
3035         (put_char_id_table): Likewise.
3036         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
3037         `XCHAR_ID_TABLE'.
3038         (Fremove_char_attribute): Likewise.
3039         (syms_of_chartab): Don't define type `char-id-table'.
3040
3041         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
3042         (char_id_table): Likewise.
3043         (GC_CHAR_ID_TABLE_P): Likewise.
3044         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
3045         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
3046         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
3047         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
3048         (get_char_id_table): Use `Lisp_Char_Table' instead of
3049         `Lisp_Char_ID_Table'.
3050         (put_char_id_table_0): Likewise.
3051         (put_char_id_table): Likewise.
3052
3053 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3054
3055         * chartab.h: Lisp_Byte_Table related codes are moved from
3056         chartab.h.
3057
3058         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
3059
3060 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3061
3062         * chartab.h: Don't include "chartab.h".
3063         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
3064         (Lisp_Char_ID_Table): Likewise.
3065         (char_id_table): Likewise.
3066         (XCHAR_ID_TABLE): Likewise.
3067         (XSETCHAR_ID_TABLE): Likewise.
3068         (CHAR_ID_TABLE_P): Likewise.
3069         (GC_CHAR_ID_TABLE_P): Likewise.
3070         (get_char_id_table): Likewise.
3071
3072         * char-ucs.h: Include "chartab.h".
3073         (struct Lisp_Char_ID_Table): Moved to chartab.h.
3074         (Lisp_Char_ID_Table): Likewise.
3075         (char_id_table): Likewise.
3076         (XCHAR_ID_TABLE): Likewise.
3077         (XSETCHAR_ID_TABLE): Likewise.
3078         (CHAR_ID_TABLE_P): Likewise.
3079         (GC_CHAR_ID_TABLE_P): Likewise.
3080         (get_char_id_table): Likewise.
3081
3082 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3083
3084         * chartab.c (copy_uint8_byte_table): New function.
3085         (copy_uint16_byte_table): New function.
3086         (copy_byte_table): New function.
3087         (map_over_uint8_byte_table): Modify to avoid huge numbers of
3088         characters to call.
3089         (map_over_uint16_byte_table): Likewise.
3090         (map_over_byte_table): Likewise.
3091         (get_byte_table): Move prototype to chartab.h.
3092         (put_byte_table): Likewise.
3093         (put_char_id_table_0): Moved to chartab.h.
3094         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
3095         (char_table_entry_equal): Likewise.
3096         (char_table_entry_hash): Likewise.
3097         (char_table_entry_description): Likewise.
3098         (char_table_entry): Likewise.
3099         (make_char_table_entry): Likewise.
3100         (copy_char_table_entry): Likewise.
3101         (get_non_ascii_char_table_value): Likewise.
3102         (map_over_charset_ascii): Likewise.
3103         (map_over_charset_control_1): Likewise.
3104         (map_over_charset_row): Likewise.
3105         (map_over_other_charset): Likewise.
3106         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
3107         (print_char_table): Likewise.
3108         (char_table_equal): Likewise.
3109         (char_table_hash): Likewise.
3110         (char_table_description): Likewise.
3111         (fill_char_table): Likewise.
3112         (Fcopy_char_table): Likewise.
3113         (get_char_table): Likewise.
3114         (Fget_range_char_table): Likewise.
3115         (put_char_table): Likewise.
3116         (map_char_table): Likewise.
3117         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
3118         UTF-2000.
3119
3120 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3121
3122         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
3123         `Vauto_fill_chars' in XEmacs UTF-2000.
3124
3125         * chartab.h (get_byte_table): New prototype [moved from
3126         chartab.c].
3127         (put_byte_table): Likewise [moved from chartab.c].
3128         (put_char_id_table_0): New inline function [moved from chartab.c].
3129         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
3130         (Lisp_Char_Table_Entry): Likewise.
3131         (char_table_entry): Likewise.
3132         (XCHAR_TABLE_ENTRY): Likewise.
3133         (XSETCHAR_TABLE_ENTRY): Likewise.
3134         (CHAR_TABLE_ENTRYP): Likewise.
3135         (CHECK_CHAR_TABLE_ENTRY): Likewise.
3136         (NUM_ASCII_CHARS): Likewise.
3137         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
3138         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
3139
3140 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3141
3142         * chartab.c (get_char_id_table): Change interface.
3143         (put_char_id_table_0): New function.
3144         (put_char_id_table): Change interface; new implementation.
3145         (Fget_composite_char): Modify for interface change of
3146         `get_char_id_table'.
3147         (Fchar_variants): Likewise.
3148         (add_char_attribute_alist_mapper): Likewise.
3149         (Fchar_attribute_alist): Likewise.
3150         (Fget_char_attribute): Likewise.
3151         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
3152         as same as character as the first argument like `put-char-table';
3153         modify for interface change of `put_char_id_table'.
3154         (Fremove_char_attribute): Modify for interface change of
3155         `put_char_id_table'.
3156
3157 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3158
3159         * text-coding.c: Sync up with XEmacs 21.2.41.
3160         (COMPOSE_ADD_CHAR): Modify for interface change of
3161         `get_char_id_table'.
3162
3163         * mule-charset.c (put_char_ccs_code_point): Modify for interface
3164         change of `put_char_id_table'.
3165         (remove_char_ccs): Likewise.
3166
3167         * chartab.h (put_char_id_table): Change interface.
3168
3169         * char-ucs.h (get_char_id_table): Change interface.
3170         (charset_code_point): Modify for interface change of
3171         `get_char_id_table'.
3172         (encode_char_1): Likewise.
3173
3174 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3175
3176         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3177         argument `ccs'.
3178         (map_over_uint16_byte_table): Likewise.
3179         (map_over_byte_table): Likewise.
3180         (map_char_id_table): Add new argument `range' like
3181         `map_char_table'.
3182         (Fmap_char_attribute): Add new argument `range' like
3183         `Fmap_char_table'.
3184
3185 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3186
3187         * chartab.c (map_over_uint8_byte_table): Change interface of
3188         mapping function to use struct chartab_range instead of Emchar.
3189         (map_over_uint16_byte_table): Likewise.
3190         (map_over_byte_table): Likewise.
3191         (map_char_id_table): Likewise.
3192         (struct slow_map_char_id_table_arg): Deleted.
3193         (slow_map_char_id_table_fun): Deleted.
3194         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3195         function `slow_map_char_table_fun' instead of struct
3196         `slow_map_char_id_table_arg' and function
3197         `slow_map_char_id_table_fun'.
3198
3199 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3200
3201         * mule-charset.c: Move char-it-table related codes to chartab.c.
3202         (Vutf_2000_version): Moved to chartab.c.
3203         (Fdefine_char): Likewise.
3204         (Ffind_char): Likewise.
3205         (syms_of_mule_charset): Move types `uint8-byte-table',
3206         `uint16-byte-table', `byte-table' and `char-id-table' to
3207         chartab.c; move functions `char_attribute_list,
3208         `find_char_attribute_table, `char_attribute_alist,
3209         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3210         `map_char_attribute, `define_char, `find_char, `char_variants and
3211         `get_composite_char to chartab.c; move symbols `=>ucs',
3212         `->decomposition', `compat', `isolated', `initial', `medial',
3213         `final', `vertical', `noBreak', `fraction', `super', `sub',
3214         `circle', `square', `wide', `narrow', `small' and `font' to
3215         chartab.c.
3216         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3217         setting codes for `Vcharacter_composition_table' and
3218         `Vcharacter_variant_table' to chartab.c.
3219         (complex_vars_of_mule_charset): Move setting code for
3220         `Vchar_attribute_hash_table' to chartab.c.
3221
3222         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3223         (make_char_id_table): New prototype.
3224         (put_char_id_table): Likewise.
3225         (Fget_char_attribute): Likewise.
3226
3227         * chartab.c: Move char-id-table related code from mule-charset.c.
3228         (Vutf_2000_version): Moved from mule-charset.c.
3229
3230         * char-ucs.h (Qucs): New external variable.
3231         (put_char_ccs_code_point): New prototype.
3232         (remove_char_ccs): Likewise.
3233
3234 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3235
3236         * mule-charset.c (Vcharset_ucs_jis): New variable.
3237         (Qucs_jis): Likewise.
3238         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3239         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3240
3241         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3242
3243 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3244
3245         * mule-charset.c (map_over_uint8_byte_table): New function.
3246         (map_over_uint16_byte_table): Likewise.
3247         (map_over_byte_table): Likewise.
3248         (map_char_id_table): Likewise.
3249         (slow_map_char_id_table_fun): Likewise.
3250         (Fmap_char_attribute): Likewise.
3251         (syms_of_mule_charset): Add new function `map-char-attribute'.
3252
3253 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3254
3255         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3256         (syms_of_mule_charset): Add new function `find-char'.
3257
3258 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3259
3260         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3261         XEmacs UTF-2000.
3262         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3263         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3264         XEmacs UTF-2000.
3265         (complex_vars_of_mule_charset): Add new coded-charset
3266         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3267         `ideograph-gt-pj-*'.
3268
3269         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3270
3271 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3272
3273         * mule-charset.c (encode_builtin_char_1): Purge codes about
3274         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3275         {MIN|MAX}_CHAR_HEBREW.
3276         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3277         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3278
3279         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3280         (MAX_CHAR_GREEK): Purged.
3281         (MIN_CHAR_CYRILLIC): Purged.
3282         (MAX_CHAR_CYRILLIC): Purged.
3283         (MIN_CHAR_HEBREW): Commented out.
3284         (MAX_CHAR_HEBREW): Likewise.
3285
3286 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3287
3288         * mule-charset.c (Qto_ucs): New variable.
3289         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3290         (Fdefine_char): Likewise.
3291         (syms_of_mule_charset): Add new symbol `=>ucs'.
3292
3293 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3294
3295         * mule-charset.c (Fdecode_char): Fixed.
3296
3297 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3298
3299         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3300         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3301         "tcvn5712-1".
3302
3303 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3304
3305         * mule-charset.c (Vcharset_ucs_big5): New variable.
3306         (Qucs_big5): Likewise.
3307         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3308         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3309
3310         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3311
3312 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3313
3314         * mule-charset.c (decode_builtin_char): Check Big5 code range
3315         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3316
3317 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3318
3319         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3320         (Qchinese_gb12345): Likewise.
3321         (Fdecode_builtin_char): Fixed.
3322         (syms_of_mule_charset): Add `chinese-gb12345'.
3323         (complex_vars_of_mule_charset): Add coded-charset
3324         `chinese-gb12345'.
3325
3326         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3327         (LEADING_BYTE_CHINESE_GB12345): New macro.
3328
3329 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3330
3331         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3332         and `latin-viscii-upper' for `latin-viscii'.
3333
3334 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3335
3336         * mule-charset.c (Fdecode_builtin_char): Comment out
3337         regularization code for ISO-IR GR representation.
3338
3339 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3340
3341         * mule-charset.c (decode_builtin_char): New function; renamed from
3342         `make_builtin_char'; return -1 instead of signal.
3343         (Fdecode_builtin_char): Use `decode_builtin_char'.
3344
3345         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3346         `make_builtin_char'.
3347         (DECODE_CHAR): Use `decode_builtin_char' instead of
3348         `make_builtin_char'; use mapping table of `chinese-big5' for
3349         `chinese-big5-{1,2}'.
3350
3351 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3352
3353         * text-coding.c (char_encode_big5): New function.
3354         (char_finish_big5): Likewise.
3355         (reset_encoding_stream): Use `char_encode_big5' and
3356         `char_finish_big5' for CODESYS_BIG5.
3357         (mule_encode): Don't use `encode_coding_big5'.
3358         (encode_coding_big5): Deleted.
3359
3360 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3361
3362         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3363         0x81- in XEmacs UTF-2000.
3364         (detect_coding_big5): Likewise.
3365
3366 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3367
3368         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3369         generate character-id if the CCS property does not have
3370         corresponding predefined character.
3371         (make_builtin_char): Return -1 if corresponding predefined
3372         character is not found.
3373         (Fdecode_char): Return nil if corresponding character is not
3374         found.
3375         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3376         don't map to builtin ucs space.
3377
3378 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3379
3380         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3381         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3382
3383 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3384
3385         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3386         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3387         (Qideograph_gt): Likewise.
3388         (Qideograph_gt_pj_{1..11}): Likewise.
3389         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3390         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3391         `ideograph-gt-pj-11'.
3392         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3393         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3394         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3395
3396         * char-ucs.h (LEADING_BYTE_GT): New macro.
3397         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3398         (MIN_CHAR_GT): Likewise.
3399         (MAX_CHAR_GT): Likewise.
3400
3401 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3402
3403         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3404         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3405
3406         * doprnt.c (unsigned_int_converters): Add `c'.
3407         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3408
3409         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3410         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3411         `MIN_CHAR_MOJIKYO'.
3412         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3413         (MAX_CHAR_MOJIKYO_0): New macro.
3414         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3415
3416 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3417
3418         * mule-charset.c (Fdefine_char): Delete cemented out code.
3419         (encode_builtin_char_1): Modify for new allocation of builtin
3420         Mojikyo characters.
3421
3422         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3423
3424 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3425
3426         * mule-charset.c (Vcharset_ucs_cns): New variable.
3427         (Qucs_cns): New variable.
3428         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3429         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3430
3431 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3432
3433         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3434
3435 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3436
3437         * search.c (search_buffer): Make `charset_base_code' as
3438         character-id >> 6 to eliminate the corresponding last byte in
3439         UTF-8 representation [I'm not sure it is right thing].
3440         (boyer_moore): Likewise.
3441
3442 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3443
3444         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3445         representation in MULE.
3446
3447 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3448
3449         * text-coding.c (Fmake_coding_system): Use
3450         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3451         `EXTERNAL_PROPERTY_LIST_LOOP'.
3452
3453 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3454
3455         * text-coding.c (decode_output_utf8_partial_char): New function.
3456         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3457
3458 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3459
3460         * text-coding.c (decode_coding_utf8): Output original byte
3461         sequence if it is broken; change order of conditions.
3462
3463         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3464         of conditions.
3465
3466         * mb-multibyte.h (BYTE_ASCII_P):
3467         Use bit ops for char-signedness safety.
3468         (BYTE_C0_P): Use bit ops for char-signedness safety.
3469         (BYTE_C1_P): Use bit ops for char-signedness safety.
3470
3471         * character.h: (XCHAR_OR_CHAR_INT):
3472         Always use inline function.
3473         Remove redundant type checking assert() - XINT will abort quite
3474         nicely.
3475
3476 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3477
3478         * text-coding.c: (Fencode_shift_jis_char):
3479         (Fencode_big5_char):
3480         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3481         Replace 0 with '\0' when working with bytes.
3482         Replace initial "(" with "\(" in docstrings.
3483
3484         (Fmake_coding_system):
3485         When type is ccl and value is vector, register it with a proper
3486         symbol.  And checks whether the given ccl program is valid.
3487         (mule_decode): When calling ccl_driver, if src indicates
3488         NULL pointer, set an empty string instead.
3489         (mule_encode): Likewise.
3490
3491         (detect_eol_type):
3492         (detect_coding_sjis):
3493         (decode_coding_sjis):
3494         (detect_coding_big5):
3495         (decode_coding_big5):
3496         (detect_coding_ucs4):
3497         (decode_coding_ucs4):
3498         (detect_coding_utf8):
3499         (decode_coding_utf8):
3500         (detect_coding_iso2022):
3501         (decode_coding_iso2022):
3502         (decode_coding_no_conversion):
3503         (mule_decode):
3504         Make all detecting and decoding functions take an Extbyte * arg.
3505         (text_encode_generic):
3506         (encode_coding_big5):
3507         (encode_coding_no_conversion):
3508         (mule_encode):
3509         Make all encoding functions take a Bufbyte * arg.
3510         Use size_t instead of unsigned int for memory sizes.
3511         Only cast to unsigned char whenever dereferencing Extbyte *.
3512
3513         (struct lrecord_description fcd_description_1): Use countof.
3514         (complex_vars_of_file_coding):
3515         Use countof instead of sizeof.
3516         Use CHECK_NATNUM instead of CHECK_INT.
3517
3518 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3519
3520         * mule-charset.c (Fget_char_attribute): Add new optional argument
3521         `default-value'.
3522         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3523         (remove_char_ccs): Likewise.
3524
3525 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3526
3527         * text-coding.c (char_encode_shift_jis): New implementation in
3528         UTF-2000.
3529         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3530         ...)'.
3531
3532         * mule-charset.c (Vcharset_chinese_big5): New variable in
3533         UTF-2000.
3534         (Qchinese_big5): New variable in UTF-2000.
3535         (BIG5_SAME_ROW): New macro in UTF-2000.
3536         (make_builtin_char): Use builtin characters of
3537         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3538         characters of `Vcharset_chinese_big5'.
3539         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3540         (complex_vars_of_mule_charset): Add new coded-charset
3541         `chinese-big5' in UTF-2000.
3542
3543         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3544         (Vcharset_chinese_big5): New external variable declaration.
3545         (Vcharset_japanese_jisx0208_1990): Likewise.
3546
3547 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3548
3549         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3550         function.
3551         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3552
3553 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3554
3555         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3556         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3557         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3558         `mojikyo-pj-*'.
3559
3560 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3561
3562         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3563
3564 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3565
3566         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3567         to 0.17.
3568
3569 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3570
3571         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3572         for `CHARSET_BY_ATTRIBUTES'.
3573         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3574         `CHARSET_BY_ATTRIBUTES'.
3575
3576         * text-coding.c (struct decoding_stream): Rename member `CH' to
3577         `CPOS'.
3578         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3579         (decode_coding_sjis): Likewise.
3580         (decode_coding_big5): Likewise.
3581         (decode_coding_ucs4): Likewise.
3582         (decode_coding_utf8): Likewise.
3583         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3584         `CHARSET_BY_ATTRIBUTES'.
3585         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3586         `str->counter'; decode 3, 4 bytes sets.
3587         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3588         sets.
3589         (decode_coding_no_conversion): Use `str->cpos' instead of
3590         `str->ch'.
3591
3592         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3593         (Qmojikyo_2022_1): New variable.
3594         (make_charset): Don't use `CHARSET_TYPE_*'.
3595         (range_charset_code_point): Support coded-charset
3596         `mojikyo-2022-1'.
3597         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3598         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3599         `CHARSET_BY_ATTRIBUTES'.
3600         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3601         `CHARSET_BY_ATTRIBUTES'.
3602         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3603         (complex_vars_of_mule_charset): Add new coded-charset
3604         `mojikyo-2022-1'.
3605
3606         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3607         interface; changed to inline function.
3608
3609         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3610         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3611         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3612         (CHARSET_TYPE_94): Deleted.
3613         (CHARSET_TYPE_94X94): Deleted.
3614         (CHARSET_TYPE_96): Deleted.
3615         (CHARSET_TYPE_96X96): Deleted.
3616         (CHARSET_TYPE_128): Deleted.
3617         (CHARSET_TYPE_128X128): Deleted.
3618         (CHARSET_TYPE_256): Deleted.
3619         (CHARSET_TYPE_256X256): Deleted.
3620         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3621         to inline function.
3622         (DECODE_MOJIKYO_2022): New inline function.
3623         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3624         `Vcharset_mojikyo_2022_1'.
3625
3626 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3627
3628         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3629         instead of `EQ'.
3630         (put_byte_table): Likewise.
3631         (char_id_table_equal): Use `get_byte_table' [new implementation].
3632
3633 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3634
3635         * mule-charset.c: Include <limits.h> in UTF-2000.
3636         (BT_UINT8_MIN): New macro in UTF-2000.
3637         (BT_UINT8_MAX): New macro in UTF-2000.
3638         (BT_UINT8_t): New macro in UTF-2000.
3639         (BT_UINT8_nil): New macro in UTF-2000.
3640         (BT_UINT8_unbound): New macro in UTF-2000.
3641         (INT_UINT8_P): New inline function in UTF-2000.
3642         (UINT8_VALUE_P): New inline function in UTF-2000.
3643         (UINT8_ENCODE): New inline function in UTF-2000.
3644         (UINT8_DECODE): New inline function in UTF-2000.
3645         (mark_uint8_byte_table): New function in UTF-2000.
3646         (print_uint8_byte_table): New function in UTF-2000.
3647         (uint8_byte_table_equal): New function in UTF-2000.
3648         (uint8_byte_table_hash): New function in UTF-2000.
3649         (make_uint8_byte_table): New function in UTF-2000.
3650         (uint8_byte_table_same_value_p): New function in UTF-2000.
3651         (BT_UINT16_MIN): New macro in UTF-2000.
3652         (BT_UINT16_MAX): New macro in UTF-2000.
3653         (BT_UINT16_t): New macro in UTF-2000.
3654         (BT_UINT16_nil): New macro in UTF-2000.
3655         (BT_UINT16_unbound): New macro in UTF-2000.
3656         (INT_UINT16_P): New inline function in UTF-2000.
3657         (UINT16_VALUE_P): New inline function in UTF-2000.
3658         (UINT16_ENCODE): New inline function in UTF-2000.
3659         (UINT16_DECODE): New inline function in UTF-2000.
3660         (UINT8_TO_UINT16): New inline function in UTF-2000.
3661         (mark_uint16_byte_table): New function in UTF-2000.
3662         (print_uint16_byte_table): New function in UTF-2000.
3663         (uint16_byte_table_equal): New function in UTF-2000.
3664         (uint16_byte_table_hash): New function in UTF-2000.
3665         (make_uint16_byte_table): New function in UTF-2000.
3666         (uint16_byte_table_same_value_p): New function in UTF-2000.
3667         (print_byte_table): New function in UTF-2000.
3668         (byte-table): Use `print_byte_table' as printer.
3669         (make_byte_table): Delete second argument `older'.
3670         (byte_table_same_value_p): New function in UTF-2000.
3671         (copy_byte_table): Deleted.
3672         (get_byte_table): New function in UTF-2000.
3673         (put_byte_table): New function in UTF-2000.
3674         (print_char_id_table): New function in UTF-2000.
3675         (char-id-table): Use `print_char_id_table' as printer.
3676         (make_char_id_table): Delete second argument `older'.
3677         (get_char_id_table): Use `get_byte_table [new implementation].
3678         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3679         implementation].
3680         (Ffind_char_attribute_table): New function in UTF-2000.
3681         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3682         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3683         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3684         (syms_of_mule_charset): Add new function
3685         `find-char-attribute-table' in UTF-2000.
3686
3687         * lrecord.h (enum lrecord_type): Add
3688         `lrecord_type_uint16_byte_table' and
3689         `lrecord_type_uint8_byte_table'.
3690
3691         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3692         (Lisp_Uint8_Byte_Table): New type.
3693         (XUINT8_BYTE_TABLE): New macro.
3694         (XSETUINT8_BYTE_TABLE): New macro.
3695         (UINT8_BYTE_TABLE_P): New macro.
3696         (GC_UINT8_BYTE_TABLE_P): New macro.
3697         (struct Lisp_Uint16_Byte_Table): New structure.
3698         (Lisp_Uint16_Byte_Table): New type.
3699         (XUINT16_BYTE_TABLE): New macro.
3700         (XSETUINT16_BYTE_TABLE): New macro.
3701         (UINT16_BYTE_TABLE_P): New macro.
3702         (GC_UINT16_BYTE_TABLE_P): New macro.
3703
3704 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3705
3706         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3707         (Vcharacter_ideographic_strokes_table): Deleted.
3708         (Vcharacter_total_strokes_table): Deleted.
3709         (Vcharacter_morohashi_daikanwa_table): Deleted.
3710         (Vcharacter_decomposition_table): Deleted.
3711         (Qname): Deleted because it is duplicated.
3712         (Qideographic_radical): Deleted.
3713         (Qideographic_strokes): Deleted.
3714         (Qtotal_strokes): Deleted.
3715         (Qmorohashi_daikanwa): Deleted.
3716         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3717         `ideographic-radical', `ideographic-strokes', `total-strokes',
3718         `morohashi-daikanwa' and `->decomposition'.
3719         (Fget_char_attribute): Likewise.
3720         (Fput_char_attribute): Likewise; use `make-vector' instead of
3721         `make_older_vector' for `->decomposition' value.
3722         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3723         `ideograph-daikanwa'.
3724         (syms_of_mule_charset): Delete builtin symbols `name',
3725         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3726         `morohashi-daikanwa'.
3727         (vars_of_mule_charset): Don't setup
3728         `Vcharacter_ideographic_radical_table',
3729         `Vcharacter_ideographic_strokes_table',
3730         `Vcharacter_total_strokes_table',
3731         `Vcharacter_morohashi_daikanwa_table' and
3732         `Vcharacter_decomposition_table'.
3733
3734 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3735
3736         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3737         `make_older_vector', `make_vector_newer_1' and
3738         `make_vector_newer'.
3739
3740         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3741         `make_older_vector' and `make_vector_newer'.
3742
3743         * config.h.in (HAVE_GGC): New macro.
3744
3745 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3746
3747         * mule-charset.c (struct char_attribute_list_closure): New
3748         structure in UTF-2000.
3749         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3750         (Fchar_attribute_list): Likewise.
3751         (Fset_charset_mapping_table): Use `make_vector_newer'.
3752         (Fdecode_builtin_char): New function in UTF-2000.
3753         (syms_of_mule_charset): Add new function `char-attribute-list' and
3754         `decode-builtin-char' in UTF-2000.
3755
3756         * lisp.h (make_vector_newer): New prototype.
3757
3758         * alloc.c (make_vector_newer_1): New function.
3759         (make_vector_newer): New function.
3760
3761 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3762
3763         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3764         50100)'.
3765
3766 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3767
3768         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3769         (Vcharacter_attribute_table): Deleted.
3770         (Vcharacter_name_table): Deleted.
3771         (put_char_attribute): Deleted.
3772         (remove_char_attribute): Deleted.
3773         (struct char_attribute_alist_closure): New structure.
3774         (add_char_attribute_alist_mapper): New function.
3775         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3776         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3777         (Fget_char_attribute): Likewise.
3778         (Fput_char_attribute): Likewise.
3779         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3780         of `remove_char_attribute'.
3781         (Fdefine_char): Return character.
3782         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3783         and `Vcharacter_name_table'.
3784         (complex_vars_of_mule_charset): Likewise
3785         `Vchar_attribute_hash_table'.
3786
3787 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3788
3789         * character.h (CHARC_CHARSET): New macro.
3790         (CHARC_CHARSET_ID): New macro.
3791         (CHARC_CODE_POINT): New macro.
3792         (CHARC_COLUMNS): New macro.
3793         (CHARC_TO_CHAR): New inline function.
3794         (CHARC_EQ): New inline function.
3795         (CHARC_ASCII_EQ): New inline function.
3796         (CHARC_IS_SPACE): New inline function.
3797         (ASCII_TO_CHARC): New inline function.
3798
3799         * char-ucs.h (encode_char_2): Deleted.
3800         (ENCODE_CHAR): Use `encode_char_1' again.
3801         (breakup_char_1): Likewise.
3802         (CHAR_TO_CHARC): New inline function.
3803
3804         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3805
3806 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3807
3808         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3809         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3810         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3811         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3812         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3813         `CHARC_IS_SPACE'.
3814         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3815
3816         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3817         `CHARC_CODE_POINT'.
3818         (x_output_display_block): Use `CHARC_CHARSET' and
3819         `CHARC_ASCII_EQ'.
3820
3821         * redisplay-tty.c (tty_output_display_block): Use
3822         `CHARC_ASCII_EQ'.
3823         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3824
3825         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3826
3827         * insdel.c (find_charsets_in_charc_string): Use
3828         `CHARC_CHARSET_ID'.
3829         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3830         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3831         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3832         (convert_charc_string_into_malloced_string): Likewise.
3833
3834 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3835
3836         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3837         instead of <Emchar_dynarr *> for buf; use
3838         `convert_bufbyte_string_into_charc_dynarr' instead of
3839         `convert_bufbyte_string_into_emchar_dynarr'; use
3840         `find_charsets_in_charc_string' instead of
3841         `find_charsets_in_emchar_string'.
3842
3843         * redisplay.h:
3844         - Include "character.h".
3845         (struct rune): New member `cglyph'; delete member `chr'.
3846
3847         * redisplay.c (redisplay_text_width_charc_string): New function;
3848         delete `redisplay_text_width_emchar_string'.
3849         (rtw_charc_dynarr): New variable; renamed from
3850         `rtw_emchar_dynarr'.
3851         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3852         `rtw_emchar_dynarr'; use
3853         `convert_bufbyte_string_into_charc_dynarr' instead of
3854         `convert_bufbyte_string_into_emchar_dynarr'; use
3855         `redisplay_text_width_charc_string' instead of
3856         `redisplay_text_width_emchar_string'.
3857         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3858         instead of `rtw_emchar_dynarr'; use
3859         `convert_bufbyte_string_into_charc_dynarr' instead of
3860         `convert_bufbyte_string_into_emchar_dynarr'.
3861         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3862         `redisplay_text_width_charc_string' instead of
3863         `redisplay_text_width_emchar_string'.
3864         (create_text_block): Modify for <struct rune> change.
3865         (generate_formatted_string_db): Likewise.
3866         (create_string_text_block): Likewise.
3867         (pixel_to_glyph_translation): Likewise.
3868
3869         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3870         instead of <const Emchar *>.
3871         (x_text_width): Likewise.
3872         (x_output_display_block): Use <Charc_dynarr *> instead
3873         <Emchar_dynarr *>; modify for <structure rune> change.
3874         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3875         *>.
3876
3877         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3878         <const Emchar *>; use `charc_string_displayed_columns' instead of
3879         `emchar_string_displayed_columns'.
3880         (tty_output_display_block): Use <Charc_dynarr *> instead of
3881         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3882         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3883         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3884         `tty_output_emchar_dynarr_dynarr'.
3885         (tty_output_charc_dynarr): New function; delete
3886         `tty_output_charc_dynarr'.
3887
3888         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3889         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3890         <Emchar_dynarr *> for buf; use
3891         `convert_bufbyte_string_into_charc_dynarr' instead of
3892         `convert_bufbyte_string_into_emchar_dynarr'.
3893
3894         * frame.c (title_string_charc_dynarr): New variable; renamed from
3895         `title_string_emchar_dynarr'.
3896         (generate_title_string): Use `title_string_charc_dynarr' instead
3897         of `title_string_emchar_dynarr'; use
3898         `convert_charc_string_into_malloced_string' instead of
3899         `convert_emchar_string_into_malloced_string'.
3900         (init_frame): Use `title_string_charc_dynarr' instead of
3901         `title_string_emchar_dynarr'.
3902
3903         * console.h:
3904         - Include "character.h".
3905         (struct console_methods): Use <const Charc *> instead of <const
3906         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3907         <Emchar_dynarr *> in output_string_method.
3908
3909         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3910         <Emchar_dynarr *>.
3911
3912         * console-stream.c (stream_text_width): Use <const Charc *>
3913         instead of <const Emchar *>.
3914
3915         * character.h (Charc_dynarr): New type.
3916
3917         * char-ucs.h (structure Charc): New structure; define new type
3918         `Charc'.
3919
3920         * char-lb.h (DECODE_CHAR): New inline function.
3921         (encode_char_1): New inline function.
3922         (ENCODE_CHAR): New macro.
3923         (structure Charc): New structure; define new type `Charc'.
3924
3925         * char-1byte.h (Vcharset_control_1): New macro.
3926         (Vcharset_latin_iso8859_1): New macro.
3927         (DECODE_CHAR): New inline function.
3928         (encode_char_1): New inline function.
3929         (ENCODE_CHAR): New macro.
3930         (structure Charc): New structure; define new type `Charc'.
3931
3932         * insdel.c (find_charsets_in_charc_string): New function; delete
3933         `find_charsets_in_emchar_string'.
3934         (charc_string_displayed_columns): New function; delete
3935         `emchar_string_displayed_columns'.
3936         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3937         `convert_bufbyte_string_into_emchar_dynarr'.
3938         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3939         `convert_charc_string_into_bufbyte_dynarr'.
3940         (convert_charc_string_into_malloced_string): New function; delete
3941         `convert_charc_string_into_malloced_string'.
3942
3943         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3944         `find_charsets_in_emchar_string'.
3945         (charc_string_displayed_columns): New prototype; delete
3946         `emchar_string_displayed_columns'.
3947         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3948         `convert_charc_string_into_bufbyte_dynarr'.
3949         (convert_charc_string_into_malloced_string): New prototype; delete
3950         `convert_charc_string_into_malloced_string'.
3951
3952 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3953
3954         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3955
3956 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3957
3958         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3959
3960         * char-ucs.h: Use <short> for <Charset_ID>.
3961
3962         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3963         <Charset_ID>.
3964
3965 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3966
3967         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3968         to 0.16.
3969
3970 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3971
3972         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3973         variable.
3974         (Qmorohashi_daikanwa): New variable.
3975         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3976         for `morohashi-daikanwa' attribute.
3977         (Fget_char_attribute): Likewise.
3978         (Fput_char_attribute): Likewise.
3979         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3980         has the same value of `ideograph-daikanwa'.
3981         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3982         (vars_of_mule_charset): Setup
3983         `Vcharacter_morohashi_daikanwa_table'.
3984
3985 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3986
3987         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3988         attributes.
3989         (add_charset_to_list_mapper): Add `key' instead of
3990         `XCHARSET_NAME (value)' to return aliases.
3991
3992 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3993
3994         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3995         variable.
3996         (Vcharacter_ideographic_strokes_table): New variable.
3997         (Qideographic_radical): New variable.
3998         (Qideographic_strokes): New variable.
3999         (Fchar_attribute_alist): Use
4000         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
4001         attribute; use `Vcharacter_ideographic_strokes_table' for
4002         `ideographic-strokes' attribute.
4003         (Fget_char_attribute): Likewise.
4004         (Fput_char_attribute): Likewise.
4005         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
4006         `ideographic-strokes'.
4007         (vars_of_mule_charset): Setup
4008         `Vcharacter_ideographic_radical_table' and
4009         `Vcharacter_ideographic_strokes_table'.
4010
4011 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4012
4013         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
4014         (Qtotal_strokes): New variable.
4015         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
4016         `total-strokes' attribute.
4017         (Fget_char_attribute): Likewise.
4018         (Fput_char_attribute): Likewise.
4019         (syms_of_mule_charset): Add new symbol `total-strokes'.
4020         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
4021
4022 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4023
4024         * mule-charset.c (Vcharacter_decomposition_table): New variable.
4025         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
4026         are found.
4027         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
4028         `->decomposition' attribute.
4029         (Fput_char_attribute): Likewise.
4030         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
4031
4032 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4033
4034         * mule-charset.c (decoding_table_check_elements): New function.
4035         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
4036
4037 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4038
4039         * mule-charset.c (Fset_charset_mapping_table): Use
4040         `put_char_ccs_code_point'.
4041
4042 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4043
4044         * mule-charset.c (decoding_table_put_char): New inline function.
4045         (put_char_ccs_code_point): Use `decoding_table_put_char'.
4046
4047 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4048
4049         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
4050         (XCHARSET_BYTE_SIZE): New macro.
4051         (decoding_table_remove_char): New inline function.
4052         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
4053         `decoding_table_remove_char'.
4054         (remove_char_ccs): Use `decoding_table_remove_char'.
4055         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
4056
4057 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4058
4059         * mule-charset.c (Vcharacter_name_table): New variable.
4060         (Qname): New variable.
4061         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
4062         attribute.
4063         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
4064         `Vcharacter_name_table' for `name' attribute.
4065         (Fremove_char_attribute): Use function `remove_char_ccs'.
4066         (put_char_ccs_code_point): New function.
4067         (remove_char_ccs): New function.
4068         (syms_of_mule_charset): Add new symbol `name'.
4069         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
4070
4071 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4072
4073         * mule-charset.c (make_byte_table): Add new argument `older'.
4074         (make_char_id_table): Likewise.
4075         (copy_char_id_table): Comment out because it is not used.
4076         (put_char_id_table): Modify for `make_byte_table'.
4077         (Fput_char_attribute): Make encoding_table as older object;
4078         inherit older bit of `Vcharacter_composition_table'.
4079         (mark_charset): Don't mark `cs->encoding_table'.
4080         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
4081         normal object; make `Vcharacter_composition_table' as an older
4082         object; delete staticpro for `Vcharacter_composition_table'; make
4083         `Vcharacter_variant_table' as a normal object.
4084
4085         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
4086         (mark_object): Don't check older object in UTF-2000.
4087
4088         * lrecord.h (struct lrecord_header): Add new member `older' in
4089         UTF-2000.
4090         (set_lheader_implementation): Setup `SLI_header->older' in
4091         UTF-2000.
4092         (set_lheader_older_implementation): New macro in UTF-2000.
4093         (OLDER_RECORD_P): New macro in UTF-2000.
4094         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
4095         (alloc_older_lcrecord): New prototype in UTF-2000.
4096         (alloc_older_lcrecord_type): New macro in UTF-2000.
4097
4098 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4099
4100         * mule-charset.c (byte_table_description): Use
4101         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
4102         (char_id_table_description): Delete bogus `, 1'.
4103         (Fget_char_attribute): Refer encoding_table of each coded-charset
4104         to get value of coded-charset attribute of a character.
4105         (Fput_char_attribute): Use `make_older_vector' instead of
4106         `make_vector'; use encoding_table of each coded-charset to store
4107         value of coded-charset attribute of a character.
4108         (Fremove_char_attribute): Use encoding_table of each coded-charset
4109         to store value of coded-charset attribute of a character.
4110         (mark_charset): Mark `cs->encoding_table'; don't mark
4111         `cs->decoding_table'.
4112         (charset_description): Add description of new member
4113         `encoding_table'.
4114         (make_charset): Initialize `encoding_table'.
4115
4116         * char-ucs.h (struct Lisp_Charset): Add new member
4117         `encoding_table'.
4118         (CHARSET_ENCODING_TABLE): New macro.
4119         (XCHARSET_ENCODING_TABLE): New macro.
4120         (charset_code_point): New implementation.
4121         (encode_char_1): Likewise.
4122
4123         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
4124         (disksave_object_finalization_1): Call finalizers of
4125         `all_older_lcrecords' in UTF-2000.
4126         (make_older_vector): New function in UTF-2000.
4127         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
4128         UTF-2000.
4129
4130         * lisp.h (make_older_vector): New prototype in UTF-2000.
4131
4132 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4133
4134         * lrecord.h (enum lrecord_type): Rename
4135         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
4136
4137         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
4138         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
4139         `get_char_code_table'.
4140
4141         * mule-charset.c (mark_char_id_table): Renamed from
4142         `mark_char_code_table'.
4143         (char_id_table_equal): Renamed from `char_code_table_equal'.
4144         (char_id_table_hash): Renamed from `char_code_table_hash'.
4145         (make_char_id_table): Renamed from `make_char_code_table'.
4146         (copy_char_id_table): Renamed from `copy_char_code_table'.
4147         (get_char_id_table): Renamed from `get_char_code_table'.
4148         (put_char_id_table): Renamed from `put_char_code_table'.
4149         (to_char_id): Renamed from `to_char_code'.
4150
4151         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
4152         `Lisp_Char_Code_Table'.
4153         (char_id_table): Renamed from `char_code_table'.
4154         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
4155         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
4156         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
4157         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
4158         (get_char_id_table): Renamed from `get_char_code_table'.
4159
4160 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4161
4162         * lrecord.h (enum lrecord_type): Rename
4163         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
4164
4165         * mule-charset.c (mark_byte_table): Renamed from
4166         `mark_char_byte_table'.
4167         (byte_table_equal): Renamed from `char_byte_table_equal'.
4168         (byte_table_hash): Renamed from `byte_table_hash'.
4169         (make_byte_table): Renamed from `make_byte_table'.
4170         (copy_byte_table): Renamed from `copy_char_byte_table'.
4171
4172         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4173         `Lisp_Char_Byte_Table'.
4174         (byte_table): Renamed from `char_byte_table'.
4175         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4176         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4177         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4178         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4179
4180 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4181
4182         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4183         (dfc_convert_to_internal_format): Likewise.
4184         
4185         * text-coding.c (Fcoding_system_canonical_name_p): New function.
4186         * text-coding.c (Fcoding_system_alias_p): New function.
4187         * text-coding.c (Fcoding_system_aliasee): New function.
4188         * text-coding.c (append_suffix_to_symbol): New function.
4189         * text-coding.c (dangling_coding_system_alias_p): New function.
4190         * text-coding.c (Ffind_coding_system):
4191         * text-coding.c (Fcopy_coding_system):
4192         * text-coding.c (encode_coding_no_conversion):
4193         * text-coding.c (syms_of_file_coding):
4194         * text-coding.c (vars_of_file_coding):
4195         Rewrite coding system alias code.
4196         Allow nested aliases, like symbolic links.
4197         Allow redefinition of coding system aliases.
4198         Prevent existence of dangling coding system aliases.
4199         Eliminate convert_to_external_format.
4200         Eliminate convert_to_internal_format.
4201         
4202         * text-coding.c: Change enum eol_type to eol_type_t.
4203
4204 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4205
4206         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4207         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4208
4209         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4210         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4211
4212 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4213
4214         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4215         `ideograph-daikanwa'.
4216
4217         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4218         (Vcharset_ucs_bmp): Likewise.
4219         (Vcharset_mojikyo): Add new extern variable definition.
4220         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4221         (Vcharset_latin_iso8859_3): Likewise.
4222         (Vcharset_latin_iso8859_4): Likewise.
4223         (Vcharset_latin_iso8859_9): Likewise.
4224         (Vcharset_latin_viscii_lower): Likewise.
4225         (Vcharset_latin_viscii_upper): Likewise.
4226         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4227         `mojikyo' code-point is used to decode.
4228         (encode_char_2): New function [to convert `mojikyo' code-point to
4229         Mojikyo font encoding].
4230         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4231         (breakup_char_1): Likewise.
4232         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4233
4234 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4235
4236         * text-coding.c (Fmake_coding_system): Add document about
4237         `disable-composition' property.
4238
4239 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4240
4241         * text-coding.c (Qdisable_composition): New variable; delete
4242         `Qcomposite'.
4243         (Fmake_coding_system): Add new property `disable-composite';
4244         delete property `composite'.
4245         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4246         instead of `!CODING_SYSTEM_COMPOSITE'.
4247         (syms_of_file_coding): Add new symbol `disable-composition';
4248         delete symbol `composite'.
4249
4250         * file-coding.h (struct Lisp_Coding_System): Add
4251         `disable_composition'; delete `enable_composition'.
4252         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4253         `CODING_SYSTEM_COMPOSITE'.
4254         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4255         `XCODING_SYSTEM_COMPOSITE'.
4256
4257 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4258
4259         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4260         to 0.15.
4261
4262 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4263
4264         * text-coding.c (Qcomposite): New variable.
4265         (Fmake_coding_system): Add new property `composite'.
4266         (struct decoding_stream): Add `combined_char_count',
4267         `combined_chars' and `combining_table' in UTF-2000.
4268         (COMPOSE_FLUSH_CHARS): New macro.
4269         (COMPOSE_ADD_CHAR): New macro.
4270         (reset_decoding_stream): Reset `str->combined_char_count' and
4271         `str->combining_table' in UTF-2000.
4272         (decode_coding_iso2022): Modify for character-decomposition.
4273         (syms_of_file_coding): Add new symbol `composite'.
4274
4275 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4276
4277         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4278         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4279         of `Vcharacter_composition_table' if `->decomposition' property
4280         has only 1 element.
4281         (Qlatin_tcvn5712): New variable.
4282         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4283         (complex_vars_of_mule_charset): Add new coded-charset
4284         `latin-tcvn5712'.
4285
4286         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4287
4288 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4289
4290         * file-coding.h (struct Lisp_Coding_System): Add
4291         `enable_composition'.
4292         (CODING_SYSTEM_COMPOSITE): New macro.
4293         (XCODING_SYSTEM_COMPOSITE): New macro.
4294
4295 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4296
4297         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4298
4299 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4300
4301         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4302         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4303
4304 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4305
4306         * mule-charset.c (Vcharset_mojikyo): New variable.
4307         (Fdefine_char): Don't use coded-charset which does not have
4308         non-builtin character range to allocate character-id.
4309         (Qmojikyo): New variable.
4310         (syms_of_mule_charset): Add new symbol `mojikyo'.
4311         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4312
4313         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4314         (LEADING_BYTE_MOJIKYO): New macro.
4315         (MIN_CHAR_MOJIKYO): New macro.
4316         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4317         (MAX_CHAR_MOJIKYO): New macro.
4318
4319 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4320
4321         * mule-charset.c (remove_char_attribute): Fixed.
4322
4323 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4324
4325         * mule-charset.c (remove_char_attribute): New function.
4326         (Fremove_char_attribute): New function.
4327         (encode_builtin_char_1): Comment out builtin-support for
4328         greek-iso8859-7 and cyrillic-iso8859-5.
4329         (Fdecode_char): Check `code' is an integer.
4330         (syms_of_mule_charset): Add `remove-char-attribute'.
4331         (MIN_CHAR_GREEK): Deleted.
4332         (MAX_CHAR_GREEK): Likewise.
4333         (MIN_CHAR_CYRILLIC): Likewise.
4334         (MAX_CHAR_CYRILLIC): Likewise.
4335         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4336         MAX_CHAR_GREEK for `greek-iso8859-7'.
4337
4338         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4339         (MAX_CHAR_GREEK): Likewise.
4340         (MIN_CHAR_CYRILLIC): Likewise.
4341         (MAX_CHAR_CYRILLIC): Likewise.
4342
4343 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4344
4345         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4346         format is used without `ucs' property.
4347         (Fdecode_char): Fix problem with GR representation.
4348         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4349         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4350
4351 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4352
4353         * mule-charset.c (make_builtin_char): New function.
4354         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4355         (Fset_charset_mapping_table): Modify for new representation of
4356         code-point.
4357         (Fdecode_char): New function.
4358         (syms_of_mule_charset): Add new builtin function `decode-char' in
4359         UTF-2000.
4360
4361         * char-ucs.h (make_builtin_char): New prototype.
4362         (DECODE_CHAR): New inline function.
4363         (MAKE_CHAR): Use `DECODE_CHAR'.
4364
4365 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4366
4367         * text-coding.c (parse_charset_conversion_specs): Use
4368         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4369         `XCHARSET_TYPE'.
4370         (iso2022_designate): Likewise.
4371
4372         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4373         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4374
4375         * mule-charset.c (Vcharset_ucs): New variable.
4376         (print_charset): Change design; use `CHARSET_CHARS' and
4377         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4378         (make_charset): Change signature to specify `chars' and
4379         `dimension' instead of `type'.
4380         (range_charset_code_point): Modify for 256^n-set.
4381         (encode_builtin_char_1): Encode as `ucs' in default.
4382         (Fmake_charset): Modify for `make_charset'.
4383         (Fmake_reverse_direction_charset): Likewise.
4384         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4385         UTF-2000.
4386         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4387         for `make_charset'.
4388
4389         * char-ucs.h (Vcharset_ucs): New variable.
4390         (LEADING_BYTE_UCS): New macro.
4391         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4392         and `chars' to `unsigned short' from `unsigned int'.
4393         (CHARSET_TYPE): Deleted.
4394         (XCHARSET_TYPE): Deleted.
4395
4396 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4397
4398         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4399
4400         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4401         (ENCODE_CHAR): New macro.
4402
4403 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4404
4405         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4406         to 0.14 (Kawachi-Katakami).
4407
4408 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4409
4410         * text-coding.c (char_encode_shift_jis): Modify for
4411         `charset_code_point'.
4412         (char_encode_iso2022): Likewise.
4413
4414         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4415         (integer) instead of list of <Lisp_Object>s (integers) as the
4416         format of code-point of a coded-charset.
4417         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4418         (encode_builtin_char_1): New function; delete
4419         `split_builtin_char'.
4420         (charset_code_point): Return <int> instead of <Lisp_Object>.
4421         (Fsplit_char): Don't use `SPLIT_CHAR'.
4422
4423         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4424         prototype for `split_builtin_char'.
4425         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4426         (charset_code_point): Likewise.
4427         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4428         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4429
4430 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4431
4432         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4433         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4434
4435 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4436
4437         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4438
4439         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4440         (MAX_CHAR_OBS_94x94): Deleted.
4441
4442 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4443
4444         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4445
4446         * char-ucs.h (MAX_CHAR_BMP): New macro.
4447
4448 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4449
4450         * text-coding.c: Sync with r21-2-24.
4451
4452 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4453
4454         * file-coding.c: Modify for UTF-2000.
4455
4456 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4457
4458         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4459         to 0.13 (Takaida).
4460
4461 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4462
4463         * mule-charset.c (split_builtin_char): Delete builtin support for
4464         `katakana-jisx0201'.
4465         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4466         BMP area in builtin representation.
4467
4468         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4469         `Vcharset_katakana_jisx0201'.
4470
4471 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4472
4473         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4474         (Qisolated): New variable.
4475         (Qinitial): New variable.
4476         (Qmedial): New variable.
4477         (Qfinal): New variable.
4478         (Qvertical): New variable.
4479         (Qsmall): New variable.
4480         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4481         `Qvertical' and `Qsmall'.
4482         (Qmojikyo_pj_[1 .. 21]): New variable.
4483         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4484         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4485         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4486         .. 21]'.
4487
4488 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4489
4490         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4491         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4492         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4493
4494 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4495
4496         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4497         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4498         BMP.
4499         (Qjapanese_jisx0208_1990): New variable.
4500         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4501         (complex_vars_of_mule_charset): Add new coded-charset
4502         `japanese-jisx0208-1990'.
4503
4504         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4505         (MIN_CHAR_JIS_X0208_1990): New macro.
4506         (MAX_CHAR_JIS_X0208_1990): New macro.
4507
4508 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4509
4510         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4511         coded-charset is not found.
4512
4513 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4514
4515         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4516         (Fdefine_char): Use `Fmake_char'.
4517
4518 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4519
4520         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4521         (Vcharset_hiragana_jisx0208): Deleted.
4522         (Vcharset_katakana_jisx0208): Deleted.
4523         (Qideograph_daikanwa): New variable.
4524         (Qhiragana_jisx0208): Deleted.
4525         (Qkatakana_jisx0208): Deleted.
4526         (split_builtin_char): Split `ideograph-daikanwa'.
4527         (Fsplit_char): New implementation for UTF-2000.
4528         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4529         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4530         (complex_vars_of_mule_charset): Add new coded-charset
4531         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4532         `katakana-jisx0208'.
4533
4534         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4535         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4536         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4537         (MIN_CHAR_DAIKANWA): New macro.
4538         (MAX_CHAR_DAIKANWA): New macro.
4539
4540 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4541
4542         * data.c (Fstring_to_number): Don't recognize floating point if
4543         base is not 10.
4544
4545 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4546
4547         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4548
4549 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4550
4551         * mule-charset.c (Qsquare): New variable.
4552         (to_char_code): Add `Qsquare'.
4553         (syms_of_mule_charset): Add new symbol `square'.
4554
4555 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4556
4557         * mule-charset.c (Qcircle): New variable.
4558         (to_char_code): Add `Qcircle'.
4559         (syms_of_mule_charset): Add new symbol `circle'.
4560
4561 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4562
4563         * mule-charset.c (Qfont): New variable.
4564         (to_char_code): Add `Qfont'.
4565         (syms_of_mule_charset): Add new symbol `font'.
4566
4567 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4568
4569         * mule-charset.c (Qsub): New variable.
4570         (to_char_code): Add `Qsub'.
4571         (syms_of_mule_charset): Add new symbol `sub'.
4572
4573 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4574
4575         * mule-charset.c (Fput_char_attribute): Convert each element of
4576         VALUE to GL position if ATTRIBUTE is a GR-set,
4577
4578 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4579
4580         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4581         coded-charset is a GR-set.
4582
4583 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4584
4585         * mule-charset.c (Fput_char_attribute): Check each element of
4586         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4587
4588 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4589
4590         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4591         UTF-2000.
4592         (Qethiopic_ucs): New variable in UTF-2000.
4593         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4594         (complex_vars_of_mule_charset): Add new coded-charset
4595         `ethiopic-ucs' in UTF-2000.
4596
4597         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4598         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4599         9)'.
4600         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4601         10)'.
4602         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4603
4604 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4605
4606         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4607         `ascii'.
4608
4609 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4610
4611         * mule-charset.c (Vcharacter_variant_table): New variable.
4612         (Q_ucs): New variable.
4613         (Fchar_variants): New function.
4614         (Fput_char_attribute): Register `->ucs' value to
4615         `Vcharacter_variant_table'.
4616         (syms_of_mule_charset): Add new function `char-variants' and new
4617         symbol `->ucs'.
4618         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4619
4620 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4621
4622         * mule-charset.c (get_char_code_table): Allow negative character
4623         code.
4624         (put_char_code_table): Likewise.
4625         (Vcharacter_composition_table): New variable.
4626         (Q_decomposition): New variable.
4627         (Qwide): New variable.
4628         (Qnarrow): New variable.
4629         (Qcompat): New variable.
4630         (QnoBreak): New variable.
4631         (Qsuper): New variable.
4632         (Qfraction): New variable.
4633         (to_char_code): New function.
4634         (Fget_composite_char): New function.
4635         (Fput_char_attribute): Register `->decomposition' value to
4636         `Vcharacter_composition_table'.
4637         (syms_of_mule_charset): Add new function `get-composite-char', new
4638         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4639         `super' and `fraction'.
4640         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4641
4642 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4643
4644         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4645         character; copy the return value.
4646
4647 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4648
4649         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4650
4651         * mule-charset.c (range_charset_code_point): Must use make_int.
4652         (split_builtin_char): New function.
4653
4654 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4655
4656         * mule-charset.c (char_byte_table): Change name from
4657         "char-code-table" to "char-byte-table".
4658         (mark_char_code_table): New function.
4659         (char_code_table_equal): New function.
4660         (char_code_table_hash): New function.
4661         (char_code_table_description): New constant.
4662         (char_code_table): New type.
4663         (make_char_code_table): New function.
4664         (copy_char_code_table): New function.
4665         (get_char_code_table): Modify for `char_code_table' type.
4666         (put_char_code_table): Likewise.
4667         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4668         (Kashiwara).
4669
4670         * char-ucs.h (char_code_table): New type.
4671         (XCHAR_CODE_TABLE): New macro.
4672         (XSETCHAR_CODE_TABLE): New macro.
4673         (CHAR_CODE_TABLE_P): New macro.
4674         (GC_CHAR_CODE_TABLE_P): New macro.
4675         (struct Lisp_Char_Code_Table): New structure.
4676
4677 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4678
4679         * mule-charset.c (Fmake_charset): Setup byte_offset for
4680         {94|96}^n-set.
4681
4682 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4683
4684         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4685         character.
4686
4687 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4688
4689         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4690         is found.
4691
4692 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4693
4694         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4695         charset, it is regarded as a charset.
4696         (put_char_attribute): New function in UTF-2000.
4697         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4698         charset, mapping-table of the charset is modified.
4699         (Fdefine_char): New function in UTF-2000.
4700         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4701         `Fput_char_attribute'.
4702         (syms_of_mule_charset): Add new function `define-char' and new
4703         symbol `ucs' in UTF-2000.
4704         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4705
4706 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4707
4708         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4709         non-UTF-2000 configuration.
4710
4711 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4712
4713         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4714         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4715
4716         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4717         deleted.
4718         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4719         (Fset_charset_mapping_table): Likewise.
4720
4721         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4722         (CHARSET_ENCODING_TABLE): Delete.
4723         (XCHARSET_ENCODING_TABLE): Delete.
4724         (charset_code_point): New interface.
4725
4726 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4727
4728         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4729         instead of `charset_get_byte1' and `charset_get_byte2'.
4730
4731         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4732         (charset_get_byte2): Deleted.
4733
4734 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4735
4736         * char-ucs.h (SPLIT_CHAR): New inline function.
4737         (breakup_char_1): Use `SPLIT_CHAR'.
4738
4739         * mule-charset.c (range_charset_code_point): New function.
4740         (charset_code_point): New function.
4741
4742         * char-ucs.h (range_charset_code_point): New interface.
4743         (breakup_char_1): Use `range_charset_code_point'.
4744
4745 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4746
4747         * mule-charset.c (Fmake_charset): Delete unused local variable
4748         `code_offset'.
4749
4750         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4751         (breakup_char_1): Find a charset and code-point in
4752         `Vcharacter_attribute_table'.
4753
4754 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4755
4756         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4757         to 0.10 (Yao).
4758
4759 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4760
4761         * mule-charset.c (Vcharacter_attribute_table): New variable.
4762         (Fchar_attribute_alist): New function.
4763         (Fget_char_attribute): New function.
4764         (Fput_char_attribute): New function.
4765         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4766         too.
4767         (syms_of_mule_charset): Add new function `char-attribute-alist',
4768         `get-char-attribute' and `put-char-attribute'.
4769         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4770
4771 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4772
4773         * mule-charset.c (Fmake_charset): Just use
4774         `get_unallocated_leading_byte'.
4775
4776         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4777         sets; don't use final-byte based number for private sets.
4778
4779 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4780
4781         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4782         integer.
4783
4784 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4785
4786         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4787         to 0.9.
4788
4789 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4790
4791         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4792         of `CHAR_LEADING_BYTE' in UTF-2000.
4793
4794         * insdel.c (find_charsets_in_bufbyte_string): Use
4795         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4796         (find_charsets_in_emchar_string): Likewise.
4797
4798         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4799         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4800
4801         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4802         (CHAR_CHARSET_ID): New macro.
4803
4804 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4805
4806         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4807         charset-id - MIN_LEADING_BYTE.
4808         (put_char_table): Likewise.
4809
4810 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4811
4812         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4813         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4814         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4815         (CHARSET_ID_OFFSET): New macro.
4816         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4817         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4818         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4819         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4820         4).
4821         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4822         5).
4823         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4824         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4825         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4826         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4827         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4828
4829 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4830
4831         * mule-charset.c (next_allocated_leading_byte): New variable in
4832         UTF-2000.
4833         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4834         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4835         (get_unallocated_leading_byte): Simply use
4836         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4837         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4838         UTF-2000.
4839
4840         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4841         (MAX_LEADING_BYTE_PRIVATE): New macro.
4842         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4843         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4844
4845 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4846
4847         * mule-charset.c (Fmake_charset): Allocate final-byte based
4848         charset-id for 94-set, 96-set and 94x94-set.
4849
4850 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4851
4852         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4853         ambiguous `else'.
4854         (Fmake_charset): Likewise.
4855         (complex_vars_of_mule_charset): Modify the font registry of
4856         `ucs-bmp' not to match `Ethiopic-Unicode'.
4857
4858 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4859
4860         * mule-charset.c (complex_vars_of_mule_charset): Add font
4861         registory of `ucs-bmp'.
4862
4863 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4864
4865         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4866         coded-charsets in `default-coded-charset-priority-list' when
4867         breaking up a character.
4868
4869         * mule-charset.c (Vcharset_latin_viscii): New variable.
4870         (Qlatin_viscii): New variable.
4871         (make_charset): Don't use `decoding_table'.
4872         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4873         byte_offset.
4874         (Fset_charset_mapping_table): New implementation.
4875         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4876         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4877         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4878         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4879         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4880         charset `latin_viscii'.
4881
4882         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4883         (CHARSET_TYPE_94X94): Change to 1 from 2.
4884         (CHARSET_TYPE_96): Change to 2 from 1.
4885         (CHARSET_TYPE_128): New macro.
4886         (CHARSET_TYPE_128X128): Change to 5 from 4.
4887         (CHARSET_TYPE_256): New macro.
4888         (CHARSET_TYPE_256X256): Change to 7 from 5.
4889         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4890
4891 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4892
4893         * text-coding.c (char_encode_shift_jis): Refer
4894         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4895         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4896
4897         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4898         (char_byte_table_equal): New function in UTF-2000.
4899         (char_byte_table_hash): New function in UTF-2000.
4900         (char_byte_table_description): New constant in UTF-2000.
4901         (char_byte_table): New type in UTF-2000.
4902         (make_char_byte_table): New function in UTF-2000.
4903         (copy_char_byte_table): New function in UTF-2000.
4904         (make_char_code_table): New macro in UTF-2000.
4905         (get_char_code_table): New function in UTF-2000.
4906         (put_char_code_table): New function in UTF-2000.
4907         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4908         (charset_description): Add setting in UTF-2000.
4909         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4910         `CHARSET_TO_BYTE1_TABLE(cs)'.
4911         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4912         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4913         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4914         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4915         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4916         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4917         `CHARSET_TO_BYTE2_TABLE(cs)'.
4918
4919         * char-ucs.h (char_byte_table): New type.
4920         (XCHAR_BYTE_TABLE): New macro.
4921         (XSETCHAR_BYTE_TABLE): New macro.
4922         (CHAR_BYTE_TABLE_P): New macro.
4923         (GC_CHAR_BYTE_TABLE_P): New macro.
4924         (struct Lisp_Char_Byte_Table): New structure.
4925         (get_char_code_table): New interface.
4926         (Emchar_to_byte_table): Deleted.
4927         (get_byte_from_character_table): Deleted.
4928         (struct Lisp_Charset): Add `encoding_table'; delete
4929         `to_byte1_table' and `to_byte2_table'.
4930         (CHARSET_ENCODING_TABLE): New macro.
4931         (CHARSET_TO_BYTE1_TABLE): Deleted.
4932         (CHARSET_TO_BYTE2_TABLE): Deleted.
4933         (XCHARSET_ENCODING_TABLE): New macro.
4934         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4935         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4936
4937 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4938
4939         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4940         `vietnamese-viscii-*'.
4941
4942 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4943
4944         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4945         (Qvietnamese_viscii_upper): New variable.
4946         (Fdefine_charset_alias): New function.
4947         (syms_of_mule_charset): Add new function `define-charset-alias'.
4948         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4949         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4950         `latin-viscii-*'.
4951
4952 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4953
4954         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4955         (MAX_CHAR_OBS_94x94): New macro.
4956         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4957         for 94x94 sets.
4958
4959         * mule-charset.c (put_byte_from_character_table): Change unit size
4960         from 128 to 256.
4961         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4962         not defined.
4963         (Fmake_reverse_direction_charset): Modify dummy argument of
4964         `make_charset' for non-UTF-2000 environment.
4965
4966 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4967
4968         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4969
4970         * mule-charset.c (destroy_byte_from_character_table): New macro.
4971         (latin_jisx0201_to_ucs): Deleted.
4972         (latin_iso8859_2_to_ucs): Deleted.
4973         (latin_iso8859_3_to_ucs): Deleted.
4974         (latin_iso8859_4_to_ucs): Deleted.
4975         (latin_iso8859_9_to_ucs): Deleted.
4976         (latin_viscii_lower_to_ucs): Deleted.
4977         (latin_viscii_upper_to_ucs): Deleted.
4978         (mark_charset): Mark `cs->decoding_table'.
4979         (Fcharset_mapping_table): Fix DOC-string.
4980         (Fset_charset_mapping_table): New function.
4981         (syms_of_mule_charset): Add nwe function
4982         `set-charset-mapping-table'.
4983         (complex_vars_of_mule_charset): Don't setup and use
4984         `latin_*_to_ucs'.
4985
4986 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4987
4988         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4989         charset.
4990
4991 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4992
4993         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4994         (Vcharset_katakana_jisx0208): New variable.
4995         (Qhiragana_jisx0208): New variable.
4996         (Qkatakana_jisx0208): New variable.
4997         (make_charset): Add new argument `byte_offset'.
4998         (charset_get_byte1): Modify for new coded-charset definition; use
4999         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5000         `XCHARSET_BYTE_OFFSET'.
5001         (Fmake_charset): Modify for `make_charset'.
5002         (Fmake_reverse_direction_charset): Likewise.
5003         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
5004         `katakana-jisx0208'.
5005         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
5006         `.'  in font registry of charset `katakana-jisx0201',
5007         `latin-jisx0201', `vietnamese-viscii-lower' and
5008         `vietnamese-viscii-upper'; modify DOC-string of charset
5009         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
5010         registry of charset `japanese-jisx0208' not to use font for JIS
5011         X0208:1990; add new charset `hiragana-jisx0208' and
5012         `katakana-jisx0208'.
5013
5014         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
5015         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
5016         (struct Lisp_Charset): Add `byte_offset'.
5017         (CHARSET_BYTE_OFFSET): New macro.
5018         (XCHARSET_UCS_MIN): New macro.
5019         (XCHARSET_UCS_MAX): New macro.
5020         (XCHARSET_CODE_OFFSET): New macro.
5021         (XCHARSET_BYTE_OFFSET): New macro.
5022         (MIN_CHAR_HIRAGANA): New macro.
5023         (MAX_CHAR_HIRAGANA): New macro.
5024         (MIN_CHAR_KATAKANA): New macro.
5025         (MAX_CHAR_KATAKANA): New macro.
5026         (MAKE_CHAR): Modify for new coded-charset definition; use
5027         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5028         `XCHARSET_BYTE_OFFSET'.
5029
5030 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5031
5032         * mule-charset.c (CHAR96): Deleted.
5033         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
5034         <Lisp_Object>.
5035         (latin_iso8859_2_to_ucs): Likewise.
5036         (latin_iso8859_3_to_ucs): Likewise.
5037         (latin_iso8859_4_to_ucs): Likewise.
5038         (latin_iso8859_9_to_ucs): Likewise.
5039         (latin_viscii_lower_to_ucs): Likewise.
5040         (latin_viscii_upper_to_ucs): Likewise.
5041         (latin_tcvn5712_to_ucs): Commented out.
5042         (make_charset): Change type of argument `decoding_table' from
5043         <Emchar*> to <Lisp_Object> [vector of characters].
5044         (Fmake_charset): Modify for `make_charset'.
5045         (Fmake_reverse_direction_charset): Likewise.
5046         (Fcharset_mapping_table): New function in UTF-2000.
5047         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
5048         UTF-2000.
5049         (complex_vars_of_mule_charset): Modify for type change of
5050         `*_to_ucs'; modify for `make_charset'.
5051
5052         * char-ucs.h (struct Lisp_Charset): Change type of
5053         `decoding_table' from <Emchar*> to <Lisp_Object>.
5054         (MAKE_CHAR): Modify for new specification of `decoding_table'.
5055
5056 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
5057
5058         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
5059         error with non-UTF-2000-Mule.
5060
5061 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
5062
5063         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
5064         in lisp again].
5065         (Vcharset_chinese_cns11643_4): Likewise.
5066         (Vcharset_chinese_cns11643_5): Likewise.
5067         (Vcharset_chinese_cns11643_6): Likewise.
5068         (Vcharset_chinese_cns11643_7): Likewise.
5069         (Qchinese_cns11643_3): Likewise.
5070         (Qchinese_cns11643_4): Likewise.
5071         (Qchinese_cns11643_5): Likewise.
5072         (Qchinese_cns11643_6): Likewise.
5073         (Qchinese_cns11643_7): Likewise.
5074         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
5075         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5076         and `chinese-cns11643-7' to lisp/mule/chinese.el.
5077         (complex_vars_of_mule_charset): Likewise.
5078
5079 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
5080
5081         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
5082         96-set.
5083         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
5084         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
5085
5086 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5087
5088         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
5089         0xFF60.
5090         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
5091         (breakup_char_1): Likewise.
5092
5093         * text-coding.c (char_encode_iso2022): Keep designated charsets if
5094         one of them includes the specified character.
5095
5096 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5097
5098         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
5099
5100 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5101
5102         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
5103
5104 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5105
5106         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
5107         definition for non-UTF-2000 Mule.
5108         (latin_iso8859_3_to_ucs): Likewise.
5109         (latin_iso8859_4_to_ucs): Likewise.
5110         (latin_iso8859_9_to_ucs): Likewise.
5111         (latin_jisx0201_to_ucs): Likewise.
5112         (MIN_CHAR_THAI): Likewise.
5113         (MAX_CHAR_THAI): Likewise.
5114         (MIN_CHAR_GREEK): Likewise.
5115         (MAX_CHAR_GREEK): Likewise.
5116         (MIN_CHAR_HEBREW): Likewise.
5117         (MAX_CHAR_HEBREW): Likewise.
5118         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
5119         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
5120         (MIN_CHAR_CYRILLIC): Likewise.
5121         (MAX_CHAR_CYRILLIC): Likewise.
5122
5123 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5124
5125         * char-ucs.h (breakup_char_1): Use
5126         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
5127         thai-tis620 and katakana-jisx0201 area.
5128
5129 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5130
5131         * char-ucs.h (breakup_char_1): Use
5132         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
5133         area.
5134
5135         * text-coding.c (reset_encoding_stream): Fixed.
5136         (char_encode_ucs4): Delete `& 255'.
5137
5138         * char-ucs.h (breakup_char_1): Use
5139         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
5140
5141 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5142
5143         * file-coding.c (Fmake_coding_system): Don't set up
5144         `codesys->fixed.size'.
5145         (encode_coding_no_conversion): Don't refer
5146         `str->codesys->fixed.size'.
5147
5148 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5149
5150         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
5151         (latin_a_char_to_byte1): Deleted.
5152         (latin_a_char_to_byte2): Deleted.
5153
5154 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5155
5156         * mule-charset.c (make_charset): Add new argument `ucs_min',
5157         `ucs_max' and `code_offset'.
5158         (charset_get_byte1): New implementation [delete specific charset
5159         depended implementations].
5160         (Fmake_charset): Modify for `make_charset'.
5161         (Fmake_reverse_direction_charset): Likewise.
5162         (complex_vars_of_mule_charset): Likewise.
5163
5164         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
5165         `code_offset'.
5166         (CHARSET_UCS_MIN): New macro.
5167         (CHARSET_UCS_MAX): New macro.
5168         (CHARSET_CODE_OFFSET): New macro.
5169         (MAKE_CHAR): Delete charset depended definitions [except
5170         katakana-jisx0201].
5171
5172 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
5173
5174         * char-ucs.h (breakup_char_1): Use
5175         `Vdefault_coded_charset_priority_list' for C0-Controls,
5176         Basic-Latin, C1-Controls and Latin-1-Supplement area.
5177
5178 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5179
5180         * char-ucs.h (charset_get_byte1): New function.
5181         (XCHARSET_GET_BYTE1): Deleted.
5182         (charset_get_byte2): New function.
5183         (XCHARSET_GET_BYTE2): Deleted.
5184         (Vdefault_coded_charset_priority_list): New external variable.
5185         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5186         `Vdefault_preferred_coded_charset_list'.
5187
5188         * mule-charset.c (charset_get_byte1): New function.
5189         (charset_get_byte2): New function.
5190         (Vdefault_coded_charset_priority_list): New variable.
5191         (vars_of_mule_charset): Add new variable
5192         `default-coded-charset-priority-list'.
5193
5194 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5195
5196         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5197         (XCHARSET_GET_BYTE2): New inline function.
5198         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5199         `XCHARSET_GET_BYTE2'.
5200
5201 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5202
5203         * mule-charset.c (make_charset): Initialize
5204         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5205         NULL if table is not defined.
5206
5207 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5208
5209         * text-coding.c (char_encode_shift_jis): Use
5210         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5211         `ucs_to_latin_jisx0201'.
5212
5213         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5214         (ucs_to_latin_iso8859_2): Deleted.
5215         (ucs_to_latin_iso8859_3): Deleted.
5216         (ucs_to_latin_iso8859_4): Deleted.
5217         (ucs_to_latin_iso8859_9): Deleted.
5218         (ucs_to_latin_viscii_lower): Deleted.
5219         (ucs_to_latin_viscii_upper): Deleted.
5220         (ucs_to_latin_tcvn5712): Deleted.
5221         (make_charset): Add new argument `decoding_table'; set up
5222         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5223         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5224         `decoding_table' is defined in UTF-2000.
5225         (Fmake_charset): Modify for `make_charset'.
5226         (Fmake_reverse_direction_charset): Likewise.
5227         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5228         and `GENERATE_96_SET'.
5229
5230         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5231         (ucs_to_latin_jisx0201): Deleted.
5232         (latin_iso8859_2_to_ucs): Deleted.
5233         (ucs_to_latin_iso8859_2): Deleted.
5234         (latin_iso8859_3_to_ucs): Deleted.
5235         (ucs_to_latin_iso8859_3): Deleted.
5236         (latin_iso8859_4_to_ucs): Deleted.
5237         (ucs_to_latin_iso8859_4): Deleted.
5238         (latin_iso8859_9_to_ucs): Deleted.
5239         (ucs_to_latin_iso8859_9): Deleted.
5240         (latin_viscii_lower_to_ucs): Deleted.
5241         (ucs_to_latin_viscii_lower): Deleted.
5242         (latin_viscii_upper_to_ucs): Deleted.
5243         (ucs_to_latin_viscii_upper): Deleted.
5244         (struct Lisp_Charset): Renamed `encoding_table' to
5245         `to_byte1_table'; add `to_byte2_table'.
5246         (CHARSET_DECODING_TABLE): New macro.
5247         (CHARSET_TO_BYTE1_TABLE): New macro.
5248         (CHARSET_TO_BYTE2_TABLE): New macro.
5249         (XCHARSET_DECODING_TABLE): New macro.
5250         (XCHARSET_TO_BYTE1_TABLE): New macro.
5251         (XCHARSET_TO_BYTE2_TABLE): New macro.
5252         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5253         tables.
5254         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5255         don't use `ucs_to_*' tables.
5256
5257 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5258
5259         * text-coding.c (Fmake_coding_system): Don't set up
5260         `codesys->fixed.size'.
5261         (encode_coding_no_conversion): Use `if' instead of `switch'.
5262
5263         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5264
5265 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5266
5267         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5268         (Fmake_charset): Modify for `make_charset'.
5269         (Fmake_reverse_direction_charset): Likewise.
5270         (complex_vars_of_mule_charset): Likewise.
5271
5272 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5273
5274         * text-coding.c (char_encode_shift_jis): Use table
5275         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5276
5277 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5278
5279         * text-coding.c (text_encode_generic): Use `if' instead of
5280         `switch'.
5281         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5282         decode JIS-Latin.
5283
5284 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5285
5286         * text-coding.c (encode_coding_sjis): Deleted.
5287         (char_encode_shift_jis): New function.
5288         (char_finish_shift_jis): New function.
5289         (reset_encoding_stream): Set up `encode_char' and `finish' for
5290         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5291         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5292         (char_encode_utf8): Treat `eol_type'.
5293
5294 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5295
5296         * file-coding.c (decode_coding_iso2022): Use
5297         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5298
5299 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5300
5301         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5302         to 0.7 (Hirano).
5303
5304 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5305
5306         * char-lb.h (CHAR_COLUMNS): New macro.
5307
5308 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5309
5310         * text-coding.c (char_encode_ucs4): New function.
5311         (char_finish_ucs4): New function.
5312         (encode_coding_ucs4): Deleted.
5313         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5314         (text_encode_generic): Delete local variable `charset' and `half'.
5315         (ucs_to_mule_table): Deleted.
5316         (mule_to_ucs_table): Deleted.
5317         (Fset_ucs_char): Deleted.
5318         (ucs_to_char): Deleted.
5319         (Fucs_char): Deleted.
5320         (Fset_char_ucs): Deleted.
5321         (Fchar_ucs): Deleted.
5322         (decode_ucs4): Deleted.
5323         (mule_char_to_ucs4): Deleted.
5324         (encode_ucs4): Deleted.
5325         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5326         (decode_coding_utf8): Likewise.
5327         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5328         (char_encode_iso2022): Fixed.
5329         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5330         `Fset_char_ucs' and `Fchar_ucs'.
5331         (complex_vars_of_file_coding): Don't initialize
5332         `ucs_to_mule_table'.
5333
5334         * objects-tty.c (tty_initialize_font_instance): Don't use
5335         `XCHARSET_COLUMNS'.
5336
5337         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5338         UTF-2000.
5339
5340         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5341         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5342
5343         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5344         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5345         (emchar_string_displayed_columns): Likewise.
5346
5347         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5348         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5349         (string_column_at_point): Likewise.
5350         (Fmove_to_column): Likewise.
5351
5352         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5353         `encoding_table' and `decoding_table'.
5354         (CHARSET_REP_BYTES): Deleted.
5355         (XCHARSET_REP_BYTES): Deleted.
5356         (XCHARSET_COLUMNS): Deleted.
5357         (CHAR_COLUMNS): New macro.
5358         (lookup_composite_char): Deleted unconditionally.
5359         (composite_char_string): Likewise.
5360
5361 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5362
5363         * char-ucs.h (Emchar_to_byte_table): New type.
5364         (get_byte_from_character_table): New function interface.
5365         (Vcharset_latin_jisx0201): New variable.
5366         (latin_jisx0201_to_ucs): New variable.
5367         (ucs_to_latin_jisx0201): New variable.
5368         (Vcharset_latin_iso8859_2): New variable.
5369         (latin_iso8859_2_to_ucs): New variable.
5370         (ucs_to_latin_iso8859_2): New variable.
5371         (Vcharset_latin_iso8859_3): New variable.
5372         (latin_iso8859_3_to_ucs): New variable.
5373         (ucs_to_latin_iso8859_3): New variable.
5374         (Vcharset_latin_iso8859_4): New variable.
5375         (latin_iso8859_4_to_ucs): New variable.
5376         (ucs_to_latin_iso8859_4): New variable.
5377         (Vcharset_latin_iso8859_9): New variable.
5378         (latin_iso8859_9_to_ucs): New variable.
5379         (ucs_to_latin_iso8859_9): New variable.
5380         (Vcharset_latin_viscii_lower): New variable.
5381         (latin_viscii_lower_to_ucs): New variable.
5382         (ucs_to_latin_viscii_lower): New variable.
5383         (Vcharset_latin_viscii_upper): New variable.
5384         (latin_viscii_upper_to_ucs): New variable.
5385         (ucs_to_latin_viscii_upper): New variable.
5386         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5387         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5388         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5389         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5390         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5391         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5392         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5393         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5394         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5395         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5396
5397         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5398         (Vcharset_latin_viscii_upper): New variable.
5399         (make_byte_from_character_table): New function.
5400         (put_byte_from_character_table): New function.
5401         (get_byte_from_character_table): New function.
5402         (CHAR96): New macro.
5403         (ucs_to_latin_jisx0201): New variable.
5404         (latin_jisx0201_to_ucs): New variable.
5405         (ucs_to_latin_iso8859_2): New variable.
5406         (latin_iso8859_2_to_ucs): New variable.
5407         (ucs_to_latin_iso8859_3): New variable.
5408         (latin_iso8859_3_to_ucs): New variable.
5409         (ucs_to_latin_iso8859_4): New variable.
5410         (latin_iso8859_4_to_ucs): New variable.
5411         (ucs_to_latin_iso8859_9): New variable.
5412         (latin_iso8859_9_to_ucs): New variable.
5413         (ucs_to_latin_viscii_lower): New variable.
5414         (latin_viscii_lower_to_ucs): New variable.
5415         (ucs_to_latin_viscii_upper): New variable.
5416         (latin_viscii_upper_to_ucs): New variable.
5417         (ucs_to_latin_tcvn5712): New variable.
5418         (latin_tcvn5712_to_ucs): New variable.
5419         (Qlatin_viscii_lower): New variable.
5420         (Qlatin_viscii_upper): New variable.
5421         (syms_of_mule_charset): Set up new symbol
5422         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5423         (complex_vars_of_mule_charset): Set up new charset
5424         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5425         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5426         `ucs_to_<CHARSET>' tables.
5427
5428 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5429
5430         * text-coding.c: New file.
5431
5432 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5433
5434         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5435
5436         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5437         (MAKE_CHAR): Modify for `ucs-bmp'.
5438         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5439         non-MULE characters of BMP.
5440
5441 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5442
5443         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5444         to 0.6.
5445
5446 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5447
5448         * lstream.h:
5449         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5450         - Include character.h for `CHAR_ASCII_P'.
5451
5452         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5453
5454         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5455         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5456
5457         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5458         (BYTE_C0_P): Likewise.
5459         (BYTE_C1_P): Likewise.
5460         (Lstream_get_emchar_1): Likewise.
5461         (Lstream_fput_emchar): Likewise.
5462         (Lstream_funget_emchar): Likewise.
5463         (copy_internal_to_external): Likewise.
5464         (copy_external_to_internal): Likewise.
5465
5466         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5467         (BYTE_C0_P): Likewise.
5468         (BYTE_C1_P): Likewise.
5469         (Lstream_get_emchar_1): Likewise.
5470         (Lstream_fput_emchar): Likewise.
5471         (Lstream_funget_emchar): Likewise.
5472         (copy_internal_to_external): Likewise.
5473         (copy_external_to_internal): Likewise.
5474
5475         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5476         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5477
5478         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5479         (BYTE_ASCII_P): Moved to mb-1byte.h.
5480
5481 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5482
5483         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5484
5485         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5486         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5487         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5488         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5489         (VALIDATE_CHARPTR_FORWARD): Likewise.
5490         (simple_charptr_emchar): Moved to mb-multibyte.h.
5491         (simple_set_charptr_emchar): Likewise.
5492         (simple_charptr_copy_char): Likewise.
5493         (non_ascii_charptr_emchar): Likewise.
5494         (non_ascii_set_charptr_emchar): Likewise.
5495         (non_ascii_charptr_copy_char): Likewise.
5496         (charptr_emchar): Moved to mb-*byte.h.
5497         (set_charptr_emchar): Likewise.
5498         (charptr_copy_char): Likewise.
5499
5500         * mb-1byte.h, mb-multibyte.h: New files.
5501
5502 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5503
5504         * mb-utf-8.h (MULTIBYTE): New macro.
5505         (MAX_EMCHAR_LEN): Moved from buffer.h.
5506         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5507
5508         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5509
5510         * mb-lb.h, multibyte.h: New files.
5511
5512         * char-1byte.h (Charset_ID): Moved from buffer.h.
5513         (MIN_LEADING_BYTE): Likewise.
5514         (LEADING_BYTE_ASCII): Likewise.
5515         (NUM_LEADING_BYTES): Likewise.
5516         (CHARSETP): Likewise.
5517         (CHARSET_BY_LEADING_BYTE): Likewise.
5518         (XCHARSET_LEADING_BYTE): Likewise.
5519         (XCHARSET_GRAPHIC): Likewise.
5520         (XCHARSET_COLUMNS): Likewise.
5521         (XCHARSET_DIMENSION): Likewise.
5522         (CHAR_CHARSET): Likewise.
5523         (CHAR_LEADING_BYTE): Likewise.
5524         (BREAKUP_CHAR): Likewise.
5525         (Vcharset_ascii): Likewise.
5526
5527         * buffer.h: Include multibyte.h unconditionally.
5528         (VALID_CHARPTR_P): Moved to multibyte.h.
5529         (ASSERT_VALID_CHARPTR): Likewise.
5530         (REAL_INC_CHARPTR): Likewise.
5531         (REAL_INC_CHARBYTIND): Likewise.
5532         (REAL_DEC_CHARPTR): Likewise.
5533         (INC_CHARPTR): Likewise.
5534         (INC_CHARBYTIND): Likewise.
5535         (DEC_CHARPTR): Likewise.
5536         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5537         (VALIDATE_CHARPTR_FORWARD): Likewise.
5538         (charptr_n_addr): Likewise.
5539         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5540         (simple_charptr_emchar): Moved to multibyte.h.
5541         (simple_set_charptr_emchar): Likewise.
5542         (simple_charptr_copy_char): Likewise.
5543         (non_ascii_charptr_emchar): Likewise.
5544         (non_ascii_set_charptr_emchar): Likewise.
5545         (non_ascii_charptr_copy_char): Likewise.
5546         (charptr_emchar): Likewise.
5547         (set_charptr_emchar): Likewise.
5548         (charptr_copy_char): Likewise.
5549         (charptr_emchar_n): Likewise.
5550         (Charset_ID): Moved to char-1byte.h.
5551         (Vcharset_ascii): Likewise.
5552         (CHAR_CHARSET): Likewise.
5553         (CHAR_LEADING_BYTE): Likewise.
5554         (LEADING_BYTE_ASCII): Likewise.
5555         (NUM_LEADING_BYTES): Likewise.
5556         (MIN_LEADING_BYTE): Likewise.
5557         (CHARSETP): Likewise.
5558         (CHARSET_BY_LEADING_BYTE): Likewise.
5559         (XCHARSET_LEADING_BYTE): Likewise.
5560         (XCHARSET_GRAPHIC): Likewise.
5561         (XCHARSET_COLUMNS): Likewise.
5562         (XCHARSET_DIMENSION): Likewise.
5563         (BREAKUP_CHAR): Likewise.
5564
5565 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5566
5567         * character.h: Add document about interface for characters.
5568
5569         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5570         (MAKE_CHAR): Delete comment about
5571         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5572         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5573         (BREAKUP_CHAR): Modify name of arguments.
5574         (CHAR_CHARSET): Modify name of argument.
5575
5576         * buffer.h: Delete document about Emchar accessors.
5577
5578 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5579
5580         * character.h (CHAR_INTP): Moved from buffer.h
5581         (CHAR_OR_CHAR_INTP): Likewise.
5582         (XCHAR_OR_CHAR_INT): Likewise.
5583         (CHECK_CHAR_COERCE_INT): Likewise.
5584
5585         * buffer.h (CHAR_INTP): Moved to character.h
5586         (CHAR_OR_CHAR_INTP): Likewise.
5587         (XCHAR_OR_CHAR_INT): Likewise.
5588         (CHECK_CHAR_COERCE_INT): Likewise.
5589
5590 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5591
5592         * character.h:
5593         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5594         - Include char-1byte.h, char-lb.h or char-ucs.h.
5595
5596         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5597
5598         * buffer.h: Include character unconditionally.
5599         (valid_char_p): Moved to char-*.h.
5600         (non_ascii_valid_char_p): Moved to char-lb.h.
5601
5602         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5603
5604 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5605
5606         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5607         in UTF-2000 because it is not ported yet and not to use
5608         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5609         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5610         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5611
5612         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5613         (CHAR_ASCII_P): Moved from character.h.
5614
5615         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5616         (CHAR_ASCII_P): Likewise.
5617         (CHAR_FIELD1_MASK): Deleted.
5618         (CHAR_FIELD2_MASK): Deleted.
5619         (CHAR_FIELD3_MASK): Deleted.
5620         (MAX_CHAR_BASIC_LATIN): New macro.
5621         (CHAR_FIELD1): Deleted.
5622         (CHAR_FIELD2_INTERNAL): Deleted.
5623         (CHAR_FIELD3_INTERNAL): Deleted.
5624         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5625         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5626         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5627         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5628         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5629         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5630         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5631         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5632         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5633         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5634         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5635         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5636         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5637         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5638         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5639         (MIN_CHAR_COMPOSITION): Deleted.
5640         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5641         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5642
5643 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5644
5645         * buffer.h: Include mb-utf-8.h in UTF-2000.
5646
5647         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5648
5649         * mb-utf-8.h: New file.
5650
5651 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5652
5653         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5654         instead of `int'.
5655
5656         * mule-charset.h, buffer.h (Charset_ID): New type.
5657
5658 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5659
5660         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5661         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5662         instead of `MULE_CHAR_PRIVATE_OFFSET',
5663         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5664         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5665         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5666
5667         * character.h (Vcharset_japanese_jisx0212): New variable
5668         definition.
5669
5670 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5671
5672         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5673         (charset_by_attributes): Delete array about direction.
5674         (latin_a_char_to_charset): New variable in UTF-2000.
5675         (latin_a_char_to_byte1): New variable in UTF-2000.
5676         (latin_a_char_to_byte2): New variable in UTF-2000.
5677         (Qucs_bmp): New variable.
5678         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5679         `Bufbyte'.
5680         (next_allocated_2_byte_leading_byte): Likewise.
5681         (non_ascii_set_charptr_emchar): Likewise.
5682         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5683         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5684         `charset_by_attributes'.
5685         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5686         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5687         and `CHARSET_BY_LEADING_BYTE'.
5688         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5689         `utf-2000-version' to `vars_of_mule_charset'.
5690         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5691         define `leading-code-private-11' in UTF-2000; move setting of
5692         `utf-2000-version' from `syms_of_mule_charset'.
5693         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5694         UTF-2000.
5695
5696         * character.h (Charset_ID): New type.
5697         (LEADING_BYTE_UCS_BMP): New macro.
5698         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5699         (CHARSET_ID_OFFSET_94): New macro.
5700         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5701         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5702         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5703         final-byte.
5704         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5705         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5706         (CHARSET_ID_OFFSET_96): New macro.
5707         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5708         CHARSET_ID_OFFSET_96 and final-byte.
5709         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5710         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5711         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5712         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5713         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5714         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5715         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5716         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5717         (LEADING_BYTE_THAI_TIS620): Likewise.
5718         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5719         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5720         (CHARSET_ID_OFFSET_94x94): New macro.
5721         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5722         CHARSET_ID_OFFSET_94x94 and final-byte.
5723         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5724         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5725         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5726         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5727         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5728         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5729         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5730         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5731         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5732         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5733         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5734         (CHARSET_TYPE_128X128): New macro.
5735         (CHARSET_TYPE_256X256): New macro.
5736         (XCHARSET_PRIVATE_P): Delete unconditionally.
5737         (charset_by_attributes): Delete array about direction.
5738         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5739         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5740         (MIN_CHAR_94): New macro.
5741         (MAX_CHAR_94): New macro.
5742         (MIN_CHAR_96): New macro.
5743         (MAX_CHAR_96): New macro.
5744         (MIN_CHAR_94x94): New macro.
5745         (MAX_CHAR_94x94): New macro.
5746         (MIN_CHAR_96x96): New macro.
5747         (MAX_CHAR_96x96): New macro.
5748         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5749         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5750         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5751         - 32)'.
5752         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5753         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5754         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5755         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5756         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5757         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5758         `XCHARSET_LEADING_BYTE' to make code-point.
5759         (latin_a_char_to_charset): New variable.
5760         (latin_a_char_to_byte1): New variable.
5761         (latin_a_char_to_byte2): New variable.
5762         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5763         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5764         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5765
5766         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5767         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5768         (find_charsets_in_emchar_string): Likewise.
5769         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5770
5771         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5772         `int'.
5773         (decode_coding_iso2022): Likewise.
5774
5775         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5776         of `unsigned char'.
5777
5778         * redisplay.c (redisplay_text_width_emchar_string): Use
5779         `Charset_ID' instead of `unsigned char'.
5780         (redisplay_frame_text_width_string): Likewise.
5781
5782         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5783         `unsigned char'.
5784
5785         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5786         instead of `unsigned char'.
5787         (face_cachel_charset_font_metric_info): Likewise.
5788
5789         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5790         (get_non_ascii_char_table_value): Likewise.
5791         (get_char_table): Likewise.
5792         (put_char_table): Likewise.
5793         (map_over_other_charset): Likewise.
5794         (map_char_table): Likewise.
5795
5796         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5797         instead of `unsigned char'.
5798
5799 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5800
5801         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5802         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5803
5804         * mule-charset.c (leading_code_private_11): Don't define in
5805         UTF-2000.
5806
5807         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5808         in UTF-2000 because it is not ported yet and not to use
5809         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5810
5811 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5812
5813         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5814
5815 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5816
5817         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5818         in UTF-2000.
5819
5820         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5821         of unsigned char to store leading-byte.
5822
5823         * chartab.c (get_non_ascii_char_table_value): Don't use
5824         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5825
5826         * file-coding.c (encode_coding_big5): Delete bogus implementation
5827         in UTF2000.
5828
5829         * character.h (LEADING_BYTE_*): Delete definition for
5830         non-UTF-2000.
5831         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5832         (LEADING_BYTE_PREFIX_P): Deleted.
5833         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5834         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5835         (BUFBYTE_LEADING_BYTE_P): Deleted.
5836         (CHARSET_PRIVATE_P): Deleted unconditionally.
5837         (rep_bytes_by_first_byte): Deleted unconditionally.
5838         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5839         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5840         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5841         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5842         (CHAR_FIELD2): Deleted.
5843         (CHAR_FIELD3): Deleted.
5844         (MAKE_CHAR): Delete definition for non-UTF-2000.
5845         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5846         (breakup_char_1): New implementation.
5847         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5848         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5849
5850 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5851
5852         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5853         condition.
5854
5855 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5856
5857         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5858         (CHARSET_PRIVATE_P): Likewise.
5859         (XCHARSET_PRIVATE_P): Likewise.
5860         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5861
5862         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5863         UTF2000.
5864         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5865
5866 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5867
5868         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5869         (NUM_LEADING_BYTES): Changed from 128 to 256.
5870         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5871         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5872         UTF2000.
5873         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5874
5875         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5876         UTF2000.
5877         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5878         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5879         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5880         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5881         (Qchinese_cns11643_3): New variable in UTF2000.
5882         (Qchinese_cns11643_4): New variable in UTF2000.
5883         (Qchinese_cns11643_5): New variable in UTF2000.
5884         (Qchinese_cns11643_6): New variable in UTF2000.
5885         (Qchinese_cns11643_7): New variable in UTF2000.
5886         (syms_of_mule_charset): Define `chinese-cns11643-3',
5887         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5888         and `chinese-cns11643-7' in UTF2000.
5889         (vars_of_mule_charset): Initialize
5890         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5891         + 1 in UTF2000.
5892         (complex_vars_of_mule_charset): Setup charset
5893         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5894         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5895
5896 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5897
5898         * mule-charset.c: Move setting for `leading-code-private-11' from
5899         `syms_of_mule_charset' to `vars_of_mule_charset'.
5900
5901 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5902
5903         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5904         and `NUM_LEADING_BYTES' in assert.
5905
5906 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5907
5908         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5909         instead of 128.
5910         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5911         `NUM_LEADING_BYTES' instead of 128.
5912
5913 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5914
5915         * mule-charset.h (charset_by_leading_byte): Use
5916         `NUM_LEADING_BYTES' instead of 128.
5917         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5918
5919         * mule-charset.c (charset_by_leading_byte): Use
5920         `NUM_LEADING_BYTES' instead of 128.
5921         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5922
5923         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5924         128.
5925
5926 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5927
5928         * mule-charset.c (syms_of_mule_charset): Update to
5929         0.4 (Shin-Imamiya).
5930
5931 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5932
5933         * file-coding.c (encode_coding_sjis): New implementation for
5934         UTF2000.  (decode_coding_sjis): Ditto.
5935
5936 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5937
5938         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5939         Don't define in UTF2000.
5940
5941         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5942         defined.
5943
5944         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5945         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5946         MULE.
5947
5948 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5949
5950         * config.h.in (CHAR_IS_UCS4): New macro.
5951
5952         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5953         conventional MULE representation.
5954         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5955
5956         * mule-charset.h: Reverted to original.
5957
5958         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5959         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5960         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5961
5962         * character.h: New file.
5963
5964         * file-coding.c (Fmake_coding_system): Set 1 to
5965         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5966         defined.
5967         (encode_coding_no_conversion): New implementation for UTF2000.
5968
5969         * file-coding.h (struct Lisp_Coding_System): Add new member
5970         `fixed.size'.
5971
5972 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5973
5974         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5975         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5976         (encode_coding_iso2022): New implementation for UTF2000.
5977
5978 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5979
5980         * mule-canna.c (c2mu): New implementation for UTF2000.
5981         (m2c): Likewise.
5982
5983 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5984
5985         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5986
5987 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5988
5989         * file-coding.c (reset_encoding_stream): Set 0 to
5990         `str->iso2022.current_char_boundary' in UTF2000.
5991         (encode_utf8): Don't define in UTF2000.
5992         (encode_coding_utf8): New implementation for UTF-8 representation
5993         of UTF2000.
5994         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5995
5996 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5997
5998         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5999
6000         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
6001         UTF2000.
6002         (REP_BYTES_BY_FIRST_BYTE): Likewise.
6003
6004         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
6005
6006         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
6007         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
6008         as UTF-8 in UTF2000.
6009         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
6010         (non_ascii_valid_char_p): Don't define in UTF2000.
6011         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
6012         (Lstream_get_emchar_1): Likewise.
6013         (utf-2000-version): New variable in UTF2000.
6014
6015         * lread.c (read_escape): Add new reader `u'.
6016
6017         * insdel.c (three_to_one_table): Don't define in UTF2000.
6018         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
6019         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6020         UTF2000.
6021         (bytind_to_bufpos_func): Likewise.
6022         (buffer_mule_signal_inserted_region): Likewise.
6023         (vars_of_insdel): Don't initialize `three_to_one_table'.
6024         (init_buffer_text): Use `buf->text->mule_size' instead of
6025         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6026         UTF2000.
6027
6028         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
6029         UTF-8 representation in UTF2000.
6030         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
6031         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
6032         (decode_coding_iso2022): Don't define local variable `lb' in
6033         UTF2000; don't use LEADING_BYTE in UTF2000; use
6034         `DECODE_ADD_UCS_CHAR' in UTF2000.
6035         (convert_to_external_format): Decode as UTF-8 in UTF2000.
6036
6037         * config.h.in (UTF2000): New macro.
6038
6039         * buffer.h (struct buffer_text): Add new member `mule_size' and
6040         don't add `mule_shifter' and `mule_three_p' in UTF2000.
6041         (valid_char_p): Return always 1 in UTF2000.
6042         (MAX_EMCHAR_LEN): 6 in UTF2000.
6043         (three_to_one_table): Don't define in UTF2000.
6044         (real_bufpos_to_bytind): Modify for UTF-8 representation in
6045         UTF2000.
6046         (real_bytind_to_bufpos): Likewise.
6047
6048         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
6049
6050 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
6051
6052         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
6053         representation change.
6054         (Vutf_2000_version): New variable.
6055         (leading_code_private_11): New variable.
6056         (syms_of_mule_charset): Add new variables `utf-2000-version' and
6057         `leading-code-private-11'.
6058
6059         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
6060         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
6061         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
6062         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
6063         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
6064         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
6065         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
6066         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
6067         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
6068         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
6069         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
6070         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
6071         (MIN_CHAR_GREEK): New macro.
6072         (MAX_CHAR_GREEK): New macro.
6073         (MIN_CHAR_CYRILLIC): New macro.
6074         (MAX_CHAR_CYRILLIC): New macro.
6075         (MIN_CHAR_HEBREW): New macro.
6076         (MAX_CHAR_HEBREW): New macro.
6077         (MIN_CHAR_THAI): New macro.
6078         (MAX_CHAR_THAI): New macro.
6079         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
6080         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
6081         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
6082         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
6083         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
6084         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
6085         (CHAR_FIELD2): New inline function.
6086         (CHAR_FIELD3): New inline function.
6087         (MULE_CHAR_PRIVATE_OFFSET): New macro.
6088         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
6089         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
6090         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
6091         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
6092         (MIN_CHAR_COMPOSITION): Likewise.
6093         (CHAR_LEADING_BYTE): Modified for character representation change.
6094         (MAKE_CHAR): Likewise.
6095
6096         * lisp.h (Vcharset_latin_iso8859_1): New variable.
6097         (Vcharset_greek_iso8859_7): Likewise.
6098         (Vcharset_cyrillic_iso8859_5): Likewise.
6099         (Vcharset_hebrew_iso8859_8): Likewise.
6100         (Vcharset_thai_tis620): Likewise.
6101         (Vcharset_katakana_jisx0201): Likewise.
6102
6103 2008-12-28  Vin Shelton  <acs@xemacs.org>
6104
6105         * XEmacs 21.4.22 is released
6106
6107 2008-12-27  Vin Shelton  <acs@xemacs.org>
6108
6109         * syswindows.h: Don't define wide character interfaces for Cygwin
6110         1.7 and up.
6111
6112 2008-03-05  Dominique Quatravaux  <domq@cpan.org>
6113
6114         * glyphs-gtk.c: Fixed compilation under gcc 4.x.
6115
6116 2008-11-01  Stephen J. Turnbull  <stephen@xemacs.org>
6117
6118         * regex.c (re_search_2): Fix at_dot by changing charpos to bytepos.
6119         From Julian Bradfield <18654.1143.304851.782755@krk.inf.ed.ac.uk>.
6120
6121 2008-12-25  Vin Shelton  <acs@xemacs.org>
6122
6123         * mule-ccl.c (ccl_driver): Fix off-by-one error.
6124         By Julian Bradfield in
6125         <18691.16568.526264.972026@krk.inf.ed.ac.uk>.
6126
6127         * mule-ccl.c (ccl_driver): 
6128
6129 2007-10-07  Vin Shelton  <acs@xemacs.org>
6130
6131         * XEmacs 21.4.21 is released
6132
6133 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
6134
6135         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
6136
6137 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
6138
6139         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
6140         (png_instantiate): Initialize setjmp_buffer early, and avoid
6141         recursive entry to error handler.
6142
6143 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
6144
6145         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
6146         a typo fix.
6147
6148 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
6149
6150         * event-Xt.c (x_reset_modifier_mapping):
6151         * event-gtk.c (gtk_reset_modifier_mapping):
6152         Zero out the device's modifier map once we've freed it, to prevent
6153         a double free on a re-entrant call. 
6154
6155 2007-05-17  Vin Shelton  <acs@xemacs.org>
6156
6157         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
6158         64-bit linux.  Patch from Hans de Graaff.
6159
6160 2007-05-02  Vin Shelton  <acs@xemacs.org>
6161
6162         * dumper.c (pdump): Don't close pdump_fd (already closed by
6163         fclose() call.  Patch from Steve Higham.
6164         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
6165         already closed.  Patch inspired by Steve Higham.
6166
6167 2007-05-01  Vin Shelton  <acs@xemacs.org>
6168
6169         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
6170         (mswindows_fstat): Ditto.
6171         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
6172
6173 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
6174
6175         * postgresql.c: Update Steve Baur's email address by his request.
6176         * postgresql.h: Ditto.
6177
6178 2007-01-04  Vin Shelton  <acs@xemacs.org>
6179
6180         * fileio.c (check_writable): Check old-style readonly bit only for
6181         non-directories.
6182
6183 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
6184
6185         * src/fileio.c (check_writable): 
6186         Cope with the fact that the read-only attribute trumps Windows NTFS
6187         ACLS.
6188
6189
6190 2006-12-09  Vin Shelton  <acs@xemacs.org>
6191
6192         * XEmacs 21.4.20 is released
6193
6194 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
6195
6196         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
6197         relocated the definitions to be used sooner in file.
6198         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6199         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6200         overflow.
6201
6202 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
6203
6204         * sound.c (init_native_sound):
6205         Only X11 and GTK devices can possibly not be on the console of the
6206         associated machine. Fixes a crash when init_native_sound is called
6207         on a msprinter device. 
6208
6209 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
6210
6211         * buffer.c (buffer-file-name): Document invariant.
6212         (buffer-file-truename): Sync wording to buffer-file-name.
6213         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6214         and discussion.
6215
6216 2006-11-19  Benson Margulies  <benson@dchbk.us>
6217
6218         * fileio.c: Add code to use full Win32 API to check for write
6219         access.  Win32 has the general design policy that you aren't
6220         supposed to ask this question, since security checks change
6221         depending on asynchronous processes.  Nonetheless, there is a way,
6222         by acting as if we are a server doing interpretive access
6223         control.
6224
6225 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6226
6227         * bytecode.c: Use xnew_array instead of alloca.
6228
6229 2006-07-04  Vin Shelton  <acs@xemacs.org>
6230
6231         * redisplay-msw.c: Fix tiny, but crucial typo.
6232
6233 2006-06-22  Jerry James  <james@xemacs.org>
6234
6235         * EmacsShell-sub.c (ChangeManaged):
6236         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6237         NULL.
6238         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6239         checking if it is NULL.  Also fix a memory leak.
6240         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6241         dereference it, not the other way around.
6242         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6243         overflow check.
6244         * dumper.c (pdump_register_struct): Ditto.
6245         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6246         to (short) warnpath overflow warnpath.
6247         * extents.c (detach_all_extents): Call extent_list_delete_all with
6248         a non-NULL parameter only.
6249         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6250         NULL width and height.
6251         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6252         xic before checking if they are NULL.
6253         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6254         allocated array.
6255         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6256         * nas.c (Err): Fix a memory leak.
6257         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6258         Don't create the buffer if there is nothing to do.
6259         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6260         * redisplay-output.c (redisplay_output_layout): Ditto.
6261         * redisplay-tty.c (tty_output_display_block): Ditto.
6262         * redisplay-x.c (x_output_display_block): Ditto.
6263         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6264         dereference instance->scrollbar_data if it is NULL.
6265         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6266         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6267         for sb->scrollbar_data.
6268         * sound.c (init_native_sound): Avoid a buffer overflow by
6269         allocating a buffer with the appropriate size.
6270
6271 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6272
6273         * EmacsShell-sub.c (RootGeometryManager):
6274         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6275         Based on a suggestion by Francois L'Archeveque.
6276
6277 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6278
6279         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6280         current values found in GNU Emacs.
6281
6282 2006-03-17  Vin Shelton  <acs@xemacs.org>
6283
6284         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6285         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6286
6287         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6288         'hex_initialized' because it conflicts with 'initialized' in
6289         lisp.h.
6290
6291 2006-01-28  Vin Shelton  <acs@xemacs.org>
6292
6293         * XEmacs 21.4.19 is released
6294
6295 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6296
6297         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6298
6299 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6300
6301         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6302         5000 to INT_MAX.
6303
6304 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6305
6306         * database.c: Suppress compiler warning under Cygwin.
6307         * database.c: Removed __FreeBSD__ check, should be handled by
6308         HAVE_U_xxx_T defines.
6309
6310 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6311
6312         * console.c (stuff_buffered_input): Compile body only if
6313         HAVE_TTY.
6314
6315 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6316
6317         * callproc.c: #include sysdir.h, so that any appropriate Mule
6318         magic happens with the chdir() call when calling a subprocess. 
6319
6320 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6321
6322         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6323         * mule-ccl.c: Check that a character set exists before using it
6324         to create a character. 
6325
6326 2005-12-06  Vin Shelton  <acs@xemacs.org>
6327
6328         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6329         to INT_MAX.
6330
6331 2005-12-03  Vin Shelton <acs@xemacs.org>
6332
6333         * XEmacs 21.4.18 is released
6334
6335 2005-11-27  Kean Johnston <kean@armory.com>
6336
6337         * redisplay-tty.c (set_tty_modes):
6338         (reset_tty_modes): disable auto-margins if the terminal supports
6339         them.
6340         (init_tty_for_redisplay): fix cursor shape.
6341
6342 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6343
6344         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6345         for control-1 characters properly, both when reading multibyte
6346         characters and writing them. 
6347
6348 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6349
6350         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6351         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6352         were seeing with incremental selection transfer failing. 
6353
6354 2005-11-26  Vin Shelton  <acs@xemacs.org>
6355
6356         * callproc.c (Fold_call_process_internal): Create the buffer if it
6357         does not already exist.  The original patch came from Ben Wing in
6358         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6359
6360 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6361
6362         * callproc.c: Process-related docstring improvements spurred by
6363         Norbert Koch.
6364
6365 2005-11-25  Vin Shelton  <acs@xemacs.org>
6366
6367         * depend: Regenerated.
6368
6369 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6370
6371         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6372         says it clashes with a global with the same name.
6373
6374 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6375
6376         * sysdll.c (dll_open): Under MacOS X return NULL under the
6377         filename is NULL.  Fixes problems finding local symbols under 10.4
6378         (Tiger)
6379
6380 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6381         
6382         * config.h.in: New HAVE_U_INT*_T defines.
6383         
6384         * database.c: Only use u_int*_t typedefs if not already
6385         defined.
6386
6387 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6388
6389         * src/process-unix.c (unix_open_network_stream): moved
6390           'portbuf' buffer out of an inner block as it is used in the
6391           entire function. With gcc4, the stack may get corrupted
6392           after leaving this block. This patches adjusts the size of
6393           the used buffer also; static '128' bytes are far too much
6394           currently and might not suffice for future architectures
6395           (e.g. for 512 bit ones ;)). Instead of, use only the really
6396           required space (max octets * ln(256)/ln(10) chars + space
6397           for '\0' and the sign)
6398
6399 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6400
6401         * callproc.c: Include sysdir.h, so any necessary Mule processing
6402         is done on the current directory name before starting a new
6403         process.
6404
6405 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6406
6407         * chartab.c (Fchar_table_p):
6408         (Fget_range_char_table):
6409         (Fput_char_table):
6410         (Fmap_char_table):
6411         Describe range representation and fix typo.
6412
6413 2005-02-12  Vin Shelton  <acs@xemacs.org>
6414
6415         * emacs.c (shut_down_emacs): Advise users to send email to the
6416         xemacs-beta list instead of crashes@xemacs.org.
6417
6418 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6419
6420         * process-unix.c (unix_send_process): Flush the last chunk, even
6421         when the pipe is blocked.
6422
6423 2005-02-06  Vin Shelton <acs@xemacs.org>
6424
6425         * XEmacs 21.4.17 is released
6426
6427 2005-01-31  Ben Wing  <ben@xemacs.org>
6428
6429         * emacs.c:
6430         Define assert_failed() always.
6431         * lisp.h:
6432         Always define ABORT().
6433
6434 2005-01-25  Ben Wing  <ben@xemacs.org>
6435
6436         * Makefile.in.in:
6437         * Makefile.in.in (%.o):
6438         Don't compile executable as Windows (-mwindows) under Cygwin.
6439         Semi-recent changes to Cygwin's executable-startup handling make
6440         it impossible to access the TTY this way.
6441
6442         Don't use special linker file under Cygwin (cygwin.sc) except
6443         when non-PDUMP (even in this case it is highly questionable); you
6444         get errors like
6445
6446       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6447    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6448
6449 2005-01-29  Ben Wing  <ben@xemacs.org>
6450
6451         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6452
6453         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6454
6455 2005-01-29  Ben Wing  <ben@xemacs.org>
6456
6457         * bytecode.c (optimize_compiled_function):
6458         * print.c (FROB):
6459         * print.c (long_to_string):
6460         Add casts to avoid warning.
6461         
6462         * glyphs-eimage.c:
6463         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6464         #### The better solution is to move the TIFF and JPEG code to
6465         different files.
6466         
6467         * glyphs-msw.c (mswindows_xbm_instantiate):
6468         Define __STDC__ to avoid problems with compface.h.
6469         
6470         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6471         * EmacsShell-sub.c:
6472         * EmacsShell-sub.c (ABORT):
6473         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6474         * EmacsShell-sub.c (RootGeometryManager):
6475         * EmacsShell.c:
6476         * EmacsShell.c (ABORT):
6477         * EmacsShell.c (EmacsShellUpdateSizeHints):
6478         * alloc.c (free_lcrecord):
6479         * alloca.c (i00afunc):
6480         * buffer.c (delete_from_buffer_alist):
6481         * buffer.c (MARKED_SLOT):
6482         * bytecode.c (execute_rare_opcode):
6483         * bytecode.c (optimize_byte_code):
6484         * bytecode.c (Ffetch_bytecode):
6485         * chartab.c (char_table_type_to_symbol):
6486         * chartab.c (Freset_char_table):
6487         * chartab.c (decode_char_table_range):
6488         * chartab.c (Fget_range_char_table):
6489         * chartab.c (check_valid_char_table_value):
6490         * chartab.c (map_char_table):
6491         * chartab.c (slow_map_char_table_fun):
6492         * chartab.c (chartab_instantiate):
6493         * cm.c (cmcheckmagic):
6494         * console-msw.c (DHEADER):
6495         * console.c (MARKED_SLOT):
6496         * data.c (finish_marking_weak_lists):
6497         * data.c (encode_weak_list_type):
6498         * debug.h (DASSERT):
6499         * device-gtk.c (gtk_init_device):
6500         * device-msw.c (mswindows_get_default_margin):
6501         * device-tty.c (tty_init_device):
6502         * device-x.c (get_device_from_display):
6503         * device-x.c (x_get_visual_depth):
6504         * doprnt.c (parse_doprnt_spec):
6505         * doprnt.c (get_doprnt_args):
6506         * dumper.c (pdump_get_indirect_count):
6507         * dumper.c (pdump_register_sub):
6508         * dumper.c (pdump_register_object):
6509         * dumper.c (pdump_register_struct):
6510         * dumper.c (pdump_dump_data):
6511         * dumper.c (pdump_reloc_one):
6512         * elhash.c (print_hash_table):
6513         * elhash.c (make_standard_lisp_hash_table):
6514         * elhash.c (hash_table_instantiate):
6515         * emacs.c:
6516         * emacs.c (Fforce_debugging_signal):
6517         * emacs.c (sort_args):
6518         * emacs.c (main):
6519         * emacs.c (assert_failed):
6520         * eval.c (throw_or_bomb_out):
6521         * eval.c (signal_1):
6522         * eval.c (Fsignal):
6523         * event-Xt.c:
6524         * event-Xt.c (emacs_Xt_mapping_action):
6525         * event-Xt.c (Xt_process_to_emacs_event):
6526         * event-msw.c:
6527         * event-stream.c (check_event_stream_ok):
6528         * event-stream.c (Fadd_timeout):
6529         * event-stream.c (Fadd_async_timeout):
6530         * event-stream.c (Fdiscard_input):
6531         * event-stream.c (execute_internal_event):
6532         * event-stream.c (Frecent_keys):
6533         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6534         * event-stream.c (lookup_command_event):
6535         * event-unixoid.c (poll_fds_for_input):
6536         * events.c:
6537         * events.c (mark_event):
6538         * events.c (event_equal):
6539         * events.c (event_hash):
6540         * events.c (Fmake_event):
6541         * events.c (Fdeallocate_event):
6542         * events.c (event_chain_find_previous):
6543         * events.c (event_to_character):
6544         * events.c (format_event_object):
6545         * events.c (Fevent_type):
6546         * events.c (event_pixel_translation):
6547         * events.c (Fevent_properties):
6548         * extents.c (extent_in_region_p):
6549         * extents.c (print_extent):
6550         * extents.c (process_extents_for_insertion_mapper):
6551         * extents.c (report_extent_modification_mapper):
6552         * extents.c (glyph_layout_to_symbol):
6553         * faces.c (face_validate):
6554         * file-coding.c (eol_type_to_symbol):
6555         * file-coding.c (subsidiary_coding_system):
6556         * file-coding.c (Fcoding_system_type):
6557         * file-coding.c (Fcoding_system_property):
6558         * file-coding.c (mule_decode):
6559         * file-coding.c (mule_encode):
6560         * file-coding.c (encode_coding_ucs4):
6561         * file-coding.c (encode_coding_utf8):
6562         * file-coding.c (parse_iso2022_esc):
6563         * file-coding.c (encode_coding_iso2022):
6564         * fileio.c:
6565         * fns.c (concat):
6566         * fns.c (Fsubseq):
6567         * fns.c (mapcar1):
6568         * fns.c (Fbase64_encode_region):
6569         * fns.c (Fbase64_encode_string):
6570         * fns.c (Fbase64_decode_region):
6571         * fns.c (Fbase64_decode_string):
6572         * font-lock.c (find_context):
6573         * font-lock.c (context_to_symbol):
6574         * frame-gtk.c (gtk_set_frame_pointer):
6575         * frame-gtk.c (gtk_update_frame_external_traits):
6576         * frame-x.c (x_wm_mark_shell_size_user_specified):
6577         * frame-x.c (x_wm_mark_shell_position_user_specified):
6578         * frame-x.c (x_wm_set_shell_iconic_p):
6579         * frame-x.c (x_wm_set_cell_size):
6580         * frame-x.c (x_wm_set_variable_size):
6581         * frame-x.c (x_wm_store_class_hints):
6582         * frame-x.c (x_wm_maybe_store_wm_command):
6583         * frame-x.c (x_initialize_frame_size):
6584         * frame-x.c (x_update_frame_external_traits):
6585         * frame.c:
6586         * frame.c (delete_frame_internal):
6587         * frame.c (mouse_pixel_position_1):
6588         * frame.c (change_frame_size_1):
6589         * free-hook.c (check_free):
6590         * free-hook.c (check_realloc):
6591         * free-hook.c (note_block_input):
6592         * free-hook.c (log_gcpro):
6593         * gccache-gtk.c (gc_cache_lookup):
6594         * glyphs-eimage.c (tiff_memory_write):
6595         * glyphs-gtk.c (gtk_finalize_image_instance):
6596         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6597         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6598         * glyphs-gtk.c (gtk_xpm_instantiate):
6599         * glyphs-gtk.c (gtk_unmap_subwindow):
6600         * glyphs-gtk.c (gtk_map_subwindow):
6601         * glyphs-gtk.c (gtk_button_redisplay):
6602         * glyphs-msw.c:
6603         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6604         * glyphs-x.c (init_image_instance_from_xbm_inline):
6605         * glyphs-x.c (extract_xpm_color_names):
6606         * glyphs-x.c (x_xpm_instantiate):
6607         * glyphs.c (get_image_instantiator_governing_domain):
6608         * glyphs.c (print_image_instance):
6609         * glyphs.c (image_instance_equal):
6610         * glyphs.c (image_instance_hash):
6611         * glyphs.c (encode_image_instance_type):
6612         * glyphs.c (make_image_instance_1):
6613         * glyphs.c (inherit_instantiate):
6614         * glyphs.c (image_instantiate):
6615         * glyphs.c (allocate_glyph):
6616         * glyphs.c (Fglyph_type):
6617         * glyphs.c (redisplay_subwindow):
6618         * glyphs.c (display_table_entry):
6619         * gtk-glue.c (xemacs_list_to_gtklist):
6620         * gtk-glue.c (xemacs_gtklist_to_list):
6621         * gtk-glue.c (xemacs_list_to_array):
6622         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6623         * gutter.c (gutter_was_visible):
6624         * gutter.c (get_gutter_coords):
6625         * input-method-xlib.c (get_XIM_input):
6626         * insdel.c (bufpos_to_bytind_func):
6627         * insdel.c (bytind_to_bufpos_func):
6628         * insdel.c (move_gap):
6629         * intl.c (x_get_composed_input):
6630         * keymap.c (keymap_lookup_directly):
6631         * keymap.c (keymap_delete_inverse_internal):
6632         * keymap.c (ensure_meta_prefix_char_keymapp):
6633         * keymap.c (accessible_keymaps_mapper_1):
6634         * keymap.c (where_is_recursive_mapper):
6635         * lisp.h:
6636         * lisp.h (ABORT):
6637         * lread.c (read_atom):
6638         * lstream.c (Lstream_delete):
6639         * lstream.c (make_lisp_buffer_stream_1):
6640         * macros.c (pop_kbd_macro_event):
6641         * malloc.c (malloc):
6642         * malloc.c (free):
6643         * marker.c (bi_marker_position):
6644         * marker.c (set_bi_marker_position):
6645         * menubar-gtk.c (menu_descriptor_to_widget_1):
6646         * menubar-msw.c (prune_menubar):
6647         * menubar-x.c (set_frame_menubar):
6648         * mule-charset.c (get_unallocated_leading_byte):
6649         * mule-charset.h (CHAR_LEADING_BYTE):
6650         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6651         * nt.c (init_environment):
6652         * nt.c (generate_inode_val):
6653         * ntproc.c (delete_child):
6654         * ntproc.c (_sys_read_ahead):
6655         * ntproc.c (create_child):
6656         * objects.c (color_instantiate):
6657         * objects.c (font_instantiate):
6658         * objects.c (face_boolean_instantiate):
6659         * print.c (printing_major_badness):
6660         * process-nt.c (nt_send_process):
6661         * process-unix.c (unix_send_process):
6662         * process.c (get_process):
6663         * ralloc.c (obtain):
6664         * ralloc.c (relinquish):
6665         * ralloc.c (relocate_blocs):
6666         * ralloc.c (resize_bloc):
6667         * ralloc.c (r_alloc_free):
6668         * ralloc.c (r_re_alloc):
6669         * ralloc.c (r_alloc_thaw):
6670         * ralloc.c (init_ralloc):
6671         * ralloc.c (Free_Addr_Block):
6672         * ralloc.c (r_alloc):
6673         * redisplay-gtk.c (gtk_output_display_block):
6674         * redisplay-msw.c (mswindows_output_display_block):
6675         * redisplay-output.c (get_next_display_block):
6676         * redisplay-output.c (get_cursor_size_and_location):
6677         * redisplay-output.c (redisplay_output_layout):
6678         * redisplay-output.c (redisplay_clear_region):
6679         * redisplay-tty.c (tty_output_display_block):
6680         * redisplay-x.c (x_output_display_block):
6681         * redisplay.c (add_propagation_runes):
6682         * redisplay.c (add_glyph_rune):
6683         * redisplay.c (create_text_block):
6684         * redisplay.c (add_margin_runes):
6685         * redisplay.c (create_left_glyph_block):
6686         * redisplay.c (create_right_glyph_block):
6687         * redisplay.c (create_string_text_block):
6688         * redisplay.c (regenerate_window):
6689         * redisplay.c (REGEN_INC_FIND_START_END):
6690         * redisplay.c (redisplay_frame):
6691         * redisplay.c (point_in_line_start_cache):
6692         * regex.c:
6693         * regex.c (ABORT):
6694         * regex.c (re_compile_fastmap):
6695         * regex.c (re_match_2_internal):
6696         * regex.c (regerror):
6697         * scrollbar-gtk.c (gtk_scrollbar_loop):
6698         * scrollbar-gtk.c (scrollbar_cb):
6699         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6700         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6701         * scrollbar-x.c (x_update_scrollbar_instance_status):
6702         * scrollbar-x.c (x_scrollbar_loop):
6703         * scrollbar-x.c (x_update_frame_scrollbars):
6704         * search.c (search_command):
6705         * search.c (Fmatch_data):
6706         * select-x.c (motif_clipboard_cb):
6707         * signal.c (interrupt_signal):
6708         * specifier.c (specifier_add_spec):
6709         * specifier.c (specifier_instance_from_inst_list):
6710         * specifier.c (specifier_instance):
6711         * specifier.h:
6712         * specifier.h (struct specifier_methods):
6713         * strftime.c (add_num_time_t):
6714         * sunplay.c (init_device):
6715         * symbols.c (Fsetplist):
6716         * symbols.c (do_symval_forwarding):
6717         * symbols.c (store_symval_forwarding):
6718         * symbols.c (Fset):
6719         * symbols.c (Fbuilt_in_variable_type):
6720         * symbols.c (decode_magic_handler_type):
6721         * symbols.c (handler_type_from_function_symbol):
6722         * syntax.c (update_syntax_cache):
6723         * sysdep.c (init_baud_rate):
6724         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6725         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6726         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6727         * toolbar.c (get_toolbar_coords):
6728         * ui-gtk.c (build_gtk_boxed):
6729         * ui-gtk.c (describe_gtk_arg):
6730         * ui-gtk.c (gtk_type_to_lisp):
6731         * ui-gtk.c (lisp_to_gtk_type):
6732         * ui-gtk.c (lisp_to_gtk_ret_type):
6733         * ui-gtk.c (lisp_to_flag):
6734         * unexnt.c (read_in_bss):
6735         * unexnt.c (map_in_heap):
6736         * window.c (real_window):
6737         * window.c (window_display_lines):
6738         * window.c (window_display_buffer):
6739         * window.c (set_window_display_buffer):
6740         * window.c (window_modeline_height):
6741         * window.c (unshow_buffer):
6742         * window.c (window_loop):
6743         * window.c (Fget_lru_window):
6744         * window.c (Fsplit_window):
6745         * window.c (Fset_window_configuration):
6746         * window.c (saved_window_index):
6747         * xgccache.c (gc_cache_lookup):
6748         abort() -> ABORT().  Eliminate preprocessor games with abort()
6749         since it creates huge problems in VC7, solvable only by including
6750         massive amounts of files in every compile (and not worth it).
6751
6752         * sysdep.c:
6753         * sysproc.h:
6754         Inclusion of process.h does not need to be before lisp.h any more.
6755         Move later and remove comment about abort().
6756
6757 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6758
6759         * regex.c (re_match_2_internal):
6760         Correctly initialize loop which clears uninitialized registers.
6761
6762 2005-01-28  Vin Shelton  <acs@xemacs.org>
6763
6764         * sheap.c (more_static_core): Applied Ben's version of the long
6765         string patch.
6766
6767 2005-01-24  Vin Shelton  <acs@xemacs.org>
6768
6769         * sheap.c (more_static_core): Reformatted printf string so
6770         gcc-3.3.3 will compile this on Cygwin.
6771
6772 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6773
6774         * console.c (function_key_map): Reference `key-binding'.
6775
6776         * keymap.c (Vkey_translation_map): Improve docstring.
6777
6778 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6779
6780         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6781         * window.c (window_loop): [fix] Take into account
6782         `allow-deletion-of-last-visible-frame' variable.
6783         * window.c (replace-buffer-in-windows): Ditto.
6784
6785 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6786
6787         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6788
6789 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6790
6791         * event-gtk.c: Recognise AltGr as a valid modifier.
6792
6793 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6794
6795         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6796
6797 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6798
6799         Fix backreference bug caught by test suite.
6800
6801         * regex.c (regex_compile):
6802         Make backref duplicate internal register.
6803
6804 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6805
6806         Documentation, code clarification, and warning suppression.
6807         
6808         * regex.c (regex_compile):
6809         Improve comments.
6810         (re_match_2_internal):
6811         Improve comments and avoid redundant braces.  [Most of the big hunk
6812         at l. 4710 is indentation; use diff -w to see the real changes.]
6813         (alt_match_null_string_p):
6814         (common_op_match_null_string_p):
6815         Avoid shadowing global on Mac OS X 10.4, at least.
6816
6817 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6818
6819         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6820         introduced with shy groups fix).  [Already applied, probably
6821         with the second "fix shy groups" patch of 2004-10-07.] 
6822
6823 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6824
6825         From Andrey Slusar <anrays@gmail.com>:
6826
6827         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6828
6829 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6830
6831         * Makefile (RECURSIVE_MAKE): Removed.
6832         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6833         handling parallel builds.
6834
6835 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6836
6837         * Makefile.in.in: Enable support for parallel builds.
6838
6839 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6840
6841         From Andrey Slusar <anrays@gmail.com>:
6842
6843         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6844         FreeBSD version is >= 199701 _and_ < 600006.
6845
6846 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6847
6848         * scrollbar.c (compute_scrollbar_instance_usage):
6849         Only call device method compute_scrollbar_instance_usage() if it
6850         is defined.
6851
6852 2004-12-05  Vin Shelton <acs@xemacs.org>
6853
6854         * XEmacs 21.4.16 is released
6855
6856 2004-12-04  Vin Shelton  <acs@xemacs.org>
6857
6858         * depend: Regenerated.
6859
6860 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6861
6862         * regex.c (re_match_2_internal): Map internal to external
6863         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6864         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6865
6866 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6867
6868         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6869         to fix a crash.  Also, check the buffer is live and it
6870         really exists in buffer_list.  If the buffer is not in the list,
6871         prepend it.
6872
6873 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6874
6875         Fix shy groups by implementing recording of all groups for
6876         repetition and backtracking.  Backport from 21.5.
6877         
6878         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6879         external_to_internal_register, external_to_internal_register_size,
6880         and update comments for re_nsub.
6881
6882         * regex.c (re_opcode_t): Update comments.
6883         (print_compiled_pattern): Ouput external_to_internal_register,
6884         external_to_internal_register_size, and re_ngroups for debugging.
6885         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6886         (regex_compile): Update header comment.
6887         Ensure that all groups are recorded so that repeat matches and
6888         backtracking work correctly.  Comment related warning for groups >
6889         255.
6890         (re_search_2): Construct map of API indexes (which count only
6891         nonshy groups) to internal register numbers, and keep it updated.
6892
6893 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6894
6895         * frame-gtk.c (gtk_make_frame_visible):
6896         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6897         show/hide.  This is what X uses and is prevents previously hidden
6898         widgets from suddenly reappearing.
6899         * gtk-xemacs.c (gtk_xemacs_paint):
6900         * gtk-xemacs.c (gtk_xemacs_draw):
6901         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6902         drawable.
6903         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6904         size and location changes so that they can be seen before the next
6905         idle event.  Without this rapid changes to scrollbar properties
6906         are not seen.
6907
6908 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6909
6910         * console-gtk.h:
6911         * console-gtk.h (struct gtk_frame):
6912         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6913           Add hash tables track tab_control callback data.
6914           Added #defines for GTK object data names.
6915           Declaration of gtk_widget_to_frame().
6916         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6917         * frame-gtk.c (gtk_widget_to_frame): New.
6918         * frame-gtk.c (gtk_create_widgets):
6919         * frame-gtk.c (allocate_gtk_frame_struct):
6920         * frame-gtk.c (gtk_mark_frame):
6921         Manage frame callbakc hash tables.
6922         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6923         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6924         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6925         of widget size.
6926         * glyphs-gtk.c (gtk_widget_query_geometry): New
6927         * glyphs-gtk.c (gtk_register_gui_item): New
6928         * glyphs-gtk.c (gtk_add_tab_item): New
6929         * glyphs-gtk.c (gtk_tab_control_callback): New
6930         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6931         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6932         Use correct list when loading item.
6933         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6934         Register new methods.
6935         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6936         default size, for widgets.
6937         * gui-x.c:  Improved comment.
6938         * menubar-gtk.c (__generic_button_callback): Use
6939         gtk_widget_to_frame instead of __get_channel.
6940         * scrollbar-gtk.c:
6941         * ui-gtk.c: Use symbolic names for GTK object data.
6942
6943 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6944
6945         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6946
6947 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6948
6949         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6950
6951 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6952
6953         * malloc.c (morecore): siz is a long because in some architectures
6954         (eg ia-64) an int cannot hold the address range.  Additional patch
6955         from the SuSe distribution.
6956
6957 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6958
6959         * emacs.c:
6960         * malloc.c: lim_data is a long because in some architectures
6961         (eg ia-64) an int cannot hold the address range.
6962         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6963         instead of ulimit() because ulimit() always returns -1.
6964
6965 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6966
6967         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6968
6969 2004-06-11  David Kastrup  <dak@gnu.org>
6970
6971         * search.c (match_limit): Don't flag an error if match-data
6972         exceeding the allocated search_regs.num_regs gets requested, just
6973         return Qnil.
6974
6975 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6976
6977         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6978         replace symbolic color entries with the real colors specified in
6979         xpm-color-symbols, before passing the XPM to gtk.
6980         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6981         instead of a GTK specific field, so that it is used in by generic
6982         code.
6983
6984 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6985
6986        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6987         coredump from deref of NULL ptr (ExtData)
6988
6989 2004-04-19  Jerry James  <james@xemacs.org>
6990
6991         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6992         VALBITS to compute the location of the sign bit.
6993         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6994         of VALBITS with EMACS_INT_MAX.
6995         * events.c (Fevent_timestamp): Ditto.
6996         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6997         compute the halfway point to timestamp wraparound.
6998         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6999         EMACS_INT_MIN instead of using VALBITS.
7000         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
7001         incorrect number with VALBITS.
7002         * fns.c (Frandom): Correct number of integer bits in docstring.
7003         Use INT_VALBITS instead of VALBITS to compute the denominator.
7004         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
7005         build random numbers.
7006
7007 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7008         * event-gtk.c:
7009         * event-gtk.c (gtk_event_to_emacs_event):
7010         * menubar-gtk.c:
7011         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
7012         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
7013         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
7014         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
7015         * menubar-gtk.c (__activate_menu):
7016         * menubar-gtk.c (convert_underscores):
7017         * menubar-gtk.c (remove_underscores):
7018         * menubar-gtk.c (menu_convert):
7019         * menubar-gtk.c (menu_descriptor_to_widget_1):
7020         * menubar-gtk.c (menu_descriptor_to_widget):
7021         * menubar-gtk.c (menu_can_reuse_widget):
7022         * menubar-gtk.c (menu_create_menubar):
7023         * menubar-gtk.c (gtk_popup_menu):
7024         * menubar-gtk.c (Fgtk_build_xemacs_menu):
7025         Added support for Gtk menu bar and menu item mnemonics.
7026
7027 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7028
7029         * sysdll.c: (dll_function): Added support for finding symbols in
7030         Darwin shared libraries as well in Darwin bundles.
7031         * sysdll.c (image_for_address): New
7032         * sysdll.c (my_find_image): New
7033         * sysdll.c (search_linked_libs): New
7034
7035 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7036
7037         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
7038         return to GTK requires a different API to marshalling data to use
7039         as GTK parameters.
7040         * ui-gtk.c (lisp_to_gtk_ret_type): New.
7041
7042 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
7043
7044         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
7045
7046 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7047
7048         * glyphs.c (process_image_string_instantiator):
7049         (Fset_console_type_image_conversion_list):
7050         Stop GCC from warning about shadowing of `exp'.
7051
7052         * redisplay-x.c (x_output_string): Fix unsigned lossage.
7053
7054 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7055
7056         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
7057
7058 2004-02-03  Vin Shelton  <acs@xemacs.org>
7059
7060         * glyphs.c (image_instance_layout): Remove pointless assertion.
7061         * regex.c (regex_grow_registers): Return type is void.
7062
7063 2004-02-02  Vin Shelton <acs@xemacs.org>
7064
7065         * XEmacs 21.4.15 is released
7066
7067 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
7068
7069         * device-x.c (x_error_handler): Don't call stderr_out
7070
7071 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
7072
7073         * buffer.c (other-buffer): Clarify documentation of order of
7074         arguments for FSF Emacs.
7075
7076 2003-10-11  Olivier Galibert  <galibert@pobox.com>
7077
7078         * window.c (Fdelete_window): Dirty the mirror structure _before_
7079         marking the window deleted.
7080
7081 2003-09-15  Jerry James  <james@xemacs.org>
7082
7083         * event-msw.c (debug_mswin_messages): Conditionally compile
7084         messages missing from the Cygwin headers.
7085
7086 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
7087
7088         * data.c (eq_with_ebola_notice): Fix typo in comment.
7089         (Ftrue_list_p): Improve docstring.
7090
7091 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
7092
7093         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
7094
7095 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
7096
7097         * search.c (trivial_regexp_p): Regexps containing "\{" are
7098         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
7099         Stefan Monnier for suggesting a diagnosis.
7100
7101 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
7102
7103         * elhash.c (make-hash-table): Clarify use of :test #'equal.
7104
7105 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
7106
7107         * search.c (Fsearch_forward):
7108         (Fsearch_backward):
7109         Document negative count.
7110
7111 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
7112
7113         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
7114
7115 2003-09-13  Martin Buchholz  <martin@xemacs.org>
7116
7117         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
7118
7119 2003-09-15  Vin Shelton  <acs@xemacs.org>
7120
7121         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
7122         21.5.
7123
7124 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7125
7126         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
7127         (re_search_2): Match the first byte of Bufbyte, not Emchar.
7128         (re_match_2_internal): Use TRANSLATE instead of
7129         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
7130         non-ASCII char case conversion.
7131
7132 2003-09-08  Mike Sperber  <mike@xemacs.org>
7133
7134         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
7135         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
7136
7137 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
7138
7139        * .gdbinit (pobj): fix printing of symbol name.
7140
7141 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
7142
7143         * frame-x.c (x_layout_widgets): When resizing is about to cause
7144         frame size slip, mark it for redisplay.
7145
7146 2003-08-18  Jerry James  <james@xemacs.org>
7147
7148         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
7149
7150 2003-09-03  Vin Shelton <acs@xemacs.org>
7151
7152         * XEmacs 21.4.14 is released
7153
7154 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
7155
7156         * config.h.in (REGEX_MALLOC): Make it configure'able.
7157
7158 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
7159
7160         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
7161         linking.
7162         * sysdll.c (dll_init):
7163         * sysdll.c (dll_open):
7164         * sysdll.c (dll_close):
7165         * sysdll.c (dll_function):
7166         * sysdll.c (dll_variable):
7167         * sysdll.c (dll_error):
7168         Add support for loading bundles using Darwin/MacOSX
7169         native API.
7170
7171 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
7172
7173         * process.c (start-process-internal): Document coding systems.
7174
7175 2003-07-30  Jerry James  <james@xemacs.org>
7176
7177         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
7178
7179 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
7180
7181         * event-msw.c (mswindows_enqueue_mouse_button_event):
7182         * event-msw.c (mswindows_wnd_proc):
7183           enqueue button event when scrollwheel event isn't handled by 
7184           mswindows_handle_mousewheel_event, such as when the scrollbars
7185           are not showing.
7186
7187 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
7188
7189         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
7190
7191 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
7192
7193         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
7194
7195 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
7196
7197         * regex.c (re_match_2_internal): Fix matching degenerate word
7198         boundaries.
7199
7200 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
7201
7202         * XEmacs 21.4.13 is released
7203
7204 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
7205
7206         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
7207         * lisp.h (<inttypes.h>):
7208         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
7209         the definition.
7210
7211 2003-03-15  Martin Buchholz  <martin@xemacs.org>
7212
7213         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7214         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7215         Result: "temacs can only be run in -batch mode."
7216         Fix: Check xemacs executable candidate for directory-ness.
7217
7218 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7219
7220         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7221           they conflict with <sys/types.h>.
7222
7223 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7224
7225         * database.c: Berkeley DB wants __STDC__ to be defined.
7226
7227 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7228
7229         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7230
7231 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7232
7233         * process-unix.c (unix_send_process): Fix C++ compile error.
7234
7235 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7236
7237         * Added .dylib as an acceptable shared library file extension
7238         * to support MacOSX.
7239
7240 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7241
7242         * EmacsFrameP.h (EmacsFramePart):
7243         Kludge to allow compiling with Motif1, but linking with Motif2.
7244
7245 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7246
7247         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7248
7249
7250 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7251
7252         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7253
7254 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7255
7256         * sysdll.c: Included lisp.h to define needed alloca_array.
7257
7258 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7259
7260         Make XEmacs redisplay 10 times faster.
7261         If, that is, you're using a slow X connection and MoveOpaque.
7262         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7263         Use compress_motion = TRUE.
7264         * EmacsFrame.c (emacsFrameClassRec): 
7265         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7266         * EmacsManager.c (emacsManagerClassRec):
7267         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7268
7269 2003-01-30  Vin Shelton  <acs@xemacs.org>
7270
7271         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7272
7273 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7274
7275         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7276         Patch by Martin Buchholz.
7277
7278 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7279
7280         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7281         Thanks to icc for warning and Martin Buchholz for reporting.
7282
7283 2003-01-29  Vin Shelton <acs@xemacs.org>
7284
7285         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7286
7287         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7288         remember to multiply by the element size.
7289
7290 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7291
7292         * XEmacs 21.4.12 "Portable Code" is released.
7293
7294 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7295
7296         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7297         * s/cygwin.sc: new linker file.
7298
7299 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7300
7301         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7302
7303         * redisplay-x.c (x_output_string): Use X11-specified types.
7304         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7305         * emacs.c (__free_hook): Use typeof with Intel compiler.
7306         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7307
7308 2003-01-08  Andy Piper  <andy@xemacs.org>
7309
7310         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7311         reserve size during unexec().
7312
7313 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7314
7315         * process-unix.c (unix_create_process): Don't let outchannel block.
7316
7317 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7318
7319         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7320         Needed for IsBadReadPtr().
7321
7322 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7323
7324         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7325
7326 2002-12-14  Ben Wing  <ben@xemacs.org>
7327
7328         * callint.c: Declaration error.
7329         * dumper.c (pdump):
7330         * dumper.c (pdump_load): Warning fix.
7331         * process.c: GCPRO error.
7332         * glyphs.c (unmap_subwindow):
7333         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7334         * event-stream.c (maybe_kbd_translate): Wrong argument to
7335         character_to_event().
7336
7337         * alloc.c (garbage_collect_1):
7338         * emacs.c:
7339         * emacs.c (debug_can_access_memory):
7340         * emacs.c (fatal_error_signal):
7341         * emacs.c (mswindows_handle_hardware_exceptions):
7342         * emacs.c (main_1):
7343         * emacs.c (main):
7344         * emacs.c (assert_failed):
7345         * emacs.c (syms_of_emacs):
7346         * lisp.h:
7347         * print.c:
7348         * print.c (std_handle_out_va):
7349         * print.c (write_string_to_stdio_stream):
7350         * print.c (write_fmt_string):
7351         * print.c (printing_badness):
7352         * print.c (printing_major_badness):
7353         * print.c (print_internal):
7354         * print.c (debug_print_no_newline):
7355         * print.c (debug_backtrace):
7356         Be more defensive in handling bad values when printing.  Add code
7357         from trunk involving inhibit_non_essential_printing_operations.
7358         When going down or in debug_print(), don't do external conversion
7359         and such and try really, really hard when printing to avoid core
7360         dumping.  Add force-debugging-signal, debug_break().
7361
7362 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7363
7364         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7365         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7366
7367 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7368
7369         * database.c: Fix open_database. Berkeley DB API has changed in
7370         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7371
7372 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7373
7374         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7375
7376 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7377
7378         * event-Xt.c (Xt_timeout):
7379         (Xt_timeout_callback):
7380         (emacs_Xt_add_timeout):
7381         (emacs_Xt_remove_timeout):
7382         (Xt_timeout_to_emacs_event):
7383         Turn completed_timeouts from a stack into a queue.  Fixes
7384         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7385
7386 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7387
7388         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7389         * emacs.c (main): Assert that mmap'd allocation is disabled.
7390
7391 2002-10-14  Andy Piper  <andy@xemacs.org>
7392
7393         * glyphs-widget.c (layout_query_geometry): add in fiddle
7394         factor. Include border text in width layout calculation.
7395         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7396
7397 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7398
7399         * XEmacs 21.4.10 "Military Intelligence" is released.
7400
7401 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7402
7403         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7404         using the NAS private array SoundFileInfo that no longer exists in
7405         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7406         and earlier.  This is broken for some versions between 1.5a and
7407         1.5f.
7408
7409 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7410
7411         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7412
7413         * emacs.c (shut_down_emacs): Improve crash message.
7414
7415 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7416
7417         * file-coding.c (determine_real_coding_system): Check for coding
7418         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7419         shebangs and Python PEP 263.
7420
7421 2002-10-08  Andy Piper  <andy@xemacs.org>
7422
7423         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7424         if static sizes haven't been set.
7425
7426 2002-08-30  Mike Alexander  <mta@arbortext.com>
7427
7428         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7429         to close a socket.
7430
7431 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7432
7433         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7434
7435 2002-09-20  Mike Sperber <mike@xemacs.org>
7436
7437         (This partially gets back my patch from 2002-07-20 without the
7438         bug.)
7439         * callproc.c (child_setup): Remove Ben's comment noting confusion
7440         over the file descriptors >= 3: close_process_descs() doesn't
7441         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7442         * process-unix.c (unix_create_process): Call
7443         begin_dont_check_for_quit to inhibit unwanted interaction (and
7444         thus breaking of X event synchronicity) in the child.
7445
7446 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7447
7448         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7449         widget.
7450
7451 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7452
7453         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7454         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7455         the xemacs process did not exit, but looped infinitely here.  This
7456         fixes that problem.
7457
7458 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7459
7460         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7461         (find_context): Improve comments.
7462
7463         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7464         (re_match_2): An XCHAR_TABLE operation was missing.
7465
7466         Many of the following changes were inspired by Andy Piper's (now
7467         obsolete) patch to make syntax-table text property lookup optional.
7468
7469         [Documentation]
7470
7471         * syntax.h (top level): Document semantics of syntax flags.
7472         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7473         * syntax.c, syntax.h (top level): Document syntax cache better in
7474         comments.
7475
7476         [Instrument syntax caching (temporary change)]
7477
7478         * syntax.h (enum syntax_cache_statistics_functions, struct
7479         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7480         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7481         * syntax.c (scan_words, Fforward_comment, scan_lists,
7482         Fbackward_prefix_characters):
7483         * font-lock.c (find_context):
7484         Use them to instrument syntax caching. 
7485         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7486         syntax_cache_statistics_function_names): New type and variables.
7487         * syntax.c (update_syntax_cache): Update and report statistics.
7488
7489         [Major syntax cache optimizations]
7490
7491         syntax.c (lookup_syntax_properties): Default off.
7492
7493         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7494         * syntax.c (update_syntax_cache):
7495         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7496
7497         [Minor syntax cache optimizations and code clarifications]
7498
7499         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7500         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7501         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7502         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7503         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7504         (Code clarification.)
7505
7506         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7507         scan_lists): Compute code from syncode, use Boolean macros instead
7508         of redundant masking operations.  (Code clarification; any decent
7509         compiler can do this optimization.)
7510
7511         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7512         for clarity.
7513
7514         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7515         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7516         use F*_single_property_change instead of F*_extent_change.
7517         Currently F*_single_property_change is _much_ less efficient.
7518
7519         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7520         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7521         syntax_cache.object properly, don't leave Qt or Qnil.
7522         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7523         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7524         tests for Qt or Qnil.
7525
7526 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7527
7528         * redisplay.c (point_in_line_start_cache): 
7529         * extents.c (print_extent_1):
7530         Fix warnings.
7531
7532         * extents.c (Fset_extent_property): Document `syntax-table' property.
7533
7534         * extents.h (Fnext_single_property_change): EXFUN it.
7535
7536 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7537
7538         * search.c (clear_unused_search_regs): New static function.
7539         (search_buffer): 
7540         (simple_search): 
7541         (boyer_moore):
7542         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7543         Minor clarifications in comments.
7544
7545         * regex.c (re_match_2_internal): Ensure no stale submatches.
7546
7547 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7548
7549         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7550
7551 2002-08-29  Jerry James  <james@xemacs.org>
7552
7553         * lisp.h: structrures -> structures.
7554
7555 2002-06-03  Andy Piper  <andy@xemacs.org>
7556
7557         * frame.c (frame_conversion_internal): add conversion appropriate
7558         for setting frame dimensions in pixels.
7559
7560         * console.h (struct console_methods): add device-specific widget
7561         layout functions.
7562
7563         * emacs.c (main_1): initialize glyph vars.
7564
7565         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7566         (handle_focus_event_2): new function. Allow focus to
7567         be set to a particular window and widget.
7568         (enqueue_focus_event): new function. Create a
7569         synthetic focus event.
7570         (emacs_Xt_handle_magic_event): call
7571         handle_focus_event_2.
7572
7573         * frame.c (Fset_frame_pixel_height): new function. Allow
7574         pixel-based sizing. Does the right thing on character-oriented
7575         displays.
7576         (Fset_frame_pixel_width): ditto.
7577         (Fset_frame_pixel_size): ditto.
7578         (syms_of_frame): declare.
7579
7580         * general-slots.h: add :vertically-justify and
7581         :horizontally-justify.
7582
7583         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7584         (mswindows_widget_border_width): new function.
7585         (mswindows_combo_box_instantiate): set border widths.
7586         (console_type_create_glyphs_mswindows): declare.
7587
7588         * glyphs-widget.c:
7589         (check_valid_justification): allow vertical and horizontal
7590         justification.
7591         (widget_border_width): new function. Call device methods.
7592         (widget_instance_border_width): ditto.
7593         (logical_unit_height): new function. Determine the height of a
7594         logical-unit. Logical units are intended to provide grid-like
7595         layout for subcontrols in a layout. If the layout is
7596         :vertically-justify top then subcontrols will be positioned on
7597         logical-unit boundaries, thus allowing adjacent subcontrols to
7598         line up.
7599         (widget_logical_unit_height): ditto for widgets.
7600         (redisplay_widget): misc cleanup.
7601         (widget_spacing): new function. Call device specific
7602         methods. Intended to be the default gap between adjacent widgets.
7603         (widget_query_geometry): use new spacing functions to determine
7604         appropriate geometry.
7605         (initialize_widget_image_instance): initialize horizontal and
7606         vertical justification.
7607         (widget_instantiate): use logica-units where appropriate for
7608         sizing large widgets.
7609         (button_query_geometry): use widget_instance_border_width.
7610         (tree_view_query_geometry): ditto.
7611         (tab_control_query_geometry): ditto.
7612         (edit_field_query_geometry): new function.
7613         (layout_update): pick up :justify, :horizontally-justify and
7614         :vertically-justify none of which worked previously. :justify is
7615         used as a fallback for both horizontal and vertical justification.
7616         (layout_query_geometry): use logical units to size appropriately.
7617         (layout_layout): ditto.
7618         (Fwidget_logical_to_character_width): new function. Allow users to
7619         convert from logical units to characters so that frame sizes can
7620         be set appropriately.
7621         (Fwidget_logical_to_character_height): ditto.
7622         (syms_of_glyphs_widget): declare.
7623         (image_instantiator_edit_fields): add edit_field_query_geometry.
7624         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7625         :horizontally-justify.
7626         (specifier_vars_of_glyphs_widget): new function. Declare
7627         Vwidget_border_width which is not yet used.
7628
7629         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7630         (x_widget_border_width): new function.
7631         (x_widget_instantiate): create a sensible name for widgets.
7632         (console_type_create_glyphs_x): declare x_widget_border_width.
7633
7634         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7635         (struct Lisp_Image_Instance): add :vertically-justify and
7636         :horizontally-justify.
7637         (LAYOUT_JUSTIFY_TOP): new.
7638         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7639         (ROUND_UP): new macro. Round argument up to next integral
7640         interval.
7641
7642         * redisplay-output.c (redisplay_output_layout): misc formatting.
7643
7644         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7645
7646 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7647
7648         * XEmacs 21.4.9 "Informed Management" is released.
7649
7650 2002-08-19  Andy Piper  <andy@xemacs.org>
7651
7652         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7653         win32 format.
7654
7655         * realpath.c (xrealpath): normalize drive spec also so that dir
7656         sep chars are not mixed on cygwin.
7657
7658 2002-08-06  Jerry James  <james@xemacs.org>
7659
7660         * window.c (Fsplit_window): Count only half of the divider width
7661         against the left window when splitting horizontally. 
7662
7663 2002-06-24  Andy Piper  <andy@xemacs.org>
7664
7665         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7666         toolbar was cleared.
7667
7668         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7669         function. Split out from mswindows_output_frame_toolbars.
7670         (mswindows_output_frame_toolbars): move clear pieces to
7671         mswindows_output_frame_toolbars.
7672
7673         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7674         out from gtk_output_frame_toolbars.
7675         (gtk_output_frame_toolbars): move clear pieces to
7676         gtk_clear_frame_toolbars.
7677
7678         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7679         the frame is cleared. How this ever worked before is a mystery.
7680         (x_output_frame_toolbars): Only output toolbars.
7681         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7682
7683         * gutter.c (update_gutter_geometry):
7684         Mark frame layout changed.
7685         (update_frame_gutter_geometry, update_frame_gutters):
7686         Respect frame_layout_changed.
7687
7688         * console.h (struct console_methods): add
7689         clear_frame_toolbars_method.
7690
7691         * redisplay.c (redisplay_frame): call
7692         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7693
7694         * toolbar.h: declare update_frame_toolbars_geometry.
7695
7696         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7697         out from update_frame_toolbars.  Call clear_frame_toolbars.
7698         (update_frame_toolbars): only output, do not change geometry.
7699
7700         * redisplay.c: add frame_layout_changed.
7701
7702         * redisplay.h: add frame_layout_changed.
7703         (CLASS_RESET_CHANGED_FLAGS): set it.
7704         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7705         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7706         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7707
7708         * device.h (struct device): add frame_layout_changed.
7709         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7710
7711         * frame.h (struct frame): add frame_layout_changed.
7712         (MARK_FRAME_LAYOUT_CHANGED): new.
7713
7714 2002-06-30  Mike Alexander  <mta@arbortext.com>
7715
7716         * event-msw.c (mswindows_need_event): Don't wait for a new message
7717         if the queue is not empty.  Suggested by Paul Moore.
7718
7719 2002-06-12  Andy Piper  <andy@xemacs.org>
7720
7721         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7722         for printing on accurately.
7723
7724 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7725
7726         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7727         WM_ACTIVATE message. Make sure that the frame is visible if the
7728         window is visible. This seemss to fix the problem where XEmacs
7729         appears to freeze after switching desktops with certain virtual
7730         window managers.
7731         (debug_output_mswin_message): Added code to output message
7732         parameters for WM_WINDOWPOSCHANGED, 
7733         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7734
7735 2002-05-25  Andy Piper  <andy@xemacs.org>
7736
7737         * select-x.c (vars_of_select_x): Fix docstring of
7738         x-selection-strict-motif-ownership
7739
7740 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7741
7742         * keymap.c (get_keymap):
7743         Add comment about do_autoload GCPROs own args.
7744
7745 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7746
7747         * bytecode.c (execute_optimized_program): check_opcode ifdef
7748         ERROR_CHECK_BYTE_CODE.
7749
7750 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7751
7752         Thanks to Ben Wing and Michael Sperber.
7753
7754         * eval.c (Fcommand_execute):
7755         (Feval):
7756         (Ffuncall):
7757         (Fmacroexpand_internal):
7758         (function_argcount):
7759         callint.c (Fcall_interactively):
7760         Add comment about do_autoload GCPROs own args.
7761
7762         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7763
7764         * eval.c (Ffuncall): Extra braces to placate GCC.
7765
7766 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7767
7768         * backtrace.h (grow_specpdl):
7769         (SPECPDL_RESERVE):
7770         * EmacsFrame.c (EmacsFrameSetValues):
7771         * eval.c (grow_specpdl):
7772         * ExternalShell.c (hack_event_masks_1):
7773         * glyphs-x.c (convert_EImage_to_XImage): 
7774         (x_finalize_image_instance):
7775         * ralloc.c (page_size):
7776         (r_alloc_sbrk):
7777         * xgccache.c (gc_cache_hash):
7778         Fix unsigned comparison warnings.
7779
7780 2002-07-29  Jerry James  <james@xemacs.org>
7781
7782         * lread.c (locate_file): Any nonnegative return value indicates
7783         success if MODE is nonnegative.
7784
7785 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7786
7787         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7788         argument. 
7789
7790 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7791
7792         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7793
7794         * dumper.c (pdump_get_indirect_count):
7795         (pdump_scan_by_alignment):
7796         (pdump_dump_root_struct_ptrs):
7797         (pdump_dump_rtables):
7798         (pdump_dump_root_objects):
7799         (pdump):
7800         * nas.c (WaveOpenDataForReading):
7801         * fns.c (print_bit_vector):
7802         * font-lock.c (SINGLE_SYNTAX_STYLE):
7803         * glyphs.c (check_for_ignored_expose):
7804         (find_matching_subwindow):
7805         * glyphs-eimage.c:
7806         * imgproc.c (get_histogram):
7807         * redisplay.c (point_in_line_start_cache):
7808         * redisplay-output.c (redisplay_unmap_subwindows):
7809         * symbols.c (defsymbol_massage_name_1):
7810         (defkeyword_massage_name):
7811         (deferror_massage_name_and_message):
7812         * redisplay-x.c (x_output_string): 
7813         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7814         * frame.h (struct frame):
7815         * filelock.c (current_lock_owner):
7816         * doprnt.c (emacs_doprnt_1):
7817         * lisp.h (struct Lisp_Bit_Vector):
7818         (DO_REALLOC):
7819         Fix warnings.
7820
7821 2002-02-13  Ben Wing  <ben@xemacs.org>
7822
7823         * event-stream.c (reset_key_echo):
7824         * event-stream.c (reset_this_command_keys):
7825         * event-stream.c (execute_command_event):
7826         If console is dead as a result of C-x 5 0, then post-command stuff
7827         needs to be careful and do only non-console-specific stuff.
7828
7829 2002-07-01  Mike Sperber <mike@xemacs.org>
7830
7831         * process-unix.c (unix_send_process): Mark coding_outstream as
7832         non-open upon SIGPIPE.
7833
7834         * event-stream.c (Fnext_event): Reorder switch cases to something
7835         that makes sense.
7836
7837 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7838
7839         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7840         Don't bogusly reinitialize ascii_character property.
7841
7842 2002-07-08  Mike Sperber <mike@xemacs.org>
7843
7844         * process.c (Fstart_process_internal): Do error checking before we
7845         fork off the child, so the child can't muck with the state of the
7846         parent.
7847
7848 2002-07-08  Mike Sperber <mike@xemacs.org>
7849
7850         * ralloc.c (init_ralloc): Allocate properly for pdump.
7851
7852 2002-06-12  Andy Piper  <andy@xemacs.org>
7853
7854         * glyphs.c (query_string_geometry): check the string.
7855
7856         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7857         widget names.
7858
7859 2002-06-17  Jerry James  <james@xemacs.org>
7860
7861         * sysdll.c: Remove RTLD_GLOBAL initialization.
7862         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7863
7864 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7865
7866         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7867
7868 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7869
7870         * sysdep.c (sys_rename): Make sys_rename work for the case where
7871         Windows rename sets errno to EACCES if target file exists.
7872
7873 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7874
7875         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7876         Fix detection of metric units to work on Win95
7877
7878 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7879
7880         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7881
7882 2002-04-25  Andy Piper  <andy@xemacs.org>
7883
7884         * redisplay.c (create_text_block): Remove extra comment trailer.
7885
7886 2002-04-24  Andy Piper  <andy@xemacs.org>
7887
7888         * redisplay.c (create_text_block): Don't actually add propagation
7889         data if the line ends after we have added a glyph.
7890
7891 2002-04-22  Andy Piper  <andy@xemacs.org>
7892
7893         * extents.c (extent_fragment_update): check for glyphs we have
7894         previously displayed.
7895         * extents.c (print_extent_1): warning removal.
7896         * extents.h: change prototype.
7897         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7898         widths correctly for wide glyphs.
7899         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7900         * redisplay.c (prop_type): add PROP_GLYPH.
7901         * redisplay.c (struct prop_block): add glyph type
7902         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7903         to the propagation data.
7904         * redisplay.c (create_text_block): if there is a glyph in the
7905         propagation data use it to salt extent_fragment_update.
7906         * redisplay.c (create_string_text_block): ditto.
7907
7908 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7909
7910         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7911         * redisplay-output.c (compare_runes): Compare them.
7912         * redisplay.c: Update copyright date.
7913         * redisplay.c (pos_data): Add need_baseline_computation field.
7914         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7915         need_baseline_computation; zero yoffset. Set max_pixmap_height
7916         for all pixmaps, not just automatically positioned ones.
7917         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7918         * redisplay.c (calculate_baseline): New, compute textual baseline.
7919         * redisplay.c (add_glyph_rune): Call them.
7920         * redisplay.c (create_text_block): Likewise.
7921         * redisplay.c (create_overlay_glyph_block): Likewise.
7922         * redisplay.c (add_margin_runes): Likewise.
7923         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7924
7925         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7926         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7927         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7928         * redisplay-msw.c (mswindows_output_string): Likewise.
7929         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7930         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7931         * redisplay-x.c (x_output_display_block): Likewise.
7932
7933 2002-03-28  Ben Wing  <ben@xemacs.org>
7934
7935         * redisplay.c: Fixed bug in redisplay
7936         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7937         and down of the lines, since they're bigger than the line
7938         size. (It was seen most obviously when there's a horizontal scroll
7939         bar, e.g. do C-h a glyph or something like that.) The problem was
7940         that the glyph-contrib-p setting on glyphs was ignored even if it
7941         was set properly, which it wasn't until now.
7942
7943 2002-04-24  Andy Piper  <andy@xemacs.org>
7944
7945         * lisp.h (Dynarr_end): Fix definition.
7946
7947 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7948
7949         * redisplay.c (mark_redisplay): Remove call to
7950         update_frame_window_mirror.
7951
7952 2001-11-15  Andy Piper  <andy@xemacs.org>
7953
7954         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7955         cygwin (again).
7956
7957 2002-02-13  Andy Piper  <andy@xemacs.org>
7958
7959         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7960         we did in fact enqueue the XM_MAPFRAME event.
7961
7962 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7963
7964         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7965         to fix problem switching between virtual desktops under virtuawin
7966         virtual window manager.
7967
7968 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7969
7970         * event-msw.c: Typo fix.
7971         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7972         magic XM_MAPFRAME event has been sent.
7973
7974 2001-11-23  Andy Piper  <andy@xemacs.org>
7975
7976         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7977
7978 2001-11-21  Andy Piper  <andy@xemacs.org>
7979
7980         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7981         mouse events outside the frame.
7982
7983 2002-03-20  Andy Piper  <andy@xemacs.org>
7984
7985         * menubar-msw.c (mswindows_popup_menu): warning removal.
7986         * dialog-msw.c (dialog_popped_down): ditto.
7987
7988 2001-12-11  Andy Piper  <andy@xemacs.org>
7989
7990         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7991         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7992         popup_up_p.
7993         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7994         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7995         * menubar-msw.c (mswindows_popup_menu): ditto.
7996
7997 2001-10-29  Andy Piper  <andy@xemacs.org>
7998
7999         * dialog-msw.c (handle_directory_dialog_box): quit if the user
8000         cancels.
8001
8002 2002-01-03  Andy Piper  <andy@xemacs.org>
8003
8004         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
8005         letters.
8006         (xrealpath): ditto.
8007
8008 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
8009
8010         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
8011         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
8012         * device-msw.c (mswindows_handle_page_setup_dialog_box):
8013         Detect and handle case where machine is set up for metric units
8014
8015 2002-04-02  Andy Piper  <andy@xemacs.org>
8016
8017         * dired-msw.c (mswindows_get_files): 
8018         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
8019         completely handled by XEmacs. Suggested by Thomas Vogler
8020         <mail@thomas-vogler.de>.
8021
8022 2001-11-14  Andy Piper  <andy@xemacs.org>
8023
8024         * nt.c (REG_ROOT): change registry key to XEmacs.
8025
8026 2002-04-27  Andy Piper  <andy@xemacs.org>
8027
8028         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
8029
8030 2002-04-26  Andy Piper  <andy@xemacs.org>
8031
8032         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
8033         behavior.
8034
8035 2002-03-14  Mike Alexander  <mta@arbortext.com>
8036
8037         * event-msw.c (mswindows_unwait_process): New, remove process from
8038         wait list
8039         * process-nt.c (nt_finalize_process_data): Call
8040         mswindows_unwait_process
8041         * console-msw.h: Declare mswindows_unwait_process
8042
8043 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
8044
8045         * editfns.c (Fdecode_time):
8046         (Fformat_time_string):
8047         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
8048         (make_time): Warning elimination (change arg name).
8049
8050 2001-11-24  Andy Piper  <andy@xemacs.org>
8051
8052         * window.c (Fsplit_window): Doc return type.
8053
8054 2002-04-01  Andy Piper  <andy@xemacs.org>
8055
8056         * emacs.c (Fkill_emacs): Only output message box in interactive
8057         mode.
8058
8059 2002-04-26  Andy Piper  <andy@xemacs.org>
8060  
8061         * config.h.in: pull in 21.5.x change to stop alloca warnings under
8062         cygwin.
8063
8064 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
8065
8066         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
8067         bit platform.
8068
8069 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
8070
8071         * XEmacs 21.4.8 "Honest Recruiter" is released.
8072
8073 2002-05-07  Nix  <nix@esperi.demon.co.uk>
8074
8075         Supersedes 2002-04-17 patch.
8076
8077         * process.h (PROCESS_LIVE_P): Use the process status as
8078         evidence of health, not the state of the input stream.
8079         (PROCESS_READABLE_P): Say if the process is readable
8080         from. (It may be dead nonetheless.)
8081         (CHECK_READABLE_PROCESS): Test for that condition.
8082
8083         * process.c (create_process): Use PROCESS_READABLE_P.
8084         (read_process_output, set_process_filter): Likewise.
8085
8086         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
8087         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
8088
8089         This code is #if 0'd, this is not the time to add new functions:
8090
8091         * process.c (Fprocess_readable_p): Report readability status.
8092         * process.c (Qprocess_readable_p): New, associated symbol...
8093         * process.c (syms_of_process): ... initialize it.
8094
8095 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
8096
8097         * XEmacs 21.4.7 "Economic Science" is released.
8098
8099 2002-04-17  Nix  <nix@esperi.demon.co.uk>
8100
8101         * process.h (PROCESS_LIVE_P): Use the process status as
8102         evidence of health, not the state of the input stream.
8103
8104 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
8105
8106         * sysdep.c (sys_siglist): change "signum" to "signal"
8107
8108 2001-04-21  Martin Buchholz  <martin@xemacs.org>
8109
8110         * s/darwin.h: New file.
8111         Thanks to Greg Parker <gparker@cs.stanford.edu>.
8112         
8113 2002-04-23  Andreas Jaeger  <aj@suse.de>
8114
8115         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
8116         which use lib64 for 64-bit libs.
8117         (START_FILES): Likewise.
8118
8119 2002-02-11  Mike Sperber  <mike@xemacs.org>
8120
8121         * device-x.c: 
8122         (x_IO_error_handler):
8123         (x_init_device): Temporarily keep device in static variable
8124         `device_being_initialized' so we can recover gracefully from
8125         internal XOpenDevice failure.  (XOpenDevice is documented to
8126         return NULL on failure, but sometimes calls the IO error handler
8127         instead.)
8128
8129 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
8130
8131         * dired.c (Ffile_name_all_completions): Change documentation --
8132         remove reference to completion-ignored-extensions.
8133         * dired.c (vars_of_dired): Change documentation for
8134         completion-ignored-extensions -- remove reference to
8135         file-name-all-completions.
8136
8137 2002-03-06  Jerry James  <james@xemacs.org>
8138
8139         * emodules.c (emodules_load): Fix multiple loading of same module.
8140
8141 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
8142         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
8143         RTLD_LAZY to avoid incorrect symbol binding when using nested
8144         shared libraries on Solaris.
8145
8146 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
8147
8148         * fileio.c (Ffind_file_name_handler): Improve docstring.
8149
8150 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
8151
8152         * fns.c (Fmapconcat): Improve docstring.
8153
8154 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
8155
8156         * device-gtk.c: Add prototype for
8157         emacs_gtk_selection_clear_event_handle.
8158         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
8159         selection.  Setup signal handler for "selection_clear_event"
8160         (emacs_gtk_selection_clear_event_handle).
8161
8162         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
8163         other applications owning the clipboard (based on
8164         x_handle_selection_clear).
8165
8166 2001-12-23  William M. Perry  <wmperry@gnu.org>
8167
8168         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
8169         
8170 2002-01-04  Martin Buchholz  <martin@xemacs.org>
8171
8172         * keymap.c (define_key_alternate_name): Parenthesize EQ.
8173
8174 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
8175
8176         * XEmacs 21.4.6 "Common Lisp" is released.
8177
8178 2001-12-16  Torsten Duwe  <duwe@caldera.de>
8179
8180         * search.c (Freplace_match): Add missing sub-expression functionality.
8181
8182         * buffer.c (decode_buffer): Add a check for pointer type to
8183         decode_buffer, before gcc's CSE optimization reorders a
8184         dereference in front of the allow_string test.
8185
8186 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
8187
8188         * window.c (window_loop): Fix bug that sometimes prevented
8189         window_loop() from iterating across multiple devices.  Also, at
8190         Ben's request, changed infloop-detecting code to abort() instead
8191         of silently terminating window_loop().
8192
8193 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
8194
8195         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
8196         * editfns.c (make_time): New function.
8197         (Fencode_time): Use it instead of wasteful_word_to_lisp.
8198         * lisp.h (make_time): Prototype and comment it.
8199         * dired.c (wasteful_word_to_lisp): Deprecate.
8200         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8201
8202 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
8203
8204         * fileio.c (auto_save_1): Use current coding system, not
8205         escape-quoted.
8206
8207 2001-11-13  Ben Wing  <ben@xemacs.org>
8208
8209         * window.c:
8210         * window.c (window_truncation_on):
8211         * window.c (syms_of_window):
8212         truncate-partial-width-windows should respect the buffer being
8213         displayed, like other redisplay vars.
8214
8215 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8216
8217         * event-stream.c (Fread_key_sequence): save current buffer.
8218
8219 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8220
8221         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8222
8223 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8224
8225         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8226
8227 2001-10-26  Mike Alexander  <mta@arbortext.com>
8228
8229         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8230
8231 2001-10-25  Andy Piper  <andy@xemacs.org>
8232
8233         * ChangeLog:
8234         * dialog-msw.c (handle_directory_proc): new function.
8235          (handle_directory_dialog_box): new fucntion.
8236          (handle_file_dialog_box): use new directory dialog support.
8237          (mswindows_make_dialog_box_internal): ditto.
8238         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8239         handling.
8240         (mswindows_find_frame): make global.
8241         * fileio.c (Fexpand_file_name): build fix.
8242         * general-slots.h: add Qdirectory.
8243         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8244         handling.
8245         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8246         cygwin not leaving win32 paths unchanged.
8247         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8248         cygwin runtime to do path conversion.
8249         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8250         (syms_of_win32): add new function.
8251         * window.c (window_loop): build fix.
8252
8253 2001-10-15  Andy Piper  <andy@xemacs.org>
8254
8255         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8256
8257 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8258
8259         * XEmacs 21.4.5 "Civil Service" is released.
8260
8261 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8262
8263         * glyphs-x.c: Force buffer-tab highlight update when moving the
8264         buffer, avoiding an ugly black border, used for keyboard focus
8265         indication, on a widget that can never have keyboard focus, the
8266         buffer tab.
8267
8268 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8269
8270         * process-unix.c (unix_open_multicast_group): Remove too much
8271         conversion between host and network byte order.
8272
8273 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8274
8275         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8276         before replacing them.
8277
8278         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8279         operation.
8280
8281         * src/window.c (undedicate_windows): Use it.
8282         * src/window.h: Add prototype.
8283
8284 2001-09-17  Ben Wing  <ben@xemacs.org>
8285
8286         * fileio.c (normalize_filename):
8287         * fileio.c (Fexpand_file_name):
8288         Fix various C++ compile errors in Andy's recent code.
8289         
8290         * callint.c (Fcall_interactively):
8291         * editfns.c (Ftemp_directory):
8292         * editfns.c (Fuser_full_name):
8293         * emacs.c (argmatch):
8294         * lread.c (locate_file_map_suffixes):
8295         * redisplay-x.c (x_ring_bell):
8296         Fix sign-compare warnings.
8297         
8298 2001-09-08  Andy Piper  <andy@xemacs.org>
8299
8300         * fileio.c (normalize_filename): copied from nt.c
8301         * (Ffile_name_directory): enable win32 paths under cygwin.
8302         * (Ffile_name_nondirectory): ditto.
8303         * (directory_file_name): ditto.
8304         * (Fexpand_file_name): ditto.
8305         * (Ffile_truename): ditto.
8306         * (Fsubstitute_in_file_name): ditto.
8307         * (Ffile_name_absolute_p): ditto.
8308         * (Ffile_readable_p): ditto.
8309
8310 2001-09-08  Andy Piper  <andy@xemacs.org>
8311
8312         * device-msw.c (mswindows_finish_init_device): remove dde
8313         initialization.
8314         * device-msw.c (mswindows_init_dde): factor out from
8315         mswindows_finish_init_device()
8316         * device-msw.c (init_mswindows_very_early): new function
8317         initialize but don't enable dde.
8318         * emacs.c (main_1): call init_mswindows_very_early.
8319         * event-msw.c:
8320         * event-msw.c (mswindows_dde_callback): only execute when we are
8321         ready.
8322         * symsinit.h: declare init_mswindows_very_early.
8323
8324 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8325
8326         [sjt: This has been in 21.5 for months with no complaints.]
8327
8328         * console.h (struct console_methods): Added flags member.
8329         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8330         (CONMETH_IMPL_FLAG):
8331         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8332         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8333
8334         * device.c (window_system_pixelated_geometry): Use the above macros.
8335
8336         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8337         implememntation flag.
8338         * device.h (DEVICE_DISPLAY_P): Use it.
8339
8340         * frame.c (delete_frame_internal): Use the above macro.
8341
8342         * redisplay.c (redisplay_device): Use it.
8343         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8344         (redisplay_frame): Ditto.
8345
8346         * device-msw.c (mswindows_device_implementation_flags): Removed.
8347         (msprinter_device_implementation_flags): Removed.
8348         (console_type_create_device_mswindows): Removed references to
8349         implementation_flags methods, set implementation flags here.
8350         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8351
8352         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8353         (console_type_create_device_gtk): Removed method declaration.
8354         Added commented out statement which semantically matches the
8355         commented out statement in the above removed method.
8356
8357 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8358
8359         The attached patch fixes a few warnings. 
8360
8361         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8362         * src/frame-gtk.c: guard against GNOME calls in GTK only
8363         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8364         * src/select-gtk.c: prototype lisp_to_time
8365
8366 2001-06-08  Ben Wing  <ben@xemacs.org>
8367
8368         ------ gc-in-window-procedure fixes ------
8369         
8370         * alloc.c:
8371         * alloc.c (struct post_gc_action):
8372         * alloc.c (register_post_gc_action):
8373         * alloc.c (run_post_gc_actions):
8374         * alloc.c (garbage_collect_1):
8375         Create "post-gc actions", to avoid those dreaded "GC during window
8376         procedure" problems.
8377
8378         * event-msw.c:
8379         Abort, clean and simple, when GC in window procedure.  We want
8380         to flush these puppies out.
8381
8382         * glyphs-msw.c:
8383         * glyphs-msw.c (finalize_destroy_window):
8384         * glyphs-msw.c (mswindows_finalize_image_instance):
8385         Use a post-gc action when destroying subwindows.
8386
8387         * lisp.h:
8388         Declare register_post_gc_action().
8389
8390         * scrollbar-msw.c:
8391         * scrollbar-msw.c (unshow_that_mofo):
8392         Use a post-gc action when unshowing scrollbar windows, if in gc.
8393
8394         * redisplay.c (mark_redisplay):
8395         Add comment about the utter evilness of what's going down here.
8396
8397         ------ cygwin setitimer fixes ------
8398         
8399         * Makefile.in.in (sheap_objs):
8400         * Makefile.in.in (profile_objs):
8401         * Makefile.in.in (objs):
8402         Compile profile.c only when HAVE_SETITIMER.
8403         
8404         * nt.c (mswindows_sigset):
8405         * nt.c (mswindows_sighold):
8406         * nt.c (mswindows_sigrelse):
8407         * nt.c (mswindows_sigpause):
8408         * nt.c (mswindows_raise):
8409         * nt.c (close_file_data):
8410         Style fixes.
8411         
8412         * nt.c:
8413         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8414         
8415         * profile.c:
8416         * profile.c (Fstart_profiling):
8417         * profile.c (Fstop_profiling):
8418         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8419         instead of just plain setitimer().
8420         
8421         * signal.c:
8422         * signal.c (set_one_shot_timer):
8423         * signal.c (alarm):
8424         Define qxe_setitimer() as an encapsulation around setitimer() --
8425         call setitimer() directly unless Cygwin or MS Win, in which case
8426         we use our simulated version in win32.c.
8427         
8428         * systime.h:
8429         * systime.h (struct itimerval):
8430         * systime.h (ITIMER_REAL):
8431         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8432         comment about "qxe" and the policy regarding encapsulation.
8433
8434         * win32.c:
8435         * win32.c (setitimer_helper_proc):
8436         * win32.c (setitimer_helper_period):
8437         * win32.c (setitimer_helper):
8438         * win32.c (mswindows_setitimer):
8439         Move setitimer() emulation here, so Cygwin can use it.
8440         Rename a couple of functions and variables to be longer and more
8441         descriptive.  In setitimer_helper_proc(), send the signal
8442         using either mswindows_raise() or (on Cygwin) kill().  If for
8443         some reason we are still getting lockups, we'll change the kill()
8444         to directly invoke the signal handlers.
8445
8446         ------ windows shell fixes ------
8447         
8448         * callproc.c:
8449         * ntproc.c:
8450         Comments about how these two files must die.
8451
8452         * callproc.c (init_callproc):
8453         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8454         not just COMSPEC. (more correct and closer to FSF.) Don't
8455         force a value for SHELL into the environment. (Comments added
8456         to explain why not.)
8457         
8458         * nt.c (init_user_info):
8459         Don't shove a fabricated SHELL into the environment.  See above.
8460
8461 2001-06-01  Ben Wing  <ben@xemacs.org>
8462
8463         * Makefile.in.in (ldflags):
8464         eliminate that pesky "defaulting to 00401000" warning.
8465         * nt.h:
8466         eliminate warnings.
8467
8468 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8469
8470         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8471         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8472
8473 2001-04-24  Jerry James <james@xemacs.org>
8474
8475         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8476         correct order.
8477
8478 2001-06-01  Ben Wing  <ben@xemacs.org>
8479
8480         * event-msw.c (debug_mswin_messages):
8481         conditionalize the messages that were causing compile errors.
8482         (if only macros could generate #ifdef statements ...)
8483
8484 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8485
8486         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8487
8488 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8489
8490         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8491
8492 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8493
8494         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8495         * process-unix.c (unix_canonicalize_host_name):
8496         sysdep.c (init_system_name):
8497         Use it to conditionally support IPv6 canonicalization.
8498
8499 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8500
8501         * event-msw.c:
8502         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8503
8504 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8505
8506         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8507         attempt is made to scroll when no scroll bar is available.
8508
8509 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8510
8511         * input-method-motif.c (XIM_delete_frame): New callback.
8512         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8513         got deleted from 21.4.3.)
8514
8515 2001-06-01  Ben Wing  <ben@xemacs.org>
8516
8517         * nt.c (mswindows_utime):
8518         * nt.c (close_file_data):
8519         fix off-by-one-indirection error.
8520
8521 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8522
8523         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8524         because set_file_times() now takes Lisp_Object path, instead of
8525         char*.
8526         * nt.c: Include buffer.h.
8527         * nt.c (convert_from_time_t): New.
8528         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8529         not set mtime correctly.
8530         * nt.h: Declare mswindows_utime().
8531         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8532         path, instead of char*.
8533         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8534
8535 2001-05-30  Ben Wing  <ben@xemacs.org>
8536
8537         For 21.4:
8538
8539         (Stephen, just take all event-msw.c patches.  This includes
8540         the "iconify" fix below.)
8541
8542         * event-msw.c:
8543         * event-msw.c (mswindows_dequeue_dispatch_event):
8544         * event-msw.c (assert):
8545         * event-msw.c (emacs_mswindows_quit_p):
8546         * event-msw.c (debug_mswin_messages):
8547         * event-msw.c (debug_output_mswin_message):
8548         * event-msw.c (vars_of_event_mswindows):
8549         Fix yet more problems with C-g handling.
8550         Implement debug-mswindows-events.
8551         
8552 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8553
8554         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8555         
8556 2001-05-23  Ben Wing  <ben@xemacs.org>
8557
8558         * event-msw.c (winsock_writer):
8559         * event-msw.c (winsock_closer):
8560         prior kludgy code was clobbering the buffer, thinking it was
8561         "unused" space to store an unneeded return value; instead, use
8562         the variable we've already got staring us in the face.
8563
8564 2001-05-17  Andy Piper  <andy@xemacs.org>
8565
8566         * sysfile.h: don't assume that file attributes are boolean
8567
8568 2001-05-23  Ben Wing  <ben@xemacs.org>
8569
8570         * device-msw.c (msprinter_init_device):
8571         signal an error rather than crash with an unavailable network
8572         printer (from Mike Alexander).
8573         
8574         * event-msw.c:
8575         * event-msw.c (struct winsock_stream):
8576         * event-msw.c (winsock_writer):
8577         * event-msw.c (winsock_closer):
8578         * event-msw.c (make_winsock_stream_1):
8579         cleanup headers.  fix (hopefully) an error with data corruption
8580         when sending to a network connection.
8581
8582         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8583         to handle the ~user prefix by (a) always assuming we're referencing
8584         ourselves and not even verifying the user -- hence any file with
8585         a tilde as its first char is invalid! (b) if there wasn't a slash
8586         following the filename, the pointer was set *past* the end of
8587         file and we started reading from uninitialized memory.  Now we
8588         simply treat these as files, always.
8589
8590         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8591         
8592 2001-05-19  Ben Wing  <ben@xemacs.org>
8593
8594         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8595
8596         * process-nt.c:
8597         * process-nt.c (vars_of_process_nt):
8598         remove unused mswindows-quote-process-args.  rec for 21.4.
8599         
8600 2001-05-12  Ben Wing  <ben@xemacs.org>
8601
8602         * event-msw.c (mswindows_dde_callback):
8603         * event-msw.c (mswindows_wnd_proc):
8604         eliminate cygwin warnings.
8605
8606 2001-05-06  Ben Wing  <ben@xemacs.org>
8607
8608         * console-msw.h:
8609         * device-msw.c:
8610         * device-msw.c (print_dialog_worker):
8611         * device-msw.c (mswindows_handle_print_dialog_box):
8612         * device-msw.c (syms_of_device_mswindows):
8613         * dialog-msw.c (mswindows_make_dialog_box_internal):
8614         * general-slots.h:
8615         implement printing the selection when it's selected.
8616
8617 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8618
8619         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8620
8621 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8622
8623         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8624         EMACS_INT is signed.
8625
8626 2001-04-15  Michael Lausch  <mla@1012surf.net>
8627
8628         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8629         gtk_widget_request_size() to give scrollbar >0 width for
8630         GTK >1.2.8.
8631
8632 2001-05-30  William M. Perry  <wmperry@gnu.org>
8633
8634         * event-gtk.c: Check for buttons as modifier keys.
8635
8636 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8637
8638         * s\mingw32.h:
8639         Properly find MinGW's <process.h> inside Cygwin's restructured
8640         include directories.  Don't try to include <cygwin/version.h>
8641         since we are dropping support for MinGW in versions of Cygwin
8642         earlier than b21.
8643         * nt.c:
8644         Drop support for MinGW in versions of Cygwin before b21.
8645         * sysdep.c:
8646         Properly find MinGW's <process.h> inside Cygwin's restructured
8647         include directories.
8648         * syswindows.h:
8649         Drop support for MinGW in versions of Cygwin before b21.
8650         * unexcw.c:
8651         Even though a.out.h is no longer detected by configure, allow
8652         MinGW to use it until we figure out how to do the job with Win32.
8653
8654 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8655
8656         * syntax.c (find_start_of_comment):
8657         Fix `unbalanced parentheses' bug when dealing with mixed comment
8658         styles in c++/java/etc. mode
8659
8660 2001-05-29  Mike Alexander  <mta@arbortext.com>
8661
8662         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8663         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8664
8665 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8666
8667         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8668
8669 2001-03-31  Mike Sperber <mike@xemacs.org>
8670
8671         * search.c (Freplace_match): Support FSF-style specification of
8672         match subexpression when applied to a buffer.
8673
8674 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8675
8676         * event-stream.c (is_scrollbar_event): add missing semicolon
8677
8678 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8679
8680         * Makefile.in.in: Use TAR macro instead of hardcoding
8681           tar.  Allows use of GNU tar instead of system tar
8682
8683 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8684
8685         * event-stream.c (is_scrollbar_event): add missing semicolon
8686
8687 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8688
8689         * XEmacs 21.4.3 "Academic Rigor" is released.
8690
8691 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8692
8693         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8694
8695 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8696
8697         * buffer.c (Vcase_fold_search): Remove obsolete
8698           comment about non ASCII case-fold-search.  This
8699           bug has been fixed by case-table changes.
8700
8701 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8702
8703         * event-msw.c: Restore include of events-mod.h.
8704
8705 2001-04-22   zhaoway  <zw@debian.org>
8706
8707         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8708         !HAVE_SCROLLBARS.
8709
8710 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8711
8712         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8713
8714 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8715
8716         * mule-charset.c (Fmake_charset): Add missing else.
8717
8718 2001-04-23  Ben Wing  <ben@xemacs.org>
8719
8720         * event-msw.c (FAKE_MOD_QUIT):
8721         * event-msw.c (mswindows_dequeue_dispatch_event):
8722         * event-msw.c (mswindows_wnd_proc):
8723         * event-msw.c (emacs_mswindows_quit_p):
8724         Get critical quit working.
8725
8726 2001-05-05  Ben Wing  <ben@xemacs.org>
8727
8728         * console-msw.h:
8729         * device-msw.c:
8730         * device-msw.c (mswindows_get_default_margin):
8731         * frame-msw.c (mswindows_size_frame_internal):
8732         * frame-msw.c (msprinter_init_frame_1):
8733         * frame-msw.c (vars_of_frame_mswindows):
8734         Change top/bottom margin defaults to 0.5 inches.
8735
8736 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8737
8738         Fix link error with gcc 3.0 on Linux.
8739         * terminfo.c (UP): Remove.
8740         * terminfo.c (BC): Remove.
8741         * terminfo.c (PC): Remove.
8742         They weren't used, and in any case, these symbols should be
8743         defined in the *library*.
8744
8745 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8746
8747         * s/aix4.h: Fix crash with xlc -O3.
8748         Improve comment explaining how -O3 works.
8749
8750 2001-04-15  Ben Wing  <ben@xemacs.org>
8751
8752         * event-stream.c:
8753         * event-stream.c (Fnext_event):
8754         * event-stream.c (is_scrollbar_event):
8755         * event-stream.c (execute_command_event):
8756         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8757         crash' problem.  His fix introduces other problems.  We filter
8758         out scrollbar events specifically, making them somewhat invisible
8759         to command-building, and not appearing in `this-command-keys'.
8760         More work is still needed (see comments in event-stream.c), but
8761         this fixes all the major problems.
8762
8763 2001-04-20  Ben Wing  <ben@xemacs.org>
8764
8765         * .cvsignore: Added stuff for Windows.
8766
8767 2001-04-28  Ben Wing  <ben@xemacs.org>
8768
8769         * buffer.c (Ferase_buffer):
8770         * editfns.c (buffer_insert1):
8771         * editfns.c (Finsert_before_markers):
8772         * editfns.c (Finsert_string):
8773         * editfns.c (Finsert_char):
8774         * editfns.c (Fdelete_region):
8775         * editfns.c (Fwiden):
8776         * editfns.c (Fnarrow_to_region):
8777         remove bogus lines setting zmacs_region_stays to 0.
8778         
8779 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8780
8781         * process-unix.c (unix_open_network_stream): If connect() fails
8782         invalidate file descriptor after closing it.
8783
8784 2001-03-08  Mike Alexander  <mta@arbortext.com>
8785
8786         * event-msw.c (mswindows_need_event_in_modal_loop):
8787         Don't dispatch a message if we didn't get one.
8788         (mswindows_need_event):
8789         Terminate the correct process when one exits instead of the first
8790         one on Vprocess_list and look for process termination when in
8791         mswindows_protect_modal_loop.
8792
8793 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8794
8795         * XEmacs 21.4.1 "Copyleft" is released.
8796
8797 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8798
8799         * input-method-motif.c (XIM_delete_frame): New callback.
8800         (XIM_init_frame): Register it.
8801
8802 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8803
8804         * XEmacs 21.4.0 "Solid Vapor" is released.
8805
8806 2001-04-15  Ben Wing  <ben@xemacs.org>
8807
8808         * cmdloop.c (call_command_loop):
8809         Fix braino in bit-rotting code.
8810         
8811 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8812
8813         * extents.c (Fset_extent_endpoints): Force creation of extent info
8814         in buffer_or_string.
8815
8816         * extents.c (process_extents_for_insertion_mapper): Correctly
8817         check for open-open zero-length extents.
8818
8819 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8820
8821         * lisp.h: New typedefs Memory_count, Element_count.
8822         * regex.c:
8823         * regex.h:
8824         Sign-compare warning elimination: several unsigned -> signed.
8825         Based on work by Ben Wing <ben@xemacs.org>.
8826
8827 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8828
8829         * XEmacs 21.2.47 "Zephir" is released.
8830
8831 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8832
8833         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8834
8835 2001-04-03  Mike Sperber <mike@xemacs.org>
8836
8837         * search.c: Revert previous patch due because of release.
8838
8839 2001-03-30  Ben Wing  <ben@xemacs.org>
8840
8841         * s\cygwin32.h:
8842         Add missing killpg prototype.
8843
8844         * elhash.c:
8845         Add a comment about fixing problems when a new entry is added
8846         while mapping.
8847
8848         * frame-msw.c (mswindows_init_frame_1):
8849         Fix compile warnings.
8850
8851         * menubar.c (vars_of_menubar):
8852         Provide `menu-accelerator-support' to indicate that we properly
8853         support %_ in menu specifications, so that package code can
8854         conditionalize on this (and remove %_ from menu specifications
8855         on older versions).
8856
8857         * event-msw.c:
8858         * scrollbar-msw.c:
8859         * scrollbar-msw.c (can_scroll):
8860         * scrollbar-msw.h:
8861         Fix handling of mouse wheel under Windows to follow standards --
8862         now scrolls window under pointer, not selected window.
8863
8864 2001-03-31  Mike Sperber <mike@xemacs.org>
8865
8866         * search.c (Freplace_match): Support FSF-style specification of
8867         match subexpression when applied to a buffer.
8868
8869 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8870
8871         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8872         function to modify KEYMAP, so map over a copy of the hash table.
8873
8874 2001-03-21  Martin Buchholz <martin@xemacs.org>
8875
8876         * XEmacs 21.2.46 "Urania" is released.
8877
8878 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8879
8880         * realpath.c (xrealpath): Make file-truename work with symlinks to
8881         /cygdrive paths on cygwin. Always lowercase drive-letters on
8882         native windows.
8883         (cygwin_readlink): Don't try to find canonical filename unless
8884         file exists.
8885
8886 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8887
8888         * ChangeLog: Log GTK merge.
8889
8890         * dumper.c:
8891         * select-x.c:
8892         * specifier.c:
8893         * symeval.h:
8894         Revert gratuitous whitespace changes from GTK merge.
8895
8896         * emacs.c: Document end of complex #ifdef @ l. 1495.
8897
8898
8899 2001-03-12  Andy Piper  <andy@xemacs.org>
8900
8901         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8902         have to do likewise.
8903
8904 2001-03-12  Andy Piper  <andy@xemacs.org>
8905
8906         * sysdep.c: we only support mingw now.
8907
8908 2001-03-09  Andy Piper  <andy@xemacs.org>
8909
8910         * unexcw.c (copy_executable_and_dump_data_section): making approx
8911         overrun a warning only.
8912
8913 2001-03-10  William M. Perry  <wmperry@aventail.com>
8914
8915         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8916         satisfy Stephen's identical-after-cpp plea.
8917
8918 2001-03-02  Ben Wing  <ben@xemacs.org>
8919
8920         * cmds.c:
8921         * cmds.c (Fforward_char):
8922         * syntax.c:
8923         * window.c:
8924
8925         Augment documentation of the most common motion commands to make
8926         note of the shifted-motion support.
8927         
8928 2001-03-02  Ben Wing  <ben@xemacs.org>
8929
8930         * nt.c (mswindows_fstat):
8931         * nt.c (mswindows_stat):
8932         * search.c (boyer_moore):
8933         Fix compile warnings under Windows.
8934         
8935         * sysdep.c (sys_readdir):
8936         Fix buggy filename-conversion code under Mule.
8937
8938 2001-03-09  William M. Perry  <wmperry@aventail.com>
8939
8940         * Makefile.in.in:
8941         * config.h.in:
8942         * console.c:
8943         * console.h:
8944         * device.c:
8945         * device.h:
8946         * dragdrop.c:
8947         * emacs.c:
8948         * event-stream.c:
8949         * events.c:
8950         * events.h:
8951         * faces.c:
8952         * frame.h:
8953         * general-slots.h:
8954         * glyphs.c:
8955         * gutter.c:
8956         * inline.c:
8957         * lisp.h:
8958         * lrecord.h:
8959         * make-src-depend:
8960         * redisplay-output.c:
8961         * redisplay.c:
8962         * symsinit.h:
8963         * sysfile.h:
8964         * toolbar.c:
8965         * window.c:
8966         The Great GTK Merge.
8967
8968         * ChangeLog.GTK:
8969         * console-gtk.c:
8970         * console-gtk.h:
8971         * device-gtk.c:
8972         * emacs-marshals.c:
8973         * emacs-widget-accessors.c:
8974         * event-gtk.c:
8975         * frame-gtk.c:
8976         * gccache-gtk.c:
8977         * gccache-gtk.h:
8978         * glade.c:
8979         * glyphs-gtk.c:
8980         * glyphs-gtk.h:
8981         * gtk-glue.c:
8982         * gtk-xemacs.c:
8983         * gtk-xemacs.h:
8984         * gui-gtk.c:
8985         * gui-gtk.h:
8986         * menubar-gtk.c:
8987         * native-gtk-toolbar.c:
8988         * objects-gtk.c:
8989         * objects-gtk.h:
8990         * redisplay-gtk.c:
8991         * scrollbar-gtk.c:
8992         * scrollbar-gtk.h:
8993         * select-gtk.c:
8994         * toolbar-gtk.c:
8995         * ui-byhand.c:
8996         * ui-gtk.c:
8997         * ui-gtk.h:
8998         The Great GTK Merge: new files.
8999
9000 2001-02-26  Ben Wing  <ben@xemacs.org>
9001
9002         Reapplied Lstream change.
9003
9004 2001-02-26  Ben Wing  <ben@xemacs.org>
9005
9006         Undid the last change, since it is more controversial than I
9007         thought.  It should be back in at some point soon.
9008         
9009 2001-02-25  Ben Wing  <ben@xemacs.org>
9010
9011         * buffer.c:
9012         * callproc.c (Fold_call_process_internal):
9013         * event-msw.c (ntpipe_slurp_reader):
9014         * event-msw.c (ntpipe_shove_writer):
9015         * event-msw.c (winsock_reader):
9016         * event-msw.c (winsock_writer):
9017         * file-coding.c:
9018         * file-coding.c (detect_eol_type):
9019         * file-coding.c (detect_coding_type):
9020         * file-coding.c (determine_real_coding_system):
9021         * file-coding.c (Fdetect_coding_region):
9022         * file-coding.c (decoding_reader):
9023         * file-coding.c (decoding_writer):
9024         * file-coding.c (mule_decode):
9025         * file-coding.c (Fdecode_coding_region):
9026         * file-coding.c (encoding_reader):
9027         * file-coding.c (encoding_writer):
9028         * file-coding.c (mule_encode):
9029         * file-coding.c (Fencode_coding_region):
9030         * file-coding.c (detect_coding_sjis):
9031         * file-coding.c (decode_coding_sjis):
9032         * file-coding.c (encode_coding_sjis):
9033         * file-coding.c (detect_coding_big5):
9034         * file-coding.c (decode_coding_big5):
9035         * file-coding.c (encode_coding_big5):
9036         * file-coding.c (detect_coding_ucs4):
9037         * file-coding.c (decode_coding_ucs4):
9038         * file-coding.c (encode_coding_ucs4):
9039         * file-coding.c (detect_coding_utf8):
9040         * file-coding.c (decode_coding_utf8):
9041         * file-coding.c (encode_coding_utf8):
9042         * file-coding.c (detect_coding_iso2022):
9043         * file-coding.c (decode_coding_iso2022):
9044         * file-coding.c (encode_coding_iso2022):
9045         * file-coding.c (decode_coding_no_conversion):
9046         * file-coding.c (encode_coding_no_conversion):
9047         * glyphs-x.c (write_lisp_string_to_temp_file):
9048         * gpmevent.c (tty_get_foreign_selection):
9049         * lisp.h:
9050         * lstream.c:
9051         * lstream.c (Lstream_flush_out):
9052         * lstream.c (Lstream_adding):
9053         * lstream.c (Lstream_write_1):
9054         * lstream.c (Lstream_write):
9055         * lstream.c (Lstream_raw_read):
9056         * lstream.c (Lstream_read_more):
9057         * lstream.c (Lstream_read):
9058         * lstream.c (Lstream_unread):
9059         * lstream.c (Lstream_fputc):
9060         * lstream.c (stdio_reader):
9061         * lstream.c (stdio_writer):
9062         * lstream.c (filedesc_reader):
9063         * lstream.c (filedesc_writer):
9064         * lstream.c (lisp_string_reader):
9065         * lstream.c (struct fixed_buffer_stream):
9066         * lstream.c (make_fixed_buffer_input_stream):
9067         * lstream.c (make_fixed_buffer_output_stream):
9068         * lstream.c (fixed_buffer_reader):
9069         * lstream.c (fixed_buffer_writer):
9070         * lstream.c (struct resizing_buffer_stream):
9071         * lstream.c (resizing_buffer_writer):
9072         * lstream.c (dynarr_writer):
9073         * lstream.c (lisp_buffer_reader):
9074         * lstream.c (lisp_buffer_writer):
9075         * lstream.h:
9076         * lstream.h (lstream_implementation):
9077         * lstream.h (struct lstream):
9078         * md5.c (Fmd5):
9079         * process-nt.c (nt_send_process):
9080         * process-unix.c (unix_send_process):
9081         
9082         Correct Lstream lossage due to mixing of signed and unsigned
9083         quantities.  All Lstream uses of size_t and ssize_t are now a
9084         single signed data type Lstream_data_count.  This fixes problems
9085         under Windows with sending large quantities of data to a process,
9086         and may well fix other subtle bugs.
9087
9088 2001-02-23  Martin Buchholz <martin@xemacs.org>
9089
9090         * XEmacs 21.2.45 "Thelxepeia" is released.
9091
9092 2001-02-21  Martin Buchholz  <martin@xemacs.org>
9093
9094         * lisp-union.h (XSETINT): 
9095         (XSETCHAR):
9096         (XSETOBJ): 
9097         Reverse previous change of 2001-02-06.
9098
9099 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
9100
9101         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
9102         buffers.
9103         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9104         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
9105         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
9106         * regex.c (POS_AS_IN_BUFFER): removed
9107         * regex.c (re_search_2):
9108         * regex.c (re_match_2):
9109         Don't use an offset of 1 when calculating buffer positions, since
9110         `BI_BUF_BEGV' does it already.
9111
9112 2001-02-18  Wim Dumon  <wim@easics.be>
9113
9114         * insdel.c (prepare_to_modify_buffer): Also check for
9115         supersession when clash-detection is enabled. 
9116
9117 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
9118
9119         * regex.c (re_match_2_internal):
9120         Convert temp characters from 'const unsigned char' to 're_char'.
9121         Fix crashing bug with extended characters under mule.
9122         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
9123         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
9124         font-lock, pdump, and new syntax-table code.
9125         * syntax.c (find_start_of_comment):
9126         (find_end_of_comment):
9127         (forward-comment):
9128         Fix crashing bugs involving moving beyond end of buffer.
9129         * syntax.c (find_start_of_comment):
9130         Fixed logic to allow proper detection of cases where the same
9131         character is used to end both a two-char comment start and a
9132         two-char comment end sequence. Fixes `(forward-comment -1)'.
9133         * syntax.c (find_start_of_comment):
9134         Return position just past last comment-end character for all cases
9135         (previously was only done for two-char comment-end sequences).
9136         * syntax.c (forward-comment):
9137         Take value returned from `find_end_of_comment', rather than
9138         incrementing it.
9139         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9140         Properly deal with BUFFERP (syntax_cache.object)
9141
9142 2001-02-17  Martin Buchholz  <martin@xemacs.org>
9143
9144         * alloc.c (Fgarbage_collect): 
9145         * alloc.c (make_bit_vector_from_byte_vector):
9146         -Wsign-compare-correctness.
9147
9148 2001-02-16  Martin Buchholz  <martin@xemacs.org>
9149
9150         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
9151         (XSETCHAR): Likewise.
9152         (XSETOBJ): Likewise.
9153
9154 2001-02-15  Martin Buchholz  <martin@xemacs.org>
9155
9156         * mule-canna.c (canna-func-delete_previous): 
9157         Rename to canna-func-delete-previous.
9158
9159 2001-02-14  Martin Buchholz  <martin@xemacs.org>
9160
9161         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
9162
9163 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
9164
9165         * font-lock.c (find_context): Fix C++ compile errors introduced by
9166         recent patch
9167
9168 2001-02-13  Martin Buchholz  <martin@xemacs.org>
9169
9170         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
9171         pragma, but earlier ones barf on the same pragma.
9172
9173 2001-02-06  Mike Sperber <mike@xemacs.org>
9174
9175         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
9176         `configure-mule-lisp-directory'.
9177
9178 2001-02-12  Martin Buchholz  <martin@xemacs.org>
9179
9180         Make sure dump-id.c is compiled in the same way as other .c's.
9181         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
9182         * dump-id.h: Remove.
9183         * emacs.c: Move dump-id.h into dumper.h.
9184         * dumper.h: Move dump-id.h into dumper.h.
9185         * Makefile.in.in:
9186         Use standard .c.o rule for building dump-id.o.
9187         Remove preprocessor flags from link command.
9188         Add dump-id.o to ${otherobjs} if PDUMP.
9189
9190 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
9191
9192         Port FSF 20.7 syntax table improvements.
9193         * syntax.c.
9194         * syntax.h.
9195
9196         Fixups for new syntax table stuff.
9197         * dired.c: Include syntax.c.
9198         (Fdirectory_files): Initialize regex_match_object and
9199         regex_emacs_buffer.
9200         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9201         and Fget_char_property.
9202
9203         Use ported FSF 20.7 syntax table improvements.
9204         * font-lock.c.
9205         * regex.c.
9206         * search.c.
9207         
9208 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9209
9210         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9211         Unixware's enum boolean from sys/types.h.
9212
9213 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9214
9215         Fix support for building with latest Purify.
9216         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9217         (PURIFY_FLAGS): Likewise.
9218
9219 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9220
9221         * fileio.c (lisp_string_set_file_times): New.
9222         * fileio.c (Fcopy_file): Use it.
9223         Fixes bug:
9224         (copy-file filename non-ascii-filename t t)
9225         ==> No such file or directory, non-ascii-filename
9226
9227 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9228
9229         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9230         USHRT_MAX seems clearer than ~0 anyways.
9231
9232 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9233
9234         dumper improvements.  Inspired by Olivier.
9235         * dumper.c (pdump_max_align): New.
9236         * dumper.c (pdump_add_entry): Use pdump_max_align.
9237         * dumper.c (pdump_get_entry_list): Likewise.
9238         * dumper.c (pdump_scan_by_alignment): Likewise.
9239         Don't iterate through unnecessary alignments.
9240         * dumper.c (pdump_file_get): No need to align result of malloc().
9241         * dumper.c (pdump_mallocadr): Remove.  
9242         The result of malloc() is guaranteed to be maximally aligned.
9243         * dumper.c: s/elmt/elt/g;
9244         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9245         * dumper.c (pdump_alert_undump_object): Likewise.
9246         * dumper.c (pdump_align_table): 
9247         Don't support alignments > 64.
9248         Store ALIGNOF's, not shift counts, in table.
9249
9250 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9251
9252         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9253         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9254         * systime.h: Use HAVE_UTIME.
9255         * sysdep.c (struct utimbuf): Remove.
9256         * sysdep.c (set_file_times): Prefer utime() to utimes().
9257         * config.h.in (HAVE_UTIME): New.
9258         * config.h.in (HAVE_UTIME_H): Remove.
9259         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9260
9261 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9262
9263         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9264
9265 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9266
9267         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9268
9269 2001-02-08  Martin Buchholz <martin@xemacs.org>
9270
9271         * XEmacs 21.2.44 "Thalia" is released.
9272
9273 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9274
9275         Fixes crashes in kill-emacs on some systems.
9276         * process-unix.c (unix_kill_child_process):
9277         It's OK for kill() to fail with ESRCH.
9278
9279 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9280
9281         Contortions to make .gdbinit tricks work on most systems.
9282         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9283         * alloc.c (dbg_valmask): Make non-const.
9284         * alloc.c (dbg_typemask): Make non-const.
9285         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9286         * alloc.c (dbg_valbits): Make non-const.
9287         * alloc.c (dbg_gctypebits): Make non-const.
9288         * .gdbinit (decode_object): Make it work with AIX cc.
9289
9290 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9291
9292         * elhash.c (make_general_lisp_hash_table):
9293         Use simpler and more efficient calloc to clear entries.
9294
9295 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9296
9297         * window.c (window_scroll): Work around an AIX C compiler bug.
9298         Fixes 'scroll-up' does nothing problem with xlC.
9299
9300 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9301
9302         * .gdbinit: Remove obsolete comment.
9303
9304 2001-01-31  Mike Alexander  <mta@arbortext.com>
9305
9306         * select.c (Fown_selection_internal): Set owned_p for device
9307         method correctly.
9308
9309 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9310
9311         Port to g++ 2.97.
9312         "not" cannot be used as a macro name as it is an operator in C++
9313         * config.h.in: Stop #defining `not'.
9314         * chartab.c (check_category_char): not ==> not_p
9315         * chartab.h: Likewise.
9316         * regex.c (re_match_2_internal): Likewise.
9317
9318 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9319
9320         * lisp-disunion.h: Fix up comments.
9321
9322 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9323
9324         * keymap.c (define_key_check_and_coerce_keysym):
9325         (syms_of_keymap):
9326         Support mouse-6 and mouse-7 bindings in the obvious way.
9327
9328 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9329
9330         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9331
9332 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9333
9334         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9335         Previous patch missed DEFVAR_INT_MAGIC.
9336         Make sure future DEFVAR_foo use correct types.
9337         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9338         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9339         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9340         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9341         * (DEFVAR_INT): Likewise.
9342         * redisplay.c (vertical_clip): Should be of type Fixnum.
9343         * redisplay.c (horizontal_clip): Likewise.
9344         * lisp.h (dump_add_opaque_int): New.
9345         (dump_add_opaque_fixnum): New.
9346
9347 2001-01-29  Andy Piper  <andy@xemacs.org>
9348
9349         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9350         since they can be eval'ed
9351
9352 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9353
9354         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9355         Oops, XEmacs redefines `class'.  Use `typename' instead.
9356
9357 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9358
9359         * dumper.c: Fix C++ compile errors.
9360
9361 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9362
9363         * tparam.c: Use correct prototypes.
9364
9365 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9366
9367         * sysproc.h: #include util.h for NetBSD's openpty.
9368
9369 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9370
9371         More 64-bit correctness.
9372         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9373         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9374         Fix up comments.
9375         This finally finishes the 64-bit SGI port.
9376         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9377         * symbols.c: Fix up comments and type casts.
9378         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9379         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9380         * symeval.h (Fixnum): New type.
9381         * symeval.h (symbol_value_type): Fix up comment.
9382
9383         * commands.h:
9384         * nt.c:
9385         * emacs.c:
9386         * data.c:
9387         * redisplay.c:
9388         * abbrev.c:
9389         * dired-msw.c:
9390         * event-Xt.c:
9391         * eldap.c:
9392         * window.c:
9393         * sound.c:
9394         * event-stream.c:
9395         * eval.c:
9396         * buffer.c:
9397         * mule-canna.c: A million DEFVAR_INTs here...
9398         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9399         * extents.c:
9400         * cmdloop.c:
9401         * lisp.h:
9402         * select-x.c:
9403         * console-x.h:
9404         * event-msw.c:
9405         * mule-wnnfns.c:
9406         * hpplay.c:
9407         * ralloc.c:
9408         * alloc.c:
9409         * keymap.c:
9410         * profile.c:
9411         s/int/Fixnum/g in DEFVAR_INT declarations.
9412
9413 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9414
9415         Port pdump to SGI alignment-sensitive environment.
9416         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9417         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9418         properly aligned.
9419         Define and use aligned reading and writing macros.
9420         Use buffered stdio instead of posix i/o for faster dumping.
9421         Eliminate kludgy 256 byte space for header.
9422         Read and write from dump file using structs for alignment safety.
9423         * dumper.c (pdump_align_stream): New.
9424         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9425         * dumper.c (PDUMP_READ_ALIGNED): New.
9426         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9427         * dumper.c (pdump_static_Lisp_Object): New struct.
9428         * dumper.c (pdump_static_pointer): New struct.
9429         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9430         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9431         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9432         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9433
9434         * dumper.c (pdump_backtrace):
9435         * dumper.c (pdump_get_indirect_count):
9436         * dumper.c (pdump_register_object):
9437         * dumper.c (pdump_register_struct):
9438         * dumper.c (pdump_reloc_one):
9439         * dumper.c (pdump_scan_by_alignment):
9440         * dumper.c (pdump_dump_from_root_struct_ptrs):
9441         * dumper.c (pdump_dump_opaques):
9442         * dumper.c (pdump_dump_rtables):
9443         * dumper.c (pdump_dump_from_root_objects):
9444         * dumper.c (pdump):
9445         * dumper.c (pdump_load_finish):
9446         Use aligned reading and writing.
9447
9448         * dumper.c (pdump_free): Make static.
9449         * dumper.c (pdump_hFile): Likewise.
9450         * dumper.c (pdump_hMap): Likewise.
9451
9452 2001-01-26  Martin Buchholz <martin@xemacs.org>
9453
9454         * XEmacs 21.2.43 "Terspichore" is released.
9455
9456 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9457
9458         Type fiddling for window_config.saved_windows_count
9459         * window.c (struct window_config): 
9460         Make saved_windows_count member unsigned.
9461         * window.c (sizeof_window_config_for_n_windows): 
9462         Make parameter unsigned.
9463         * window.c (mark_window_config):
9464         * window.c (window_config_equal):
9465         * window.c (free_window_configuration):
9466         * window.c (Fset_window_configuration):
9467         * window.c (count_windows):
9468         * window.c (Fcurrent_window_configuration):
9469         * window.c (reinit_vars_of_window):
9470         Update all callers and users.
9471
9472 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9473
9474         Alignment correctness for flexible arrays.
9475         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9476         Make alignment-correct. Add interesting comments.
9477         * alloc.c (size_vector):
9478         * alloc.c (make_vector_internal):
9479         * alloc.c (make_bit_vector_internal):
9480         * alloc.c (sweep_bit_vectors_1):
9481         * fns.c (size_bit_vector):
9482         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9483         * window.c (sizeof_window_config_for_n_windows): 
9484         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9485
9486 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9487
9488         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9489
9490 2001-01-23  Andy Piper  <andy@xemacs.org>
9491
9492         * select.c (Fown_selection_internal): pass owned_p
9493
9494         * select-msw.c (mswindows_own_selection): New Signature.
9495
9496         * console.h (struct console_methods): add owned_p to
9497         _own_selection.
9498
9499         * select-x.c (x_own_selection): pass owned_p
9500         (hack_motif_clipboard_selection): use owned_p
9501         (vars_of_select_x): new variable -
9502         x_selection_strict_motif_ownership.
9503
9504 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9505
9506         * specifier.h (specifier_data_offset): Remove pointless parens.
9507         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9508
9509 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9510
9511         Make Lisp_Object sizeof methods be alignment-correct.
9512         pdump must restore objects to the same alignment as the C compiler
9513         assumes.  It really matters on SGIs.
9514         * lstream.c (aligned_sizeof_lstream): New.
9515         (sizeof_lstream): Use aligned_sizeof_lstream.
9516         (Lstream_new): Likewise.
9517         * opaque.c (aligned_sizeof_opaque): New.
9518         (sizeof_opaque): Use aligned_sizeof_opaque.
9519         (make_opaque): Likewise.
9520         * specifier.c (aligned_sizeof_specifier): New.
9521         (sizeof_specifier): Use aligned_sizeof_specifier.
9522         (make_specifier_internal): Likewise.
9523
9524 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9525
9526         * lstream.h (struct lstream): Use max_align_t for trailing data.
9527         * specifier.h (struct Lisp_Specifier): Likewise.
9528
9529 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9530
9531         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9532         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9533         (CCL_SUSPEND): Likewise.
9534         (CCL_INVALID_CMD): Likewise.
9535         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9536         (ccl_driver): Likewise.
9537         (CCL_WRITE_CHAR): Macro hygiene.
9538         (CCL_WRITE_STRING): Macro hygiene.
9539
9540 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9541
9542         Port "portable" dumper to SunOS 4 and HP-UX.
9543         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9544         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9545         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9546
9547 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9548
9549         * lisp.h (ALIGNOF): A better definition for C++.
9550
9551 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9552
9553         Macro hygiene.
9554         Fix printf warnings: int format, long int arg.
9555         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9556         (PUSH_FAILURE_POINT): Use correct printf formats.
9557         (POP_FAILURE_POINT): Use correct printf formats.  
9558         Use do {...} while (0)
9559
9560 2001-01-20  Martin Buchholz <martin@xemacs.org>
9561
9562         * XEmacs 21.2.42 "Poseidon" is released.
9563
9564 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9565
9566         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9567
9568 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9569
9570         De-kludgify FIXED_TYPE free list frobbing.
9571         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9572         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9573         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9574         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9575         * alloc.c (LRECORD_FREE_P): New.
9576         * alloc.c (MARK_LRECORD_AS_FREE): New.
9577         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9578         * alloc.c (STRUCT_FREE_P): Deleted.
9579         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9580         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9581         * alloc.c (STRING_CHARS_FREE_P): New.
9582         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9583         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9584         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9585         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9586         * alloc.c (resize_string): Use new definitions.
9587         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9588         * alloc.c (verify_string_chars_integrity): Use new definitions.
9589         * alloc.c (compact_string_chars): Use new definitions.
9590         * alloc.c: Update monster comments.
9591         * lrecord.h (lrecord_type): Add some new lrecord types for
9592         alloc.c's use.
9593
9594 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9595
9596         Improve alignment hackery.
9597         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9598         (max_align_t): Moved from opaque.h - general purpose.
9599         (ALIGN_PTR): Use size_t, not long.
9600         * opaque.h (max_align_t): Move to lisp.h.
9601
9602 2001-01-18  Norbert Koch  <nk@LF.net>
9603
9604         * gui.h: Fix and add prototypes to fix build problems.
9605
9606 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9607
9608         temacs is going away, so `dump-temacs' is now a bad name.
9609         * .dbxrc (dump-temacs): Rename to `dmp'.
9610         * .gdbinit (dump-temacs): Rename to `dmp'.
9611
9612 2001-01-17  Andy Piper  <andy@xemacs.org>
9613
9614         * glyphs.c (print_image_instance): comment to make martin happy.
9615
9616         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9617         change.
9618
9619         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9620         activation.
9621         (mswindows_tab_control_redisplay): warning suppression.
9622
9623         * glyphs-widget.c (widget_update): re-write to cope with updated
9624         items.
9625         (widget_instantiate): use new gui_item functions.
9626         (tab_control_update): deleted.
9627         (progress_gauge_update): deleted.
9628         (image_instantiator_progress_guage): take out update reference.
9629         (image_instantiator_tree_view): ditto.
9630         (image_instantiator_tab_control): ditto.
9631
9632         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9633         Right the new way.
9634         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9635         return whether anything was changed.
9636         (update_gui_item_keywords): as it sounds.
9637
9638         * gui.h: declare widget_gui_parse_item_keywords.
9639
9640         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9641         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9642
9643 2001-01-17  Martin Buchholz <martin@xemacs.org>
9644
9645         * XEmacs 21.2.41 "Polyhymnia" is released.
9646
9647 2001-01-16  Didier Verna  <didier@xemacs.org>
9648
9649         * glyphs.c (image_instantiate): don't use fallbacks when
9650         instantiating a face's background pixmap by inheritance.
9651
9652 2001-01-14  Mike Sperber <mike@xemacs.org>
9653
9654         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9655         Conditionalize accordingly.
9656
9657 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9658
9659         * dumper.c (pdump_file_get): Fix a compiler warning.
9660
9661 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9662
9663         Make Purify happy when pdumping.
9664         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9665         iniitalizing all bits of new lisp object memory.
9666         * symbols.c (Fmake_local_variable): Likewise.
9667         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9668         * symbols.c (Fdefvaralias): Likewise.
9669         * mule-charset.c (vars_of_mule_charset): Likewise.
9670
9671 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9672         Add the `-nd' flag when running pre-dump operations under the debugger.
9673         * .dbxrc (run-temacs): Add `-nd'.
9674         * .dbxrc (update-elc): Likewise.
9675         * .dbxrc (dump-temacs): Likewise.
9676         * .gdbinit (run-temacs): Likewise.
9677         * .gdbinit (check-temacs): Likewise.
9678         * .gdbinit (update-elc): Likewise.
9679         * .gdbinit (dump-temacs): Likewise.
9680
9681 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9682
9683         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9684         export OBJECT_MODE=64
9685         configure --pdump --use-union-type=no
9686         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9687         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9688
9689         * miscplay.c (sndcnv8U_2mono):
9690         Avoid two uses of `++' in the same expression.
9691         Suppresses a GCC warning.
9692
9693 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9694
9695         Make sure future compilers don't miscompile alloc.c.
9696         * alloc.c:
9697         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9698         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9699
9700 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9701
9702         * dumper.c: A little post-pdump-rename comment fixup.
9703
9704 2001-01-09  Jerry James  <james@eecs.ku.edu>
9705
9706         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9707
9708 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9709
9710         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9711         script:
9712         #!/bin/sh
9713         replace_symbol () {
9714           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9715         }
9716
9717         replace_symbol pdump_wire_lists pdump_weak_object_chains
9718         replace_symbol pdump_wire_list dump_add_weak_object_chain
9719
9720         replace_symbol pdump_wires pdump_root_objects
9721         replace_symbol pdump_wire dump_add_root_object
9722
9723         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9724         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9725
9726         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9727         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9728         replace_symbol dumpstructinfo pdump_root_struct_ptr
9729         replace_symbol dumpstruct dump_add_root_struct_ptr
9730
9731         replace_symbol dumpopaque dump_add_opaque
9732         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9733         replace_symbol dumpopaqueinfos pdump_opaques
9734         replace_symbol dumpopaqueinfo pdump_opaque
9735
9736         replace_symbol nb_structdump nb_root_struct_ptrs
9737         replace_symbol nb_opaquedump nb_opaques
9738
9739         replace_symbol align_table pdump_align_table
9740         replace_symbol dump_header pdump_header
9741
9742         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9743         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9744
9745
9746 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9747
9748         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9749         optimizing bytecount_to_charcount().
9750
9751 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9752
9753         * config.h.in:
9754         (HAVE_DLFCN_H): Removed.
9755         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9756
9757 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9758
9759         Portable dumper maintainability improvements.
9760         * alloc.c (staticpro):
9761         * alloc.c (staticpro_nodump):
9762         * alloc.c (garbage_collect_1):
9763         * alloc.c (reinit_alloc_once_early):
9764         * alloc.c (init_alloc_once_early):
9765         * alloc.c: Move dumper functions to alloc.c.
9766         * dumper.c (pdump_backtrace):
9767         * dumper.c (pdump_dump_structs):
9768         * dumper.c (pdump_dump_opaques):
9769         * dumper.c (pdump_dump_rtables):
9770         * dumper.c (pdump_dump_wired):
9771         * dumper.c (pdump):
9772         * dumper.c (pdump_load_check):
9773         * dumper.c (pdump_load_finish):
9774         * dumper.c (pdump_file_unmap):
9775         * dumper.c (pdump_file_get):
9776         * dumper.c (pdump_resource_free):
9777         * dumper.c (pdump_resource_get):
9778         * dumper.c (pdump_file_free):
9779         * dumper.c (pdump_file_try):
9780         * dumper.c (pdump_load):
9781         Remove fixed size limits on staticpro(), staticpro_nodump(),
9782         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9783         Remove custom code for dumping lrecord_implementations_table - use
9784         dumpopaque instead.
9785         Remove (most of the) custom code for dumping staticpros - dump it
9786         like any other dynarr.
9787
9788         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9789         * dumper.c: Moved functions from alloc.c.
9790         * alloc.c (dumpstruct): Moved to dumper.c.
9791         * alloc.c (dumpopaque): Likewise.
9792         * alloc.c (pdump_wire): Likewise.
9793         * alloc.c (pdump_wire_list): Likewise.
9794
9795         * lisp.h (Dynarr_sizeof): New.
9796         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9797         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9798         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9799
9800         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9801         * lisp.h (dumpopaque): ditto.
9802         * lisp.h (pdump_wire): ditto.
9803         * lisp.h (pdump_wire_list): ditto.
9804
9805 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9806
9807         * make-src-depend (PrintPatternDeps):
9808         Use `sort' to make output independent of perl version.
9809
9810 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9811
9812         Port to Netbsd 1.5.
9813         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9814         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9815
9816 2001-01-03  Didier Verna  <didier@xemacs.org>
9817
9818         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9819         that `focus_frame' is alive before thinking of calling
9820         `redisplay_redraw_cursor' on it.
9821
9822 2001-01-08  Martin Buchholz <martin@xemacs.org>
9823
9824         * XEmacs 21.2.40 is released.
9825
9826 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9827
9828         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9829
9830 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9831
9832         * alloc.c (dbg_valmask): Make const.
9833         * alloc.c (dbg_typemask): Make const.
9834         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9835         * alloc.c (dbg_valbits): Make const.
9836         * alloc.c (dbg_gctypebits): Make const.
9837
9838 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9839
9840         * redisplay-x.c (x_bevel_area):
9841         redisplay.h (struct rune):
9842         Typo fixes in comments.
9843
9844 2001-01-05  Andy Piper  <andy@xemacs.org>
9845
9846         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9847         adjustment.
9848
9849         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9850
9851 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9852
9853         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9854
9855         * mule-ccl.c (stack_idx_of_map_multiple):
9856         Non const global data must not be initialized!
9857         Found by MIYASHITA Hisashi.
9858
9859 2001-01-02  Andy Piper  <andy@xemacs.org>
9860
9861         * frame.c (change_frame_size): make sure frame size is always
9862         marked as changed.
9863
9864         * glyphs.c (image_instance_layout): minor code reuse.
9865
9866         * window.c (Fcurrent_window_configuration): revert previous
9867         change.
9868
9869 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9870
9871         * glyphs.h:
9872         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9873
9874 2000-12-31  Andy Piper  <andy@xemacs.org>
9875
9876         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9877         when widget gets unmapped.
9878
9879         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9880         function. Make sure widgets losing focus don't just drop it.
9881         (handle_focus_event_1): record the widget with focus.
9882
9883 2000-12-31  Andy Piper  <andy@xemacs.org>
9884
9885         * window.c (allocate_window): use
9886         make_image_instance_cache_hash_table.
9887         (make_dummy_parent): ditto.
9888         (Fset_window_configuration): ditto.
9889
9890         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9891
9892         * glyphs.c (process_image_string_instantiator): use
9893         INSTANTIATOR_TYPE.
9894         (get_image_instantiator_governing_domain): ditto.
9895         (normalize_image_instantiator): ditto.
9896         (instantiate_image_instantiator): ditto.
9897         (make_image_instance_1): ditto.
9898         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9899         (instantiator_eq_equal): new function for use with instance hash
9900         tables.
9901         (instantiator_eq_hash): ditto.
9902         (make_image_instance_cache_hash_table): create a suitable hash
9903         table for storing image instances.
9904
9905         * elhash.h (hash_table_weakness): new internal weakness type
9906         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9907         declare new functions.
9908
9909         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9910         another weakness type for glyphs.
9911         (make_standard_lisp_hash_table): new function split out from
9912         make_general_lisp_hash_table.
9913         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9914         (hash_table_instantiate): ditto.
9915         (Fmake_hash_table): ditto.
9916
9917 2000-12-31  Martin Buchholz <martin@xemacs.org>
9918
9919         * XEmacs 21.2.39 is released.
9920
9921 2000-12-29  Andy Piper  <andy@xemacs.org>
9922
9923         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9924
9925         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9926         the frame has changed so that we pick up geometry changes such as
9927         menubar visibility.
9928
9929 2000-12-28  Andy Piper  <andy@xemacs.org>
9930
9931         * lastfile.c (my_ebss): make a char array so we can pad the
9932         bss. Fixes cygwin unexec.
9933
9934         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9935
9936 2000-12-26  Andy Piper  <andy@xemacs.org>
9937
9938         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9939         comments and try and be more precise about a non-/SIGIO world.
9940         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9941         SIGIO.
9942
9943         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9944         we don't normalize to zero width or height.
9945
9946 2000-12-24  Andy Piper  <andy@xemacs.org>
9947
9948         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9949
9950 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9951
9952         * s/sco5.h: SCO 5 has pty support.
9953
9954 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9955
9956         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9957         input-method-xlib.c contains whole contents of input-method-xfs.c,
9958         so we can use input-method-xlib.c's code for USE_XFONTSET
9959         using #ifdefs.
9960         * input-method-xfs.c: removed.
9961
9962 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9963
9964         * file-coding.h (enum coding_category_type): reorder enumerators to
9965         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9966         (now one greater than largest real coding_category_type enumerator).
9967         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9968         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9969         Fcoding_category_list, Fset_coding_priority_list,
9970         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9971         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9972
9973 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9974
9975         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9976         * redisplay-output.c (redisplay_output_window): Clear top of window
9977         when face is changed.
9978         * redisplay-x.c (x_redraw_exposed_window): Call
9979         redisplay_clear_top_of_window.
9980         * redisplay.h: Publish redisplay_clear_top_of_window.
9981
9982 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9983
9984         * buffer.c (Fkill_buffer): Map over all devices.
9985         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9986         (list_windows): New function.
9987         (list_all_windows): Ditto.
9988         (Freplace_buffer_in_windows): Use them.
9989
9990 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9991
9992         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9993         (Fopen_database): Use `db_create' instead of `db_open'.
9994         (syms_of_database): Initialize Qqueue.
9995
9996 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9997
9998         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9999         buffer_local_face_property.
10000         * buffer.h (struct buffer): New member buffer_local_face_property.
10001         * window.c (Fset_window_buffer):  Mark window's face as changed
10002         when buffer has buffer local face.
10003         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
10004         * objects.c (color_after_change): Set buffer_local_face_property
10005         when locale of face specifier is buffer.
10006         * objects.c (font_after_change): Ditto.
10007         * objects.c (face_boolean_after_change): Ditto.
10008         * glyphs.c (image_after_change): Ditto.
10009
10010 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10011
10012         * nt.c (mswindows_fstat): Report file permissions, volume serial
10013         number, etc. Code adapted from FSF Emacs 20.7.
10014
10015 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10016
10017         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
10018         of stat when we don't have symbolic links, to make sure
10019         mswindows_stat is called on mswindows.
10020
10021 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
10022
10023         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
10024
10025 2000-12-12  Martin Buchholz  <martin@xemacs.org>
10026
10027         * doprnt.c (emacs_doprnt_1): More printing fixes.
10028         Make printing of numbers compatible with libc and FSF Emacs.
10029         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
10030         Use the system printf to do most of the hard work of formatting,
10031         instead of doprnt_1().
10032         Calculate memory to allocate for format string.
10033         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
10034         (doprnt_1): Cleaner code and documentation.
10035
10036 2000-12-01  Jerry James  <james@eecs.ukans.edu>
10037
10038         * Makefile.in.in: Use the loop variable to install headers.
10039
10040 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10041
10042         * window.c (Fsplit_window): Don't invalidate face cache.
10043
10044 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10045
10046         * minibuf.c (Fall_completions): Undo the previous change
10047         which removed checking elements start with space.
10048
10049 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10050
10051         * mule-canna.c: Didier suppression.
10052
10053 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10054
10055         * mule-canna.c: rename static unsigned char buf[] to key_buffer
10056         (warning suppression).  Add English comment translations.
10057
10058 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10059
10060         * unexelfsgi.c (unexec): Better test for mmap failure.
10061
10062 2000-12-05  Martin Buchholz <martin@xemacs.org>
10063
10064         * XEmacs 21.2.38 is released.
10065
10066 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10067
10068         * redisplay.c (bar-cursor): Make a user variable.
10069
10070         * symsinit.h: Add init_postgresql_from_environment.
10071
10072 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10073
10074         * regex.c: Convert to clean C.
10075
10076 2000-12-05  Dan Holmsand  <dan@eyebee.com>
10077
10078         * realpath.c:
10079         Don't #include sysfile.h. Revert to duplicating PATH_MAX
10080         initialization.
10081         (sys_readlink): renamed to system_readlink to avoid conflict with
10082         the other sys_readlink.
10083
10084 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
10085
10086         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
10087
10088 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
10089
10090         * postgresql.c (init_postgresql_from_environment): new function.
10091         (vars_of_postgresql): Move code initializing Lisp variables out and
10092         into init_postgresql_from_environment.
10093         emacs.c (main_1): Call init_postgresql_from_environment if and only
10094         if running a dumped XEmacs.
10095
10096 2000-08-31  Dan Holmsand  <dan@eyebee.com>
10097
10098         * buffer.c: Make find-file-compare-truenames default to true on
10099         windows.
10100
10101         * realpath.c (win32_abs_start):
10102         (cygwin_readlink):
10103         (win32_readlink): New functions.
10104         (xrealpath): Return really real filenames on windows.
10105
10106         * fileio.c (Ffile_truename): Make file-truename work on windows.
10107
10108 2000-11-29  Didier Verna  <didier@xemacs.org>
10109
10110         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
10111         * faces.c (update_face_cachel_data): use it.
10112         * faces.c (add_face_cachel): use it. Complete background pixmap
10113         frobbing in face cache if `update_face_cachel_data' has not done so.
10114
10115 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
10116
10117         * search.c (string_match_1): Don't set last_thing_searched
10118         when search failed.
10119
10120 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
10121
10122         * buffer.c: Include casetab.h
10123         (common_init_complex_vars_of_buffer): Use new case-table object.
10124         * buffer.h: Include casetab.h
10125         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
10126         (DOWNCASE_TABLE_OF): Ditto.
10127         * bufslots.h: Remove char-tables and add case-table.
10128         * casetab.c: Include casetab.h
10129         (CASE_TABLE_P): Removed.
10130         (mark_case_table): New function.
10131         (allocate_case_table): New function.
10132         (Fcase_table_p): Use new case-table.
10133         (case_table_char): New function.
10134         (Fget_case_table): Ditto.
10135         (Fput_case_table): Ditto.
10136         (Fput_case_table_pair): Ditto.
10137         (Fcopy_case_table): Ditto.
10138         (Fcurrent_case_table): Return case-table.
10139         (Fstandard_case_table): Return case-table.
10140         (Fset_case_table): Fix doc-string.
10141         (set_case_table): Use case-table
10142         (syms_of_casetab): DEFSUBR new functions.
10143         (complex_vars_of_casetab): Set up standard case-table.
10144         * casetab.h: New file.
10145         * editfns.c: Include casetab.h
10146         (Fcompare_buffer_substrings): Use case-table.
10147         * inline.c: Include casetab.h
10148         * lisp.h: Remove bogus extern.
10149         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
10150         * search.c: Include casetab.h
10151         (TRANSLATE_ASCII): Removed.
10152         (TRANSLATE): Unconditionally translate character.
10153         (looking_at_1): Use case-table.
10154         (string_match_1): Ditto.
10155         (fast_string_match): Ditto.
10156         (search_command): Ditto.
10157         (search_buffer): Separate boyer_moore.  Check whether
10158         boyer_moore is possible.
10159         (simple_search): New function.
10160         (boyer_moore): Separated from search_buffer. Translate char.
10161
10162 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10163
10164         * regex.c (RE_TR_ASCII): Removed.
10165         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
10166         (PATFETCH): Call PATFETCH_RAW.
10167         (PATFETCH_RAW): Fetch Emchar.
10168         (PATUNFETCH): Decrement charptr.
10169         (GET_BUFFER_SPACE): Rename b to buf_end.
10170         (BUF_PUSH): Ditto.
10171         (BUF_PUSH_2): Ditto.
10172         (BUF_PUSH_3): Ditto.
10173         (EXTEND_BUFFER): Ditto.
10174         (SET_LIST_BIT): Ditto.
10175         (regex_compile): Ditto.  Translate non ASCII char.
10176         (compile_range): Ditto.
10177         (re_search_2): Ditto.
10178         (re_match_2_internal): Compare Emchar.
10179         (bcmp_translate): Ditto.
10180
10181 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
10182
10183         * lisp.h (basic char/int typedefs):  comment improvement.
10184
10185 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
10186
10187         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
10188         unstomp inhibit_site_lisp.  Improve comments.
10189
10190 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
10191
10192         * mule-charset.c (Fcharset_property):  improve type checking, comments.
10193
10194 2000-11-28  Andy Piper  <andy@xemacs.org>
10195
10196         * redisplay-output.c (redisplay_output_subwindow): make sure we do
10197         clipped display for windows in the gutter also.
10198         (redisplay_display_boxes_in_window_p): change semantics of return
10199         codes to be more intuitive.
10200
10201         * gutter.h: declare display_boxes_in_gutter_p.
10202
10203         * gutter.c (display_boxes_in_gutter_p): new function for
10204         redisplay.
10205
10206 2000-11-22  Andy Piper  <andy@xemacs.org>
10207
10208         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10209         autodetect domain.
10210
10211 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10212
10213         * callproc.c (Fold_call_process_internal):
10214         * gpm.c (Freceive_gpm_event):
10215         (tty_get_foreign_selection): Might be just warning supression.
10216         * fileio.c (Fwrite_region_internal):
10217         (Fset_visited_file_modtime):
10218         * keymap.c (event_matches_key_specifier_p):
10219         Initialize GCPROed variable.
10220
10221         * menubar-x.c (command_builder_find_menu_accelerator):
10222         Initialize before use.
10223
10224 2000-11-23  Andy Piper  <andy@xemacs.org>
10225
10226         * unexcw.c (unexec): make the resulting executable executable.
10227
10228 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10229
10230         * doc.c (get_doc_string):
10231         Use size_t, not int, for result of XSTRING_LENGTH.
10232
10233         * cmds.c (Fdelete_char):
10234         * cmds.c (Fpoint_at_eol):
10235         * cmds.c (Fself_insert_command):
10236         Use EMACS_INT, not int, for result of XINT.
10237         Someday, someone will want to insert more than 2**31 identical characters.
10238
10239         * cmds.c (Fdelete_char):
10240         * cmds.c (Fdelete_backward_char):
10241         * syntax.c (Fforward_word):
10242         * syntax.c (Fforward_comment):
10243         Make COUNT argument optional, for consistency with forward-char et al.
10244
10245 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10246
10247         * lisp.h:
10248         * print.c (long_to_string):
10249         Return a useful value: the pointer at end of data written.
10250
10251         * doprnt.c:
10252         Use `static const char * const' for constant strings.
10253         (union printf_arg): Delete `i', `ui' members.
10254         (get_doprnt_args):
10255         (emacs_doprnt_1):
10256         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10257         Do all printf-ing via the `l' specifier.
10258         Use EMACS_INT instead of int.
10259         Optimize.
10260
10261 2000-11-20  Didier Verna  <didier@xemacs.org>
10262
10263         * faces.c (update_face_cachel_data): don't frob the background
10264         pixmap when the window is being created. The face is needed but
10265         does not exist yet.
10266
10267 2000-11-20  Andy Piper  <andy@xemacs.org>
10268
10269         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10270         messing with a debug environment.
10271
10272 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10273
10274         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10275
10276 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10277
10278         * casetab.c (Fcase_table_p): Fix compile error and crash.
10279
10280 2000-11-18  Philip Aston  <philipa@mail.com>
10281
10282         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10283
10284 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10285
10286         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10287         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10288
10289 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10290
10291         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10292         * unexelf.c: Use HAVE_ELF_H.
10293         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10294         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10295         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10296         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10297         for testing.
10298         So this is an unexelfsgi.c from a different line of development.
10299
10300 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10301
10302         * regex.c (RE_TR_ASCII): New function.
10303         (RE_TRANSLATE): Call it.
10304
10305 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10306
10307         * buffer.h (TRT_TABLE_OF): Remove assert.
10308         (IN_TRT_TABLE_DOMAIN): Removed.
10309
10310 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10311
10312         * free-hook.c (log_gcpro):
10313         (show_gcprohist): Add support for GCPRO5.
10314
10315 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10316
10317         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10318
10319 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10320
10321         * symeval.h: Declare flush_all_buffer_local_cache.
10322
10323         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10324         (flush_buffer_local_cache): Added.
10325         (flush_all_buffer_local_cache): Added.
10326
10327         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10328
10329         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10330         (pdump_dump_data): Ditto.
10331         (pdump_reloc_one): Ditto.
10332         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10333         before dumping.
10334
10335
10336 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10337
10338         * buffer.c: Remove if 0'ed entry.
10339         * buffer.h: Rewrite TRT to use char-table.
10340         * bufslots.h: Remove mirror tables.
10341         * casetab.c: Remove mirror tables.
10342         (CASE_TABLE_P): New macro.
10343         (Fcase_table_p): Element of a case table is string or char-table.
10344         (make_mirror_trt_table): Removed.
10345         (set_case_table): Setup char-table from strings for backward
10346         compatibility.
10347         * dired.c (Fdirectory_files):
10348         * dired-msw.c: (mswindows_get_files):
10349         * lisp.h: Change prototype of re_pattern_buffer.
10350         * regex.c: (RE_TRANSLATE): New macro.
10351         (TRANSLATE_P): Ditto.
10352         Change translate to type RE_TRANSLATE_TYPE.
10353         * regex.h: Define RE_TRANSLATE_TYPE
10354         * search.c (TRANSLATE): New macro.
10355         (TRANSLATE_ASCII): New macro.
10356         Translate table is changed to Lisp_Object.
10357         (signal_failure): Inhibit return.
10358
10359 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10360
10361         * device-msw.c:
10362         * eldap.c:
10363         * event-Xt.c:
10364         * event-stream.c:
10365         * print.c:
10366         Do UNGCPRO before return.
10367
10368 2000-11-14  Martin Buchholz <martin@xemacs.org>
10369
10370         * XEmacs 21.2.37 is released.
10371
10372 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10373
10374         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10375         Add comments about discarded return value.
10376
10377 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10378
10379         * callint.c:
10380         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10381
10382 2000-10-27  Andy Piper  <andy@xemacs.org>
10383
10384         * gutter.c (Fset_default_gutter_position): default left and right
10385         gutters to visible.
10386         (calculate_gutter_size): calculate resonable heuristic for left
10387         and right gutter sizes.
10388         (specifier_vars_of_gutter): change left and right gutter sizes to
10389         autodetect.
10390         (calculate_gutter_size_from_display_lines): new function.
10391         (output_gutter): check for resizing on left and right gutters.
10392         (clear_gutter): don't special case top and left gutters.
10393         (specifier_vars_of_gutter): use new signature for
10394         set_specifier_caching.
10395
10396         * glyphs-x.c (x_redisplay_widget): spelling fix.
10397         * glyphs.c (specifier_vars_of_glyphs):
10398         * menubar.c (specifier_vars_of_menubar):
10399         * redisplay.c (specifier_vars_of_redisplay):
10400         * toolbar.c (specifier_vars_of_toolbar):
10401         * window.c (specifier_vars_of_window):
10402         * scrollbar.c (specifier_vars_of_scrollbar):
10403         (complex_vars_of_scrollbar): use new signature for
10404         set_specifier_caching.
10405
10406         * specifier.c (set_specifier_caching): include recompute flag.
10407         (recompute_one_cached_specifier_in_window): always recompute if
10408         flag set.
10409         (recompute_one_cached_specifier_in_frame): ditto.
10410
10411         * specifier.h (struct specifier_caching): add recompute flag.
10412
10413 2000-10-24  Andy Piper  <andy@xemacs.org>
10414
10415         * unexcw.c (copy_executable_and_dump_data_section): add new
10416         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10417         5.0 happy.
10418
10419 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10420
10421         * console-x.h (x_device): New member modifier_release_time.
10422         * event-Xt.c (x_handle_sticky_modifiers):
10423         Bound interval modifier keys are sticky.
10424         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10425         * events.h: extern it.
10426
10427 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10428
10429         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10430
10431 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10432
10433         * event-stream.c (execute_command_event): Preserve current_events
10434         and the like when event is misc-user-event.
10435         Inhibit quit during the call to maybe_echo_keys.
10436
10437 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10438
10439         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10440         symlink when buffer is killed.
10441         (inhibit_clash_detection): New variable.
10442
10443 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10444
10445         * console.c (Fset_input_method): Trigger redisplay on tty.
10446
10447 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10448
10449         * process.c (Fprocess_status): Revert to previous behavior:
10450         (process-status "nosuchprocess") ==> nil
10451
10452 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10453
10454         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10455         Work around another GCC 2.95.2 optimizer bug.
10456
10457 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10458
10459         * process.c (Fget_process): Use LIST_LOOP_2.
10460         (kill_buffer_processes): Use LIST_LOOP_2.
10461
10462         * minibuf.c (Fall_completions):
10463         Delete old non-functional code for FSF fourth argument.
10464
10465         * frame.c (frame_matches_frame_spec):
10466         Renamed from `frame_matches_frametype'.  Update all callers.
10467         (device_matches_device_spec):
10468         Renamed from 'device_matches_console_spec'.  Update all callers.
10469
10470         * doc.c (Fsubstitute_command_keys):
10471         Remove buffer overflow crash.  Small code cleanups.
10472
10473         * casetab.c (check_case_table): Simpler code.
10474
10475         * window.c (Freplace_buffer_in_windows):
10476         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10477         (and similar implementation) as Fdelete_windows_on.
10478         Update all callers.
10479
10480         * alloc.c (Fmake_list):
10481         * alloc.c (make_vector):
10482         * alloc.c (Fmake_vector):
10483         * alloc.c (make_bit_vector):
10484         * alloc.c (Fmake_bit_vector):
10485         * alloc.c (Fbit_vector):
10486         * alloc.c (Fmake_string):
10487         * alloc.c (Fpurecopy):
10488         * alloc.c (Fmemory_limit):
10489         * buffer.c:
10490         * buffer.c (Fget_buffer):
10491         * buffer.c (Fkill_buffer):
10492         * buffer.c (complex_vars_of_buffer):
10493         * bytecode.c (Fcompiled_function_stack_depth):
10494         * callint.c (Fprefix_numeric_value):
10495         * event-stream.c:
10496         * event-stream.c (Fread_key_sequence):
10497         * casetab.c:
10498         * casetab.c (Fcase_table_p):
10499         * casetab.c (check_case_table):
10500         * casetab.c (Fset_case_table):
10501         * casetab.c (Fset_standard_case_table):
10502         * chartab.c:
10503         * chartab.c (Fchar_table_type):
10504         * chartab.c (Freset_char_table):
10505         * chartab.c (Fget_char_table):
10506         * chartab.c (Fget_range_char_table):
10507         * chartab.c (Fput_char_table):
10508         * chartab.c (Fmap_char_table):
10509         * chartab.c (Fcategory_table_p):
10510         * chartab.c (Fcheck_category_at):
10511         * chartab.c (Fchar_in_category_p):
10512         * chartab.c (Fcategory_table):
10513         * chartab.c (Fcopy_category_table):
10514         * chartab.c (Fset_category_table):
10515         * chartab.c (Fcategory_designator_p):
10516         * chartab.c (Fcategory_table_value_p):
10517         * cmds.c (Fdelete_char):
10518         * cmds.c (Fdelete_backward_char):
10519         * cmds.c (Fself_insert_command):
10520         * cmds.c (Fself_insert_internal):
10521         * console.c (Fvalid_console_type_p):
10522         * console.c (Fcdfw_console):
10523         * console.c (Fconsole_type):
10524         * console.c (Fconsole_name):
10525         * console.c (Fconsole_device_list):
10526         * console.c (Fconsole_on_window_system_p):
10527         * data.c:
10528         * data.c (Feq):
10529         * data.c (Fold_eq):
10530         * data.c (Fsubr_interactive):
10531         * data.c (Fchar_to_int):
10532         * data.c (Fint_to_char):
10533         * data.c (Fsetcar):
10534         * data.c (Fsetcdr):
10535         * data.c (Fnumber_to_string):
10536         * data.c (Fstring_to_number):
10537         * data.c (Frem):
10538         * database.c (mark_database):
10539         * database.c (finalize_database):
10540         * database.c (Fdatabase_live_p):
10541         * database.c (Fdatabasep):
10542         * device-x.c (Fx_get_resource):
10543         * device.c (Fdfw_device):
10544         * dired.c:
10545         * dired.c (Ffile_name_completion):
10546         * dired.c (Ffile_name_all_completions):
10547         * dired.c (Fuser_name_completion):
10548         * dired.c (Fuser_name_completion_1):
10549         * dired.c (Fuser_name_all_completions):
10550         * doc.c (Fdocumentation):
10551         * doc.c (Fdocumentation_property):
10552         * doc.c (Fsubstitute_command_keys):
10553         * editfns.c:
10554         * editfns.c (Fchar_to_string):
10555         * editfns.c (Fstring_to_char):
10556         * editfns.c (Ftemp_directory):
10557         * editfns.c (Finsert_char):
10558         * editfns.c (Fbuffer_substring_no_properties):
10559         * editfns.c (Fnarrow_to_region):
10560         * editfns.c (Fchar_equal):
10561         * editfns.c (Fchar_Equal):
10562         * editfns.c (Ftranspose_regions):
10563         * emacs.c (Fdump_emacs):
10564         * eval.c (Fthrow):
10565         * eval.c (Fcommand_execute):
10566         * eval.c (Fautoload):
10567         * eval.c (Fbacktrace):
10568         * eval.c (Fbacktrace_frame):
10569         * events.c:
10570         * events.c (Fcopy_event):
10571         * events.c (Fcharacter_to_event):
10572         * events.c (Fevent_button):
10573         * events.c (Fevent_process):
10574         * extents.c:
10575         * extents.c (Fnext_extent_change):
10576         * extents.c (Fextent_property):
10577         * faces.c (Ffacep):
10578         * faces.c (Fmake_face):
10579         * file-coding.c:
10580         * file-coding.c (Fencode_shift_jis_char):
10581         * file-coding.c (Fencode_big5_char):
10582         * fileio.c (Ffile_name_directory):
10583         * fileio.c (Ffile_name_nondirectory):
10584         * fileio.c (Ffile_name_as_directory):
10585         * fileio.c (Fdirectory_file_name):
10586         * fileio.c (Ffile_truename):
10587         * fileio.c (Fsubstitute_in_file_name):
10588         * fileio.c (Ffile_modes):
10589         * fileio.c (Fset_file_modes):
10590         * fileio.c (Fset_default_file_modes):
10591         * fileio.c (Fverify_visited_file_modtime):
10592         * floatfns.c (Facos):
10593         * floatfns.c (Fasin):
10594         * floatfns.c (Fatan):
10595         * floatfns.c (Fcos):
10596         * floatfns.c (Fsin):
10597         * floatfns.c (Ftan):
10598         * floatfns.c (Fbessel_j0):
10599         * floatfns.c (Fbessel_j1):
10600         * floatfns.c (Fbessel_jn):
10601         * floatfns.c (Fbessel_y0):
10602         * floatfns.c (Fbessel_y1):
10603         * floatfns.c (Fbessel_yn):
10604         * floatfns.c (Ferf):
10605         * floatfns.c (Ferfc):
10606         * floatfns.c (Flog_gamma):
10607         * floatfns.c (Fexp):
10608         * floatfns.c (Fexpt):
10609         * floatfns.c (Flog):
10610         * floatfns.c (Flog10):
10611         * floatfns.c (Fsqrt):
10612         * floatfns.c (Fcube_root):
10613         * floatfns.c (Facosh):
10614         * floatfns.c (Fasinh):
10615         * floatfns.c (Fatanh):
10616         * floatfns.c (Fcosh):
10617         * floatfns.c (Fsinh):
10618         * floatfns.c (Ftanh):
10619         * floatfns.c (Fabs):
10620         * floatfns.c (Ffloat):
10621         * floatfns.c (Flogb):
10622         * floatfns.c (Fceiling):
10623         * floatfns.c (Ffloor):
10624         * floatfns.c (Fround):
10625         * floatfns.c (Ftruncate):
10626         * floatfns.c (Ffceiling):
10627         * floatfns.c (Fffloor):
10628         * floatfns.c (Ffround):
10629         * floatfns.c (Fftruncate):
10630         * fns.c (Fstring_equal):
10631         * fns.c (Fstring_lessp):
10632         * fns.c (concat2):
10633         * fns.c (concat3):
10634         * fns.c (vconcat2):
10635         * fns.c (vconcat3):
10636         * fns.c (Fsubstring):
10637         * fns.c (Fassoc):
10638         * fns.c (Fold_assoc):
10639         * fns.c (assoc_no_quit):
10640         * fns.c (Fassq):
10641         * fns.c (Fold_assq):
10642         * fns.c (assq_no_quit):
10643         * fns.c (Frassoc):
10644         * fns.c (Fold_rassoc):
10645         * fns.c (Frassq):
10646         * fns.c (Fold_rassq):
10647         * fns.c (rassq_no_quit):
10648         * fns.c (Fremassoc):
10649         * fns.c (remassoc_no_quit):
10650         * fns.c (Fremassq):
10651         * fns.c (remassq_no_quit):
10652         * fns.c (Fremrassoc):
10653         * fns.c (Fremrassq):
10654         * fns.c (remrassq_no_quit):
10655         * fns.c (Fsort):
10656         * fns.c (Fplist_get):
10657         * fns.c (Fplist_put):
10658         * fns.c (Fplist_remprop):
10659         * fns.c (Fplist_member):
10660         * fns.c (Flax_plist_get):
10661         * fns.c (Flax_plist_put):
10662         * fns.c (Flax_plist_remprop):
10663         * fns.c (Flax_plist_member):
10664         * fns.c (Fequal):
10665         * fns.c (Fold_equal):
10666         * fns.c (Frequire):
10667         * fns.c (Fbase64_encode_region):
10668         * fns.c (Fbase64_encode_string):
10669         * fns.c (Fbase64_decode_region):
10670         * frame.c:
10671         * frame.c (frame_matches_frame_spec):
10672         * frame.c (device_matches_device_spec):
10673         * frame.c (next_frame):
10674         * frame.c (previous_frame):
10675         * frame.c (Fnext_frame):
10676         * frame.c (Fprevious_frame):
10677         * frame.c (Fframe_property):
10678         * frame.c (Fset_frame_height):
10679         * frame.c (Fset_frame_size):
10680         * frame.h:
10681         * glyphs.c:
10682         * glyphs.c (if):
10683         * glyphs.c (decode_error_behavior_flag):
10684         * glyphs.c (Fmake_image_instance):
10685         * indent.c (Findent_to):
10686         * intl.c (Fignore_defer_gettext):
10687         * keymap.c (Fkeymapp):
10688         * keymap.c (Flookup_key):
10689         * lread.c:
10690         * lread.c (Fload_internal):
10691         * lread.c (Feval_buffer):
10692         * lread.c (Feval_region):
10693         * macros.c (Fexecute_kbd_macro):
10694         * marker.c (set_marker_internal):
10695         * marker.c (Fset_marker):
10696         * marker.c (set_marker_restricted):
10697         * marker.c (Fcopy_marker):
10698         * marker.c (noseeum_copy_marker):
10699         * menubar.c:
10700         * menubar.c (Fpopup_menu):
10701         * minibuf.c:
10702         * mule-charset.c (Fcharset_name):
10703         * mule-charset.c (Fchar_charset):
10704         * mule-charset.c (Fchar_octet):
10705         * mule-charset.c (Fsplit_char):
10706         * mule-wnnfns.c (Fwnn_open):
10707         * mule-wnnfns.c (Fwnn_dict_comment):
10708         * mule-wnnfns.c (Fwnn_quit_henkan):
10709         * mule-wnnfns.c (Fwnn_word_toroku):
10710         * mule-wnnfns.c (Fwnn_word_sakujo):
10711         * mule-wnnfns.c (Fwnn_word_use):
10712         * mule-wnnfns.c (Fwnn_hindo_set):
10713         * objects.c:
10714         * objects.c (Fmake_color_instance):
10715         * objects.c (Fmake_font_instance):
10716         * print.c (Fwrite_char):
10717         * process.c:
10718         * process.c (mark_process):
10719         * process.c (print_process):
10720         * process.c (get_process_from_usid):
10721         * process.c (Fprocessp):
10722         * process.c (Fprocess_live_p):
10723         * process.c (Fget_process):
10724         * process.c (Fget_buffer_process):
10725         * process.c (get_process):
10726         * process.c (Fprocess_id):
10727         * process.c (Fprocess_name):
10728         * process.c (Fprocess_command):
10729         * process.c (init_process_io_handles):
10730         * process.c (start_process_unwind):
10731         * process.c (Fstart_process_internal):
10732         * process.c (Fopen_multicast_group_internal):
10733         * process.c (Fset_process_window_size):
10734         * process.c (read_process_output):
10735         * process.c (send_process):
10736         * process.c (Fprocess_tty_name):
10737         * process.c (Fset_process_buffer):
10738         * process.c (Fprocess_buffer):
10739         * process.c (Fprocess_mark):
10740         * process.c (set_process_filter):
10741         * process.c (Fset_process_filter):
10742         * process.c (Fprocess_filter):
10743         * process.c (Fprocess_send_region):
10744         * process.c (Fprocess_send_string):
10745         * process.c (exec_sentinel):
10746         * process.c (Fset_process_sentinel):
10747         * process.c (Fprocess_sentinel):
10748         * process.c (status_notify):
10749         * process.c (Fprocess_status):
10750         * process.c (Fprocess_exit_status):
10751         * process.c (process_send_signal):
10752         * process.c (Fprocess_send_eof):
10753         * process.c (deactivate_process):
10754         * process.c (remove_process):
10755         * process.c (Fdelete_process):
10756         * process.c (kill_buffer_processes):
10757         * process.c (Fprocess_kill_without_query):
10758         * process.c (Fprocess_kill_without_query_p):
10759         * rangetab.c:
10760         * rangetab.c (Fget_range_table):
10761         * rangetab.c (Fput_range_table):
10762         * rangetab.c (Fremove_range_table):
10763         * rangetab.c (Fclear_range_table):
10764         * search.c:
10765         * search.c (Fskip_chars_forward):
10766         * search.c (Fskip_chars_backward):
10767         * search.c (Fskip_syntax_forward):
10768         * search.c (Fskip_syntax_backward):
10769         * search.c (search_command):
10770         * search.c (Freplace_match):
10771         * search.c (Fregexp_quote):
10772         * select.c (Fown_selection_internal):
10773         * select.c (Fselection_owner_p):
10774         * select.c (Fselection_exists_p):
10775         * select.c (Fget_selection_internal):
10776         * specifier.c:
10777         * symbols.c:
10778         * symbols.c (Fintern):
10779         * symbols.c (Fintern_soft):
10780         * symbols.c (Funintern):
10781         * symbols.c (Fapropos_internal):
10782         * symbols.c (Fset_default):
10783         * syntax.c:
10784         * syntax.c (Fsyntax_table_p):
10785         * syntax.c (Fcopy_syntax_table):
10786         * syntax.c (Fset_syntax_table):
10787         * syntax.c (Fchar_syntax):
10788         * syntax.c (syntax_match):
10789         * syntax.c (Fmatching_paren):
10790         * syntax.c (Fforward_word):
10791         * syntax.c (scan_lists):
10792         * syntax.c (Fscan_lists):
10793         * syntax.c (Fscan_sexps):
10794         * syntax.c (Fparse_partial_sexp):
10795         * toolbar.c (Fcheck_toolbar_button_syntax):
10796         * tooltalk.doc:
10797         * window.c:
10798         * window.c (Fwindowp):
10799         * window.c (Fwindow_live_p):
10800         * window.c (Fwindow_point):
10801         * window.c (Fdelete_window):
10802         * window.c (Fnext_window):
10803         * window.c (Fprevious_window):
10804         * window.c (Fother_window):
10805         * window.c (window_loop):
10806         * window.c (Fget_lru_window):
10807         * window.c (Fsplit_window):
10808         * window.c (Fenlarge_window):
10809         * window.c (Fenlarge_window_pixels):
10810         * window.c (Fshrink_window):
10811         * window.c (Fshrink_window_pixels):
10812         * window.c (change_window_height):
10813         * window.c (Fwindow_configuration_p):
10814         * window.c (Fcurrent_window_configuration):
10815         * window.h:
10816         * casefiddle.c (casify_object):
10817         * casefiddle.c (Fupcase):
10818         * casefiddle.c (Fdowncase):
10819         * casefiddle.c (Fcapitalize):
10820         * casefiddle.c (Fupcase_initials):
10821         * casefiddle.c (casify_region_internal):
10822         * casefiddle.c (casify_region):
10823         * casefiddle.c (Fupcase_region):
10824         * casefiddle.c (Fdowncase_region):
10825         * casefiddle.c (Fcapitalize_region):
10826         * casefiddle.c (Fupcase_initials_region):
10827         * casefiddle.c (Fupcase_word):
10828         * casefiddle.c (Fdowncase_word):
10829         * casefiddle.c (Fcapitalize_word):
10830         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10831         Replace 0 with '\0' when working with bytes.
10832         Replace initial "(" with "\(" in docstrings.
10833
10834 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10835
10836         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10837
10838         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10839
10840 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10841
10842         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10843
10844 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10845
10846         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10847         correctly.
10848
10849 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10850
10851         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10852         (inhibit_auto_save_session): New variable.
10853         (vars_of_fileio): Declare and initialize them.
10854         * fileio.c (Fdo_auto_save): Don't create session file if
10855         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10856
10857 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10858
10859         * sgiplay.c (play_internal): C++ compilability.
10860         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10861         * callproc.c (Fold_call_process_internal):
10862         Remove unused vars `env', `first'.
10863         * scrollbar.c (update_scrollbar_instance):
10864         #### unused var `current_window'.
10865         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10866         etc. within #ifdef NOT_YET.
10867         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10868         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10869         * specifier.c (specifier_instance):
10870         #### unused var `tag'.
10871         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10872
10873 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10874
10875         * fns.c (Fbutlast):
10876         * fns.c (list_sort):
10877         * fns.c (Ffillarray):
10878         * fns.c (bytecode_nconc2):
10879         * fns.c (Fnconc):
10880         * fns.c (mapcar1):
10881         * fns.c (Fmapconcat):
10882         Be pedantically 64-bit correct.  For the time when someone will
10883         want to have a list with length > 2**32.
10884
10885         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10886         Work around MIPSpro compiler bug.
10887
10888         * process-unix.c (unix_kill_child_process): Add snarky comment.
10889         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10890
10891         * config.h.in: Oops, _getpt ==> _getpty
10892
10893 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10894
10895         * config.h.in:
10896         * regex.c:
10897         Use void*, not char*, as return type of alloca().
10898
10899         * alloc.c (free_marker): Side effect inside assert expression!
10900
10901 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10902
10903         * mule-charset.c (Fset_charset_ccl_program): To check
10904         if the given ccl program is valid, use setup_ccl_program()
10905         instead of CHECK_VECTOR().
10906         (Fmake_charset): Likewise.
10907
10908 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10909
10910         * faces.c (get_extent_fragment_face_cache_index):
10911         Fix cachel.merged_faces memory leak.
10912
10913 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10914
10915         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10916         Reset MSB of octets obtained by DECODE_SJIS
10917         because of the incompatibility with Emacs.
10918         (ccl_driver)<CCL_ENCODE_SJIS>:
10919         Set MSB of octets before passing them to
10920         ENCODE_SJIS because of the incompatibility
10921         with Emacs.
10922
10923 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10924
10925         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10926         (DECLARE_LRECORD): Undo the last change.
10927         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10928
10929 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10930
10931         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10932         the implementation to lrecord_implementations_table.
10933
10934 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10935
10936         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10937         initial value of `lrecord_type_##c_name' and
10938         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10939         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10940         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10941         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10942         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10943
10944 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10945
10946         * miscplay.c (sndcnv8S_2mono):
10947         (sndcnv2monounsigned):
10948         (sndcnvULaw_2linear):
10949         (sndcnv16swap):
10950         Remove implementation-defined behavior.
10951
10952 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10953
10954         * input-method-xlib.c: Warning suppression.
10955
10956 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10957
10958         * mule-ccl.c: Sync up with Emacs 21.0.90.
10959         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10960         Do nothing.
10961         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10962         Likewise.
10963         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10964         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10965         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10966         leading char belongs to official 2-dimensional charset.
10967         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10968         write the given character as is.  Otherwise,
10969         if it is a multibyte char, convert it by
10970         non_ascii_set_charptr_emchar, then write it.
10971         (CCL_WRITE_STRING): Likewise.
10972         (ccl_get_compiled_code): New function.
10973         (setup_ccl_program): When ccl_prog is invalid,
10974         return -1.
10975         (Fregister_code_conversion_map): New function.
10976         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10977
10978         * mule-ccl.h: Sync up with Emacs 21.0.90.
10979         (Fregister_ccl_program): export it.
10980
10981         * redisplay-msw.c (separate_textual_runs):
10982         If ccl program is not valid, don't do ccl conversion.
10983
10984         * redisplay-x.c (separate_textual_runs): Ditto.
10985
10986         * file-coding.c (Fmake_coding_system):
10987         When type is ccl and value is vector, register it
10988         with a proper symbol.  And checks whether the
10989         given ccl program is valid.
10990         (mule_decode): When calling ccl_driver, if src indicates
10991         NULL pointer, set an empty string instead.
10992         (mule_encode): Likewise.
10993
10994 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10995
10996         The following large batch of changes gets us back to a state of
10997         C++ compilability.  Extbyte is now a char, which means that
10998         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10999
11000         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
11001
11002         * sound.c (Fplay_sound): Type correctness.
11003
11004         * select-x.c (hack_motif_clipboard_selection): Type correctness.
11005         (x_get_window_property): Type correctness.
11006         (receive_incremental_selection): unsigned char ==> Extbyte
11007         (selection_data_to_lisp_data): unsigned char ==> Extbyte
11008         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
11009         (Fx_store_cutbuffer_internal): Type correctness.
11010
11011         * process-unix.c (try_to_initialize_subtty): Type correctness.
11012
11013         * objects-x.c (x_print_color_instance): Type correctness.
11014         (x_print_font_instance): Type correctness.
11015         (x_list_fonts): SExtbyte ==> Extbyte.
11016         (valid_x_font_name_p): SExtbyte ==> Extbyte.
11017         (x_find_charset_font): SExtbyte ==> Extbyte.
11018         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
11019         (truename_via_XListFonts): SExtbyte ==> Extbyte.
11020         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
11021         Use bufbyte_strcmp.
11022
11023         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
11024         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
11025         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
11026         (BYTE_C0_P): Use bit ops for char-signedness safety.
11027         (BYTE_C1_P): Use bit ops for char-signedness safety.
11028         (CHARSET_BY_LEADING_BYTE):
11029         (CHARSET_BY_ATTRIBUTES):
11030         Always use inline function.
11031         Use type_checking_assert.
11032         Hide chlook.
11033
11034         * mule-charset.c (non_ascii_charptr_copy_char):
11035         Modify to work with both ASCII and non-ASCII characters.
11036         Improve docs and variable names.
11037         Replace over-clever fall-through switch with a simple loop.
11038         (Lstream_get_emchar_1):
11039         Replace over-clever fall-through switch with a simple loop.
11040
11041         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11042         Warning suppression.
11043
11044         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
11045         the return value of Lstream_getc, which could be EOF as well.
11046
11047         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
11048
11049         * lisp.h: Make Extbyte a char, not unsigned char, so that external
11050         APIs can be used on Extbytes without casts.  Risky!
11051         (SExtbyte): Remove.
11052         (UExtbyte): Remove.
11053
11054         * input-method-xlib.c (XIM_init_device):
11055         Use Xlib.h instead of IntrinsicP.h.
11056         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
11057         which will break in X11R7.
11058         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
11059         to call XRegisterIMInstantiateCallback with correct types.
11060
11061         * gui-x.c (button_item_to_widget_value): Type correctness.
11062
11063         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
11064
11065         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
11066         (xbm_instantiate_1): Type correctness.
11067         (BUILD_GLYPH_INST):  Type correctness.
11068
11069         * fileio.c (Fsubstitute_in_file_name): Type correctness.
11070
11071         * file-coding.c:
11072         (decode_coding_sjis):
11073         (decode_coding_big5):
11074         (decode_coding_ucs4):
11075         (decode_coding_utf8):
11076         (decode_coding_iso2022):
11077         (decode_coding_no_conversion):
11078         Make all decoding functions take an Extbyte * arg.
11079         (encode_coding_sjis):
11080         (encode_coding_big5):
11081         (encode_coding_ucs4):
11082         (encode_coding_utf8):
11083         (encode_coding_iso2022):
11084         (encode_coding_no_conversion):
11085         Make all encoding functions take a Bufbyte * arg.
11086         Use size_t instead of unsigned int for memory sizes.
11087         Only cast to unsigned char whenever dereferencing Extbyte *.
11088
11089         * doc.c (unparesseuxify_doc_string): Type correctness.
11090
11091         * console-x.c (split_up_display_spec):
11092         Rewrite without using details of internal string representation.
11093         (x_semi_canonicalize_device_connection): Type correctness.
11094
11095         * config.h.in:
11096         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
11097         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
11098         (HAVE_XFREE386): Removed.
11099
11100         * buffer.h (DEC_CHARPTR): `const' correctness.
11101         (bufbyte_strcmp): New.
11102         (bufbyte_memcmp): New.
11103
11104         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
11105
11106         * buffer.h (XCHAR_OR_CHAR_INT):
11107         Always use inline function.
11108         Remove redundant type checking assert() - XINT will abort quite nicely.
11109
11110 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11111
11112         * search.c (Freplace_match): Set newtext to an empty string.
11113
11114 2000-10-10  Martin Buchholz  <martin@xemacs.org>
11115
11116         * s/decosf1-3.h: Remove #include of stropts.h
11117         * s/ptx.h: Remove #include of stropts.h
11118         * s/usg5-4.h: Remove #include of stropts.h
11119         * sysproc.h:
11120         * config.h.in:
11121         Use stropts.h, not sys/stropts.h.
11122         Use strtio.h, not sys/strtio.h.
11123
11124 2000-10-04  Martin Buchholz <martin@xemacs.org>
11125
11126         * XEmacs 21.2.36 is released.
11127
11128 2000-09-21  Andy Piper  <andy@xemacs.org>
11129
11130         * glyphs-x.c (x_redisplay_widget): make sure non-structural
11131         changes still involve copying the widget tree.
11132         (update_widget_face): make sure a change is register in the widget
11133         tree. Call update_tab_widget_face appropriately.
11134         (update_tab_widget_face): ditto.
11135         (x_tab_control_redisplay): make sure non-structural changes still
11136         involve copying the widget tree.
11137
11138 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
11139
11140         * lread.c (locate_file): Check the path element is non-nil.
11141
11142 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11143
11144         * lisp.h: Warning suppression for SCO compilers.
11145
11146         * redisplay-tty.c (reset_tty_modes): Fix crash.
11147         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
11148
11149 2000-09-27  Martin Buchholz  <martin@xemacs.org>
11150
11151         Big signal/process handling overhaul.  Bugs fixed:
11152         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
11153         M-x comint-kill-subjob should work for both values nil and t of
11154         process-connection-type. It was broken on most platforms.
11155         Testing on Irix and Cygwin still needed.  Other plaforms tested.
11156         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
11157         * process-unix.c: Signal/Process handling overhaul.
11158         (pty_name): make 64 bytes, as `expect' does, for paranoia.
11159         (allocate_pty): Use all available modern methods of allocating
11160         ptys, falling back to old style BSD allocation as a last resort.
11161         Use allegedly more secure Unix98 pty allocation by default.
11162         (allocate_pty_the_old_fashioned_way): New. the last resort.
11163         (unix_create_process): Push ptem, ldterm, ttcompat where
11164         available.  Autoconfiscate.
11165         (try_to_initialize_subtty): New.
11166         (unix_kill_child_process): Proper signal handling for ptys on most
11167         platforms, using special knowledge of AIX, BSD, etc...
11168         (unix_create_process): Always disconnect_controlling_terminal() for
11169         subprocesses, whether using ptys or not.
11170         * process.h: Remove old getpt-dependent PTY code.
11171         * process.c (Fprocess_send_signal): New, obvious generic function.
11172         (decode_signal): New.
11173         (Finterrupt_process):
11174         (Fkill_process):
11175         (Fquit_process):
11176         (Fstop_process):
11177         (Fcontinue_process):
11178         (Fsignal_process): Use decode_signal.
11179         (process_send_signal):
11180         Many docstring corrections.
11181         Allow any signal to be sent to a process object.
11182         * config.h.in: Add symbols for big signal/process overhaul.
11183         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
11184         * sysproc.h: Include process-related headers, where available:
11185         sys/stropts.h sys/strtio.h pty.h libutil.h
11186         * s/irix4-0.h:
11187         * s/irix5-0.h:
11188         * s/cygwin32.h:
11189         * s/gnu.h:
11190         * s/linux.h:
11191         * s/hpux.h:
11192         * s/aix3-1.h:
11193         Remove old S&M pty stuff.
11194         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
11195         * systty.h: Simplify cpp hackery, improve comments.
11196         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
11197
11198         * editfns.c (Fformat_time_string):
11199         Be a little more paranoid with the return value of ctime.
11200
11201         * fileio.c (check_executable):
11202         (check_writable):
11203         Use symbolic constants X_OK, W_OK.
11204
11205         * console-x.c (split_up_display_spec): Fix a warning.
11206
11207 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11208
11209         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11210         * ntproc.c (sys_spawnve): make_string ==> build_string
11211         Small clarity improvements.
11212
11213 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11214
11215         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11216
11217         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11218
11219         * config.h.in (HAVE_STRCASECMP): Remove.
11220
11221 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11222
11223         * redisplay-output.c (redisplay_output_pixmap):
11224         Cleaner and possibly more 64-bit correct code.
11225
11226 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11227
11228         * dumper.c (pdump_load_finish): move restoration of
11229         `noninteractive1' to emacs.c (main_1).
11230         * emacs.c (main_1): protect LISP-visible command-line flags
11231         from pdump_load().
11232
11233 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11234
11235         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11236         DUMP_TARGET instead of literal program names.
11237
11238 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11239
11240         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11241
11242 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11243
11244         * *: Spelling mega-patch
11245
11246 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11247
11248         * fns.c (bad_bad_turtle):
11249         Delete "Eek!" comment, since we fixed the bug to which it refers.
11250
11251 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11252
11253         * alloca.c: Replace REGISTER with register.
11254
11255 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11256
11257         * file-coding.c (ucs_to_char): Use countof.
11258
11259 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11260
11261         * file-coding.c: (ucs_to_char):
11262         (complex_vars_of_file_coding):
11263         Use countof instead of sizeof.
11264         Use CHECK_NATNUM instead of CHECK_INT.
11265
11266         * sysdep.c (strcasecmp): Remove.
11267         * device-x.c (ascii_strcasecmp): New.
11268         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11269         Avoid using non-standard non-portable strcasecmp.
11270
11271 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11272
11273         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11274         * font-lock.c: remove reference to emacsfns.h.
11275         * search.c: small doc improvement.
11276         * event-Xt.c: correct file names in comments.
11277         * console-x.h Correct file names in comments.
11278         * frame.c: Correct file names in comments.
11279         * event-stream.c: remove Energize from comments.
11280
11281 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11282
11283         * symeval.h (DEFERROR_STANDARD):
11284         (DEFERROR):
11285         (DEFSYMBOL):
11286         (DEFSYMBOL_NO_DUMP):
11287         (DEFSYMBOL_MULTIWORD_PREDICATE):
11288         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11289         (DEFKEYWORD):
11290         The construct &##name is not sensible C.
11291         Fixes compilation errors with Unixware native compiler.
11292
11293 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11294
11295         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11296         (next_frame_internal): Removed.  We now just have next_frame.
11297         (next_frame):
11298         Write a simpler and cleaner one-pass algorithm.
11299         Remove called_from_delete_device arg and #ifdefed-out code.
11300         (previous_frame):
11301         Renamed from prev_frame.  Update callers.
11302         Cleaned up to have an analogous implementation to next_frame.
11303         (other_visible_frames_internal): Remove the
11304         called_from_delete_device bogus arg, and hence, remove this
11305         function.  Just use other_visible_frames().
11306
11307         * window.c (Fnext_window):
11308         Prettify docstring.
11309         Since next_frame() is guaranteed to return a frame, remove check
11310         for nil inserted in previous patch.
11311         (Fprevious_window):
11312         Prettify docstring.
11313         Make code look more like Fnext_window.
11314         (window_loop):
11315         Respect the `console' arg when iterating through windows.
11316         Fixes bug: (get-buffer-window buffer t device) not respecting
11317         the `device' arg.
11318         This function needs more work, as others have pointed out.
11319
11320         * frame.h: Rename prev_frame to previous_frame.
11321         device_matches_console_spec no longer takes a `frame' arg.
11322
11323         * s/gnu.h:
11324         * s/linux.h:
11325         * s/hpux.h:
11326         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11327         From "Golubev I. N." <gin@mo.msk.ru>.
11328
11329         * make-src-depend: Fix typo.
11330
11331 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11332
11333         * window.c (Fnext_window):
11334         next_frame() might return nil, not a frame.
11335         Fixes this crash:
11336         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11337
11338         * frame.c (next_frame_internal):
11339         We've passed a frame if we've passed its device.
11340         Fixes this crash:
11341         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11342 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11343
11344 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11345
11346         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11347         Allow option to suppress accelerators in menu/dialog items.
11348         (populate_or_checksum_helper): Pass dialog title through above.
11349
11350 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11351
11352         * event-msw.c (mswindows_key_to_emacs_keysym):
11353         Add "pause" key, fix "menu" key.
11354
11355 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11356
11357         * eval.c (reinit_vars_of_eval):
11358         Increase max_lisp_eval_depth to 1000,
11359         required for thai-xtis.el to byte-compile under some circumstances.
11360
11361 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11362
11363         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11364         From Kenichi Handa.
11365
11366 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11367
11368         * make-src-depend: Make the generated Makefiles smaller.
11369
11370         * s/hpux.h (SETUP_SLAVE_PTY):
11371         Provide a %d in the format string for the errno argument.
11372
11373         * editfns.c (Ftemp_directory):
11374         Warning fix.
11375         Avoid buffer overrun on very long file name.
11376
11377         * input-method-xlib.c (XIM_init_device):
11378         6th parameter of XRegisterIMInstantiateCallback has different
11379         pointer types on different OSes, so simply cast to (void *).
11380
11381         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11382
11383         * sysdll.c (dll_open):
11384         shl_load will hang hard if passed a NULL filename.
11385         Simply return NULL for compatibility with dlopen.
11386         * sysdll.c: Conform to XEmacs coding standards.
11387
11388         * sysdep.c (get_pty_max_bytes):
11389         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11390
11391 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11392
11393         * tooltalk.c: Add #include <syssignal.h>
11394
11395 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11396
11397         * s/hpux.h: Don't use undefined function sigunblock().
11398
11399 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11400
11401         * config.h.in: Add HAVE_BALLOON_HELP.
11402         * emacs.c: Use HAVE_BALLOON_HELP.
11403         * Makefile.in.in (x_objs):
11404         Make Balloon Help conditional on finding shape.h.
11405
11406 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11407
11408         * syntax.c (regex_emacs_buffer_p): New variable.
11409         * syntax.h (regex_emacs_buffer_p): extern.
11410         * search.c (looking_at_1):
11411         (string_match_1):
11412         (fast_string_match):
11413         (search_buffer): Set regex_emacs_buffer_p.
11414         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11415         when before_dot, at_dot, after_dot.
11416
11417 2000-08-23  Andy Piper  <andy@xemacs.org>
11418
11419         * gui-x.c (popup_selection_callback): Only set action_occurred
11420         when we really have an image instance.
11421         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11422
11423 2000-08-23  Andy Piper  <andy@xemacs.org>
11424
11425         * gui-msw.c (mswindows_handle_gui_wm_command): set
11426         action_occurred.
11427         * gui-x.c (popup_selection_callback): ditto.
11428
11429         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11430         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11431         (struct Lisp_Image_Instance): add action_occurred flag.
11432
11433         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11434         (image_instance_changed): ditto.
11435         (reset_frame_subwindow_instance_cache): only unmap windows - do
11436         not remove them from the cache also.
11437
11438         * glyphs-widget.c (tab_control_update): better debug.
11439         (progress_gauge_update): ditto.
11440         (layout_update): ditto.
11441         (layout_instantiate): ditto.
11442         (tab_control_order_only_changed): cope with null pending items.
11443
11444         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11445         debug. Force selection of an item when an action occurred. Cope
11446         with null pending_items.
11447         (mswindows_progress_gauge_redisplay): better debug.
11448         * glyphs-x.c (x_tab_control_redisplay): ditto.
11449
11450         * redisplay.c (redisplay_frame): reset the frame cache if the
11451         frame is garbaged.
11452
11453         * window.c (Fset_window_configuration): potentially re-enable
11454         frame cache reset.
11455         (window_unmap_subwindows): need to finalize instances here since
11456         it is only used in mark_window_as_deleted.
11457
11458 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11459
11460         * nas.c (SndOpenDataForReading):
11461         nas.c (WaveOpenDataForReading):
11462         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11463         Somehow escaped from the 2000-08-14 patch.
11464
11465 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11466
11467         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11468         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11469
11470 2000-08-21  Andy Piper  <andy@xemacs.org>
11471
11472         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11473         window if it is not already displayed.
11474
11475         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11476         it is not already displayed.
11477
11478         * window.c (Fset_window_configuration): don't reset the frame
11479         cache.
11480
11481         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11482         instances from the frame cache if we are actually finalizing them.
11483         (reset_frame_subwindow_instance_cache): reset frame cache only
11484         after unmapping everything.
11485         (map_subwindow): set displayed flag after mapping.
11486
11487 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11488
11489         * data.c (indirect_function):
11490         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11491
11492         * eval.c (function_argcount):
11493         Use original function when signaling errors.
11494
11495 2000-08-18  Andy Piper  <andy@xemacs.org>
11496
11497         * frame.c (delete_frame_internal): use new
11498         free_frame_subwindow_instances name.
11499
11500         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11501         (add_tab_item): make return type correct.
11502         (mswindows_tab_control_instantiate): assert index of tab.
11503         (mswindows_tab_control_redisplay): Re-code to use
11504         gui_item_equal_sans_selected and gui_item_list_find_selected.
11505
11506         * glyphs-widget.c (tab_control_update): Correct comment.
11507
11508         * window.c (window_unmap_subwindows): use new
11509         unmap_subwindow_instance_cache_mapper.
11510         (window_unmap_subwindows_cache_mapper): deleted.
11511         (Fset_window_configuration): comparisons should now be with
11512         EQ. Preserve the subwindow instance cache across configuration
11513         changes.
11514         (allocate_window): ditto.
11515         (make_dummy_parent): ditto.
11516
11517         * glyphs.c (free_frame_subwindow_instances): rename from
11518         free_frame_subwindow_instance_cache. finalize all instances rather
11519         than just those in the display cache.
11520         (finalize_all_subwindow_instances): walk windows unmapping and
11521         finalizing subwindows.
11522         (unmap_subwindow_instance_cache_mapper): moved from
11523         window.c. Allow finalization as well as unmapping.
11524
11525         * gui.c (gui_item_list_find_selected): new function.
11526
11527         * gui.h (gui_item_list_find_selected): declare.
11528
11529         * glyphs-x.c (x_tab_control_redisplay): pick tab
11530         explicitly. Re-code to use gui_item_equal_sans_selected and
11531         gui_item_list_find_selected.
11532
11533         * glyphs-x.h: add lwlib-utils.h
11534
11535         * buffer.c (Frecord_buffer): undo previous change.
11536
11537 2000-08-09  Vin Shelton  <acs@xemacs.org>
11538
11539         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11540         possible.  Create temporary files more securely.  The patch was
11541         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11542         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11543         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11544         for details.
11545
11546 2000-08-07  Ben Wing  <ben@xemacs.org>
11547
11548         * getloadavg.c: remove duplicate (and windows-breaking)
11549         includes of fcntl.h and sys/file.h.
11550
11551         * nt.c: remove duplicate getloadavg() definition.
11552
11553         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11554         encodings.
11555
11556 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11557
11558         * eval.c (function_argcount): If function needs to be autoloaded
11559         actually use the loaded definition.
11560         GCPRO function.
11561
11562 2000-08-05  Ben Wing  <ben@xemacs.org>
11563
11564         * getloadavg.c: add prototype for getloadavg().  remove
11565         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11566         of the code).  remove duplicate header includes.
11567
11568         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11569
11570         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11571         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11572         useful load average.
11573
11574         * alloc.c (reinit_alloc_once_early): removed references to
11575         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11576         the lisp vars are the only things referencing the malloc_sbrk_*
11577         vars, and they were already if 0'd out.  these vars only exist
11578         in the older malloc.c, which is basically unused, and they're
11579         only for informational purposes.
11580
11581         * m\*.h: removed useless VIRT_ADDR_VARIES.
11582
11583         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11584
11585 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11586
11587         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11588         color if the image is a mono pixmap.
11589
11590 2000-07-30  Ben Wing  <ben@xemacs.org>
11591
11592         * Makefile.in.in (release):
11593         Remove stray @.
11594
11595         * buffer.c (directory_is_current_directory):
11596         * dired-msw.c (mswindows_get_files):
11597         * dired.c:
11598         * dired.c (Fdirectory_files):
11599         * dired.c (file_name_completion_stat):
11600         * dired.c (Ffile_attributes):
11601         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11602         preprocessor tricks, to avoid problems on some machines
11603         (e.g. SCO).
11604
11605         * callproc.c (egetenv): GC docs.
11606
11607         * console-msw.h:
11608         * console-msw.h (struct mswindows_dialog_id):
11609         * lrecord.h (lrecord_type):
11610         New object for use with MSW dialogs.
11611
11612         * console.h (struct console_methods):
11613         New enable/disable frame methods, for proper modal dialogs.
11614
11615         * device-msw.c (msprinter_default_printer): Fix to follow
11616         proper Mule conventions.
11617
11618         * device-msw.c:
11619         * device-msw.c (signal_open_printer_error):
11620         * device-msw.c (msprinter_init_device):
11621         * device-msw.c (ensure_not_printing):
11622         * device-msw.c (plist_get_margin):
11623         * device-msw.c (Fmsprinter_select_settings):
11624         * device-msw.c (finalize_devmode):
11625         * device-msw.c (Fmsprinter_settings_despecialize):
11626         * device-msw.c (signal_enum_priner_error):
11627         * extents.c (decode_extent):
11628         * extents.c (decode_map_extents_flags):
11629         * extents.c (decode_extent_at_flag):
11630         * extents.c (Fextent_at):
11631         * extents.c (Fextents_at):
11632         * extents.c (symbol_to_glyph_layout):
11633         [[[[2]]]] Use structured errors.
11634
11635         * dialog-msw.c:
11636         * dialog-msw.c (mswindows_is_dialog_msg):
11637         * dialog-msw.c (mark_mswindows_dialog_id):
11638         * dialog-msw.c (dialog_proc):
11639         * dialog-msw.c (handle_question_dialog_box):
11640         * dialog-msw.c (syms_of_dialog_mswindows):
11641         Define new object to clean up marking; use it as a dialog identifier.
11642         Call new delete-dialog-box-hook.
11643
11644         * dialog-x.c (dbox_selection_callback):
11645         * dialog-x.c (dbox_descriptor_to_widget_value):
11646         * dialog-x.c (x_make_dialog_box_internal):
11647         Call new delete-dialog-box-hook.
11648         Return an id.
11649
11650         * dialog.c:
11651         * dialog.c (syms_of_dialog):
11652         * dialog.c (vars_of_dialog):
11653         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11654
11655         * eval.c:
11656         * eval.c (signal_call_debugger):
11657         when noninteractive, output stack traces on the console instead
11658         of in a (never-seen) buffer.
11659
11660         * eval.c (signal_type_error):
11661         * eval.c (invalid_argument_2):
11662         * lisp.h:
11663         new funs for use w/structured errors.
11664
11665         * event-Xt.c:
11666         * event-Xt.c (x_to_emacs_keysym):
11667         * event-Xt.c (describe_event):
11668         * event-Xt.c (emacs_Xt_event_handler):
11669         * event-Xt.c (vars_of_event_Xt):
11670         * event-msw.c:
11671         * event-msw.c (mswindows_wnd_proc):
11672         * event-msw.c (vars_of_event_mswindows):
11673         rename {x,mswindows}-debug-events to debug-{}-events for
11674         consistency with other debug-foo variables.
11675
11676         * event-stream.c:
11677         document next-event more clearly.
11678
11679         * fileio.c (Ffile_name_directory):
11680         * fileio.c (Ffile_name_nondirectory):
11681         * fileio.c (Funhandled_file_name_directory):
11682         * fileio.c (file_name_as_directory):
11683         * fileio.c (Ffile_name_as_directory):
11684         * fileio.c (directory_file_name):
11685         * fileio.c (Fdirectory_file_name):
11686         * fileio.c (Fmake_temp_name):
11687         * fileio.c (Ffile_truename):
11688         * fileio.c (Fsubstitute_in_file_name):
11689         * fileio.c (expand_and_dir_to_file):
11690         * fileio.c (barf_or_query_if_file_exists):
11691         * fileio.c (check_executable):
11692         * fileio.c (Ffile_exists_p):
11693         * fileio.c (Ffile_writable_p):
11694         * fileio.c (Ffile_directory_p):
11695         * fileio.c (Ffile_regular_p):
11696         * fileio.c (Ffile_modes):
11697         * fileio.c (Ffile_newer_than_file_p):
11698         * fileio.c (Fverify_visited_file_modtime):
11699         * fileio.c (Fset_visited_file_modtime):
11700         * fileio.c (auto_save_1):
11701         (1). (2).
11702         fix up gcpro's.
11703
11704         * frame-msw.c:
11705         * frame-msw.c (mswindows_init_frame_1):
11706         * frame-msw.c (mswindows_enable_frame):
11707         * frame-msw.c (error_frame_unsizable):
11708         * frame-msw.c (msprinter_init_frame_1):
11709         * frame-msw.c (msprinter_init_frame_3):
11710         * frame-msw.c (console_type_create_frame_mswindows):
11711         (2).
11712         implement new enable/disable frame methods.
11713
11714         * frame-x.c:
11715         * frame-x.c (x_enable_frame):
11716         * frame-x.c (console_type_create_frame_x):
11717         implement new enable/disable frame methods.
11718
11719         * frame.c:
11720         * frame.c (Fdisable_frame):
11721         * frame.c (syms_of_frame):
11722         * frame.h (struct frame):
11723         implement new enable/disable frame methods/functions.
11724
11725         * general-slots.h:
11726         add initial-focus.
11727
11728         * glyphs-msw.c (mswindows_widget_instantiate):
11729         comment that initial-focus should be implemented.
11730
11731         * glyphs-widget.c:
11732         * glyphs-widget.c (check_valid_instantiator):
11733         * glyphs-widget.c (check_valid_orientation):
11734         * glyphs-widget.c (check_valid_tab_orientation):
11735         * glyphs-widget.c (check_valid_justification):
11736         * glyphs-widget.c (check_valid_border):
11737         * glyphs-widget.c (check_valid_callback):
11738         * glyphs-widget.c (check_valid_int_or_function):
11739         * glyphs-widget.c (check_valid_string_or_vector):
11740         * glyphs-widget.c (check_valid_item_list_1):
11741         * glyphs-widget.c (widget_validate):
11742         * glyphs-widget.c (combo_box_validate):
11743         * glyphs-widget.c (widget_instantiate):
11744         * glyphs-widget.c (syms_of_glyphs_widget):
11745         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11746         * glyphs-widget.c (image_instantiator_combo_box):
11747         * glyphs-widget.c (image_instantiator_scrollbar):
11748         * glyphs-widget.c (image_instantiator_tab_control):
11749         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11750         (2).
11751         support (unimplemented) keyword initial-focus.
11752         reindent long macros.
11753
11754         * glyphs-x.c (x_redisplay_widget):
11755         * glyphs-x.c (x_button_instantiate):
11756         * glyphs-x.c (x_button_redisplay):
11757         * glyphs-x.c (x_progress_gauge_instantiate):
11758         * glyphs-x.c (x_edit_field_instantiate):
11759         * glyphs-x.c (x_combo_box_instantiate):
11760         * glyphs-x.c (x_tab_control_instantiate):
11761         * glyphs-x.c (x_label_instantiate):
11762         * gui-x.c:
11763         * gui-x.c (button_item_to_widget_value):
11764         * gui-x.c (gui_items_to_widget_values_1):
11765         * gui-x.c (gui_item_children_to_widget_values):
11766         * gui-x.c (gui_items_to_widget_values):
11767         * gui-x.h:
11768         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11769         add new flag to gui-parsing routines to indicate whether
11770         accelerator specs should be supported.
11771
11772         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11773
11774         * glyphs.h (struct Lisp_Image_Instance):
11775         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11776         add initial-focus flag.
11777
11778         * gui.c:
11779         * gui.c (syms_of_gui):
11780         * gui.c (vars_of_gui):
11781         clean up menu-no-selection-hook.
11782
11783         * gui.h:
11784         support delete-dialog-box-hook.
11785
11786         * lread.c (Fload_internal):
11787         * lread.c (locate_file_in_directory_mapper):
11788         (1).
11789
11790         * lrecord.h:
11791         * lrecord.h (struct toolbar_button):
11792         * lrecord.h (syms_of_toolbar):
11793         document how to create a new object.
11794
11795         * menubar-msw.c (mswindows_char_is_accelerator):
11796         may be called on frames w/o menus.
11797
11798         * menubar.c (vars_of_menubar):
11799         clean up :filter docs.
11800
11801         * nt.c (readdir):
11802         * ntproc.c:
11803         (1).
11804
11805         * process-nt.c:
11806         * process-nt.c (validate_signal_number):
11807         * process-nt.c (signal_cannot_launch):
11808         * process-nt.c (nt_create_process):
11809         * process-nt.c (nt_send_process):
11810         * process-nt.c (nt_kill_child_process):
11811         * process-nt.c (nt_open_network_stream):
11812         * process-nt.c (syms_of_process_nt):
11813         (2).
11814         delete quote-handling.  call new lisp code that does it better.
11815
11816         * process-unix.c (connect_to_file_descriptor):
11817         * process-unix.c (allocate_pty):
11818         * process-unix.c (unix_send_process):
11819         * process-unix.c (unix_kill_child_process):
11820         * process-unix.c (unix_open_network_stream):
11821         * process-unix.c (unix_open_multicast_group):
11822         (1). (2).
11823
11824         * process.c:
11825         * process.c (Fstart_process_internal):
11826         (2).  need to canonicalize process path even if absolute.
11827
11828         * select-msw.c (symbol_to_ms_cf):
11829         * select-msw.c (ms_cf_to_symbol):
11830         * select-msw.c (cf_is_autofreed):
11831         * select-msw.c (mswindows_destroy_selection):
11832         * select.c:
11833         * select.c (syms_of_select):
11834         * select.h:
11835         support dibv5, fix bugs. (from Mike Alexander)
11836
11837         * select.c (Fget_selection_internal):
11838         * select.c (select_convert_out):
11839
11840         * sysdep.c:
11841         * sysdep.c (xemacs_stat):
11842         renamed.
11843
11844         * sysdep.c (mkdir):
11845         * sysdep.c (rmdir):
11846         but keep original stat() here because we provide encapsulation
11847         around these funs.
11848
11849         * sysfile.h:
11850         * sysfile.h (fstat):
11851         remove stat garbage.
11852
11853         * syswindows.h:
11854         fix X/MSW conflict.
11855         don't include tchar.h.  it's inappropriate because it makes
11856         compile-time distinctions when we want runtime distinctions.
11857         (we provide our own tchar replacements)
11858
11859         * toolbar.c:
11860         use default object printer for toolbar-button.
11861
11862         * unexcw.c:
11863         make sure we don't encapsulate.
11864
11865         * window.c (vars_of_window):
11866         emphasize that temp-buffer-show-hook is obsolete.
11867
11868 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11869
11870         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11871         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11872
11873         * events.c (Fevent_timestamp_lessp):
11874         Not 64-bit clean.  Use EMACS_INT, not int.
11875
11876 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11877
11878         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11879         unsigned int and changed the last enum to
11880         lrecord_type_last_built_in_type.
11881         (lrecord_implementations_table): changed prototype to know how
11882         long the array is supposed to be.
11883         (lrecord_type_count): new unsigned int to keep track of the
11884         current number of lisp lrecord types.
11885         (DEFINE_EXTERNAL_LRECORD):
11886         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11887         dynamic-modules to declare new lisp types. They are the same
11888         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11889         int for each new type, and increment lrecord_type_count by 1.
11890
11891         * alloc.c (lrecord_implementations_table): Changed to reference
11892         lrecord_type_last_built_in_type for the size of the array.
11893         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11894
11895 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11896
11897         * glyphs.h (check_valid_item_list): Renamed from
11898         check_valid_item_list_1.
11899
11900 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11901
11902         * select.c (Qselect_coerce): New.
11903         * select.c (Vselection_coercion_alist): New.
11904         * select.c (syms_of_select): Declare.
11905         * select.c (get-selection-internal): Use it.
11906         Use the new select-coerce functionality.
11907
11908         * select.c (select_coerce): New.
11909         * select.h (select_coerce): Declare.
11910         New function to coerce one type of data into another.
11911
11912 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11913
11914         * callproc.c (Fcall_process_internal):
11915         (Fcall_process_internal):
11916         * process-unix.c (unix_create_process):
11917         Save and restore the value of errno, so that error messages are accurate.
11918
11919 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11920
11921         * elhash.c (print_hash_table):
11922         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11923         Prettify docstrings and indentation.
11924
11925 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11926
11927         * window.c (Fwindow_pixel_edges): Subtract frame border and
11928         gutter size.
11929
11930 2000-07-31  Andy Piper  <andy@xemacs.org>
11931
11932         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11933         will acknowledge the change.
11934
11935         * glyphs.h: declare tab_control_order_only_changed.
11936
11937         * glyphs-x.c (x_tab_control_redisplay): use
11938         tab_control_order_only_changed.
11939
11940         * glyphs-widget.c (tab_control_order_only_changed): new function.
11941
11942         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11943         tab_control_order_only_changed.
11944
11945         * gui.c (gui_item_equal_sans_selected): new function.
11946         (gui_item_equal): use it.
11947
11948         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11949         :properties in favor of :items..
11950
11951         * glyphs-widget.c (check_valid_item_list): rename from
11952         check_valid_item_list_1.
11953         (check_valid_item_list_1): renamed.
11954         (combo_box_validate): deprecate :properties in favor of :items.
11955         (widget_instantiate): ditto.
11956         (tab_control_update): ditto.
11957         (image_instantiator_combo_box): ditto.
11958         (image_instantiator_tree_view): ditto.
11959         (image_instantiator_tab_control): ditto.
11960         (layout_post_instantiate): remove dead code.
11961
11962         * print.c (debug_print_no_newline): only write to debugger if in
11963         WIN32_NATIVE.
11964
11965         * elhash.c (Fmake_hash_table): update doc string.
11966
11967         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11968         messages whilst in GC. This at least stops XEmacs crashing but has
11969         the potential for wierd behaviour.
11970
11971 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11972
11973         * config.h.in:
11974         Make existence of s&m files optional.
11975
11976         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11977         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11978         * s/gnu.h: Remove HAVE_GETLOADAVG.
11979         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11980         * s/sol2.h: Remove HAVE_GETLOADAVG.
11981         * lisp.h: Remove getloadavg() declaration.
11982         * fns.c:
11983         Include <sys/loadavg.h> if available.
11984         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11985         * config.h.in:  Group together getloadavg()-related macros.
11986         Use only configure-time tests to detect getloadavg().
11987
11988 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11989
11990         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11991
11992 2000-07-25  Andy Piper  <andy@xemacs.org>
11993
11994         * syswindows.h: add tchar.h for native builds.
11995
11996         * frame.c (syms_of_frame): remove set-glyph-image.
11997
11998         * general-slots.h: add Qset_glyph_image.
11999
12000         * glyphs-widget.c (layout_update): add domain arg to
12001         set-glyph-image.
12002         (syms_of_glyphs_widget): remove set-glyph-image.
12003
12004 2000-07-23  Ben Wing  <ben@xemacs.org>
12005
12006         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
12007         Vpopup_frame_list.
12008
12009 2000-07-22  Andy Piper  <andy@xemacs.org>
12010
12011         * symsinit.h: add syms_of_win32().
12012
12013         * gui-msw.c (syms_of_gui_mswindows): remove
12014         Fmswindows_shell_execute.
12015         (Fmswindows_shell_execute): moved to win32.c.
12016
12017         * emacs.c (main_1): add syms_of_win32 ().
12018
12019         * win32.c (init_potentially_nonexistent_functions): rewrite in
12020         compiler-friendly terms.
12021         (Fmswindows_shell_execute): move here from gui-msw.c.
12022         (syms_of_win32): new.
12023
12024         * device-msw.c (Fmswindows_printer_list): clean up args to
12025         EnumPrinters.
12026         Don't include tchar under cygwin or mingw.
12027         (msprinter_default_printer): make cygwin-friendly.
12028
12029 2000-07-21  Andy Piper  <andy@xemacs.org>
12030
12031         * glyphs-widget.c (image_instantiator_tree_view): use tab
12032         control's update function.
12033         (layout_property): new function. Retrieve items.
12034
12035         * glyphs-msw.c (mswindows_tree_view_redisplay): new
12036         function. Re-populate the tree view from the pending items.
12037
12038         * glyphs.c (instantiate_image_instantiator): Make sure the domain
12039         is designated the parent if the domain is an image instance. This
12040         is needed so that dirtiness can be cascade up the hierarchy and
12041         thus for layout children to be redisplayed correctly.
12042         (allocate_image_instance): rename glyph -> parent.
12043
12044         * redisplay.h: change redisplay_output_layout signature.
12045
12046         * redisplay-msw.c (mswindows_output_display_block): use domain
12047         arg.
12048
12049         * redisplay-x.c (x_output_display_block): use domain arg.
12050
12051 2000-07-10  Andy Piper  <andy@xemacs.org>
12052
12053         * window.c (Fset_window_configuration): add comment.
12054
12055         * redisplay-output.c (compare_runes):
12056         (redisplay_output_subwindow): redisplay rather than update subwindow.
12057         (redisplay_output_layout): ditto.
12058
12059         * redisplay-msw.c (mswindows_frame_output_end):
12060         (mswindows_frame_output_end): make defer window pos optional.
12061
12062         * lisp.h: add Flast.
12063
12064         * glyphs.h (struct image_instantiator_methods): add dest_mask top
12065         normalize method. Change update method to be for changed
12066         instantiators. Add redisplay method. Change signature of layout
12067         method.
12068         (struct Lisp_Image_Instance): add instantiator.
12069         (IMAGE_INSTANCE_INSTANTIATOR): new.
12070         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
12071         (XIMAGE_INSTANCE_INSTANTIATOR): new.
12072         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
12073
12074         * glyphs.c:
12075         (find_instantiator_differences): new function.
12076         (Fset_instantiator_property): new convenience function.
12077         (check_image_instance_structure): strictly check for vector
12078         instantiators.
12079         (normalize_image_instantiator): make non-static.
12080         (instantiate_image_instantiator): pass on dest_mask and use new
12081         signatures for image_instance_layout and friends.
12082         (mark_image_instance): mark the instantiator. Mark the subwindow
12083         face not the widget face.
12084         (image_instance_equal): add instantiator.
12085         (image_instance_hash): ditto.
12086         (allocate_image_instance): ditto.
12087         (Fset_image_instance_property): removed.
12088         (Fimage_instance_file_name): ditto.
12089         (Fcolorize_image_instance): ditto.
12090         (image_instance_layout): add offsets to be set.
12091         (update_image_instance): new function. update an image instance
12092         from its changed instantiator.
12093         (inherit_normalize): add dest_mask.
12094         (xbm_normalize): ditto.
12095         (xface_normalize): ditto.
12096         (xpm_normalize): ditto.
12097         (text_update): set_property -> update.
12098         (image_instantiate): use the glyph identity as a hash key, not the
12099         instantiator.
12100         (glyph_width): use new image_instance_layout signature.
12101         (glyph_ascent): ditto.
12102         (glyph_descent): ditto.
12103         (glyph_height): ditto.
12104         (glyph_query_geometry): ressurrect.
12105         (glyph_layout): ditto.
12106         (redisplay_subwindow): update -> redisplay.
12107         (syms_of_glyphs): add Fset_instantiator_property.
12108         (image_instantiator_format_create): set_property -> update.
12109
12110         * glyphs-x.c:
12111         (autodetect_normalize): add dest_maks to signature.
12112         (x_redisplay_subwindow): update -> redisplay.
12113         (x_redisplay_widget): ditto.
12114         (x_button_redisplay): ditto.
12115         (x_progress_gauge_redisplay): ditto.
12116         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
12117         stacking order.
12118         (console_type_create_glyphs_x): update -> redisplay.
12119         (image_instantiator_format_create_glyphs_x): ditto.
12120
12121         * glyphs-widget.c:
12122         (check_valid_instantiator): disallow glyphs in the instantiator,
12123         they must now be vectors.
12124         (check_valid_instantiator_list): ditto.
12125         (glyph_instantiator_to_glyph): use internal symbol rather than
12126         intern.
12127         (widget_update): renamed from widget_set_property. Call cascaded
12128         update methods.
12129         (redisplay_widget): renamed from update_widget.
12130         (widget_layout): image_instance_layout now takes position as well
12131         as size.
12132         (widget_normalize): ditto.
12133         (widget_instantiate): ditto.
12134         (tab_control_query_geometry) ditto.:
12135         (tab_control_update): renamed from tab_control_set_property.
12136         (progress_gauge_update): set_property -> update.
12137         (layout_normalize): rewrite so that child instantiators are
12138         normalized also.
12139         (layout_update): new function. Create glyphs from the normalized
12140         children and cope with any other layout keywords. We do not
12141         instantiate children here that will be take care of by
12142         redisplay_output_layout.
12143         (layout_instantiate): call layout_update and not much else.
12144         (layout_post_instantiate): not sure whether this is needed
12145         anymore.
12146         (layout_query_geometry): query glyph geometry rather than
12147         image_instance geometry.
12148         (layout_layout): set offsets from pass in parameters. Use glyph
12149         geometry and layout functions rather than image instance ones.
12150         (native_layout_layout): ditto.
12151         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
12152         (image_instantiator_widget): set_property -> update.
12153         (image_instantiator_buttons): ditto.
12154         (image_instantiator_progress_guage): ditto.
12155         (image_instantiator_tab_control): ditto.
12156         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
12157         (image_instantiator_layout): add update method.
12158
12159         * glyphs-msw.c (bmp_normalize):
12160         (mswindows_resource_normalize): add dest_mask so that it can be
12161         proprogated by layout_normalize.
12162         (begin_defer_window_pos): make optional because it may not be the
12163         right thing to do and it introduces differences with X.
12164         (mswindows_unmap_subwindow): ditto.
12165         (mswindows_map_subwindow): ditto.
12166         (mswindows_redisplay_subwindow): renamed from
12167         mswindows_update_subwindow.
12168         (mswindows_redisplay_widget): ditto.
12169         (mswindows_button_redisplay): renamed from
12170         mswindows_button_update. Update is now what the instantiation
12171         function does for a changed instantiator.
12172         (mswindows_progress_gauge_instantiate): set the progress value
12173         here if appropriate.
12174         (mswindows_tab_control_redisplay): cope with re-ordering of the
12175         members of the tab widget by simply selecting the new top
12176         widget. This makes things appear ok if you click on a tab.
12177         (mswindows_combo_box_instantiate): image_instance_layout now takes
12178         position as well as size.
12179         (mswindows_progress_gauge_redisplay): renamed from
12180         mswindows_progress_gauge_update.
12181         (console_type_create_glyphs_mswindows): fix update -> redisplay.
12182         (image_instantiator_format_create_glyphs_mswindows): ditto.
12183
12184         * glyphs-eimage.c (jpeg_normalize):
12185         (gif_normalize):
12186         (png_normalize):
12187         (tiff_normalize): add dest_mask so that it can be proprogated by
12188         layout_normalize.
12189
12190         * elhash.c:
12191         (print_hash_table):
12192         (hash_table_weakness_validate):
12193         (decode_hash_table_weakness):
12194         (Fhash_table_weakness):
12195         (Fhash_table_type):
12196         (syms_of_elhash): use Ben's naming scheme for hashtable types..
12197
12198         * console.h (struct console_methods): move update_* to
12199         redisplay_*.
12200
12201 2000-07-20  Ben Wing  <ben@xemacs.org>
12202
12203         * *.[ch] (XSETOBJ): remove unused middle argument.
12204         lisp-disunion.h: correct wrap_object() to one argument.
12205
12206 2000-07-15  Ben Wing  <ben@xemacs.org>
12207
12208         * s/cygwin32.h:
12209         * s/cygwin32.h (CYGWIN_CONV_PATH):
12210         Add missing logb prototype for v1.1.
12211         Use post-b20 names and alias to pre-b20 names when pre-b20.
12212
12213         * s/windowsnt.h: [5].
12214
12215 2000-07-15  Ben Wing  <ben@xemacs.org>
12216
12217         * Makefile.in.in (x_objs):
12218         * Makefile.in.in (sheap_objs):
12219         * Makefile.in.in (objs):
12220         added win32.o, cosmetic cleanups.
12221
12222         * alloc.c (Fmake_byte_code):
12223         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12224         etc. macros which declare their own args now.
12225
12226         * alloc.c (syms_of_alloc):
12227         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12228
12229         * buffer.c:
12230         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12231
12232         * buffer.c (Fget_file_buffer):
12233         Fixed GCPRO problem.
12234
12235         * buffer.c (get_truename_buffer):
12236         Fixed comment about GC checking.
12237
12238         * buffer.c (syms_of_buffer):
12239         Undeclared those dedicated frame funs.
12240         [2].
12241
12242         * buffer.h:
12243         Define convenience macros for internal/external conversions.
12244         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12245         and Qenvironment_variable_encoding for cleaner code.
12246
12247         * bufslots.h:
12248         Remove dedicated-frame; in lisp.
12249
12250         * bytecode.c (funcall_compiled_function):
12251         [1].
12252
12253         * bytecode.c (syms_of_bytecode):
12254         [2].
12255
12256         * console-msw.c:
12257         * console-msw.c (mswindows_show_console): Rewrote.
12258
12259         * console-msw.c (Fmswindows_debugging_output): New.
12260         Sends to OutputDebugString (special MSWin debugger interface).
12261
12262         * console-msw.c (Fmswindows_message_box):
12263         Fixed stupid bugs so it works when called from kill-emacs.
12264
12265         * console-msw.c (syms_of_console_mswindows):
12266         Declare Fmswindows_debugging_output.
12267
12268         * console-msw.h:
12269         New MSWin prototypes.
12270
12271         * console-msw.h (struct mswindows_frame):
12272         New entry last-click-mods for improved button-modifier support.
12273
12274         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12275         New struct entry `popup' with corresponding accessor.
12276
12277         * console-x.c:
12278         * console-x.c (split_up_display_spec):
12279         * console-x.c (get_display_arg_connection):
12280         * console-x.c (x_semi_canonicalize_console_connection):
12281         * console-x.c (x_canonicalize_device_connection):
12282         [[[6]]]: Change char to more specific type.
12283         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12284
12285         * console-x.c (x_semi_canonicalize_console_connection):
12286         * console-x.c (x_canonicalize_device_connection):
12287         [[[9]]]: Fix up error signalling to use new structured error system.
12288
12289         * console-x.h:
12290         [[[4]]]: Define codesys aliases:
12291         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12292         Qx_color_name_encoding, Qx_display_name_encoding.
12293
12294         * console.h (struct console_methods):
12295         New method make_dialog_box_internal supersedes older
12296         popup_dialog_box method.
12297
12298         * data.c:
12299         Define many new errors, part of new structured errors.
12300
12301         * data.c (init_errors_once_early):
12302         * data.c (syms_of_data):
12303         [2].
12304
12305         * device-msw.c (mswindows_init_device):
12306         [[[5]]]: Cleanup to support NT 3.51.
12307
12308         * device-msw.c (decode_devmode): Cleanup.
12309
12310         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12311         * device-msw.c (mswindows_handle_print_dialog_box):
12312         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12313         * device-msw.c (syms_of_device_mswindows):
12314         Delete the dialog box primitives recently introduced by Kirill and
12315         instead interface to general dialog box interface.
12316
12317         * device-x.c:
12318         * device-x.c (compute_x_app_name):
12319         * device-x.c (x_init_device):
12320         * device-x.c (Fx_valid_keysym_name_p):
12321         * device-x.c (Fx_set_font_path):
12322         [6].
12323         [7].
12324
12325         * device.h (wrap_device): New.
12326         First of its kind; meant to replace XSETDEVICE.
12327
12328         * dialog-msw.c: Many file-dialog symbols.
12329
12330         * dialog-msw.c (mswindows_register_popup_frame): New.
12331         * dialog-msw.c (mswindows_is_dialog_msg): New.
12332         For supporting kbd traversal in dialog boxes.
12333
12334         * dialog-msw.c (dialog_proc):
12335         Support hitting ESC in dialogs.
12336
12337         * dialog-msw.c (struct):
12338         Common dialog box errors.
12339
12340         * dialog-msw.c (handle_file_dialog_box): New.
12341         Add file dialog code.
12342
12343         * dialog-msw.c (handle_question_dialog_box):
12344         Redo existing code to support new question dialog syntax.
12345
12346         * dialog-msw.c (console_type_create_dialog_mswindows):
12347         We support new dialog console method.
12348
12349         * dialog-msw.c (syms_of_dialog_mswindows):
12350         * dialog-msw.c (vars_of_dialog_mswindows):
12351         New file dialog symbols, vars.
12352
12353         * dialog-x.c:
12354         * dialog-x.c (maybe_run_dbox_text_callback):
12355         * dialog-x.c (dbox_descriptor_to_widget_value):
12356         * dialog-x.c (x_make_dialog_box_internal):
12357         * dialog-x.c (console_type_create_dialog_x):
12358         Mule-ize entire file.
12359         Redo to support question dialog syntax.
12360         [6].
12361
12362         * dialog.c:
12363         * dialog.c (Fmake_dialog_box_internal):
12364         * dialog.c (syms_of_dialog):
12365         Kill old popup-dialog-box, replace with new primitive.
12366         Just call device method or signal error.
12367
12368         * eldap.c (Fldap_open):
12369         * eldap.c (Fldap_search_basic):
12370         * eldap.c (Fldap_add):
12371         * eldap.c (Fldap_modify):
12372         [1].
12373         [7].
12374
12375         * emacs.c:
12376         * emacs.c (make_arg_list_1):
12377         * emacs.c (make_arg_list):
12378         Mule-ize call to dll_init().
12379         [6].
12380         [8].
12381
12382         * emacs.c (make_argc_argv):
12383         * emacs.c (free_argc_argv):
12384         * emacs.c (init_cmdargs):
12385         * emacs.c (main_1):
12386         * emacs.c (Fkill_emacs):
12387         * emacs.c (Fdump_emacs):
12388         Update comments about what can be used in syms_* etc.
12389         Call init_win32() when necessary.
12390         Fix up MS Win dialog box in kill-buffer to actually work right.
12391         [7].
12392
12393         * eval.c:
12394         * eval.c (For):
12395         * eval.c (Fand):
12396         * eval.c (Fprogn):
12397         * eval.c (Fprog1):
12398         * eval.c (Fprog2):
12399         * eval.c (FletX):
12400         * eval.c (Flet):
12401         * eval.c (condition_case_3):
12402         * eval.c (Feval):
12403         * eval.c (function_argcount):
12404         * eval.c (funcall_lambda):
12405         [1].
12406
12407         * eval.c (type_error): New.
12408         * eval.c (maybe_type_error): New.
12409         * eval.c (continuable_type_error): New.
12410         * eval.c (maybe_continuable_type_error): New.
12411         * eval.c (type_error_with_frob): New.
12412         * eval.c (maybe_type_error_with_frob): New.
12413         * eval.c (continuable_type_error_with_frob): New.
12414         * eval.c (maybe_continuable_type_error_with_frob): New.
12415         New functions for use with structured errors.
12416
12417         * event-Xt.c:
12418         * event-Xt.c (x_event_to_emacs_event):
12419         Buttons are now modifiers too.
12420
12421         * event-Xt.c (emacs_Xt_current_event_timestamp):
12422         Implement new event method.
12423         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12424
12425         * event-msw.c:
12426         * event-msw.c (ntpipe_shove_writer): [5].
12427         * event-msw.c (mswindows_enqueue_mouse_button_event):
12428         * event-msw.c (mswindows_drain_windows_queue):
12429         * event-msw.c (mswindows_wnd_proc): [7].
12430         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12431         * event-msw.c (mswindows_modifier_state):
12432         Throughout: support new button modifiers.
12433
12434         * event-msw.c (emacs_mswindows_current_event_timestamp):
12435         Implement new event method.
12436         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12437
12438         * event-stream.c:
12439         * event-stream.c (event_stream_current_event_timestamp): New.
12440         * event-stream.c (maybe_kbd_translate): New functionality.
12441         * event-stream.c (vars_of_event_stream):
12442         Document new kbd-translate-table functionality.
12443
12444         * event-stream.c (Fcurrent_event_timestamp): New.
12445         New primitive for use in fabricated events.
12446         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12447
12448         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12449
12450         * events.c:
12451         * events.c (Fmake_event):
12452         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12453         [1].
12454         [9].
12455
12456         * events.c (format_event_object): fix gcc warnings.
12457
12458         * events.c (Fevent_timestamp): Document new primitives.
12459
12460         * events.c (TIMESTAMP_HALFSPACE): New.
12461
12462         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12463         comparing timestamps correctly (half-space algorithm).
12464
12465         * events.c (Fevent_modifier_bits): Doc fix.
12466
12467         * events.c (Fevent_modifiers): Major doc addition.
12468         * events.c (event_x_y_pixel_internal): Typo fix.
12469         * events.c (syms_of_events): Declare new primitives.
12470
12471         * events.h:
12472         Update long comment for button modifiers, timestamps.
12473
12474         * events.h (struct event_stream):
12475         New current_event_timestamp method.
12476
12477         * extents.c:
12478         * extents.c (extent_in_region_p):
12479         * extents.c (decode_extent):
12480         * extents.c (Fset_extent_parent):
12481         * extents.c (decode_map_extents_flags):
12482         Fix gcc warnings.
12483         [9].
12484
12485         * extents.c (struct extent_at_arg):
12486         * extents.c (decode_extent_at_flag):
12487         * extents.c (extent_at_mapper):
12488         * extents.c (extent_at_bytind):
12489         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12490         * extents.c (Fextents_at): New primitive. [9].
12491         * extents.c (symbol_to_glyph_layout): [9].
12492         Support new primitive `extents-at'.
12493
12494
12495         * extents.c (get_text_property_bytind):
12496         extent_at_bytind has another arg.
12497         [9].
12498
12499         * extents.c (syms_of_extents): New primitive.
12500
12501         * file-coding.c (Fmake_coding_system): [1].
12502         * file-coding.c (subsidiary_coding_system): fix gcc warning
12503         * file-coding.c (syms_of_file_coding): [2].
12504
12505         * fileio.c (Fexpand_file_name):
12506         * fileio.c (Fsysnetunam):
12507         * fileio.c (Ffile_exists_p):
12508         * fileio.c (Ffile_executable_p):
12509         * fileio.c (Fverify_visited_file_modtime):
12510         Clean up GCPROing.
12511
12512         * fileio.c (syms_of_fileio): [2].
12513
12514         * filelock.c (lock_file_1):
12515         * filelock.c (current_lock_owner):
12516         * filelock.c (lock_if_free):
12517         * filelock.c (lock_file):
12518         * filelock.c (unlock_file):
12519         Clean up GCPROing.
12520
12521         * fns.c (concat): Fix gcc warning.
12522
12523         * fns.c (Fmember):
12524         * fns.c (Fold_member):
12525         * fns.c (Fmemq):
12526         * fns.c (Fold_memq):
12527         * fns.c (memq_no_quit):
12528         * fns.c (Fassoc):
12529         * fns.c (Fold_assoc):
12530         * fns.c (Fassq):
12531         * fns.c (Fold_assq):
12532         * fns.c (assq_no_quit):
12533         * fns.c (Frassoc):
12534         * fns.c (Fold_rassoc):
12535         * fns.c (Frassq):
12536         * fns.c (Fold_rassq):
12537         * fns.c (rassq_no_quit):
12538         * fns.c (Fdelete):
12539         * fns.c (Fold_delete):
12540         * fns.c (Fdelq):
12541         * fns.c (Fold_delq):
12542         * fns.c (delq_no_quit):
12543         * fns.c (Fremassoc):
12544         * fns.c (Fremassq):
12545         * fns.c (remassq_no_quit):
12546         * fns.c (Fremrassoc):
12547         * fns.c (Fremrassq):
12548         * fns.c (remrassq_no_quit):
12549         * fns.c (Freverse):
12550         * fns.c (mapcar1):
12551         [1].
12552
12553         * frame-msw.c (mswindows_init_frame_1):
12554         * frame-msw.c (mswindows_delete_frame):
12555         Register popups with dialog code so keyboard traversing works.
12556
12557         * frame-tty.c (tty_raise_frame_no_select): [1].
12558
12559         * frame-x.c:
12560         * frame-x.c (x_set_frame_text_value):
12561         * frame-x.c (x_set_frame_properties):
12562         * frame-x.c (x_create_widgets):
12563         [7].
12564
12565         * frame.c:
12566         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12567
12568         * frame.h (wrap_frame): New.
12569         Macro like wrap_device.
12570
12571         * general.c:
12572         * general.c (SYMBOL):
12573         * general.c (syms_of_general):
12574         Major reorg.  This is now just a wrapper and symbols themselves
12575         are listed in general-slots.h.
12576
12577         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12578         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12579
12580         * glyphs-msw.c (mswindows_native_layout_instantiate):
12581         Add DS_CONTROL so keyboard traversal will work.
12582
12583         * glyphs-widget.c:
12584         * glyphs-widget.c (syms_of_glyphs_widget):
12585         Move some symbols to general-slots.h.
12586
12587         * glyphs-x.c:
12588         * glyphs-x.c (xbm_instantiate_1):
12589         * glyphs-x.c (x_xbm_instantiate):
12590         * glyphs-x.c (x_xface_instantiate):
12591         * glyphs-x.c (autodetect_instantiate):
12592         * glyphs-x.c (cursor_font_instantiate):
12593         * glyphs-x.c (x_update_widget):
12594         * glyphs-x.c (x_widget_instantiate):
12595         * glyphs.c (bitmap_to_lisp_data):
12596         * glyphs.c (pixmap_to_lisp_data):
12597         [7].
12598
12599         * glyphs.c (syms_of_glyphs):
12600         [2].
12601
12602         * gui-x.c:
12603         * gui-x.c (print_widget_value):
12604         * gui-x.c (menu_separator_style_and_to_external):
12605         * gui-x.c (add_accel_and_to_external):
12606         * gui-x.c (button_item_to_widget_value):
12607         * gui-x.c (gui_items_to_widget_values_1):
12608         * gui-x.c (gui_items_to_widget_values):
12609         * gui-x.c (syms_of_gui_x):
12610         * gui-x.c (vars_of_gui_x):
12611         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12612         [9].
12613
12614         * gui-x.h:
12615         Muleize, prototype changes matching gui-x.c.
12616
12617         * gui.c:
12618         * gui.c (separator_string_p):
12619         * gui.c (gui_item_add_keyval_pair):
12620         * gui.c (make_gui_item_from_keywords_internal):
12621         * gui.c (signal_too_long_error):
12622         * gui.c (parse_gui_item_tree_item):
12623         * gui.c (syms_of_gui):
12624         * gui.c (vars_of_gui):
12625         * gui.h:
12626         menu-no-selection-hook moved here (used by MSWin).
12627         Move some symbols to general-slots.h.
12628         [6].
12629         [9].
12630
12631         * insdel.c (get_buffer_pos_char):
12632         * insdel.c (get_buffer_range_char):
12633         Add GC comments.
12634
12635         * keymap.c (keymap_lookup_directly):
12636         * keymap.c (keymap_store):
12637         * keymap.c (ensure_meta_prefix_char_keymapp):
12638         * keymap.c (describe_map):
12639         * keymap.h:
12640         Support new button modifiers.
12641
12642         * lisp-disunion.h (wrap_object):
12643         * lisp-disunion.h (XSETOBJ):
12644         Rename make_obj to wrap_object.
12645
12646         * lisp-union.h:
12647         * lisp-union.h (make_int):
12648         * lisp-union.h (make_char):
12649         Support wrap_object.
12650
12651         * lisp.h:
12652         * lisp.h (LIST_LOOP):
12653         * lisp.h (EXTERNAL_LIST_LOOP):
12654         * lisp.h (LIST_LOOP_2):
12655         * lisp.h (EXTERNAL_LIST_LOOP_1):
12656         * lisp.h (EXTERNAL_LIST_LOOP_2):
12657         * lisp.h (EXTERNAL_LIST_LOOP_3):
12658         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12659         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12660         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12661         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12662         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12663         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12664         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12665         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12666         * lisp.h (struct Lisp_Symbol):
12667         * lisp.h (maybe_continuable_error_with_frob):
12668         Fix up section comments.
12669         Add new types for char to indicate usage.
12670         Delete symbols auto-generated from general-slots.h.
12671         Add prototypes for structured error functions.
12672         Add long comments describing looping macros and change interface
12673         so that lvalues are automatically declared.
12674         Add NO_DECLARE macro in case callers want to declare lvalues
12675         themselves.
12676
12677         * lread.c (read_syntax_error):
12678         * lread.c (continuable_read_syntax_error):
12679         * lread.c (read_structure):
12680         * lread.c (sequence_reader):
12681         * lread.c (read_list_conser):
12682         * lread.c (read_compiled_function):
12683         Rename syntax_error and continuable_syntax_error to avoid clash
12684         with same-named structured error functions.
12685
12686         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12687         * menubar-msw.c (populate_menu_add_item):
12688         * menubar-msw.c (populate_or_checksum_helper):
12689         [5].
12690         [9].
12691
12692         * menubar-x.c:
12693         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12694         Mule-ize whole file.
12695
12696         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12697
12698         * mule-charset.c (Fmake_charset):
12699         * mule-wnnfns.c (Fwnn_set_param):
12700         [1].
12701
12702         * ntproc.c (create_child):
12703         * ntproc.c (Fwin32_set_current_locale):
12704         Add comments portending doom.
12705
12706         * objects-msw.c:
12707         * objects-msw.c (old_font_enum_callback_2):
12708         * objects-msw.c (font_enum_callback_1):
12709         * objects-msw.c (mswindows_enumerate_fonts):
12710         [5].
12711
12712         * objects-x.c:
12713         * objects-x.c (allocate_nearest_color):
12714         * objects-x.c (x_parse_nearest_color):
12715         * objects-x.c (x_initialize_color_instance):
12716         * objects-x.c (x_print_color_instance):
12717         * objects-x.c (x_finalize_color_instance):
12718         * objects-x.c (x_valid_color_name_p):
12719         * objects-x.c (x_initialize_font_instance):
12720         * objects-x.c (x_print_font_instance):
12721         * objects-x.c (valid_x_font_name_p):
12722         * objects-x.c (truename_via_FONT_prop):
12723         * objects-x.c (truename_via_random_props):
12724         * objects-x.c (truename_via_XListFonts):
12725         * objects-x.c (x_font_truename):
12726         * objects-x.c (x_font_instance_truename):
12727         * objects-x.c (x_font_instance_properties):
12728         * objects-x.c (x_list_fonts):
12729         * objects-x.c (x_find_charset_font):
12730         Mule-ize entire file.
12731         [7].
12732
12733         * objects-x.h:
12734         Mule-verify.
12735
12736         * print.c:
12737         * print.c (std_handle_out_external):
12738         * print.c (debug_print_no_newline):
12739         * print.c (syms_of_print):
12740         Output to all debugger kinds in debug-print.
12741         Fix console-output code under MSWin to actually work.
12742
12743         * process-nt.c (send_signal):
12744         * process-nt.c (nt_create_process):
12745         Use newer Unicode macros.
12746
12747         * process-unix.c (unix_create_process):
12748         * process-unix.c (unix_canonicalize_host_name):
12749         * process-unix.c (unix_open_network_stream):
12750         [7].
12751
12752         * scrollbar-x.c:
12753         Mule-verify.
12754
12755         * search.c (syms_of_search):
12756         [2].
12757
12758         * select-msw.c (mswindows_destroy_selection):
12759         Use LIST_LOOP_2.
12760
12761         * select-x.c (symbol_to_x_atom):
12762         [7].
12763
12764         * select.c (syms_of_select):
12765         [2].
12766
12767         * sound.c (Fplay_sound_file):
12768         [7].
12769
12770         * specifier.c:
12771         * specifier.c (decode_specifier_type):
12772         * specifier.c (Fvalid_specifier_locale_type_p):
12773         * specifier.c (check_valid_locale_or_locale_type):
12774         * specifier.c (decode_locale):
12775         * specifier.c (decode_locale_type):
12776         * specifier.c (decode_locale_list):
12777         * specifier.c (check_valid_domain):
12778         * specifier.c (decode_specifier_tag_set):
12779         * specifier.c (Fcanonicalize_tag_set):
12780         * specifier.c (Fdefine_specifier_tag):
12781         * specifier.c (Fspecifier_tag_predicate):
12782         * specifier.c (check_valid_inst_list):
12783         * specifier.c (check_valid_spec_list):
12784         * specifier.c (decode_how_to_add_specification):
12785         * specifier.c (check_modifiable_specifier):
12786         * specifier.c (specifier_add_spec):
12787         * specifier.c (boolean_validate):
12788         * specifier.c (display_table_validate):
12789         [9].
12790
12791         * specifier.c (syms_of_specifier):
12792         Move some symbols to general-slots.h.
12793         [2].
12794
12795         * symbols.c:
12796         * symbols.c (Fmapatoms):
12797         * symbols.c (Fapropos_internal):
12798         Add GCPROs.
12799
12800         * symbols.c (set_default_buffer_slot_variable):
12801         * symbols.c (set_default_console_slot_variable):
12802         [1].
12803
12804         * symbols.c (defsymbol_massage_name_1):
12805         * symbols.c (defkeyword_massage_name):
12806         * symbols.c (deferror_1):
12807         * symbols.c (deferror):
12808         * symbols.c (deferror_massage_name_and_message):
12809         * symeval.h:
12810         * symeval.h (DEFSYMBOL):
12811         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12812
12813         * symbols.c (syms_of_symbols):
12814         [2].
12815
12816         * symsinit.h:
12817         * symsinit.h (init_win32): New.
12818         Also new is syms_of_dialog_mswindows.
12819
12820         * syswindows.h:
12821         Add new Unicode macros, missing Cygwin wide-char functions,
12822         convenience conversion macros for Qmswindows_tstr, macros for
12823         encapsulating required MSWin <-> Cygwin filename conversions,
12824         prototype for dynamically-extracted (not in NT 3.51) functions.
12825
12826         * toolbar-x.c:
12827         Mule-verify.
12828
12829         * tooltalk.c (Fadd_tooltalk_message_arg):
12830         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12831         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12832         [7].
12833
12834         * tooltalk.c (syms_of_tooltalk):
12835         [2].
12836
12837         * unexnt.c:
12838         * unexnt.c (unexec):
12839         Fix up headers, declaration of unexec() to be more standard.
12840
12841 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12842
12843         * offix.h: Revert change to guard macros - they're used in offix.c!
12844
12845 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12846
12847         * lisp.h: Defsubred Fdelete.
12848
12849         * console-msw.h:  (msprinter_default_printer): Added.
12850
12851         * console-msw.c (msprinter_canonicalize_console_connection):
12852         (msprinter_canonicalize_device_connection): Added.
12853
12854         * device-msw.c (msprinter_default_printer):
12855         (Fmswingows_get_default_printer):
12856         (signal_enum_priner_error):
12857         (Fmswingows_printer_list): Added.
12858
12859 2000-07-19  Martin Buchholz <martin@xemacs.org>
12860
12861         * XEmacs 21.2.35 is released.
12862
12863 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12864
12865         * select-x.c (x_handle_selection_request):
12866         Text selected in xemacs and pasted into xterm failed to appear.
12867         Spelling fixes and cosmetic changes.
12868
12869 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12870
12871         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12872         XEmacs frame (fix for doubling chars in dialog boxes).
12873
12874 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12875
12876         * select.c (select_convert_in, select_convert_out):
12877         Don't call intern() every time.
12878
12879         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12880         * select.c (vars_of_select): Initialise them.
12881
12882 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12883
12884         * select.c (selection-coercible-types): New.
12885
12886         * select.c (own-selection-internal):
12887         * select.c (get-selection-internal):
12888         MULE bug fix - these should default to COMPOUND_TEXT and not
12889         STRING for MULE. I think.
12890
12891         * select.c (select_convert_out): Use selection-coercible-types
12892         to find types that we can attempt to perform coercions on.
12893
12894 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12895
12896         * mule-wnnfns.c:
12897         * mule-canna.c:
12898         Add coding: cookie to identify encoding.
12899
12900         * mule-canna.c (CANNA_mode_keys): make static.
12901         Use proper prototypes, even for functions of no arguments.
12902         Remove external prototype for Fding().
12903
12904         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12905
12906         * select.c (syms_of_select): Add missing DEFSUBR.
12907
12908 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12909
12910         * select.c (get_selection_internal, own_selection_internal):
12911         Make the type default to STRING, rather than placing a nil type
12912         into Vselection_alist.
12913
12914 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12915
12916         * gpmevent.c (tty_selection_exists_p):
12917         * gpmevent.c (tty_own_selection):
12918         Updated parameter lists.
12919
12920 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12921
12922         * select.h (selection-alist): Removed declaration.
12923
12924         * select.h (get_local_selection):
12925         * select.c (get_local_selection):
12926         Made static.
12927
12928         * select.h (convert_selection): Removed declaration.
12929         * select.c (convert_selection): Removed.
12930         This function belongs in Lisp.
12931
12932         * select.h (select_convert_in): Declare.
12933         * select.h (select_convert_out): Declare.
12934         * select.c (select_convert_in): New.
12935         * select.c (select_convert_out): New.
12936         New conversion functions for other files to call.
12937
12938         * select.h (select_notify_buffer_kill): Declare.
12939         * select.c (select_notify_buffer_kill): New.
12940         New functions that get called from kill-buffer.
12941
12942         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12943         X-specific lisp code.
12944
12945         * select.h: Declare some of the lisp-visible functions for
12946         external use.
12947
12948         * select.c (clean_local_selection_data): Removed. This was
12949         a disgusting function, and previously should have been in
12950         select-x.c in any case. The functionality is now provided
12951         in select-convert-from-integer (select.el).
12952
12953         * select.c (available-selection-types): Fixed stupidity where
12954         INTEGER and ATOM got added twice. Also add STRING when we see an
12955         extent.
12956
12957         * select.c (get-selection-internal): Removed symbol stripping. No
12958         longer causes conversion when data comes from the internal cache.
12959
12960         * select.c (syms_of_select): Added new functions.
12961
12962         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12963         error checking - previously this called abort!
12964
12965         * select-x.c (x_own_selection): Changed comment.
12966
12967         * select-x.c (x_handle_selection_request): Use select_convert_out.
12968         Don't mess with selection-alist; it's an internal variable of select.c.
12969
12970         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12971
12972         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12973         rather than messing with selection-alist.
12974
12975         * select-msw.c (mswindows_get_foreign_selection):
12976         Use TO_INTERNAL_FORMAT rather than hacking.
12977
12978 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12979
12980         * process-unix.c (unix_open_multicast_group):
12981         (unix_open_multicast_group): Remove useless casts.
12982
12983 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12984
12985         * sound.c (Fplay_sound): Fix `unused variable' warning.
12986
12987         * emacs.c (main): Use correct type for _environ on SCO5.
12988
12989 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12990
12991         * console.h (own_selection_method):
12992         * console.h (selection_exists_p_method):
12993         * console.h (available_selection_types_method): New.
12994         * console.h (register_selection_data_type_method): New.
12995         * console.h (selection_data_type_name): New.
12996
12997         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12998         function & alist to track GlobalAlloc()'d handles that need
12999         releasing when the clipboard data gets replaced or emptied.
13000
13001         * event-msw.c (mswindows_wnd_proc): Call it.
13002
13003         * lisp.h, general.c (Qappend): New symbol representing a
13004         `how-to-add' mode.
13005
13006         * select.c (own-selection-internal):
13007         * select.c (selection-exists-p):
13008         * select.c (available-selection-types): New.
13009         * select.c (register-selection-data-type): New.
13010         * select.c (selection-data-type-name): New.  New functions to deal
13011         with device-specific selection data formats.
13012         * select.c (selection-converter-out-alist): Renamed.
13013         * select.c (selection-converter-in-alist): New.
13014         * select.c (selection-appender-alist): New.  Added new alists.
13015         * select.c (syms_of_select, vars_of_select): Added new symbols &
13016         variables.
13017         * select.c (get_local_selection): Split.
13018         * select.c: Removed spurious type checking - selections may now be
13019         of any type, not just strings.
13020         * select.c (own-selection-internal):
13021
13022         * select.h, select.c (convert_selection): New. Created
13023         convert_selection() function based on get_local_selection().
13024         * select.h, select.c (QCF_*): New symbols representing mswindows
13025         clipboard formats.
13026         * select.h, select.c (Qreplace_all, Qreplace_existing): New
13027         symbols representing `how-to-add' modes.
13028
13029         * select-msw.c (x_sym_p): New.
13030         * select-msw.c (symbol_to_ms_cf): New.
13031         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
13032         symbols & clipboard formats. Can also handle string names.
13033         * select-msw.c (mswindows_own_selection):
13034         * select-msw.c (mswindows_selection_exists_p):
13035         Added `data-type' parameter. Use it.
13036         * select-msw.c (mswindows_available_selection_types): New.
13037         * select-msw.c (mswindows_register_selection_data_type): New.
13038         * select-msw.c (mswindows_selection_data_type_name): New.
13039         * select-msw.c (mswindows_own_selection):
13040         * select-msw.c (mswindows_get_foreign_selection):
13041         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
13042         * select-msw.c (console_create_select_mswindows): Added new methods.
13043         * select-msw.c (mswindows_destroy_selection): New.
13044         * select-msw.c (Vhandle_alist): New list.
13045         * select-msw.c (mswindows_own_selection):
13046
13047         * select-x.c (x_own_selection):
13048         * select-x.c (x_selection_exists_p):
13049         * select-x.c: Added some comments about maybe using new
13050         functionality.
13051         * select-x.c (x_own_selection):
13052
13053         * specifier.c: Remove definition of Qappend (now in general.c)
13054         * specifier.c (syms_of_specifier): Remove Qappend.
13055
13056 2000-07-12  Martin Buchholz  <martin@xemacs.org>
13057
13058         * config.h.in: Add socklen_t.
13059
13060         * s/decosf4-0.h: No special compiler flags needed or desired.
13061         In particular, undefine _BSD for DEC OSF 4.0.
13062
13063 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13064
13065         * redisplay-msw.c (msprinter_frame_output_end): Added.
13066         (console_type_create_redisplay_mswindows): Referred the above.
13067
13068         * frame.c (setup_frame_without_minibuffer): Do not create a
13069         default minibuffer frame on a printer device.
13070
13071         * frame-msw.c (apply_dc_geometry): Added.
13072         (msprinter_start_page):
13073         (msprinter_init_frame_3):
13074         (msprinter_eject_page): Use it.
13075
13076         * console-msw.h (struct msprinter_frame): Added pix_left and top,
13077         and removed residual duplex and orientation properties.
13078
13079 2000-07-11  Martin Buchholz  <martin@xemacs.org>
13080
13081         * eval.c (function_argcount): Work around a DEC CC compiler bug.
13082
13083         * unexalpha.c: Remove system prototypes from C sources!
13084
13085 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
13086
13087         * eval.c: Remove references to M-x edit-options in DEFUNs for
13088         `defvar' and `defconst'.
13089
13090 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13091
13092         * config.h.in: Remove SMART_INCLUDE hackery.
13093
13094         PostgreSQL hacking:
13095         * config.h.in: Don't use SMART_INCLUDE.
13096
13097         * postgresql.h: Include libpq-fe.h here.  Fix typo.
13098         * inline.c: Simply #include "postgresql.h"
13099         * postgresql.c:
13100         - Don't use SMART_INCLUDE
13101         - Use simply "const".
13102         - Use standard doc string conventions.
13103         - Use correct type for result of PQstatus.
13104
13105 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13106
13107         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
13108
13109         C++ compilation changes.
13110         * config.h.in (EXTERN_C): Define.
13111         * config.h.in (not): This is also a C++ keyword.
13112         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
13113         * cm.c: Use EXTERN_C.
13114         * redisplay-tty.c: Use EXTERN_C.
13115         * sysdep.c: Use EXTERN_C.  Remove Gould support.
13116
13117 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13118
13119         * general.c: Remove duplicate definition for Qfunction.
13120
13121 2000-07-08  Ben Wing  <ben@xemacs.org>
13122
13123         * device-msw.c (msprinter_init_device):
13124         * device-msw.c (sync_printer_with_devmode):
13125         * device-msw.c (handle_devmode_changes):
13126         * device-msw.c (print_dialog_worker):
13127         * device-msw.c (Fmsprinter_apply_settings):
13128         * device-msw.c (hash_devmode):
13129         * device-msw.c (Fmsprinter_settings_despecialize):
13130         use Qmswindows_tstr, not Qctext.
13131
13132         * vm-limit.c (check_memory_limits):
13133         avoid infinite loop printing warning messages.
13134
13135 2000-07-05  Craig Lanning  <lanning@scra.org>
13136
13137         * Makefile.in.in: Add support for including the Windows resources
13138         when building with the cygwin and mingw targets.
13139
13140         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
13141         not set or not correct.
13142         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
13143         (init_initial_directory): Don't try to use $PWD on the
13144         WIN32_NATIVE target.
13145
13146         * s\cygwin32.h:
13147         [[Add -mwindows to eliminate console window.]] not required --ben
13148         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13149         (MAIL_USE_POP): removed; now handled by configure.
13150
13151         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
13152         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
13153         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13154         (MAIL_USE_POP): removed; now handled by configure.
13155         (ENCAPSULATE_STAT): from Dan Holmsand, added.
13156         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
13157         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
13158         constant string.
13159         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
13160         up from <winsock.h> via systime.h.
13161         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
13162         (getpagesize): from Dan Holmsand, added.
13163         Added #endif which was left dangling by Ben's mega patch; added
13164         comment to help prevent this in the future.
13165
13166         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
13167
13168 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13169
13170         * console-msw.h (struct mswindows_device): Removed unnecessary
13171         cached device geometry values.
13172         Added update_tick and an accessor macro.
13173         (Lisp_Devmode): Added lrecord declaration.
13174         (struct msprinter_device): Contain devmode as a Lisp object.
13175         Added mswindows_get_selected_frame_hwnd();
13176
13177         * console.h (struct console_methods): Indentation nitpicking.
13178
13179         * device-msw.c (mswindows_init_device): Do not initialize geometry
13180         cache. Initialize update tick.
13181         (mswindows_device_system_metrics): Ask the device for its geometry.
13182         (global_free_2_maybe):
13183         (devmode_to_hglobal):
13184         (handle_printer_changes):
13185         (ensure_not_printing):
13186         (print_dialog_worker):
13187         (Fmsprinter_print_setup_dialog):
13188         (Fmsprinter_print_dialog):
13189         (plist_get_margin):
13190         (plist_set_margin):
13191         (Fmsprinter_page_setup_dialog): Added functions.
13192         (sync_printer_with_devmode):
13193         (handle_devmode_changes):
13194         (Fmsprinter_get_settings):
13195         (Fmsprinter_select_settings):
13196         (Fmsprinter_apply_settings):
13197         (allocate_devmode):
13198         (Fmsprinter_settings_copy):
13199         (Fmsprinter_settings_despecialize):
13200         (print_devmode):
13201         (finalize_devmode):
13202         (equal_devmode):
13203         (hash_devmode): Added functions
13204         (syms_of_device_mswindows): Init devmode lrecord class.
13205
13206         * device.h: Added an exfun for find-device.
13207
13208         * event-msw.c (mswindows_wnd_proc): Do not update the cached
13209         geometry; although, recreate the device compatible DC.
13210
13211         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13212         (msprinter_init_frame_3):
13213         (msprinter_frame_property):
13214         (msprinter_internal_frame_property_p):
13215         (msprinter_frame_properties):
13216         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13217         print job properties (will move to device settings).
13218
13219         * lisp.h: Added symbols.
13220
13221         * general.c (syms_of_general): Declared them.
13222
13223         * hash.c (string_hash): Added.
13224
13225         * lrecord.h (lrecord_type): Added devmode lrecord type.
13226
13227 2000-07-02  Mike Sperber <mike@xemacs.org>
13228
13229         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13230         FreeBSD 4.0.
13231
13232 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13233
13234         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13235         integer.
13236
13237 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13238
13239         * data.c (Fstring_to_number): Don't recognize floating point if
13240         base is not 10.
13241
13242 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13243
13244         * glyphs-widget.c (tab_control_query_geometry):
13245         (widget_query_geometry):
13246         (button_query_geometry):
13247         * glyphs.c (text_query_geometry):
13248         Enforce type correctness.
13249
13250 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13251
13252         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13253         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13254
13255 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13256
13257         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13258         conflicts with gcc's fixincluded version of FOO.h.
13259
13260         * glyphs.h (image_instance_geometry): Remove trailing `,'
13261
13262 2000-06-08  Mike Alexander  <mta@arbortext.com>
13263
13264         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13265         (shove_thread): Don't write the same output twice
13266         (make_ntpipe_output_stream): Increase priority of shove thread
13267         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13268         chance to run
13269         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13270         it.
13271
13272 2000-06-12  Ben Wing  <ben@xemacs.org>
13273
13274         * s\mingw32.h (sigset):
13275         * s\windowsnt.h (sigset):
13276         rename msw_ to mswindows_ for consistency with general convention.
13277
13278 2000-06-12  Ben Wing  <ben@xemacs.org>
13279
13280         * console-msw.c:
13281         * console-msw.c (mswindows_get_console_hwnd):
13282         * console-msw.c (mswindows_ensure_console_allocated):
13283         * console-msw.c (mswindows_hide_console):
13284         * console-msw.c (mswindows_show_console):
13285         * console-msw.c (mswindows_ensure_console_buffered):
13286         * console-msw.c (mswindows_output_console_string):
13287         * console-msw.c (mswindows_windows9x_p):
13288         * console-msw.h:
13289         * device-msw.c (mswindows_get_workspace_coords):
13290         * device-msw.c (mswindows_device_system_metrics):
13291         * dialog-msw.c (mswindows_popup_dialog_box):
13292         * event-msw.c (mswindows_wnd_proc):
13293         * frame-msw.c (mswindows_size_frame_internal):
13294         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13295         * menubar-msw.c (displayable_menu_item):
13296         * menubar-msw.c (mswindows_char_is_accelerator):
13297         * nt.c:
13298         * nt.c (mswindows_sigset):
13299         * nt.c (mswindows_sigrelse):
13300         * nt.c (mswindows_sigpause):
13301         * nt.c (mswindows_raise):
13302         * nt.c (timer_proc):
13303         * ntproc.c:
13304         * ntproc.c (find_child_console):
13305         * ntproc.c (sys_kill):
13306         * print.c:
13307         * print.c (std_handle_out_external):
13308         * process-nt.c (find_child_console):
13309         * process-nt.c (send_signal_the_95_way):
13310         * process-nt.c (ensure_console_window_exists):
13311         * process-nt.c (nt_create_process):
13312         * syssignal.h:
13313         rename msw_ to mswindows_ for consistency with general convention.
13314
13315         * emacs.c:
13316         * dumper.c:
13317         include nt.h, not syswindows.h.
13318
13319         * nt.c (mswindows_fstat):
13320         * nt.c (mswindows_stat):
13321         prefix mswindows_ instead of attempting to directly override the
13322         library functions.  fix declarations.
13323
13324         * nt.h:
13325         include syswindows.h.  move some sysdep.h stuff here.
13326
13327         * ntheap.h:
13328         include syswindows.h, not <windows.h>.
13329
13330         * ntplay.c:
13331         clean up headers.
13332
13333         * sysdep.c:
13334         clean up headers.
13335
13336         * sysdep.c (sys_fstat):
13337         * sysdep.c (sys_stat):
13338         call mswindows versions when appropriate.
13339
13340         * sysdep.h:
13341         move mswin decls to nt.h.
13342
13343         * syswindows.h:
13344         add long comment describing appropriate use of the various windows
13345         headers.
13346
13347 2000-06-11  Ben Wing  <ben@xemacs.org>
13348
13349         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13350
13351 2000-06-10  Ben Wing  <ben@xemacs.org>
13352
13353         * Makefile.in.in (release):
13354         Correction to make sure xemacs.exe always dumped when correct.
13355
13356         * alloca.c:
13357         * balloon_help.c:
13358         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13359
13360         * buffer.c (set_buffer_internal):
13361         [[[[2]]]]: Remove HAVE_FEP code.
13362
13363         * buffer.c (init_initial_directory):
13364         [3].
13365
13366         * bytecode.c:
13367         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13368         individual files.
13369
13370         * callproc.c:
13371         * callproc.c (call_process_cleanup):
13372         * callproc.c (Fold_call_process_internal):
13373         * callproc.c (child_setup):
13374         * callproc.c (getenv_internal):
13375         * callproc.c (init_callproc):
13376         * callproc.c (vars_of_callproc):
13377         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13378         __CYGWIN32__ -> CYGWIN.
13379         DOS_NT -> WIN32_NATIVE.
13380         Remove MSDOS support/references, converting to WIN32_NATIVE
13381           where correct.
13382         __MINGW32__ -> MINGW.
13383         Fix windows.h includes.
13384         Remove bogus HAVE_NTGUI.
13385
13386         * config.h.in:
13387         [2].
13388
13389         * console-msw.c:
13390         mswindows_message_outputted added for use in allowing startup
13391         errors on the console to be seen.
13392
13393         * console-msw.c (msw_ensure_console_allocated):
13394         * console-msw.c (msw_output_console_string):
13395         * console-msw.c (DHEADER):
13396         * console-msw.c (DOPAQUE_DATA):
13397         * console-msw.c (DEVENT):
13398         * console-msw.c (DCONS):
13399         * console-msw.c (DCONSCDR):
13400         * console-msw.c (DSTRING):
13401         * console-msw.c (DVECTOR):
13402         * console-msw.c (DSYMBOL):
13403         * console-msw.c (DSYMNAME):
13404         Fix warnings.
13405
13406         * console-stream.c (stream_init_console):
13407         Fix text/binary problems.
13408
13409         * device-msw.c:
13410         * device-msw.c (mswindows_finish_init_device):
13411         * device-msw.c (mswindows_delete_device):
13412         [1].
13413
13414         * device.c (handle_asynch_device_change):
13415         [3].
13416
13417         * dgif_lib.c:
13418         * dgif_lib.c (DGifOpenFileName):
13419         * dgif_lib.c (DGifOpenFileHandle):
13420         * dgif_lib.c (DGifGetLine):
13421         * dgif_lib.c (DGifGetPixel):
13422         Added config.h/lisp.h, fix up includes.
13423         [1].
13424
13425         * dired-msw.c:
13426         [4].
13427
13428         * dired.c:
13429         * dired.c (file_name_completion):
13430         * dired.c (Ffile_attributes):
13431         * dired.c (syms_of_dired):
13432         [1].
13433
13434         * dumper.c:
13435         * dumper.c (pdump_file_unmap):
13436         * dumper.c (pdump_load):
13437         [1].
13438
13439         * editfns.c:
13440         * editfns.c (Ftemp_directory):
13441         * editfns.c (user_login_name):
13442         * editfns.c (Fuser_real_login_name):
13443         * editfns.c (get_home_directory):
13444         [1].
13445
13446         * elhash.c (finish_marking_weak_hash_tables):
13447         [[[[5]]]]: Fix GCC warnings.
13448
13449         * emacs.c:
13450         * emacs.c (mswindows_handle_hardware_exceptions):
13451         * emacs.c (make_arg_list_1):
13452         * emacs.c (main_1):
13453         * emacs.c (Fkill_emacs):
13454         * emacs.c (Fdump_emacs):
13455         [1].
13456         Fix problems with nested crashes, add long comment.
13457
13458         * event-Xt.c (init_event_Xt_late):
13459         [1].
13460
13461         * event-msw.c:
13462         * event-msw.c (mswindows_dde_callback):
13463         * event-msw.c (mswindows_handle_sticky_modifiers):
13464         * event-msw.c (mswindows_wnd_proc):
13465         [1].
13466         [5].
13467
13468         * events.c (character_to_event):
13469         [1].
13470
13471         * fileio.c:
13472         * fileio.c (Ffile_name_directory):
13473         * fileio.c (Ffile_name_nondirectory):
13474         * fileio.c (directory_file_name):
13475         * fileio.c (Fexpand_file_name):
13476         * fileio.c (Fsubstitute_in_file_name):
13477         * fileio.c (Ffile_name_absolute_p):
13478         * fileio.c (check_executable):
13479         * fileio.c (Ffile_readable_p):
13480         * fileio.c (Ffile_accessible_directory_p):
13481         * fileio.c (Ffile_modes):
13482         * fileio.c (Funix_sync):
13483         * fileio.c (vars_of_fileio):
13484         [1]. [4].
13485
13486         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13487
13488         Expand getdefdir defn.
13489         Fix bogus rename() comment.
13490
13491         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13492         to use standard XEmacs include files, e.g. sysfile.h, rather
13493         than system-specific includes.
13494
13495         * fns.c:
13496         * fns.c (Fsubseq):
13497         [5]. [6].
13498
13499         * frame.c (vars_of_frame):
13500         [1].
13501
13502         * getloadavg.c:
13503         * getloadavg.c (getloadavg):
13504         [1]. [6].
13505         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13506         (We don't use it elsewhere in the code; just add a comment.)
13507
13508         * gif_io.c:
13509         [6].
13510         Add config.h.
13511
13512         * glyphs-msw.c:
13513         * glyphs-msw.c (mswindows_resource_instantiate):
13514         [1].
13515
13516         * glyphs-x.c (x_native_layout_instantiate):
13517         [5].
13518
13519         * gui-msw.c (Fmswindows_shell_execute):
13520         [1].
13521
13522         * insdel.c:
13523         [4].
13524
13525         * lisp.h:
13526         [4]. [5].
13527
13528         * lread.c (locate_file_in_directory_mapper):
13529         [1].
13530
13531         * lstream.c:
13532         [4].
13533
13534         * mem-limits.h:
13535         * mem-limits.h (get_lim_data):
13536         [1].
13537
13538         * menubar-msw.c:
13539         [4].
13540
13541         * ndir.h:
13542         [1].
13543
13544         * nt.c:
13545         * nt.c (getwd):
13546         * nt.c (closedir):
13547         * nt.c (rva_to_section):
13548         * nt.c (mswindows_executable_type):
13549         [1]. [6].
13550         Fix closedir() defn.
13551
13552         * nt.h:
13553         [[[[8]]]]: *_OK defs moved to sysfile.h.
13554
13555         * ntproc.c:
13556         [6]. [7].
13557
13558         * objects-x.c:
13559         [4].
13560
13561         * print.c:
13562         * print.c (std_handle_out_external):
13563         [1]. [4].
13564
13565         * process-nt.c:
13566         * process-nt.c (nt_create_process):
13567         [6].
13568         try to fix process quoting somewhat.
13569
13570         * process-unix.c (unix_create_process):
13571         [1].
13572
13573         * process.c:
13574         * process.c (vars_of_process):
13575         Add Vnull_device.
13576
13577         * process.h:
13578         [1].
13579
13580         * realpath.c:
13581         * realpath.c (xrealpath):
13582         [1].
13583
13584         * redisplay-tty.c (init_tty_for_redisplay):
13585         [3].
13586
13587         * redisplay.c:
13588         [4]. [6].
13589
13590         * scrollbar-msw.c:
13591         [4].
13592
13593         * sheap.c:
13594         * sheap.c (more_static_core):
13595         * sheap.c (report_sheap_usage):
13596         [5]. [6].
13597
13598         * signal.c:
13599         * signal.c (alarm_signal):
13600         [1]. [6].
13601
13602         * sound.c:
13603         [6].
13604
13605         * strftime.c:
13606         * strftime.c (zone_name):
13607         [1]. [5].
13608
13609         * symsinit.h (init_sunpro):
13610         [1].
13611
13612         * syscommctrl.h:
13613         commctrl.h not in Cygwin b20.1.
13614
13615         * sysdep.c:
13616         * sysdep.c (endif):
13617         * sysdep.c (sys_subshell):
13618         * sysdep.c (init_baud_rate):
13619         * sysdep.c (emacs_get_tty):
13620         * sysdep.c (emacs_set_tty):
13621         * sysdep.c (tty_init_sys_modes_on_device):
13622         * sysdep.c (init_system_name):
13623         * sysdep.c (sys_open):
13624         * sysdep.c (interruptible_open):
13625         * sysdep.c (sys_fopen):
13626         * sysdep.c (sys_mkdir):
13627         * sysdep.c (sys_rename):
13628         * sysdep.c (get_process_times_1):
13629         [1]. [6].
13630
13631         * sysdep.h:
13632         [1].
13633
13634         * sysdir.h:
13635         * sysdir.h (DIRENTRY_NONEMPTY):
13636         [1]. [6].
13637
13638         * sysdll.c (dll_init):
13639         * sysdll.h:
13640         [1].
13641
13642         * sysfile.h:
13643         [1]. [6]. [8].
13644         added text/binary defs.
13645
13646         * sysfloat.h:
13647         [1].
13648
13649         * sysproc.h:
13650         * sysproc.h (EDESTADDRREQ):
13651         * sysproc.h (poll_fds_for_input):
13652         [1]. [6].
13653
13654         * syspwd.h:
13655         [6].
13656
13657         * syssignal.h:
13658         [1].
13659
13660         * systime.h:
13661         [1]. [6].
13662
13663         * systty.h:
13664         [1].
13665
13666         * syswindows.h:
13667         [1].
13668         Always define WIN32_LEAN_AND_MEAN.
13669
13670         * unexcw.c (unexec):
13671         [5].
13672
13673         * unexec.c:
13674         * unexec.c (copy_text_and_data):
13675         * unexec.c (adjust_lnnoptrs):
13676         [1].
13677
13678         * unexnt.c:
13679         * unexnt.c (_start):
13680         [1].
13681
13682 2000-06-07  Ben Wing  <ben@xemacs.org>
13683
13684         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13685         was used only as a model.  We've long since extracted any useful
13686         logic or code out of this. (I just did an exhaustive search.)
13687
13688         * s\msdos.h: Removed.
13689
13690         * s\windows95.h: Removed.
13691
13692 2000-06-10  Ben Wing  <ben@xemacs.org>
13693
13694         * s\cygwin32.h:
13695         [1]. [5].
13696         Don't use extern with fun defs.
13697
13698         * s\mingw32.h:
13699         [1]. [7].
13700         Remove nt\inc include.
13701         Remove getdisk, getdefdir. (The former is unused, the latter
13702         expanded in fileio.h.)
13703
13704         * s\windowsnt.h:
13705         * s\windowsnt.h (WIN32_NATIVE):
13706         * s\windowsnt.h (HAVE_STRCASECMP):
13707         [1]. [7].
13708         Add long comment about preprocessor changes.
13709         Remove getdisk, getdefdir. (The former is unused, the latter
13710         expanded in fileio.h.)
13711
13712 2000-06-10  Ben Wing  <ben@xemacs.org>
13713
13714         * m\arm.h:
13715         * m\delta.h:
13716         * m\intel386.h:
13717         * m\sequent.h:
13718         * m\template.h:
13719         * m\windowsnt.h:
13720         [1].
13721         Remove bogus/unused NO_SOCK_SIGIO.
13722
13723 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13724
13725         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13726         not an Emchar.
13727
13728 2000-06-04  Mike Sperber <mike@xemacs.org>
13729
13730         * casetab.c (set_case_table): For `set-standard-case-table',
13731         actually deposit the new case tables where the rest of XEmacs can
13732         see them.
13733
13734 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13735
13736         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13737
13738 2000-06-05  Ben Wing  <ben@xemacs.org>
13739
13740         * callproc.c (child_setup): Don't do close_load_descs() under
13741         MS Windows.  Put in a comment explaining why.
13742
13743 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13744
13745         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13746         Toolkit shell" which breaks `kill-compilation' on Windows NT
13747         native, retaining STDERR handling improvements.
13748
13749 2000-06-01  Andreas Jaeger  <aj@suse.de>
13750
13751         * s/s390.h: Support for S390, based on a patch by Martin
13752         Schwidefsky <schwidefsky@de.ibm.com>.
13753
13754 2000-05-30  Andy Piper  <andy@xemacs.org>
13755
13756         * window.c (allocate_window):
13757         (make_dummy_parent):
13758         (Fset_window_configuration): use new hashtable type.
13759
13760         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13761         (struct image_instantiator_methods):
13762         (struct Lisp_Image_Instance): make instance geometry signed.
13763
13764         * glyphs.c (instantiate_image_instantiator):
13765         (image_instance_query_geometry):
13766         (image_instance_layout):
13767         (image_instance_layout):
13768         (query_string_geometry):
13769         (text_query_geometry):
13770         (image_instantiate):
13771         (image_instantiate):
13772         (cache_subwindow_instance_in_frame_maybe):
13773         (subwindow_query_geometry): make instance geometry signed.
13774
13775         * glyphs-widget.c (widget_query_geometry):
13776         (widget_layout):
13777         (button_query_geometry):
13778         (tree_view_query_geometry):
13779         (tab_control_query_geometry):
13780         (layout_query_geometry):
13781         (layout_layout):
13782         (native_layout_layout): make instance geometry signed.
13783
13784 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13785
13786         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13787         constant.
13788
13789         * general.c (syms_of_general): Add Qfull_assoc symbol.
13790
13791         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13792         correctly.
13793         (decode_weak_list_type): Decode full-assoc type.
13794         (encode_weak_list_type): Encode full-assoc type.
13795         (Fmake_weak_list): Update doc string.
13796
13797 2000-05-30  Andy Piper  <andy@xemacs.org>
13798
13799         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13800
13801         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13802         (decode_hash_table_weakness): ditto.
13803         (Fhash_table_weakness): ditto.
13804         (Fhash_table_type): ditto.
13805         (finish_marking_weak_hash_tables): ditto.
13806         (hash_table_weakness_validate): ditto.
13807         (syms_of_elhash): ditto.
13808
13809 2000-05-28  Martin Buchholz <martin@xemacs.org>
13810
13811         * XEmacs 21.2.34 is released.
13812
13813 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13814
13815         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13816         start cache.
13817         (updating_line_start_cache): Gone.
13818         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13819         generic code to force a minimum of 1 line laid out in the
13820         CMOTION_DISP case.
13821
13822 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13823
13824         * glyphs.c (instantiate_image_instantiator): Check for initialized
13825         height & width no longer special cases IMAGE_NOTHING.
13826         (nothing_instantiate): Set height and width of instance.
13827
13828 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13829
13830         * unexelf.c (unexec): Search for ".data" section.
13831         Initialize new_data2_offset from old_data_index.
13832         Remove redundant check for ElfW.
13833
13834 2000-05-23  Andy Piper  <andy@xemacs.org>
13835
13836         * glyphs.c (get_image_instantiator_governing_domain): allow more
13837         specific domains as the governing domain rather than expecting an
13838         exact match. This fixes problems with layouts.
13839
13840 2000-05-22  Andy Piper  <andy@xemacs.org>
13841
13842         * redisplay-output.c (compare_runes): check for non-images
13843
13844         * glyphs.c (set_glyph_dirty_p): ditto.
13845         (update_glyph_cachel_data): ditto.
13846
13847         * glyphs-widget.c (layout_post_instantiate): ditto.
13848         (layout_post_instantiate): ditto.
13849
13850         * event-msw.c (mswindows_wnd_proc): warning removal.
13851
13852 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13853
13854         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13855
13856         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13857
13858         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13859
13860         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13861         (mswindows_executable_type): mingw32 now has enough headers for
13862         this to work.
13863
13864 2000-05-20  Andy Piper  <andy@xemacs.org>
13865
13866         * console-msw.c (mswindows_output_last_error): ; -> ,
13867
13868 2000-05-12  Andy Piper  <andy@xemacs.org>
13869
13870         * console-msw.c (FROB): compare ints with ints.
13871
13872 2000-05-11  Andy Piper  <andy@xemacs.org>
13873
13874         * glyphs-x.c (x_finalize_image_instance): make minimal build
13875         happy.
13876
13877 2000-05-20  Ben Wing  <ben@xemacs.org>
13878
13879         * event-Xt.c:
13880         * event-Xt.c (vars_of_event_Xt):
13881         move modifier-keys-are-sticky to event-stream.c.
13882
13883         * event-msw.c:
13884         * event-msw.c (mswindows_enqueue_mouse_button_event):
13885         * event-msw.c (key_needs_default_processing_p):
13886         * event-msw.c (XEMSW_LCONTROL):
13887         * event-msw.c (mswindows_handle_sticky_modifiers):
13888         * event-msw.c (FROB):
13889         * event-msw.c (clear_sticky_modifiers):
13890         * event-msw.c (output_modifier_keyboard_state):
13891         * event-msw.c (output_alt_keyboard_state):
13892         * event-msw.c (mswindows_wnd_proc):
13893         * event-msw.c (mswindows_modifier_state):
13894         * event-msw.c (emacs_mswindows_handle_magic_event):
13895         implement sticky modifiers.
13896
13897         * event-stream.c:
13898         * event-stream.c (vars_of_event_stream):
13899         move modifier-keys-are-sticky here.
13900
13901         * lisp.h:
13902         add CHECK_FUNCTION.
13903
13904         * rangetab.c:
13905         implement map-range-table.
13906
13907
13908 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13909
13910         * redisplay-tty.c (reset_tty_modes):
13911         (tty_redisplay_shutdown): Adjust argument type to
13912         tty_frame_output_end.
13913
13914 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13915
13916         * eval.c (Fbacktrace): Don't output a line with only right
13917         parenthesis.
13918
13919 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13920
13921         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13922         (Fpq_reset_poll): Ditto.
13923
13924 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13925
13926         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13927
13928 2000-05-16  Ben Wing  <ben@xemacs.org>
13929
13930         * buffer.c:
13931         * buffer.c (dfc_convert_to/from_internal_format):
13932         * buffer.c (reinit_vars_of_buffer):
13933         Fix conversion functions to allow reentrancy.
13934
13935         * console-msw.c:
13936         * console-msw.c (mswindows_output_last_error):
13937         New fun, generally useful -- output a human-readable
13938         version of GetLastError() on the console.
13939
13940         * console-msw.h:
13941         * console-msw.h (struct mswindows_frame):
13942         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13943
13944         * console-stream.c (stream_output_begin):
13945         * console-stream.c (stream_output_end):
13946         * console-stream.c (stream_output_vertical_divider):
13947         * console-stream.c (stream_clear_region):
13948         * console-stream.c (stream_flash):
13949         * console-stream.c (console_type_create_stream):
13950         Delete blank stream methods, not needed.
13951
13952         * console.h (struct console_methods):
13953         Split begin/end methods into window and frame.
13954
13955         * event-msw.c:
13956         * event-msw.c (mswindows_handle_paint):
13957         * event-msw.c (output_alt_keyboard_state):
13958         * event-msw.c (mswindows_wnd_proc):
13959         * event-msw.c (vars_of_event_mswindows):
13960         Comment about problems with ignored-expose.
13961         Define mswindows-debug-events; not really implemented.
13962
13963         * frame-msw.c (mswindows_init_frame_1):
13964         random cleanups.
13965
13966         * glyphs-msw.c:
13967         * glyphs-msw.c (begin_defer_window_pos):
13968         * glyphs-msw.c (mswindows_unmap_subwindow):
13969         * glyphs-msw.c (mswindows_map_subwindow):
13970         * glyphs-msw.c (mswindows_resize_subwindow):
13971         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13972
13973         * glyphs.c (make_image_instance_1):
13974         Fix crash.
13975
13976         * gutter.c (Fredisplay_gutter_area):
13977         Use new begin/end methods.
13978
13979         * lisp.h (Dynarr_new2):
13980         New creation fun.
13981
13982         * redisplay-msw.c:
13983         * redisplay-msw.c (mswindows_frame_output_begin):
13984         * redisplay-msw.c (mswindows_frame_output_end):
13985         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13986         New begin/end methods -- handle DeferWindowPos.
13987
13988         * redisplay-output.c (redisplay_move_cursor):
13989         * redisplay-output.c (redraw_cursor_in_window):
13990         * redisplay-output.c (redisplay_update_line):
13991         * redisplay-output.c (redisplay_output_window):
13992         New begin/end methods.
13993
13994         * redisplay-tty.c:
13995         * redisplay-tty.c (tty_frame_output_begin):
13996         * redisplay-tty.c (tty_frame_output_end):
13997         * redisplay-tty.c (console_type_create_redisplay_tty):
13998         New begin/end methods.
13999
14000         * redisplay-x.c:
14001         * redisplay-x.c (x_window_output_begin):
14002         * redisplay-x.c (x_window_output_end):
14003         * redisplay-x.c (console_type_create_redisplay_x):
14004         New begin/end methods.
14005
14006         * redisplay.c (redisplay_frame):
14007         * redisplay.c (Fredisplay_echo_area):
14008         New begin/end methods.
14009         use MAYBE_DEVMETH for clear_frame; it may not exist.
14010
14011         * window.h (WINDOW_XFRAME):
14012         WINDOW_XFOO macros -- get locale and decode struct pointer.
14013
14014
14015 2000-05-12  Ben Wing  <ben@xemacs.org>
14016
14017         * emacs.c:
14018         * emacs.c (ensure_no_quitting_from_now_on):
14019         * emacs.c (fatal_error_signal):
14020         * emacs.c (mswindows_handle_hardware_exceptions):
14021         * emacs.c (main):
14022         * emacs.c (Fkill_emacs):
14023         * emacs.c (shut_down_emacs):
14024         * emacs.c (assert_failed):
14025         various improvements in fatal error handling.
14026
14027         * eval.c:
14028         move preparing_for_armageddon to emacs.c.
14029
14030         * lisp.h:
14031         declare fatal_error_in_progress.
14032
14033         * print.c:
14034         * print.c (std_handle_out_external):
14035         * print.c (std_handle_out_va):
14036         * print.c (stderr_out):
14037         * print.c (stdout_out):
14038         use console under mswin when no standard output.
14039         don't do code conversion during fatal error.
14040
14041         * scrollbar.c (Fscrollbar_page_up):
14042         * scrollbar.c (Fscrollbar_page_down):
14043         fix missing else.  reindent.
14044
14045 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
14046
14047         Emergency fix.
14048
14049         * glyphs.h (GLYPH_CACHEL_DESCENT):
14050         (GLYPH_CACHEL_DESCENT):
14051         (GLYPH_CACHEL_DESCENT):
14052         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
14053         used in case these are inline functions.
14054         Use more absurd values to error check.
14055
14056         include window.h for error check functions.
14057
14058 2000-05-11  Ben Wing  <ben@xemacs.org>
14059
14060         * cmdloop.c (Freally_early_error_handler):
14061         Display message box under windows; otherwise, message will disappear
14062         before it can be viewed.
14063
14064         * console-msw.c:
14065         * console-msw.c (Fmswindows_message_box):
14066         * console-msw.c (FROB):
14067         * console-msw.c (syms_of_console_mswindows):
14068         Define new fun `mswindows-message-box'.
14069         #### I will merge this into `popup-dialog-box'; just give me
14070         a bit of time.
14071
14072         * general.c:
14073         * general.c (syms_of_general):
14074         Some new symbols used in `mswindows-message-box'.
14075
14076         * glyphs.c:
14077         * glyphs.c (Fset_image_instance_property):
14078         put warning in this fun.
14079
14080         * glyphs.h:
14081         * glyphs.h (GLYPH_CACHEL_WIDTH):
14082         * glyphs.h (GLYPH_CACHEL_ASCENT):
14083         * glyphs.h (GLYPH_CACHEL):
14084         * glyphs.h (GLYPH_CACHEL_GLYPH):
14085         define error-checking versions to try to catch a bug i've seen --
14086         redisplay gets in an infinite loop because the glyph width of the
14087         continuation glyph is 65535.
14088
14089         * lisp.h:
14090         Extern message-box stuff.
14091
14092         * window.c (allocate_window):
14093         * window.c (make_dummy_parent):
14094         * window.c (Fset_window_configuration):
14095         Use EQUAL not EQ for subwindow caches to make them work a bit
14096         better. (Something is still very broken.)
14097
14098
14099 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14100
14101         * glyphs.c (image_instantiate): Suppress gcc warnings.
14102         (Fmake_image_instance): Fix doc string.
14103         * specifier.c (Fmake_specifier): Ditto.
14104
14105 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
14106
14107         * paths.h.in (PATH_LOCK): Removed.
14108         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
14109         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
14110
14111 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14112
14113         * fns.c (Ffeaturep): Update e-mail address in doc-string.
14114         Document (featurep '(and xemacs 21.02)).
14115
14116 2000-05-09  Ben Wing  <ben@xemacs.org>
14117
14118         * buffer.c (complex_vars_of_buffer):
14119         update modeline-format doc.
14120
14121         * device.h:
14122         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
14123
14124         * emacs.c:
14125         timeline of all released versions of Emacs, for use in creating
14126         authorship comments and in synching up.
14127
14128         * glyphs-widget.c (image_instantiator_buttons):
14129         * glyphs-widget.c (image_instantiator_edit_fields):
14130         * glyphs-widget.c (image_instantiator_combo_box):
14131         * glyphs-widget.c (image_instantiator_scrollbar):
14132         * glyphs-widget.c (image_instantiator_progress_guage):
14133         * glyphs-widget.c (image_instantiator_tree_view):
14134         * glyphs-widget.c (image_instantiator_tab_control):
14135         * glyphs-widget.c (image_instantiator_labels):
14136         * glyphs-widget.c (image_instantiator_layout):
14137         * glyphs-widget.c (image_instantiator_native_layout):
14138         rename decode_domain method to governing_domain.
14139
14140         * glyphs.c:
14141         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
14142         * glyphs.c (add_entry_to_device_ii_format_list):
14143         make sure we don't put an entry more than once into the list.
14144         * glyphs.c (check_instance_cache_mapper):
14145         *************************************************************
14146         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14147         HAVE BEEN GETTING.
14148         *************************************************************
14149         * glyphs.c (get_image_instantiator_governing_domain):
14150         clean up, expand on new concept of governing domain.
14151         * glyphs.c (instantiate_image_instantiator):
14152         * glyphs.c (allocate_image_instance):
14153         use governing_domain instead of cache_domain in naming.
14154         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
14155         * glyphs.c (make_image_instance_1):
14156         * glyphs.c (Fmake_image_instance):
14157         allow for any domain (not just device), and process the
14158         governing domain correctly.  very big doc fix.
14159         * glyphs.c (Fimage_instance_domain):
14160         new primitive, to retrieve the governing domain of an image instance.
14161         * glyphs.c (image_instantiate):
14162         use new governing_domain stuff.  this fixes a crash you could get
14163         by instantiating certain widget glyphs in frame locales. (should
14164         signal an error instead of crashing.)
14165         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
14166         * glyphs.c (Fglyphp): clean up doc.
14167         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
14168         * glyphs.c (syms_of_glyphs):
14169         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
14170         * glyphs.c (image_instantiator_format_create): add some comments about
14171         bogus code.
14172         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
14173         for current-display-table. (Apparently Hrjove implemented in 1998 a
14174         design I wrote up in 1996, but didn't update the doc string.)
14175
14176         * glyphs.h: clean up a doc string.
14177         * glyphs.h (governing_domain):
14178         * glyphs.h (struct image_instantiator_methods):
14179         changes for governing_domain stuff.
14180
14181         * gutter.c:
14182         * gutter.c (Fgutter_specifier_p):
14183         * gutter.c (Fgutter_size_specifier_p):
14184         * gutter.c (Fgutter_visible_specifier_p):
14185         * objects.c:
14186         * objects.c (Fcolor_specifier_p):
14187         * objects.c (Ffont_specifier_p):
14188         * objects.c (Fface_boolean_specifier_p):
14189         doc strings moved to make-*-specifier.
14190
14191         * redisplay.c (add_disp_table_entry_runes_1):
14192         * redisplay.c (generate_fstring_runes):
14193         * redisplay.c (screen):
14194         add random comments and doc strings.
14195
14196         * specifier.c:
14197         * specifier.c (Fmake_specifier):
14198         major overhaul of this doc string.
14199
14200         * specifier.c (Fvalid_specifier_domain_p):
14201         comment about the bogosity of image instances being domains.
14202         * specifier.c (decode_domain):
14203         now non-static, used in glyphs.c.
14204         * specifier.c (specifier_instance):
14205         comment about the bogosity of image instances being domains.
14206         * specifier.c (Fgeneric_specifier_p):
14207         move doc string to make-generic-specifier.
14208         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14209         rebackslashify.
14210
14211         * specifier.h:
14212         * specifier.h (DOMAIN_FRAME):
14213         * specifier.h (DOMAIN_LIVE_P):
14214         * specifier.h (DOMAIN_XDEVICE):
14215         rebackslashify.
14216         add comments about problems with these macros.
14217         prototype for decode_domain.
14218
14219         * toolbar.c:
14220         * toolbar.c (Ftoolbar_specifier_p):
14221         move doc string to `make-toolbar-specifier'.
14222
14223         * window.c (window_unmap_subwindows_cache_mapper):
14224         *************************************************************
14225         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14226         HAVE BEEN GETTING.
14227         *************************************************************
14228
14229 2000-05-09  Andy Piper  <andy@xemacs.org>
14230
14231         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14232
14233         * window.c (Fset_window_configuration): reset the frame subwindow
14234         cache and re-initialize the window subwindow caches.
14235
14236         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14237
14238 2000-05-09  Ben Wing  <ben@xemacs.org>
14239
14240         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14241         DWORD.
14242
14243 2000-04-26  Mike Woolley  <mike@bulsara.com>
14244
14245         * ntheap.c: Changed recreate_heap to limit the amount reserved
14246         for the heap to that which is actually available. Also now
14247         displays a message box (with some dignostics) in the event that
14248         it still can't start.
14249
14250 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14251
14252         * callproc.c (Fold_call_process_internal): GCPRO path
14253
14254 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14255
14256         Patch by Bill Perry.
14257
14258         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14259         back data instead of #ifdef.
14260         (Fscrollbar_page_down): ditto.
14261
14262 2000-05-07  Ben Wing  <ben@xemacs.org>
14263
14264         * buffer.h:
14265         Kludge for defining Qmswindows_tstr.
14266
14267         * nt.c:
14268         * nt.c (open_input_file):
14269         * nt.c (open_output_file):
14270         * nt.c (rva_to_section):
14271         * nt.c (mswindows_executable_type):
14272         Move all memory-mapped-file routines here (some were in unexnt.c,
14273         which is bad because they are used by process-nt.c, and unexnt
14274         won't be around when portable dumping).  Synched the above routines
14275         with FSF 20.6.
14276
14277         * nt.h:
14278         Removed ifdef'd out bogus code.
14279         Fixed some prototypes.
14280
14281         * nt.h (file_data):
14282         * nt.h (OFFSET_TO_RVA):
14283         * nt.h (RVA_TO_OFFSET):
14284         * nt.h (RVA_TO_PTR):
14285         Moved the memory-mapped-file structures, macros and prototypes
14286         here, to parallel nt.c.  ntheap.h should really be removed
14287         entirely, and it's a non-portable-dumper specific file.
14288
14289         * ntheap.h (round_to_next):
14290         Moved the memory-mapped-file structures, macros and prototypes
14291         to nt.h.
14292
14293         * ntproc.c (compare_env):
14294         Moved rva_to_section and mswindows_executable_type to nt.c.
14295         Moved compare_env to process-nt.c.
14296         ntproc.c will die, one day.
14297
14298         * ntproc.c (sys_spawnve):
14299         Account for win32_ -> mswindows_.
14300
14301         * process-nt.c:
14302         * process-nt.c (struct nt_process_data):
14303         * process-nt.c (ensure_console_window_exists):
14304         * process-nt.c (compare_env):
14305         * process-nt.c (nt_create_process):
14306         * process-nt.c (nt_kill_process_by_pid):
14307         * process-nt.c (syms_of_process_nt):
14308         * process-nt.c (vars_of_process_nt):
14309         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14310         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14311         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14312         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14313         Move compare_env here from ntproc.c.
14314
14315         * process.c (Fprocess_send_region):
14316         Takes an optional fourth argument, BUFFER, which should fix some
14317         problems with call-process.
14318
14319         * syscommctrl.h:
14320         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14321
14322         * syswindows.h:
14323         Move ICC_BAR_CLASSES to syscommctrl.h.
14324         Add preliminary macros for MSWindows/Mule.  More to come.
14325
14326         * unexnt.c:
14327         * unexnt.c (unexec):
14328         open_output_file moved to nt.c.
14329
14330
14331 2000-05-05  Andy Piper  <andy@xemacs.org>
14332
14333         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14334         instance from the frame cache also since GC may catch up too late
14335         to make frame deletion sane.
14336
14337 2000-05-04  Andy Piper  <andy@xemacs.org>
14338
14339         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14340         (x_finalize_image_instance): ungcpro on deletion.
14341
14342         * glyphs.c (image_instantiator_format_create): give pointers a
14343         query geometry method so that the geometry is at least set.
14344
14345         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14346         initialize layouts if using widgets.
14347
14348 2000-05-03  Andy Piper  <andy@xemacs.org>
14349
14350         * nt.c: remove bogus reference to sysmmsystem.h
14351
14352         * gui-x.c (popup_selection_callback): fix no selection abort.
14353
14354 2000-05-02  Andy Piper  <andy@xemacs.org>
14355
14356         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14357         (mswindows_widget_instantiate): ditto.
14358
14359         * glyphs-widget.c (initialize_widget_image_instance): initialize
14360         children correctly.
14361         (widget_instantiate): cope with children and items in the same
14362         instance.
14363
14364         * glyphs.c (mark_image_instance): cope with children as a first
14365         class member.
14366         (image_instance_equal): ditto.
14367         (image_instance_hash): ditto.
14368         (image_instance_changed): ditto.
14369
14370 2000-04-30  Andy Piper  <andy@xemacs.org>
14371
14372         * glyphs.c (subwindow_query_geometry): new function. Return some
14373         defaults.
14374         (subwindow_instantiate): don't assign dimensions if none have been
14375         given.
14376         (image_instantiator_format_create): add subwindow_query_geometry.
14377         (print_image_instance): cope with layouts as widgets.
14378
14379 2000-04-29  Andy Piper  <andy@xemacs.org>
14380
14381         * frame.c (delete_frame_internal): call
14382         free_frame_subwindow_instance_cache so that all subwindows are
14383         finalized before their parent.
14384         (mark_frame): remove subwindow_cachels.
14385         (Fmake_frame): remove subwindow_cachel manipulation.
14386         (allocate_frame_core): subwindow_instance_cache is a weak list.
14387         (delete_frame_internal): set subwindow_instance_cache to nil.
14388
14389         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14390         finalization safe.
14391         (mswindows_finalize_image_instance): use the device
14392         not the domain as the domain may have died already.
14393
14394         * glyphs-x.c (x_finalize_image_instance): ditto.
14395         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14396         HEIGHT.
14397
14398         * redisplay-output.c (redisplay_unmap_subwindows): update for
14399         subwindow instance cache as a weak list.
14400         (redisplay_unmap_subwindows_maybe): ditto.
14401         (redisplay_unmap_subwindows_except_us): ditto.
14402
14403         * glyphs.c (unmap_subwindow): error checking will check the domain
14404         so don't deal with it here. Don't use cachels anymore.
14405         (map_subwindow): ditto.
14406         (update_subwindow_cachel_data): remove old accessor names.
14407         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14408         (Fresize_subwindow): don't update cachel.
14409         (mark_subwindow_cachels):
14410         (update_subwindow_cachel_data):
14411         (add_subwindow_cachel):
14412         (get_subwindow_cachel_index):
14413         (update_subwindow_cachel):
14414         (reset_subwindow_cachels):
14415         (mark_subwindow_cachels_as_not_updated): deleted.
14416         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14417         subwindow instance to the frame cache.
14418         (find_matching_subwindow): update for subwindow instance cache as
14419         a weak list.
14420         (update_widget_instances): ditto.
14421         (image_instance_type_to_mask):inlined.
14422         (free_frame_subwindow_instance_cache): new function. finalize all
14423         subwindows that are instantiated.
14424
14425         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14426         of cachel information.
14427         (IMAGE_INSTANCE_DISPLAY_X):
14428         (IMAGE_INSTANCE_DISPLAY_Y):
14429         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14430         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14431         (XIMAGE_INSTANCE_DISPLAY_X):
14432         (XIMAGE_INSTANCE_DISPLAY_Y):
14433         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14434         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14435         remove subwindow_cachel structure and function references.
14436         (image_instance_type_to_mask): inline from glyphs.c
14437
14438         * redisplay.c (redisplay_frame): remove subwindow_cachel
14439         references.
14440
14441         * frame.h (struct frame): remove subwindow_cachels.
14442         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14443
14444         * frameslots.h: add subwindow_instance_cache.
14445
14446         * window.c (replace_window): check subwindow cache of replacement.
14447         (window_unmap_subwindows_cache_mapper):
14448         (window_unmap_subwindows): new functions. Unmap all subwindows
14449         cached on this window.
14450         (mark_window_as_deleted): unmap all subwindows.
14451
14452 2000-04-27  Andy Piper  <andy@xemacs.org>
14453
14454         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14455
14456         * glyphs-widget.c (widget_layout): return something.
14457         (layout_layout): return something. Fail if not initialized.
14458         (layout_query_geometry): ditto.
14459         (image_instantiator_native_layout): new function. Initialized the
14460         native layout type.
14461         (widget_instantiate): don't do layout stuff here.
14462
14463         * glyphs.c (instantiate_image_instantiator): reorded calling or
14464         instantiate and post_instantiate with layout in between.
14465         (image_instance_layout): be more selective about deciding whether
14466         the layout has been done or not.
14467
14468         * glyphs.h (struct image_instantiator_methods): return a value
14469         from layout_method.
14470
14471 2000-04-26  Andy Piper  <andy@xemacs.org>
14472
14473         * glyphs.c (allocate_image_instance): make initial width and
14474         height unspecified. Set initialized to 0.
14475
14476         * syscommctrl.h new file. Encapsulates commctrl.h.
14477
14478         * syswindows.h new file. Encapsulates windows.h.
14479
14480         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14481         * nt.c: ditto.
14482         * console-msw.h: ditto.
14483
14484         * redisplay-tty.c (tty_output_display_block): remove layout references.
14485
14486         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14487         window handle rather than just the frame.
14488
14489         * glyphs.c (mark_image_instance): remove layout references.
14490         (print_image_instance): ditto.
14491         (image_instance_equal): ditto.
14492         (image_instance_hash): ditto.
14493         (decode_image_instance_type): ditto.
14494         (encode_image_instance_type): ditto.
14495         (image_instantiate): ditto.
14496         (allocate_glyph): ditto.
14497         (Fimage_instance_height): ditto.
14498         (Fimage_instance_width): ditto.
14499         (update_subwindow): ditto.
14500
14501         * redisplay-x.c (x_output_display_block): recode for layouts as
14502         widgets.
14503
14504         * redisplay-output.c (redisplay_output_layout): recode for layouts
14505         as widgets.
14506         (compare_runes): remove layout references.
14507
14508         * redisplay-msw.c (mswindows_output_display_block): recode for
14509         layouts as widgets.
14510
14511         * glyphs-widget.c (image_instantiator_layout): remove
14512         layout_possible_dest_types.
14513         (layout_possible_dest_types): deleted.
14514
14515         * glyphs.h (image_instance_type): remove layout references.
14516         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14517         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14518         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14519
14520 2000-04-25  Andy Piper  <andy@xemacs.org>
14521
14522         * glyphs-widget.c (image_instantiator_buttons):
14523         (image_instantiator_edit_fields):
14524         (image_instantiator_combo_box):
14525         (image_instantiator_scrollbar):
14526         (image_instantiator_progress_guage):
14527         (image_instantiator_tree_view):
14528         (image_instantiator_tab_control):
14529         (image_instantiator_labels):
14530         (image_instantiator_layout): call default post_instantiate method.
14531         (widget_post_instantiate): new function. Simply lays out the
14532         widgets.
14533
14534         * glyphs.h (struct image_instantiator_methods): add
14535         post_instantiate method.
14536
14537         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14538         method calls.
14539
14540 2000-04-23  Andy Piper  <andy@xemacs.org>
14541
14542         * glyphs.h (struct image_instantiator_methods): add
14543         decode_domain_method.
14544         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14545         derived from the domain.
14546         (IMAGE_INSTANCE_FRAME): new accessor.
14547         (XIMAGE_INSTANCE_FRAME): ditto.
14548
14549         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14550         instead of _SUBWINDOW_FRAME.
14551         (finalize_image_instance): ditto.
14552         (Fimage_instance_foreground): ditto.
14553         (Fimage_instance_background): ditto.
14554         (image_instantiate): ditto.
14555         (update_subwindow_cachel): ditto.
14556         (update_subwindow): ditto.
14557         (unmap_subwindow): ditto.
14558         (map_subwindow): ditto
14559         (subwindow_instantiate): ditto.
14560         * glyphs-msw.c (mswindows_update_widget): ditto.
14561         (mswindows_progress_gauge_instantiate): ditto.
14562         (mswindows_tab_control_update): ditto.
14563         * glyphs-x.c (x_update_widget): ditto.
14564         (x_widget_instantiate): ditto.
14565         (x_tab_control_instantiate): ditto.
14566         (x_tab_control_update): ditto.
14567         * event-msw.c (mswindows_wnd_proc): ditto
14568
14569         * glyphs-widget.c (image_instantiator_layout): use
14570         subwindow_decode_domain.
14571         (image_instantiator_buttons): ditto.
14572         (image_instantiator_edit_fields): ditto.
14573         (image_instantiator_combo_box): ditto.
14574         (image_instantiator_scrollbar): ditto.
14575         (image_instantiator_progress_guage): ditto.
14576         (image_instantiator_tree_view): ditto.
14577         (image_instantiator_tab_control): ditto.
14578         (image_instantiator_labels): ditto.
14579         (image_instantiator_layout): ditto.
14580
14581         * glyphs.c: add instance error checking to many functions.
14582         (instantiate_image_instantiator): decode device from cache_domain.
14583         (image_instantiate): partially rewrite by using
14584         decode_image_instantiator_domain to determine what domain the
14585         instance needs to be cached in.
14586         (decode_image_instantiator_domain): new function. Determine what
14587         domain the image needs to be cached in.
14588         (check_window_subwindow_cache): new error checking function.
14589         (check_instance_cache_mapper): ditto.
14590         (check_image_instance_structure): ditto.
14591         (subwindow_decode_domain): new function. Encodes a window as a
14592         subwindow's cache domain.
14593         (image_instantiator_format_create): use it for text and
14594         subwindows.
14595
14596 2000-04-21  Andy Piper  <andy@xemacs.org>
14597
14598         * glyphs.c (image_instance_device): new function.
14599         (image_instance_frame): new function.
14600         (image_instance_window): new function.
14601         (image_instance_live_p): new function.
14602
14603         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14604         cache to nil.
14605
14606         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14607         (IMAGE_INSTANCE_DOMAIN): new accessor.
14608         (XIMAGE_INSTANCE_DOMAIN): ditto.
14609
14610         * glyphs-x.c (x_finalize_image_instance): device->domain.
14611
14612         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14613         (mswindows_finalize_image_instance): ditto.
14614
14615         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14616         (gif_instantiate): ditto.
14617         (png_instantiate): ditto.
14618         (tiff_instantiate): ditto.
14619
14620         * glyphs.c (instantiate_image_instantiator): use domain rather
14621         than device.
14622         (mark_image_instance): device -> domain.
14623         (print_image_instance): ditto.
14624         (finalize_image_instance): ditto.
14625         (image_instance_equal): ditto.
14626         (allocate_image_instance): ditto.
14627         (Fcolorize_image_instance): ditto.
14628         (query_string_geometry): ditto.
14629         (image_instantiate): ditto
14630         (query_string_font): ditto.
14631         (image_instantiate): ditto.
14632         (update_subwindow): ditto.
14633         (unmap_subwindow): ditto.
14634         (map_subwindow): ditto.
14635         (subwindow_instantiate): ditto.
14636
14637         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14638         (DOMAIN_FRAME): ditto.
14639         (DOMAIN_WINDOW): ditto.
14640         (DOMAIN_LIVE_P): ditto.
14641         (XDOMAIN_DEVICE): ditto.
14642         (XDOMAIN_FRAME): ditto.
14643         (XDOMAIN_WINDOW): ditto.
14644
14645         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14646         a valid specifier domain.
14647
14648 2000-04-19  Andy Piper  <andy@xemacs.org>
14649
14650         * glyphs-widget.c (syms_of_glyphs_widget): remove
14651         widget-callback-current-channel.
14652         (vars_of_glyphs_widget): ditto.
14653         * glyphs.h: ditto
14654
14655         * gui.c (get_gui_callback): revert to previous behaviour.
14656
14657 2000-04-18  Andy Piper  <andy@xemacs.org>
14658
14659         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14660         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14661         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14662
14663         * glyphs.c (image_instance_equal): add margin_width.
14664         (image_instance_hash): ditto.
14665
14666         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14667         (layout_query_geometry): ditto.
14668         (layout_layout): ditto.
14669         (syms_of_glyphs_widget): add margin-width.
14670         (image_instantiator_layout): allow margin-width.
14671
14672         * glyphs.c (update_widget_instances): make a normal function.
14673         (syms_of_glyphs): remove Qupdate_widget_instances.
14674         * glyphs.h: ditto.
14675
14676         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14677         so that we don't corrupt ideas about the last event or
14678         command. Remove widget-callback-current-channel fiddling.
14679         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14680
14681 2000-05-01  Martin Buchholz <martin@xemacs.org>
14682
14683         * XEmacs 21.2.33 is released.
14684
14685 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14686
14687         * make-src-depend: Allow dots in header file name.
14688
14689 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14690
14691         * mule-charset.h (struct charset_lookup): Add
14692         next_allocated_1_byte_leading_byte and
14693         next_allocated_2_byte_leading_byte.
14694         * mule-charset.c: Move above two variables so that those values
14695         will be dumped.
14696
14697 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14698
14699         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14700         when string length is zero.
14701         (find_charsets_in_emchar_string): Ditto.
14702
14703 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14704
14705         * lisp.h: extern Qdialog and Qmenubar.
14706
14707         * gui-x.c: added events.h.
14708                 also fixed typo which made the file uncompilable.
14709
14710         * general.c: Added Qmenubar and Qdialog
14711
14712 2000-04-28  Ben Wing  <ben@xemacs.org>
14713
14714         * frame-msw.c (mswindows_init_frame_1):
14715         * frame-msw.c (mswindows_mark_frame):
14716         * event-msw.c (mswindows_enqueue_dispatch_event):
14717         * console-msw.h:
14718         * console-msw.h (struct mswindows_frame):
14719         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14720         there are now three hash tables for callbacks.
14721         mswindows_enqueue_dispatch_event is no longer static.
14722
14723         * dialog-x.c (maybe_run_dbox_text_callback):
14724         * dialog-x.c (dbox_descriptor_to_widget_value):
14725         switch to new cons3 form for callbacks.
14726
14727         * glyphs-msw.c (mswindows_register_gui_item):
14728         * glyphs-msw.c (mswindows_widget_instantiate):
14729         * glyphs-msw.c (add_tree_item):
14730         * glyphs-msw.c (add_tab_item):
14731         new image instance parameter, so it can be passed to callback-ex.
14732         respect :callback-ex as well as :callback.
14733
14734         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14735         add :callback-ex.
14736
14737         * glyphs.c (print_image_instance):
14738         prettify, e.g. now prints widget type.
14739
14740         * gui-x.h:
14741         certain funs have new image instance parameter.
14742
14743         * gui.c:
14744         * gui.c (get_gui_callback):
14745         * gui.c (gui_item_add_keyval_pair):
14746         * gui.c (gui_item_init):
14747         * gui.c (gui_add_item_keywords_to_plist):
14748         * gui.c (mark_gui_item):
14749         * gui.c (gui_item_hash):
14750         * gui.c (gui_item_equal):
14751         * gui.c (copy_gui_item):
14752         * gui.c (syms_of_gui):
14753         recognize callback-ex in a number of places.
14754         also, fix the annoying "can't get out of yes-no dialog" bug.
14755
14756         * gui.h:
14757         * gui.h (struct Lisp_Gui_Item):
14758         recognize callback-ex in a number of places.
14759
14760         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14761         new parameter in button_item_to_widget_value.
14762
14763         * glyphs-x.c (x_update_widget):
14764         * glyphs-x.c (x_button_instantiate):
14765         * glyphs-x.c (x_button_update):
14766         * glyphs-x.c (x_progress_gauge_instantiate):
14767         * glyphs-x.c (x_edit_field_instantiate):
14768         * glyphs-x.c (x_combo_box_instantiate):
14769         * glyphs-x.c (x_tab_control_instantiate):
14770         * glyphs-x.c (x_label_instantiate):
14771         new image instance parameter in various places.
14772
14773         * event-Xt.c:
14774         * event-Xt.c (enqueue_Xt_dispatch_event):
14775         this fun gets exported.
14776
14777         * gui-msw.c:
14778         * gui-msw.c (mswindows_handle_gui_wm_command):
14779         handle both :callback and :callback-ex, and generate our own
14780         event because it's one of the callback-ex arguments.
14781
14782         * gui-x.c:
14783         * gui-x.c (popup_selection_callback):
14784         handle both :callback and :callback-ex, and generate our own
14785         event because it's one of the callback-ex arguments.
14786         * gui-x.c (button_item_to_widget_value):
14787         * gui-x.c (gui_items_to_widget_values_1):
14788         * gui-x.c (gui_item_children_to_widget_values):
14789         * gui-x.c (gui_items_to_widget_values):
14790         new image instance parameter in various places.
14791
14792         * fns.c (Freplace_list):
14793         fix small typo in doc string.
14794
14795         * lisp.h:
14796         declare enqueue_Xt_dispatch_event.
14797
14798 2000-04-28  Ben Wing  <ben@xemacs.org>
14799
14800         * buffer.c:
14801         * buffer.c (Frecord_buffer):
14802         * buffer.c (syms_of_buffer):
14803         delete record-buffer-hook.
14804
14805         * fns.c:
14806         * fns.c (Freplace_list):
14807         * fns.c (syms_of_fns):
14808         new primitive replace-list.
14809
14810         * frameslots.h:
14811         slot for old buffer-alist.
14812
14813         * lisp.h:
14814         exfun replace-list.
14815
14816         * redisplay.c:
14817         * redisplay.c (redisplay_frame):
14818         * redisplay.c (syms_of_redisplay):
14819         * redisplay.c (vars_of_redisplay):
14820         new hook buffer-list-changed-hook.
14821         call it.
14822
14823 2000-04-27  Ben Wing  <ben@xemacs.org>
14824
14825         * extents.h: extern in_modeline_generation.
14826
14827         * redisplay.c (generate_formatted_string_db): set
14828         in_modeline_generation.
14829
14830         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14831         flags if in modeline generation.  otherwise frame-modified-tick
14832         is ticked far too often.
14833         Declare in_modeline_generation.
14834
14835 2000-04-26  Ben Wing  <ben@xemacs.org>
14836
14837         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14838         option.
14839         (vars_of_emacs): add quick-build as an error-checking option.
14840         A bit kludgy, but there doesn't seem much point in creating
14841         a real var for this.
14842
14843         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14844
14845 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14846
14847         * redisplay.h (struct display_line): Add a new variable,
14848         line_continuation.
14849
14850         * redisplay.c (create_text_block): Set dl->line_continuation if
14851         the line continues.
14852         (create_string_text_block): Ditto.
14853         (regenerate_window_incrementally): Use line_continuation instead
14854         of searching continuation glyph.
14855         (add_margin_runes): Call add_glyph_rune.
14856         (add_glyph_rune): Handle margin glyph.
14857
14858 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14859
14860         * filelock.c (fill_in_lock_file_name):
14861         ANSIfy.
14862         Check for IS_ANY_SEP instead of '/'.
14863         (lock_file_1):
14864         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14865         Never check errno without first seeing that system call failed.
14866         (unlock_file): Add GCPRO.
14867         (Flock_buffer): Fix docstring.
14868         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14869
14870 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14871
14872         * sysdep.c (get_pty_max_bytes):
14873         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14874         strings longer than 252 bytes.
14875
14876         * md5.c: Unconditionally include ANSI header <limits.h>
14877
14878         * glyphs-x.c (convert_EImage_to_XImage):
14879         * lisp-union.h (union Lisp_Object):
14880         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14881
14882 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14883
14884         * filelock.c (current_lock_owner): Remove unused variable o, p.
14885
14886 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14887
14888         * callint.c: Remove multiply defined symbol Qlet
14889         (syms_of_callint): ditto.
14890
14891 2000-04-14  Andy Piper  <andy@xemacs.org>
14892
14893         * general.c (syms_of_general): add last-command, this-command, let
14894         and funcall.
14895
14896         * lisp.h: declare various symbols.
14897
14898         * glyphs.h: declare Qwidget_callback_current_channel;
14899
14900         * glyphs-widget.c (syms_of_glyphs_widget): add
14901         Qgui_callback_current_channel.
14902         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14903
14904         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14905         widget-callback-current-channel when invoking the interactive
14906         arg. Also bind last-command and next-command when invoking the
14907         widget updates.
14908         * gui-x.c (popup_selection_callback): ditto.
14909
14910         * gui.c (get_gui_callback): massage args so that we are always
14911         calling eval. This allows us to add our own variable bindings
14912         outside.
14913
14914         * glyphs-x.c (x_button_instantiate): use
14915         gui_items_to_widget_values since this is GC safe.
14916         (x_progress_gauge_instantiate): ditto.
14917         (x_edit_field_instantiate): ditto.
14918         (x_label_instantiate): ditto.
14919
14920         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14921         (emacs_Xt_event_widget_focus_out): new function
14922         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14923         focus.
14924         (emacs_Xt_event_add_widget_actions): new function. add focus
14925         functions as actions.
14926         (init_event_Xt_late): use it.
14927
14928 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14929
14930         * event-stream.c (Fdispatch_event): Doc fix.
14931
14932 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14933
14934         * postgresql.c: Remove all references to PQsetenv*.
14935
14936         * postgresql.h: Remove references to PGsetenvHandler object.
14937         * lrecord.h (lrecord_type): Ditto.
14938
14939 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14940
14941         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14942         real_heigh and real_width members, and accessor macros for these.
14943
14944         * glyphs-msw.c (init_image_instance_geometry): New function.
14945         (init_image_instance_from_dibitmap): Use it.
14946         (mswindows_resource_instantiate): Use it.
14947         (init_image_instance_from_xbm_inline): Use it.
14948         (mswindows_initialize_image_instance_mask): Use real bitmap
14949         geometry.
14950         (mswindows_create_resized_bitmap): Ditto.
14951         (mswindows_create_resized_mask): Ditto.
14952
14953         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14954         and bitmap to their surface size.
14955
14956 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14957
14958         * process-unix.c (unix_send_process): Guard against process MIA
14959         after Faccept_process_output.
14960
14961 2000-04-11  Ben Wing  <ben@xemacs.org>
14962
14963         * eval.c (unbind_to_hairy): fix brokenness introduced by
14964         nanosecond speed improvements.
14965
14966 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14967
14968         * sunplay.c (init_device): To play sounds correctly, the device
14969         apparently needs to be initialized at least once by XEmacs.  Make
14970         it so.
14971
14972 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14973
14974         * redisplay.c (add_margin_runes): Add text image glyph
14975           handling.
14976
14977 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14978
14979         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14980         gcc is newer than 2.5.
14981
14982 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14983
14984         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14985
14986         * fns.c (size_bit_vector):
14987         * alloc.c (size_vector):
14988         (make_vector_internal):
14989         (make_bit_vector_internal):
14990         (sweep_bit_vectors_1):
14991         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14992
14993 2000-04-06  Andy Piper  <andy@xemacs.org>
14994
14995         * gmalloc.c (malloc): undo previous change.
14996         (malloc): ditto.
14997         (free): ditto.
14998         (realloc): ditto.
14999
15000 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
15001
15002         * line-number.c (buffer_line_number): Revert to former version.
15003
15004 2000-04-06  Andy Piper  <andy@xemacs.org>
15005
15006         * gmalloc.c (malloc): add error checking.
15007         (malloc): ditto.
15008         (free): ditto.
15009         (realloc): ditto.
15010
15011         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
15012         button_item_to_widget_value arg.
15013
15014         * glyphs-x.c (x_button_instantiate): add extra
15015         button_item_to_widget_value arg.
15016         (x_progress_gauge_instantiate): ditto.
15017         (x_edit_field_instantiate): ditto.
15018         (x_label_instantiate): ditto.
15019
15020         * gui-x.c (gui_items_to_widget_values_1): add extra
15021         button_item_to_widget_value arg.
15022         (button_item_to_widget_value): add extra menu_item_p arg.
15023
15024         * gui-x.h: change signature of button_item_to_widget_value.
15025
15026         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
15027         button_item_to_widget_value arg.
15028
15029 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
15030
15031         * buffer.h (struct buffer): auto_save_modified should be long.
15032
15033 2000-04-05  Andy Piper  <andy@xemacs.org>
15034
15035         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
15036         type.
15037         (button_query_geometry): give a little more room so that athena
15038         buttons fit.
15039
15040 2000-04-05  Andy Piper  <andy@xemacs.org>
15041
15042         * faces.c (complex_vars_of_faces): The widget face should inherit
15043         the font of the gui-element face.
15044
15045 2000-04-04  Andy Piper  <andy@xemacs.org>
15046
15047         * glyphs-x.c (x_button_update): new function. unconditionally
15048         update a button's state when the instance is dirty.
15049         (image_instantiator_format_create_glyphs_x): add x_button_update.
15050         (x_widget_instantiate): remove old resize cruft.
15051
15052 2000-04-02  Andy Piper  <andy@xemacs.org>
15053
15054         * frame.c (change_frame_size_1): The introduction of gutters means
15055         that we need to allow 0 as a potential frame dimension.
15056
15057 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15058
15059         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
15060         image glyph if allow_cursor.
15061         (add_hscroll_rune): Don't allow cursor to border glyph.
15062         (create_text_block): Ditto.
15063
15064         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
15065         text not in buffer.
15066         (redisplay_output_layout): Call ensure_face_cachel_complete for
15067         text image glyph.
15068
15069
15070 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15071
15072         * redisplay.c (add_glyph_rune): Adding text image as text runes.
15073
15074         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
15075         not in buffer
15076
15077         * redisplay-tty.c (tty_output_display_block): Delete the routine
15078         for text image glyph
15079         * redisplay-x.c (x_output_display_block): ditto
15080         * redisplay-msw.c (mswindows_output_display_block): ditto
15081
15082 2000-02-02  Mike Alexander  <mta@arbortext.com>
15083
15084         Note: Some of these were committed by accident as part of other
15085         patches.
15086
15087         * regex.c (regex_compile): Avoid compiler warnings.
15088
15089         * ntproc.c (sys_spawnve): Avoid compiler warnings.
15090
15091         * nt.h: Declare term_ntproc correctly.
15092
15093         * nt.c: Remove incorrect declaration of get_home_directory which
15094         is declared correctly in lisp.h.
15095
15096         * keymap.c (get_keyelt): Avoid compiler warnings.
15097         (raw_lookup_key_mapper): Avoid compiler warnings.
15098
15099         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
15100
15101         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
15102
15103         * filemode.c (mode_string): Avoid compiler warnings.
15104
15105         * file-coding.c (Fcoding_system_aliasee): Add return statement to
15106         avoid warning.
15107
15108         * events-mod.h: Undef some things that winuser.h defines differently.
15109
15110         * data.c (Faset): Avoid compiler warnings.
15111
15112         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
15113
15114 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15115
15116         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
15117         Fall through to simple beep on error.
15118         Replace "extern" by real header file.
15119
15120         * linuxplay.c: Use nativesound.h
15121         (play_sound_data): Return error code. Be less verbose on error.
15122
15123         * sunplay.c: Use nativesound.h
15124         (play_sound_data): Return error code. Be less verbose on error.
15125
15126         * ntplay.c: Use nativesound.h
15127         (play_sound_data): Return fake error code
15128
15129         * sgiplay.c: Use nativesound.h
15130         (play_sound_data): Return error code
15131
15132         * hpplay.c: Use nativesound.h, partially implement
15133         new error code. Break compilation until finished.
15134         (play_sound_data): error code.
15135
15136         * nativesound.h (play_sound_file):
15137           (play_sound_data): Prototype in new header.
15138
15139 2000-03-31  Andy Piper  <andy@xemacs.org>
15140
15141         * glyphs-widget.c: (button_query_geometry): new function. Adjust
15142         for toggle and radio buttons.
15143         (image_instantiator_buttons): use it.
15144
15145 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15146
15147         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
15148         (x_update_horizontal_scrollbar_callback): Return if no mirror was
15149         found. Scrollbar event probably belonged to some old config.
15150
15151 2000-03-31  Andy Piper  <andy@xemacs.org>
15152
15153         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
15154         than 1.
15155         (initialize_widget_image_instance): default layout to
15156         LAYOUT_HORIZONTAL rather than 0.
15157         (widget_instantiate): reverse the item list at the end rather than
15158         every iteration.
15159         (layout_layout): re-code for the border text at the front of the
15160         item list rather than at the end.
15161         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
15162         provided by the user.
15163         (widget_query_geometry): comment.
15164
15165 2000-03-30  Andy Piper  <andy@xemacs.org>
15166
15167         * glyphs-widget.c (image_instantiator_layout): allow standard
15168         widget keywords in layouts.
15169
15170         * gutter.c (output_gutter): cope with nil gutter contents.
15171
15172         * frame.c (Fset_frame_properties): add gutter docs.
15173
15174 2000-03-29  Andy Piper  <andy@xemacs.org>
15175
15176         * toolbar-msw.c (TBSTYLE_FLAT): add.
15177         (mswindows_output_toolbar): minor fiddling.
15178
15179 2000-03-29  Andy Piper  <andy@xemacs.org>
15180
15181         * gutter.c (output_gutter): force gutter size recalculation if
15182         what we are trying to display won't fit.
15183         (update_gutter_geometry): new function. A per-gutter version of
15184         update_frame_gutter_geometry.
15185         (update_frame_gutter_geometry): use it.
15186         (redraw_exposed_gutter): add extra debugging output.
15187
15188 2000-03-28  Mike Alexander  <mta@arbortext.com>
15189
15190         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
15191         (pdump_file_unmap): Implement it on Windows
15192         (pdump_file_get): Save alocated handles for pdump_file_unmap
15193
15194 2000-03-28  Andy Piper  <andy@xemacs.org>
15195
15196         * gui.c (get_gui_callback): treat Quit specially.
15197
15198 2000-03-27  Andy Piper  <andy@xemacs.org>
15199
15200         * glyphs.c (image_instantiate): be careful to check in the same
15201         way we assigned.
15202
15203 2000-03-27  Didier Verna  <didier@xemacs.org>
15204
15205         * config.h.in: define the proper SMART_INCLUDE macro.
15206         handle renaming of `foo_h_path' to `foo_h_file'.
15207
15208         * database.c: ditto.
15209
15210         * emacs.c: ditto.
15211
15212         * linuxplay.c: ditto.
15213
15214         * terminfo.c: ditto.
15215
15216         * tooltalk.h: ditto.
15217
15218 2000-03-27  Andy Piper  <andy@xemacs.org>
15219
15220         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15221         gets updated whenever the face might have changed.
15222
15223 2000-03-26  Mike Alexander  <mta@arbortext.com>
15224
15225         * dumper.c (pdump_resource_free): Fix the comment.
15226
15227 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15228
15229         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15230
15231 2000-03-22  Mike Alexander  <mta@arbortext.com>
15232
15233         * dumper.c: Include Windows headers on Windows
15234         (pdump_resource_free): Add a body to the function
15235         (pdump_load): exe_name -> exe_path and add some comments.
15236
15237 2000-03-25  Mike Alexander  <mta@arbortext.com>
15238
15239         * gui.c (copy_gui_item_tree): Return a value in all cases
15240
15241 2000-03-21  Didier Verna  <didier@xemacs.org>
15242
15243         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15244         lwlib/config.h.in.
15245         (SMART_INCLUDE): new macro.
15246         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15247         the proper location.
15248
15249         * postgresql.c: use it.
15250
15251         * inline.c: ditto.
15252
15253 2000-03-24  Andy Piper  <andy@xemacs.org>
15254
15255         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15256         do this.
15257
15258 2000-03-24  Andy Piper  <andy@xemacs.org>
15259
15260         * redisplay-output.c (compare_runes): use image_instance_changed
15261         to detect changes. Do not depend on glyphs_changed, only depend on
15262         dirtiness.
15263          (redisplay_output_layout): add debug messages.
15264         (compare_runes): ditto.
15265
15266         * glyphs.h: declare new functions.
15267         (struct Lisp_Image_Instance): remove percent and associated
15268         accessors.
15269
15270         * gui.h: declare new copying functions.
15271
15272         * gui.c (copy_gui_item_tree): new function.
15273         (copy_gui_item): new function.
15274         (gui_item_id_hash): revert to standard hash.
15275         (gui_item_hash): ditto.
15276         (gui_item_hash_internal): deleted.
15277         (mark_gui_item): mark value.
15278         (gui_item_add_keyval_pair): add value.
15279         (gui_item_init): ditto.
15280         (gui_add_item_keywords_to_plist): ditto.
15281         (gui_item_equal): ditto.
15282         (syms_of_gui): add Q_value.
15283
15284         * glyphs-x.c (x_progress_gauge_update): use pending items and
15285         value for setting the state.
15286         (x_update_widget): don't set items from pending here.
15287
15288         * glyphs-widget.c (update_widget): update items here.
15289         (progress_gauge_set_property): use items for storing value. Put
15290         new value in pending items.
15291
15292         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15293         items for new value. Convert percent -> value.
15294         (mswindows_tab_control_update): don't update items here.
15295
15296         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15297         (update_subwindow): ditto.
15298         (image_instance_changed): new function. Compare hash values and
15299         past and present widget items.
15300         (image_instantiate): We more careful about where we instantiate
15301         things.
15302         (image_instantiate): add error checking.
15303
15304         * gutter.c (syms_of_gutter): use -hook.
15305
15306 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15307
15308         * console-tty.c (Fset_console_tty_input_coding_system): Use
15309         Qkeyboard.
15310         (Fset_console_tty_output_coding_system): Use Qterminal.
15311         (tty_init_console): Use Qkeyboard and Qterminal.
15312
15313 2000-03-21  Ben Wing  <ben@xemacs.org>
15314
15315         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15316         From Mike Alexander <mta@arbortext.com>.
15317
15318 2000-03-21  Ben Wing  <ben@xemacs.org>
15319
15320         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15321         process brokenness.  Proper implementation to come.
15322         * callproc.c:
15323         Rename call-process-internal to old-call-process-internal.
15324         New impl. in process.el.
15325
15326 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15327
15328         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15329
15330 2000-03-20  Andy Piper  <andy@xemacs.org>
15331
15332         * glyphs.c (full_list_hash): make hashes of the same elements in
15333         different orders return different values.
15334
15335 2000-03-20  Martin Buchholz <martin@xemacs.org>
15336
15337         * XEmacs 21.2.32 is released.
15338
15339 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15340
15341         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15342         (DFC_MALLOC_USE_CONVERTED_DATA):
15343         Add aliasing-safe casts to allow use with char* or unsigned char*
15344         lvalues.
15345
15346         * eldap.c (Fldap_open):
15347         (Fldap_search_basic):
15348         (Fldap_add):
15349         (Fldap_modify):
15350         Make C++-compilable.
15351         Make sure GCPRO'ed variables are initialized.
15352         Use temp variables to avoid repeated calls to Flength.
15353
15354 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15355
15356         * sysfile.h:
15357         Make sure PATH_MAX is always defined.
15358         Include limits.h for PATH_MAX.
15359         Deprecate use of MAXPATHLEN.
15360
15361 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15362
15363         * emacs.c: Add reinit_vars_of_fileio.
15364         * symsinit.h: Add reinit_vars_of_fileio.
15365         * fileio.c (reinit_vars_of_fileio): New.
15366         * fileio.c (Fmake_temp_name):
15367         Initialize temp_name random number from microseconds to make
15368         collisions even less likely.  Initialize always at process startup
15369         time.  (make-temp-name) used to return the same file name twice in
15370         a row when PDUMP.
15371         Random stylistic fiddling.
15372         Comment fixes.
15373
15374 2000-03-20  Andy Piper  <andy@xemacs.org>
15375
15376         * glyphs.c (image_instantiate): allow text glyphs to be
15377         instantiated in the minibuffer window.
15378
15379 2000-03-19  Andy Piper  <andy@xemacs.org>
15380
15381         * glyphs.c (image_instance_hash): be careful about which items we
15382         hash on.
15383
15384         * glyphs-widget.c (tab_control_set_property): record into pending
15385         items rather than the actual items.
15386
15387         * glyphs-x.c (x_update_widget): use pending items to update with.
15388
15389         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15390         to update with.
15391
15392         * glyphs.c (mark_image_instance): mark pending items.
15393
15394         * window.c (Fset_window_configuration): record the buffer.
15395         (Fselect_window): totally revert previous change which breaks many
15396         things.
15397
15398 2000-03-18  Andy Piper  <andy@xemacs.org>
15399
15400         * glyphs-msw.c (mswindows_tab_control_update): force selected
15401         item.
15402
15403         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15404         window domain cache, otherwise we get inconsistencies at
15405         startup. There is something fishy at startup which can lead to the
15406         minibuffer being the selected window when the gutter content is
15407         instantiated.
15408
15409         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15410         gcpros.
15411         (parse_gui_item_tree_children): ditto.
15412         (parse_gui_item_tree_item): ditto.
15413
15414         * glyphs.c (Fupdate_widget_instances): return something.
15415
15416 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15417
15418         * window.c (Fselect_window): Undo 2000-03-17 change.
15419
15420 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15421
15422         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15423         against v7.0 libraries.  Insta-coredump city until the postgres
15424         folks fix it.
15425
15426 2000-03-17  Andy Piper  <andy@xemacs.org>
15427
15428         * faces.c (complex_vars_of_faces): don't give the widget face an
15429         inherited background pixmap.
15430
15431         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15432         selected item.
15433
15434         * event-stream.c (Fdispatch_non_command_events): return something.
15435
15436         * gutter.c (output_gutter): use widget face.
15437         (clear_gutter): ditto.
15438
15439         * NEWS: adjust again.
15440
15441         * window.c (Fselect_window): make sure this runs to completion to
15442         avoid oddities with Fset_window_configuration.
15443         (Fcurrent_window_configuration): in general do not save the
15444         minibuffer as the selected window.
15445
15446         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15447
15448 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15449
15450         * emacs.c (Frunning_temacs_p): Revert previous patch.
15451         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15452
15453 2000-03-16  Andy Piper  <andy@xemacs.org>
15454
15455         * glyphs-x.c (x_tab_control_update): if no widget values then
15456         return.
15457
15458         * NEWS: update for new features.
15459
15460         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15461         synthetic event to the native system.
15462         (reinit_vars_of_event_Xt): set force_event_pending to
15463         emacs_Xt_force_event_pending.
15464
15465         * events.h (struct event_stream): add force_event_pending.
15466
15467         * specifier.c (recompute_one_cached_specifier_in_window): add
15468         comment.
15469
15470         * redisplay.c (redisplay_frame): don't call
15471         update_frame_subwindows. Reset subwindow cachels when
15472         subwindows_changed, removing this was an optimization too far.
15473
15474         * redisplay-output.c (compare_runes): reorganize so that we catch
15475         glyph changes when we want them. Set optimize_output when this
15476         would help layouts.
15477         (redisplay_output_layout): remove frame_really_changed, use
15478         optimize_output instead.
15479
15480         * redisplay-msw.c (mswindows_output_display_block): reset
15481         optimize_output after outputting a glyph.
15482         * redisplay-x.c (x_output_display_block): ditto.
15483         * redisplay-tty.c (tty_output_display_block): ditto.
15484
15485         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15486         functions.
15487         (gutter_specs_changed): do specific gutter positions.
15488         (top_gutter_specs_changed): new function. Only update the
15489         specified gutter specs.
15490         (bottom_gutter_specs_changed): ditto.
15491         (left_gutter_specs_changed): ditto.
15492         (right_gutter_specs_changed): ditto.
15493
15494         * gui.c (gui_item_hash_internal): new function, does a real hash.
15495         (gui_item_id_hash): use it.
15496         (gui_item_hash): hash the eval'ed gui_item.
15497
15498         * gui-x.c (popup_selection_callback): send an eval event to call
15499         Fupdate_widget_instances.
15500
15501         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15502         to call Fupdate_widget_instances.
15503
15504         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15505         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15506
15507         * glyphs.c: (update_frame_subwindows): deleted.
15508         (Fupdate_widget_instances): new function for updating the dirty
15509         state of widgets that might have changed.
15510         (syms_of_glyphs): add Qupdate_widget_instances.
15511         (full_list_hash): hash a list completely.
15512         (image_instance_hash): use it for items and properties.
15513
15514         * frame-msw.c (mswindows_size_frame_internal): remove unused
15515         variable.
15516
15517         * faces.h (struct face_cachel): fix comment.
15518
15519         * event-stream.c (Fdispatch_non_command_events): new
15520         function. Process non-command events, forcing an event cycle
15521         beforehand.
15522         (syms_of_event_stream): declare.
15523         (event_stream_force_event_pending): new function. Force an event
15524         on the native event queue so that an event cycle will occur next
15525         time we check.
15526
15527         * event-msw.c:
15528         (struct ntpipe_shove_stream):
15529         (mswindows_enqueue_dispatch_event):
15530         (mswindows_dequeue_dispatch_event):
15531         (mswindows_cancel_dispatch_event):
15532         (mswindows_pump_outstanding_events):
15533         (mswindows_drain_windows_queue):
15534         (mswindows_handle_paint):
15535         (mswindows_wnd_proc):
15536         (mswindows_key_to_emacs_keysym):
15537         (get_process_input_waitable):
15538         (emacs_mswindows_delete_stream_pair): re-indent file.
15539         (mswindows_need_event): do not process further fds if the windows
15540         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15541         fixes the 100% cpu problem.
15542         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15543
15544 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15545
15546         * alloc.h: New.
15547         * dumper.h: New.
15548         * dumper.c: New.
15549
15550         * emacs.c: Moved dump file searching to dumper.c.
15551         (Frunning_temacs_p): Fixed.
15552
15553         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15554         last_lrecord_type_index_assigned.
15555
15556 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15557
15558         * symsinit.h: Added reinit parameter to init_console_stream
15559         declaration.
15560
15561         * lisp.h: Added file parameter to pdump_load declaration.
15562
15563         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15564         support.  Added dump file searching.
15565
15566         * config.h.in: Added EMACS_PROGNAME.
15567
15568         * console-stream.c (init_console_stream): Fix reinitialisation
15569         when running from temacs.
15570
15571         * alloc.c (pdump): Add id support.
15572         (pdump_load): Add file parameter and signature/id support.
15573
15574         * Makefile.in.in: Add full pdump support.
15575
15576 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15577
15578         * postgresql.c: Update documentation to reflect latest code
15579         status.
15580         (print_result): Show tuple counts in printed representation when
15581         appropriate.
15582         (Fpq_put_nbytes): MULE-ize.
15583         (Fpq_get_line_async): Ditto.
15584
15585 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15586
15587         * postgresql.c (Fpq_lo_import): Fix return value.
15588         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15589
15590 2000-03-13  Ben Wing  <ben@xemacs.org>
15591
15592         * alloc.c (pdump_load):
15593         Fix compile warning under mswin.
15594
15595 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15596
15597         * postgresql.c: Mule-ization, bug fixes.
15598         Use PG_CODING to encapsulate coding system name changes.
15599         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15600         (pg-coding-system): Create.
15601
15602         (Fpq_conn_defaults): Mule-ize.
15603         (Fpq_connectdb): Mule-ize & bug fix.
15604         (Fpq_connect_start): Mule-ize.
15605         (Fpq_set_client_encoding): Mule-ize.
15606         (Fpq_finish): Document `DEAD' connection status.
15607         (Fpq_clear): Ditto.
15608         (Fpq_pgconn): Mule-ize.
15609         (Fpq_exec): Mule-ize & bug fix.
15610         (Fpq_send_query): Ditto.
15611         (Fpq_get_result): Ditto.
15612         (Fpq_res_status): Mule-ize.
15613         (Fpq_result_error_message): Mule-ize.
15614         (Fpq_ntuples): fix comments.
15615         (Fpq_fname): Mule-ize.
15616         (Fpq_fnumber): Mule-ize.
15617         (Fpq_ftype): fix comments.
15618         (Fpq_get_value): Mule-ize.
15619         (Fpq_cmd_status): Ditto.
15620         (Fpq_cmd_tuples): Ditto.
15621         (Fpq_oid_value): Ditto.
15622         (Fpq_notifies): Ditto.
15623         (Fpq_lo_import): Ditto.
15624         (Fpq_lo_export): Ditto.
15625         (Fpq_get_line): Ditto.
15626         (Fpq_put_line): Mule-ize and bug fix.
15627         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15628
15629 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15630
15631         * postgresql.c (vars_of_postgresql): Mule-ize.
15632         (Fpq_conn_defaults): Ditto.
15633
15634 2000-03-12  Ben Wing  <ben@xemacs.org>
15635
15636         * alloc.c (Fmake_byte_code):
15637         * alloc.c (debug_string_purity_print):
15638         * alloc.c (pdump_backtrace):
15639         * alloc.c (pdump_get_indirect_count):
15640         * alloc.c (pdump_register_sub):
15641         * alloc.c (pdump_register_object):
15642         * alloc.c (pdump_register_struct):
15643         * alloc.c (pdump_dump_data):
15644         * alloc.c (pdump_reloc_one):
15645         Minor cleanups.
15646
15647         * console-msw.c:
15648         * console-msw.c (GetConsoleHwnd):
15649         * console-msw.c (msw_hide_console):
15650         * console-msw.c (msw_show_console):
15651         * console-msw.c (msw_ensure_console_buffered):
15652         * console-msw.c (msw_output_console_string):
15653         * console-msw.c (console_type_create_mswindows):
15654
15655         a) Added functions to manipulate the console window for use with
15656         shell support.
15657
15658         b) Added support for writing text to the console, which is now
15659         used under Windows when xemacs is not being run non-interactively,
15660         to write text that would otherwise be destined for stdout because
15661         under these circumstances, text written to stdout tends to
15662         disappear and not be seen.
15663
15664         * console-msw.h:
15665         * event-Xt.c:
15666         * event-Xt.c (x_event_to_emacs_event):
15667         * event-Xt.c (describe_event_window):
15668         * events-mod.h (XEMACS_MOD_CONTROL):
15669         * events.c:
15670         * events.c (Fmake_event):
15671         * events.c (character_to_event):
15672         * events.c (event_to_character):
15673         * events.c (format_event_object):
15674         * events.c (Fevent_modifiers):
15675         * events.h:
15676         * events.h (struct key_data):
15677         * events.h (struct button_data):
15678         * events.h (struct misc_user_data):
15679         * frame-x.c (Fcde_start_drag_internal):
15680         * frame-x.c (Foffix_start_drag_internal):
15681         * gpmevent.c (Freceive_gpm_event):
15682         * keymap.c:
15683         * keymap.c (bucky_sym_to_bucky_bit):
15684         * keymap.c (control_meta_superify):
15685         * keymap.c (make_key_description):
15686         * keymap.c (keymap_lookup_directly):
15687         * keymap.c (create_bucky_submap):
15688         * keymap.c (keymap_store):
15689         * keymap.c (define_key_check_and_coerce_keysym):
15690         * keymap.c (define_key_parser):
15691         * keymap.c (define_key_alternate_name):
15692         * keymap.c (Fdefine_key):
15693         * keymap.c (raw_lookup_key_mapper):
15694         * keymap.c (struct map_keymap_unsorted_closure):
15695         * keymap.c (map_keymap_unsorted_mapper):
15696         * keymap.c (map_keymap_sort_predicate):
15697         * keymap.c (map_keymap_sorted):
15698         * keymap.c (accessible_keymaps_mapper_1):
15699         * keymap.c (where_is_recursive_mapper):
15700         * keymap.c (describe_map_mapper):
15701         * keymap.c (describe_map_sort_predicate):
15702         * keymap.c (describe_map):
15703         * keymap.c (complex_vars_of_keymap):
15704         And a number of other files, the key modifier preprocessor
15705         constants that xemacs uses have names that conflict with constants
15706         defined under MS Windows for other purposes, so they were renamed
15707         to begin with the prefix XEMACS_. The variables that hold such
15708         modifiers were changed to consistently be of type int to fix
15709         various compile warnings.
15710
15711         * console.c (complex_vars_of_console):
15712         * device.c:
15713         * device-msw.c:
15714         * device-msw.c (mswindows_finish_init_device):
15715         * device-msw.c (msw_get_workspace_coords):
15716         * device-msw.c (mswindows_device_system_metrics):
15717         and various other files, added support for a new
15718         device property called offset-workspace which returns the position
15719         of the upper left corner of the workspace area and goes along with
15720         the existing size-workspace property.
15721
15722         * dialog-msw.c:
15723         * dialog-msw.c (push_bufbyte_string_as_unicode):
15724         * dialog-msw.c (mswindows_popup_dialog_box):
15725         Added support for XEmacs-style accelerator specifications in
15726         button text.  Note: I didn't add support for this under X Windows,
15727         and somebody needs to do this.
15728
15729         * dialog.c:
15730         * dialog.c (Fpopup_dialog_box):
15731         Documented the support for accelerators that was just mentioned.
15732
15733         editfns.c (get_home_directory): Changed behavior under Windows
15734         when HOME not defined; former behavior was irretrievably broken.
15735
15736         * emacs.c:
15737         * emacs.c (main_1):
15738         * emacs.c (main):
15739         * minibuf.c (clear_echo_area_internal):
15740         * minibuf.c (echo_area_append):
15741         * print.c:
15742         * print.c (std_handle_out_external):
15743         * print.c (std_handle_out_va):
15744         * print.c (fatal):
15745         * print.c (write_string_to_stdio_stream):
15746         * print.c (output_string):
15747         * print.c (debug_print):
15748         * print.c (debug_backtrace):
15749         * print.c (debug_short_backtrace):
15750         Cleaned up the code that prints text to stdout so that this can be
15751         changed to output into a console window instead under MS Windows,
15752         as described above.
15753
15754         * eval.c:
15755         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15756         * eval.c (internal_catch):
15757         * eval.c (unwind_to_catch):
15758         * eval.c (throw_or_bomb_out):
15759         * eval.c (condition_case_1):
15760         * eval.c (signal_1):
15761         * eval.c (check_error_state_sanity):
15762         * eval.c (call_with_suspended_errors_1):
15763         * eval.c (call_with_suspended_errors):
15764         * eval.c (reinit_vars_of_eval):
15765         Added code to catch throw loops and check for a pesky bug that may
15766         be gone now.
15767
15768         * event-msw.c:
15769         * event-msw.c (key_needs_default_processing_p):
15770         * event-msw.c (mswindows_wnd_proc):
15771         * event-msw.c (mswindows_modifier_state):
15772         * event-msw.c (emacs_mswindows_quit_p):
15773         * event-msw.c (vars_of_event_mswindows):
15774         a) Added support for using the alt key to select menu items as is
15775         standard under MS Windows.  This is controlled using the variable
15776         menu-accelerator-enabled, just like under X Windows.  There is an
15777         option on the options menu to turn this support on.  I really
15778         think that it should be on by default under Windows, but I'm not
15779         going to make this change yet.
15780
15781         b)  Added support for dynamic display size changes under Windows.
15782
15783         * event-stream.c:
15784         * event-stream.c (maybe_echo_keys):
15785         * event-stream.c (Fnext_event):
15786         * event-stream.c (command_builder_find_leaf):
15787         * event-stream.c (lookup_command_event):
15788         * event-stream.c (execute_command_event):
15789         * event-stream.c (pre_command_hook):
15790         * event-stream.c (post_command_hook):
15791         * event-stream.c (syms_of_event_stream):
15792         * event-stream.c (vars_of_event_stream):
15793         * event-stream.c (complex_vars_of_event_stream):
15794         * events.h (struct command_builder):
15795
15796         a) Tried to clean up a little bit the horribly written x-specific
15797         accelerator code that crept into this file.  I moved this code
15798         into menubar-x.c where it belongs. I also needed to move the
15799         command builder structure into the file events.h because it is
15800         accessed directly by this accelerator code.  What I didn't do, but
15801         which should be done at some point, is to properly abstract this
15802         code using device methods instead of the kludgy way that it
15803         currently hooks into the event code.
15804
15805         b) Added the lisp variables this-command-properties and
15806         last-command- properties, which should be used to synchronize two
15807         adjacent commands in preference to playing games with the variable
15808         this-command, which is typically what happens.
15809
15810         c) Added some slightly nasty code to hook into the lisp support
15811         for shifted- motion-key selection.  This is actually necessary for
15812         somewhat complicated reasons, which are described in
15813         simple.el. (NB: I think the proper thing would be to have the code
15814         that calls the pre and post command hooks also call out to generic
15815         lisp functions in simple.el, where all built-in stuff could be
15816         added.  I will think about this more.)
15817
15818         * event-unixoid.c (poll_fds_for_input):
15819         * lread.c (readchar):
15820         * redisplay-tty.c (tty_clear_frame):
15821         * redisplay-x.c (x_get_gc):
15822         * signal.c (interrupt_signal):
15823         And a whole bunch of other files: fixed up places that printed
15824         directly to stderr to instead call the function stderr_out so that
15825         the changes I made under Windows work correctly.
15826
15827         * filemode.c (mode_string):
15828         Warning fixes.
15829
15830         * frame-msw.c:
15831         * frame-msw.c (mswindows_size_frame_internal):
15832         Fixed the computation of frame size and position to keep the frame
15833         within the workspace area, rather than within the physical
15834         dimensions of the screen, so that the frame doesn't overlap window
15835         manager decorations, such as the start menu and toolbar, typically
15836         at the bottom of the screen.
15837
15838         * frame.c (vars_of_frame):
15839         Changed the default frame title format under MS Windows to consist
15840         of buffername-XEmacs, which is standard under MS Windows.  I think
15841         it might be a good idea to change this everywhere because I think
15842         it is superior to the current frame title format, but this is the
15843         kind of change that is likely to cause some people to get annoyed,
15844         so I'm not making it.
15845
15846         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15847
15848         * gui-msw.c (mswindows_handle_gui_wm_command):
15849         Fixed compile warnings.
15850
15851         * gui-x.c:
15852         * gui-x.c (strdup_and_add_accel):
15853         * gui-x.c (button_item_to_widget_value):
15854         * gui-x.h:
15855         Added code to automatically put an accelerator onto the beginning
15856         of menu items that don't have one as is now the standard, and is
15857         described more later.  Also fixed things so that the menu item
15858         name can be an evaluated expression, again a new standard.
15859
15860         * gui.c:
15861         * gui.c (gui_item_add_keyval_pair):
15862         * gui.c (make_gui_item_from_keywords_internal):
15863         * gui.c (gui_add_item_keywords_to_plist):
15864         * gui.c (gui_item_accelerator):
15865         * gui.c (gui_name_accelerator):
15866         * gui.c (gui_item_included_p):
15867         * gui.c (gui_item_display_flush_left):
15868         * gui.c (gui_item_display_flush_right):
15869         * gui.c (parse_gui_item_tree_item):
15870         * gui.c (parse_gui_item_tree_children):
15871         * gui.c (parse_gui_item_tree_list):
15872         Mule-ized.  Cleanup.  GCPRO addition.
15873
15874         * line-number.c (buffer_line_number):
15875         * lisp.h:
15876         * lisp.h (EMACS_INT_MAX):
15877         Added the manifest constant EMACS_INT_MIN corresponding to the
15878         existing constant EMACS_INT_MAX.  This is partially to fix compile
15879         warnings under Windows, and partly for cleanliness.
15880
15881         * menubar-msw.c:
15882         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15883         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15884         * menubar-msw.c (displayable_menu_item):
15885         * menubar-msw.c (populate_menu_add_item):
15886         * menubar-msw.c (populate_or_checksum_helper):
15887         * menubar-msw.c (populate_menu):
15888         * menubar-msw.c (update_frame_menubar_maybe):
15889         * menubar-msw.c (prune_menubar):
15890         * menubar-msw.c (msw_char_is_accelerator):
15891         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15892         * menubar-msw.c (mswindows_handle_wm_command):
15893         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15894         * menubar-msw.c (mswindows_handle_wm_initmenu):
15895         * menubar-msw.c (mswindows_update_frame_menubars):
15896         * menubar-msw.c (mswindows_free_frame_menubars):
15897         * menubar-msw.c (mswindows_popup_menu):
15898         Fixed a bug in handling accelerators where an extra character
15899         would be displayed in the menu item.  Also generalized the
15900         function displayable_menu_item because it is now used by the
15901         dialog box code as well.  And finally, added code in the functions
15902         that create the menubar to extract a list of accelerators for the
15903         top level menubar, which is used in the event code to determine
15904         whether a particular alt-key combination should be used to invoke
15905         a menu item, or should be passed through to access the standard
15906         XEmacs keymap binding for this key combination.
15907
15908         Much needed GCPROing.
15909
15910         * menubar-x.c:
15911         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15912         * menubar-x.c (menu_item_descriptor_to_widget_value):
15913         * menubar-x.c (restore_in_menu_callback):
15914         * menubar-x.c (x_popup_menu):
15915         * menubar-x.c (menu_move_up):
15916         * menubar-x.c (menu_move_down):
15917         * menubar-x.c (menu_move_left):
15918         * menubar-x.c (menu_move_right):
15919         * menubar-x.c (menu_select_item):
15920         * menubar-x.c (command_builder_operate_menu_accelerator):
15921         * menubar-x.c (menu_accelerator_junk_on_error):
15922         * menubar-x.c (command_builder_find_menu_accelerator):
15923         * menubar-x.c (Faccelerate_menu):
15924         * menubar.h:
15925         Moved a whole bunch of code here that was previously in
15926         event-stream.c as described above.  There is also code connected
15927         to the new standard of adding an accelerator to the beginning of
15928         menu items that don't have one as described above and below.
15929
15930         * menubar.c:
15931         * menubar.c (menu_parse_submenu_keywords):
15932         * menubar.c (Fmenu_find_real_submenu):
15933         * menubar.c (Fnormalize_menu_item_name):
15934         * menubar.c (syms_of_menubar):
15935         * menubar.c (vars_of_menubar):
15936         * menubar.c (complex_vars_of_menubar):
15937
15938         a) Cleaned up a bunch of documentation and improved it.
15939
15940         b) XEmacs now automatically adds an accelerator onto the beginning
15941         of any menu items that don't have one.  I did this because there
15942         will inevitably be some menu items on the main menubar that don't
15943         have accelerators on them because the package that adds that
15944         particular menu item hasn't yet been fixed up to have accelerators
15945         in them and it looked rather strange to have some items with and
15946         some items without accelerators, especially since even in items
15947         without accelerators, you can, at least under windows, still
15948         access the item through an accelerator corresponding to the first
15949         character in the item's name.  If people don't like this behavior,
15950         I can add a variable to turn it off optionally, but I'm not sure
15951         this is a good idea because we really do need to have accelerators
15952         on all of the menu items, and if a package doesn't like the
15953         accelerators being put on the first character, then it should put
15954         the accelerators where they belong.
15955
15956         c) I made a behavior change, which is that the descriptor that
15957         specifies the text of the menu item, which formerly was just a
15958         string, can now also be an evaluated expression.  This makes this
15959         descriptor parallel with all of the others, which could also be
15960         evaluated expressions.  This also obviates the need for the
15961         keyword :label, which was previously listed in the documentation
15962         as unimplemented, and which was for the same purpose.
15963
15964         d) GCPROing.
15965
15966         * ntproc.c:
15967         * ntproc.c (new_child):
15968         * ntproc.c (sys_spawnve):
15969         * ntproc.c (find_child_console):
15970         * ntproc.c (sys_kill):
15971         Fixed compile warnings.  By the way, this file should really go
15972         away entirely, and this will happen as soon as Kirill makes his
15973         final round of process cleanups, which affect the function
15974         call-process.
15975
15976         * process-nt.c:
15977         * process-nt.c (struct nt_process_data):
15978         * process-nt.c (find_process_from_pid):
15979         * process-nt.c (send_signal_the_nt_way):
15980         * process-nt.c (enable_child_signals):
15981         * process-nt.c (find_child_console):
15982         * process-nt.c (send_signal_the_95_way):
15983         * process-nt.c (nt_finalize_process_data):
15984         * process-nt.c (ensure_console_window_exists):
15985         * process-nt.c (nt_create_process):
15986         * process-nt.c (nt_kill_child_process):
15987         * process-nt.c (nt_kill_process_by_pid):
15988         * process-nt.c (nt_open_network_stream):
15989         * process-nt.c (vars_of_process_nt):
15990         Copied over code from Emacs 20.5 to correctly send signals to sub-
15991         processes under Windows 95.  Also added code to automatically
15992         create and hide console window when a sub-process is created under
15993         Windows 95, which obviates the need for the separate runemacs.exe
15994         executable, and finally implemented some variables that were
15995         implemented in Emacs 20.5, but previously not in XEmacs.  These
15996         include mswindows- start-process-share-console and
15997         mswindows-start-process-inherit-error-mode. (Both of these only
15998         apply to Windows 95.)
15999
16000         * regex.c (regex_compile): Fixed a compile warning.
16001
16002         * select-msw.c:
16003         * select-msw.c (mswindows_own_selection):
16004         * select-msw.c (mswindows_get_foreign_selection):
16005         * select-msw.c (mswindows_disown_selection):
16006         * select-msw.c (console_type_create_select_mswindows):
16007         * select-msw.c (syms_of_select_mswindows):
16008         Cleaned up the file and implemented the device method
16009         selection_exists_p, which had accidentally been left out.  Also
16010         removed four lisp functions that were remnants from before the
16011         time when the selection code was properly device abstracted.
16012         These functions are no longer needed because there are generic
16013         equivalents, and because they were added recently and don't exist
16014         in FSF Emacs, I don't think there's any problem with just deleting
16015         them.
16016
16017         * sysdep.c:
16018         * sysdep.c (sys_subshell):
16019         Fixed a compile warning, although in this case there's probably
16020         something wrong with this code, and it ought to be looked into
16021         more thoroughly by somebody who understands it.
16022
16023         * window.c:
16024         * window.c (Fwindow_text_area_height):
16025         * window.c (Fwindow_width):
16026         * window.c (Fwindow_full_width):
16027         * window.c (Fwindow_pixel_width):
16028         * window.c (debug_print_window):
16029         * window.c (syms_of_window):
16030         Added functions window-text-area-height and window-full-width,
16031         which are functions for returning various width and height
16032         characteristics of a window. (One of these functions is necessary
16033         for making the file dialog box work correctly, and the other one
16034         was added for completeness.)  Also added a table to the
16035         documentation for window-height which describes the entire scheme
16036         for accessing width and height characteristics of a window.
16037
16038 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16039
16040         * nt.c (fstat): Added a comment for another problem with
16041         non-encapsulated [f]stat(), reported by Adrian Aichner
16042         <aichner@ecf.teradyne.com>.
16043
16044 2000-03-11  Andy Piper  <andy@xemacs.org>
16045
16046         * window.c (make_dummy_parent): initialize subwindow instance
16047         cache.
16048         (Fset_window_configuration): zero extent_modiff.
16049
16050 2000-03-10  Andy Piper  <andy@xemacs.org>
16051
16052         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
16053         more changes can be triggered.
16054         (Fredisplay_frame): ditto.
16055         (Fredraw_device): ditto.
16056         (Fredisplay_device): ditto.
16057         (redisplay_frame): make non-static.
16058         (redisplay_frame): call update_frame_gutter_geometry outside of
16059         display proper.
16060
16061         * gutter.h: declare update_frame_gutter_geometry.
16062
16063         * redisplay.h: declare redisplay_frame.
16064
16065         * gutter.c (update_frame_gutter_geometry): move geometry changes
16066         in update_frame_gutters here. Geometry changes can only occur
16067         outside of redisplay.
16068         (update_frame_gutters): remove geometry change code.
16069         (Fredisplay_gutter_area): make sure that we are in display when we
16070         update and that we have flushed any size changes.
16071
16072 2000-03-11  Andy Piper  <andy@xemacs.org>
16073
16074         * alloc.c (pdump_dump_data): remove i & count shadows.
16075
16076 2000-02-27  Mike Alexander  <mta@arbortext.com>
16077
16078         * sysdep.h: Declare pdump_read_file
16079
16080         * sysdep.c (pdump_read_file): New function
16081
16082         * alloc.c (pdump_load): Call pdump_read_file to get the portable
16083         dump data
16084
16085 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
16086
16087         * lrecord.h: add `lrecord_type_pgsetenv'.
16088
16089 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
16090
16091         * symsinit.h: declare (vars|syms)_of* functions.
16092         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
16093
16094 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
16095
16096         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
16097
16098         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
16099         GCCs.
16100
16101         * emacs.c (main_1): Call postgres initialization code.
16102
16103         * postgresql.h: New file.  PostgreSQL RDBMS support.
16104         * postgresql.c: New file.
16105
16106 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
16107
16108         * redisplay-output.c (redisplay_output_display_block): Disable
16109         redundant code.
16110
16111 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16112
16113         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
16114         (Fcanna_henkan_next): Ditto.
16115         (Fcanna_bunsetu_henkou): Ditto.
16116         (Fcanna_henkan_kakutei): Ditto.
16117         (Fcanna_henkan_end): Ditto.
16118         (Fcanna_henkan_quit): Ditto.
16119         (Fcanna_henkan_next): Set retun value correctly.
16120         (c2mu): Use unsigned char instead of signed char.
16121
16122 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16123
16124         * emacs.c (main_1): Always call syms_of_gui.
16125         * inline.c: include gui.h
16126
16127 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16128
16129         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
16130         converted to Lisp_Object.
16131         (Qtop_bottom): New variable.
16132         (syms_of_redisplay): Initialize it.
16133         * redisplay.h (Vvisible_bell): Ditto.
16134         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
16135         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
16136         only flash top and bottom.
16137
16138 2000-03-08  Andy Piper  <andy@xemacs.org>
16139
16140         * buffer.c (Frename_buffer): record new buffer name the right way.
16141
16142 2000-03-08  Andy Piper  <andy@xemacs.org>
16143
16144         * glyphs.c (update_subwindow): increase hash depth so that widget
16145         items get picked up properly.
16146
16147         * redisplay-output.c (compare_runes): increase hash depth so that
16148         widget items get picked up properly.
16149
16150 2000-03-08  Andy Piper  <andy@xemacs.org>
16151
16152         * gutter.c (output_gutter): add some debug.
16153
16154         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
16155         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
16156         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
16157
16158         * redisplay-output.c (compare_runes): use display_hash to
16159         determine if glyphs really are not the same.
16160
16161         * glyphs.c (update_subwindow): check display_hash to see if
16162         anything really needs to be updated. If not then do
16163         nothing. Record the display_hash after updating.
16164         (image_instance_equal): compare the image_instance face also.
16165
16166 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
16167
16168         * redisplay.h: Fix comment style.
16169
16170 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16171
16172         * consle-msw.h (struct mswindows_frame):
16173         Added new member paint_pending to indicate whether a WM_PAINT
16174         magic event has been queued for this frame.
16175
16176         * event-msw.c (mswindows_drain_windows_queue):
16177         Don't queue a WM_PAINT magic event if one is already queued.
16178         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
16179
16180         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
16181
16182 2000-03-07  Didier Verna  <didier@xemacs.org>
16183
16184         * dired.c: #include `regex.h' after `sysfile.h'.
16185
16186 2000-03-06  Martin Buchholz  <martin@xemacs.org>
16187
16188         * sound.c (init_nas_sound): Fix compiler warning.
16189
16190         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
16191         (FREE_STRUCT_P):
16192         (MARK_STRUCT_AS_FREE):
16193         (MARK_STRUCT_AS_NOT_FREE):
16194         Make `gcc -fstrict-aliasing' work properly.
16195
16196 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16197
16198         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16199         (mswindows_delete_device): Call CoUnnitialize().
16200
16201         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16202
16203 2000-02-25    <CraigL@DyCon.com>
16204
16205         * process-nt.c: MinGW now has <shellapi.h>, but still needs
16206         <errno.h>.
16207
16208         * sysdep.c: This extern declaration for environ prevents MinGW
16209         from finding the variable in CRTDLL.DLL.
16210
16211         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16212         windows headers.
16213         (SHGFI_EXETYPE): ..
16214         (WM_MOUSEWHEEL): ..
16215         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16216         definitions.
16217         (MMRESULT): Removed, now defined in cygwin's windows headers.
16218         (TIMECAPS): ..
16219         (uid_t,gid_t,pid_t,ssize_t): ..
16220         (_timeb): Removed, MinGW defines both _timeb and timeb.
16221         (HAVE_H_ERRNO): Added.
16222         (HAVE_TZNAME): Added, configure is not detecting this.
16223
16224 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16225
16226         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16227         * syntax.c (syntax_match): Use it.
16228
16229         * cmds.c: Import auto-fill-chars from FSF Emacs.
16230         (Vauto_fill_chars): New variables.
16231         (internal_self_insert): Check Vauto_fill_chars.
16232         (vars_of_cmds):
16233         Declare auto-fill-chars as a Lisp variable and initialize it.
16234
16235 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16236
16237         * fileio.c (Fmake_symbolic_link):
16238         (Ffile_symlink_p):
16239         Run handlers even if local machine doesn't have symlinks.
16240
16241 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16242
16243         * event-msw.c (mswindows_drain_windows_queue):
16244         Don't generate paint magic events for non-XEmacs frames.
16245
16246 2000-03-05  Andy Piper  <andy@xemacs.org>
16247
16248         * redisplay.c (redisplay_frame): generate_displayable_area and
16249         friends assumes that we are not in GC, we therefore have to make
16250         sure that this doesn't happen.
16251
16252         * gutter.c (calculate_gutter_size): generate_displayable_area
16253         assumes that we are not in GC, we therefore have to make sure that
16254         this doesn't happen.
16255
16256 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16257
16258         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16259
16260 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16261
16262         * redisplay.c (regenerate_window): Make sure we set a sane value
16263         for end_pos even if we jump out of the loop.
16264         (regenerate_window): Answer Ben's question :-).
16265         (start_end_of_last_line): Add may_error argument.
16266         (start_of_last_line):
16267         (end_of_last_line): Pass may_error = 0.
16268         (end_of_last_line_may_error): New function.
16269         (pixel_to_glyph_translation): Use it, so we don't crash in
16270         event_to_glyph.
16271
16272 2000-03-04  Andy Piper  <andy@xemacs.org>
16273
16274         * window.h (struct window): add gutter_extent_modiff.
16275
16276         * window.c (allocate_window): zero out gutter_extent_modiff.
16277
16278         * redisplay.h: declare sync_display_line_structs.
16279
16280         * redisplay.c (add_glyph_rune): add a better comment.
16281
16282         * redisplay-output.c (sync_display_line_structs): made non-static.
16283         (compare_runes): remove unneccesary glyph cachel access.
16284
16285         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16286
16287         * gutter.c (output_gutter): don't output the gutter if extent
16288         changes only involve extents in buffers. use 4 sets of display
16289         lines.
16290         (gutter_extent_signal_changed_region_maybe): new function. Mark
16291         extents in gutters as changed.
16292         (update_frame_gutters): use 4 sets of display lines.
16293         (reset_gutter_display_lines): ditto.
16294         (free_frame_gutters): ditto.
16295         (redraw_exposed_gutter): force output of gutters.
16296
16297         * frame.h (struct frame): add 4 sets of gutter display lines.
16298
16299         * extents.c: (extent_changed_for_redisplay): signal changes to
16300         extents in strings in the gutter as well as extents in buffers.
16301
16302 2000-03-02  Andy Piper  <andy@xemacs.org>
16303
16304         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16305
16306         * frame.c (Fmake_frame): make sure the gutters get initialized
16307         after the frame is visible.
16308         (set_frame_selected_window): re-arrange compilation macros a
16309         little.
16310         (change_frame_size_1): mark gutters changed.
16311
16312         * device.c (Fset_device_class): mark gutters changed.
16313
16314 2000-03-01  Andy Piper  <andy@xemacs.org>
16315
16316         * window.c (window_top_frame_gutter_height): deleted.
16317         (window_bottom_frame_gutter_height): ditto.
16318         (window_left_frame_gutter_height): ditto.
16319         (window_right_frame_gutter_height): ditto.
16320         (window_top_gutter_height): don't use them.
16321         (window_bottom_gutter_height): ditto.
16322         (window_left_gutter_width): ditto.
16323         (window_right_gutter_width): ditto.
16324         (Fsplit_window): ditto.
16325         (Fwindow_pixel_edges): don't use border dimensions here.
16326
16327         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16328         (update_scrollbar_instance): ditto.
16329
16330         * redisplay.c (generate_modeline): don't take gutters into account.
16331         (generate_modeline): ditto.
16332         (redisplay_frame): small gutter display optimization.
16333
16334         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16335
16336         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16337         gutters into account.
16338
16339         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16340         for window position and type.
16341
16342         * gutter.c (get_gutter_coords): fix for frame gutters.
16343         (update_frame_gutters): update frame geometry if the gutters have
16344         changed.
16345         (init_frame_gutters): record current gutter geometries.
16346
16347         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16348         var.
16349         (mswindows_widget_instantiate): ditto.
16350
16351         * frame.h (struct frame): add current_gutter_bounds.
16352
16353         * frame.c (change_frame_size_1): position window and minibuffer
16354         appropriately taking into account the frame gutters.
16355
16356         * frame-x.c: (x_initialize_frame_size): take into account the
16357         frame gutters.
16358
16359 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16360
16361         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16362
16363 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16364
16365         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16366
16367 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16368
16369         * file-coding.c (reset_decoding_stream): Clear previous
16370         detection state when autodetect.
16371
16372 2000-02-29  Didier Verna  <didier@xemacs.org>
16373
16374         * extents.c (set_extent_glyph_1): don't require extents to be
16375         attached.
16376
16377 2000-02-27  Andy Piper  <andy@xemacs.org>
16378
16379         * gutter.c (Fset_default_gutter_position): don't default left and
16380         right gutter visibility to t.
16381         (Fset_default_gutter_position): run
16382         default-gutter-position-changed-hook.
16383         (syms_of_gutter): add default-gutter-position-changed-hook.
16384
16385 2000-02-26  Andy Piper  <andy@xemacs.org>
16386
16387         * specifier.c (Fmake_specifier): add gutter references.
16388
16389         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16390
16391         * lisp.h: declare Fvalid_plist_p.
16392
16393         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16394         as changed.
16395         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16396         well as its visibility so that it gets reconstructed.
16397         (construct_window_gutter_spec): new function. Construct a string
16398         to be displayed in the gutter from a plist of strings. Take care
16399         to only use elements that are declared as visible.
16400         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16401         WINDOW_GUTTER.
16402         (gutter_validate): allow plists of strings in the specifier.
16403         (gutter_specs_changed): construct the real_gutter from the gutter
16404         specs using construct_window_gutter_spec.
16405         (gutter_visible_validate): gutter-visible is a new specifier type.
16406         (Fgutter_visible_specifier_p): new function for the new specifier.
16407         (syms_of_gutter): declare gutter-visible and
16408         Fgutter_visible_specifier_p.
16409         (specifier_type_create_gutter): intitalize new gutter-visible
16410         specifier.
16411         (reinit_specifier_type_create_gutter): ditto.
16412         (specifier_vars_of_gutter): use new specifier type for gutter
16413         visibility.
16414         (init_frame_gutters): construct real_gutter correctly.
16415         (Fgutter_specifier_p): beef up documentation.
16416         (Fgutter_size_specifier_p): ditto.
16417
16418         * winslots.h: add real_gutter slots.
16419
16420 2000-02-25  Andy Piper  <andy@xemacs.org>
16421
16422         * device-msw.c: Be kind to older cygwin versions. From Raymond
16423         Toy <toy@rtp.ericsson.se>.
16424
16425         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16426         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16427
16428 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16429
16430         * elhash.c (MARK_OBJ): Practice macro hygiene.
16431
16432 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16433
16434         * miscplay.c: s/__inline__/inline/g;
16435         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16436         (get_device_compdc): INLINE ==> static inline
16437         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16438         find -name '*.h' | \
16439         xargs global-replace \
16440         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16441
16442 2000-02-25  Andy Piper  <andy@xemacs.org>
16443
16444         * window.c (window_top_frame_gutter_height): new function.
16445         (window_top_window_gutter_height): ditto.
16446         (window_top_gutter_height): use them.
16447         (window_bottom_frame_gutter_height): new function.
16448         (window_bottom_window_gutter_height): ditto.
16449         (window_bottom_gutter_height): use them.
16450         (window_left_window_gutter_width): new function.
16451         (window_left_frame_gutter_width): ditto.
16452         (window_left_gutter_width): use them.
16453         (window_right_window_gutter_width): new function.
16454         (window_right_frame_gutter_width): ditto.
16455         (window_right_gutter_width): use them.
16456         (window_pixel_height): new function. calulate window pixel height
16457         with frame gutter involvement.
16458         (Fsplit_window): calculate new sizes taking frame gutters into
16459         account.
16460         (window_char_height_to_pixel_height): don't include frame gutters.
16461         (window_char_height): use window_pixel_height.
16462         (window_pixheight): rename from window_pixel_height.
16463         (change_window_height): use it.
16464         (window_pixel_height_to_char_height): don't include frame gutters.
16465         (window_char_width_to_pixel_width): ditto.
16466
16467 2000-02-25  Andy Piper  <andy@xemacs.org>
16468
16469         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16470         if it is.
16471
16472 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16473
16474         * alloc.c (staticpro):
16475         (staticpro_nodump):
16476         (dumpstruct):
16477         (dumpopaque):
16478         (pdump_wire):
16479         (pdump_wire_list):
16480         (compact_string_chars):
16481         (pdump_dump_wired):
16482         Convert:  if (foo) abort();  ==>  assert (! foo);
16483
16484         * eldap.c (Fldap_search_basic):
16485         (Fldap_add):
16486         (Fldap_modify):
16487         (Fldap_delete):
16488         Fix compiler warnings, and possible crashes if (random) return
16489         value were to be used.
16490
16491 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16492
16493         * device-msw.c: Workaround ResetDC failure.
16494
16495         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16496         applying a devmode.
16497
16498         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16499         (mswindows_text_width): Do not start printer page.
16500
16501         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16502
16503         * glyphs-msw.c: Added image methods to msprinter console and
16504         msprinter-specific image instantiation.
16505
16506 2000-02-20  Mike Alexander  <mta@arbortext.com>
16507
16508         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16509         to avoid crashes when selection-sets-clipboard is on
16510         (mswindows_own_selection): ditto
16511
16512 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16513
16514         * glyphs-msw.c:
16515         * redisplay-msw.c (get_frame_dc):
16516         (get_frame_compdc):
16517         * console-msw.h:
16518         * device-msw.c (mswindows_init_device):
16519         (mswindows_delete_device):
16520         (msprinter_init_device):
16521         (msprinter_delete_device):
16522         * frame-msw.c (mswindows_init_frame_1):
16523         (mswindows_delete_frame):
16524         (msprinter_init_frame_3):
16525         (msprinter_delete_frame): Move compatible DC to device object from
16526         frame object, for both mswindows and msprinter. Only one at a time
16527         is needed, it is a real waste to have one per frame!
16528
16529 2000-02-23  Andy Piper  <andy@xemacs.org>
16530
16531         * glyphs.c: add dynamic width and height elements.
16532         (image_instance_equal): ditto.
16533
16534         * glyphs-widget.c (widget_query_geometry): calculate width and
16535         height dynamically if required.
16536         (initialize_widget_image_instance): initialize dynamic dimensions.
16537         (widget_instantiate): pick-up dynamic dimensions.
16538
16539         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16540         dynamic determination. Add appropriate macros.
16541
16542         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16543         dimensions safe.
16544         (WINDOW_GUTTER_SIZE): ditto.
16545         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16546
16547         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16548         inline.
16549         (get_frame_dc): ditto.
16550
16551         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16552         here.
16553
16554 2000-02-23  Martin Buchholz <martin@xemacs.org>
16555
16556         * XEmacs 21.2.31 is released.
16557
16558 2000-02-22  Ben Wing <ben@xemacs.org>
16559
16560         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16561
16562 2000-02-22  Andy Piper  <andy@xemacs.org>
16563
16564         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16565
16566 2000-02-21  Mike Sperber <mike@xemacs.org>
16567
16568         * .dbxrc:
16569         * .gdbinit:
16570         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16571         variables.
16572
16573 2000-02-21  Mike Sperber <mike@xemacs.org>
16574
16575         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16576
16577 2000-02-21  Martin Buchholz <martin@xemacs.org>
16578
16579         * XEmacs 21.2.30 is released.
16580
16581 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16582
16583         Performance hacking.
16584         * *.c (syms_of_*):
16585         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16586         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16587         * emacs.c (main_1):
16588         * lisp.h (DEFUN):
16589         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16590         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16591         * symeval.h (DEFVAR_SYMVAL_FWD):
16592         * symbols.c (guts_of_unbound_marker):
16593         Make all c_readonly objects also lisp_readonly and marked for life.
16594         * lrecord.h (struct lrecord_implementation):
16595         Document flags better.
16596         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16597         * lrecord.h (DECLARE_LRECORD):
16598         * lrecord.h (XSETRECORD):
16599         * lrecord.h (RECORDP):
16600         * lrecord.h (RECORD_TYPEP):
16601         * lrecord.h (RECORD_MARKER): New.
16602         * lrecord.h (error_check_*):
16603         * lrecord.h (CONCHECK_NONRECORD):
16604         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16605         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16606         * lrecord.h (set_lheader_implementation):
16607         * lrecord.h (enum lrecord_type): New.
16608         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16609         * alloc.c (disksave_object_finalization_1):
16610         * alloc.c (mark_object):
16611         * alloc.c (lrecord_type_index):
16612         * alloc.c (tick_lcrecord_stats):
16613         * alloc.c (Fgarbage_collect):
16614         * alloc.c (init_alloc_once_early):
16615         * alloc.c (pdump_load):
16616         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16617         * alloc.c (lrecord_type_index): Delete.
16618         Make lisp object type indexes be constant.
16619           Makes (byte-compile) 5% faster.
16620         Put all marker functions into their own array.
16621           Makes (garbage-collect) 5% faster.
16622         Optimize SYMBOL_VALUE_MAGIC_P.
16623           Makes (byte-compile) 2-3% faster.
16624         * config.h.in (gc_checking_assert): New.
16625         * alloc.c: Use gc_checking_assert().
16626         * .dbxrc: Make compatible with new object type implementation.
16627         * .gdbinit: Make compatible with new object type implementation.
16628         * alloc.c: Delete all symbols defined only for debugging, such as
16629         Lisp_Type_Vector and lrecord_charset.
16630
16631 2000-02-21  Andy Piper  <andy@xemacs.org>
16632
16633         * gui-msw.c (Fmswindows_shell_execute): fix file location
16634         problems.
16635
16636         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16637         unshowing so that set_window_buffer doesn't undo
16638         kill_buffer_hook's hard work.
16639
16640         * glyphs-widget.c (tab_control_query_geometry): don't count the
16641         first item when calculating geometry.
16642
16643         * glyphs.c (map_subwindow): remove redundant code.
16644         (update_frame_subwindows): be more circumspect about when to
16645         update subwindows.
16646
16647         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16648         when items haven't changed. Update faces if faces have changed as
16649         well as just the widget face.
16650         (x_tab_control_update): Update faces if faces have changed as well
16651         as just the widget face.
16652
16653 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16654
16655         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16656         registration.
16657         (build_syscolor_string): Use mswindows_color_to_string to try to
16658         get a named color.
16659         (mswindows_device_system_metrics): Reverse the foreground and
16660         background colors so that they match the documentation.
16661
16662         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16663         they match the default Windows palette.
16664         (mswindows_color_to_string): New function.
16665
16666 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16667
16668         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16669
16670 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16671
16672         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16673         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16674
16675         * symbols.c (init_symbols_once_early): Removed obsolete
16676         DATA_SEG_BITS related kludge.
16677         (defvar_magic): Ditto.
16678
16679         * malloc.c: Removed obsolete DATA_SEG_BITS
16680         * ralloc.c: Ditto.
16681         * mem-limits.h: Ditto.
16682
16683         * Makefile.in.in: Removed obsolete HAVE_SHM
16684         * emacs.c: Ditto.
16685
16686 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16687
16688         *  device-msw.c (mswindows_delete_device): Free DDE string
16689         handles.
16690
16691 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16692
16693         * keymap.c (get_keyelt):
16694         * unexnt.c (unexec):
16695         * vm-limit.c (memory_warnings):
16696         * ntheap.c (recreate_heap):
16697         * ntheap.h (UNINIT_PTR):
16698         * select-msw.c (Fmswindows_get_clipboard):
16699         (Fmswindows_set_clipboard):
16700         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16701         * objects-msw.c:
16702         * menubar-msw.c (displayable_menu_item):
16703         * glyphs-msw.c:
16704         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16705         * sysdep.c (sys_subshell):
16706         * process-nt.c (nt_create_process):
16707         * nt.c (normalize_filename):
16708         (dostounix_filename):
16709         (unixtodos_filename):
16710         * ntproc.c (win32_executable_type):
16711         * ntplay.c (play_sound_data_1):
16712         (play_sound_file):
16713         * editfns.c (get_home_directory):
16714         * event-msw.c (struct winsock_stream):
16715         (mswindows_dde_callback):
16716         * device-msw.c (msprinter_init_device):
16717         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16718
16719         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16720         mswindows_clear_toolbar were swapped!
16721
16722         * objects-msw.c:(colormap_t):
16723         (fontmap_t):
16724         * emacs.c (struct standard_args): Fixed const jumble.
16725
16726         * glyphs-widget.c (update_widget): Fixed comparison notation.
16727
16728         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16729
16730         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16731         __declspec(noreturn) syntax.
16732
16733 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16734
16735         * eldap.c (Fldap_open):
16736         (Fldap_search_basic):
16737         (Fldap_add):
16738         (Fldap_modify):
16739         Use new coding system conversion macros.
16740
16741 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16742
16743         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16744
16745 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16746
16747         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16748         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16749
16750         * eldap.c (Qadd, Qreplace): New constant symbols
16751         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16752         interruptions by XEmacs signals
16753         Remove unnecessary calls to slow_down_interrupts and
16754         speed_up_interrupts
16755         (Fldap_search_basic): Renamed from Fldap_search_internal
16756         Added new optional parameter VERBOSE that triggers the
16757         display of progress messages
16758         Remove unnecessary calls to slow_down_interrupts and
16759         speed_up_interrupts
16760         LDAP result code analysis rewritten
16761         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16762         (syms_of_eldap): Define the new symbols and functions
16763
16764
16765 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16766
16767         * realpath.c: Determine PATH_MAX maximally portably.
16768
16769         * insdel.c (bytecount_to_charcount): Optimize.
16770         The function used to be optimized for entirely ASCII sequences.
16771         Now it is optimized for successive characters from the same
16772         charset.  This also wins big for _mostly_ ASCII sequences.
16773
16774         * fileio.c (Ffile_truename): convert return from realpath() using
16775         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16776         - Rewrite GCPROing slightly.
16777
16778         * sysdep.c (sys_open): Do filename conversion, like all other
16779         sys_* functions.  Fixes bug:
16780         (let ((file-name-coding-system 'iso-8859-2))
16781            (write-region x y latin2-name))
16782         ==> writes filename using internal encoding.
16783
16784 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16785
16786         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16787         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16788         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16789         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16790         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16791         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16792         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16793         (CONST_IF_NOT_DEBUG): Delete.
16794         * alloc.c (this_one_is_unmarkable): Delete.
16795         (mark_object): Don't check for this_one_is_unmarkable. Use the
16796         c_readonly flag instead.
16797         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16798
16799 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16800
16801         * event-msw.c (mswindows_drain_windows_queue):
16802         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16803         away redundant repaint events.
16804
16805 2000-02-17  Andy Piper  <andy@xemacs.org>
16806
16807         * redisplay.h: declare mark_redisplay_structs.
16808
16809         * redisplay.c (redisplay_window):
16810         (redisplay_frame): don't check subwindows_state_changed.
16811         (mark_redisplay): mark gutters here.
16812
16813         * glyphs.c: (instantiate_image_instantiator): always layout if we
16814         haven't done so already.
16815         (allocate_image_instance): don't mark as dirty.
16816         (update_subwindow): bind inhibit_quit.
16817
16818         * gutter.c (mark_gutters): new function.
16819
16820         * glyphs-x.c (x_update_widget): Always resize to get round a
16821         widget bug.
16822
16823         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16824         breaking absolutely everything.
16825
16826         * gutter.h: declare mark_gutters.
16827
16828 2000-02-16  Martin Buchholz <martin@xemacs.org>
16829
16830         * XEmacs 21.2.29 is released.
16831
16832 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16833
16834         * fns.c (size_bit_vector): Fix computation of the size.
16835
16836 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16837
16838         * *.[ch]: Change CONST to const globally.
16839         find -name '*.[ch]' | \
16840         xargs global-replace \
16841         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16842         - Remove vestigial references to CONST_IS_LOSING
16843
16844 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16845
16846         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16847         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16848         events instead of dispatching them directly.
16849         (mswindows_handle_paint): New function to do repainting.
16850         (mswindows_wnd_proc):
16851         (emacs_mswindows_handle_magic_event): Call above function.
16852
16853 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16854
16855         * objects-msw.c (mswindows_create_font_variant): Return the new
16856         font handle.
16857         (initialize_font_instance): Get font metrics from the underlined
16858         variant of the font to cope with the case where the underlined
16859         font has a bigger descent.
16860
16861 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16862
16863         * gui.c (gui_item_accelerator): Return the first underlined
16864         character in item name.
16865
16866 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16867
16868         * lisp.h: Added Qprinter.
16869
16870         * general.c (syms_of_general): Initialized it.
16871
16872         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16873         (get_frame_dc):
16874         (get_frame_compdc): Made inline.
16875
16876         * console.h (struct console_methods): Added eject_page method.
16877
16878         * frame.h: Added FRAME_DISPLAY_P and friends.
16879         Aligned backslahes in many macros in more readable fashion.
16880         Added page_number to struct frame, and an accessor macro
16881         for it.
16882
16883         * defice.h: Added DEVICE_DISPLAY_P and friends.
16884
16885         * device.c (Fdevice_printer_p): Used these.
16886
16887         * frame.c (allocate_frame_core): Initialize page number.
16888         (Fprint_job_page_number):
16889         (Fprint_job_eject_page): Implemented.
16890
16891         * frame-msw.c (msprinter_eject_page): Added method.
16892         (msprinter_start_page): Added.
16893
16894         * window.c (Fwindow_truncated_p): Fixed docstring.
16895         (Fwindow_last_line_visible_height): Implemented.
16896
16897 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16898
16899         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16900
16901 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16902
16903         * syntax.c (scan_words): Always advance at least one character.
16904
16905 2000-02-13  Andy Piper  <andy@xemacs.org>
16906
16907         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16908         to make sure the glyph is in the cachels.
16909
16910         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16911         global image instance flag.
16912         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16913         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16914
16915         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16916         (Fset_image_instance_property): mark layout as changed.
16917         (invalidate_glyph_geometry_maybe): mark layout as changed.
16918         (glyph_width): use new NEEDS_LAYOUT macro.
16919         (glyph_ascent): ditto.
16920         (glyph_descent): ditto.
16921         (glyph_height): ditto.
16922         (image_instance_layout): mark layout as clean after laying out.
16923         (update_subwindow): don't mark layout as clean here.
16924
16925         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16926         should no longer be needed.
16927
16928         * glyphs-x.c (x_update_widget): sanitize asserts.
16929         (x_finalize_image_instance): sanitize assignment to widgets.
16930
16931         * glyphs-widget.c (widget_instantiate): don't need to clear the
16932         layout flag here.
16933
16934 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16935
16936         * sysdep.c (getcwd): Use standard prototype.
16937         * sysdep.h (getcwd): Use standard prototype.
16938
16939         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16940         (sequence, start, end).
16941         Remove redundant type checking.
16942         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16943         view of `caller-protects') to avoid a crash where the real fix was
16944         found elsewhere.
16945
16946 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16947
16948         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16949
16950         * s/sol2.h: Remove feature macro initialization.
16951
16952         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16953         (vector_hash): New.  Code from internal_hash.
16954         * lrecord.h:
16955         Fix up allocation subsystem comments.
16956
16957         * config.h.in: Add __EXTENSIONS__ for Solaris.
16958
16959         * systime.h (EMACS_GETTIMEOFDAY): New.
16960         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16961         Remove Solaris-specific code.
16962         Use void* for the (ignored) second arg for gettimeofday().
16963
16964         * elhash.c (hash_table_hash): Implement it, finally.
16965         * elhash.c:  Use hashcode_t.
16966
16967         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16968         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16969
16970         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16971         * fns.c (size_bit_vector):
16972         * alloc.c (size_vector):
16973         (make_vector_internal):
16974         (make_bit_vector_internal):
16975         (sweep_bit_vectors_1):
16976         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16977
16978 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16979
16980         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16981         Include strings.h to avoid warnings for bzero and strcasecmp.
16982
16983 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16984
16985         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16986         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16987
16988         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16989         sequence.
16990
16991 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16992
16993         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16994         use a value field instead.
16995         (symbol_value_forward_forward): Use value field.
16996         (DEFVAR_SYMVAL_FWD): Use value field.
16997         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16998         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16999         (DEFVAR_CONST_INT): Ditto.
17000         (DEFVAR_BOOL): Ditto.
17001         (DEFVAR_CONST_BOOL): Ditto.
17002         (DEFVAR_INT_MAGIC): Ditto.
17003         (DEFVAR_BOOL_MAGIC): Ditto.
17004
17005         * symbols.c (guts_of_unbound_marker): Use value field.
17006         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
17007         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
17008
17009         * lisp.h: Declare dumpopaque and noninteractive1.
17010
17011         * alloc.c (dumpopaque): Added.
17012         (pdump_dump_opaquevec): Added.
17013         (pdump): Call pdump_dump_opaquevec to dump opaque data.
17014         (pdump_load): Reload opaque data.  Sync noninteractive1 with
17015         noninteractive.
17016
17017 2000-02-10  Andy Piper  <andy@xemacs.org>
17018
17019         * glyphs.c (image_instance_layout): if the size changes, mark it
17020         as such.
17021
17022         * redisplay-output.c (redisplay_output_layout): Update the
17023         subwindow here.
17024         (redisplay_output_subwindow): ditto.
17025
17026         * glyphs.c (update_subwindow): make sure we reset flags for
17027         layouts as well as everything else.
17028
17029         * glyphs-widget.c (layout_layout): don't need to set the instances
17030         dimensions here.
17031
17032 2000-02-09  Martin Buchholz  <martin@xemacs.org>
17033
17034         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
17035         not HAVE_DLOPEN, which is a lower-level thing.
17036
17037         * .cvsignore: Ignore gmon.out
17038
17039 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
17040
17041         * .cvsignore: Ignore portable dumper xemacs.dmp file
17042
17043 2000-02-09  Andy Piper  <andy@xemacs.org>
17044
17045         * redisplay-output.c (redisplay_output_layout): be more clever
17046         about when we output based on the changed flags.
17047
17048         * glyphs.h (struct image_instantiator_methods): add update_method.
17049         (struct Lisp_Image_Instance): add changed flags. Declare new
17050         macros for manipulating them.
17051
17052         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
17053         (image_instance_parent_glyph): find an image_instance's parent
17054         glyph or image_instance.
17055         (image_instance_layout): mark the size as changed.
17056         (set_image_instance_dirty_p): new function. mark an image
17057         instance, plus all of its parents, as dirty.
17058         (Fset_image_instance_property): use it.
17059         (Fglyph_animated_timeout_handler): use it.
17060         (update_subwindow): call update_widget and device methods for
17061         update_subwindow. Mark all changed flags as clean.
17062         (Fresize_subwindow): mark size as changed.
17063
17064         * glyphs-x.c (x_finalize_image_instance): try and detect gc
17065         failures.
17066         (x_update_subwindow): only resize subwindows here.
17067         (x_update_widget): new function. Update all changed properties of
17068         a widget.
17069         (x_resize_subwindow): deleted.
17070         (x_widget_set_property): deleted.
17071         (x_progress_gauge_set_property): deleted.
17072         (x_progress_gauge_update): new function. Implement recorded
17073         changes.
17074         (x_tab_control_update): ditto.
17075         (x_tab_control_set_property): deleted.
17076         (console_type_create_glyphs_x): declare new functions.
17077         (image_instantiator_format_create_glyphs_x): ditto.
17078
17079         * glyphs-widget.c (widget_set_property): mark text changed.
17080         (update_widget): new function. Update properties of a widget.
17081         (widget_instantiate): for layouts make sure we set their
17082         children's parent correctly.
17083         (tab_control_set_property): new function. Record changes that will
17084         take place under redisplay's control.
17085         (progress_gauge_set_property): ditto.
17086         (image_instantiator_progress_guage): declare new functions.
17087         (image_instantiator_tab_control): ditto.
17088
17089         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
17090         now.
17091         (mswindows_update_widget): new function. Update all properties on
17092         a widget that have changed.
17093         (mswindows_button_update): new function. Update a button's set
17094         state.
17095         (mswindows_tab_control_update): new function. Update the items in
17096         a tab.
17097         (mswindows_tab_control_set_property): deleted.
17098         (mswindows_progress_gauge_update): new function. Update the
17099         progress gauge's progress.
17100         (mswindows_widget_set_property): deleted. This is all done
17101         asynchronously now.
17102         (mswindows_progress_gauge_set_property): ditto.
17103         (console_type_create_glyphs_mswindows): declare new methods.
17104         (image_instantiator_format_create_glyphs_mswindows): ditto.
17105
17106         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
17107         (msprinter_set_frame_properties): ditto.
17108
17109         * console.h (struct console_methods): Add update_widget_method.
17110
17111 2000-02-09  Andy Piper  <andy@xemacs.org>
17112
17113         * gui-msw.c (Fmswindows_shell_execute): Make
17114         mswindows-shell-execute industrial strength.
17115
17116 2000-02-08  Martin Buchholz  <martin@xemacs.org>
17117
17118         * lrecord.h: Make macro argument `props' match member function `plist'.
17119         * fns.c (Fget):
17120         * fns.c (Fput):
17121         * fns.c (Fremprop):
17122         * fns.c (Fobject_plist):
17123         * alloc.c:
17124         * symbols.c:
17125         Object property list frobbing cleanup.
17126         - Allow any lisp object (compared with `eq'), not just symbols, as
17127           keys in object plists.
17128         - Move symbol plist frobbing into symbols.c, where it belongs.
17129         - Move string plist frobbing into alloc.c, where it belongs.
17130         - Everything's an lrecord now, so no need to test for symbolp, etc.
17131         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
17132
17133         * extents.c: Reorder code to remove declarations.
17134
17135         * frame.h (store_in_alist): Remove useless declaration.
17136
17137 2000-02-07  Martin Buchholz  <martin@xemacs.org>
17138
17139         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
17140         * config.h.in: Add HAVE_XCONVERTCASE.
17141
17142 2000-02-07  Andy Piper  <andy@xemacs.org>
17143
17144         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
17145         it breaks many things.
17146
17147 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
17148
17149         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
17150         actually can start a common comment type.
17151         * src/syntax.h (SYNTAX_END_P): ditto for end.
17152
17153 2000-02-07  Martin Buchholz <martin@xemacs.org>
17154
17155         * XEmacs 21.2.28 is released.
17156
17157 2000-02-06  Martin Buchholz  <martin@xemacs.org>
17158
17159         * event-Xt.c (x_keysym_to_character): New.
17160         (maybe_define_x_key_as_self_inserting_character): New.
17161         (x_has_keysym): New.
17162         Auto-define all keys on the keyboard as self-insert-key.
17163
17164 2000-02-02  Martin Buchholz  <martin@xemacs.org>
17165
17166         * menubar.c (vars_of_menubar): A small code simplification.
17167
17168         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
17169
17170         * ExternalShell.c:
17171         * ExternalClient.c:
17172         * EmacsShell-sub.c:
17173         * EmacsManager.c:
17174         * EmacsFrame.c:
17175         Use consistent style for specifying X resources.
17176
17177         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
17178         This makes (dontusethis-set-symbol-value-handler) actually usable.
17179
17180         * lrecord.h (lrecord_decription_type):
17181         * alloc.c (pdump_register_sub):
17182         (pdump_dump_data):
17183         (pdump_reloc_one):
17184         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
17185         Comply with XEmacs coding style.
17186         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
17187         args, and XD_LISP_OBJECT_ARRAY with 3 args.
17188
17189         * keymap.c (Faccessible_keymaps):
17190         Make (accessible-keymaps map "\C-h") do the Right Thing.
17191         Make (accessible-keymaps map []) do the Right Thing.
17192         Make (accessible-keymaps map "") do the Right Thing.
17193         (check_keymap_definition_loop): New function.
17194         (keymap_store_internal): Keep luser from shooting self in foot,
17195           via (define-key ctl-x-4-map "p" global-map).
17196         Remove fullness slot from struct Lisp_Keymap, since hash tables
17197         are now reliable.
17198         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17199
17200 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17201
17202         * redisplay.c (init_redisplay): Fix small memory leak.
17203         * elhash.h:
17204         * elhash.c (pdump_reorganize_hash_table):
17205         Rename from reorganize_hash_table. Change prototype.
17206         Reuse the original memory for hentries.  Save 100k.
17207         * alloc.c (PDUMP_READ): new macro.
17208         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17209         * alloc.c: No need to #ifndef before #undef.
17210
17211         * print.c: Allow debug_print() to print readably by modifying
17212         debug_print_readably.  Use consistent variable names.
17213
17214         * .dbxrc: Try to get things to work even if stopped in a function
17215         without source available by explicitly specifying source files.
17216 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17217
17218         * unexnt.c (_start): Removed bogus code which caused loading heap
17219         from differrent executable file.
17220         Removed bogus assignment to _fmode, which caused inconsistencies.
17221
17222 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17223
17224         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17225         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17226         Do not preliminary `#define signal sigset'.
17227
17228         * systime.h: Do not prototype environ on windows nt and cygwin,
17229         this conflicts with system header.
17230
17231         * syssignal.h: Use correct define for WINDOWSNT
17232
17233         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17234         with system header.
17235
17236         * sysdep.c (near start of file): Fixed commentary and rearranged
17237         ifdefs in readable order.
17238         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17239         (start_of_text):
17240         (end_of_text):
17241         (end_of_data): Do not compile in if using PDUMP.
17242
17243         * symsinit.h: Prototyped vars_of_nt().
17244
17245         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17246         (find_child_console): Use it.
17247         (sys_kill): Use it.
17248
17249         * ntheap.h: Do not extern os_subtype.
17250
17251         * ntheap.c (cache_system_info): Do not cache unneeded:
17252         nt_major_version, nt_minor_version and os_subtype.
17253         (recreate_heap): Do not compile in when PDUMPing.
17254
17255         * nt.c (geteuid and friends): Use the new varibale
17256         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17257         (init_user_info): Removed the above mentioned hackery.
17258         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17259         stat has been fixed in the C runtime.
17260         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17261
17262         * file-coding.c (struct file_coding_dump): Do not define
17263         ucs_to_mule_table in the struct if not MULE.
17264         (struct struct lrecord_description fcd_description_1): Do not dump
17265         the above.
17266
17267         * emacs.c (main_1): Call vars_of_nt().
17268         (right before Fdump_emacs_data): Don't need lastfile if using both
17269         portabe dumper and system malloc.
17270
17271         * alloc.c (Fmemory_limit): Conditionalized out.
17272         (pdump): Use OPEN_BINARY for the portable dump file.
17273         (pdump_load): Ditto.
17274
17275 2000-02-02  Mike Alexander  <mta@arbortext.com>
17276
17277         * nt.c (convert_time): Set tm_isdst before calling mktime and
17278         avoid calling it at all if the compiler supports 64 bit integers.
17279         Also initialize utc_base_ft before using it.
17280
17281 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17282
17283         * frame.c (change_frame_size_1): Take f->internal_border_width
17284         into consideration when calculating the width of the frame.
17285
17286 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17287
17288         * window.c (frame_min_height):
17289         (frame_size_valid_p):
17290         (frame_pixsize_valid_p): Added.
17291         (check_frame_size): Generalized.
17292
17293         * window.h: Prototyped the above.
17294
17295         * lisp.h:
17296         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17297         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17298         Deleted Vwin32_* and Vbinary_process_* unused variables.
17299
17300         * device-msw.c (msprinter_init_device): Do not get printer font
17301         list; Added DEVMODE functions.
17302
17303         * frame-msw.c: Added lots of printer code.
17304
17305         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17306         general.c.
17307
17308         * console-msw.h: Added more msprinter device private slots.
17309
17310 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17311
17312         * event-msw.c (key_needs_default_processing_p): Added.
17313         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17314
17315 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17316
17317         * glyphs.c (image_instance_layout): Mark image instance as clean
17318         after layout.
17319         (glyph_dirty_p): Removed redundant function.
17320         (invalidate_glyph_geometry_maybe): Added.
17321         (update_glyph_cachel_data): Call it.
17322
17323         * glyphs.h: Prototyped it.
17324
17325         * redisplay.c (add_glyph_rune): Call it.
17326         (redisplay_window): Reset glyphs cachels when frame faces have
17327         changed, thus forcing recomputation of built-in border glyphs.
17328
17329 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17330
17331         * Makefile.in.in: Make portable dumper and purify play well together.
17332         Add imperfect, but better than nothing, support for pdump.
17333         Remove xemacs.dmp when temacs is re-generated.
17334         Don't ignore errors when dumping xemacs.
17335
17336         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17337
17338 2000-01-28  Andy Piper  <andy@xemacs.org>
17339
17340         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17341         (setup_normal_frame): ditto.
17342         (setup_frame_without_minibuffer): ditto.
17343         (setup_minibuffer_frame): ditto.
17344         (delete_frame_internal): ditto.
17345         (Fmake_frame_invisible): ditto.
17346         (Ficonify_frame): ditto.
17347
17348         * window.h: change Fset_window_buffer signature.
17349
17350         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17351         (Fset_window_buffer): allow recording of buffer if the window is
17352         the selected window.
17353         (window_loop): Use new Fset_window signature.
17354
17355 2000-01-23  Daniel Pittman  <daniel@danann.net>
17356
17357         * config.h.in: Added template for `HAVE_ATHENA_3D'
17358
17359 2000-01-29  Andy Piper  <andy@xemacs.org>
17360
17361         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17362
17363         * gutter.c (output_gutter): Don't output if the window isn't live.
17364
17365 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17366
17367         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17368         of 01/12/00: Moved SetFocus back here where it belongs.
17369
17370 2000-01-23  Andy Piper  <andy@xemacs.org>
17371
17372         * s/cygwin32.h: declare printer things.
17373
17374 2000-01-26  Andy Piper  <andy@xemacs.org>
17375
17376         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17377         Alexander.
17378
17379 2000-01-24  Andy Piper  <andy@xemacs.org>
17380
17381         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17382         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17383
17384         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17385
17386         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17387
17388         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17389
17390         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17391         (mswindows_output_display_block): Avoid local shadows.
17392
17393         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17394         (mswindows_enqueue_mouse_button_event): ditto.
17395         (mswindows_handle_gui_wm_command): remove declaration.
17396
17397         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17398         warnings.
17399
17400         * console-msw.h: Avoid shadows.
17401         (mswindows_get_toolbar_button_text):
17402         (emacs_mswindows_create_stream_pair):
17403         (emacs_mswindows_delete_stream_pair):
17404         (mswindows_handle_toolbar_wm_command): declare.
17405
17406         * device-msw.c (build_syscolor_string): Avoid shadows.
17407
17408 2000-01-23  Andy Piper  <andy@xemacs.org>
17409
17410         * glyphs-widget.c (widget_instantiate): reverse the items for
17411         layouts so that children are in the expected order.
17412
17413 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17414
17415         * ralloc.c: safe_bcopy ==> memmove
17416         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17417         * s/msdos.h: Remove BCOPY macros.
17418         * insdel.c (gap_right): Remove BCOPY conditional code.
17419         * insdel.c (gap_left): Remove BCOPY conditional code.
17420         XEmacs demands a working ANSI C compiler - hence memmove.
17421
17422         * regex.c (regex_compile): Remove accidental use of trigraphs.
17423
17424 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17425
17426         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17427         event timestamp.
17428
17429 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17430
17431         * event-msw.c (mswindows_drain_windows_queue): Added the
17432         parameter.
17433         (mswindows_need_event): Commented the call to
17434         mswindows_drain_windows_queue().
17435         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17436         only.
17437
17438         * console-msw.h: Moved a few function prototypes here from
17439         event-msw.c.
17440
17441         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17442         parameter from unsigned short to unsigned long.
17443         (Fmswindows_shell_execute): Added return value.
17444
17445 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17446
17447         * sysdep.c (init_system_name):
17448           process-unix.c (unix_canonicalized_host_name):
17449         Don't call freeaddrinfo() if getaddrinfo() fails.
17450
17451         * process-unix.c (unix_open_unix_network_stream):
17452         Moved the code to get a port # into address loop.
17453
17454 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17455
17456         * buffer.c (reinit_vars_of_buffer):
17457         The right place to initialize conversion_in_dynarr and
17458         conversion_out_dynarr.
17459
17460         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17461
17462         * process-unix.c (unix_canonicalize_host_name): Muleize.
17463         (unix_open_network_stream): Muleize.
17464
17465         * buffer.h: Fix up prototypes for ralloc.c functions.
17466
17467 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17468         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17469         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17470                 instead of gethostbyname()
17471         * process-unix.c: In unix_canonicalize_host_name() and
17472                 unix_open_network_stream(), add code to use getaddrinfo()
17473                 instead of gethostbyname().
17474
17475 2000-01-27  Daniel Pittman <daniel@danann.net>
17476
17477         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17478         libs when built with flat Athena.
17479
17480 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17481
17482         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17483         Use coding standards for function prototypes.
17484
17485 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17486
17487         * dialog-msw.c (push_lisp_string_as_unicode):
17488         * doc.c (unparesseuxify_doc_string):
17489         * dired.c (Fuser_name_completion_1):
17490         * dired.c (Fuser_name_all_completions):
17491         * dired.c (free_user_cache):
17492         * dired.c (user_name_completion):
17493         * console-x.c (get_display_arg_connection):
17494         * minibuf.c (clear_echo_area_internal):
17495         * minibuf.c (echo_area_append):
17496         * eldap.c (Fldap_open):
17497         * eldap.c (Fldap_search_internal):
17498         * frame-x.c (x_set_frame_text_value):
17499         * frame-x.c (x_set_frame_properties):
17500         * frame-x.c (x_create_widgets):
17501         * redisplay-tty.c (term_get_fkeys_1):
17502         * objects-x.c (x_parse_nearest_color):
17503         * objects-x.c (x_valid_color_name_p):
17504         * objects-x.c (x_initialize_font_instance):
17505         * objects-x.c (x_list_fonts):
17506         * objects-x.c (x_find_charset_font):
17507         * tooltalk.c (Fadd_tooltalk_message_arg):
17508         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17509         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17510         * process-unix.c (unix_create_process):
17511         * ntproc.c (sys_spawnve):
17512         * sound.c (Fplay_sound_file):
17513         * sound.c (Fplay_sound):
17514         * buffer.c (init_initial_directory):
17515         * buffer.c (init_buffer):
17516         * editfns.c (init_editfns):
17517         * editfns.c (Ftemp_directory):
17518         * editfns.c (Fuser_full_name):
17519         * editfns.c (uncache_home_directory):
17520         * editfns.c (get_home_directory):
17521         * editfns.c (Fuser_home_directory):
17522         * editfns.c (Fformat_time_string):
17523         * editfns.c (Fcurrent_time_string):
17524         * gui-x.c (button_item_to_widget_value):
17525         * database.c (Fopen_database):
17526         * event-Xt.c (x_to_emacs_keysym):
17527         * event-Xt.c (x_event_to_emacs_event):
17528         * event-Xt.c (describe_event_window):
17529         * event-msw.c (mswindows_wnd_proc):
17530         * glyphs-eimage.c (jpeg_instantiate):
17531         * glyphs-eimage.c (gif_instantiate):
17532         * glyphs-eimage.c (png_instantiate):
17533         * glyphs-eimage.c (tiff_instantiate):
17534         * glyphs-x.c (xbm_instantiate_1):
17535         * glyphs-x.c (x_xbm_instantiate):
17536         * glyphs-x.c (x_xface_instantiate):
17537         * glyphs-x.c (autodetect_instantiate):
17538         * glyphs-x.c (cursor_font_instantiate):
17539         * glyphs-x.c (x_widget_instantiate):
17540         * glyphs-x.c (x_widget_set_property):
17541         * glyphs-x.c (x_widget_property):
17542         * glyphs-x.c (BUILD_GLYPH_INST):
17543         * print.c (write_string_to_stdio_stream):
17544         * print.c (output_string):
17545         * print.c (Falternate_debugging_output):
17546         * print.c (Fexternal_debugging_output):
17547         * glyphs-msw.c (extract_xpm_color_names):
17548         * glyphs-msw.c (mswindows_xpm_instantiate):
17549         * glyphs-msw.c (bmp_instantiate):
17550         * glyphs-msw.c (resource_name_to_resource):
17551         * glyphs-msw.c (mswindows_resource_instantiate):
17552         * glyphs-msw.c (xbm_instantiate_1):
17553         * glyphs-msw.c (mswindows_xbm_instantiate):
17554         * glyphs-msw.c (mswindows_xface_instantiate):
17555         * glyphs-msw.c (mswindows_widget_instantiate):
17556         * glyphs-msw.c (add_tree_item):
17557         * glyphs-msw.c (add_tab_item):
17558         * glyphs-msw.c (mswindows_combo_box_instantiate):
17559         * glyphs-msw.c (mswindows_widget_property):
17560         * glyphs-msw.c (mswindows_combo_box_property):
17561         * glyphs-msw.c (mswindows_widget_set_property):
17562         * console.c (stuff_buffered_input):
17563         * objects-msw.c (mswindows_initialize_color_instance):
17564         * objects-msw.c (mswindows_valid_color_name_p):
17565         * objects-msw.c (mswindows_list_fonts):
17566         * objects-msw.c (mswindows_font_instance_truename):
17567         * bytecode.c (optimize_compiled_function):
17568         * select-x.c (symbol_to_x_atom):
17569         * select-x.c (x_atom_to_symbol):
17570         * select-x.c (hack_motif_clipboard_selection):
17571         * select-x.c (selection_data_to_lisp_data):
17572         * select-x.c (lisp_data_to_selection_data):
17573         * select-x.c (Fx_get_cutbuffer_internal):
17574         * select-x.c (Fx_store_cutbuffer_internal):
17575         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17576         * buffer.h (TO_INTERNAL_FORMAT): New function.
17577         * emacs.c (make_arg_list_1):
17578         * emacs.c (make_argc_argv):
17579         * emacs.c (main_1):
17580         * emacs.c (Fdump_emacs):
17581         * emacs.c (split_string_by_emchar_1):
17582         * file-coding.h:
17583         * lisp.h:
17584         * lstream.h:
17585         * symsinit.h:
17586         * device-x.c (x_init_device):
17587         * device-x.c (Fx_valid_keysym_name_p):
17588         * device-x.c (Fx_get_font_path):
17589         * device-x.c (Fx_set_font_path):
17590         * glyphs.c (bitmap_to_lisp_data):
17591         * glyphs.c (pixmap_to_lisp_data):
17592         * alloc.c (make_ext_string): Use coding system arguments.  Update
17593         all callers.
17594         * alloc.c (build_string):
17595         * callproc.c (child_setup):
17596         * callproc.c (init_callproc):
17597         * fileio.c (lisp_strerror):
17598         * fileio.c (directory_file_name):
17599         * fileio.c (Fexpand_file_name):
17600         * fileio.c (Ffile_truename):
17601         * fileio.c (Fsysnetunam):
17602         * fileio.c (Fdo_auto_save):
17603         * sysdep.c (sys_readdir):
17604         * tests.c: New file.  Allow adding C tests.
17605         Replace GET_* macros with a more comprehensible and flexible
17606         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17607         Modify all calls.
17608         Any coding system can be used to do format conversion.
17609         Eliminate enum external_data_format.
17610         Eliminate convert_to_external_format.
17611         Eliminate convert_to_internal_format.
17612         Make sure file-name, keyboard, terminal, and ctext are always
17613         defined as coding systems or aliases.  Make
17614         file-name-coding-system, terminal-coding-system, and
17615         keyboard-coding-system magical variables that are equivalent to
17616         defining the corresponding coding system aliases.
17617
17618         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17619         * file-coding.c (Fcoding_system_alias_p): New function.
17620         * file-coding.c (Fcoding_system_aliasee): New function.
17621         * file-coding.c (append_suffix_to_symbol): New function.
17622         * file-coding.c (dangling_coding_system_alias_p): New function.
17623         * file-coding.c (Ffind_coding_system):
17624         * file-coding.c (Fcopy_coding_system):
17625         * file-coding.c (encode_coding_no_conversion):
17626         * file-coding.c (syms_of_file_coding):
17627         * file-coding.c (vars_of_file_coding):
17628         Rewrite coding system alias code.
17629         Allow nested aliases, like symbolic links.
17630         Allow redefinition of coding system aliases.
17631         Prevent existence of dangling coding system aliases.
17632
17633         * dired.c (Fuser_name_completion_1):
17634         * dired.c (Fuser_name_all_completions):
17635         A crash would happen if user did QUIT in the middle of building
17636         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17637
17638         * lisp.h:
17639         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17640
17641         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17642         an unsigned char *.  Update all callers.
17643
17644 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17645
17646         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17647
17648 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17649
17650         * elhash.c (hentry_description): Use more portable definition.
17651         (resize_hash_table): Initialize new hentries using
17652         xnew_array_and_zero, thereby simplifying the code.
17653
17654         * mule-charset.c (make_charset): Make sure entire object is
17655         initialized, to avoid Purify warnings.
17656
17657         * alloc.c (resize_string): Fix unlikely crash with big strings.
17658
17659 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17660
17661         * realpath.c (xrealpath):
17662         Don't call getwd().
17663
17664 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17665
17666         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17667
17668 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17669
17670         * unexelfsgi.c (unexec): Change the way we decide which segment
17671         should be extended.
17672
17673         Assumption that .bss section should be outside the PT_LOADable
17674         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17675         it's present) is inside the 'data' segment. This would fail the
17676         test which was used to find a segment to grow and cover new
17677         heap. Instead of this assumption, I created another one - on IRIX
17678         the segment to grow should start below .bss and it's address
17679         should extent above the end of .bss. Once this segment is
17680         identified, it's grown to accommodate the new heap and new
17681         zero-length .bss section is added at the end of .data2.
17682
17683 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17684
17685         * eval.c (Feval): Wrong number of arguments should use original
17686         function, not the indirect_function version of it.
17687
17688 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17689
17690         * glyphs-x.c (x_button_instantiate): Don't add image if
17691         it is not a pixmap.
17692         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17693         is relative.
17694
17695 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17696
17697         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17698         declaration.
17699         (DEFVAR_INT_MAGIC): Ditto.
17700         (DEFVAR_BOOL_MAGIC): Ditto.
17701         * glyphs.h: Reindent backslash.
17702
17703 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17704
17705         * glyphs-widget.c (layout_query_geometry):
17706         (layout_layout): Use correct types for gheight, gwidth.
17707
17708 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17709
17710         * EmacsManager.c (QueryGeometry): Purified.
17711
17712 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17713
17714         * alloc.c (make_float): Make sure entire object is initialized, to
17715         avoid Purify warnings.
17716         (pdump_register_sub): Remove useless assignment.
17717         (pdump): Use xmalloc, not malloc.
17718         (pdump_load): Use xmalloc, not malloc.
17719
17720 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17721
17722         * callproc.c:
17723         * dired-msw.c:
17724         * fileio.c:
17725         * process-nt.c:
17726         * redisplay-msw.c:
17727         * sysdep.c: Removed redundant #include <windows.h>
17728
17729 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17730
17731         * frame.c (delete_frame_internal): Do not delete device when its
17732         implementation so declares.
17733         (delete_frame_internal): Set device selected frame to nil when
17734         last frame goes away.
17735
17736         * device-msw.c (msprinter_device_system_metrics): Implemented.
17737         (mswindows_device_system_metrics): Added 'device-dpi property.
17738
17739         * device.c: (Fdevice_printer_p): Added.
17740         Added 'offset-workspace device metric.
17741
17742         * console.h (device_metrics): Declared DM_offset_workspace.
17743
17744 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17745
17746         * fileio.c (Ffile_truename): Remove pointless and confusing
17747         initialization of elen.
17748
17749         * glyphs-widget.c: Compiler warning fixes.
17750
17751 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17752
17753         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17754         instead of a Lisp_Object as argument to make it consistent with
17755         the other LIVE_P macros.
17756         (CHECK_LIVE_PROCESS): New macro.
17757
17758         * process.c: Declare Qprocess_live_p.
17759         (Fprocess_live_p): New function.
17760         (create_process): Use PROCESS_LIVE_P.
17761         (read_process_output): Ditto.
17762         (set_process_filter): Ditto.
17763         (Fdelete_process): Ditto.
17764         (kill_buffer_processes): Ditto
17765         (process_send_signal): Use CHECK_LIVE_PROCESS.
17766         (Fprocess_input_coding_system): Check whether process is still
17767         alive (fix PR#1061).
17768         (Fprocess_output_coding_system): Ditto.
17769         (Fprocess_coding_system): Ditto.
17770         (Fset_process_input_coding_system): Ditto.
17771         (Fset_process_output_coding_system): Ditto.
17772
17773 2000-01-23  Andy Piper  <andy@xemacs.org>
17774
17775         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17776         layout and widget.
17777
17778         * glyphs.c (mark_image_instance): take into account changed
17779         image_instance format.
17780         (image_instance_equal): ditto.
17781         (image_instance_hash): ditto.
17782
17783         * glyphs-widget.c (widget_instantiate): Incorporate layout
17784         instantiation here. Delay layout of the layout until later.
17785         (layout_instantiate): deleted.
17786         (layout_query_geometry): new function. get the geometry of a
17787         layout.
17788         (layout_layout): layout a layout dynamically.
17789         (image_instantiator_widget): New function - splitting up
17790         image_instantiator_format_create_glyphs_widget for netwinder
17791         compilation.
17792         (image_instantiator_buttons):
17793         (image_instantiator_edit_fields):
17794         (image_instantiator_combo_box):
17795         (image_instantiator_scrollbar):
17796         (image_instantiator_progress_guage):
17797         (image_instantiator_tree_view):
17798         (image_instantiator_tab_control):
17799         (image_instantiator_labels):
17800         (image_instantiator_layout): ditto.
17801         (image_instantiator_format_create_glyphs_widget): Call preceding
17802         functions.
17803
17804 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17805
17806         * process.c (Fset_process_coding_system):
17807         * device-x.c (Fx_keysym_hash_table):
17808         Docstring fixes.
17809
17810         * lstream.c (Lstream_write): Return documented value, not 0.
17811
17812         * fileio.c (directory_file_name):
17813         (Fsubstitute_in_file_name):
17814         (Fsubstitute_insert_file_contents_internal):
17815         (Fwrite_region_internal):
17816         * emacs.c:
17817         * sysdep.c:
17818         * getloadavg.c:
17819         * systty.h:
17820         Remove vestigial APOLLO-conditional code.
17821
17822 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17823
17824         * getpagesize.h: Add guard macros.
17825         * libsst.h: Add guard macros.
17826         * libst.h: Add guard macros.
17827         * line-number.h: Add guard macros.
17828         * ndir.h: Add guard macros.
17829         * sysfloat.h: Add guard macros.
17830         * sysfile.h: Add guard macros.
17831         * sysproc.h: Add guard macros.
17832         * syswait.h: Add guard macros.
17833         * xintrinsic.h: Add guard macros.
17834         * xintrinsicp.h: Add guard macros.
17835         * xmmanager.h: Add guard macros.
17836         * xmmanagerp.h: Add guard macros.
17837         * xmprimitive.h: Add guard macros.
17838         * xmu.h: Add guard macros.
17839         * gpmevent.h: Add copyright statement. Add guard macros.
17840         * miscplay.h: Add guard macros.
17841         * *.h: Use consistent C-standards-approved guard macro names.
17842
17843         * opaque.c (make_opaque): Switch parameter order.
17844         * opaque.h (make_opaque): Switch parameter order.
17845         Update all callers.
17846         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17847
17848         * config.h.in (type_checking_assert): Added.
17849         (bufpos_checking_assert): Added.
17850
17851 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17852
17853         * alloc.c: Harmless pdump changes.
17854         - Use countof().
17855         - spell alignment correctly.
17856         * sysdep.c: Use countof()
17857
17858 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17859
17860         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17861         initially_selected_for_input() console method, default to 0.
17862         (semi_canonicalize_console_connection): Try to delegate to
17863         canonicalize_console_connection if no such console method.
17864         (canonicalize_console_connection): Vice versa.
17865         (print_console): Do not print nil connection.
17866
17867         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17868         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17869         (XDEVIMPF_FRAMELESS_OK): Added.
17870         (CONSOLE_INHERITS_METHOD): Added.
17871
17872         * console-msw.c (mswindows_canonicalize_console_connection):
17873         Added.
17874         (mswindows_canonicalize_device_connection): Added.
17875
17876         * console-msw.h (struct msprinter_device): Added this struct and
17877         accessor macros.
17878         (mswindows_device): Made fontlist a lisp object.
17879
17880         * device.c (semi_canonicalize_device_connection):  Try to delegate
17881         to canonicalize_device_connection if no such console method.
17882         (canonicalize_device_connection): Vice versa.
17883         (print_device): Do not print nil connection.
17884
17885         * device-msw.c (mswindows_init_device): Call InitCommonControls
17886         when have widgets.
17887         (mswindows_delete_device): Removed fontlist deallocation.
17888         (mswindows_mark_device): Added.
17889
17890         * events.c (event_equal): Added abort() at unreached code.
17891         (event_hash): Ditto.
17892
17893         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17894         fallback tags of Windows devices.
17895
17896         * general.c (syms_of_general): Initialized Qmsprinter.
17897
17898         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17899         of fallback tags of Windows devices.
17900
17901         * lisp.h: Declared Qmsprinter.
17902
17903         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17904         of strings.
17905         (mswindows_list_fonts): Ditto.
17906         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17907         that it can be used by both mswindows and msprinter devices.
17908         (initialize_font_instance): Added.
17909         (mswindows_initialize_font_instance): Use it.
17910         (msprinter_initialize_font_instance): Added.
17911
17912         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17913         and implementation flags check.
17914         (redisplay_without_hooks): Changed the call to the above.
17915         (Fredraw_device): Ditto.
17916         (Fredisplay_device): Ditto.
17917
17918         * redisplay-msw.c (get_frame_dc): Implemented.
17919         (get_frame_compdc): Implemented.
17920         (many functions): Use the two functions above to get device
17921         contexts, ether for a window or a printer.
17922
17923 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17924
17925         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17926         initialization here.
17927         (init_symbols_once_early): Call it.
17928         * emacs.c (main_1): Call it.
17929         * symsinit.h: Declare it.
17930
17931 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17932
17933         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17934         Lisp_Object.
17935         (pdump_backtrace): Ditto.
17936         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17937         (pdump_get_entry): Abort if trying to register a null pointer.
17938         (pdump_dump_data): Cleanup types when relocating.
17939         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17940         (pdump_dump_rtables): Remove bad casts.
17941         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17942         Lisp_Object instead of a EMACS_INT for the hashtable
17943         reorganization.
17944
17945 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17946
17947         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17948
17949         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17950
17951         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17952
17953         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17954
17955 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17956
17957         * faces.h (FACE_STRIKETHRU_P): Added.
17958
17959         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17960         of font variants.
17961
17962         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17963         (mswindows_set_dc_font): New function, aware of font variants,
17964         separated from mswindows_update_dc.
17965
17966         * objects-msw.h (struct mswindows_font_instance_data): Added
17967         definition.
17968
17969         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17970         cached fonts and the data structure.
17971         (mswindows_initialize_font_instance): Added creation of font data
17972         structure.
17973         (mswindows_print_font_instance): Print at least something.
17974         (mswindows_create_font_variant): Implemented.
17975         (mswindows_get_hfont): Implemented.
17976
17977 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17978
17979         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17980         prototyping problem with msvc.
17981
17982         * emacs.c (main_1): added syms_of_gui_mswindows() call
17983
17984         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17985         syms_of_gui_mswindows() function
17986
17987         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17988
17989 2000-01-18  Martin Buchholz <martin@xemacs.org>
17990
17991         * XEmacs 21.2.27 is released.
17992
17993 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17994
17995         * glyphs-eimage.c (struct tiff_error_struct):
17996         (tiff_error_func):
17997         (tiff_warning_func):
17998         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17999
18000         * unexmips.c:
18001         * unexhp9k3.c:
18002         * unexfreebsd.c:
18003         * unexec.c: Remove vestigial Lucid C code.
18004         * unexalpha.c:
18005         * unexaix.c:
18006         * termcap.c:
18007         * libsst.c: Ansify.
18008         Remove declarations of errno and strerror().
18009
18010         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
18011
18012         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
18013
18014 2000-01-16  Martin Buchholz  <martin@xemacs.org>
18015
18016         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
18017         Optimize.
18018
18019 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18020
18021         * md5.c:
18022         * file-coding.c:
18023         * file-coding.h:
18024         Change enum eol_type to eol_type_t.
18025
18026 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18027
18028         * gui.c (get_gui_callback): Check cons before accessing car.
18029
18030 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18031
18032         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
18033         (XSETSPECIFIER_TYPE): Ditto.
18034
18035 2000-01-17  Didier Verna  <didier@xemacs.org>
18036
18037         * redisplay.c (generate_fstring_runes): compute string size in
18038         characters, not bytes.
18039
18040 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18041
18042         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
18043
18044 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
18045
18046         * print.c (print_error_message): Call print_prepare().
18047
18048 2000-01-14  Martin Buchholz  <martin@xemacs.org>
18049
18050         * .dbxrc: Renamed from dbxrc.
18051
18052         * events.c (event_to_character):
18053         Use `assert (foo)' instead of `if (!foo) abort()'
18054
18055         * .gdbinit (xtype): Add documentation.
18056         * .gdbinit (check-temacs): New function.
18057         * .gdbinit (check-xemacs): New function.
18058         * dbxrc (check-xemacs): New function.
18059         * dbxrc (check-xemacs): New function.
18060
18061 2000-01-14  Andy Piper  <andy@xemacs.org>
18062
18063         * glyphs-widget.c (widget_query_geometry): Make sure that we
18064         calculate default dimensions correctly.
18065
18066 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18067
18068         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
18069
18070         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
18071         pdump_wire'd variable.
18072
18073         * emacs.c: (main_1): Conditionalized calls to
18074         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
18075
18076 2000-01-13  Martin Buchholz  <martin@xemacs.org>
18077
18078         * window.c (Fset_window_configuration):
18079         * sysdep.c (_start):
18080         * input-method-motif.c (res):
18081         * event-Xt.c (Xt_process_to_emacs_event):
18082         Simple compiler warning fixes.
18083
18084         * bytecode.c (funcall_compiled_function): Use the original
18085         function symbol on the backtrace list in preference to the
18086         compiled_function object in error messages.
18087
18088 2000-01-13  Andy Piper  <andy@xemacs.org>
18089
18090         * glyphs-x.c (update_widget_face): Make sure we update the widget
18091         background as well as foreground.
18092
18093 2000-01-13  Andy Piper  <andy@xemacs.org>
18094
18095         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
18096         fields to subwindow.
18097         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
18098         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
18099         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18100         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18101
18102         * glyphs-widget.c (check_valid_tab_orientation): new function.
18103         (initialize_widget_image_instance): zero orientation and
18104         justification.
18105         (widget_instantiate): pick up orientation.
18106         (tab_control_query_geometry): return appropriate values for
18107         vertical tabs.
18108
18109         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
18110         appropriate creation flags for left, right and bottom tabs.
18111
18112         * s/cygwin32.h: add tab definitions.
18113
18114 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18115
18116         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
18117         frame upon hiding a subwindow.
18118         (mswindows_button_instantiate): Changed the push button style to
18119         BS_PUSHBUTTON.
18120         (mswindows_button_instantiate): Removed button BS_NOTIFY
18121         style.
18122         (mswindows_button_instantiate): Removed redundant check for
18123         a disabled gui item.
18124         (mswindows_button_instantiate): Made use of WS_TABSTOP
18125         consistent: "operable" controls (edit, button, tree, scroll) have
18126         this style, "display-only" ones (static, progress gauge) do
18127         not. This style is currently ignored by XEmacs though. Also,
18128         removed the WS_EX_CONTROLPARENT style - it is not for children,
18129         it is for their parents!
18130         (mswindows_edit_field_instantiate): Ditto.
18131         (mswindows_progress_gauge_instantiate): Ditto.
18132         (mswindows_tree_view_instantiate): Ditto.
18133         (mswindows_tab_control_instantiate): Ditto.
18134         (mswindows_scrollbar_instantiate): Ditto.
18135         (mswindows_combo_box_instantiate): Ditto.
18136         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
18137         style to the "clip" window.
18138         (mswindows_button_instantiate): Removed compilation warning by
18139         equally typing terms of the ?: operator.
18140
18141 2000-01-12  Didier Verna  <didier@xemacs.org>
18142
18143         * redisplay.c (generate_fstring_runes): new parameter holding the
18144         last modeline-format extent.
18145         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
18146         extent, fill the glyph block with it.
18147         (generate_fstring_runes): handle these parameters.
18148         (generate_formatted_string_db): ditto.
18149
18150         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
18151         glyphs'extents in the modeline.
18152
18153 1999-01-11  Mike Woolley  <mike@bulsara.com>
18154
18155         * ntheap.c: Reduced the reserved heap space from 1Gb down to
18156         256Mb, as a workaround for the non-starting problem many people
18157         have experienced.
18158
18159 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18160
18161         * console-tty.c (Fset_console_tty_output_coding_system):
18162         Force redrawing tty frame.
18163
18164 2000-01-10  Didier Verna  <didier@xemacs.org>
18165
18166         * redisplay.c (generate_fstring_runes): fix size computation bug.
18167
18168 2000-01-09  William M. Perry <wmperry@aventail.com>
18169
18170         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
18171
18172 2000-01-09  Andy Piper  <andy@xemacs.org>
18173
18174         * glyphs-msw.c: index -> i to avoid shadows.
18175         (xbm_create_bitmap_from_data): make static.
18176         (check_valid_string_or_int): deleted.
18177         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
18178
18179         * glyphs-x.c (x_update_subwindow): remove unused args.
18180
18181         * glyphs.c (glyph_image_instance): return the thing. Don't set the
18182         back pointer - this is done in allocate_image_instance.
18183         (query_string_font): return Qnil to make the compiler happy.
18184         (unmap_subwindow): set to ~0 to make the compiler happy.
18185         (glyph_query_geometry): comment out until used.
18186         (glyph_layout): ditto.
18187
18188 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18189
18190         * insdel.c (signal_after_change): Remove extraneous unbind_to().