update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2011-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * text-coding.c (char_encode_as_entity_reference): Don't use
4         `DECODE_CHAR' to detect isolated characters.
5
6         * mule-charset.c (charset_code_point): Change the third argument
7         `defined_only' to `accepted_mode'; `accepted_mode' can be
8         CHAR_ISOLATED_ONLY, CHAR_ALL or CHAR_DEFINED_ONLY.
9
10         * char-ucs.h (CHAR_ISOLATED_ONLY): New macro.
11         (CHAR_ALL): New macro.
12         (CHAR_DEFINED_ONLY): New macro.
13
14 2011-03-14  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
15
16         * chartab.c (Fchar_feature_base_name_eq): New function when
17         UTF2000 is enabled.
18         (Fput_char_attribute): Use `Fchar_feature_base_name_eq'.
19         (syms_of_chartab): Add new builtin function
20         `char-feature-base-name=' when UTF2000 is enabled.
21
22 2011-02-17  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
23
24         * text-coding.c (Vdecomposition_feature_list): New variable when
25         UTF2000 is defined.
26         (char_encode_utf8): Refer variable `decomposition-feature-list'
27         instead of `=decomposition' feature.
28         (vars_of_file_coding): Add new variable
29         `decomposition-feature-list' when UTF2000 is defined.
30
31 2011-02-16  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
32
33         * chartab.c (Fput_char_attribute): Support `=decomposition@FOO' as
34         `=decomposition' feature.
35
36 2011-02-12  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
37
38         * mule-charset.c (Fmake_charset): Fix problem for 94^n or 96^n
39         coded-charsets with builtin characters.
40
41 2011-02-09  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
42
43         * text-coding.c (Qrep_decomposition): New extern.
44         (char_encode_utf8): Try to encode as combing sequence (or IVS).
45
46 2011-01-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
47
48         * concord.c (Fconcord_genre_ds): Add "#ifdef HAVE_LIBCHISE" ...
49         "#endif" for code to refer Vchise_system_db_directory.
50
51 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
52
53         * concord.c (Fconcord_object_put): Use `member' instead of `memq'.
54         (Fconcord_object_adjoin): New function.
55         (Fconcord_object_adjoinX): New function.
56         (syms_of_concord): Defsubred `Fconcord_object_adjoin' and
57         `Fconcord_object_adjoinX'.
58
59 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
60
61         * concord.c:
62         - Include "elconcord.h".
63         - Move EXFUNs for `Fconcord_decode_object', `Fconcord_object_put'
64           and `Fconcord_object_get' to elconcord.h.
65         (Lisp_CONCORD_DS): Moved to elconcord.h.
66         (struct Lisp_CONCORD_DS): Ditto.
67         (XCONCORD_DS): Ditto.
68         (XSET_CONCORD_DS): Ditto.
69         (CONCORD_DS_P): Ditto.
70         (CHECK_CONCORD_DS): Ditto.
71         (CONCHECK_CONCORD_DS): Ditto.
72         (Lisp_CONCORD_Object): Ditto.
73         (struct Lisp_CONCORD_Object): Ditto.
74         (XCONCORD_OBJECT): Ditto.
75         (XSET_CONCORD_OBJECT): Ditto.
76         (CONCORD_OBJECT_P): Ditto.
77         (CHECK_CONCORD_OBJECT): Ditto.
78         (CONCHECK_CONCORD_OBJECT): Ditto.
79         (CONCORD_OBJECT_GENRE): Ditto.
80         (CONCORD_OBJECT_ID): Ditto.
81         (XCONCORD_OBJECT_ID): Ditto.
82         (XCONCORD_OBJECT_GENRE): Ditto.
83         (concord_object_equal): New function.
84         (LRECORD_IMPLEMENTATION of "concord_object"): Use
85         `concord_object_equal'.
86
87         * elconcord.h: New file.
88
89 2010-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
90
91         * concord.c (print_concord_object): Use readable form even if
92         `print-readably' is nil.
93
94 2010-11-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
95
96         * concord.c (print_concord_object): Don't display location of
97         data-source when `print-readably' is nil.
98
99 2010-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
100
101         * concord.c (Fconcord_genre_ds): Use Vchise_system_db_directory as
102         the default location of data-source.
103         (complex_vars_of_concord): Use Vchise_system_db_directory to
104         assign genre `character' and `feature'.
105
106         * chartab.h (Vchise_system_db_directory): New extern when
107         HAVE_CONCORD is defined.
108
109 2010-09-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
110
111         * concord.c: Include <chise.h> if HAVE_LIBCHISE is defined.
112         (Qcharacter): New variable when HAVE_LIBCHISE is defined.
113         (Qfeature): Ditto.
114         (Fconcord_object_genre): New function.
115         (syms_of_concord):
116         - Add new builtin symbols `character' and `feature' when
117           HAVE_LIBCHISE is defined.
118         - Add Add new builtin function `concord-object-genre'.  
119         (complex_vars_of_concord): New function; assign genres `character'
120         and `feature' when HAVE_LIBCHISE is defined.
121
122 2010-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
123
124         * emacs.c (main_1): Call `complex_vars_of_concord' when
125         HAVE_CONCORD is defined.
126
127         * symsinit.h (complex_vars_of_concord): New prototype.
128
129 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
130
131         * chartab.c (allocate_character): Add `static'.
132
133 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
134
135         * chartab.c (allocate_character): New function.
136         (Fdefine_char): Use allocate_character().
137
138 2010-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
139
140         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.25
141         (Ōkawara).
142
143 2010-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
144
145         * chartab.c (save_uint8_byte_table): Fixed problem when a property
146         is unloaded.
147         (save_uint16_byte_table): Likewise.
148
149 2010-02-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
150
151         * chartab.c (Fchar_feature_property): New function when LIBCHISE
152         is enabled.
153         (Fput_char_feature_property): Likewise.
154         (syms_of_chartab): Add new builtin functions
155         `char-feature-property' and `put-char-feature-property' when
156         LIBCHISE is enabled.
157
158 2009-04-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
159
160         * mule-charset.c (Fmake_charset): Add DOC-string of 'iso-ir and
161         '=>iso-ir.
162         (Fcharset_property): Regard '=>iso-ir as same as `iso_ir.
163
164 2009-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
165
166         * mule-charset.c (Qto_iso_ir): New variable for XEmacs CHISE.
167         (make_charset): Add new argument `iso_ir'.
168         (Fmake_charset): Add new property `=>iso-ir' in XEmacs CHISE.
169         (Fmake_reverse_direction_charset): Copy CHARSET_ISO_IR(cs) in
170         XEmacs CHISE.
171         (Fcharset_property): Support `iso-ir' in XEmacs CHISE.
172         (syms_of_mule_charset): Add new builtin symbol `=>iso-ir' in
173         XEmacs CHISE.
174         (complex_vars_of_mule_charset): Specify argument `iso_ir' of
175         function `make_charset'.
176
177         * char-ucs.h (LEADING_BYTE_*): Enclose negative value with ( ).
178         (struct Lisp_Charset): Add new member `iso_ir'.
179         (CHARSET_ISO_IR): New macro.
180
181 2009-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
182
183         * mule-charset.c (Fdecode_char): Fix problem when decoding GR
184         code-point by GL charset.
185
186 2008-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
187
188         * concord.c (concord_id_validate): New function.
189         (structure_type_create_concord): Use `concord_id_validate' instead
190         of `concord_name_validate' to accept integer and character as =id.
191
192 2008-09-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
193
194         * concord.c (func_for_each_object): Fix bug about GC-protection.
195
196 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
197
198         * concord.c (Fconcord_object_put): Check argument FEATURE is a
199         symbol.
200
201 2008-09-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
202
203         * text-coding.c (struct decoding_stream): Add new member
204         `bom_flag' in XEmacs CHISE.
205         (reset_decoding_stream): Ignore U+FEFF in the beginning of stream
206         in XEmacs CHISE.
207
208 2008-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
209
210         * mule-charset.c: Move definition of `=jis-x0208@1978' to
211         lisp/mule/mule-conf.el.
212
213 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
214
215         * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
216         (make_charset): Add new argument `partial'.
217         (Fmake_charset): Add new property 'partial in XEmacs CHISE.
218         (Fmake_reverse_direction_charset): Modify for `make_charset'.
219         (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
220         CHISE.
221         (complex_vars_of_mule_charset): Modify for `make_charset'; specify
222         `=jis-x0208' as a partial coded-charset.
223
224 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
225
226         * text-coding.c (decode_add_er_char): Fix problem when a character
227         represented by an entity-reference is not defined.
228
229 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
230
231         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
232         Qrep_*.
233
234 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
235
236         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
237         (Kasagi).
238
239 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
240
241         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
242         is a relation feature.
243
244 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
245
246         * chartab.c (syms_of_chartab): Define
247         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
248
249         * chartab.h (Q_denotational): New extern when UTF2000 or
250         HAVE_CONCORD is defined.
251         (Q_denotational_from): Likewise.
252         (Q_subsumptive): Likewise.
253         (Q_subsumptive_from): Likewise.
254
255 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
256
257         * concord.c (concord_object_put): New function.
258         (Fconcord_object_put): Use `concord_object_put'.
259
260 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
261
262         * concord.c (Fconcord_define_object): New function.
263         (syms_of_concord): Add new builtin function
264         `concord-define-object'.
265
266 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
267
268         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
269         (Kamo).
270
271 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
272
273         * concord.c: Add EXFUN for Fconcord_object_get.
274         (Vconcord_genre_object_hash_table): New variable.
275         (concord_genre_cache_get_object): New function.
276         (concord_genre_cache_put_object): New function.
277         (Fconcord_make_object): Use object cache; put object-ID into `=id'
278         feature.
279         (Fconcord_object_put): Call `concord_index_sync' after
280         `concord_index_strid_put_obj'.
281         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
282
283 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
284
285         * concord.c (Fconcord_decode_object): Do GCPRO for
286         Fconcord_make_object.
287         (func_for_each_object): Likewise; do GCPRO for
288         for_each_object_closure->function.
289         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
290         for_each_object_closure->function, for_each_object_closure->genre,
291         for_each_object_closure->ds and for_each_object_closure->ret.
292         (concord_object_validate): Do GCPRO for Fconcord_make_object.
293
294 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
295
296         * concord.c: Add EXFUNs for Fconcord_decode_object and
297         Fconcord_object_put.
298         (Fconcord_make_object): Change order of arguments.
299         (Fconcord_decode_object): Modify for Fconcord_make_object.
300         (func_for_each_object): Likewise.
301         (concord_object_validate): Likewise.
302         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
303
304 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
305
306         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
307
308 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
309
310         * concord.c (Fconcord_decode_object): Try to use readable print
311         form as a key of Concord-index.
312         (Fconcord_object_get): Try to use readable print form as an ID of
313         Concord-object.
314         (Fconcord_object_put): Try to use readable print form as an ID of
315         Concord-object and a feature value.
316         (Fconcord_object_spec): Try to use readable print form as an ID of
317         Concord-object.
318
319 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
320
321         * concord.c (print_concord_object): Support readable form.
322
323 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
324
325         * emacs.c (main_1): Call `structure_type_create_concord' when
326         HAVE_CONCORD is defined.
327
328         * symsinit.h (structure_type_create_concord): New prototype.
329
330         * concord.c (Qconcord_object): New variable.
331         (Qgenre): Likewise.
332         (Q_id): Likewise.
333         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
334         for directory.
335         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
336         char*> for genre-name.
337         (Fconcord_feature_list): Likewise.
338         (Fconcord_make_object): Likewise.
339         (Fconcord_decode_object): Likewise; use <char*> instead of
340         <unsigned char*> for feature_name and strid.
341         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
342         c_obj and feature_name.
343         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
344         char*> for c_value.
345         (struct closure_for_object_spec): Use <char*> instead of <unsigned
346         char*> for member `object_id'.
347         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
348         char*> for feature-name.
349         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
350         for c_obj.
351         (func_for_each_object): Cast to avoid warnings.
352         (Fconcord_foreach_object_in_feature): Use <char*> instead of
353         <unsigned char*> for genre_name and feature_name.
354         (concord_name_validate): New function.
355         (concord_object_validate): Likewise.
356         (concord_object_instantiate): Likewise.
357         (syms_of_concord): Add new builtin symbols `concord-object',
358         `genre' and `=id'.
359         (structure_type_create_concord): New function.
360
361 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
362
363         * concord.c (Vconcord_ds_hash_table): New variable.
364         (Vconcord_genre_hash_table): New variable.
365         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
366         (Fconcord_ds_directory): New function.
367         (Fconcord_assign_genre): New function.
368         (Fconcord_genre_directory): New function.
369         (Fconcord_genre_ds): New function.
370         (Fconcord_feature_list): Allow to omit `ds'.
371         (Fconcord_make_object): Likewise.
372         (Fconcord_decode_object): Likewise.
373         (Fconcord_foreach_object_in_feature): Likewise.
374         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
375         Fconcord_assign_genre, Fconcord_genre_directory and
376         Fconcord_genre_ds.
377         (vars_of_concord): Setup Vconcord_ds_hash_table and
378         Vconcord_genre_hash_table.
379
380 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
381
382         * concord.c (struct closure_for_each_object): Add new member
383         `ret'.
384         (func_for_each_object): Setup the return value to
385         `for_each_object_closure->ret'.
386         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
387         returns the value instead of Qt.
388
389 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
390
391         * concord.c: New file.
392
393 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
394
395         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
396         `lrecord_type_concord_object'.
397
398 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
399
400         * symsinit.h (syms_of_concord): New prototype.
401         (vars_of_concord): New prototype.
402
403         * emacs.c (main_1): Setup symbols and variable about concord if
404         HAVE_CONCORD is defined.
405
406         * config.h.in (HAVE_CONCORD): New macro.
407
408 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
409
410         * chartab.c (Fput_char_attribute): For each character relation
411         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
412
413 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
414
415         * chartab.c (Fput_char_attribute): Use
416         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
417         calling `put_char_composition'.
418
419 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
420
421         * chartab.c (Q_halfwidth_of): New variable.
422         (put_char_composition): Return `<-halfwidth' instead of
423         `=decomposition' for compatibility mapping to single character
424         tagged `narrow'.
425         (Fput_char_attribute): Convert char-specs in value of
426         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
427         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
428         for `<-halfwidth'.
429         (syms_of_chartab): Add new symbol `<-halfwidth'.
430
431 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
432
433         * chartab.c (put_char_composition): Return
434         `<-formed@{isolated|initial|medial|final}' for compatibility
435         mapping to single character tagged
436         `{isolated|initial|medial|final}'.
437
438 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
439
440         * chartab.c (Q_compat_of): Deleted.
441         (put_char_composition): Return `<-FOO' for compatibility mapping
442         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
443         of `symbol_name (XSYMBOL(...))'.
444         (Fput_char_attribute): Convert char-specs in value of
445         `{<-|->}font[^*]*' to characters and put reverse links.
446         (Fsave_char_attribute_table): Don't refer Q_compat_of.
447         (syms_of_chartab): Delete builtin symbol `<-compat'.
448
449 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
450
451         * chartab.c (Q_circled_of): New variable.
452         (put_char_composition): Return `<-circled' instead of
453         `=decomposition' for compatibility mapping to single character
454         tagged `circle'.
455         (Fput_char_attribute): Convert char-specs in value of
456         `{<-|->}circled[^*]*' to characters and put reverse links.
457         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
458         for `<-circled'.
459         (syms_of_chartab): Add new symbol `<-circled'.
460
461 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
462
463         * chartab.c (Qto_decomposition_at_circled): New variable.
464         (put_char_composition): Return `=>decomposition@circled' instead
465         of `=decomposition' for compatibility decomposition mapping tagged
466         `circle'.
467         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
468
469 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
470
471         * chartab.c (Q_subscript_of): New variable.
472         (put_char_composition): Return `<-subscript' instead of
473         `=decomposition' for compatibility mapping to single character
474         tagged `sub'.
475         (Fput_char_attribute): Convert char-specs in value of
476         `{<-|->}subscript[^*]*' to characters and put reverse links.
477         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
478         for `<-subscript'.
479         (syms_of_chartab): Add new symbol `<-subscript'.
480
481 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
482
483         * chartab.c (Q_superscript_of): New variable.
484         (put_char_composition): Return `<-superscript' instead of
485         `=decomposition' for compatibility mapping to single character
486         tagged `super'.
487         (Fput_char_attribute): Convert char-specs in value of
488         `{<-|->}superscript[^*]*' to characters and put reverse links.
489         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
490         for `<-superscript'.
491         (syms_of_chartab): Add new symbol `<-superscript'.
492
493 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
494
495         * chartab.c (Qto_decomposition_at_compat): Deleted.
496         (Qto_decomposition_at_superscript): New variable.
497         (put_char_composition): Use `=>decomposition@superscript' instead
498         of `=decomposition' for compatibility decomposition mapping tagged
499         `super'.
500         (Fput_char_attribute): Fix condition about `put_char_composition'.
501         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
502         add news symbol `=>decomposition@superscript'.
503
504 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
505
506         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
507         for compatibility decomposition mapping tagged FOO.
508         (Fput_char_attribute): Modify for `put_char_composition'.
509
510 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
511
512         * chartab.c (Qto_decomposition_at_compat): New variable.
513         (Q_compat_of): Renamed from `Q_compatibility_of'.
514         (put_char_composition): Rename `Q_compatibility_of' to
515         `Q_compat_of'; return `=>decomposition@compat' for compatibility
516         decomposition mapping.
517         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
518         `Q_compat_of'.
519         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
520         `<-compatibility' to `<-compat'.
521
522 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
523
524         * chartab.c (Q_compatibility_of): New variable.
525         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
526         object is proved to be a cons cell; return `<-compatibility' if
527         the first element of argument `value' is `compat'.
528         (Fput_char_attribute): Eliminate the first value if
529         `put_char_composition' returns `<-compatibility'.
530         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
531         for `<-compatibility'.
532         (syms_of_chartab): Add new symbol `<-compatibility'.
533
534 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
535
536         * chartab.c (Q_canonical): New variable.
537         (put_char_composition): Return a feature name: return
538         `->canonical' if argument `value' specifies single character.
539         (Fput_char_attribute): Use `put_char_composition' to determine
540         feature name for `=decomposition' or `->denotational'.
541         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
542         for `->canonical'.
543         (syms_of_chartab): Add new symbol `->canonical'.
544
545 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
546
547         * chartab.c (Qmap_decomposition): New variable.
548         (Fput_char_attribute): Convert `->decomposition' to
549         `=decomposition'.
550         (syms_of_chartab): Add new symbol `=decomposition'.
551
552 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
553
554         * chartab.c (Fget_range_char_table): Fix serious problem when
555         `range' is nil.
556
557 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
558
559         * chartab.c (char_table_get_db): Use `read_from_c_string'.
560
561 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
562
563         * lread.c (read_from_c_string): New function.
564
565         * lisp.h (read_from_c_string): New prototype.
566
567 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
568
569         * chartab.c (Fput_char_attribute): Convert char-specs in value of
570         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
571         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
572         for `{<-|->}Oracle-Bones[^*]*'.
573
574 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
575
576         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
577         (Kizu).
578
579 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
580
581         * text-coding.c (Qccs_priority_list): New variable in XEmacs
582         CHISE.
583         (Fmake_coding_system): Support new property `ccs-priority-list' in
584         XEmacs CHISE.
585         (Fcoding_system_property): Likewise.
586         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
587         Vdefault_coded_charset_priority_list in XEmacs CHISE.
588         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
589         XEmacs CHISE.
590         (complex_vars_of_file_coding): Define new coding-system-property
591         `ccs-priority-list' in XEmacs CHISE.
592
593         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
594
595 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
596
597         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
598         changed to normal function.
599         (encode_char_2): Likewise.
600
601         * mule-charset.c (decoding_table_put_char): Copied from
602         char-ucs.h; changed to normal function.
603         (encode_char_2): Likewise.
604
605 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
606
607         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
608         New extern.
609         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
610         (encode_char_2_search_children): New inline function.
611         (encode_char_2): Refer
612         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
613         and use `encode_char_2_search_children'.
614
615 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
616
617         * mule-charset.c
618         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
619         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
620         (vars_of_mule_charset): Add new variable
621         `display-coded-charset-priority-use-inheritance' and
622         `display-coded-charset-priority-use-hierarchy-order'.
623
624 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
625
626         * char-ucs.h (Q_subsumptive): New extern.
627         (Q_denotational): Likewise.
628         (encode_char_2): Search children specified by `->subsumptive' and
629         `->denotational'.
630
631 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
632
633         * mule-charset.c (complex_vars_of_mule_charset): Modify the
634         X-registry of `ucs-bmp'.
635
636 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
637
638         * chartab.c (char-variants): Refer `->subsumptive',
639         `->denotational' and `->identical' as same as `->ucs-unified'.
640
641 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
642
643         * chartab.c (Fput_char_attribute): Convert char-specs in value of
644         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
645         links.
646
647 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
648
649         * text-coding.c: Add EXFUN for `Fregexp_quote'.
650         (decode_add_er_char): Fix problem about infinite loop when a CCS
651         specified in `coded-charset-entity-reference-alist' is not
652         existed.
653
654 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
655
656         * mule-charset.c (syms_of_mule_charset): Rename
657         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
658
659 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
660
661         * fns.c (simplify_char_spec): Don't allocate new character-object
662         if specified char_spec does not have any CCS-features.
663
664         * chartab.h: Add EXFUN for Fdefine_char.
665
666         * chartab.c: Delete EXFUN for Fdefine_char.
667
668 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
669
670         * fns.c (simplify_char_spec): Use Fdefine_char instead of
671         Ffind_char for char-spec.
672
673 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
674
675         * lisp-disunion.h (XCHARVAL): Fix condition about
676         SIZEOF_EMACS_INT.
677
678 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
679
680         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
681         <int> for `code'.
682         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
683         point; use <Emchar> instead of <int> for character-id.
684
685 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
686
687         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
688         (make_char): Likewise.
689         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
690         environment.
691         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
692         instead of <int> as the type of return value; use <Lisp_Object>
693         instead of <Emchar> as the type of argument.
694         (XCHARVAL[macro version]): Cast the result into <Emchar>.
695
696         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
697         syntaxcode> instead of <int>.
698
699 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
700
701         * chartab.c (put_char_composition): Use DECODE_CHAR to get
702         character corresponding with UCS code point.
703         (Fput_char_attribute): Likewise.
704
705         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
706         character in the UCS decoding-table if the char-id is not equal to
707         the UCS code point.
708
709 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
710
711         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
712         for aliases; write `description'; write
713         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
714         not 0.
715
716 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
717
718         * chartab.c (Fsave_char_attribute_table): Don't use
719         `save_charset_properties'.
720
721         * mule-charset.c (Fsave_charset_properties): Renamed from
722         `save_charset_properties' and changed to Lisp function again;
723         write property `type' as `CCS'; write properties `final-byte' and
724         `mother' if they exists.
725         (syms_of_mule_charset): Revive builtin function
726         `save-charset-properties' when HAVE_LIBCHISE is defined.
727
728 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
729
730         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
731         instead of Vexec_directory.
732         (char_attribute_system_db_file): Likewise.
733
734 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
735
736         * chartab.c (Fsave_char_attribute_table): Use
737         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
738         defined.
739
740         * mule-charset.c (save_charset_properties): Renamed from
741         `Fsave_charset_properties'; changed to non-Lisp function.
742         (syms_of_mule_charset): Abolish builtin function
743         `save-charset-properties'.
744
745 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
746
747         * mule-charset.c (Fsave_charset_properties): New function when
748         HAVE_LIBCHISE is defined.
749         (syms_of_mule_charset): Add new builtin function
750         `save-charset-properties' when HAVE_LIBCHISE is defined.
751
752 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
753
754         * chartab.c (Fput_char_attribute): Convert char-specs in value of
755         `{<-|->}ancient[^*]*' to characters and put reverse links.
756         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
757         for `{<-|->}ancient[^*]*'.
758
759 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
760
761         * chartab.c (Fput_char_attribute): Convert char-specs in value of
762         `{<-|->}original[^*]*' to characters and put reverse links.
763         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
764         for `{<-|->}original[^*]*'.
765
766 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
767
768         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
769
770 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
771
772         * mule-charset.c (Qsystem_char_id): New variable.
773
774         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
775         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
776
777 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
778
779         * chartab.c (Fput_char_attribute): When processing a reference of
780         a character, put into the end of the reversed reference of each
781         target character.
782
783 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
784
785         * chartab.c (Q_same): Deleted.
786         (Q_same_of): Deleted.
787         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
788         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
789         for `{<-|->}same'.
790         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
791
792 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
793
794         * chartab.c (Q_vulgar): Deleted.
795         (Q_vulgar_of): Deleted.
796         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
797         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
798         for `{<-|->}vulgar'.
799         (syms_of_chartab): Don't define `{<-|->}vulgar'.
800
801 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
802
803         * chartab.c (Fput_char_attribute): Convert char-specs in value of
804         `{<-|->}wrong[^*]*' to characters and put reverse links.
805         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
806         for `{<-|->}wrong[^*]*'.
807
808 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
809
810         * chartab.c (Q_vulgar): New variable.
811         (Q_vulgar_of): New variable.
812         (Fput_char_attribute): Convert char-specs in value of
813         `{->|<-}vulgar' to characters and put reverse links.
814         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
815         for `{->|<-}vulgar'.
816         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
817
818 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
819
820         * text-coding.c (decode_add_er_char): Must to quote prefix string
821         as regexp.
822
823 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
824
825         * mule-charset.c (put_char_ccs_code_point): Store characters of
826         =ucs whose code_points >= 0xF0000.
827
828 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
829
830         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
831         CHISE.
832         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
833         CHISE.
834         (complex_vars_of_mule_charset): Add new coded-charset
835         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
836         builtin characters over 0xEFFFF.
837
838         * chartab.c (syms_of_chartab): Don't define symbol
839         `system-char-id' in every case.
840
841         * char-ucs.h (Qsystem_char_id): New extern variable.
842         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
843
844 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
845
846         * text-coding.c (char_encode_utf8): Try to use entity-references
847         for U-000F0000 ...  U-0010FFFF.
848
849 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
850
851         * text-coding.c (ER_BUF_SIZE): New macro.
852         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
853         `er_buf'.
854         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
855         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
856
857 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
858
859         * chartab.c (find_char_feature_in_family): New function.
860         (Fchar_feature): Use `find_char_feature_in_family' with
861         `->identical', `<-subsumptive' and `<-denotational'.
862
863 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
864
865         * text-coding.c (char_encode_as_entity_reference): Allow prefix
866         within 8 characters; fix infinite loop.
867
868 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
869
870         * chartab.c (Q_same): New variable.
871         (Q_same_of): New variable.
872         (Fput_char_attribute): Convert char-specs in value of
873         `{->|<-}same' to characters and put reverse links.
874         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
875         for `{->|<-}same'.
876         (syms_of_chartab): Add new symbols `{->|<-}same'.
877
878 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
879
880         * chartab.c (Q_component): New variable.
881         (Q_component_of): Likewise.
882         (Fput_char_attribute): Convert char-specs in value of
883         `{->|<-}ideographic-component-forms' to characters and put reverse
884         links.
885         (syms_of_chartab): Add new symbols
886         `{->|<-}ideographic-component-forms'.
887
888 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
889
890         * chartab.c (Q_identical): New variable.
891         (Q_identical_from): New variable.
892         (Fchar_feature): Regard `->identical' as a feature to find
893         ancestors.
894         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
895         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
896         for `{->|<-}identical'.
897         (syms_of_chartab): Add new symbols `{->|<-}identical'.
898
899 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
900
901         * char-ucs.h (encode_char_2): New inline function.
902         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
903
904 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
905
906         * chartab.c (Fput_char_attribute): Convert char-specs to
907         characters in value of `ideographic-structure'.
908         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
909         for `{<-|->}simplified(@...)'.
910         (Fdefine_char): Try to use predefined character's id.
911
912 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
913
914         * fns.c (simplify_char_spec): Try to convert builtin chars to
915         defined chars.
916
917 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
918
919         * chartab.c (Fput_char_attribute): Convert char-specs in value of
920         `<-simplified[^*]*' to characters and put reverse links.
921
922 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
923
924         * chartab.c (Q_subsumptive): Renamed from Q_unified.
925         (Q_subsumptive_from): Renamed from Q_unified_from.
926         (Fchar_feature): Use `Q_subsumptive_from' instead of
927         `Q_unified_from'.
928         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
929         `Q_unified'.
930         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
931         `<-unified' to `<-subsumptive'.
932
933 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
934
935         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
936         inheritance itself; fix typo; stop recursive search if cyclic
937         inheritance is found.
938
939 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
940
941         * chartab.c (Q_denotational): New variable.
942         (Q_denotational_from): New variable.
943         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
944         (put_char_attribute): New function.
945         (Fput_char_attribute): Use `put_char_attribute'; regard
946         `->denotational' and `<-denotational' as same as `->unified' and
947         `<-unified'.
948         (syms_of_chartab): Add new symbols `->denotational' and
949         `<-denotational'.
950
951 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
952
953         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
954         `Fget_char_attribute'.
955         (Fchar_variants): Likewise.
956         (get_char_table): Likewise.
957         (Fchar_feature): New function.
958         (put_char_composition): Use `Fchar_feature' instead of
959         `Fget_char_attribute'.
960         (Fput_char_attribute): Likewise; don't put the target character
961         into its `->unified' value.
962         (syms_of_chartab): Add new builtin function `char-feature'.
963
964 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
965
966         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
967         `Fget_char_attribute'.
968         (char_encode_utf8): Likewise.
969
970         * chartab.h: Add an EXFUN for `Fchar_feature'.
971
972 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
973
974         * chartab.c (Vnext_defined_char_id): New variable.
975         (Fput_char_attribute): Accept characters in `->unified'.
976         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
977         new characters which are not related with builtin char-id ranges.
978         (vars_of_chartab): Add new variable `next-defined-char-id'.
979
980 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
981
982         * chartab.c (Q_unified): New variable.
983         (Q_unified_from): New variable.
984         (Fput_char_attribute): Add code for `->unified'.
985         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
986         XEmacs CHISE.
987
988 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
989
990         * mule-charset.c (decode_ccs_conversion): New function.
991         (decode_defined_char): Use `decode_ccs_conversion'.
992         (decode_builtin_char): Likewise.
993
994 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
995
996         * char-ucs.h: Change some charset-ids of private coded-charsets.
997
998 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
999
1000         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
1001         (char_encode_as_entity_reference): Likewise.
1002         (decode_coding_big5): Modify for `decode_defined_char' and
1003         `DECODE_CHAR'.
1004         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
1005         avoid compiler warning.
1006         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
1007
1008         * mule-charset.c (decode_defined_char): Add new argument
1009         `without_inheritance'.
1010         (Fdecode_char): Add new optional argument `without_inheritance'.
1011         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1012
1013         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
1014         (simplify_char_spec): Likewise.
1015
1016         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
1017         setting.
1018
1019         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
1020         (map_char_table): Likewise.
1021         (Fdefine_char): Use `Fdecode_char' without inheritance.
1022         (Ffind_char): Modify for `Fdecode_char'.
1023
1024         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
1025
1026         * char-ucs.h (decode_defined_char): Add new argument
1027         `without_inheritance'.
1028         (DECODE_CHAR): Likewise.
1029         (MAKE_CHAR): Modify for `DECODE_CHAR'.
1030
1031 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1032
1033         * chartab.c (Vchise_system_db_directory): New variable.
1034         (vars_of_chartab): Add new variable `chise-system-db-directory'.
1035
1036 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1037
1038         * chartab.c: EXFUN `Fmount_char_attribute_table'.
1039         (print_chartab_range): Don't define when `UTF2000' is defined.
1040         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
1041         `CHISE_DS_open'.
1042
1043 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1044
1045         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
1046         and optional argument `rehash' is specified, call
1047         `open_chise_data_source_maybe' before
1048         `chise_ds_foreach_char_feature_name' is called.
1049
1050 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1051
1052         * chartab.c (char_attribute_list_reset_map_func): New function
1053         when HAVE_LIBCHISE is defined.
1054         (Fchar_attribute_list): Add new optional argument `rehash' when
1055         HAVE_LIBCHISE is defined.
1056         (open_chise_data_source_maybe): Use "chise-db" instead of
1057         "char-db".
1058         (char_attribute_system_db_file): Likewise.
1059         (Fload_char_attribute_table): Use
1060         `chise_feature_foreach_char_with_value' instead of
1061         `chise_char_feature_value_iterate'.
1062
1063 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1064
1065         * chartab.c (Vchise_db_directory): New variable.
1066         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
1067
1068 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1069
1070         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
1071         instead of HAVE_CHISE to specify using with libchise.
1072
1073         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
1074
1075         * chartab.h: Don't use HAVE_CHISE_CLIENT.
1076
1077         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
1078         defined or HAVE_LIBCHISE_LIBCHISE is defined.
1079         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
1080         is defined.
1081         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
1082         HAVE_CHISE to specify using with libchise.
1083         (syms_of_chartab): Don't define symbol `system-char-id' when
1084         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
1085
1086 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1087
1088         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1089         specify CHISE DB support.
1090         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
1091         of `char_attribute_system_db_file' to check feature DB file.
1092
1093         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
1094         HAVE_CHISE_CLIENT to specify CHISE DB support.
1095
1096         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
1097         specify CHISE DB support.
1098         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
1099         not defined.
1100         (Freset_char_attribute_table): Use `chise_feature_setup_db'
1101         instead of `char_attribute_system_db_file' to check feature DB
1102         file.
1103
1104 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1105
1106         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
1107         `HAVE_CHISE_CLIENT'.
1108
1109 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1110
1111         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
1112         (Fsave_charset_mapping_table): Don't use
1113         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1114
1115         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
1116         (HAVE_LIBCHISE): New macro.
1117
1118         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
1119
1120         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
1121         (Fsave_char_attribute_table): Don't use
1122         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1123
1124 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1125
1126         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
1127         defined.
1128         (save_uint16_byte_table): Likewise.
1129         (save_byte_table): Likewise.
1130         (char_table_get_db): Use `chise_ds_load_char_feature_value'
1131         instead of `chise_char_load_feature_value'.
1132         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
1133
1134 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1135
1136         * chartab.h (struct Lisp_Char_Table): Delete member
1137         `feature_table' if CHISE is defined.
1138
1139         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
1140         (Fcopy_char_table): Likewise.
1141         (char_table_open_db_maybe): Likewise.
1142         (char_table_close_db_maybe): Likewise.
1143         (char_table_get_db): Likewise.
1144         (Fmount_char_attribute_table): Likewise.
1145         (Fload_char_attribute_table): Likewise.
1146
1147 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1148
1149         * mule-charset.c (load_char_decoding_entry_maybe): Use
1150         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
1151         `chise_ccs_decode'.
1152
1153 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1154
1155         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
1156         instead of `chise_open_data_source'.
1157         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
1158         `chise_ds_close'.
1159
1160 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1161
1162         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
1163         instead of `chise_ds_open_feature_table'.
1164         (char_table_close_db_maybe): Don't use `chise_ft_close'.
1165
1166 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1167
1168         * mule-charset.c (Fsave_charset_mapping_table): Use
1169         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
1170         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
1171         `chise_ccs_sync' instead of `chise_ccst_close'.
1172         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
1173
1174         * chartab.c (open_chise_data_source_maybe): Modify for
1175         `chise_open_data_source'.
1176         (char_table_open_db_maybe): Modify for
1177         `chise_ds_open_feature_table'.
1178
1179 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1180
1181         * mule-charset.c (load_char_decoding_entry_maybe): Use
1182         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
1183         `chise_ccst_close'.
1184
1185 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1186
1187         * mule-charset.c (Fsave_charset_mapping_table): Use
1188         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
1189         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
1190         `chise_dt_put_char' and `chise_dt_close'.
1191         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
1192         `chise_ccs_decode' and `chise_ccst_close' instead of
1193         `chise_ds_open_decoding_table', `chise_dt_get_char' and
1194         `chise_dt_close'.
1195
1196         * chartab.c (char_table_get_db): Use
1197         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
1198         (load_char_attribute_table_map_func): Modify for
1199         `chise_char_feature_value_iterate'.
1200         (Fload_char_attribute_table): Use
1201         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
1202
1203 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1204
1205         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
1206
1207 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1208
1209         * chartab.c (put_char_table): Modify for inherited coded-charsets
1210         in XEmacs CHISE.
1211
1212 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1213
1214         * chartab.c (Fput_char_table_map_function): Fixed.
1215         (word_boundary_p): Don't check charset in XEmacs CHISE.
1216
1217 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1218
1219         * mule-charset.c (Fsave_charset_mapping_table): Use
1220         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1221         instead of `chise_open_decoding_table'; refer
1222         `default_chise_data_source'; use `chise_dt_close' instead of
1223         `chise_close_decoding_table'.
1224         (load_char_decoding_entry_maybe): Likewise.
1225
1226         * chartab.c (default_chise_data_source): New variable when `CHISE'
1227         is defined.
1228         (Fcopy_char_table): `ct->ds' is deleted.
1229         (open_chise_data_source_maybe): New function.
1230         (Fclose_char_data_source): New function.
1231         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1232         use `chise_ds_open_feature_table' instead of
1233         `chise_open_feature_table'.
1234         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1235         `chise_close_feature_table'; `cit->ds' is deleted.
1236         (syms_of_chartab): Add new builtin function
1237         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1238
1239         * chartab.h (default_chise_data_source): New extern variable.
1240         (open_chise_data_source_maybe): New prototype.
1241         (struct Lisp_Char_Table): Delete `ds'.
1242
1243 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1244
1245         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1246         `CHISE' is defined.
1247
1248 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1249
1250         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1251         not defined; add code for non-libchise setting.
1252         (char_table_close_db_maybe): Likewise.
1253         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1254         defined.
1255         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1256         even if `CHISE' is not defined.
1257         (Freset_char_attribute_table): Likewise.
1258         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1259         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1260         `char_table_get_db'.
1261         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1262         `char_table_close_db_maybe' even if `CHISE' is not defined.
1263
1264 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1265
1266         * chartab.c (char_table_open_db_maybe): New function.
1267         (char_table_close_db_maybe): New function.
1268         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1269         (Freset_char_attribute_table): Likewise.
1270         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1271         `char_table_close_db_maybe'.
1272         (Fload_char_attribute_table): Likewise.
1273
1274 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1275
1276         * chartab.c: Don't include <chise.h> because it is included in
1277         chartab.h.
1278         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1279         defined.
1280         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1281         `CHISE' is defined.
1282         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1283         `CHISE' is defined.
1284         (Fclose_char_attribute_table): Close `ct->feature_table' and
1285         `ct->ds' when `CHISE' is defined.
1286         (Freset_char_attribute_table): Likewise.
1287         (load_char_attribute_maybe): Use `cit->ds' and
1288         `cit->feature_table' when `CHISE' is defined.
1289         (Fload_char_attribute_table): Likewise.
1290
1291         * chartab.h: Include <chise.h> when `CHISE' is defined.
1292         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1293         when `CHISE' is defined.
1294
1295 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1296
1297         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1298         is defined.
1299         (char_table_description): Likewise.
1300         (Fmake_char_table): Likewise.
1301         (Fcopy_char_table): Likewise.
1302         (Fmount_char_attribute_table): Likewise.
1303         (Fclose_char_attribute_table): Likewise.
1304         (Freset_char_attribute_table): Likewise.
1305         (load_char_attribute_maybe): Likewise.
1306         (Fload_char_attribute_table): Likewise.
1307
1308         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1309         defined.
1310
1311 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1312
1313         * chartab.c (load_char_attribute_table_map_func): New function
1314         when CHISE is defined.
1315         (Qload_char_attribute_table_map_function): Don't define when CHISE
1316         is defined.
1317         (Fload_char_attribute_table_map_function): Likewise.
1318         (Fload_char_attribute_table): Use libchise when `CHISE' is
1319         defined.
1320         (syms_of_chartab): Don't define
1321         `load-char-attribute-table-map-function' when CHISE is defined.
1322
1323 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1324
1325         * chartab.c: Include <chise.h> when `CHISE' is defined.
1326         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1327
1328 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1329
1330         * mule-charset.c (charset_code_point): Fix problem when searching
1331         in mother CCS fails with `defined_only' mode.
1332
1333 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1334
1335         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1336         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1337         (put_char_composition): Likewise.
1338         (Fput_char_attribute): Likewise.
1339         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1340
1341 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1342
1343         * chartab.c (Q_ucs): Deleted.
1344         (Fput_char_attribute): Don't refer `->ucs'.
1345         (Fdefine_char): Likewise.
1346         (Ffind_char): Likewise.
1347         (syms_of_chartab): Delete `->ucs'.
1348
1349 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1350
1351         * mule-charset.c (Qmap_cns11643_2): Renamed from
1352         `Qchinese_cns11643_2'.
1353         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1354         `chinese-cns11643-2'.
1355         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1356         `=cns11643-2'.
1357
1358 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1359
1360         * mule-charset.c (Qmap_cns11643_1): Renamed from
1361         `Qchinese_cns11643_1'.
1362         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1363         `chinese-cns11643-1'.
1364         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1365         `=cns11643-1'.
1366
1367 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1368
1369         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1370         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1371         `chinese-gb12345'.
1372         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1373         `=gb12345'.
1374
1375 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1376
1377         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1378         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1379         `chinese-gb2312'.
1380         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1381         `=gb2312'.
1382
1383 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1384
1385         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1386         (syms_of_mule_charset): Add new symbol `=big5' instead of
1387         `chinese-big5'.
1388         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1389
1390 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1391
1392         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1393         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1394         `korean-ksc5601'.
1395         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1396         `=ks-x1001'.
1397
1398 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1399
1400         * mule-charset.c (Qmap_jis_x0212): Renamed from
1401         `Qjapanese_jisx0212'.
1402         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1403         `japanese-jisx0212'.
1404         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1405         `=jis-x0212'.
1406
1407 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1408
1409         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1410         `Qjapanese_jisx0208'.
1411         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1412         of `japanese-jisx0208'.
1413         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1414         `=jis-x0208-1983'.
1415
1416 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1417
1418         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1419         `Qjapanese_jisx0208_1978'.
1420         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1421         of `japanese-jisx0208-1978'.
1422         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1423         `=jis-x0208-1978'.
1424
1425 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1426
1427         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1428         only for XEmacs CHISE.
1429
1430 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1431
1432         * char-ucs.h: Compact non-ISO-IR charset-ids.
1433         (LEADING_BYTE_UCS): Changed to -177.
1434         (LEADING_BYTE_CONTROL_1): Changed to -77.
1435         (LEADING_BYTE_UCS_BMP): Changed to -176.
1436         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1437
1438 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1439
1440         * mule-charset.c (Qiso_ir): New variable.
1441         (Fmake_charset): Recognise new property `iso-ir'.
1442         (syms_of_mule_charset): Add new symbol `iso-ir'.
1443
1444 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1445
1446         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1447         n to -n; charset-id of non ISO-IR sets are changed to positive
1448         numbers.
1449
1450 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1451
1452         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1453         for &MCS-XXXXXXXX; values.
1454
1455 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1456
1457         * mule.c (Vxemacs_chise_version): Renamed from
1458         `Vutf_2000_version'.
1459         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1460         `utf-2000-version' as an alias for `xemacs-chise-version'.
1461
1462 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1463
1464         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1465         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1466         defined.
1467
1468         * config.h.in (CHISE): New macro.
1469
1470 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1471
1472         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1473         of `ucs'.
1474         (Qmap_ucs): New variable.
1475         (syms_of_mule_charset): Add new symbol `=ucs'.
1476         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1477
1478         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1479         (simplify_char_spec): Likewise.
1480
1481         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1482
1483         * char-ucs.h (Qmap_ucs): New extern variable.
1484
1485 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1486
1487         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1488         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1489         don't define it when UTF2000 is not defined.
1490         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1491         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1492         when UTF2000 is not defined.
1493         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1494         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1495
1496 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1497
1498         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1499
1500         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1501         (Qucs_gb): Deleted.
1502         (syms_of_mule_charset): Delete `ucs-gb'.
1503         (complex_vars_of_mule_charset): Likewise.
1504
1505 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1506
1507         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1508
1509         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1510         (Qucs_cns): Deleted.
1511         (syms_of_mule_charset): Delete `ucs-cns'.
1512         (complex_vars_of_mule_charset): Likewise.
1513
1514 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1515
1516         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1517
1518         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1519         (Qucs_jis): Deleted.
1520         (syms_of_mule_charset): Delete `ucs-jis'.
1521         (complex_vars_of_mule_charset): Likewise.
1522
1523 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1524
1525         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1526
1527         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1528         (Qucs_ks): Deleted.
1529         (syms_of_mule_charset): Delete `ucs-ks'.
1530         (complex_vars_of_mule_charset): Likewise.
1531
1532 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1533
1534         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1535         (Qideograph_daikanwa_2): Deleted.
1536         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1537         (complex_vars_of_mule_charset): Likewise.
1538
1539         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1540         (LEADING_BYTE_DAIKANWA_1): Deleted.
1541         (LEADING_BYTE_DAIKANWA_2): Deleted.
1542         (MIN_CHAR_DAIKANWA): Deleted.
1543         (MAX_CHAR_DAIKANWA): Deleted.
1544
1545 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1546
1547         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1548         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1549         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1550
1551         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1552         (Vcharset_ideograph_daikanwa): Deleted.
1553         (Qideograph_hanziku_{1..12}): Deleted.
1554         (Qideograph_daikanwa): Deleted.
1555         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1556         Vcharset_ideograph_daikanwa.
1557         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1558         `ideograph-hanziku-{1..12}'.
1559         (complex_vars_of_mule_charset): Likewise.
1560
1561 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1562
1563         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1564
1565         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1566         (Qideograph_gt_pj_{1..11}): Deleted.
1567         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1568         (complex_vars_of_mule_charset): Likewise.
1569
1570 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1571
1572         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1573         (Vcharset_ideograph_gt): Deleted.
1574         (Qucs_big5): Deleted.
1575         (Qideograph_gt): Deleted.
1576         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1577         `ideograph-gt'.
1578         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1579         and `ideograph-gt'.
1580
1581         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1582         (LEADING_BYTE_GT): Deleted.
1583         (MIN_CHAR_GT): Deleted.
1584         (MAX_CHAR_GT): Deleted.
1585
1586 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1587
1588         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1589
1590 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1591
1592         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1593         (save_uint16_byte_table): Likewise.
1594         (save_byte_table): Likewise; convert values by it.
1595         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1596         for `ideographic-structure'.
1597         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1598         as the filter for `ideographic-structure'.
1599
1600 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1601
1602         * chartab.c (put_char_composition): New function.
1603         (Fput_char_attribute): Use `put_char_composition'; use
1604         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1605
1606         * fns.c (simplify_char_spec): New function.
1607         (char_ref_simplify_spec): New function.
1608         (Fchar_refs_simplify_char_specs): New function.
1609         (syms_of_fns): Add new builtin function
1610         `char-refs-simplify-char-specs'.
1611
1612 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1613
1614         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1615         (Qideograph_cbeta): Deleted.
1616         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1617         (complex_vars_of_mule_charset): Likewise.
1618
1619         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1620         (MIN_CHAR_CBETA): Comment out.
1621         (MAX_CHAR_CBETA): Likewise.
1622
1623 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1624
1625         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1626         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1627         CHISE client feature.
1628
1629 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1630
1631         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1632
1633 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1634
1635         * mule-charset.c (charset_lookup_description_1): Use
1636         `NUM_LEADING_BYTES' in UTF-2000.
1637
1638 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1639
1640         * char-ucs.h (GC_CHARSETP): Deleted.
1641
1642 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1643
1644         * char-ucs.h (MAX_CHAR_GT): Updated.
1645
1646 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1647
1648         * text-coding.c: Sync with XEmacs 21.4.10.
1649
1650 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1651
1652         * mule-charset.c (Vcharset_china3_jef): Deleted.
1653         (Qchina3_jef): Deleted.
1654         (syms_of_mule_charset): Don't define `china3-jef'.
1655         (complex_vars_of_mule_charset): Likewise.
1656
1657         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1658         (MIN_CHAR_CHINA3_JEF): Comment out.
1659         (MAX_CHAR_CHINA3_JEF): Comment out.
1660
1661 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1662
1663         * mule-charset.c (Vcharset_ucs_gb): New variable.
1664         (Qucs_gb): New variable.
1665         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1666         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1667
1668         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1669
1670 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1671
1672         * mule-charset.c (charset_code_point): if a coded-charset has a
1673         final-byte, don't inherit the builtin range of the mother CCS.
1674
1675 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1676
1677         * mule-charset.c (charset_code_point): Fix problem about
1678         inheritance.
1679
1680 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1681
1682         * mule-charset.c (decode_builtin_char): Reorganized.
1683
1684 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1685
1686         * text-coding.c (char_encode_as_entity_reference): Modify for
1687         `charset_code_point'.
1688         (char_encode_shift_jis): Likewise.
1689         (char_encode_big5): Likewise.
1690         (char_encode_utf8): Likewise.
1691         (char_encode_iso2022): Likewise.
1692
1693         * mule-charset.c (charset_code_point): Add new argument
1694         `defined_only'.
1695         (Fencode_char): Add new optional argument `defined_only'.
1696
1697         * chartab.c (put_char_table): Modify for `charset_code_point'.
1698
1699         * char-ucs.h (charset_code_point): Add new argument
1700         `defined_only'.
1701         (encode_char_1): Modify for `charset_code_point'.
1702
1703 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1704
1705         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1706         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1707
1708 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1709
1710         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1711         (Qjis_x0208): Likewise.
1712         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1713         XCHARSET_FINAL(charset).
1714         (charset_code_point): Modify condition for final-byte based
1715         builtin-chars.
1716         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1717         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1718         in UTF-2000; specify `=jis-x0208' as the mother of
1719         `japanese-jisx0208-1978', `japanese-jisx0208' and
1720         `japanese-jisx0208-1990' in UTF-2000.
1721
1722 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1723
1724         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1725
1726 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1727
1728         * text-coding.c (decode_coding_utf16): Support UTF-16.
1729         (char_encode_utf16): Fixed.
1730
1731 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1732
1733         * text-coding.c (Qutf16): New variable in MULE.
1734         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1735         (Fcoding_system_type): Add `utf-16' in MULE.
1736         (struct detection_state): Add a structure for utf16 in MULE.
1737         (detect_coding_type): Setup st->utf16.mask in MULE.
1738         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1739         MULE.
1740         (reset_encoding_stream): Use `char_encode_utf16' and
1741         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1742         (detect_coding_utf16): New function [incomplete].
1743         (decode_coding_utf16): New function [support only UCS-2].
1744         (char_encode_utf16): New function.
1745         (char_finish_utf16): New function.
1746         (syms_of_file_coding): Add new symbol `utf-16'; setup
1747         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1748
1749         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1750         UTF-2000.
1751         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1752         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1753
1754 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1755
1756         * chartab.c (put_char_table): When a charset is specified as a
1757         range in UTF-2000, don't support builtin characters.
1758
1759 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1760
1761         * mule-charset.c (decode_defined_char): Don't refer external
1762         database if Qunbound or Qnil are found.
1763         (Fsave_charset_mapping_table): Don't define it if
1764         HAVE_CHISE_CLIENT is not defined.
1765         (Freset_charset_mapping_table): New function.
1766         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1767         found in external database.
1768         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1769         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1770         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1771
1772 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1773
1774         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1775         not.
1776
1777 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1778
1779         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1780         Q_lowercase, Q_uppercase in UTF-2000.
1781
1782         * chartab.c (get_char_table): Add special code for the standard
1783         case table to use character attribute `->downcase' and
1784         `->uppercase' for case operations in UTF-2000.
1785
1786         * casetab.c (Qflippedcase): New variable in UTF-2000.
1787         (Q_lowercase): Likewise.
1788         (Q_uppercase): Likewise.
1789         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1790         and `->uppercase' in UTF-2000.
1791         (complex_vars_of_casetab): Assign attribute name `downcase' to
1792         downcase and CANON table of Vstandard_case_table in UTF-2000;
1793         assign attribute name `flippedcase' to upcase and EQV table of
1794         Vstandard_case_table in UTF-2000.
1795
1796 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1797
1798         * text-coding.c (decode_add_er_char): Support isolated-chars.
1799         (char_encode_as_entity_reference): Likewise.
1800
1801 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1802
1803         * emacs.c (Vutf_2000_lisp_directory): New variable.
1804         (Vconfigure_utf_2000_lisp_directory): Likewise.
1805         (complex_vars_of_emacs): Add new variable
1806         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1807
1808 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1809
1810         * char-ucs.h (DECODE_CHAR): Delete special code for
1811         `chinese-big5-1' and `chinese-big5-2'.
1812
1813         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1814         (Qbig5_2): Likewise.
1815         (decode_defined_char): Support CONVERSION_BIG5_1 and
1816         CONVERSION_BIG5_2.
1817         (decode_builtin_char): Likewise.
1818         (charset_code_point): Likewise.
1819         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1820         'conversion in UTF-2000.
1821         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1822         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1823         `chinese-big5-2' as children of `chinese-big5'.
1824
1825         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1826         (CONVERSION_BIG5_2): New macro.
1827
1828 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1829
1830         * text-coding.c (char_encode_big5): Support entity-reference.
1831
1832 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1833
1834         * text-coding.c (char_encode_as_entity_reference): New function.
1835         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1836
1837 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1838
1839         * text-coding.c (decode_coding_big5): Support entity-reference
1840         decoding feature.
1841
1842 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1843
1844         * text-coding.c (allocate_coding_system): Initialize initial
1845         charsets for CODESYS_UTF8.
1846         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1847         charset-g2 for CODESYS_UTF8.
1848         (decode_coding_utf8): Use charset-g0.
1849         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1850         to force variants to map to UCS.
1851
1852 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1853
1854         * text-coding.c (Qutf_8_mcs): New variable.
1855         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1856         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1857         instead of `utf-8' in UTF-2000.
1858
1859 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1860
1861         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1862         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1863         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1864         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1865         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1866         CONVERSION_96x96x96x96 are introduced.
1867         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1868         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1869         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1870
1871         * char-ucs.h (CONVERSION_94): New macro.
1872         (CONVERSION_96): New macro.
1873         (CONVERSION_94x94): New macro.
1874         (CONVERSION_96x96): New macro.
1875         (CONVERSION_94x94x94): New macro.
1876         (CONVERSION_96x96x96): New macro.
1877         (CONVERSION_94x94x94x60): New macro.
1878         (CONVERSION_94x94x94x94): New macro.
1879         (CONVERSION_96x96x96x96): New macro.
1880
1881 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1882
1883         * chartab.c (Vcharacter_variant_table): Deleted.
1884         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1885         of `Vcharacter_variant_table'.
1886         (Fput_char_attribute): Likewise.
1887         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1888         (complex_vars_of_chartab): Likewise.
1889
1890 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1891
1892         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1893
1894         * fns.c (Qideographic_structure): New variable.
1895         (Qkeyword_char): New variable.
1896         (ids_format_unit): New function.
1897         (Fideographic_structure_to_ids): New function.
1898         (syms_of_fns): Add new symbols `ideographic-structure' and
1899         `:char'; add new builtin function `ideographic-structure-to-ids'.
1900
1901         * data.c (Fchar_ref_p): New function.
1902         (syms_of_data): Add new builtin function `char-ref-p'.
1903
1904         * chartab.h: Add an EXFUN for `Ffind_char'.
1905
1906 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1907
1908         * text-coding.c (Vcharacter_composition_table): Deleted.
1909         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1910         in every UTF-2000.
1911
1912         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1913         UTF-2000.
1914         (Vcharacter_composition_table): Deleted.
1915         (Fget_composite_char): Use the implementation for external-DB
1916         support in every UTF-2000.
1917         (Fput_char_attribute): Likewise.
1918         (char_attribute_system_db_file): Don't define if external-DB
1919         feature is not available.
1920         (Fsave_char_attribute_table): Likewise.
1921         (Fmount_char_attribute_table): Likewise.
1922         (Fclose_char_attribute_table): Likewise.
1923         (Freset_char_attribute_table): Likewise.
1924         (Fload_char_attribute_table): Likewise.
1925         (syms_of_chartab): Don't define `save-char-attribute-table',
1926         `mount-char-attribute-table', `reset-char-attribute-table',
1927         `close-char-attribute-table' and `load-char-attribute-table' if
1928         external-DB feature is not available.
1929         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1930
1931 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1932
1933         * text-coding.c (Qcomposition): Add extern if external-DB feature
1934         is supported.
1935         (Vcharacter_composition_table): Don't add extern if external-DB
1936         feature is supported.
1937         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1938         character composition rule if external-DB feature is supported.
1939
1940         * chartab.c (Vcharacter_composition_table): Don't define if
1941         external-DB feature is supported.
1942         (Qcomposition): New variable.
1943         (Fget_composite_char): New implementation for external-DB support.
1944         (Fput_char_attribute): Use `composition' property of each
1945         character instead of `Vcharacter_composition_table' to store
1946         character-composition rules if external-DB feature is supported.
1947         (syms_of_chartab): Add new symbol `composition'.
1948         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1949         external-DB feature is supported.
1950
1951 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1952
1953         * chartab.c (Vchar_db_stingy_mode): New variable.
1954         (load_char_attribute_maybe): Close database if
1955         Vchar_db_stingy_mode is not NIL.
1956         (Fload_char_attribute_table_map_function): Use
1957         `get_char_id_table_0' instead of `get_char_id_table'.
1958         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1959
1960         * chartab.h (get_char_id_table_0): New inline function.
1961         (get_char_id_table): Use `get_char_id_table_0'.
1962
1963 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1964
1965         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1966         and `COMPOSE_ADD_CHAR'.
1967         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1968
1969 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1970
1971         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1972         instead of `DECODE_ADD_UCS_CHAR'.
1973         (COMPOSE_ADD_CHAR): Likewise.
1974
1975 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1976
1977         * text-coding.c (decode_flush_er_chars): New inline function.
1978         (decode_add_er_char): New function.
1979         (decode_coding_utf8): Use `decode_flush_er_chars' and
1980         `decode_add_er_char'.
1981
1982 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1983
1984         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1985         done before `decode_output_utf8_partial_char'.
1986
1987         * mule-charset.c (complex_vars_of_mule_charset): Specify
1988         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1989         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1990
1991 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1992
1993         * mule-charset.c (decode_defined_char): New function; search
1994         mother.
1995         (decode_builtin_char): Don't search mother if
1996         XCHARSET_MAX_CODE(charset) == 0.
1997         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1998         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1999         (Fdecode_char): Use `decode_defined_char' instead of
2000         `DECODE_DEFINED_CHAR'.
2001         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
2002         mother of `Vcharset_ucs_jis'.
2003
2004         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
2005         instead of `DECODE_DEFINED_CHAR'.
2006
2007         * char-ucs.h (decode_defined_char): Renamed from
2008         `DECODE_DEFINED_CHAR'; changed to normal function.
2009         (DECODE_CHAR): Use `decode_defined_char' instead of
2010         `DECODE_DEFINED_CHAR'.
2011
2012         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
2013
2014 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2015
2016         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
2017
2018         * text-coding.c (Vcoded_charset_entity_reference_alist): New
2019         variable.
2020         (Quse_entity_reference): New variable.
2021         (Qd): New variable.
2022         (Qx): New variable.
2023         (QX): New variable.
2024         (coding_system_description): Add description for
2025         `ccs_priority_list'.
2026         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
2027         (allocate_coding_system): Initialize `ccs_priority_list' in
2028         UTF-2000.
2029         (Fmake_coding_system): Add description about
2030         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
2031         (codesys).
2032         (Fcoding_system_property): Accept `disable-composition' and
2033         `use-entity-reference' in UTF-2000.
2034         (struct decoding_stream): Add new member `er_counter' and `er_buf'
2035         in UTF-2000.
2036         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
2037         (decode_coding_utf8): Decode entity-reference if
2038         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
2039         (char_encode_utf8): Encode non-Unicode characters as
2040         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
2041         (str->codesys).
2042         (syms_of_file_coding): Add new symbols `use-entity-reference',
2043         `d', `x', `X'.
2044         (vars_of_file_coding): Add new variable
2045         `coded-charset-entity-reference-alist'.
2046         (complex_vars_of_file_coding): Declare `disable-composition' and
2047         `use-entity-reference' to be coding-system-properties in UTF-2000.
2048
2049         * file-coding.h (struct Lisp_Coding_System): Add new member
2050         `use_entity_reference' and `ccs_priority_list'.
2051         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2052         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
2053         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
2054
2055 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2056
2057         * chartab.c (save_uint8_byte_table): Don't clear the table.
2058         (save_uint16_byte_table): Likewise.
2059         (save_byte_table): Likewise.
2060         (Fmount_char_attribute_table): New function.
2061         (syms_of_chartab): Add new builtin function
2062         `mount-char-attribute-table'.
2063
2064 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2065
2066         * mule-charset.c (Fsave_charset_mapping_table): Open database as
2067         "w+" mode.
2068         (load_char_decoding_entry_maybe): Open database as read-only mode.
2069
2070         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
2071         open database as "w+" mode.
2072         (load_char_attribute_maybe): Open database as read-only mode.
2073         (Fload_char_attribute_table): Likewise.
2074
2075 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2076
2077         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
2078         (char_table_description): Delete member `db_file'.
2079         (Fmake_char_table): Don't refer `ct->db_file'.
2080         (Fcopy_char_table): Likewise.
2081         (Fsave_char_attribute_table): Likewise.
2082         (Fclose_char_attribute_table): Likewise.
2083         (Freset_char_attribute_table): Likewise.
2084         (load_char_attribute_maybe): Likewise.
2085         (Fload_char_attribute_table): Likewise.
2086
2087         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
2088
2089 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2090
2091         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
2092         (Fsave_char_attribute_table): Don't check `ct->db_file' if
2093         `ct->db' is living.
2094         (load_char_attribute_maybe): Likewise.
2095         (Fload_char_attribute_table): Likewise.
2096
2097 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2098
2099         * chartab.c (Fclose_char_attribute_table): Set Qnil on
2100         `ct->db_file' unconditionally.
2101
2102 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2103
2104         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
2105         UTF-2000.
2106         (char_table_description): Add description for `db_file' and `db'
2107         in UTF-2000.
2108         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
2109         UTF-2000.
2110         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
2111         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
2112         (Fclose_char_attribute_table): New function.
2113         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
2114         (load_char_attribute_maybe): Change interface; use `cit->db_file'
2115         and `cit->db'.
2116         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
2117         (syms_of_chartab): Add new builtin function
2118         `Fclose_char_attribute_table'.
2119
2120 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2121
2122         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
2123         `db' in UTF-2000.
2124         (load_char_attribute_maybe): Change interface.
2125         (get_char_id_table): Modify for `load_char_attribute_maybe'.
2126
2127 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2128
2129         * database.h: Add an EXFUN for `Fdatabase_live_p'.
2130
2131 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2132
2133         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
2134         instead of `DECODE_CHAR' for mother; don't use special code for
2135         chinese-big5 to use code space of chinese-big5-1 and
2136         chinese-big5-2.
2137         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
2138         `MAX_CHAR_BIG5_CDP' for chinese-big5.
2139
2140         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
2141         (MAX_CHAR_BIG5_CDP): Revival.
2142
2143 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2144
2145         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
2146         the XLFD registry-encoding name of `chinese-big5'.
2147
2148 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2149
2150         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
2151         (Qchinese_big5_cdp): Deleted.
2152         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
2153         (complex_vars_of_mule_charset): Delete coded-charset
2154         `chinese-big5-cdp'.
2155
2156         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
2157         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
2158         `CHARSET_ID_OFFSET - n' for private CCS.
2159         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
2160         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
2161         of `MIN_LEADING_BYTE'.
2162         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
2163         `(CHARSET_ID_OFFSET - 97)'.
2164         (MIN_CHAR_BIG5_CDP): Deleted.
2165         (MAX_CHAR_BIG5_CDP): Deleted.
2166
2167 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2168
2169         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
2170
2171 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2172
2173         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
2174         (vars_of_mule): Add new variable `utf-2000-version' [moved from
2175         chartab.c].
2176
2177         * chartab.c (Vutf_2000_version): Moved to mule.c.
2178         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
2179
2180 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2181
2182         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
2183         when HAVE_CHISE_CLIENT is not defined.
2184
2185         * mule.c (vars_of_mule): Provide feature `chise' when
2186         HAVE_CHISE_CLIENT is defined.
2187
2188 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2189
2190         * config.h.in (UTF2000): Add comment.
2191         (HAVE_CHISE_CLIENT): New macro.
2192
2193 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2194
2195         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
2196         CONSP.
2197         (Fput_char_attribute): Likewise.
2198         (char_attribute_system_db_file): Encode file-name of attribute.
2199         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
2200         the initial value.
2201
2202 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2203
2204         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
2205         (Fsave_charset_mapping_table): Use
2206         `char_attribute_system_db_file'.
2207         (load_char_decoding_entry_maybe): Likewise.
2208
2209         * chartab.h (Qsystem_char_id): New external variable.
2210         (char_attribute_system_db_file): New prototype.
2211
2212         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2213         (char_attribute_system_db_file): New function.
2214         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2215         (Freset_char_attribute_table): Likewise.
2216         (load_char_attribute_maybe): Likewise.
2217         (Fload_char_attribute_table): Likewise.
2218         (syms_of_chartab): Add new symbol `system-char-id'.
2219
2220 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2221
2222         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2223         `XCHARSET_GRAPHIC(ccs)'.
2224
2225 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2226
2227         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2228
2229 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2230
2231         * chartab.c (Q_ucs_variants): New variable.
2232         (syms_of_chartab): Add new symbol `->ucs-variants'.
2233         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2234         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2235         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2236
2237         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2238
2239         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2240         `HAVE_DATABASE' is defined.
2241         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2242         `HAVE_DATABASE' is defined.
2243
2244 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2245
2246         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2247         attribute-table.
2248         (Freset_char_attribute_table): New function.
2249         (syms_of_chartab): Add new builtin function
2250         `reset-char-attribute-table'.
2251
2252 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2253
2254         * chartab.c (load_char_attribute_maybe): Don't make directories.
2255
2256 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2257
2258         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2259
2260         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2261         for decoding-table.
2262
2263 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2264
2265         * mule-charset.c (Fsave_charset_mapping_table): Use
2266         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2267
2268         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2269         instead of `XCHARSET_CHARS'.
2270
2271 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2272
2273         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2274         (XCHARSET_BYTE_SIZE): Likewise.
2275
2276         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2277         mule-charset.c].
2278         (XCHARSET_BYTE_SIZE): Likewise.
2279
2280 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2281
2282         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2283         data-directory to store database.
2284         (Fsave_char_attribute_table): Likewise.
2285         (load_char_attribute_maybe): Likewise.
2286         (Fload_char_attribute_table): Likewise.
2287
2288 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2289
2290         * mule-charset.c (Fsave_charset_mapping_table): New function.
2291         (syms_of_mule_charset): Add new builtin function
2292         `save-charset-mapping-table'.
2293
2294 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2295
2296         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2297         (get_ccs_octet_table): New inline function.
2298         (put_ccs_octet_table): Likewise.
2299         (decoding_table_put_char): Use `get_ccs_octet_table' and
2300         `put_ccs_octet_table'.
2301         (decoding_table_remove_char): Use `decoding_table_put_char'.
2302         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2303
2304         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2305         into encoding_table.
2306         (make_charset): Use Qunbound instead Qnil as initial value of
2307         decoding_table.
2308
2309 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2310
2311         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2312         element is Qunloaded.
2313         (map_over_uint16_byte_table): Likewise.
2314         (map_over_byte_table): Likewise.
2315         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2316         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2317         database support, load encoding-table of the specified
2318         coded-charset if it is not loaded yet.
2319         (save_uint8_byte_table): New function of UTF-2000 with external
2320         database support.
2321         (save_uint16_byte_table): Likewise.
2322         (save_byte_table): Likewise.
2323         (Fput_char_attribute): Don't store value into external database
2324         even if the external database feature is supported in UTF-2000;
2325         set `attribute' as name of char-table if the external database
2326         feature is supported.
2327         (Fsave_char_attribute_table): New function in UTF-2000.
2328         (syms_of_chartab): Add new builtin function
2329         `save-char-attribute-table' in UTF-2000.
2330
2331 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2332
2333         * chartab.c (char_attribute_table_to_put): New variable in
2334         UTF-2000.
2335         (Qput_char_table_map_function): Likewise.
2336         (value_to_put): Likewise.
2337         (Fput_char_table_map_function): New function in UTF-2000.
2338         (put_char_table): Use `Fmap_char_attribute' for
2339         CHARTAB_RANGE_CHARSET in UTF-2000.
2340         (Fput_char_attribute): Store symbol instead of string in
2341         `XCHAR_TABLE_NAME (table)'.
2342         (load_char_attribute_maybe): Likewise.
2343         (syms_of_chartab): Add new symbol/function
2344         `put-char-table-map-function'.
2345
2346 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2347
2348         * database.h: Add new EXFUN for `Fmap_database'.
2349
2350         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2351         (syms_of_database): Likewise.
2352
2353         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2354         UTF-2000.
2355         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2356         (XCHAR_TABLE_UNLOADED): Likewise.
2357
2358         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2359         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2360         HAVE_DATABASE is defined.
2361         (char_attribute_table_to_load): New variable of UTF-2000 with
2362         external database support.
2363         (Qload_char_attribute_table_map_function): Likewise.
2364         (Fload_char_attribute_table_map_function): New function of
2365         UTF-2000 with external database support.
2366         (Fload_char_attribute_table): New function of UTF-2000.
2367         (Fmap_char_attribute): Call Fload_char_attribute_table if
2368         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2369         (syms_of_chartab): Add new symbol and function
2370         `load-char-attribute-table-map-function' in UTF-2000 with external
2371         database support; add new function `load-char-attribute-table' in
2372         UTF-2000.
2373
2374 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2375
2376         * chartab.h (load_char_attribute_maybe): New prototype for
2377         UTF-2000 with DATABASE support.
2378         (get_char_id_table): Use `load_char_attribute_maybe' if
2379         HAVE_DATABASE is defined.
2380
2381         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2382         with DATABASE support.
2383
2384 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2385
2386         * chartab.c (Fput_char_attribute): Use S-expression as key of
2387         external database.
2388
2389         * chartab.h (get_char_id_table): Use S-expression as key of
2390         external database.
2391
2392 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2393
2394         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2395         if an element is not loaded, load the corresponding attributes
2396         from an external database.
2397         (map_over_uint16_byte_table): Likewise.
2398         (map_over_byte_table): Likewise.
2399         (map_char_table): Modify for `map_over_uint8_byte_table',
2400         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2401         element is not loaded, load the corresponding attributes from an
2402         external database.
2403         (Fput_char_attribute): Change initial values to Qunloaded.
2404
2405         * chartab.h (get_char_id_table): If a character attribute is not
2406         loaded and the attribute value is not found in an external
2407         database, store Qunbound as the attribute value.
2408
2409 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2410
2411         * chartab.c (BT_UINT8_unloaded): New macro.
2412         (UINT8_VALUE_P): Accept Qunloaded.
2413         (UINT8_ENCODE): Likewise.
2414         (UINT8_DECODE): Likewise.
2415         (BT_UINT16_unloaded): New macro.
2416         (UINT16_VALUE_P): Accept Qunloaded.
2417         (UINT16_ENCODE): Likewise.
2418         (UINT16_DECODE): Likewise.
2419         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2420         BT_UINT16_unloaded.
2421         (mark_char_table): Mark `ct->name' in UTF-2000.
2422         (char_table_description): Add `name' in UTF-2000.
2423         (Fmake_char_table): Initialize `ct->name'.
2424         (Fcopy_char_table): Copy `ct->name'.
2425         (Fput_char_attribute): Store value into an external database if
2426         HAVE_DATABASE is defined.
2427
2428         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2429         UTF-2000.
2430         (CHAR_TABLE_NAME): New macro in UTF-2000.
2431         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2432         (get_char_id_table): Try to read an external database if Qunloaded
2433         is stored in a table.
2434
2435         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2436         Qunloaded.
2437
2438 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2439
2440         * database.h: Add EXFUN definitions for Fopen_database,
2441         Fput_database, Fget_database and Fclose_database.
2442
2443         * data.c (Qunloaded): New variable in UTF-2000.
2444
2445         * lisp.h (Qunloaded): New variable in UTF-2000.
2446
2447 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2448
2449         * mule-charset.c (put_char_ccs_code_point): Modify for
2450         `decoding_table_remove_char' and `decoding_table_put_char'.
2451         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2452
2453         * char-ucs.h (decoding_table_remove_char): Change arguments to
2454         hide decoding_table vector.
2455         (decoding_table_put_char): Likewise.
2456
2457 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2458
2459         * mule-charset.c (decoding_table_remove_char): Moved to
2460         char-ucs.h.
2461         (decoding_table_put_char): Likewise.
2462
2463         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2464         from mule-charset.c].
2465         (decoding_table_remove_char): New inline function [moved from
2466         mule-charset.c].
2467         (decoding_table_put_char): Likewise.
2468
2469 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2470
2471         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2472         extension.
2473
2474 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2475
2476         * mule-charset.c (decode_builtin_char): Support mother charsets.
2477
2478 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2479
2480         * mule-charset.c (Q94x94x60): New variable.
2481         (charset_code_point): Support conversion `94x94x60'.
2482         (Fmake_charset): Likewise.
2483         (syms_of_mule_charset): Add new symbol `94x94x60'.
2484
2485         * char-ucs.h (CONVERSION_94x94x60): New macro.
2486
2487 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2488
2489         * mule-charset.c (charset_code_point): Unify code about
2490         `code-offset'.
2491
2492 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2493
2494         * mule-charset.c (charset_code_point): Merge code about builtin
2495         characters into code about mother charsets; don't use
2496         `range_charset_code_point'.
2497         (range_charset_code_point): Deleted.
2498
2499 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2500
2501         * mule-charset.c (Qcode_offset): New variable.
2502         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2503         `max-code'; accept new property `code-offset'.
2504         (syms_of_mule_charset): Add new symbol `code-offset'.
2505
2506 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2507
2508         * mule-charset.c (range_charset_code_point): Fixed.
2509
2510 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2511
2512         * mule-charset.c (decode_builtin_char): Change semantics of
2513         code-offset of coded-charset.
2514         (charset_code_point): Likewise.
2515         (range_charset_code_point): Likewise.
2516         (complex_vars_of_mule_charset): Modify for the change.
2517
2518 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2519
2520         * mule-charset.c (Fencode_char): Reverse arguments.
2521
2522         * mule-charset.c (charset_code_point): Fixed.
2523
2524 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2525
2526         * mule-charset.c (Vcharset_mojikyo): Deleted.
2527         (Vcharset_mojikyo_2022_1): Deleted.
2528         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2529         (Qmin_code): New variable in UTF-2000.
2530         (Qmax_code): Likewise.
2531         (Qmother): Likewise.
2532         (Qconversion): Likewise.
2533         (Q94x60): Likewise.
2534         (Qmojikyo): Deleted.
2535         (Qmojikyo_2022_1): Deleted.
2536         (Qmojikyo_pj_{1..22}): Deleted.
2537         (mark_charset): Mark `cs->mother'.
2538         (charset_description): Add description for `mother'.
2539         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2540         new arguments `mother' and `conversion'; use
2541         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2542         (charset_code_point): Moved from char-ucs.h; support `mother'
2543         charset feature.
2544         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2545         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2546         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2547         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2548         allow 2 as the value of `graphic' in UTF-2000; add new properties
2549         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2550         require `final' in UTF-2000; modify for `make_charset'.
2551         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2552         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2553         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2554         (Fencode_char): New function.
2555         (syms_of_mule_charset): Add new builtin function `encode-char' in
2556         UTF-2000; add new symbols `min-code', `max-code', `mother',
2557         `conversion' and `94x60'; delete symbols `mojikyo',
2558         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2559         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2560         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2561         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2562
2563         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2564         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2565
2566         * char-ucs.h (Vcharset_mojikyo): Deleted.
2567         (Vcharset_mojikyo_2022_1): Deleted.
2568         (LEADING_BYTE_MOJIKYO): Deleted.
2569         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2570         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2571         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2572         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2573         add new member `mother'; add new member `conversion'.
2574         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2575         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2576         (CHARSET_MOTHER): New macro.
2577         (CHARSET_CONVERSION): New macro.
2578         (CONVERSION_IDENTICAL): New macro.
2579         (CONVERSION_94x60): New macro.
2580         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2581         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2582         (XCHARSET_MOTHER): New macro.
2583         (XCHARSET_CONVERSION): New macro.
2584         (MIN_CHAR_MOJIKYO): Deleted.
2585         (MAX_CHAR_MOJIKYO): Deleted.
2586         (DECODE_MOJIKYO_2022): Deleted.
2587         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2588         (charset_code_point): Changed to non-inline function.
2589         (encode_char_1): Use `charset_code_point'.
2590         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2591
2592 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2593
2594         * lread.c (read_compiled_function): Fix prototype.
2595         (read_vector): Likewise.
2596
2597 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2598
2599         * lrecord.h (struct lrecord_header): Delete `older'.
2600         (set_lheader_implementation): Delete code for `older'.
2601         (set_lheader_older_implementation): Deleted.
2602         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2603         (OLDER_RECORD_P): Deleted.
2604         (OLDER_RECORD_HEADER_P): Deleted.
2605         (alloc_older_lcrecord): Deleted.
2606         (alloc_older_lcrecord_type): Deleted.
2607
2608         * alloc.c (all_older_lcrecords): Deleted.
2609         (alloc_older_lcrecord): Deleted.
2610         (disksave_object_finalization_1): Delete code for older objects.
2611         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2612         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2613
2614 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2615
2616         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2617         instead of `make_older_vector'.
2618         (put_char_ccs_code_point): Likewise.
2619         (mark_charset): Mark `cs->decoding_table'.
2620         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2621
2622         * lisp.h (make_older_vector): Deleted.
2623         (make_vector_newer): Deleted.
2624
2625         * config.h.in (HAVE_GGC): Deleted.
2626
2627         * alloc.c (make_older_vector): Deleted.
2628         (make_vector_newer_1): Deleted.
2629         (make_vector_newer): Deleted.
2630
2631 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2632
2633         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2634         (Qideograph_daikanwa_2): New variable.
2635         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2636         (complex_vars_of_mule_charset): Add new coded-charset
2637         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2638         `LEADING_BYTE_DAIKANWA'.
2639
2640         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2641         (LEADING_BYTE_DAIKANWA_1): New macro.
2642         (LEADING_BYTE_DAIKANWA_2): New macro.
2643         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2644
2645 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2646
2647         * mule-charset.c (complex_vars_of_mule_charset): Change
2648         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2649         the second revised version.
2650
2651 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2652
2653         * mule-charset.c (Vcharset_ucs_smp): New variable.
2654         (Vcharset_ucs_sip): New variable.
2655         (Qucs_smp): New variable.
2656         (Qucs_sip): New variable.
2657         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2658         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2659         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2660         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2661         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2662         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2663
2664         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2665         (LEADING_BYTE_UCS_SIP): New macro.
2666         (MIN_CHAR_SMP): New macro.
2667         (MAX_CHAR_SMP): New macro.
2668         (MIN_CHAR_SIP): New macro.
2669         (MAX_CHAR_SIP): New macro.
2670
2671 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2672
2673         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2674         utf-2000.
2675
2676 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2677
2678         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2679         value; don't store value into `encoding_table' of `Lisp_Charset'.
2680         (mark_charset): `encoding_table' was deleted.
2681         (charset_description): Likewise.
2682         (make_charset): Likewise.
2683         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2684         `put_char_ccs_code_point'.
2685
2686         * chartab.h (Fput_char_attribute): New EXFUN.
2687
2688         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2689         is unified with normal symbol space.
2690         (Fget_char_attribute): Likewise.
2691         (Fput_char_attribute): Likewise; behavior of
2692         `put_char_ccs_code_point' is changed.
2693
2694         * char-ucs.h: Include "elhash.h".
2695         (Vchar_attribute_hash_table): New external variable.
2696         (struct Lisp_Charset): Delete `encoding_table'.
2697         (CHARSET_ENCODING_TABLE): New implementation; refer
2698         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2699         `Lisp_Charset'.
2700
2701 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2702
2703         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2704         (cs) == 0.
2705
2706 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2707
2708         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2709         `chinese-big5'.
2710
2711 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2712
2713         * chartab.c (uint8_byte_table_description): New constant.
2714         (uint8-byte-table): Use `uint8_byte_table_description'.
2715         (uint16_byte_table_description): New constant.
2716         (uint16-byte-table): Use `uint16_byte_table_description'.
2717
2718 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2719
2720         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2721         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2722
2723 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2724
2725         * mule-charset.c (Vcharset_ucs_ks): New variable.
2726         (Qucs_ks): New variable.
2727         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2728         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2729
2730         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2731
2732 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2733
2734         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2735         (Fdecode_char): Likewise.
2736
2737         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2738         chartab.h.
2739         (Fdefine_char): Modify for Fdecode_char.
2740         (Ffind_char): Likewise.
2741
2742         * mule-charset.c (Fdecode_char): Add new optional argument
2743         `defined-only'.
2744         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2745
2746 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2747
2748         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2749         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2750         (allocate_coding_system): Initialize initial-charsets of
2751         CODESYS_BIG5 in XEmacs UTF-2000.
2752         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2753         CODESYS_BIG5 in XEmacs UTF-2000.
2754         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2755         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2756
2757         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2758         variables.
2759         (Qideograph_hanziku_{1 .. 12}): Likewise.
2760         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2761         .. 12}'.
2762         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2763         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2764         `ideograph-hanziku-{1 .. 12}'.
2765
2766         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2767         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2768         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2769         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2770         (DECODE_DEFINED_CHAR): New inline function.
2771         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2772
2773 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2774
2775         * mule-charset.c (Vcharset_china3_jef): Renamed from
2776         `Vcharset_japanese_jef_china3'.
2777         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2778         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2779         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2780         (syms_of_mule_charset): Rename `china3-jef' from
2781         `japanese-jef-china3'.
2782         (complex_vars_of_mule_charset): Likewise; rename
2783         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2784
2785         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2786         `LEADING_BYTE_JEF_CHINA3'.
2787         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2788         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2789
2790 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2791
2792         * mule-charset.c (encode_builtin_char_1): Comment out special code
2793         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2794
2795         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2796         (MAX_CHAR_MOJIKYO_0): Comment out.
2797         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2798         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2799         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2800         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2801
2802 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2803
2804         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2805         (Qideograph_cbeta): New variable.
2806         (encode_builtin_char_1): Comment out special code for
2807         coded-charset `mojikyo' and `japanese-jef-china3'.
2808         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2809         (complex_vars_of_mule_charset): Add new coded-charset
2810         `ideograph-cbeta'.
2811
2812         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2813         (MIN_CHAR_CBETA): New macro.
2814         (MAX_CHAR_CBETA): New macro.
2815
2816 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2817
2818         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2819         (LEADING_BYTE_JEF_CHINA3): New macro.
2820         (MIN_CHAR_JEF_CHINA3): New macro.
2821         (MAX_CHAR_JEF_CHINA3): Likewise.
2822         (DECODE_CHAR): Fixed.
2823
2824 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2825
2826         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2827         (Qjapanese_jef_china3): New variable.
2828         (encode_builtin_char_1): Support `japanese-jef-china3'.
2829         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2830         (complex_vars_of_mule_charset): Add new coded-charset
2831         `japanese-jef-china3'.
2832
2833 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2834
2835         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2836         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2837         94^4, 96^3, 96^4, 128^n and 256^n set.
2838         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2839         (map_char_table): Likewise.
2840
2841 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2842
2843         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2844         UTF-2000.
2845
2846 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2847
2848         * chartab.h (get_char_id_table): New inline function.
2849
2850         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2851         function.
2852
2853 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2854
2855         * chartab.h (decode_char_table_range): New prototype in XEmacs
2856         UTF-2000.
2857         (put_char_id_table): New inline function in XEmacs UTF-2000.
2858
2859         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2860         function.
2861         (decode_char_table_range): Delete static declaration in XEmacs
2862         UTF-2000.
2863
2864 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2865
2866         * chartab.c (put_char_id_table): Use `put_char_table'.
2867
2868 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2869
2870         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2871         (map_over_uint16_byte_table): Likewise.
2872         (map_over_byte_table): Likewise.
2873         (map_char_table): Modify for `map_over_uint8_byte_table',
2874         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2875         UTF-2000.
2876
2877 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2878
2879         * chartab.c (struct map_char_table_for_charset_arg): New
2880         structure.
2881         (map_char_table_for_charset_fun): New function.
2882         (map_char_table): Use `map_char_table' for encoding_table of
2883         `range->charset'.
2884
2885 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2886
2887         * chartab.c (map_char_table): Check a character is found in
2888         range->charset instead of non default value is defined in
2889         char-table when range is CHARTAB_RANGE_ROW.
2890
2891 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2892
2893         * chartab.c (map_char_id_table): Deleted.
2894         (Fmap_char_attribute): Use `map_char_table' instead of
2895         `map_char_id_table'.
2896
2897 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2898
2899         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2900         UTF-2000.
2901         (update_syntax_table): Deleted in XEmacs UTF-2000.
2902
2903         * syntax.c (find_defun_start): Use `syntax_table' instead of
2904         `mirror_syntax_table' in XEmacs UTF-2000.
2905         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2906         UTF-2000.
2907         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2908         XEmacs UTF-2000.
2909         (Fmatching_paren): Likewise.
2910         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2911         in XEmacs UTF-2000.
2912         (find_start_of_comment): Likewise.
2913         (find_end_of_comment): Likewise.
2914         (Fforward_comment): Likewise.
2915         (scan_lists): Likewise.
2916         (char_quoted): Likewise.
2917         (Fbackward_prefix_chars): Likewise.
2918         (scan_sexps_forward): Likewise.
2919         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2920         (update_syntax_table): Likewise.
2921
2922         * search.c (skip_chars): Use `syntax_table' instead of
2923         `mirror_syntax_table' in XEmacs UTF-2000.
2924         (wordify): Likewise.
2925         (Freplace_match): Likewise.
2926
2927         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2928         `mirror_syntax_table' in XEmacs UTF-2000.
2929         (WORDCHAR_P_UNSAFE): Likewise.
2930         (re_match_2_internal): Likewise.
2931
2932         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2933         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2934
2935         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2936         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2937
2938         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2939         XEmacs UTF-2000.
2940
2941         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2942         UTF-2000.
2943         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2944         (char_table_description): Delete `mirror_table' in XEmacs
2945         UTF-2000.
2946         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2947         UTF-2000.
2948         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2949         (Fcopy_char_table): Likewise.
2950         (put_char_table): Don't call `update_syntax_table' in XEmacs
2951         UTF-2000.
2952
2953         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2954         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2955         (casify_region_internal): Likewise.
2956
2957         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2958
2959         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2960         `mirror_syntax_table' in XEmacs UTF-2000.
2961
2962         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2963         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2964         (Fexpand_abbrev): Likewise.
2965
2966 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2967
2968         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2969
2970 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2971
2972         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2973         (map_over_uint16_byte_table): Likewise.
2974         (map_over_byte_table): Likewise.
2975         (get_char_id_table): Refer `cit->default_value'.
2976         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2977         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2978         of character-id ranges.
2979         (mark_char_table): Mark `ct->default_value'.
2980         (char_table_description): Add `default_value'.
2981         (fill_char_table): Use `default_value'.
2982         (decode_char_table_range): Decode `nil' as
2983         `CHARTAB_RANGE_DEFAULT'.
2984         (get_char_id_table): Refer `cit->default_value'.
2985         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2986         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2987         temporary hack; check value of char-table is bound or not.
2988         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2989
2990         * chartab.h (struct Lisp_Char_Table): Add new member
2991         `default_value' in XEmacs UTF-2000.
2992         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2993         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2994         UTF-2000.
2995
2996 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2997
2998         * chartab.h (Lisp_Char_ID_Table): Deleted.
2999
3000         * chartab.c (char_table_description): Fix typo.
3001         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
3002         `Lisp_Char_ID_Table'.
3003
3004 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3005
3006         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
3007         `CHAR_ID_TABLE_P'.
3008
3009         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
3010         `CHAR_ID_TABLE_P'.
3011
3012         * chartab.h (XCHAR_ID_TABLE): Deleted.
3013         (XSETCHAR_ID_TABLE): Deleted.
3014         (CHAR_ID_TABLE_P): Deleted.
3015
3016         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
3017         `CHAR_ID_TABLE_P'.
3018         (Fget_composite_char): Likewise.
3019         (put_char_table): Likewise.
3020         (add_char_attribute_alist_mapper): Fixed.
3021         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
3022         `CHAR_ID_TABLE_P'.
3023         (Fget_char_attribute): Likewise.
3024         (Fget_char_attribute): Likewise.
3025         (Fmap_char_attribute): Likewise.
3026
3027         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
3028         `CHAR_ID_TABLE_P'.
3029         (encode_char_1): Likewise.
3030
3031 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3032
3033         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
3034         `XCHAR_ID_TABLE'.
3035
3036         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
3037         instead of `XCHAR_ID_TABLE'.
3038         (remove_char_ccs): Likewise.
3039
3040         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
3041         `XCHAR_ID_TABLE'.
3042         (Fget_composite_char): Likewise.
3043         (Fchar_variants): Likewise.
3044         (put_char_table): Likewise.
3045         (add_char_attribute_alist_mapper): Likewise.
3046         (Fchar_attribute_alist): Likewise.
3047         (Fget_char_attribute): Likewise.
3048         (Fput_char_attribute): Likewise.
3049         (Fmap_char_attribute): Likewise.
3050         (Fmap_char_attribute): Likewise.
3051
3052         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
3053         `XCHAR_ID_TABLE'.
3054         (encode_char_1): Likewise.
3055
3056 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3057
3058         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
3059         `Lisp_Char_ID_Table'.
3060         (mark_char_id_table): Deleted.
3061         (print_char_id_table): Likewise.
3062         (char_id_table_equal): Likewise.
3063         (char_id_table_hash): Likewise.
3064         (char_id_table_description): Likewise.
3065         (char_id_table): Likewise.
3066         (make_char_id_table): Use `Fmake_char_table' and
3067         `fill_char_table'.
3068         (get_char_id_table): Use `Lisp_Char_Table' instead of
3069         `Lisp_Char_ID_Table'.
3070         (put_char_id_table): Likewise.
3071         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
3072         `XCHAR_ID_TABLE'.
3073         (Fremove_char_attribute): Likewise.
3074         (syms_of_chartab): Don't define type `char-id-table'.
3075
3076         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
3077         (char_id_table): Likewise.
3078         (GC_CHAR_ID_TABLE_P): Likewise.
3079         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
3080         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
3081         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
3082         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
3083         (get_char_id_table): Use `Lisp_Char_Table' instead of
3084         `Lisp_Char_ID_Table'.
3085         (put_char_id_table_0): Likewise.
3086         (put_char_id_table): Likewise.
3087
3088 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3089
3090         * chartab.h: Lisp_Byte_Table related codes are moved from
3091         chartab.h.
3092
3093         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
3094
3095 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3096
3097         * chartab.h: Don't include "chartab.h".
3098         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
3099         (Lisp_Char_ID_Table): Likewise.
3100         (char_id_table): Likewise.
3101         (XCHAR_ID_TABLE): Likewise.
3102         (XSETCHAR_ID_TABLE): Likewise.
3103         (CHAR_ID_TABLE_P): Likewise.
3104         (GC_CHAR_ID_TABLE_P): Likewise.
3105         (get_char_id_table): Likewise.
3106
3107         * char-ucs.h: Include "chartab.h".
3108         (struct Lisp_Char_ID_Table): Moved to chartab.h.
3109         (Lisp_Char_ID_Table): Likewise.
3110         (char_id_table): Likewise.
3111         (XCHAR_ID_TABLE): Likewise.
3112         (XSETCHAR_ID_TABLE): Likewise.
3113         (CHAR_ID_TABLE_P): Likewise.
3114         (GC_CHAR_ID_TABLE_P): Likewise.
3115         (get_char_id_table): Likewise.
3116
3117 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3118
3119         * chartab.c (copy_uint8_byte_table): New function.
3120         (copy_uint16_byte_table): New function.
3121         (copy_byte_table): New function.
3122         (map_over_uint8_byte_table): Modify to avoid huge numbers of
3123         characters to call.
3124         (map_over_uint16_byte_table): Likewise.
3125         (map_over_byte_table): Likewise.
3126         (get_byte_table): Move prototype to chartab.h.
3127         (put_byte_table): Likewise.
3128         (put_char_id_table_0): Moved to chartab.h.
3129         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
3130         (char_table_entry_equal): Likewise.
3131         (char_table_entry_hash): Likewise.
3132         (char_table_entry_description): Likewise.
3133         (char_table_entry): Likewise.
3134         (make_char_table_entry): Likewise.
3135         (copy_char_table_entry): Likewise.
3136         (get_non_ascii_char_table_value): Likewise.
3137         (map_over_charset_ascii): Likewise.
3138         (map_over_charset_control_1): Likewise.
3139         (map_over_charset_row): Likewise.
3140         (map_over_other_charset): Likewise.
3141         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
3142         (print_char_table): Likewise.
3143         (char_table_equal): Likewise.
3144         (char_table_hash): Likewise.
3145         (char_table_description): Likewise.
3146         (fill_char_table): Likewise.
3147         (Fcopy_char_table): Likewise.
3148         (get_char_table): Likewise.
3149         (Fget_range_char_table): Likewise.
3150         (put_char_table): Likewise.
3151         (map_char_table): Likewise.
3152         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
3153         UTF-2000.
3154
3155 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3156
3157         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
3158         `Vauto_fill_chars' in XEmacs UTF-2000.
3159
3160         * chartab.h (get_byte_table): New prototype [moved from
3161         chartab.c].
3162         (put_byte_table): Likewise [moved from chartab.c].
3163         (put_char_id_table_0): New inline function [moved from chartab.c].
3164         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
3165         (Lisp_Char_Table_Entry): Likewise.
3166         (char_table_entry): Likewise.
3167         (XCHAR_TABLE_ENTRY): Likewise.
3168         (XSETCHAR_TABLE_ENTRY): Likewise.
3169         (CHAR_TABLE_ENTRYP): Likewise.
3170         (CHECK_CHAR_TABLE_ENTRY): Likewise.
3171         (NUM_ASCII_CHARS): Likewise.
3172         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
3173         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
3174
3175 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3176
3177         * chartab.c (get_char_id_table): Change interface.
3178         (put_char_id_table_0): New function.
3179         (put_char_id_table): Change interface; new implementation.
3180         (Fget_composite_char): Modify for interface change of
3181         `get_char_id_table'.
3182         (Fchar_variants): Likewise.
3183         (add_char_attribute_alist_mapper): Likewise.
3184         (Fchar_attribute_alist): Likewise.
3185         (Fget_char_attribute): Likewise.
3186         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
3187         as same as character as the first argument like `put-char-table';
3188         modify for interface change of `put_char_id_table'.
3189         (Fremove_char_attribute): Modify for interface change of
3190         `put_char_id_table'.
3191
3192 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3193
3194         * text-coding.c: Sync up with XEmacs 21.2.41.
3195         (COMPOSE_ADD_CHAR): Modify for interface change of
3196         `get_char_id_table'.
3197
3198         * mule-charset.c (put_char_ccs_code_point): Modify for interface
3199         change of `put_char_id_table'.
3200         (remove_char_ccs): Likewise.
3201
3202         * chartab.h (put_char_id_table): Change interface.
3203
3204         * char-ucs.h (get_char_id_table): Change interface.
3205         (charset_code_point): Modify for interface change of
3206         `get_char_id_table'.
3207         (encode_char_1): Likewise.
3208
3209 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3210
3211         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3212         argument `ccs'.
3213         (map_over_uint16_byte_table): Likewise.
3214         (map_over_byte_table): Likewise.
3215         (map_char_id_table): Add new argument `range' like
3216         `map_char_table'.
3217         (Fmap_char_attribute): Add new argument `range' like
3218         `Fmap_char_table'.
3219
3220 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3221
3222         * chartab.c (map_over_uint8_byte_table): Change interface of
3223         mapping function to use struct chartab_range instead of Emchar.
3224         (map_over_uint16_byte_table): Likewise.
3225         (map_over_byte_table): Likewise.
3226         (map_char_id_table): Likewise.
3227         (struct slow_map_char_id_table_arg): Deleted.
3228         (slow_map_char_id_table_fun): Deleted.
3229         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3230         function `slow_map_char_table_fun' instead of struct
3231         `slow_map_char_id_table_arg' and function
3232         `slow_map_char_id_table_fun'.
3233
3234 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3235
3236         * mule-charset.c: Move char-it-table related codes to chartab.c.
3237         (Vutf_2000_version): Moved to chartab.c.
3238         (Fdefine_char): Likewise.
3239         (Ffind_char): Likewise.
3240         (syms_of_mule_charset): Move types `uint8-byte-table',
3241         `uint16-byte-table', `byte-table' and `char-id-table' to
3242         chartab.c; move functions `char_attribute_list,
3243         `find_char_attribute_table, `char_attribute_alist,
3244         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3245         `map_char_attribute, `define_char, `find_char, `char_variants and
3246         `get_composite_char to chartab.c; move symbols `=>ucs',
3247         `->decomposition', `compat', `isolated', `initial', `medial',
3248         `final', `vertical', `noBreak', `fraction', `super', `sub',
3249         `circle', `square', `wide', `narrow', `small' and `font' to
3250         chartab.c.
3251         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3252         setting codes for `Vcharacter_composition_table' and
3253         `Vcharacter_variant_table' to chartab.c.
3254         (complex_vars_of_mule_charset): Move setting code for
3255         `Vchar_attribute_hash_table' to chartab.c.
3256
3257         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3258         (make_char_id_table): New prototype.
3259         (put_char_id_table): Likewise.
3260         (Fget_char_attribute): Likewise.
3261
3262         * chartab.c: Move char-id-table related code from mule-charset.c.
3263         (Vutf_2000_version): Moved from mule-charset.c.
3264
3265         * char-ucs.h (Qucs): New external variable.
3266         (put_char_ccs_code_point): New prototype.
3267         (remove_char_ccs): Likewise.
3268
3269 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3270
3271         * mule-charset.c (Vcharset_ucs_jis): New variable.
3272         (Qucs_jis): Likewise.
3273         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3274         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3275
3276         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3277
3278 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3279
3280         * mule-charset.c (map_over_uint8_byte_table): New function.
3281         (map_over_uint16_byte_table): Likewise.
3282         (map_over_byte_table): Likewise.
3283         (map_char_id_table): Likewise.
3284         (slow_map_char_id_table_fun): Likewise.
3285         (Fmap_char_attribute): Likewise.
3286         (syms_of_mule_charset): Add new function `map-char-attribute'.
3287
3288 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3289
3290         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3291         (syms_of_mule_charset): Add new function `find-char'.
3292
3293 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3294
3295         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3296         XEmacs UTF-2000.
3297         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3298         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3299         XEmacs UTF-2000.
3300         (complex_vars_of_mule_charset): Add new coded-charset
3301         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3302         `ideograph-gt-pj-*'.
3303
3304         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3305
3306 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3307
3308         * mule-charset.c (encode_builtin_char_1): Purge codes about
3309         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3310         {MIN|MAX}_CHAR_HEBREW.
3311         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3312         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3313
3314         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3315         (MAX_CHAR_GREEK): Purged.
3316         (MIN_CHAR_CYRILLIC): Purged.
3317         (MAX_CHAR_CYRILLIC): Purged.
3318         (MIN_CHAR_HEBREW): Commented out.
3319         (MAX_CHAR_HEBREW): Likewise.
3320
3321 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3322
3323         * mule-charset.c (Qto_ucs): New variable.
3324         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3325         (Fdefine_char): Likewise.
3326         (syms_of_mule_charset): Add new symbol `=>ucs'.
3327
3328 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3329
3330         * mule-charset.c (Fdecode_char): Fixed.
3331
3332 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3333
3334         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3335         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3336         "tcvn5712-1".
3337
3338 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3339
3340         * mule-charset.c (Vcharset_ucs_big5): New variable.
3341         (Qucs_big5): Likewise.
3342         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3343         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3344
3345         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3346
3347 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3348
3349         * mule-charset.c (decode_builtin_char): Check Big5 code range
3350         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3351
3352 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3353
3354         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3355         (Qchinese_gb12345): Likewise.
3356         (Fdecode_builtin_char): Fixed.
3357         (syms_of_mule_charset): Add `chinese-gb12345'.
3358         (complex_vars_of_mule_charset): Add coded-charset
3359         `chinese-gb12345'.
3360
3361         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3362         (LEADING_BYTE_CHINESE_GB12345): New macro.
3363
3364 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3365
3366         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3367         and `latin-viscii-upper' for `latin-viscii'.
3368
3369 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3370
3371         * mule-charset.c (Fdecode_builtin_char): Comment out
3372         regularization code for ISO-IR GR representation.
3373
3374 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3375
3376         * mule-charset.c (decode_builtin_char): New function; renamed from
3377         `make_builtin_char'; return -1 instead of signal.
3378         (Fdecode_builtin_char): Use `decode_builtin_char'.
3379
3380         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3381         `make_builtin_char'.
3382         (DECODE_CHAR): Use `decode_builtin_char' instead of
3383         `make_builtin_char'; use mapping table of `chinese-big5' for
3384         `chinese-big5-{1,2}'.
3385
3386 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3387
3388         * text-coding.c (char_encode_big5): New function.
3389         (char_finish_big5): Likewise.
3390         (reset_encoding_stream): Use `char_encode_big5' and
3391         `char_finish_big5' for CODESYS_BIG5.
3392         (mule_encode): Don't use `encode_coding_big5'.
3393         (encode_coding_big5): Deleted.
3394
3395 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3396
3397         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3398         0x81- in XEmacs UTF-2000.
3399         (detect_coding_big5): Likewise.
3400
3401 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3402
3403         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3404         generate character-id if the CCS property does not have
3405         corresponding predefined character.
3406         (make_builtin_char): Return -1 if corresponding predefined
3407         character is not found.
3408         (Fdecode_char): Return nil if corresponding character is not
3409         found.
3410         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3411         don't map to builtin ucs space.
3412
3413 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3414
3415         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3416         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3417
3418 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3419
3420         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3421         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3422         (Qideograph_gt): Likewise.
3423         (Qideograph_gt_pj_{1..11}): Likewise.
3424         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3425         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3426         `ideograph-gt-pj-11'.
3427         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3428         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3429         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3430
3431         * char-ucs.h (LEADING_BYTE_GT): New macro.
3432         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3433         (MIN_CHAR_GT): Likewise.
3434         (MAX_CHAR_GT): Likewise.
3435
3436 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3437
3438         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3439         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3440
3441         * doprnt.c (unsigned_int_converters): Add `c'.
3442         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3443
3444         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3445         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3446         `MIN_CHAR_MOJIKYO'.
3447         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3448         (MAX_CHAR_MOJIKYO_0): New macro.
3449         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3450
3451 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3452
3453         * mule-charset.c (Fdefine_char): Delete cemented out code.
3454         (encode_builtin_char_1): Modify for new allocation of builtin
3455         Mojikyo characters.
3456
3457         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3458
3459 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3460
3461         * mule-charset.c (Vcharset_ucs_cns): New variable.
3462         (Qucs_cns): New variable.
3463         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3464         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3465
3466 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3467
3468         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3469
3470 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3471
3472         * search.c (search_buffer): Make `charset_base_code' as
3473         character-id >> 6 to eliminate the corresponding last byte in
3474         UTF-8 representation [I'm not sure it is right thing].
3475         (boyer_moore): Likewise.
3476
3477 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3478
3479         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3480         representation in MULE.
3481
3482 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3483
3484         * text-coding.c (Fmake_coding_system): Use
3485         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3486         `EXTERNAL_PROPERTY_LIST_LOOP'.
3487
3488 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3489
3490         * text-coding.c (decode_output_utf8_partial_char): New function.
3491         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3492
3493 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3494
3495         * text-coding.c (decode_coding_utf8): Output original byte
3496         sequence if it is broken; change order of conditions.
3497
3498         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3499         of conditions.
3500
3501         * mb-multibyte.h (BYTE_ASCII_P):
3502         Use bit ops for char-signedness safety.
3503         (BYTE_C0_P): Use bit ops for char-signedness safety.
3504         (BYTE_C1_P): Use bit ops for char-signedness safety.
3505
3506         * character.h: (XCHAR_OR_CHAR_INT):
3507         Always use inline function.
3508         Remove redundant type checking assert() - XINT will abort quite
3509         nicely.
3510
3511 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3512
3513         * text-coding.c: (Fencode_shift_jis_char):
3514         (Fencode_big5_char):
3515         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3516         Replace 0 with '\0' when working with bytes.
3517         Replace initial "(" with "\(" in docstrings.
3518
3519         (Fmake_coding_system):
3520         When type is ccl and value is vector, register it with a proper
3521         symbol.  And checks whether the given ccl program is valid.
3522         (mule_decode): When calling ccl_driver, if src indicates
3523         NULL pointer, set an empty string instead.
3524         (mule_encode): Likewise.
3525
3526         (detect_eol_type):
3527         (detect_coding_sjis):
3528         (decode_coding_sjis):
3529         (detect_coding_big5):
3530         (decode_coding_big5):
3531         (detect_coding_ucs4):
3532         (decode_coding_ucs4):
3533         (detect_coding_utf8):
3534         (decode_coding_utf8):
3535         (detect_coding_iso2022):
3536         (decode_coding_iso2022):
3537         (decode_coding_no_conversion):
3538         (mule_decode):
3539         Make all detecting and decoding functions take an Extbyte * arg.
3540         (text_encode_generic):
3541         (encode_coding_big5):
3542         (encode_coding_no_conversion):
3543         (mule_encode):
3544         Make all encoding functions take a Bufbyte * arg.
3545         Use size_t instead of unsigned int for memory sizes.
3546         Only cast to unsigned char whenever dereferencing Extbyte *.
3547
3548         (struct lrecord_description fcd_description_1): Use countof.
3549         (complex_vars_of_file_coding):
3550         Use countof instead of sizeof.
3551         Use CHECK_NATNUM instead of CHECK_INT.
3552
3553 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3554
3555         * mule-charset.c (Fget_char_attribute): Add new optional argument
3556         `default-value'.
3557         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3558         (remove_char_ccs): Likewise.
3559
3560 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3561
3562         * text-coding.c (char_encode_shift_jis): New implementation in
3563         UTF-2000.
3564         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3565         ...)'.
3566
3567         * mule-charset.c (Vcharset_chinese_big5): New variable in
3568         UTF-2000.
3569         (Qchinese_big5): New variable in UTF-2000.
3570         (BIG5_SAME_ROW): New macro in UTF-2000.
3571         (make_builtin_char): Use builtin characters of
3572         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3573         characters of `Vcharset_chinese_big5'.
3574         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3575         (complex_vars_of_mule_charset): Add new coded-charset
3576         `chinese-big5' in UTF-2000.
3577
3578         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3579         (Vcharset_chinese_big5): New external variable declaration.
3580         (Vcharset_japanese_jisx0208_1990): Likewise.
3581
3582 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3583
3584         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3585         function.
3586         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3587
3588 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3589
3590         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3591         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3592         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3593         `mojikyo-pj-*'.
3594
3595 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3596
3597         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3598
3599 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3600
3601         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3602         to 0.17.
3603
3604 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3605
3606         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3607         for `CHARSET_BY_ATTRIBUTES'.
3608         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3609         `CHARSET_BY_ATTRIBUTES'.
3610
3611         * text-coding.c (struct decoding_stream): Rename member `CH' to
3612         `CPOS'.
3613         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3614         (decode_coding_sjis): Likewise.
3615         (decode_coding_big5): Likewise.
3616         (decode_coding_ucs4): Likewise.
3617         (decode_coding_utf8): Likewise.
3618         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3619         `CHARSET_BY_ATTRIBUTES'.
3620         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3621         `str->counter'; decode 3, 4 bytes sets.
3622         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3623         sets.
3624         (decode_coding_no_conversion): Use `str->cpos' instead of
3625         `str->ch'.
3626
3627         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3628         (Qmojikyo_2022_1): New variable.
3629         (make_charset): Don't use `CHARSET_TYPE_*'.
3630         (range_charset_code_point): Support coded-charset
3631         `mojikyo-2022-1'.
3632         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3633         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3634         `CHARSET_BY_ATTRIBUTES'.
3635         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3636         `CHARSET_BY_ATTRIBUTES'.
3637         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3638         (complex_vars_of_mule_charset): Add new coded-charset
3639         `mojikyo-2022-1'.
3640
3641         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3642         interface; changed to inline function.
3643
3644         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3645         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3646         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3647         (CHARSET_TYPE_94): Deleted.
3648         (CHARSET_TYPE_94X94): Deleted.
3649         (CHARSET_TYPE_96): Deleted.
3650         (CHARSET_TYPE_96X96): Deleted.
3651         (CHARSET_TYPE_128): Deleted.
3652         (CHARSET_TYPE_128X128): Deleted.
3653         (CHARSET_TYPE_256): Deleted.
3654         (CHARSET_TYPE_256X256): Deleted.
3655         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3656         to inline function.
3657         (DECODE_MOJIKYO_2022): New inline function.
3658         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3659         `Vcharset_mojikyo_2022_1'.
3660
3661 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3662
3663         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3664         instead of `EQ'.
3665         (put_byte_table): Likewise.
3666         (char_id_table_equal): Use `get_byte_table' [new implementation].
3667
3668 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3669
3670         * mule-charset.c: Include <limits.h> in UTF-2000.
3671         (BT_UINT8_MIN): New macro in UTF-2000.
3672         (BT_UINT8_MAX): New macro in UTF-2000.
3673         (BT_UINT8_t): New macro in UTF-2000.
3674         (BT_UINT8_nil): New macro in UTF-2000.
3675         (BT_UINT8_unbound): New macro in UTF-2000.
3676         (INT_UINT8_P): New inline function in UTF-2000.
3677         (UINT8_VALUE_P): New inline function in UTF-2000.
3678         (UINT8_ENCODE): New inline function in UTF-2000.
3679         (UINT8_DECODE): New inline function in UTF-2000.
3680         (mark_uint8_byte_table): New function in UTF-2000.
3681         (print_uint8_byte_table): New function in UTF-2000.
3682         (uint8_byte_table_equal): New function in UTF-2000.
3683         (uint8_byte_table_hash): New function in UTF-2000.
3684         (make_uint8_byte_table): New function in UTF-2000.
3685         (uint8_byte_table_same_value_p): New function in UTF-2000.
3686         (BT_UINT16_MIN): New macro in UTF-2000.
3687         (BT_UINT16_MAX): New macro in UTF-2000.
3688         (BT_UINT16_t): New macro in UTF-2000.
3689         (BT_UINT16_nil): New macro in UTF-2000.
3690         (BT_UINT16_unbound): New macro in UTF-2000.
3691         (INT_UINT16_P): New inline function in UTF-2000.
3692         (UINT16_VALUE_P): New inline function in UTF-2000.
3693         (UINT16_ENCODE): New inline function in UTF-2000.
3694         (UINT16_DECODE): New inline function in UTF-2000.
3695         (UINT8_TO_UINT16): New inline function in UTF-2000.
3696         (mark_uint16_byte_table): New function in UTF-2000.
3697         (print_uint16_byte_table): New function in UTF-2000.
3698         (uint16_byte_table_equal): New function in UTF-2000.
3699         (uint16_byte_table_hash): New function in UTF-2000.
3700         (make_uint16_byte_table): New function in UTF-2000.
3701         (uint16_byte_table_same_value_p): New function in UTF-2000.
3702         (print_byte_table): New function in UTF-2000.
3703         (byte-table): Use `print_byte_table' as printer.
3704         (make_byte_table): Delete second argument `older'.
3705         (byte_table_same_value_p): New function in UTF-2000.
3706         (copy_byte_table): Deleted.
3707         (get_byte_table): New function in UTF-2000.
3708         (put_byte_table): New function in UTF-2000.
3709         (print_char_id_table): New function in UTF-2000.
3710         (char-id-table): Use `print_char_id_table' as printer.
3711         (make_char_id_table): Delete second argument `older'.
3712         (get_char_id_table): Use `get_byte_table [new implementation].
3713         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3714         implementation].
3715         (Ffind_char_attribute_table): New function in UTF-2000.
3716         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3717         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3718         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3719         (syms_of_mule_charset): Add new function
3720         `find-char-attribute-table' in UTF-2000.
3721
3722         * lrecord.h (enum lrecord_type): Add
3723         `lrecord_type_uint16_byte_table' and
3724         `lrecord_type_uint8_byte_table'.
3725
3726         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3727         (Lisp_Uint8_Byte_Table): New type.
3728         (XUINT8_BYTE_TABLE): New macro.
3729         (XSETUINT8_BYTE_TABLE): New macro.
3730         (UINT8_BYTE_TABLE_P): New macro.
3731         (GC_UINT8_BYTE_TABLE_P): New macro.
3732         (struct Lisp_Uint16_Byte_Table): New structure.
3733         (Lisp_Uint16_Byte_Table): New type.
3734         (XUINT16_BYTE_TABLE): New macro.
3735         (XSETUINT16_BYTE_TABLE): New macro.
3736         (UINT16_BYTE_TABLE_P): New macro.
3737         (GC_UINT16_BYTE_TABLE_P): New macro.
3738
3739 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3740
3741         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3742         (Vcharacter_ideographic_strokes_table): Deleted.
3743         (Vcharacter_total_strokes_table): Deleted.
3744         (Vcharacter_morohashi_daikanwa_table): Deleted.
3745         (Vcharacter_decomposition_table): Deleted.
3746         (Qname): Deleted because it is duplicated.
3747         (Qideographic_radical): Deleted.
3748         (Qideographic_strokes): Deleted.
3749         (Qtotal_strokes): Deleted.
3750         (Qmorohashi_daikanwa): Deleted.
3751         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3752         `ideographic-radical', `ideographic-strokes', `total-strokes',
3753         `morohashi-daikanwa' and `->decomposition'.
3754         (Fget_char_attribute): Likewise.
3755         (Fput_char_attribute): Likewise; use `make-vector' instead of
3756         `make_older_vector' for `->decomposition' value.
3757         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3758         `ideograph-daikanwa'.
3759         (syms_of_mule_charset): Delete builtin symbols `name',
3760         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3761         `morohashi-daikanwa'.
3762         (vars_of_mule_charset): Don't setup
3763         `Vcharacter_ideographic_radical_table',
3764         `Vcharacter_ideographic_strokes_table',
3765         `Vcharacter_total_strokes_table',
3766         `Vcharacter_morohashi_daikanwa_table' and
3767         `Vcharacter_decomposition_table'.
3768
3769 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3770
3771         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3772         `make_older_vector', `make_vector_newer_1' and
3773         `make_vector_newer'.
3774
3775         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3776         `make_older_vector' and `make_vector_newer'.
3777
3778         * config.h.in (HAVE_GGC): New macro.
3779
3780 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3781
3782         * mule-charset.c (struct char_attribute_list_closure): New
3783         structure in UTF-2000.
3784         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3785         (Fchar_attribute_list): Likewise.
3786         (Fset_charset_mapping_table): Use `make_vector_newer'.
3787         (Fdecode_builtin_char): New function in UTF-2000.
3788         (syms_of_mule_charset): Add new function `char-attribute-list' and
3789         `decode-builtin-char' in UTF-2000.
3790
3791         * lisp.h (make_vector_newer): New prototype.
3792
3793         * alloc.c (make_vector_newer_1): New function.
3794         (make_vector_newer): New function.
3795
3796 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3797
3798         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3799         50100)'.
3800
3801 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3802
3803         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3804         (Vcharacter_attribute_table): Deleted.
3805         (Vcharacter_name_table): Deleted.
3806         (put_char_attribute): Deleted.
3807         (remove_char_attribute): Deleted.
3808         (struct char_attribute_alist_closure): New structure.
3809         (add_char_attribute_alist_mapper): New function.
3810         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3811         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3812         (Fget_char_attribute): Likewise.
3813         (Fput_char_attribute): Likewise.
3814         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3815         of `remove_char_attribute'.
3816         (Fdefine_char): Return character.
3817         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3818         and `Vcharacter_name_table'.
3819         (complex_vars_of_mule_charset): Likewise
3820         `Vchar_attribute_hash_table'.
3821
3822 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3823
3824         * character.h (CHARC_CHARSET): New macro.
3825         (CHARC_CHARSET_ID): New macro.
3826         (CHARC_CODE_POINT): New macro.
3827         (CHARC_COLUMNS): New macro.
3828         (CHARC_TO_CHAR): New inline function.
3829         (CHARC_EQ): New inline function.
3830         (CHARC_ASCII_EQ): New inline function.
3831         (CHARC_IS_SPACE): New inline function.
3832         (ASCII_TO_CHARC): New inline function.
3833
3834         * char-ucs.h (encode_char_2): Deleted.
3835         (ENCODE_CHAR): Use `encode_char_1' again.
3836         (breakup_char_1): Likewise.
3837         (CHAR_TO_CHARC): New inline function.
3838
3839         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3840
3841 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3842
3843         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3844         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3845         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3846         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3847         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3848         `CHARC_IS_SPACE'.
3849         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3850
3851         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3852         `CHARC_CODE_POINT'.
3853         (x_output_display_block): Use `CHARC_CHARSET' and
3854         `CHARC_ASCII_EQ'.
3855
3856         * redisplay-tty.c (tty_output_display_block): Use
3857         `CHARC_ASCII_EQ'.
3858         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3859
3860         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3861
3862         * insdel.c (find_charsets_in_charc_string): Use
3863         `CHARC_CHARSET_ID'.
3864         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3865         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3866         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3867         (convert_charc_string_into_malloced_string): Likewise.
3868
3869 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3870
3871         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3872         instead of <Emchar_dynarr *> for buf; use
3873         `convert_bufbyte_string_into_charc_dynarr' instead of
3874         `convert_bufbyte_string_into_emchar_dynarr'; use
3875         `find_charsets_in_charc_string' instead of
3876         `find_charsets_in_emchar_string'.
3877
3878         * redisplay.h:
3879         - Include "character.h".
3880         (struct rune): New member `cglyph'; delete member `chr'.
3881
3882         * redisplay.c (redisplay_text_width_charc_string): New function;
3883         delete `redisplay_text_width_emchar_string'.
3884         (rtw_charc_dynarr): New variable; renamed from
3885         `rtw_emchar_dynarr'.
3886         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3887         `rtw_emchar_dynarr'; use
3888         `convert_bufbyte_string_into_charc_dynarr' instead of
3889         `convert_bufbyte_string_into_emchar_dynarr'; use
3890         `redisplay_text_width_charc_string' instead of
3891         `redisplay_text_width_emchar_string'.
3892         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3893         instead of `rtw_emchar_dynarr'; use
3894         `convert_bufbyte_string_into_charc_dynarr' instead of
3895         `convert_bufbyte_string_into_emchar_dynarr'.
3896         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3897         `redisplay_text_width_charc_string' instead of
3898         `redisplay_text_width_emchar_string'.
3899         (create_text_block): Modify for <struct rune> change.
3900         (generate_formatted_string_db): Likewise.
3901         (create_string_text_block): Likewise.
3902         (pixel_to_glyph_translation): Likewise.
3903
3904         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3905         instead of <const Emchar *>.
3906         (x_text_width): Likewise.
3907         (x_output_display_block): Use <Charc_dynarr *> instead
3908         <Emchar_dynarr *>; modify for <structure rune> change.
3909         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3910         *>.
3911
3912         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3913         <const Emchar *>; use `charc_string_displayed_columns' instead of
3914         `emchar_string_displayed_columns'.
3915         (tty_output_display_block): Use <Charc_dynarr *> instead of
3916         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3917         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3918         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3919         `tty_output_emchar_dynarr_dynarr'.
3920         (tty_output_charc_dynarr): New function; delete
3921         `tty_output_charc_dynarr'.
3922
3923         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3924         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3925         <Emchar_dynarr *> for buf; use
3926         `convert_bufbyte_string_into_charc_dynarr' instead of
3927         `convert_bufbyte_string_into_emchar_dynarr'.
3928
3929         * frame.c (title_string_charc_dynarr): New variable; renamed from
3930         `title_string_emchar_dynarr'.
3931         (generate_title_string): Use `title_string_charc_dynarr' instead
3932         of `title_string_emchar_dynarr'; use
3933         `convert_charc_string_into_malloced_string' instead of
3934         `convert_emchar_string_into_malloced_string'.
3935         (init_frame): Use `title_string_charc_dynarr' instead of
3936         `title_string_emchar_dynarr'.
3937
3938         * console.h:
3939         - Include "character.h".
3940         (struct console_methods): Use <const Charc *> instead of <const
3941         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3942         <Emchar_dynarr *> in output_string_method.
3943
3944         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3945         <Emchar_dynarr *>.
3946
3947         * console-stream.c (stream_text_width): Use <const Charc *>
3948         instead of <const Emchar *>.
3949
3950         * character.h (Charc_dynarr): New type.
3951
3952         * char-ucs.h (structure Charc): New structure; define new type
3953         `Charc'.
3954
3955         * char-lb.h (DECODE_CHAR): New inline function.
3956         (encode_char_1): New inline function.
3957         (ENCODE_CHAR): New macro.
3958         (structure Charc): New structure; define new type `Charc'.
3959
3960         * char-1byte.h (Vcharset_control_1): New macro.
3961         (Vcharset_latin_iso8859_1): New macro.
3962         (DECODE_CHAR): New inline function.
3963         (encode_char_1): New inline function.
3964         (ENCODE_CHAR): New macro.
3965         (structure Charc): New structure; define new type `Charc'.
3966
3967         * insdel.c (find_charsets_in_charc_string): New function; delete
3968         `find_charsets_in_emchar_string'.
3969         (charc_string_displayed_columns): New function; delete
3970         `emchar_string_displayed_columns'.
3971         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3972         `convert_bufbyte_string_into_emchar_dynarr'.
3973         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3974         `convert_charc_string_into_bufbyte_dynarr'.
3975         (convert_charc_string_into_malloced_string): New function; delete
3976         `convert_charc_string_into_malloced_string'.
3977
3978         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3979         `find_charsets_in_emchar_string'.
3980         (charc_string_displayed_columns): New prototype; delete
3981         `emchar_string_displayed_columns'.
3982         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3983         `convert_charc_string_into_bufbyte_dynarr'.
3984         (convert_charc_string_into_malloced_string): New prototype; delete
3985         `convert_charc_string_into_malloced_string'.
3986
3987 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3988
3989         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3990
3991 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3992
3993         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3994
3995         * char-ucs.h: Use <short> for <Charset_ID>.
3996
3997         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3998         <Charset_ID>.
3999
4000 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4001
4002         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4003         to 0.16.
4004
4005 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4006
4007         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
4008         variable.
4009         (Qmorohashi_daikanwa): New variable.
4010         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
4011         for `morohashi-daikanwa' attribute.
4012         (Fget_char_attribute): Likewise.
4013         (Fput_char_attribute): Likewise.
4014         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
4015         has the same value of `ideograph-daikanwa'.
4016         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
4017         (vars_of_mule_charset): Setup
4018         `Vcharacter_morohashi_daikanwa_table'.
4019
4020 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4021
4022         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
4023         attributes.
4024         (add_charset_to_list_mapper): Add `key' instead of
4025         `XCHARSET_NAME (value)' to return aliases.
4026
4027 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4028
4029         * mule-charset.c (Vcharacter_ideographic_radical_table): New
4030         variable.
4031         (Vcharacter_ideographic_strokes_table): New variable.
4032         (Qideographic_radical): New variable.
4033         (Qideographic_strokes): New variable.
4034         (Fchar_attribute_alist): Use
4035         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
4036         attribute; use `Vcharacter_ideographic_strokes_table' for
4037         `ideographic-strokes' attribute.
4038         (Fget_char_attribute): Likewise.
4039         (Fput_char_attribute): Likewise.
4040         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
4041         `ideographic-strokes'.
4042         (vars_of_mule_charset): Setup
4043         `Vcharacter_ideographic_radical_table' and
4044         `Vcharacter_ideographic_strokes_table'.
4045
4046 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4047
4048         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
4049         (Qtotal_strokes): New variable.
4050         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
4051         `total-strokes' attribute.
4052         (Fget_char_attribute): Likewise.
4053         (Fput_char_attribute): Likewise.
4054         (syms_of_mule_charset): Add new symbol `total-strokes'.
4055         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
4056
4057 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4058
4059         * mule-charset.c (Vcharacter_decomposition_table): New variable.
4060         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
4061         are found.
4062         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
4063         `->decomposition' attribute.
4064         (Fput_char_attribute): Likewise.
4065         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
4066
4067 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4068
4069         * mule-charset.c (decoding_table_check_elements): New function.
4070         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
4071
4072 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4073
4074         * mule-charset.c (Fset_charset_mapping_table): Use
4075         `put_char_ccs_code_point'.
4076
4077 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4078
4079         * mule-charset.c (decoding_table_put_char): New inline function.
4080         (put_char_ccs_code_point): Use `decoding_table_put_char'.
4081
4082 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4083
4084         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
4085         (XCHARSET_BYTE_SIZE): New macro.
4086         (decoding_table_remove_char): New inline function.
4087         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
4088         `decoding_table_remove_char'.
4089         (remove_char_ccs): Use `decoding_table_remove_char'.
4090         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
4091
4092 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4093
4094         * mule-charset.c (Vcharacter_name_table): New variable.
4095         (Qname): New variable.
4096         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
4097         attribute.
4098         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
4099         `Vcharacter_name_table' for `name' attribute.
4100         (Fremove_char_attribute): Use function `remove_char_ccs'.
4101         (put_char_ccs_code_point): New function.
4102         (remove_char_ccs): New function.
4103         (syms_of_mule_charset): Add new symbol `name'.
4104         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
4105
4106 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4107
4108         * mule-charset.c (make_byte_table): Add new argument `older'.
4109         (make_char_id_table): Likewise.
4110         (copy_char_id_table): Comment out because it is not used.
4111         (put_char_id_table): Modify for `make_byte_table'.
4112         (Fput_char_attribute): Make encoding_table as older object;
4113         inherit older bit of `Vcharacter_composition_table'.
4114         (mark_charset): Don't mark `cs->encoding_table'.
4115         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
4116         normal object; make `Vcharacter_composition_table' as an older
4117         object; delete staticpro for `Vcharacter_composition_table'; make
4118         `Vcharacter_variant_table' as a normal object.
4119
4120         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
4121         (mark_object): Don't check older object in UTF-2000.
4122
4123         * lrecord.h (struct lrecord_header): Add new member `older' in
4124         UTF-2000.
4125         (set_lheader_implementation): Setup `SLI_header->older' in
4126         UTF-2000.
4127         (set_lheader_older_implementation): New macro in UTF-2000.
4128         (OLDER_RECORD_P): New macro in UTF-2000.
4129         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
4130         (alloc_older_lcrecord): New prototype in UTF-2000.
4131         (alloc_older_lcrecord_type): New macro in UTF-2000.
4132
4133 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4134
4135         * mule-charset.c (byte_table_description): Use
4136         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
4137         (char_id_table_description): Delete bogus `, 1'.
4138         (Fget_char_attribute): Refer encoding_table of each coded-charset
4139         to get value of coded-charset attribute of a character.
4140         (Fput_char_attribute): Use `make_older_vector' instead of
4141         `make_vector'; use encoding_table of each coded-charset to store
4142         value of coded-charset attribute of a character.
4143         (Fremove_char_attribute): Use encoding_table of each coded-charset
4144         to store value of coded-charset attribute of a character.
4145         (mark_charset): Mark `cs->encoding_table'; don't mark
4146         `cs->decoding_table'.
4147         (charset_description): Add description of new member
4148         `encoding_table'.
4149         (make_charset): Initialize `encoding_table'.
4150
4151         * char-ucs.h (struct Lisp_Charset): Add new member
4152         `encoding_table'.
4153         (CHARSET_ENCODING_TABLE): New macro.
4154         (XCHARSET_ENCODING_TABLE): New macro.
4155         (charset_code_point): New implementation.
4156         (encode_char_1): Likewise.
4157
4158         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
4159         (disksave_object_finalization_1): Call finalizers of
4160         `all_older_lcrecords' in UTF-2000.
4161         (make_older_vector): New function in UTF-2000.
4162         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
4163         UTF-2000.
4164
4165         * lisp.h (make_older_vector): New prototype in UTF-2000.
4166
4167 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4168
4169         * lrecord.h (enum lrecord_type): Rename
4170         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
4171
4172         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
4173         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
4174         `get_char_code_table'.
4175
4176         * mule-charset.c (mark_char_id_table): Renamed from
4177         `mark_char_code_table'.
4178         (char_id_table_equal): Renamed from `char_code_table_equal'.
4179         (char_id_table_hash): Renamed from `char_code_table_hash'.
4180         (make_char_id_table): Renamed from `make_char_code_table'.
4181         (copy_char_id_table): Renamed from `copy_char_code_table'.
4182         (get_char_id_table): Renamed from `get_char_code_table'.
4183         (put_char_id_table): Renamed from `put_char_code_table'.
4184         (to_char_id): Renamed from `to_char_code'.
4185
4186         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
4187         `Lisp_Char_Code_Table'.
4188         (char_id_table): Renamed from `char_code_table'.
4189         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
4190         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
4191         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
4192         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
4193         (get_char_id_table): Renamed from `get_char_code_table'.
4194
4195 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4196
4197         * lrecord.h (enum lrecord_type): Rename
4198         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
4199
4200         * mule-charset.c (mark_byte_table): Renamed from
4201         `mark_char_byte_table'.
4202         (byte_table_equal): Renamed from `char_byte_table_equal'.
4203         (byte_table_hash): Renamed from `byte_table_hash'.
4204         (make_byte_table): Renamed from `make_byte_table'.
4205         (copy_byte_table): Renamed from `copy_char_byte_table'.
4206
4207         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4208         `Lisp_Char_Byte_Table'.
4209         (byte_table): Renamed from `char_byte_table'.
4210         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4211         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4212         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4213         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4214
4215 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4216
4217         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4218         (dfc_convert_to_internal_format): Likewise.
4219         
4220         * text-coding.c (Fcoding_system_canonical_name_p): New function.
4221         * text-coding.c (Fcoding_system_alias_p): New function.
4222         * text-coding.c (Fcoding_system_aliasee): New function.
4223         * text-coding.c (append_suffix_to_symbol): New function.
4224         * text-coding.c (dangling_coding_system_alias_p): New function.
4225         * text-coding.c (Ffind_coding_system):
4226         * text-coding.c (Fcopy_coding_system):
4227         * text-coding.c (encode_coding_no_conversion):
4228         * text-coding.c (syms_of_file_coding):
4229         * text-coding.c (vars_of_file_coding):
4230         Rewrite coding system alias code.
4231         Allow nested aliases, like symbolic links.
4232         Allow redefinition of coding system aliases.
4233         Prevent existence of dangling coding system aliases.
4234         Eliminate convert_to_external_format.
4235         Eliminate convert_to_internal_format.
4236         
4237         * text-coding.c: Change enum eol_type to eol_type_t.
4238
4239 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4240
4241         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4242         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4243
4244         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4245         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4246
4247 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4248
4249         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4250         `ideograph-daikanwa'.
4251
4252         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4253         (Vcharset_ucs_bmp): Likewise.
4254         (Vcharset_mojikyo): Add new extern variable definition.
4255         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4256         (Vcharset_latin_iso8859_3): Likewise.
4257         (Vcharset_latin_iso8859_4): Likewise.
4258         (Vcharset_latin_iso8859_9): Likewise.
4259         (Vcharset_latin_viscii_lower): Likewise.
4260         (Vcharset_latin_viscii_upper): Likewise.
4261         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4262         `mojikyo' code-point is used to decode.
4263         (encode_char_2): New function [to convert `mojikyo' code-point to
4264         Mojikyo font encoding].
4265         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4266         (breakup_char_1): Likewise.
4267         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4268
4269 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4270
4271         * text-coding.c (Fmake_coding_system): Add document about
4272         `disable-composition' property.
4273
4274 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4275
4276         * text-coding.c (Qdisable_composition): New variable; delete
4277         `Qcomposite'.
4278         (Fmake_coding_system): Add new property `disable-composite';
4279         delete property `composite'.
4280         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4281         instead of `!CODING_SYSTEM_COMPOSITE'.
4282         (syms_of_file_coding): Add new symbol `disable-composition';
4283         delete symbol `composite'.
4284
4285         * file-coding.h (struct Lisp_Coding_System): Add
4286         `disable_composition'; delete `enable_composition'.
4287         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4288         `CODING_SYSTEM_COMPOSITE'.
4289         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4290         `XCODING_SYSTEM_COMPOSITE'.
4291
4292 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4293
4294         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4295         to 0.15.
4296
4297 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4298
4299         * text-coding.c (Qcomposite): New variable.
4300         (Fmake_coding_system): Add new property `composite'.
4301         (struct decoding_stream): Add `combined_char_count',
4302         `combined_chars' and `combining_table' in UTF-2000.
4303         (COMPOSE_FLUSH_CHARS): New macro.
4304         (COMPOSE_ADD_CHAR): New macro.
4305         (reset_decoding_stream): Reset `str->combined_char_count' and
4306         `str->combining_table' in UTF-2000.
4307         (decode_coding_iso2022): Modify for character-decomposition.
4308         (syms_of_file_coding): Add new symbol `composite'.
4309
4310 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4311
4312         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4313         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4314         of `Vcharacter_composition_table' if `->decomposition' property
4315         has only 1 element.
4316         (Qlatin_tcvn5712): New variable.
4317         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4318         (complex_vars_of_mule_charset): Add new coded-charset
4319         `latin-tcvn5712'.
4320
4321         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4322
4323 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4324
4325         * file-coding.h (struct Lisp_Coding_System): Add
4326         `enable_composition'.
4327         (CODING_SYSTEM_COMPOSITE): New macro.
4328         (XCODING_SYSTEM_COMPOSITE): New macro.
4329
4330 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4331
4332         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4333
4334 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4335
4336         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4337         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4338
4339 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4340
4341         * mule-charset.c (Vcharset_mojikyo): New variable.
4342         (Fdefine_char): Don't use coded-charset which does not have
4343         non-builtin character range to allocate character-id.
4344         (Qmojikyo): New variable.
4345         (syms_of_mule_charset): Add new symbol `mojikyo'.
4346         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4347
4348         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4349         (LEADING_BYTE_MOJIKYO): New macro.
4350         (MIN_CHAR_MOJIKYO): New macro.
4351         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4352         (MAX_CHAR_MOJIKYO): New macro.
4353
4354 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4355
4356         * mule-charset.c (remove_char_attribute): Fixed.
4357
4358 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4359
4360         * mule-charset.c (remove_char_attribute): New function.
4361         (Fremove_char_attribute): New function.
4362         (encode_builtin_char_1): Comment out builtin-support for
4363         greek-iso8859-7 and cyrillic-iso8859-5.
4364         (Fdecode_char): Check `code' is an integer.
4365         (syms_of_mule_charset): Add `remove-char-attribute'.
4366         (MIN_CHAR_GREEK): Deleted.
4367         (MAX_CHAR_GREEK): Likewise.
4368         (MIN_CHAR_CYRILLIC): Likewise.
4369         (MAX_CHAR_CYRILLIC): Likewise.
4370         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4371         MAX_CHAR_GREEK for `greek-iso8859-7'.
4372
4373         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4374         (MAX_CHAR_GREEK): Likewise.
4375         (MIN_CHAR_CYRILLIC): Likewise.
4376         (MAX_CHAR_CYRILLIC): Likewise.
4377
4378 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4379
4380         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4381         format is used without `ucs' property.
4382         (Fdecode_char): Fix problem with GR representation.
4383         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4384         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4385
4386 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4387
4388         * mule-charset.c (make_builtin_char): New function.
4389         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4390         (Fset_charset_mapping_table): Modify for new representation of
4391         code-point.
4392         (Fdecode_char): New function.
4393         (syms_of_mule_charset): Add new builtin function `decode-char' in
4394         UTF-2000.
4395
4396         * char-ucs.h (make_builtin_char): New prototype.
4397         (DECODE_CHAR): New inline function.
4398         (MAKE_CHAR): Use `DECODE_CHAR'.
4399
4400 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4401
4402         * text-coding.c (parse_charset_conversion_specs): Use
4403         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4404         `XCHARSET_TYPE'.
4405         (iso2022_designate): Likewise.
4406
4407         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4408         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4409
4410         * mule-charset.c (Vcharset_ucs): New variable.
4411         (print_charset): Change design; use `CHARSET_CHARS' and
4412         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4413         (make_charset): Change signature to specify `chars' and
4414         `dimension' instead of `type'.
4415         (range_charset_code_point): Modify for 256^n-set.
4416         (encode_builtin_char_1): Encode as `ucs' in default.
4417         (Fmake_charset): Modify for `make_charset'.
4418         (Fmake_reverse_direction_charset): Likewise.
4419         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4420         UTF-2000.
4421         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4422         for `make_charset'.
4423
4424         * char-ucs.h (Vcharset_ucs): New variable.
4425         (LEADING_BYTE_UCS): New macro.
4426         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4427         and `chars' to `unsigned short' from `unsigned int'.
4428         (CHARSET_TYPE): Deleted.
4429         (XCHARSET_TYPE): Deleted.
4430
4431 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4432
4433         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4434
4435         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4436         (ENCODE_CHAR): New macro.
4437
4438 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4439
4440         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4441         to 0.14 (Kawachi-Katakami).
4442
4443 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4444
4445         * text-coding.c (char_encode_shift_jis): Modify for
4446         `charset_code_point'.
4447         (char_encode_iso2022): Likewise.
4448
4449         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4450         (integer) instead of list of <Lisp_Object>s (integers) as the
4451         format of code-point of a coded-charset.
4452         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4453         (encode_builtin_char_1): New function; delete
4454         `split_builtin_char'.
4455         (charset_code_point): Return <int> instead of <Lisp_Object>.
4456         (Fsplit_char): Don't use `SPLIT_CHAR'.
4457
4458         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4459         prototype for `split_builtin_char'.
4460         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4461         (charset_code_point): Likewise.
4462         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4463         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4464
4465 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4466
4467         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4468         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4469
4470 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4471
4472         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4473
4474         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4475         (MAX_CHAR_OBS_94x94): Deleted.
4476
4477 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4478
4479         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4480
4481         * char-ucs.h (MAX_CHAR_BMP): New macro.
4482
4483 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4484
4485         * text-coding.c: Sync with r21-2-24.
4486
4487 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4488
4489         * file-coding.c: Modify for UTF-2000.
4490
4491 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4492
4493         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4494         to 0.13 (Takaida).
4495
4496 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4497
4498         * mule-charset.c (split_builtin_char): Delete builtin support for
4499         `katakana-jisx0201'.
4500         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4501         BMP area in builtin representation.
4502
4503         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4504         `Vcharset_katakana_jisx0201'.
4505
4506 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4507
4508         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4509         (Qisolated): New variable.
4510         (Qinitial): New variable.
4511         (Qmedial): New variable.
4512         (Qfinal): New variable.
4513         (Qvertical): New variable.
4514         (Qsmall): New variable.
4515         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4516         `Qvertical' and `Qsmall'.
4517         (Qmojikyo_pj_[1 .. 21]): New variable.
4518         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4519         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4520         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4521         .. 21]'.
4522
4523 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4524
4525         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4526         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4527         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4528
4529 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4530
4531         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4532         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4533         BMP.
4534         (Qjapanese_jisx0208_1990): New variable.
4535         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4536         (complex_vars_of_mule_charset): Add new coded-charset
4537         `japanese-jisx0208-1990'.
4538
4539         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4540         (MIN_CHAR_JIS_X0208_1990): New macro.
4541         (MAX_CHAR_JIS_X0208_1990): New macro.
4542
4543 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4544
4545         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4546         coded-charset is not found.
4547
4548 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4549
4550         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4551         (Fdefine_char): Use `Fmake_char'.
4552
4553 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4554
4555         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4556         (Vcharset_hiragana_jisx0208): Deleted.
4557         (Vcharset_katakana_jisx0208): Deleted.
4558         (Qideograph_daikanwa): New variable.
4559         (Qhiragana_jisx0208): Deleted.
4560         (Qkatakana_jisx0208): Deleted.
4561         (split_builtin_char): Split `ideograph-daikanwa'.
4562         (Fsplit_char): New implementation for UTF-2000.
4563         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4564         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4565         (complex_vars_of_mule_charset): Add new coded-charset
4566         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4567         `katakana-jisx0208'.
4568
4569         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4570         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4571         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4572         (MIN_CHAR_DAIKANWA): New macro.
4573         (MAX_CHAR_DAIKANWA): New macro.
4574
4575 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4576
4577         * data.c (Fstring_to_number): Don't recognize floating point if
4578         base is not 10.
4579
4580 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4581
4582         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4583
4584 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4585
4586         * mule-charset.c (Qsquare): New variable.
4587         (to_char_code): Add `Qsquare'.
4588         (syms_of_mule_charset): Add new symbol `square'.
4589
4590 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4591
4592         * mule-charset.c (Qcircle): New variable.
4593         (to_char_code): Add `Qcircle'.
4594         (syms_of_mule_charset): Add new symbol `circle'.
4595
4596 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4597
4598         * mule-charset.c (Qfont): New variable.
4599         (to_char_code): Add `Qfont'.
4600         (syms_of_mule_charset): Add new symbol `font'.
4601
4602 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4603
4604         * mule-charset.c (Qsub): New variable.
4605         (to_char_code): Add `Qsub'.
4606         (syms_of_mule_charset): Add new symbol `sub'.
4607
4608 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4609
4610         * mule-charset.c (Fput_char_attribute): Convert each element of
4611         VALUE to GL position if ATTRIBUTE is a GR-set,
4612
4613 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4614
4615         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4616         coded-charset is a GR-set.
4617
4618 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4619
4620         * mule-charset.c (Fput_char_attribute): Check each element of
4621         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4622
4623 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4624
4625         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4626         UTF-2000.
4627         (Qethiopic_ucs): New variable in UTF-2000.
4628         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4629         (complex_vars_of_mule_charset): Add new coded-charset
4630         `ethiopic-ucs' in UTF-2000.
4631
4632         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4633         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4634         9)'.
4635         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4636         10)'.
4637         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4638
4639 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4640
4641         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4642         `ascii'.
4643
4644 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4645
4646         * mule-charset.c (Vcharacter_variant_table): New variable.
4647         (Q_ucs): New variable.
4648         (Fchar_variants): New function.
4649         (Fput_char_attribute): Register `->ucs' value to
4650         `Vcharacter_variant_table'.
4651         (syms_of_mule_charset): Add new function `char-variants' and new
4652         symbol `->ucs'.
4653         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4654
4655 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4656
4657         * mule-charset.c (get_char_code_table): Allow negative character
4658         code.
4659         (put_char_code_table): Likewise.
4660         (Vcharacter_composition_table): New variable.
4661         (Q_decomposition): New variable.
4662         (Qwide): New variable.
4663         (Qnarrow): New variable.
4664         (Qcompat): New variable.
4665         (QnoBreak): New variable.
4666         (Qsuper): New variable.
4667         (Qfraction): New variable.
4668         (to_char_code): New function.
4669         (Fget_composite_char): New function.
4670         (Fput_char_attribute): Register `->decomposition' value to
4671         `Vcharacter_composition_table'.
4672         (syms_of_mule_charset): Add new function `get-composite-char', new
4673         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4674         `super' and `fraction'.
4675         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4676
4677 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4678
4679         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4680         character; copy the return value.
4681
4682 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4683
4684         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4685
4686         * mule-charset.c (range_charset_code_point): Must use make_int.
4687         (split_builtin_char): New function.
4688
4689 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4690
4691         * mule-charset.c (char_byte_table): Change name from
4692         "char-code-table" to "char-byte-table".
4693         (mark_char_code_table): New function.
4694         (char_code_table_equal): New function.
4695         (char_code_table_hash): New function.
4696         (char_code_table_description): New constant.
4697         (char_code_table): New type.
4698         (make_char_code_table): New function.
4699         (copy_char_code_table): New function.
4700         (get_char_code_table): Modify for `char_code_table' type.
4701         (put_char_code_table): Likewise.
4702         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4703         (Kashiwara).
4704
4705         * char-ucs.h (char_code_table): New type.
4706         (XCHAR_CODE_TABLE): New macro.
4707         (XSETCHAR_CODE_TABLE): New macro.
4708         (CHAR_CODE_TABLE_P): New macro.
4709         (GC_CHAR_CODE_TABLE_P): New macro.
4710         (struct Lisp_Char_Code_Table): New structure.
4711
4712 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4713
4714         * mule-charset.c (Fmake_charset): Setup byte_offset for
4715         {94|96}^n-set.
4716
4717 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4718
4719         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4720         character.
4721
4722 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4723
4724         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4725         is found.
4726
4727 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4728
4729         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4730         charset, it is regarded as a charset.
4731         (put_char_attribute): New function in UTF-2000.
4732         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4733         charset, mapping-table of the charset is modified.
4734         (Fdefine_char): New function in UTF-2000.
4735         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4736         `Fput_char_attribute'.
4737         (syms_of_mule_charset): Add new function `define-char' and new
4738         symbol `ucs' in UTF-2000.
4739         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4740
4741 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4742
4743         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4744         non-UTF-2000 configuration.
4745
4746 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4747
4748         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4749         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4750
4751         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4752         deleted.
4753         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4754         (Fset_charset_mapping_table): Likewise.
4755
4756         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4757         (CHARSET_ENCODING_TABLE): Delete.
4758         (XCHARSET_ENCODING_TABLE): Delete.
4759         (charset_code_point): New interface.
4760
4761 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4762
4763         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4764         instead of `charset_get_byte1' and `charset_get_byte2'.
4765
4766         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4767         (charset_get_byte2): Deleted.
4768
4769 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4770
4771         * char-ucs.h (SPLIT_CHAR): New inline function.
4772         (breakup_char_1): Use `SPLIT_CHAR'.
4773
4774         * mule-charset.c (range_charset_code_point): New function.
4775         (charset_code_point): New function.
4776
4777         * char-ucs.h (range_charset_code_point): New interface.
4778         (breakup_char_1): Use `range_charset_code_point'.
4779
4780 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4781
4782         * mule-charset.c (Fmake_charset): Delete unused local variable
4783         `code_offset'.
4784
4785         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4786         (breakup_char_1): Find a charset and code-point in
4787         `Vcharacter_attribute_table'.
4788
4789 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4790
4791         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4792         to 0.10 (Yao).
4793
4794 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4795
4796         * mule-charset.c (Vcharacter_attribute_table): New variable.
4797         (Fchar_attribute_alist): New function.
4798         (Fget_char_attribute): New function.
4799         (Fput_char_attribute): New function.
4800         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4801         too.
4802         (syms_of_mule_charset): Add new function `char-attribute-alist',
4803         `get-char-attribute' and `put-char-attribute'.
4804         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4805
4806 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4807
4808         * mule-charset.c (Fmake_charset): Just use
4809         `get_unallocated_leading_byte'.
4810
4811         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4812         sets; don't use final-byte based number for private sets.
4813
4814 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4815
4816         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4817         integer.
4818
4819 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4820
4821         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4822         to 0.9.
4823
4824 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4825
4826         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4827         of `CHAR_LEADING_BYTE' in UTF-2000.
4828
4829         * insdel.c (find_charsets_in_bufbyte_string): Use
4830         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4831         (find_charsets_in_emchar_string): Likewise.
4832
4833         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4834         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4835
4836         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4837         (CHAR_CHARSET_ID): New macro.
4838
4839 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4840
4841         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4842         charset-id - MIN_LEADING_BYTE.
4843         (put_char_table): Likewise.
4844
4845 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4846
4847         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4848         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4849         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4850         (CHARSET_ID_OFFSET): New macro.
4851         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4852         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4853         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4854         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4855         4).
4856         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4857         5).
4858         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4859         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4860         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4861         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4862         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4863
4864 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4865
4866         * mule-charset.c (next_allocated_leading_byte): New variable in
4867         UTF-2000.
4868         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4869         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4870         (get_unallocated_leading_byte): Simply use
4871         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4872         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4873         UTF-2000.
4874
4875         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4876         (MAX_LEADING_BYTE_PRIVATE): New macro.
4877         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4878         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4879
4880 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4881
4882         * mule-charset.c (Fmake_charset): Allocate final-byte based
4883         charset-id for 94-set, 96-set and 94x94-set.
4884
4885 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4886
4887         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4888         ambiguous `else'.
4889         (Fmake_charset): Likewise.
4890         (complex_vars_of_mule_charset): Modify the font registry of
4891         `ucs-bmp' not to match `Ethiopic-Unicode'.
4892
4893 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4894
4895         * mule-charset.c (complex_vars_of_mule_charset): Add font
4896         registory of `ucs-bmp'.
4897
4898 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4899
4900         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4901         coded-charsets in `default-coded-charset-priority-list' when
4902         breaking up a character.
4903
4904         * mule-charset.c (Vcharset_latin_viscii): New variable.
4905         (Qlatin_viscii): New variable.
4906         (make_charset): Don't use `decoding_table'.
4907         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4908         byte_offset.
4909         (Fset_charset_mapping_table): New implementation.
4910         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4911         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4912         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4913         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4914         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4915         charset `latin_viscii'.
4916
4917         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4918         (CHARSET_TYPE_94X94): Change to 1 from 2.
4919         (CHARSET_TYPE_96): Change to 2 from 1.
4920         (CHARSET_TYPE_128): New macro.
4921         (CHARSET_TYPE_128X128): Change to 5 from 4.
4922         (CHARSET_TYPE_256): New macro.
4923         (CHARSET_TYPE_256X256): Change to 7 from 5.
4924         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4925
4926 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4927
4928         * text-coding.c (char_encode_shift_jis): Refer
4929         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4930         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4931
4932         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4933         (char_byte_table_equal): New function in UTF-2000.
4934         (char_byte_table_hash): New function in UTF-2000.
4935         (char_byte_table_description): New constant in UTF-2000.
4936         (char_byte_table): New type in UTF-2000.
4937         (make_char_byte_table): New function in UTF-2000.
4938         (copy_char_byte_table): New function in UTF-2000.
4939         (make_char_code_table): New macro in UTF-2000.
4940         (get_char_code_table): New function in UTF-2000.
4941         (put_char_code_table): New function in UTF-2000.
4942         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4943         (charset_description): Add setting in UTF-2000.
4944         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4945         `CHARSET_TO_BYTE1_TABLE(cs)'.
4946         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4947         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4948         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4949         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4950         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4951         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4952         `CHARSET_TO_BYTE2_TABLE(cs)'.
4953
4954         * char-ucs.h (char_byte_table): New type.
4955         (XCHAR_BYTE_TABLE): New macro.
4956         (XSETCHAR_BYTE_TABLE): New macro.
4957         (CHAR_BYTE_TABLE_P): New macro.
4958         (GC_CHAR_BYTE_TABLE_P): New macro.
4959         (struct Lisp_Char_Byte_Table): New structure.
4960         (get_char_code_table): New interface.
4961         (Emchar_to_byte_table): Deleted.
4962         (get_byte_from_character_table): Deleted.
4963         (struct Lisp_Charset): Add `encoding_table'; delete
4964         `to_byte1_table' and `to_byte2_table'.
4965         (CHARSET_ENCODING_TABLE): New macro.
4966         (CHARSET_TO_BYTE1_TABLE): Deleted.
4967         (CHARSET_TO_BYTE2_TABLE): Deleted.
4968         (XCHARSET_ENCODING_TABLE): New macro.
4969         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4970         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4971
4972 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4973
4974         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4975         `vietnamese-viscii-*'.
4976
4977 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4978
4979         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4980         (Qvietnamese_viscii_upper): New variable.
4981         (Fdefine_charset_alias): New function.
4982         (syms_of_mule_charset): Add new function `define-charset-alias'.
4983         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4984         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4985         `latin-viscii-*'.
4986
4987 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4988
4989         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4990         (MAX_CHAR_OBS_94x94): New macro.
4991         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4992         for 94x94 sets.
4993
4994         * mule-charset.c (put_byte_from_character_table): Change unit size
4995         from 128 to 256.
4996         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4997         not defined.
4998         (Fmake_reverse_direction_charset): Modify dummy argument of
4999         `make_charset' for non-UTF-2000 environment.
5000
5001 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5002
5003         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
5004
5005         * mule-charset.c (destroy_byte_from_character_table): New macro.
5006         (latin_jisx0201_to_ucs): Deleted.
5007         (latin_iso8859_2_to_ucs): Deleted.
5008         (latin_iso8859_3_to_ucs): Deleted.
5009         (latin_iso8859_4_to_ucs): Deleted.
5010         (latin_iso8859_9_to_ucs): Deleted.
5011         (latin_viscii_lower_to_ucs): Deleted.
5012         (latin_viscii_upper_to_ucs): Deleted.
5013         (mark_charset): Mark `cs->decoding_table'.
5014         (Fcharset_mapping_table): Fix DOC-string.
5015         (Fset_charset_mapping_table): New function.
5016         (syms_of_mule_charset): Add nwe function
5017         `set-charset-mapping-table'.
5018         (complex_vars_of_mule_charset): Don't setup and use
5019         `latin_*_to_ucs'.
5020
5021 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5022
5023         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
5024         charset.
5025
5026 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5027
5028         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
5029         (Vcharset_katakana_jisx0208): New variable.
5030         (Qhiragana_jisx0208): New variable.
5031         (Qkatakana_jisx0208): New variable.
5032         (make_charset): Add new argument `byte_offset'.
5033         (charset_get_byte1): Modify for new coded-charset definition; use
5034         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5035         `XCHARSET_BYTE_OFFSET'.
5036         (Fmake_charset): Modify for `make_charset'.
5037         (Fmake_reverse_direction_charset): Likewise.
5038         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
5039         `katakana-jisx0208'.
5040         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
5041         `.'  in font registry of charset `katakana-jisx0201',
5042         `latin-jisx0201', `vietnamese-viscii-lower' and
5043         `vietnamese-viscii-upper'; modify DOC-string of charset
5044         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
5045         registry of charset `japanese-jisx0208' not to use font for JIS
5046         X0208:1990; add new charset `hiragana-jisx0208' and
5047         `katakana-jisx0208'.
5048
5049         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
5050         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
5051         (struct Lisp_Charset): Add `byte_offset'.
5052         (CHARSET_BYTE_OFFSET): New macro.
5053         (XCHARSET_UCS_MIN): New macro.
5054         (XCHARSET_UCS_MAX): New macro.
5055         (XCHARSET_CODE_OFFSET): New macro.
5056         (XCHARSET_BYTE_OFFSET): New macro.
5057         (MIN_CHAR_HIRAGANA): New macro.
5058         (MAX_CHAR_HIRAGANA): New macro.
5059         (MIN_CHAR_KATAKANA): New macro.
5060         (MAX_CHAR_KATAKANA): New macro.
5061         (MAKE_CHAR): Modify for new coded-charset definition; use
5062         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
5063         `XCHARSET_BYTE_OFFSET'.
5064
5065 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5066
5067         * mule-charset.c (CHAR96): Deleted.
5068         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
5069         <Lisp_Object>.
5070         (latin_iso8859_2_to_ucs): Likewise.
5071         (latin_iso8859_3_to_ucs): Likewise.
5072         (latin_iso8859_4_to_ucs): Likewise.
5073         (latin_iso8859_9_to_ucs): Likewise.
5074         (latin_viscii_lower_to_ucs): Likewise.
5075         (latin_viscii_upper_to_ucs): Likewise.
5076         (latin_tcvn5712_to_ucs): Commented out.
5077         (make_charset): Change type of argument `decoding_table' from
5078         <Emchar*> to <Lisp_Object> [vector of characters].
5079         (Fmake_charset): Modify for `make_charset'.
5080         (Fmake_reverse_direction_charset): Likewise.
5081         (Fcharset_mapping_table): New function in UTF-2000.
5082         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
5083         UTF-2000.
5084         (complex_vars_of_mule_charset): Modify for type change of
5085         `*_to_ucs'; modify for `make_charset'.
5086
5087         * char-ucs.h (struct Lisp_Charset): Change type of
5088         `decoding_table' from <Emchar*> to <Lisp_Object>.
5089         (MAKE_CHAR): Modify for new specification of `decoding_table'.
5090
5091 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
5092
5093         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
5094         error with non-UTF-2000-Mule.
5095
5096 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
5097
5098         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
5099         in lisp again].
5100         (Vcharset_chinese_cns11643_4): Likewise.
5101         (Vcharset_chinese_cns11643_5): Likewise.
5102         (Vcharset_chinese_cns11643_6): Likewise.
5103         (Vcharset_chinese_cns11643_7): Likewise.
5104         (Qchinese_cns11643_3): Likewise.
5105         (Qchinese_cns11643_4): Likewise.
5106         (Qchinese_cns11643_5): Likewise.
5107         (Qchinese_cns11643_6): Likewise.
5108         (Qchinese_cns11643_7): Likewise.
5109         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
5110         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5111         and `chinese-cns11643-7' to lisp/mule/chinese.el.
5112         (complex_vars_of_mule_charset): Likewise.
5113
5114 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
5115
5116         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
5117         96-set.
5118         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
5119         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
5120
5121 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5122
5123         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
5124         0xFF60.
5125         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
5126         (breakup_char_1): Likewise.
5127
5128         * text-coding.c (char_encode_iso2022): Keep designated charsets if
5129         one of them includes the specified character.
5130
5131 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5132
5133         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
5134
5135 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5136
5137         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
5138
5139 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5140
5141         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
5142         definition for non-UTF-2000 Mule.
5143         (latin_iso8859_3_to_ucs): Likewise.
5144         (latin_iso8859_4_to_ucs): Likewise.
5145         (latin_iso8859_9_to_ucs): Likewise.
5146         (latin_jisx0201_to_ucs): Likewise.
5147         (MIN_CHAR_THAI): Likewise.
5148         (MAX_CHAR_THAI): Likewise.
5149         (MIN_CHAR_GREEK): Likewise.
5150         (MAX_CHAR_GREEK): Likewise.
5151         (MIN_CHAR_HEBREW): Likewise.
5152         (MAX_CHAR_HEBREW): Likewise.
5153         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
5154         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
5155         (MIN_CHAR_CYRILLIC): Likewise.
5156         (MAX_CHAR_CYRILLIC): Likewise.
5157
5158 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5159
5160         * char-ucs.h (breakup_char_1): Use
5161         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
5162         thai-tis620 and katakana-jisx0201 area.
5163
5164 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5165
5166         * char-ucs.h (breakup_char_1): Use
5167         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
5168         area.
5169
5170         * text-coding.c (reset_encoding_stream): Fixed.
5171         (char_encode_ucs4): Delete `& 255'.
5172
5173         * char-ucs.h (breakup_char_1): Use
5174         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
5175
5176 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5177
5178         * file-coding.c (Fmake_coding_system): Don't set up
5179         `codesys->fixed.size'.
5180         (encode_coding_no_conversion): Don't refer
5181         `str->codesys->fixed.size'.
5182
5183 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5184
5185         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
5186         (latin_a_char_to_byte1): Deleted.
5187         (latin_a_char_to_byte2): Deleted.
5188
5189 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5190
5191         * mule-charset.c (make_charset): Add new argument `ucs_min',
5192         `ucs_max' and `code_offset'.
5193         (charset_get_byte1): New implementation [delete specific charset
5194         depended implementations].
5195         (Fmake_charset): Modify for `make_charset'.
5196         (Fmake_reverse_direction_charset): Likewise.
5197         (complex_vars_of_mule_charset): Likewise.
5198
5199         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
5200         `code_offset'.
5201         (CHARSET_UCS_MIN): New macro.
5202         (CHARSET_UCS_MAX): New macro.
5203         (CHARSET_CODE_OFFSET): New macro.
5204         (MAKE_CHAR): Delete charset depended definitions [except
5205         katakana-jisx0201].
5206
5207 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
5208
5209         * char-ucs.h (breakup_char_1): Use
5210         `Vdefault_coded_charset_priority_list' for C0-Controls,
5211         Basic-Latin, C1-Controls and Latin-1-Supplement area.
5212
5213 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5214
5215         * char-ucs.h (charset_get_byte1): New function.
5216         (XCHARSET_GET_BYTE1): Deleted.
5217         (charset_get_byte2): New function.
5218         (XCHARSET_GET_BYTE2): Deleted.
5219         (Vdefault_coded_charset_priority_list): New external variable.
5220         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5221         `Vdefault_preferred_coded_charset_list'.
5222
5223         * mule-charset.c (charset_get_byte1): New function.
5224         (charset_get_byte2): New function.
5225         (Vdefault_coded_charset_priority_list): New variable.
5226         (vars_of_mule_charset): Add new variable
5227         `default-coded-charset-priority-list'.
5228
5229 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5230
5231         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5232         (XCHARSET_GET_BYTE2): New inline function.
5233         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5234         `XCHARSET_GET_BYTE2'.
5235
5236 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5237
5238         * mule-charset.c (make_charset): Initialize
5239         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5240         NULL if table is not defined.
5241
5242 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5243
5244         * text-coding.c (char_encode_shift_jis): Use
5245         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5246         `ucs_to_latin_jisx0201'.
5247
5248         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5249         (ucs_to_latin_iso8859_2): Deleted.
5250         (ucs_to_latin_iso8859_3): Deleted.
5251         (ucs_to_latin_iso8859_4): Deleted.
5252         (ucs_to_latin_iso8859_9): Deleted.
5253         (ucs_to_latin_viscii_lower): Deleted.
5254         (ucs_to_latin_viscii_upper): Deleted.
5255         (ucs_to_latin_tcvn5712): Deleted.
5256         (make_charset): Add new argument `decoding_table'; set up
5257         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5258         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5259         `decoding_table' is defined in UTF-2000.
5260         (Fmake_charset): Modify for `make_charset'.
5261         (Fmake_reverse_direction_charset): Likewise.
5262         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5263         and `GENERATE_96_SET'.
5264
5265         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5266         (ucs_to_latin_jisx0201): Deleted.
5267         (latin_iso8859_2_to_ucs): Deleted.
5268         (ucs_to_latin_iso8859_2): Deleted.
5269         (latin_iso8859_3_to_ucs): Deleted.
5270         (ucs_to_latin_iso8859_3): Deleted.
5271         (latin_iso8859_4_to_ucs): Deleted.
5272         (ucs_to_latin_iso8859_4): Deleted.
5273         (latin_iso8859_9_to_ucs): Deleted.
5274         (ucs_to_latin_iso8859_9): Deleted.
5275         (latin_viscii_lower_to_ucs): Deleted.
5276         (ucs_to_latin_viscii_lower): Deleted.
5277         (latin_viscii_upper_to_ucs): Deleted.
5278         (ucs_to_latin_viscii_upper): Deleted.
5279         (struct Lisp_Charset): Renamed `encoding_table' to
5280         `to_byte1_table'; add `to_byte2_table'.
5281         (CHARSET_DECODING_TABLE): New macro.
5282         (CHARSET_TO_BYTE1_TABLE): New macro.
5283         (CHARSET_TO_BYTE2_TABLE): New macro.
5284         (XCHARSET_DECODING_TABLE): New macro.
5285         (XCHARSET_TO_BYTE1_TABLE): New macro.
5286         (XCHARSET_TO_BYTE2_TABLE): New macro.
5287         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5288         tables.
5289         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5290         don't use `ucs_to_*' tables.
5291
5292 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5293
5294         * text-coding.c (Fmake_coding_system): Don't set up
5295         `codesys->fixed.size'.
5296         (encode_coding_no_conversion): Use `if' instead of `switch'.
5297
5298         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5299
5300 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5301
5302         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5303         (Fmake_charset): Modify for `make_charset'.
5304         (Fmake_reverse_direction_charset): Likewise.
5305         (complex_vars_of_mule_charset): Likewise.
5306
5307 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5308
5309         * text-coding.c (char_encode_shift_jis): Use table
5310         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5311
5312 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5313
5314         * text-coding.c (text_encode_generic): Use `if' instead of
5315         `switch'.
5316         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5317         decode JIS-Latin.
5318
5319 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5320
5321         * text-coding.c (encode_coding_sjis): Deleted.
5322         (char_encode_shift_jis): New function.
5323         (char_finish_shift_jis): New function.
5324         (reset_encoding_stream): Set up `encode_char' and `finish' for
5325         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5326         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5327         (char_encode_utf8): Treat `eol_type'.
5328
5329 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5330
5331         * file-coding.c (decode_coding_iso2022): Use
5332         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5333
5334 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5335
5336         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5337         to 0.7 (Hirano).
5338
5339 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5340
5341         * char-lb.h (CHAR_COLUMNS): New macro.
5342
5343 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5344
5345         * text-coding.c (char_encode_ucs4): New function.
5346         (char_finish_ucs4): New function.
5347         (encode_coding_ucs4): Deleted.
5348         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5349         (text_encode_generic): Delete local variable `charset' and `half'.
5350         (ucs_to_mule_table): Deleted.
5351         (mule_to_ucs_table): Deleted.
5352         (Fset_ucs_char): Deleted.
5353         (ucs_to_char): Deleted.
5354         (Fucs_char): Deleted.
5355         (Fset_char_ucs): Deleted.
5356         (Fchar_ucs): Deleted.
5357         (decode_ucs4): Deleted.
5358         (mule_char_to_ucs4): Deleted.
5359         (encode_ucs4): Deleted.
5360         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5361         (decode_coding_utf8): Likewise.
5362         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5363         (char_encode_iso2022): Fixed.
5364         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5365         `Fset_char_ucs' and `Fchar_ucs'.
5366         (complex_vars_of_file_coding): Don't initialize
5367         `ucs_to_mule_table'.
5368
5369         * objects-tty.c (tty_initialize_font_instance): Don't use
5370         `XCHARSET_COLUMNS'.
5371
5372         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5373         UTF-2000.
5374
5375         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5376         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5377
5378         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5379         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5380         (emchar_string_displayed_columns): Likewise.
5381
5382         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5383         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5384         (string_column_at_point): Likewise.
5385         (Fmove_to_column): Likewise.
5386
5387         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5388         `encoding_table' and `decoding_table'.
5389         (CHARSET_REP_BYTES): Deleted.
5390         (XCHARSET_REP_BYTES): Deleted.
5391         (XCHARSET_COLUMNS): Deleted.
5392         (CHAR_COLUMNS): New macro.
5393         (lookup_composite_char): Deleted unconditionally.
5394         (composite_char_string): Likewise.
5395
5396 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5397
5398         * char-ucs.h (Emchar_to_byte_table): New type.
5399         (get_byte_from_character_table): New function interface.
5400         (Vcharset_latin_jisx0201): New variable.
5401         (latin_jisx0201_to_ucs): New variable.
5402         (ucs_to_latin_jisx0201): New variable.
5403         (Vcharset_latin_iso8859_2): New variable.
5404         (latin_iso8859_2_to_ucs): New variable.
5405         (ucs_to_latin_iso8859_2): New variable.
5406         (Vcharset_latin_iso8859_3): New variable.
5407         (latin_iso8859_3_to_ucs): New variable.
5408         (ucs_to_latin_iso8859_3): New variable.
5409         (Vcharset_latin_iso8859_4): New variable.
5410         (latin_iso8859_4_to_ucs): New variable.
5411         (ucs_to_latin_iso8859_4): New variable.
5412         (Vcharset_latin_iso8859_9): New variable.
5413         (latin_iso8859_9_to_ucs): New variable.
5414         (ucs_to_latin_iso8859_9): New variable.
5415         (Vcharset_latin_viscii_lower): New variable.
5416         (latin_viscii_lower_to_ucs): New variable.
5417         (ucs_to_latin_viscii_lower): New variable.
5418         (Vcharset_latin_viscii_upper): New variable.
5419         (latin_viscii_upper_to_ucs): New variable.
5420         (ucs_to_latin_viscii_upper): New variable.
5421         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5422         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5423         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5424         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5425         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5426         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5427         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5428         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5429         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5430         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5431
5432         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5433         (Vcharset_latin_viscii_upper): New variable.
5434         (make_byte_from_character_table): New function.
5435         (put_byte_from_character_table): New function.
5436         (get_byte_from_character_table): New function.
5437         (CHAR96): New macro.
5438         (ucs_to_latin_jisx0201): New variable.
5439         (latin_jisx0201_to_ucs): New variable.
5440         (ucs_to_latin_iso8859_2): New variable.
5441         (latin_iso8859_2_to_ucs): New variable.
5442         (ucs_to_latin_iso8859_3): New variable.
5443         (latin_iso8859_3_to_ucs): New variable.
5444         (ucs_to_latin_iso8859_4): New variable.
5445         (latin_iso8859_4_to_ucs): New variable.
5446         (ucs_to_latin_iso8859_9): New variable.
5447         (latin_iso8859_9_to_ucs): New variable.
5448         (ucs_to_latin_viscii_lower): New variable.
5449         (latin_viscii_lower_to_ucs): New variable.
5450         (ucs_to_latin_viscii_upper): New variable.
5451         (latin_viscii_upper_to_ucs): New variable.
5452         (ucs_to_latin_tcvn5712): New variable.
5453         (latin_tcvn5712_to_ucs): New variable.
5454         (Qlatin_viscii_lower): New variable.
5455         (Qlatin_viscii_upper): New variable.
5456         (syms_of_mule_charset): Set up new symbol
5457         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5458         (complex_vars_of_mule_charset): Set up new charset
5459         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5460         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5461         `ucs_to_<CHARSET>' tables.
5462
5463 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5464
5465         * text-coding.c: New file.
5466
5467 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5468
5469         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5470
5471         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5472         (MAKE_CHAR): Modify for `ucs-bmp'.
5473         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5474         non-MULE characters of BMP.
5475
5476 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5477
5478         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5479         to 0.6.
5480
5481 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5482
5483         * lstream.h:
5484         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5485         - Include character.h for `CHAR_ASCII_P'.
5486
5487         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5488
5489         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5490         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5491
5492         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5493         (BYTE_C0_P): Likewise.
5494         (BYTE_C1_P): Likewise.
5495         (Lstream_get_emchar_1): Likewise.
5496         (Lstream_fput_emchar): Likewise.
5497         (Lstream_funget_emchar): Likewise.
5498         (copy_internal_to_external): Likewise.
5499         (copy_external_to_internal): Likewise.
5500
5501         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5502         (BYTE_C0_P): Likewise.
5503         (BYTE_C1_P): Likewise.
5504         (Lstream_get_emchar_1): Likewise.
5505         (Lstream_fput_emchar): Likewise.
5506         (Lstream_funget_emchar): Likewise.
5507         (copy_internal_to_external): Likewise.
5508         (copy_external_to_internal): Likewise.
5509
5510         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5511         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5512
5513         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5514         (BYTE_ASCII_P): Moved to mb-1byte.h.
5515
5516 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5517
5518         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5519
5520         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5521         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5522         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5523         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5524         (VALIDATE_CHARPTR_FORWARD): Likewise.
5525         (simple_charptr_emchar): Moved to mb-multibyte.h.
5526         (simple_set_charptr_emchar): Likewise.
5527         (simple_charptr_copy_char): Likewise.
5528         (non_ascii_charptr_emchar): Likewise.
5529         (non_ascii_set_charptr_emchar): Likewise.
5530         (non_ascii_charptr_copy_char): Likewise.
5531         (charptr_emchar): Moved to mb-*byte.h.
5532         (set_charptr_emchar): Likewise.
5533         (charptr_copy_char): Likewise.
5534
5535         * mb-1byte.h, mb-multibyte.h: New files.
5536
5537 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5538
5539         * mb-utf-8.h (MULTIBYTE): New macro.
5540         (MAX_EMCHAR_LEN): Moved from buffer.h.
5541         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5542
5543         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5544
5545         * mb-lb.h, multibyte.h: New files.
5546
5547         * char-1byte.h (Charset_ID): Moved from buffer.h.
5548         (MIN_LEADING_BYTE): Likewise.
5549         (LEADING_BYTE_ASCII): Likewise.
5550         (NUM_LEADING_BYTES): Likewise.
5551         (CHARSETP): Likewise.
5552         (CHARSET_BY_LEADING_BYTE): Likewise.
5553         (XCHARSET_LEADING_BYTE): Likewise.
5554         (XCHARSET_GRAPHIC): Likewise.
5555         (XCHARSET_COLUMNS): Likewise.
5556         (XCHARSET_DIMENSION): Likewise.
5557         (CHAR_CHARSET): Likewise.
5558         (CHAR_LEADING_BYTE): Likewise.
5559         (BREAKUP_CHAR): Likewise.
5560         (Vcharset_ascii): Likewise.
5561
5562         * buffer.h: Include multibyte.h unconditionally.
5563         (VALID_CHARPTR_P): Moved to multibyte.h.
5564         (ASSERT_VALID_CHARPTR): Likewise.
5565         (REAL_INC_CHARPTR): Likewise.
5566         (REAL_INC_CHARBYTIND): Likewise.
5567         (REAL_DEC_CHARPTR): Likewise.
5568         (INC_CHARPTR): Likewise.
5569         (INC_CHARBYTIND): Likewise.
5570         (DEC_CHARPTR): Likewise.
5571         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5572         (VALIDATE_CHARPTR_FORWARD): Likewise.
5573         (charptr_n_addr): Likewise.
5574         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5575         (simple_charptr_emchar): Moved to multibyte.h.
5576         (simple_set_charptr_emchar): Likewise.
5577         (simple_charptr_copy_char): Likewise.
5578         (non_ascii_charptr_emchar): Likewise.
5579         (non_ascii_set_charptr_emchar): Likewise.
5580         (non_ascii_charptr_copy_char): Likewise.
5581         (charptr_emchar): Likewise.
5582         (set_charptr_emchar): Likewise.
5583         (charptr_copy_char): Likewise.
5584         (charptr_emchar_n): Likewise.
5585         (Charset_ID): Moved to char-1byte.h.
5586         (Vcharset_ascii): Likewise.
5587         (CHAR_CHARSET): Likewise.
5588         (CHAR_LEADING_BYTE): Likewise.
5589         (LEADING_BYTE_ASCII): Likewise.
5590         (NUM_LEADING_BYTES): Likewise.
5591         (MIN_LEADING_BYTE): Likewise.
5592         (CHARSETP): Likewise.
5593         (CHARSET_BY_LEADING_BYTE): Likewise.
5594         (XCHARSET_LEADING_BYTE): Likewise.
5595         (XCHARSET_GRAPHIC): Likewise.
5596         (XCHARSET_COLUMNS): Likewise.
5597         (XCHARSET_DIMENSION): Likewise.
5598         (BREAKUP_CHAR): Likewise.
5599
5600 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5601
5602         * character.h: Add document about interface for characters.
5603
5604         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5605         (MAKE_CHAR): Delete comment about
5606         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5607         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5608         (BREAKUP_CHAR): Modify name of arguments.
5609         (CHAR_CHARSET): Modify name of argument.
5610
5611         * buffer.h: Delete document about Emchar accessors.
5612
5613 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5614
5615         * character.h (CHAR_INTP): Moved from buffer.h
5616         (CHAR_OR_CHAR_INTP): Likewise.
5617         (XCHAR_OR_CHAR_INT): Likewise.
5618         (CHECK_CHAR_COERCE_INT): Likewise.
5619
5620         * buffer.h (CHAR_INTP): Moved to character.h
5621         (CHAR_OR_CHAR_INTP): Likewise.
5622         (XCHAR_OR_CHAR_INT): Likewise.
5623         (CHECK_CHAR_COERCE_INT): Likewise.
5624
5625 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5626
5627         * character.h:
5628         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5629         - Include char-1byte.h, char-lb.h or char-ucs.h.
5630
5631         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5632
5633         * buffer.h: Include character unconditionally.
5634         (valid_char_p): Moved to char-*.h.
5635         (non_ascii_valid_char_p): Moved to char-lb.h.
5636
5637         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5638
5639 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5640
5641         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5642         in UTF-2000 because it is not ported yet and not to use
5643         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5644         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5645         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5646
5647         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5648         (CHAR_ASCII_P): Moved from character.h.
5649
5650         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5651         (CHAR_ASCII_P): Likewise.
5652         (CHAR_FIELD1_MASK): Deleted.
5653         (CHAR_FIELD2_MASK): Deleted.
5654         (CHAR_FIELD3_MASK): Deleted.
5655         (MAX_CHAR_BASIC_LATIN): New macro.
5656         (CHAR_FIELD1): Deleted.
5657         (CHAR_FIELD2_INTERNAL): Deleted.
5658         (CHAR_FIELD3_INTERNAL): Deleted.
5659         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5660         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5661         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5662         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5663         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5664         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5665         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5666         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5667         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5668         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5669         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5670         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5671         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5672         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5673         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5674         (MIN_CHAR_COMPOSITION): Deleted.
5675         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5676         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5677
5678 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5679
5680         * buffer.h: Include mb-utf-8.h in UTF-2000.
5681
5682         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5683
5684         * mb-utf-8.h: New file.
5685
5686 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5687
5688         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5689         instead of `int'.
5690
5691         * mule-charset.h, buffer.h (Charset_ID): New type.
5692
5693 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5694
5695         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5696         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5697         instead of `MULE_CHAR_PRIVATE_OFFSET',
5698         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5699         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5700         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5701
5702         * character.h (Vcharset_japanese_jisx0212): New variable
5703         definition.
5704
5705 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5706
5707         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5708         (charset_by_attributes): Delete array about direction.
5709         (latin_a_char_to_charset): New variable in UTF-2000.
5710         (latin_a_char_to_byte1): New variable in UTF-2000.
5711         (latin_a_char_to_byte2): New variable in UTF-2000.
5712         (Qucs_bmp): New variable.
5713         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5714         `Bufbyte'.
5715         (next_allocated_2_byte_leading_byte): Likewise.
5716         (non_ascii_set_charptr_emchar): Likewise.
5717         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5718         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5719         `charset_by_attributes'.
5720         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5721         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5722         and `CHARSET_BY_LEADING_BYTE'.
5723         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5724         `utf-2000-version' to `vars_of_mule_charset'.
5725         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5726         define `leading-code-private-11' in UTF-2000; move setting of
5727         `utf-2000-version' from `syms_of_mule_charset'.
5728         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5729         UTF-2000.
5730
5731         * character.h (Charset_ID): New type.
5732         (LEADING_BYTE_UCS_BMP): New macro.
5733         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5734         (CHARSET_ID_OFFSET_94): New macro.
5735         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5736         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5737         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5738         final-byte.
5739         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5740         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5741         (CHARSET_ID_OFFSET_96): New macro.
5742         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5743         CHARSET_ID_OFFSET_96 and final-byte.
5744         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5745         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5746         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5747         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5748         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5749         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5750         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5751         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5752         (LEADING_BYTE_THAI_TIS620): Likewise.
5753         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5754         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5755         (CHARSET_ID_OFFSET_94x94): New macro.
5756         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5757         CHARSET_ID_OFFSET_94x94 and final-byte.
5758         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5759         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5760         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5761         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5762         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5763         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5764         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5765         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5766         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5767         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5768         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5769         (CHARSET_TYPE_128X128): New macro.
5770         (CHARSET_TYPE_256X256): New macro.
5771         (XCHARSET_PRIVATE_P): Delete unconditionally.
5772         (charset_by_attributes): Delete array about direction.
5773         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5774         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5775         (MIN_CHAR_94): New macro.
5776         (MAX_CHAR_94): New macro.
5777         (MIN_CHAR_96): New macro.
5778         (MAX_CHAR_96): New macro.
5779         (MIN_CHAR_94x94): New macro.
5780         (MAX_CHAR_94x94): New macro.
5781         (MIN_CHAR_96x96): New macro.
5782         (MAX_CHAR_96x96): New macro.
5783         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5784         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5785         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5786         - 32)'.
5787         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5788         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5789         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5790         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5791         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5792         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5793         `XCHARSET_LEADING_BYTE' to make code-point.
5794         (latin_a_char_to_charset): New variable.
5795         (latin_a_char_to_byte1): New variable.
5796         (latin_a_char_to_byte2): New variable.
5797         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5798         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5799         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5800
5801         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5802         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5803         (find_charsets_in_emchar_string): Likewise.
5804         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5805
5806         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5807         `int'.
5808         (decode_coding_iso2022): Likewise.
5809
5810         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5811         of `unsigned char'.
5812
5813         * redisplay.c (redisplay_text_width_emchar_string): Use
5814         `Charset_ID' instead of `unsigned char'.
5815         (redisplay_frame_text_width_string): Likewise.
5816
5817         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5818         `unsigned char'.
5819
5820         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5821         instead of `unsigned char'.
5822         (face_cachel_charset_font_metric_info): Likewise.
5823
5824         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5825         (get_non_ascii_char_table_value): Likewise.
5826         (get_char_table): Likewise.
5827         (put_char_table): Likewise.
5828         (map_over_other_charset): Likewise.
5829         (map_char_table): Likewise.
5830
5831         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5832         instead of `unsigned char'.
5833
5834 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5835
5836         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5837         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5838
5839         * mule-charset.c (leading_code_private_11): Don't define in
5840         UTF-2000.
5841
5842         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5843         in UTF-2000 because it is not ported yet and not to use
5844         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5845
5846 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5847
5848         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5849
5850 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5851
5852         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5853         in UTF-2000.
5854
5855         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5856         of unsigned char to store leading-byte.
5857
5858         * chartab.c (get_non_ascii_char_table_value): Don't use
5859         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5860
5861         * file-coding.c (encode_coding_big5): Delete bogus implementation
5862         in UTF2000.
5863
5864         * character.h (LEADING_BYTE_*): Delete definition for
5865         non-UTF-2000.
5866         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5867         (LEADING_BYTE_PREFIX_P): Deleted.
5868         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5869         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5870         (BUFBYTE_LEADING_BYTE_P): Deleted.
5871         (CHARSET_PRIVATE_P): Deleted unconditionally.
5872         (rep_bytes_by_first_byte): Deleted unconditionally.
5873         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5874         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5875         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5876         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5877         (CHAR_FIELD2): Deleted.
5878         (CHAR_FIELD3): Deleted.
5879         (MAKE_CHAR): Delete definition for non-UTF-2000.
5880         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5881         (breakup_char_1): New implementation.
5882         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5883         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5884
5885 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5886
5887         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5888         condition.
5889
5890 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5891
5892         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5893         (CHARSET_PRIVATE_P): Likewise.
5894         (XCHARSET_PRIVATE_P): Likewise.
5895         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5896
5897         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5898         UTF2000.
5899         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5900
5901 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5902
5903         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5904         (NUM_LEADING_BYTES): Changed from 128 to 256.
5905         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5906         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5907         UTF2000.
5908         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5909
5910         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5911         UTF2000.
5912         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5913         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5914         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5915         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5916         (Qchinese_cns11643_3): New variable in UTF2000.
5917         (Qchinese_cns11643_4): New variable in UTF2000.
5918         (Qchinese_cns11643_5): New variable in UTF2000.
5919         (Qchinese_cns11643_6): New variable in UTF2000.
5920         (Qchinese_cns11643_7): New variable in UTF2000.
5921         (syms_of_mule_charset): Define `chinese-cns11643-3',
5922         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5923         and `chinese-cns11643-7' in UTF2000.
5924         (vars_of_mule_charset): Initialize
5925         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5926         + 1 in UTF2000.
5927         (complex_vars_of_mule_charset): Setup charset
5928         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5929         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5930
5931 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5932
5933         * mule-charset.c: Move setting for `leading-code-private-11' from
5934         `syms_of_mule_charset' to `vars_of_mule_charset'.
5935
5936 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5937
5938         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5939         and `NUM_LEADING_BYTES' in assert.
5940
5941 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5942
5943         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5944         instead of 128.
5945         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5946         `NUM_LEADING_BYTES' instead of 128.
5947
5948 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5949
5950         * mule-charset.h (charset_by_leading_byte): Use
5951         `NUM_LEADING_BYTES' instead of 128.
5952         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5953
5954         * mule-charset.c (charset_by_leading_byte): Use
5955         `NUM_LEADING_BYTES' instead of 128.
5956         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5957
5958         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5959         128.
5960
5961 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5962
5963         * mule-charset.c (syms_of_mule_charset): Update to
5964         0.4 (Shin-Imamiya).
5965
5966 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5967
5968         * file-coding.c (encode_coding_sjis): New implementation for
5969         UTF2000.  (decode_coding_sjis): Ditto.
5970
5971 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5972
5973         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5974         Don't define in UTF2000.
5975
5976         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5977         defined.
5978
5979         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5980         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5981         MULE.
5982
5983 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5984
5985         * config.h.in (CHAR_IS_UCS4): New macro.
5986
5987         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5988         conventional MULE representation.
5989         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5990
5991         * mule-charset.h: Reverted to original.
5992
5993         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5994         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5995         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5996
5997         * character.h: New file.
5998
5999         * file-coding.c (Fmake_coding_system): Set 1 to
6000         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
6001         defined.
6002         (encode_coding_no_conversion): New implementation for UTF2000.
6003
6004         * file-coding.h (struct Lisp_Coding_System): Add new member
6005         `fixed.size'.
6006
6007 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
6008
6009         * file-coding.c (decode_coding_iso2022): Code-point arguments of
6010         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
6011         (encode_coding_iso2022): New implementation for UTF2000.
6012
6013 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6014
6015         * mule-canna.c (c2mu): New implementation for UTF2000.
6016         (m2c): Likewise.
6017
6018 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6019
6020         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
6021
6022 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6023
6024         * file-coding.c (reset_encoding_stream): Set 0 to
6025         `str->iso2022.current_char_boundary' in UTF2000.
6026         (encode_utf8): Don't define in UTF2000.
6027         (encode_coding_utf8): New implementation for UTF-8 representation
6028         of UTF2000.
6029         (complex_vars_of_file_coding): Define coding-system `utf-8'.
6030
6031 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
6032
6033         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
6034
6035         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
6036         UTF2000.
6037         (REP_BYTES_BY_FIRST_BYTE): Likewise.
6038
6039         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
6040
6041         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
6042         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
6043         as UTF-8 in UTF2000.
6044         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
6045         (non_ascii_valid_char_p): Don't define in UTF2000.
6046         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
6047         (Lstream_get_emchar_1): Likewise.
6048         (utf-2000-version): New variable in UTF2000.
6049
6050         * lread.c (read_escape): Add new reader `u'.
6051
6052         * insdel.c (three_to_one_table): Don't define in UTF2000.
6053         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
6054         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6055         UTF2000.
6056         (bytind_to_bufpos_func): Likewise.
6057         (buffer_mule_signal_inserted_region): Likewise.
6058         (vars_of_insdel): Don't initialize `three_to_one_table'.
6059         (init_buffer_text): Use `buf->text->mule_size' instead of
6060         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
6061         UTF2000.
6062
6063         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
6064         UTF-8 representation in UTF2000.
6065         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
6066         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
6067         (decode_coding_iso2022): Don't define local variable `lb' in
6068         UTF2000; don't use LEADING_BYTE in UTF2000; use
6069         `DECODE_ADD_UCS_CHAR' in UTF2000.
6070         (convert_to_external_format): Decode as UTF-8 in UTF2000.
6071
6072         * config.h.in (UTF2000): New macro.
6073
6074         * buffer.h (struct buffer_text): Add new member `mule_size' and
6075         don't add `mule_shifter' and `mule_three_p' in UTF2000.
6076         (valid_char_p): Return always 1 in UTF2000.
6077         (MAX_EMCHAR_LEN): 6 in UTF2000.
6078         (three_to_one_table): Don't define in UTF2000.
6079         (real_bufpos_to_bytind): Modify for UTF-8 representation in
6080         UTF2000.
6081         (real_bytind_to_bufpos): Likewise.
6082
6083         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
6084
6085 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
6086
6087         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
6088         representation change.
6089         (Vutf_2000_version): New variable.
6090         (leading_code_private_11): New variable.
6091         (syms_of_mule_charset): Add new variables `utf-2000-version' and
6092         `leading-code-private-11'.
6093
6094         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
6095         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
6096         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
6097         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
6098         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
6099         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
6100         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
6101         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
6102         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
6103         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
6104         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
6105         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
6106         (MIN_CHAR_GREEK): New macro.
6107         (MAX_CHAR_GREEK): New macro.
6108         (MIN_CHAR_CYRILLIC): New macro.
6109         (MAX_CHAR_CYRILLIC): New macro.
6110         (MIN_CHAR_HEBREW): New macro.
6111         (MAX_CHAR_HEBREW): New macro.
6112         (MIN_CHAR_THAI): New macro.
6113         (MAX_CHAR_THAI): New macro.
6114         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
6115         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
6116         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
6117         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
6118         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
6119         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
6120         (CHAR_FIELD2): New inline function.
6121         (CHAR_FIELD3): New inline function.
6122         (MULE_CHAR_PRIVATE_OFFSET): New macro.
6123         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
6124         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
6125         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
6126         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
6127         (MIN_CHAR_COMPOSITION): Likewise.
6128         (CHAR_LEADING_BYTE): Modified for character representation change.
6129         (MAKE_CHAR): Likewise.
6130
6131         * lisp.h (Vcharset_latin_iso8859_1): New variable.
6132         (Vcharset_greek_iso8859_7): Likewise.
6133         (Vcharset_cyrillic_iso8859_5): Likewise.
6134         (Vcharset_hebrew_iso8859_8): Likewise.
6135         (Vcharset_thai_tis620): Likewise.
6136         (Vcharset_katakana_jisx0201): Likewise.
6137
6138 2008-12-28  Vin Shelton  <acs@xemacs.org>
6139
6140         * XEmacs 21.4.22 is released
6141
6142 2008-12-27  Vin Shelton  <acs@xemacs.org>
6143
6144         * syswindows.h: Don't define wide character interfaces for Cygwin
6145         1.7 and up.
6146
6147 2008-03-05  Dominique Quatravaux  <domq@cpan.org>
6148
6149         * glyphs-gtk.c: Fixed compilation under gcc 4.x.
6150
6151 2008-11-01  Stephen J. Turnbull  <stephen@xemacs.org>
6152
6153         * regex.c (re_search_2): Fix at_dot by changing charpos to bytepos.
6154         From Julian Bradfield <18654.1143.304851.782755@krk.inf.ed.ac.uk>.
6155
6156 2008-12-25  Vin Shelton  <acs@xemacs.org>
6157
6158         * mule-ccl.c (ccl_driver): Fix off-by-one error.
6159         By Julian Bradfield in
6160         <18691.16568.526264.972026@krk.inf.ed.ac.uk>.
6161
6162         * mule-ccl.c (ccl_driver): 
6163
6164 2007-10-07  Vin Shelton  <acs@xemacs.org>
6165
6166         * XEmacs 21.4.21 is released
6167
6168 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
6169
6170         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
6171
6172 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
6173
6174         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
6175         (png_instantiate): Initialize setjmp_buffer early, and avoid
6176         recursive entry to error handler.
6177
6178 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
6179
6180         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
6181         a typo fix.
6182
6183 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
6184
6185         * event-Xt.c (x_reset_modifier_mapping):
6186         * event-gtk.c (gtk_reset_modifier_mapping):
6187         Zero out the device's modifier map once we've freed it, to prevent
6188         a double free on a re-entrant call. 
6189
6190 2007-05-17  Vin Shelton  <acs@xemacs.org>
6191
6192         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
6193         64-bit linux.  Patch from Hans de Graaff.
6194
6195 2007-05-02  Vin Shelton  <acs@xemacs.org>
6196
6197         * dumper.c (pdump): Don't close pdump_fd (already closed by
6198         fclose() call.  Patch from Steve Higham.
6199         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
6200         already closed.  Patch inspired by Steve Higham.
6201
6202 2007-05-01  Vin Shelton  <acs@xemacs.org>
6203
6204         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
6205         (mswindows_fstat): Ditto.
6206         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
6207
6208 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
6209
6210         * postgresql.c: Update Steve Baur's email address by his request.
6211         * postgresql.h: Ditto.
6212
6213 2007-01-04  Vin Shelton  <acs@xemacs.org>
6214
6215         * fileio.c (check_writable): Check old-style readonly bit only for
6216         non-directories.
6217
6218 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
6219
6220         * src/fileio.c (check_writable): 
6221         Cope with the fact that the read-only attribute trumps Windows NTFS
6222         ACLS.
6223
6224
6225 2006-12-09  Vin Shelton  <acs@xemacs.org>
6226
6227         * XEmacs 21.4.20 is released
6228
6229 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
6230
6231         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
6232         relocated the definitions to be used sooner in file.
6233         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6234         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6235         overflow.
6236
6237 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
6238
6239         * sound.c (init_native_sound):
6240         Only X11 and GTK devices can possibly not be on the console of the
6241         associated machine. Fixes a crash when init_native_sound is called
6242         on a msprinter device. 
6243
6244 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
6245
6246         * buffer.c (buffer-file-name): Document invariant.
6247         (buffer-file-truename): Sync wording to buffer-file-name.
6248         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6249         and discussion.
6250
6251 2006-11-19  Benson Margulies  <benson@dchbk.us>
6252
6253         * fileio.c: Add code to use full Win32 API to check for write
6254         access.  Win32 has the general design policy that you aren't
6255         supposed to ask this question, since security checks change
6256         depending on asynchronous processes.  Nonetheless, there is a way,
6257         by acting as if we are a server doing interpretive access
6258         control.
6259
6260 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6261
6262         * bytecode.c: Use xnew_array instead of alloca.
6263
6264 2006-07-04  Vin Shelton  <acs@xemacs.org>
6265
6266         * redisplay-msw.c: Fix tiny, but crucial typo.
6267
6268 2006-06-22  Jerry James  <james@xemacs.org>
6269
6270         * EmacsShell-sub.c (ChangeManaged):
6271         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6272         NULL.
6273         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6274         checking if it is NULL.  Also fix a memory leak.
6275         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6276         dereference it, not the other way around.
6277         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6278         overflow check.
6279         * dumper.c (pdump_register_struct): Ditto.
6280         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6281         to (short) warnpath overflow warnpath.
6282         * extents.c (detach_all_extents): Call extent_list_delete_all with
6283         a non-NULL parameter only.
6284         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6285         NULL width and height.
6286         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6287         xic before checking if they are NULL.
6288         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6289         allocated array.
6290         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6291         * nas.c (Err): Fix a memory leak.
6292         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6293         Don't create the buffer if there is nothing to do.
6294         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6295         * redisplay-output.c (redisplay_output_layout): Ditto.
6296         * redisplay-tty.c (tty_output_display_block): Ditto.
6297         * redisplay-x.c (x_output_display_block): Ditto.
6298         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6299         dereference instance->scrollbar_data if it is NULL.
6300         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6301         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6302         for sb->scrollbar_data.
6303         * sound.c (init_native_sound): Avoid a buffer overflow by
6304         allocating a buffer with the appropriate size.
6305
6306 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6307
6308         * EmacsShell-sub.c (RootGeometryManager):
6309         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6310         Based on a suggestion by Francois L'Archeveque.
6311
6312 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6313
6314         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6315         current values found in GNU Emacs.
6316
6317 2006-03-17  Vin Shelton  <acs@xemacs.org>
6318
6319         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6320         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6321
6322         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6323         'hex_initialized' because it conflicts with 'initialized' in
6324         lisp.h.
6325
6326 2006-01-28  Vin Shelton  <acs@xemacs.org>
6327
6328         * XEmacs 21.4.19 is released
6329
6330 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6331
6332         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6333
6334 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6335
6336         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6337         5000 to INT_MAX.
6338
6339 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6340
6341         * database.c: Suppress compiler warning under Cygwin.
6342         * database.c: Removed __FreeBSD__ check, should be handled by
6343         HAVE_U_xxx_T defines.
6344
6345 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6346
6347         * console.c (stuff_buffered_input): Compile body only if
6348         HAVE_TTY.
6349
6350 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6351
6352         * callproc.c: #include sysdir.h, so that any appropriate Mule
6353         magic happens with the chdir() call when calling a subprocess. 
6354
6355 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6356
6357         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6358         * mule-ccl.c: Check that a character set exists before using it
6359         to create a character. 
6360
6361 2005-12-06  Vin Shelton  <acs@xemacs.org>
6362
6363         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6364         to INT_MAX.
6365
6366 2005-12-03  Vin Shelton <acs@xemacs.org>
6367
6368         * XEmacs 21.4.18 is released
6369
6370 2005-11-27  Kean Johnston <kean@armory.com>
6371
6372         * redisplay-tty.c (set_tty_modes):
6373         (reset_tty_modes): disable auto-margins if the terminal supports
6374         them.
6375         (init_tty_for_redisplay): fix cursor shape.
6376
6377 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6378
6379         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6380         for control-1 characters properly, both when reading multibyte
6381         characters and writing them. 
6382
6383 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6384
6385         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6386         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6387         were seeing with incremental selection transfer failing. 
6388
6389 2005-11-26  Vin Shelton  <acs@xemacs.org>
6390
6391         * callproc.c (Fold_call_process_internal): Create the buffer if it
6392         does not already exist.  The original patch came from Ben Wing in
6393         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6394
6395 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6396
6397         * callproc.c: Process-related docstring improvements spurred by
6398         Norbert Koch.
6399
6400 2005-11-25  Vin Shelton  <acs@xemacs.org>
6401
6402         * depend: Regenerated.
6403
6404 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6405
6406         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6407         says it clashes with a global with the same name.
6408
6409 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6410
6411         * sysdll.c (dll_open): Under MacOS X return NULL under the
6412         filename is NULL.  Fixes problems finding local symbols under 10.4
6413         (Tiger)
6414
6415 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6416         
6417         * config.h.in: New HAVE_U_INT*_T defines.
6418         
6419         * database.c: Only use u_int*_t typedefs if not already
6420         defined.
6421
6422 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6423
6424         * src/process-unix.c (unix_open_network_stream): moved
6425           'portbuf' buffer out of an inner block as it is used in the
6426           entire function. With gcc4, the stack may get corrupted
6427           after leaving this block. This patches adjusts the size of
6428           the used buffer also; static '128' bytes are far too much
6429           currently and might not suffice for future architectures
6430           (e.g. for 512 bit ones ;)). Instead of, use only the really
6431           required space (max octets * ln(256)/ln(10) chars + space
6432           for '\0' and the sign)
6433
6434 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6435
6436         * callproc.c: Include sysdir.h, so any necessary Mule processing
6437         is done on the current directory name before starting a new
6438         process.
6439
6440 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6441
6442         * chartab.c (Fchar_table_p):
6443         (Fget_range_char_table):
6444         (Fput_char_table):
6445         (Fmap_char_table):
6446         Describe range representation and fix typo.
6447
6448 2005-02-12  Vin Shelton  <acs@xemacs.org>
6449
6450         * emacs.c (shut_down_emacs): Advise users to send email to the
6451         xemacs-beta list instead of crashes@xemacs.org.
6452
6453 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6454
6455         * process-unix.c (unix_send_process): Flush the last chunk, even
6456         when the pipe is blocked.
6457
6458 2005-02-06  Vin Shelton <acs@xemacs.org>
6459
6460         * XEmacs 21.4.17 is released
6461
6462 2005-01-31  Ben Wing  <ben@xemacs.org>
6463
6464         * emacs.c:
6465         Define assert_failed() always.
6466         * lisp.h:
6467         Always define ABORT().
6468
6469 2005-01-25  Ben Wing  <ben@xemacs.org>
6470
6471         * Makefile.in.in:
6472         * Makefile.in.in (%.o):
6473         Don't compile executable as Windows (-mwindows) under Cygwin.
6474         Semi-recent changes to Cygwin's executable-startup handling make
6475         it impossible to access the TTY this way.
6476
6477         Don't use special linker file under Cygwin (cygwin.sc) except
6478         when non-PDUMP (even in this case it is highly questionable); you
6479         get errors like
6480
6481       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6482    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6483
6484 2005-01-29  Ben Wing  <ben@xemacs.org>
6485
6486         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6487
6488         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6489
6490 2005-01-29  Ben Wing  <ben@xemacs.org>
6491
6492         * bytecode.c (optimize_compiled_function):
6493         * print.c (FROB):
6494         * print.c (long_to_string):
6495         Add casts to avoid warning.
6496         
6497         * glyphs-eimage.c:
6498         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6499         #### The better solution is to move the TIFF and JPEG code to
6500         different files.
6501         
6502         * glyphs-msw.c (mswindows_xbm_instantiate):
6503         Define __STDC__ to avoid problems with compface.h.
6504         
6505         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6506         * EmacsShell-sub.c:
6507         * EmacsShell-sub.c (ABORT):
6508         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6509         * EmacsShell-sub.c (RootGeometryManager):
6510         * EmacsShell.c:
6511         * EmacsShell.c (ABORT):
6512         * EmacsShell.c (EmacsShellUpdateSizeHints):
6513         * alloc.c (free_lcrecord):
6514         * alloca.c (i00afunc):
6515         * buffer.c (delete_from_buffer_alist):
6516         * buffer.c (MARKED_SLOT):
6517         * bytecode.c (execute_rare_opcode):
6518         * bytecode.c (optimize_byte_code):
6519         * bytecode.c (Ffetch_bytecode):
6520         * chartab.c (char_table_type_to_symbol):
6521         * chartab.c (Freset_char_table):
6522         * chartab.c (decode_char_table_range):
6523         * chartab.c (Fget_range_char_table):
6524         * chartab.c (check_valid_char_table_value):
6525         * chartab.c (map_char_table):
6526         * chartab.c (slow_map_char_table_fun):
6527         * chartab.c (chartab_instantiate):
6528         * cm.c (cmcheckmagic):
6529         * console-msw.c (DHEADER):
6530         * console.c (MARKED_SLOT):
6531         * data.c (finish_marking_weak_lists):
6532         * data.c (encode_weak_list_type):
6533         * debug.h (DASSERT):
6534         * device-gtk.c (gtk_init_device):
6535         * device-msw.c (mswindows_get_default_margin):
6536         * device-tty.c (tty_init_device):
6537         * device-x.c (get_device_from_display):
6538         * device-x.c (x_get_visual_depth):
6539         * doprnt.c (parse_doprnt_spec):
6540         * doprnt.c (get_doprnt_args):
6541         * dumper.c (pdump_get_indirect_count):
6542         * dumper.c (pdump_register_sub):
6543         * dumper.c (pdump_register_object):
6544         * dumper.c (pdump_register_struct):
6545         * dumper.c (pdump_dump_data):
6546         * dumper.c (pdump_reloc_one):
6547         * elhash.c (print_hash_table):
6548         * elhash.c (make_standard_lisp_hash_table):
6549         * elhash.c (hash_table_instantiate):
6550         * emacs.c:
6551         * emacs.c (Fforce_debugging_signal):
6552         * emacs.c (sort_args):
6553         * emacs.c (main):
6554         * emacs.c (assert_failed):
6555         * eval.c (throw_or_bomb_out):
6556         * eval.c (signal_1):
6557         * eval.c (Fsignal):
6558         * event-Xt.c:
6559         * event-Xt.c (emacs_Xt_mapping_action):
6560         * event-Xt.c (Xt_process_to_emacs_event):
6561         * event-msw.c:
6562         * event-stream.c (check_event_stream_ok):
6563         * event-stream.c (Fadd_timeout):
6564         * event-stream.c (Fadd_async_timeout):
6565         * event-stream.c (Fdiscard_input):
6566         * event-stream.c (execute_internal_event):
6567         * event-stream.c (Frecent_keys):
6568         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6569         * event-stream.c (lookup_command_event):
6570         * event-unixoid.c (poll_fds_for_input):
6571         * events.c:
6572         * events.c (mark_event):
6573         * events.c (event_equal):
6574         * events.c (event_hash):
6575         * events.c (Fmake_event):
6576         * events.c (Fdeallocate_event):
6577         * events.c (event_chain_find_previous):
6578         * events.c (event_to_character):
6579         * events.c (format_event_object):
6580         * events.c (Fevent_type):
6581         * events.c (event_pixel_translation):
6582         * events.c (Fevent_properties):
6583         * extents.c (extent_in_region_p):
6584         * extents.c (print_extent):
6585         * extents.c (process_extents_for_insertion_mapper):
6586         * extents.c (report_extent_modification_mapper):
6587         * extents.c (glyph_layout_to_symbol):
6588         * faces.c (face_validate):
6589         * file-coding.c (eol_type_to_symbol):
6590         * file-coding.c (subsidiary_coding_system):
6591         * file-coding.c (Fcoding_system_type):
6592         * file-coding.c (Fcoding_system_property):
6593         * file-coding.c (mule_decode):
6594         * file-coding.c (mule_encode):
6595         * file-coding.c (encode_coding_ucs4):
6596         * file-coding.c (encode_coding_utf8):
6597         * file-coding.c (parse_iso2022_esc):
6598         * file-coding.c (encode_coding_iso2022):
6599         * fileio.c:
6600         * fns.c (concat):
6601         * fns.c (Fsubseq):
6602         * fns.c (mapcar1):
6603         * fns.c (Fbase64_encode_region):
6604         * fns.c (Fbase64_encode_string):
6605         * fns.c (Fbase64_decode_region):
6606         * fns.c (Fbase64_decode_string):
6607         * font-lock.c (find_context):
6608         * font-lock.c (context_to_symbol):
6609         * frame-gtk.c (gtk_set_frame_pointer):
6610         * frame-gtk.c (gtk_update_frame_external_traits):
6611         * frame-x.c (x_wm_mark_shell_size_user_specified):
6612         * frame-x.c (x_wm_mark_shell_position_user_specified):
6613         * frame-x.c (x_wm_set_shell_iconic_p):
6614         * frame-x.c (x_wm_set_cell_size):
6615         * frame-x.c (x_wm_set_variable_size):
6616         * frame-x.c (x_wm_store_class_hints):
6617         * frame-x.c (x_wm_maybe_store_wm_command):
6618         * frame-x.c (x_initialize_frame_size):
6619         * frame-x.c (x_update_frame_external_traits):
6620         * frame.c:
6621         * frame.c (delete_frame_internal):
6622         * frame.c (mouse_pixel_position_1):
6623         * frame.c (change_frame_size_1):
6624         * free-hook.c (check_free):
6625         * free-hook.c (check_realloc):
6626         * free-hook.c (note_block_input):
6627         * free-hook.c (log_gcpro):
6628         * gccache-gtk.c (gc_cache_lookup):
6629         * glyphs-eimage.c (tiff_memory_write):
6630         * glyphs-gtk.c (gtk_finalize_image_instance):
6631         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6632         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6633         * glyphs-gtk.c (gtk_xpm_instantiate):
6634         * glyphs-gtk.c (gtk_unmap_subwindow):
6635         * glyphs-gtk.c (gtk_map_subwindow):
6636         * glyphs-gtk.c (gtk_button_redisplay):
6637         * glyphs-msw.c:
6638         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6639         * glyphs-x.c (init_image_instance_from_xbm_inline):
6640         * glyphs-x.c (extract_xpm_color_names):
6641         * glyphs-x.c (x_xpm_instantiate):
6642         * glyphs.c (get_image_instantiator_governing_domain):
6643         * glyphs.c (print_image_instance):
6644         * glyphs.c (image_instance_equal):
6645         * glyphs.c (image_instance_hash):
6646         * glyphs.c (encode_image_instance_type):
6647         * glyphs.c (make_image_instance_1):
6648         * glyphs.c (inherit_instantiate):
6649         * glyphs.c (image_instantiate):
6650         * glyphs.c (allocate_glyph):
6651         * glyphs.c (Fglyph_type):
6652         * glyphs.c (redisplay_subwindow):
6653         * glyphs.c (display_table_entry):
6654         * gtk-glue.c (xemacs_list_to_gtklist):
6655         * gtk-glue.c (xemacs_gtklist_to_list):
6656         * gtk-glue.c (xemacs_list_to_array):
6657         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6658         * gutter.c (gutter_was_visible):
6659         * gutter.c (get_gutter_coords):
6660         * input-method-xlib.c (get_XIM_input):
6661         * insdel.c (bufpos_to_bytind_func):
6662         * insdel.c (bytind_to_bufpos_func):
6663         * insdel.c (move_gap):
6664         * intl.c (x_get_composed_input):
6665         * keymap.c (keymap_lookup_directly):
6666         * keymap.c (keymap_delete_inverse_internal):
6667         * keymap.c (ensure_meta_prefix_char_keymapp):
6668         * keymap.c (accessible_keymaps_mapper_1):
6669         * keymap.c (where_is_recursive_mapper):
6670         * lisp.h:
6671         * lisp.h (ABORT):
6672         * lread.c (read_atom):
6673         * lstream.c (Lstream_delete):
6674         * lstream.c (make_lisp_buffer_stream_1):
6675         * macros.c (pop_kbd_macro_event):
6676         * malloc.c (malloc):
6677         * malloc.c (free):
6678         * marker.c (bi_marker_position):
6679         * marker.c (set_bi_marker_position):
6680         * menubar-gtk.c (menu_descriptor_to_widget_1):
6681         * menubar-msw.c (prune_menubar):
6682         * menubar-x.c (set_frame_menubar):
6683         * mule-charset.c (get_unallocated_leading_byte):
6684         * mule-charset.h (CHAR_LEADING_BYTE):
6685         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6686         * nt.c (init_environment):
6687         * nt.c (generate_inode_val):
6688         * ntproc.c (delete_child):
6689         * ntproc.c (_sys_read_ahead):
6690         * ntproc.c (create_child):
6691         * objects.c (color_instantiate):
6692         * objects.c (font_instantiate):
6693         * objects.c (face_boolean_instantiate):
6694         * print.c (printing_major_badness):
6695         * process-nt.c (nt_send_process):
6696         * process-unix.c (unix_send_process):
6697         * process.c (get_process):
6698         * ralloc.c (obtain):
6699         * ralloc.c (relinquish):
6700         * ralloc.c (relocate_blocs):
6701         * ralloc.c (resize_bloc):
6702         * ralloc.c (r_alloc_free):
6703         * ralloc.c (r_re_alloc):
6704         * ralloc.c (r_alloc_thaw):
6705         * ralloc.c (init_ralloc):
6706         * ralloc.c (Free_Addr_Block):
6707         * ralloc.c (r_alloc):
6708         * redisplay-gtk.c (gtk_output_display_block):
6709         * redisplay-msw.c (mswindows_output_display_block):
6710         * redisplay-output.c (get_next_display_block):
6711         * redisplay-output.c (get_cursor_size_and_location):
6712         * redisplay-output.c (redisplay_output_layout):
6713         * redisplay-output.c (redisplay_clear_region):
6714         * redisplay-tty.c (tty_output_display_block):
6715         * redisplay-x.c (x_output_display_block):
6716         * redisplay.c (add_propagation_runes):
6717         * redisplay.c (add_glyph_rune):
6718         * redisplay.c (create_text_block):
6719         * redisplay.c (add_margin_runes):
6720         * redisplay.c (create_left_glyph_block):
6721         * redisplay.c (create_right_glyph_block):
6722         * redisplay.c (create_string_text_block):
6723         * redisplay.c (regenerate_window):
6724         * redisplay.c (REGEN_INC_FIND_START_END):
6725         * redisplay.c (redisplay_frame):
6726         * redisplay.c (point_in_line_start_cache):
6727         * regex.c:
6728         * regex.c (ABORT):
6729         * regex.c (re_compile_fastmap):
6730         * regex.c (re_match_2_internal):
6731         * regex.c (regerror):
6732         * scrollbar-gtk.c (gtk_scrollbar_loop):
6733         * scrollbar-gtk.c (scrollbar_cb):
6734         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6735         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6736         * scrollbar-x.c (x_update_scrollbar_instance_status):
6737         * scrollbar-x.c (x_scrollbar_loop):
6738         * scrollbar-x.c (x_update_frame_scrollbars):
6739         * search.c (search_command):
6740         * search.c (Fmatch_data):
6741         * select-x.c (motif_clipboard_cb):
6742         * signal.c (interrupt_signal):
6743         * specifier.c (specifier_add_spec):
6744         * specifier.c (specifier_instance_from_inst_list):
6745         * specifier.c (specifier_instance):
6746         * specifier.h:
6747         * specifier.h (struct specifier_methods):
6748         * strftime.c (add_num_time_t):
6749         * sunplay.c (init_device):
6750         * symbols.c (Fsetplist):
6751         * symbols.c (do_symval_forwarding):
6752         * symbols.c (store_symval_forwarding):
6753         * symbols.c (Fset):
6754         * symbols.c (Fbuilt_in_variable_type):
6755         * symbols.c (decode_magic_handler_type):
6756         * symbols.c (handler_type_from_function_symbol):
6757         * syntax.c (update_syntax_cache):
6758         * sysdep.c (init_baud_rate):
6759         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6760         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6761         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6762         * toolbar.c (get_toolbar_coords):
6763         * ui-gtk.c (build_gtk_boxed):
6764         * ui-gtk.c (describe_gtk_arg):
6765         * ui-gtk.c (gtk_type_to_lisp):
6766         * ui-gtk.c (lisp_to_gtk_type):
6767         * ui-gtk.c (lisp_to_gtk_ret_type):
6768         * ui-gtk.c (lisp_to_flag):
6769         * unexnt.c (read_in_bss):
6770         * unexnt.c (map_in_heap):
6771         * window.c (real_window):
6772         * window.c (window_display_lines):
6773         * window.c (window_display_buffer):
6774         * window.c (set_window_display_buffer):
6775         * window.c (window_modeline_height):
6776         * window.c (unshow_buffer):
6777         * window.c (window_loop):
6778         * window.c (Fget_lru_window):
6779         * window.c (Fsplit_window):
6780         * window.c (Fset_window_configuration):
6781         * window.c (saved_window_index):
6782         * xgccache.c (gc_cache_lookup):
6783         abort() -> ABORT().  Eliminate preprocessor games with abort()
6784         since it creates huge problems in VC7, solvable only by including
6785         massive amounts of files in every compile (and not worth it).
6786
6787         * sysdep.c:
6788         * sysproc.h:
6789         Inclusion of process.h does not need to be before lisp.h any more.
6790         Move later and remove comment about abort().
6791
6792 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6793
6794         * regex.c (re_match_2_internal):
6795         Correctly initialize loop which clears uninitialized registers.
6796
6797 2005-01-28  Vin Shelton  <acs@xemacs.org>
6798
6799         * sheap.c (more_static_core): Applied Ben's version of the long
6800         string patch.
6801
6802 2005-01-24  Vin Shelton  <acs@xemacs.org>
6803
6804         * sheap.c (more_static_core): Reformatted printf string so
6805         gcc-3.3.3 will compile this on Cygwin.
6806
6807 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6808
6809         * console.c (function_key_map): Reference `key-binding'.
6810
6811         * keymap.c (Vkey_translation_map): Improve docstring.
6812
6813 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6814
6815         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6816         * window.c (window_loop): [fix] Take into account
6817         `allow-deletion-of-last-visible-frame' variable.
6818         * window.c (replace-buffer-in-windows): Ditto.
6819
6820 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6821
6822         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6823
6824 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6825
6826         * event-gtk.c: Recognise AltGr as a valid modifier.
6827
6828 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6829
6830         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6831
6832 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6833
6834         Fix backreference bug caught by test suite.
6835
6836         * regex.c (regex_compile):
6837         Make backref duplicate internal register.
6838
6839 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6840
6841         Documentation, code clarification, and warning suppression.
6842         
6843         * regex.c (regex_compile):
6844         Improve comments.
6845         (re_match_2_internal):
6846         Improve comments and avoid redundant braces.  [Most of the big hunk
6847         at l. 4710 is indentation; use diff -w to see the real changes.]
6848         (alt_match_null_string_p):
6849         (common_op_match_null_string_p):
6850         Avoid shadowing global on Mac OS X 10.4, at least.
6851
6852 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6853
6854         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6855         introduced with shy groups fix).  [Already applied, probably
6856         with the second "fix shy groups" patch of 2004-10-07.] 
6857
6858 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6859
6860         From Andrey Slusar <anrays@gmail.com>:
6861
6862         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6863
6864 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6865
6866         * Makefile (RECURSIVE_MAKE): Removed.
6867         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6868         handling parallel builds.
6869
6870 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6871
6872         * Makefile.in.in: Enable support for parallel builds.
6873
6874 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6875
6876         From Andrey Slusar <anrays@gmail.com>:
6877
6878         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6879         FreeBSD version is >= 199701 _and_ < 600006.
6880
6881 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6882
6883         * scrollbar.c (compute_scrollbar_instance_usage):
6884         Only call device method compute_scrollbar_instance_usage() if it
6885         is defined.
6886
6887 2004-12-05  Vin Shelton <acs@xemacs.org>
6888
6889         * XEmacs 21.4.16 is released
6890
6891 2004-12-04  Vin Shelton  <acs@xemacs.org>
6892
6893         * depend: Regenerated.
6894
6895 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6896
6897         * regex.c (re_match_2_internal): Map internal to external
6898         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6899         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6900
6901 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6902
6903         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6904         to fix a crash.  Also, check the buffer is live and it
6905         really exists in buffer_list.  If the buffer is not in the list,
6906         prepend it.
6907
6908 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6909
6910         Fix shy groups by implementing recording of all groups for
6911         repetition and backtracking.  Backport from 21.5.
6912         
6913         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6914         external_to_internal_register, external_to_internal_register_size,
6915         and update comments for re_nsub.
6916
6917         * regex.c (re_opcode_t): Update comments.
6918         (print_compiled_pattern): Ouput external_to_internal_register,
6919         external_to_internal_register_size, and re_ngroups for debugging.
6920         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6921         (regex_compile): Update header comment.
6922         Ensure that all groups are recorded so that repeat matches and
6923         backtracking work correctly.  Comment related warning for groups >
6924         255.
6925         (re_search_2): Construct map of API indexes (which count only
6926         nonshy groups) to internal register numbers, and keep it updated.
6927
6928 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6929
6930         * frame-gtk.c (gtk_make_frame_visible):
6931         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6932         show/hide.  This is what X uses and is prevents previously hidden
6933         widgets from suddenly reappearing.
6934         * gtk-xemacs.c (gtk_xemacs_paint):
6935         * gtk-xemacs.c (gtk_xemacs_draw):
6936         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6937         drawable.
6938         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6939         size and location changes so that they can be seen before the next
6940         idle event.  Without this rapid changes to scrollbar properties
6941         are not seen.
6942
6943 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6944
6945         * console-gtk.h:
6946         * console-gtk.h (struct gtk_frame):
6947         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6948           Add hash tables track tab_control callback data.
6949           Added #defines for GTK object data names.
6950           Declaration of gtk_widget_to_frame().
6951         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6952         * frame-gtk.c (gtk_widget_to_frame): New.
6953         * frame-gtk.c (gtk_create_widgets):
6954         * frame-gtk.c (allocate_gtk_frame_struct):
6955         * frame-gtk.c (gtk_mark_frame):
6956         Manage frame callbakc hash tables.
6957         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6958         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6959         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6960         of widget size.
6961         * glyphs-gtk.c (gtk_widget_query_geometry): New
6962         * glyphs-gtk.c (gtk_register_gui_item): New
6963         * glyphs-gtk.c (gtk_add_tab_item): New
6964         * glyphs-gtk.c (gtk_tab_control_callback): New
6965         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6966         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6967         Use correct list when loading item.
6968         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6969         Register new methods.
6970         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6971         default size, for widgets.
6972         * gui-x.c:  Improved comment.
6973         * menubar-gtk.c (__generic_button_callback): Use
6974         gtk_widget_to_frame instead of __get_channel.
6975         * scrollbar-gtk.c:
6976         * ui-gtk.c: Use symbolic names for GTK object data.
6977
6978 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6979
6980         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6981
6982 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6983
6984         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6985
6986 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6987
6988         * malloc.c (morecore): siz is a long because in some architectures
6989         (eg ia-64) an int cannot hold the address range.  Additional patch
6990         from the SuSe distribution.
6991
6992 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6993
6994         * emacs.c:
6995         * malloc.c: lim_data is a long because in some architectures
6996         (eg ia-64) an int cannot hold the address range.
6997         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6998         instead of ulimit() because ulimit() always returns -1.
6999
7000 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
7001
7002         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
7003
7004 2004-06-11  David Kastrup  <dak@gnu.org>
7005
7006         * search.c (match_limit): Don't flag an error if match-data
7007         exceeding the allocated search_regs.num_regs gets requested, just
7008         return Qnil.
7009
7010 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7011
7012         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
7013         replace symbolic color entries with the real colors specified in
7014         xpm-color-symbols, before passing the XPM to gtk.
7015         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
7016         instead of a GTK specific field, so that it is used in by generic
7017         code.
7018
7019 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
7020
7021        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
7022         coredump from deref of NULL ptr (ExtData)
7023
7024 2004-04-19  Jerry James  <james@xemacs.org>
7025
7026         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
7027         VALBITS to compute the location of the sign bit.
7028         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
7029         of VALBITS with EMACS_INT_MAX.
7030         * events.c (Fevent_timestamp): Ditto.
7031         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
7032         compute the halfway point to timestamp wraparound.
7033         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
7034         EMACS_INT_MIN instead of using VALBITS.
7035         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
7036         incorrect number with VALBITS.
7037         * fns.c (Frandom): Correct number of integer bits in docstring.
7038         Use INT_VALBITS instead of VALBITS to compute the denominator.
7039         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
7040         build random numbers.
7041
7042 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7043         * event-gtk.c:
7044         * event-gtk.c (gtk_event_to_emacs_event):
7045         * menubar-gtk.c:
7046         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
7047         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
7048         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
7049         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
7050         * menubar-gtk.c (__activate_menu):
7051         * menubar-gtk.c (convert_underscores):
7052         * menubar-gtk.c (remove_underscores):
7053         * menubar-gtk.c (menu_convert):
7054         * menubar-gtk.c (menu_descriptor_to_widget_1):
7055         * menubar-gtk.c (menu_descriptor_to_widget):
7056         * menubar-gtk.c (menu_can_reuse_widget):
7057         * menubar-gtk.c (menu_create_menubar):
7058         * menubar-gtk.c (gtk_popup_menu):
7059         * menubar-gtk.c (Fgtk_build_xemacs_menu):
7060         Added support for Gtk menu bar and menu item mnemonics.
7061
7062 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7063
7064         * sysdll.c: (dll_function): Added support for finding symbols in
7065         Darwin shared libraries as well in Darwin bundles.
7066         * sysdll.c (image_for_address): New
7067         * sysdll.c (my_find_image): New
7068         * sysdll.c (search_linked_libs): New
7069
7070 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
7071
7072         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
7073         return to GTK requires a different API to marshalling data to use
7074         as GTK parameters.
7075         * ui-gtk.c (lisp_to_gtk_ret_type): New.
7076
7077 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
7078
7079         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
7080
7081 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7082
7083         * glyphs.c (process_image_string_instantiator):
7084         (Fset_console_type_image_conversion_list):
7085         Stop GCC from warning about shadowing of `exp'.
7086
7087         * redisplay-x.c (x_output_string): Fix unsigned lossage.
7088
7089 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
7090
7091         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
7092
7093 2004-02-03  Vin Shelton  <acs@xemacs.org>
7094
7095         * glyphs.c (image_instance_layout): Remove pointless assertion.
7096         * regex.c (regex_grow_registers): Return type is void.
7097
7098 2004-02-02  Vin Shelton <acs@xemacs.org>
7099
7100         * XEmacs 21.4.15 is released
7101
7102 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
7103
7104         * device-x.c (x_error_handler): Don't call stderr_out
7105
7106 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
7107
7108         * buffer.c (other-buffer): Clarify documentation of order of
7109         arguments for FSF Emacs.
7110
7111 2003-10-11  Olivier Galibert  <galibert@pobox.com>
7112
7113         * window.c (Fdelete_window): Dirty the mirror structure _before_
7114         marking the window deleted.
7115
7116 2003-09-15  Jerry James  <james@xemacs.org>
7117
7118         * event-msw.c (debug_mswin_messages): Conditionally compile
7119         messages missing from the Cygwin headers.
7120
7121 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
7122
7123         * data.c (eq_with_ebola_notice): Fix typo in comment.
7124         (Ftrue_list_p): Improve docstring.
7125
7126 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
7127
7128         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
7129
7130 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
7131
7132         * search.c (trivial_regexp_p): Regexps containing "\{" are
7133         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
7134         Stefan Monnier for suggesting a diagnosis.
7135
7136 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
7137
7138         * elhash.c (make-hash-table): Clarify use of :test #'equal.
7139
7140 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
7141
7142         * search.c (Fsearch_forward):
7143         (Fsearch_backward):
7144         Document negative count.
7145
7146 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
7147
7148         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
7149
7150 2003-09-13  Martin Buchholz  <martin@xemacs.org>
7151
7152         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
7153
7154 2003-09-15  Vin Shelton  <acs@xemacs.org>
7155
7156         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
7157         21.5.
7158
7159 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7160
7161         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
7162         (re_search_2): Match the first byte of Bufbyte, not Emchar.
7163         (re_match_2_internal): Use TRANSLATE instead of
7164         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
7165         non-ASCII char case conversion.
7166
7167 2003-09-08  Mike Sperber  <mike@xemacs.org>
7168
7169         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
7170         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
7171
7172 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
7173
7174        * .gdbinit (pobj): fix printing of symbol name.
7175
7176 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
7177
7178         * frame-x.c (x_layout_widgets): When resizing is about to cause
7179         frame size slip, mark it for redisplay.
7180
7181 2003-08-18  Jerry James  <james@xemacs.org>
7182
7183         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
7184
7185 2003-09-03  Vin Shelton <acs@xemacs.org>
7186
7187         * XEmacs 21.4.14 is released
7188
7189 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
7190
7191         * config.h.in (REGEX_MALLOC): Make it configure'able.
7192
7193 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
7194
7195         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
7196         linking.
7197         * sysdll.c (dll_init):
7198         * sysdll.c (dll_open):
7199         * sysdll.c (dll_close):
7200         * sysdll.c (dll_function):
7201         * sysdll.c (dll_variable):
7202         * sysdll.c (dll_error):
7203         Add support for loading bundles using Darwin/MacOSX
7204         native API.
7205
7206 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
7207
7208         * process.c (start-process-internal): Document coding systems.
7209
7210 2003-07-30  Jerry James  <james@xemacs.org>
7211
7212         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
7213
7214 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
7215
7216         * event-msw.c (mswindows_enqueue_mouse_button_event):
7217         * event-msw.c (mswindows_wnd_proc):
7218           enqueue button event when scrollwheel event isn't handled by 
7219           mswindows_handle_mousewheel_event, such as when the scrollbars
7220           are not showing.
7221
7222 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
7223
7224         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
7225
7226 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
7227
7228         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
7229
7230 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
7231
7232         * regex.c (re_match_2_internal): Fix matching degenerate word
7233         boundaries.
7234
7235 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
7236
7237         * XEmacs 21.4.13 is released
7238
7239 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
7240
7241         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
7242         * lisp.h (<inttypes.h>):
7243         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
7244         the definition.
7245
7246 2003-03-15  Martin Buchholz  <martin@xemacs.org>
7247
7248         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7249         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7250         Result: "temacs can only be run in -batch mode."
7251         Fix: Check xemacs executable candidate for directory-ness.
7252
7253 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7254
7255         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7256           they conflict with <sys/types.h>.
7257
7258 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7259
7260         * database.c: Berkeley DB wants __STDC__ to be defined.
7261
7262 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7263
7264         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7265
7266 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7267
7268         * process-unix.c (unix_send_process): Fix C++ compile error.
7269
7270 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7271
7272         * Added .dylib as an acceptable shared library file extension
7273         * to support MacOSX.
7274
7275 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7276
7277         * EmacsFrameP.h (EmacsFramePart):
7278         Kludge to allow compiling with Motif1, but linking with Motif2.
7279
7280 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7281
7282         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7283
7284
7285 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7286
7287         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7288
7289 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7290
7291         * sysdll.c: Included lisp.h to define needed alloca_array.
7292
7293 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7294
7295         Make XEmacs redisplay 10 times faster.
7296         If, that is, you're using a slow X connection and MoveOpaque.
7297         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7298         Use compress_motion = TRUE.
7299         * EmacsFrame.c (emacsFrameClassRec): 
7300         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7301         * EmacsManager.c (emacsManagerClassRec):
7302         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7303
7304 2003-01-30  Vin Shelton  <acs@xemacs.org>
7305
7306         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7307
7308 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7309
7310         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7311         Patch by Martin Buchholz.
7312
7313 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7314
7315         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7316         Thanks to icc for warning and Martin Buchholz for reporting.
7317
7318 2003-01-29  Vin Shelton <acs@xemacs.org>
7319
7320         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7321
7322         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7323         remember to multiply by the element size.
7324
7325 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7326
7327         * XEmacs 21.4.12 "Portable Code" is released.
7328
7329 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7330
7331         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7332         * s/cygwin.sc: new linker file.
7333
7334 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7335
7336         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7337
7338         * redisplay-x.c (x_output_string): Use X11-specified types.
7339         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7340         * emacs.c (__free_hook): Use typeof with Intel compiler.
7341         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7342
7343 2003-01-08  Andy Piper  <andy@xemacs.org>
7344
7345         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7346         reserve size during unexec().
7347
7348 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7349
7350         * process-unix.c (unix_create_process): Don't let outchannel block.
7351
7352 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7353
7354         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7355         Needed for IsBadReadPtr().
7356
7357 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7358
7359         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7360
7361 2002-12-14  Ben Wing  <ben@xemacs.org>
7362
7363         * callint.c: Declaration error.
7364         * dumper.c (pdump):
7365         * dumper.c (pdump_load): Warning fix.
7366         * process.c: GCPRO error.
7367         * glyphs.c (unmap_subwindow):
7368         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7369         * event-stream.c (maybe_kbd_translate): Wrong argument to
7370         character_to_event().
7371
7372         * alloc.c (garbage_collect_1):
7373         * emacs.c:
7374         * emacs.c (debug_can_access_memory):
7375         * emacs.c (fatal_error_signal):
7376         * emacs.c (mswindows_handle_hardware_exceptions):
7377         * emacs.c (main_1):
7378         * emacs.c (main):
7379         * emacs.c (assert_failed):
7380         * emacs.c (syms_of_emacs):
7381         * lisp.h:
7382         * print.c:
7383         * print.c (std_handle_out_va):
7384         * print.c (write_string_to_stdio_stream):
7385         * print.c (write_fmt_string):
7386         * print.c (printing_badness):
7387         * print.c (printing_major_badness):
7388         * print.c (print_internal):
7389         * print.c (debug_print_no_newline):
7390         * print.c (debug_backtrace):
7391         Be more defensive in handling bad values when printing.  Add code
7392         from trunk involving inhibit_non_essential_printing_operations.
7393         When going down or in debug_print(), don't do external conversion
7394         and such and try really, really hard when printing to avoid core
7395         dumping.  Add force-debugging-signal, debug_break().
7396
7397 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7398
7399         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7400         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7401
7402 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7403
7404         * database.c: Fix open_database. Berkeley DB API has changed in
7405         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7406
7407 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7408
7409         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7410
7411 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7412
7413         * event-Xt.c (Xt_timeout):
7414         (Xt_timeout_callback):
7415         (emacs_Xt_add_timeout):
7416         (emacs_Xt_remove_timeout):
7417         (Xt_timeout_to_emacs_event):
7418         Turn completed_timeouts from a stack into a queue.  Fixes
7419         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7420
7421 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7422
7423         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7424         * emacs.c (main): Assert that mmap'd allocation is disabled.
7425
7426 2002-10-14  Andy Piper  <andy@xemacs.org>
7427
7428         * glyphs-widget.c (layout_query_geometry): add in fiddle
7429         factor. Include border text in width layout calculation.
7430         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7431
7432 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7433
7434         * XEmacs 21.4.10 "Military Intelligence" is released.
7435
7436 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7437
7438         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7439         using the NAS private array SoundFileInfo that no longer exists in
7440         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7441         and earlier.  This is broken for some versions between 1.5a and
7442         1.5f.
7443
7444 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7445
7446         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7447
7448         * emacs.c (shut_down_emacs): Improve crash message.
7449
7450 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7451
7452         * file-coding.c (determine_real_coding_system): Check for coding
7453         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7454         shebangs and Python PEP 263.
7455
7456 2002-10-08  Andy Piper  <andy@xemacs.org>
7457
7458         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7459         if static sizes haven't been set.
7460
7461 2002-08-30  Mike Alexander  <mta@arbortext.com>
7462
7463         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7464         to close a socket.
7465
7466 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7467
7468         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7469
7470 2002-09-20  Mike Sperber <mike@xemacs.org>
7471
7472         (This partially gets back my patch from 2002-07-20 without the
7473         bug.)
7474         * callproc.c (child_setup): Remove Ben's comment noting confusion
7475         over the file descriptors >= 3: close_process_descs() doesn't
7476         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7477         * process-unix.c (unix_create_process): Call
7478         begin_dont_check_for_quit to inhibit unwanted interaction (and
7479         thus breaking of X event synchronicity) in the child.
7480
7481 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7482
7483         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7484         widget.
7485
7486 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7487
7488         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7489         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7490         the xemacs process did not exit, but looped infinitely here.  This
7491         fixes that problem.
7492
7493 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7494
7495         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7496         (find_context): Improve comments.
7497
7498         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7499         (re_match_2): An XCHAR_TABLE operation was missing.
7500
7501         Many of the following changes were inspired by Andy Piper's (now
7502         obsolete) patch to make syntax-table text property lookup optional.
7503
7504         [Documentation]
7505
7506         * syntax.h (top level): Document semantics of syntax flags.
7507         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7508         * syntax.c, syntax.h (top level): Document syntax cache better in
7509         comments.
7510
7511         [Instrument syntax caching (temporary change)]
7512
7513         * syntax.h (enum syntax_cache_statistics_functions, struct
7514         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7515         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7516         * syntax.c (scan_words, Fforward_comment, scan_lists,
7517         Fbackward_prefix_characters):
7518         * font-lock.c (find_context):
7519         Use them to instrument syntax caching. 
7520         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7521         syntax_cache_statistics_function_names): New type and variables.
7522         * syntax.c (update_syntax_cache): Update and report statistics.
7523
7524         [Major syntax cache optimizations]
7525
7526         syntax.c (lookup_syntax_properties): Default off.
7527
7528         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7529         * syntax.c (update_syntax_cache):
7530         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7531
7532         [Minor syntax cache optimizations and code clarifications]
7533
7534         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7535         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7536         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7537         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7538         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7539         (Code clarification.)
7540
7541         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7542         scan_lists): Compute code from syncode, use Boolean macros instead
7543         of redundant masking operations.  (Code clarification; any decent
7544         compiler can do this optimization.)
7545
7546         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7547         for clarity.
7548
7549         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7550         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7551         use F*_single_property_change instead of F*_extent_change.
7552         Currently F*_single_property_change is _much_ less efficient.
7553
7554         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7555         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7556         syntax_cache.object properly, don't leave Qt or Qnil.
7557         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7558         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7559         tests for Qt or Qnil.
7560
7561 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7562
7563         * redisplay.c (point_in_line_start_cache): 
7564         * extents.c (print_extent_1):
7565         Fix warnings.
7566
7567         * extents.c (Fset_extent_property): Document `syntax-table' property.
7568
7569         * extents.h (Fnext_single_property_change): EXFUN it.
7570
7571 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7572
7573         * search.c (clear_unused_search_regs): New static function.
7574         (search_buffer): 
7575         (simple_search): 
7576         (boyer_moore):
7577         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7578         Minor clarifications in comments.
7579
7580         * regex.c (re_match_2_internal): Ensure no stale submatches.
7581
7582 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7583
7584         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7585
7586 2002-08-29  Jerry James  <james@xemacs.org>
7587
7588         * lisp.h: structrures -> structures.
7589
7590 2002-06-03  Andy Piper  <andy@xemacs.org>
7591
7592         * frame.c (frame_conversion_internal): add conversion appropriate
7593         for setting frame dimensions in pixels.
7594
7595         * console.h (struct console_methods): add device-specific widget
7596         layout functions.
7597
7598         * emacs.c (main_1): initialize glyph vars.
7599
7600         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7601         (handle_focus_event_2): new function. Allow focus to
7602         be set to a particular window and widget.
7603         (enqueue_focus_event): new function. Create a
7604         synthetic focus event.
7605         (emacs_Xt_handle_magic_event): call
7606         handle_focus_event_2.
7607
7608         * frame.c (Fset_frame_pixel_height): new function. Allow
7609         pixel-based sizing. Does the right thing on character-oriented
7610         displays.
7611         (Fset_frame_pixel_width): ditto.
7612         (Fset_frame_pixel_size): ditto.
7613         (syms_of_frame): declare.
7614
7615         * general-slots.h: add :vertically-justify and
7616         :horizontally-justify.
7617
7618         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7619         (mswindows_widget_border_width): new function.
7620         (mswindows_combo_box_instantiate): set border widths.
7621         (console_type_create_glyphs_mswindows): declare.
7622
7623         * glyphs-widget.c:
7624         (check_valid_justification): allow vertical and horizontal
7625         justification.
7626         (widget_border_width): new function. Call device methods.
7627         (widget_instance_border_width): ditto.
7628         (logical_unit_height): new function. Determine the height of a
7629         logical-unit. Logical units are intended to provide grid-like
7630         layout for subcontrols in a layout. If the layout is
7631         :vertically-justify top then subcontrols will be positioned on
7632         logical-unit boundaries, thus allowing adjacent subcontrols to
7633         line up.
7634         (widget_logical_unit_height): ditto for widgets.
7635         (redisplay_widget): misc cleanup.
7636         (widget_spacing): new function. Call device specific
7637         methods. Intended to be the default gap between adjacent widgets.
7638         (widget_query_geometry): use new spacing functions to determine
7639         appropriate geometry.
7640         (initialize_widget_image_instance): initialize horizontal and
7641         vertical justification.
7642         (widget_instantiate): use logica-units where appropriate for
7643         sizing large widgets.
7644         (button_query_geometry): use widget_instance_border_width.
7645         (tree_view_query_geometry): ditto.
7646         (tab_control_query_geometry): ditto.
7647         (edit_field_query_geometry): new function.
7648         (layout_update): pick up :justify, :horizontally-justify and
7649         :vertically-justify none of which worked previously. :justify is
7650         used as a fallback for both horizontal and vertical justification.
7651         (layout_query_geometry): use logical units to size appropriately.
7652         (layout_layout): ditto.
7653         (Fwidget_logical_to_character_width): new function. Allow users to
7654         convert from logical units to characters so that frame sizes can
7655         be set appropriately.
7656         (Fwidget_logical_to_character_height): ditto.
7657         (syms_of_glyphs_widget): declare.
7658         (image_instantiator_edit_fields): add edit_field_query_geometry.
7659         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7660         :horizontally-justify.
7661         (specifier_vars_of_glyphs_widget): new function. Declare
7662         Vwidget_border_width which is not yet used.
7663
7664         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7665         (x_widget_border_width): new function.
7666         (x_widget_instantiate): create a sensible name for widgets.
7667         (console_type_create_glyphs_x): declare x_widget_border_width.
7668
7669         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7670         (struct Lisp_Image_Instance): add :vertically-justify and
7671         :horizontally-justify.
7672         (LAYOUT_JUSTIFY_TOP): new.
7673         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7674         (ROUND_UP): new macro. Round argument up to next integral
7675         interval.
7676
7677         * redisplay-output.c (redisplay_output_layout): misc formatting.
7678
7679         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7680
7681 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7682
7683         * XEmacs 21.4.9 "Informed Management" is released.
7684
7685 2002-08-19  Andy Piper  <andy@xemacs.org>
7686
7687         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7688         win32 format.
7689
7690         * realpath.c (xrealpath): normalize drive spec also so that dir
7691         sep chars are not mixed on cygwin.
7692
7693 2002-08-06  Jerry James  <james@xemacs.org>
7694
7695         * window.c (Fsplit_window): Count only half of the divider width
7696         against the left window when splitting horizontally. 
7697
7698 2002-06-24  Andy Piper  <andy@xemacs.org>
7699
7700         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7701         toolbar was cleared.
7702
7703         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7704         function. Split out from mswindows_output_frame_toolbars.
7705         (mswindows_output_frame_toolbars): move clear pieces to
7706         mswindows_output_frame_toolbars.
7707
7708         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7709         out from gtk_output_frame_toolbars.
7710         (gtk_output_frame_toolbars): move clear pieces to
7711         gtk_clear_frame_toolbars.
7712
7713         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7714         the frame is cleared. How this ever worked before is a mystery.
7715         (x_output_frame_toolbars): Only output toolbars.
7716         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7717
7718         * gutter.c (update_gutter_geometry):
7719         Mark frame layout changed.
7720         (update_frame_gutter_geometry, update_frame_gutters):
7721         Respect frame_layout_changed.
7722
7723         * console.h (struct console_methods): add
7724         clear_frame_toolbars_method.
7725
7726         * redisplay.c (redisplay_frame): call
7727         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7728
7729         * toolbar.h: declare update_frame_toolbars_geometry.
7730
7731         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7732         out from update_frame_toolbars.  Call clear_frame_toolbars.
7733         (update_frame_toolbars): only output, do not change geometry.
7734
7735         * redisplay.c: add frame_layout_changed.
7736
7737         * redisplay.h: add frame_layout_changed.
7738         (CLASS_RESET_CHANGED_FLAGS): set it.
7739         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7740         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7741         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7742
7743         * device.h (struct device): add frame_layout_changed.
7744         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7745
7746         * frame.h (struct frame): add frame_layout_changed.
7747         (MARK_FRAME_LAYOUT_CHANGED): new.
7748
7749 2002-06-30  Mike Alexander  <mta@arbortext.com>
7750
7751         * event-msw.c (mswindows_need_event): Don't wait for a new message
7752         if the queue is not empty.  Suggested by Paul Moore.
7753
7754 2002-06-12  Andy Piper  <andy@xemacs.org>
7755
7756         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7757         for printing on accurately.
7758
7759 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7760
7761         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7762         WM_ACTIVATE message. Make sure that the frame is visible if the
7763         window is visible. This seemss to fix the problem where XEmacs
7764         appears to freeze after switching desktops with certain virtual
7765         window managers.
7766         (debug_output_mswin_message): Added code to output message
7767         parameters for WM_WINDOWPOSCHANGED, 
7768         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7769
7770 2002-05-25  Andy Piper  <andy@xemacs.org>
7771
7772         * select-x.c (vars_of_select_x): Fix docstring of
7773         x-selection-strict-motif-ownership
7774
7775 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7776
7777         * keymap.c (get_keymap):
7778         Add comment about do_autoload GCPROs own args.
7779
7780 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7781
7782         * bytecode.c (execute_optimized_program): check_opcode ifdef
7783         ERROR_CHECK_BYTE_CODE.
7784
7785 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7786
7787         Thanks to Ben Wing and Michael Sperber.
7788
7789         * eval.c (Fcommand_execute):
7790         (Feval):
7791         (Ffuncall):
7792         (Fmacroexpand_internal):
7793         (function_argcount):
7794         callint.c (Fcall_interactively):
7795         Add comment about do_autoload GCPROs own args.
7796
7797         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7798
7799         * eval.c (Ffuncall): Extra braces to placate GCC.
7800
7801 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7802
7803         * backtrace.h (grow_specpdl):
7804         (SPECPDL_RESERVE):
7805         * EmacsFrame.c (EmacsFrameSetValues):
7806         * eval.c (grow_specpdl):
7807         * ExternalShell.c (hack_event_masks_1):
7808         * glyphs-x.c (convert_EImage_to_XImage): 
7809         (x_finalize_image_instance):
7810         * ralloc.c (page_size):
7811         (r_alloc_sbrk):
7812         * xgccache.c (gc_cache_hash):
7813         Fix unsigned comparison warnings.
7814
7815 2002-07-29  Jerry James  <james@xemacs.org>
7816
7817         * lread.c (locate_file): Any nonnegative return value indicates
7818         success if MODE is nonnegative.
7819
7820 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7821
7822         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7823         argument. 
7824
7825 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7826
7827         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7828
7829         * dumper.c (pdump_get_indirect_count):
7830         (pdump_scan_by_alignment):
7831         (pdump_dump_root_struct_ptrs):
7832         (pdump_dump_rtables):
7833         (pdump_dump_root_objects):
7834         (pdump):
7835         * nas.c (WaveOpenDataForReading):
7836         * fns.c (print_bit_vector):
7837         * font-lock.c (SINGLE_SYNTAX_STYLE):
7838         * glyphs.c (check_for_ignored_expose):
7839         (find_matching_subwindow):
7840         * glyphs-eimage.c:
7841         * imgproc.c (get_histogram):
7842         * redisplay.c (point_in_line_start_cache):
7843         * redisplay-output.c (redisplay_unmap_subwindows):
7844         * symbols.c (defsymbol_massage_name_1):
7845         (defkeyword_massage_name):
7846         (deferror_massage_name_and_message):
7847         * redisplay-x.c (x_output_string): 
7848         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7849         * frame.h (struct frame):
7850         * filelock.c (current_lock_owner):
7851         * doprnt.c (emacs_doprnt_1):
7852         * lisp.h (struct Lisp_Bit_Vector):
7853         (DO_REALLOC):
7854         Fix warnings.
7855
7856 2002-02-13  Ben Wing  <ben@xemacs.org>
7857
7858         * event-stream.c (reset_key_echo):
7859         * event-stream.c (reset_this_command_keys):
7860         * event-stream.c (execute_command_event):
7861         If console is dead as a result of C-x 5 0, then post-command stuff
7862         needs to be careful and do only non-console-specific stuff.
7863
7864 2002-07-01  Mike Sperber <mike@xemacs.org>
7865
7866         * process-unix.c (unix_send_process): Mark coding_outstream as
7867         non-open upon SIGPIPE.
7868
7869         * event-stream.c (Fnext_event): Reorder switch cases to something
7870         that makes sense.
7871
7872 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7873
7874         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7875         Don't bogusly reinitialize ascii_character property.
7876
7877 2002-07-08  Mike Sperber <mike@xemacs.org>
7878
7879         * process.c (Fstart_process_internal): Do error checking before we
7880         fork off the child, so the child can't muck with the state of the
7881         parent.
7882
7883 2002-07-08  Mike Sperber <mike@xemacs.org>
7884
7885         * ralloc.c (init_ralloc): Allocate properly for pdump.
7886
7887 2002-06-12  Andy Piper  <andy@xemacs.org>
7888
7889         * glyphs.c (query_string_geometry): check the string.
7890
7891         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7892         widget names.
7893
7894 2002-06-17  Jerry James  <james@xemacs.org>
7895
7896         * sysdll.c: Remove RTLD_GLOBAL initialization.
7897         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7898
7899 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7900
7901         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7902
7903 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7904
7905         * sysdep.c (sys_rename): Make sys_rename work for the case where
7906         Windows rename sets errno to EACCES if target file exists.
7907
7908 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7909
7910         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7911         Fix detection of metric units to work on Win95
7912
7913 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7914
7915         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7916
7917 2002-04-25  Andy Piper  <andy@xemacs.org>
7918
7919         * redisplay.c (create_text_block): Remove extra comment trailer.
7920
7921 2002-04-24  Andy Piper  <andy@xemacs.org>
7922
7923         * redisplay.c (create_text_block): Don't actually add propagation
7924         data if the line ends after we have added a glyph.
7925
7926 2002-04-22  Andy Piper  <andy@xemacs.org>
7927
7928         * extents.c (extent_fragment_update): check for glyphs we have
7929         previously displayed.
7930         * extents.c (print_extent_1): warning removal.
7931         * extents.h: change prototype.
7932         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7933         widths correctly for wide glyphs.
7934         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7935         * redisplay.c (prop_type): add PROP_GLYPH.
7936         * redisplay.c (struct prop_block): add glyph type
7937         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7938         to the propagation data.
7939         * redisplay.c (create_text_block): if there is a glyph in the
7940         propagation data use it to salt extent_fragment_update.
7941         * redisplay.c (create_string_text_block): ditto.
7942
7943 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7944
7945         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7946         * redisplay-output.c (compare_runes): Compare them.
7947         * redisplay.c: Update copyright date.
7948         * redisplay.c (pos_data): Add need_baseline_computation field.
7949         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7950         need_baseline_computation; zero yoffset. Set max_pixmap_height
7951         for all pixmaps, not just automatically positioned ones.
7952         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7953         * redisplay.c (calculate_baseline): New, compute textual baseline.
7954         * redisplay.c (add_glyph_rune): Call them.
7955         * redisplay.c (create_text_block): Likewise.
7956         * redisplay.c (create_overlay_glyph_block): Likewise.
7957         * redisplay.c (add_margin_runes): Likewise.
7958         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7959
7960         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7961         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7962         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7963         * redisplay-msw.c (mswindows_output_string): Likewise.
7964         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7965         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7966         * redisplay-x.c (x_output_display_block): Likewise.
7967
7968 2002-03-28  Ben Wing  <ben@xemacs.org>
7969
7970         * redisplay.c: Fixed bug in redisplay
7971         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7972         and down of the lines, since they're bigger than the line
7973         size. (It was seen most obviously when there's a horizontal scroll
7974         bar, e.g. do C-h a glyph or something like that.) The problem was
7975         that the glyph-contrib-p setting on glyphs was ignored even if it
7976         was set properly, which it wasn't until now.
7977
7978 2002-04-24  Andy Piper  <andy@xemacs.org>
7979
7980         * lisp.h (Dynarr_end): Fix definition.
7981
7982 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7983
7984         * redisplay.c (mark_redisplay): Remove call to
7985         update_frame_window_mirror.
7986
7987 2001-11-15  Andy Piper  <andy@xemacs.org>
7988
7989         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7990         cygwin (again).
7991
7992 2002-02-13  Andy Piper  <andy@xemacs.org>
7993
7994         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7995         we did in fact enqueue the XM_MAPFRAME event.
7996
7997 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7998
7999         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
8000         to fix problem switching between virtual desktops under virtuawin
8001         virtual window manager.
8002
8003 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
8004
8005         * event-msw.c: Typo fix.
8006         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
8007         magic XM_MAPFRAME event has been sent.
8008
8009 2001-11-23  Andy Piper  <andy@xemacs.org>
8010
8011         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
8012
8013 2001-11-21  Andy Piper  <andy@xemacs.org>
8014
8015         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
8016         mouse events outside the frame.
8017
8018 2002-03-20  Andy Piper  <andy@xemacs.org>
8019
8020         * menubar-msw.c (mswindows_popup_menu): warning removal.
8021         * dialog-msw.c (dialog_popped_down): ditto.
8022
8023 2001-12-11  Andy Piper  <andy@xemacs.org>
8024
8025         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
8026         * dialog-msw.c (mswindows_make_dialog_box_internal): set
8027         popup_up_p.
8028         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
8029         * menubar-msw.c (mswindows_handle_wm_command): ditto.
8030         * menubar-msw.c (mswindows_popup_menu): ditto.
8031
8032 2001-10-29  Andy Piper  <andy@xemacs.org>
8033
8034         * dialog-msw.c (handle_directory_dialog_box): quit if the user
8035         cancels.
8036
8037 2002-01-03  Andy Piper  <andy@xemacs.org>
8038
8039         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
8040         letters.
8041         (xrealpath): ditto.
8042
8043 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
8044
8045         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
8046         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
8047         * device-msw.c (mswindows_handle_page_setup_dialog_box):
8048         Detect and handle case where machine is set up for metric units
8049
8050 2002-04-02  Andy Piper  <andy@xemacs.org>
8051
8052         * dired-msw.c (mswindows_get_files): 
8053         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
8054         completely handled by XEmacs. Suggested by Thomas Vogler
8055         <mail@thomas-vogler.de>.
8056
8057 2001-11-14  Andy Piper  <andy@xemacs.org>
8058
8059         * nt.c (REG_ROOT): change registry key to XEmacs.
8060
8061 2002-04-27  Andy Piper  <andy@xemacs.org>
8062
8063         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
8064
8065 2002-04-26  Andy Piper  <andy@xemacs.org>
8066
8067         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
8068         behavior.
8069
8070 2002-03-14  Mike Alexander  <mta@arbortext.com>
8071
8072         * event-msw.c (mswindows_unwait_process): New, remove process from
8073         wait list
8074         * process-nt.c (nt_finalize_process_data): Call
8075         mswindows_unwait_process
8076         * console-msw.h: Declare mswindows_unwait_process
8077
8078 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
8079
8080         * editfns.c (Fdecode_time):
8081         (Fformat_time_string):
8082         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
8083         (make_time): Warning elimination (change arg name).
8084
8085 2001-11-24  Andy Piper  <andy@xemacs.org>
8086
8087         * window.c (Fsplit_window): Doc return type.
8088
8089 2002-04-01  Andy Piper  <andy@xemacs.org>
8090
8091         * emacs.c (Fkill_emacs): Only output message box in interactive
8092         mode.
8093
8094 2002-04-26  Andy Piper  <andy@xemacs.org>
8095  
8096         * config.h.in: pull in 21.5.x change to stop alloca warnings under
8097         cygwin.
8098
8099 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
8100
8101         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
8102         bit platform.
8103
8104 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
8105
8106         * XEmacs 21.4.8 "Honest Recruiter" is released.
8107
8108 2002-05-07  Nix  <nix@esperi.demon.co.uk>
8109
8110         Supersedes 2002-04-17 patch.
8111
8112         * process.h (PROCESS_LIVE_P): Use the process status as
8113         evidence of health, not the state of the input stream.
8114         (PROCESS_READABLE_P): Say if the process is readable
8115         from. (It may be dead nonetheless.)
8116         (CHECK_READABLE_PROCESS): Test for that condition.
8117
8118         * process.c (create_process): Use PROCESS_READABLE_P.
8119         (read_process_output, set_process_filter): Likewise.
8120
8121         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
8122         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
8123
8124         This code is #if 0'd, this is not the time to add new functions:
8125
8126         * process.c (Fprocess_readable_p): Report readability status.
8127         * process.c (Qprocess_readable_p): New, associated symbol...
8128         * process.c (syms_of_process): ... initialize it.
8129
8130 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
8131
8132         * XEmacs 21.4.7 "Economic Science" is released.
8133
8134 2002-04-17  Nix  <nix@esperi.demon.co.uk>
8135
8136         * process.h (PROCESS_LIVE_P): Use the process status as
8137         evidence of health, not the state of the input stream.
8138
8139 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
8140
8141         * sysdep.c (sys_siglist): change "signum" to "signal"
8142
8143 2001-04-21  Martin Buchholz  <martin@xemacs.org>
8144
8145         * s/darwin.h: New file.
8146         Thanks to Greg Parker <gparker@cs.stanford.edu>.
8147         
8148 2002-04-23  Andreas Jaeger  <aj@suse.de>
8149
8150         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
8151         which use lib64 for 64-bit libs.
8152         (START_FILES): Likewise.
8153
8154 2002-02-11  Mike Sperber  <mike@xemacs.org>
8155
8156         * device-x.c: 
8157         (x_IO_error_handler):
8158         (x_init_device): Temporarily keep device in static variable
8159         `device_being_initialized' so we can recover gracefully from
8160         internal XOpenDevice failure.  (XOpenDevice is documented to
8161         return NULL on failure, but sometimes calls the IO error handler
8162         instead.)
8163
8164 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
8165
8166         * dired.c (Ffile_name_all_completions): Change documentation --
8167         remove reference to completion-ignored-extensions.
8168         * dired.c (vars_of_dired): Change documentation for
8169         completion-ignored-extensions -- remove reference to
8170         file-name-all-completions.
8171
8172 2002-03-06  Jerry James  <james@xemacs.org>
8173
8174         * emodules.c (emodules_load): Fix multiple loading of same module.
8175
8176 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
8177         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
8178         RTLD_LAZY to avoid incorrect symbol binding when using nested
8179         shared libraries on Solaris.
8180
8181 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
8182
8183         * fileio.c (Ffind_file_name_handler): Improve docstring.
8184
8185 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
8186
8187         * fns.c (Fmapconcat): Improve docstring.
8188
8189 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
8190
8191         * device-gtk.c: Add prototype for
8192         emacs_gtk_selection_clear_event_handle.
8193         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
8194         selection.  Setup signal handler for "selection_clear_event"
8195         (emacs_gtk_selection_clear_event_handle).
8196
8197         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
8198         other applications owning the clipboard (based on
8199         x_handle_selection_clear).
8200
8201 2001-12-23  William M. Perry  <wmperry@gnu.org>
8202
8203         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
8204         
8205 2002-01-04  Martin Buchholz  <martin@xemacs.org>
8206
8207         * keymap.c (define_key_alternate_name): Parenthesize EQ.
8208
8209 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
8210
8211         * XEmacs 21.4.6 "Common Lisp" is released.
8212
8213 2001-12-16  Torsten Duwe  <duwe@caldera.de>
8214
8215         * search.c (Freplace_match): Add missing sub-expression functionality.
8216
8217         * buffer.c (decode_buffer): Add a check for pointer type to
8218         decode_buffer, before gcc's CSE optimization reorders a
8219         dereference in front of the allow_string test.
8220
8221 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
8222
8223         * window.c (window_loop): Fix bug that sometimes prevented
8224         window_loop() from iterating across multiple devices.  Also, at
8225         Ben's request, changed infloop-detecting code to abort() instead
8226         of silently terminating window_loop().
8227
8228 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
8229
8230         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
8231         * editfns.c (make_time): New function.
8232         (Fencode_time): Use it instead of wasteful_word_to_lisp.
8233         * lisp.h (make_time): Prototype and comment it.
8234         * dired.c (wasteful_word_to_lisp): Deprecate.
8235         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8236
8237 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
8238
8239         * fileio.c (auto_save_1): Use current coding system, not
8240         escape-quoted.
8241
8242 2001-11-13  Ben Wing  <ben@xemacs.org>
8243
8244         * window.c:
8245         * window.c (window_truncation_on):
8246         * window.c (syms_of_window):
8247         truncate-partial-width-windows should respect the buffer being
8248         displayed, like other redisplay vars.
8249
8250 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8251
8252         * event-stream.c (Fread_key_sequence): save current buffer.
8253
8254 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8255
8256         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8257
8258 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8259
8260         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8261
8262 2001-10-26  Mike Alexander  <mta@arbortext.com>
8263
8264         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8265
8266 2001-10-25  Andy Piper  <andy@xemacs.org>
8267
8268         * ChangeLog:
8269         * dialog-msw.c (handle_directory_proc): new function.
8270          (handle_directory_dialog_box): new fucntion.
8271          (handle_file_dialog_box): use new directory dialog support.
8272          (mswindows_make_dialog_box_internal): ditto.
8273         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8274         handling.
8275         (mswindows_find_frame): make global.
8276         * fileio.c (Fexpand_file_name): build fix.
8277         * general-slots.h: add Qdirectory.
8278         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8279         handling.
8280         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8281         cygwin not leaving win32 paths unchanged.
8282         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8283         cygwin runtime to do path conversion.
8284         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8285         (syms_of_win32): add new function.
8286         * window.c (window_loop): build fix.
8287
8288 2001-10-15  Andy Piper  <andy@xemacs.org>
8289
8290         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8291
8292 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8293
8294         * XEmacs 21.4.5 "Civil Service" is released.
8295
8296 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8297
8298         * glyphs-x.c: Force buffer-tab highlight update when moving the
8299         buffer, avoiding an ugly black border, used for keyboard focus
8300         indication, on a widget that can never have keyboard focus, the
8301         buffer tab.
8302
8303 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8304
8305         * process-unix.c (unix_open_multicast_group): Remove too much
8306         conversion between host and network byte order.
8307
8308 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8309
8310         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8311         before replacing them.
8312
8313         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8314         operation.
8315
8316         * src/window.c (undedicate_windows): Use it.
8317         * src/window.h: Add prototype.
8318
8319 2001-09-17  Ben Wing  <ben@xemacs.org>
8320
8321         * fileio.c (normalize_filename):
8322         * fileio.c (Fexpand_file_name):
8323         Fix various C++ compile errors in Andy's recent code.
8324         
8325         * callint.c (Fcall_interactively):
8326         * editfns.c (Ftemp_directory):
8327         * editfns.c (Fuser_full_name):
8328         * emacs.c (argmatch):
8329         * lread.c (locate_file_map_suffixes):
8330         * redisplay-x.c (x_ring_bell):
8331         Fix sign-compare warnings.
8332         
8333 2001-09-08  Andy Piper  <andy@xemacs.org>
8334
8335         * fileio.c (normalize_filename): copied from nt.c
8336         * (Ffile_name_directory): enable win32 paths under cygwin.
8337         * (Ffile_name_nondirectory): ditto.
8338         * (directory_file_name): ditto.
8339         * (Fexpand_file_name): ditto.
8340         * (Ffile_truename): ditto.
8341         * (Fsubstitute_in_file_name): ditto.
8342         * (Ffile_name_absolute_p): ditto.
8343         * (Ffile_readable_p): ditto.
8344
8345 2001-09-08  Andy Piper  <andy@xemacs.org>
8346
8347         * device-msw.c (mswindows_finish_init_device): remove dde
8348         initialization.
8349         * device-msw.c (mswindows_init_dde): factor out from
8350         mswindows_finish_init_device()
8351         * device-msw.c (init_mswindows_very_early): new function
8352         initialize but don't enable dde.
8353         * emacs.c (main_1): call init_mswindows_very_early.
8354         * event-msw.c:
8355         * event-msw.c (mswindows_dde_callback): only execute when we are
8356         ready.
8357         * symsinit.h: declare init_mswindows_very_early.
8358
8359 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8360
8361         [sjt: This has been in 21.5 for months with no complaints.]
8362
8363         * console.h (struct console_methods): Added flags member.
8364         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8365         (CONMETH_IMPL_FLAG):
8366         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8367         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8368
8369         * device.c (window_system_pixelated_geometry): Use the above macros.
8370
8371         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8372         implememntation flag.
8373         * device.h (DEVICE_DISPLAY_P): Use it.
8374
8375         * frame.c (delete_frame_internal): Use the above macro.
8376
8377         * redisplay.c (redisplay_device): Use it.
8378         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8379         (redisplay_frame): Ditto.
8380
8381         * device-msw.c (mswindows_device_implementation_flags): Removed.
8382         (msprinter_device_implementation_flags): Removed.
8383         (console_type_create_device_mswindows): Removed references to
8384         implementation_flags methods, set implementation flags here.
8385         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8386
8387         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8388         (console_type_create_device_gtk): Removed method declaration.
8389         Added commented out statement which semantically matches the
8390         commented out statement in the above removed method.
8391
8392 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8393
8394         The attached patch fixes a few warnings. 
8395
8396         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8397         * src/frame-gtk.c: guard against GNOME calls in GTK only
8398         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8399         * src/select-gtk.c: prototype lisp_to_time
8400
8401 2001-06-08  Ben Wing  <ben@xemacs.org>
8402
8403         ------ gc-in-window-procedure fixes ------
8404         
8405         * alloc.c:
8406         * alloc.c (struct post_gc_action):
8407         * alloc.c (register_post_gc_action):
8408         * alloc.c (run_post_gc_actions):
8409         * alloc.c (garbage_collect_1):
8410         Create "post-gc actions", to avoid those dreaded "GC during window
8411         procedure" problems.
8412
8413         * event-msw.c:
8414         Abort, clean and simple, when GC in window procedure.  We want
8415         to flush these puppies out.
8416
8417         * glyphs-msw.c:
8418         * glyphs-msw.c (finalize_destroy_window):
8419         * glyphs-msw.c (mswindows_finalize_image_instance):
8420         Use a post-gc action when destroying subwindows.
8421
8422         * lisp.h:
8423         Declare register_post_gc_action().
8424
8425         * scrollbar-msw.c:
8426         * scrollbar-msw.c (unshow_that_mofo):
8427         Use a post-gc action when unshowing scrollbar windows, if in gc.
8428
8429         * redisplay.c (mark_redisplay):
8430         Add comment about the utter evilness of what's going down here.
8431
8432         ------ cygwin setitimer fixes ------
8433         
8434         * Makefile.in.in (sheap_objs):
8435         * Makefile.in.in (profile_objs):
8436         * Makefile.in.in (objs):
8437         Compile profile.c only when HAVE_SETITIMER.
8438         
8439         * nt.c (mswindows_sigset):
8440         * nt.c (mswindows_sighold):
8441         * nt.c (mswindows_sigrelse):
8442         * nt.c (mswindows_sigpause):
8443         * nt.c (mswindows_raise):
8444         * nt.c (close_file_data):
8445         Style fixes.
8446         
8447         * nt.c:
8448         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8449         
8450         * profile.c:
8451         * profile.c (Fstart_profiling):
8452         * profile.c (Fstop_profiling):
8453         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8454         instead of just plain setitimer().
8455         
8456         * signal.c:
8457         * signal.c (set_one_shot_timer):
8458         * signal.c (alarm):
8459         Define qxe_setitimer() as an encapsulation around setitimer() --
8460         call setitimer() directly unless Cygwin or MS Win, in which case
8461         we use our simulated version in win32.c.
8462         
8463         * systime.h:
8464         * systime.h (struct itimerval):
8465         * systime.h (ITIMER_REAL):
8466         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8467         comment about "qxe" and the policy regarding encapsulation.
8468
8469         * win32.c:
8470         * win32.c (setitimer_helper_proc):
8471         * win32.c (setitimer_helper_period):
8472         * win32.c (setitimer_helper):
8473         * win32.c (mswindows_setitimer):
8474         Move setitimer() emulation here, so Cygwin can use it.
8475         Rename a couple of functions and variables to be longer and more
8476         descriptive.  In setitimer_helper_proc(), send the signal
8477         using either mswindows_raise() or (on Cygwin) kill().  If for
8478         some reason we are still getting lockups, we'll change the kill()
8479         to directly invoke the signal handlers.
8480
8481         ------ windows shell fixes ------
8482         
8483         * callproc.c:
8484         * ntproc.c:
8485         Comments about how these two files must die.
8486
8487         * callproc.c (init_callproc):
8488         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8489         not just COMSPEC. (more correct and closer to FSF.) Don't
8490         force a value for SHELL into the environment. (Comments added
8491         to explain why not.)
8492         
8493         * nt.c (init_user_info):
8494         Don't shove a fabricated SHELL into the environment.  See above.
8495
8496 2001-06-01  Ben Wing  <ben@xemacs.org>
8497
8498         * Makefile.in.in (ldflags):
8499         eliminate that pesky "defaulting to 00401000" warning.
8500         * nt.h:
8501         eliminate warnings.
8502
8503 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8504
8505         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8506         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8507
8508 2001-04-24  Jerry James <james@xemacs.org>
8509
8510         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8511         correct order.
8512
8513 2001-06-01  Ben Wing  <ben@xemacs.org>
8514
8515         * event-msw.c (debug_mswin_messages):
8516         conditionalize the messages that were causing compile errors.
8517         (if only macros could generate #ifdef statements ...)
8518
8519 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8520
8521         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8522
8523 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8524
8525         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8526
8527 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8528
8529         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8530         * process-unix.c (unix_canonicalize_host_name):
8531         sysdep.c (init_system_name):
8532         Use it to conditionally support IPv6 canonicalization.
8533
8534 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8535
8536         * event-msw.c:
8537         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8538
8539 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8540
8541         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8542         attempt is made to scroll when no scroll bar is available.
8543
8544 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8545
8546         * input-method-motif.c (XIM_delete_frame): New callback.
8547         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8548         got deleted from 21.4.3.)
8549
8550 2001-06-01  Ben Wing  <ben@xemacs.org>
8551
8552         * nt.c (mswindows_utime):
8553         * nt.c (close_file_data):
8554         fix off-by-one-indirection error.
8555
8556 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8557
8558         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8559         because set_file_times() now takes Lisp_Object path, instead of
8560         char*.
8561         * nt.c: Include buffer.h.
8562         * nt.c (convert_from_time_t): New.
8563         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8564         not set mtime correctly.
8565         * nt.h: Declare mswindows_utime().
8566         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8567         path, instead of char*.
8568         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8569
8570 2001-05-30  Ben Wing  <ben@xemacs.org>
8571
8572         For 21.4:
8573
8574         (Stephen, just take all event-msw.c patches.  This includes
8575         the "iconify" fix below.)
8576
8577         * event-msw.c:
8578         * event-msw.c (mswindows_dequeue_dispatch_event):
8579         * event-msw.c (assert):
8580         * event-msw.c (emacs_mswindows_quit_p):
8581         * event-msw.c (debug_mswin_messages):
8582         * event-msw.c (debug_output_mswin_message):
8583         * event-msw.c (vars_of_event_mswindows):
8584         Fix yet more problems with C-g handling.
8585         Implement debug-mswindows-events.
8586         
8587 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8588
8589         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8590         
8591 2001-05-23  Ben Wing  <ben@xemacs.org>
8592
8593         * event-msw.c (winsock_writer):
8594         * event-msw.c (winsock_closer):
8595         prior kludgy code was clobbering the buffer, thinking it was
8596         "unused" space to store an unneeded return value; instead, use
8597         the variable we've already got staring us in the face.
8598
8599 2001-05-17  Andy Piper  <andy@xemacs.org>
8600
8601         * sysfile.h: don't assume that file attributes are boolean
8602
8603 2001-05-23  Ben Wing  <ben@xemacs.org>
8604
8605         * device-msw.c (msprinter_init_device):
8606         signal an error rather than crash with an unavailable network
8607         printer (from Mike Alexander).
8608         
8609         * event-msw.c:
8610         * event-msw.c (struct winsock_stream):
8611         * event-msw.c (winsock_writer):
8612         * event-msw.c (winsock_closer):
8613         * event-msw.c (make_winsock_stream_1):
8614         cleanup headers.  fix (hopefully) an error with data corruption
8615         when sending to a network connection.
8616
8617         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8618         to handle the ~user prefix by (a) always assuming we're referencing
8619         ourselves and not even verifying the user -- hence any file with
8620         a tilde as its first char is invalid! (b) if there wasn't a slash
8621         following the filename, the pointer was set *past* the end of
8622         file and we started reading from uninitialized memory.  Now we
8623         simply treat these as files, always.
8624
8625         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8626         
8627 2001-05-19  Ben Wing  <ben@xemacs.org>
8628
8629         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8630
8631         * process-nt.c:
8632         * process-nt.c (vars_of_process_nt):
8633         remove unused mswindows-quote-process-args.  rec for 21.4.
8634         
8635 2001-05-12  Ben Wing  <ben@xemacs.org>
8636
8637         * event-msw.c (mswindows_dde_callback):
8638         * event-msw.c (mswindows_wnd_proc):
8639         eliminate cygwin warnings.
8640
8641 2001-05-06  Ben Wing  <ben@xemacs.org>
8642
8643         * console-msw.h:
8644         * device-msw.c:
8645         * device-msw.c (print_dialog_worker):
8646         * device-msw.c (mswindows_handle_print_dialog_box):
8647         * device-msw.c (syms_of_device_mswindows):
8648         * dialog-msw.c (mswindows_make_dialog_box_internal):
8649         * general-slots.h:
8650         implement printing the selection when it's selected.
8651
8652 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8653
8654         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8655
8656 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8657
8658         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8659         EMACS_INT is signed.
8660
8661 2001-04-15  Michael Lausch  <mla@1012surf.net>
8662
8663         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8664         gtk_widget_request_size() to give scrollbar >0 width for
8665         GTK >1.2.8.
8666
8667 2001-05-30  William M. Perry  <wmperry@gnu.org>
8668
8669         * event-gtk.c: Check for buttons as modifier keys.
8670
8671 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8672
8673         * s\mingw32.h:
8674         Properly find MinGW's <process.h> inside Cygwin's restructured
8675         include directories.  Don't try to include <cygwin/version.h>
8676         since we are dropping support for MinGW in versions of Cygwin
8677         earlier than b21.
8678         * nt.c:
8679         Drop support for MinGW in versions of Cygwin before b21.
8680         * sysdep.c:
8681         Properly find MinGW's <process.h> inside Cygwin's restructured
8682         include directories.
8683         * syswindows.h:
8684         Drop support for MinGW in versions of Cygwin before b21.
8685         * unexcw.c:
8686         Even though a.out.h is no longer detected by configure, allow
8687         MinGW to use it until we figure out how to do the job with Win32.
8688
8689 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8690
8691         * syntax.c (find_start_of_comment):
8692         Fix `unbalanced parentheses' bug when dealing with mixed comment
8693         styles in c++/java/etc. mode
8694
8695 2001-05-29  Mike Alexander  <mta@arbortext.com>
8696
8697         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8698         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8699
8700 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8701
8702         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8703
8704 2001-03-31  Mike Sperber <mike@xemacs.org>
8705
8706         * search.c (Freplace_match): Support FSF-style specification of
8707         match subexpression when applied to a buffer.
8708
8709 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8710
8711         * event-stream.c (is_scrollbar_event): add missing semicolon
8712
8713 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8714
8715         * Makefile.in.in: Use TAR macro instead of hardcoding
8716           tar.  Allows use of GNU tar instead of system tar
8717
8718 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8719
8720         * event-stream.c (is_scrollbar_event): add missing semicolon
8721
8722 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8723
8724         * XEmacs 21.4.3 "Academic Rigor" is released.
8725
8726 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8727
8728         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8729
8730 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8731
8732         * buffer.c (Vcase_fold_search): Remove obsolete
8733           comment about non ASCII case-fold-search.  This
8734           bug has been fixed by case-table changes.
8735
8736 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8737
8738         * event-msw.c: Restore include of events-mod.h.
8739
8740 2001-04-22   zhaoway  <zw@debian.org>
8741
8742         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8743         !HAVE_SCROLLBARS.
8744
8745 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8746
8747         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8748
8749 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8750
8751         * mule-charset.c (Fmake_charset): Add missing else.
8752
8753 2001-04-23  Ben Wing  <ben@xemacs.org>
8754
8755         * event-msw.c (FAKE_MOD_QUIT):
8756         * event-msw.c (mswindows_dequeue_dispatch_event):
8757         * event-msw.c (mswindows_wnd_proc):
8758         * event-msw.c (emacs_mswindows_quit_p):
8759         Get critical quit working.
8760
8761 2001-05-05  Ben Wing  <ben@xemacs.org>
8762
8763         * console-msw.h:
8764         * device-msw.c:
8765         * device-msw.c (mswindows_get_default_margin):
8766         * frame-msw.c (mswindows_size_frame_internal):
8767         * frame-msw.c (msprinter_init_frame_1):
8768         * frame-msw.c (vars_of_frame_mswindows):
8769         Change top/bottom margin defaults to 0.5 inches.
8770
8771 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8772
8773         Fix link error with gcc 3.0 on Linux.
8774         * terminfo.c (UP): Remove.
8775         * terminfo.c (BC): Remove.
8776         * terminfo.c (PC): Remove.
8777         They weren't used, and in any case, these symbols should be
8778         defined in the *library*.
8779
8780 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8781
8782         * s/aix4.h: Fix crash with xlc -O3.
8783         Improve comment explaining how -O3 works.
8784
8785 2001-04-15  Ben Wing  <ben@xemacs.org>
8786
8787         * event-stream.c:
8788         * event-stream.c (Fnext_event):
8789         * event-stream.c (is_scrollbar_event):
8790         * event-stream.c (execute_command_event):
8791         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8792         crash' problem.  His fix introduces other problems.  We filter
8793         out scrollbar events specifically, making them somewhat invisible
8794         to command-building, and not appearing in `this-command-keys'.
8795         More work is still needed (see comments in event-stream.c), but
8796         this fixes all the major problems.
8797
8798 2001-04-20  Ben Wing  <ben@xemacs.org>
8799
8800         * .cvsignore: Added stuff for Windows.
8801
8802 2001-04-28  Ben Wing  <ben@xemacs.org>
8803
8804         * buffer.c (Ferase_buffer):
8805         * editfns.c (buffer_insert1):
8806         * editfns.c (Finsert_before_markers):
8807         * editfns.c (Finsert_string):
8808         * editfns.c (Finsert_char):
8809         * editfns.c (Fdelete_region):
8810         * editfns.c (Fwiden):
8811         * editfns.c (Fnarrow_to_region):
8812         remove bogus lines setting zmacs_region_stays to 0.
8813         
8814 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8815
8816         * process-unix.c (unix_open_network_stream): If connect() fails
8817         invalidate file descriptor after closing it.
8818
8819 2001-03-08  Mike Alexander  <mta@arbortext.com>
8820
8821         * event-msw.c (mswindows_need_event_in_modal_loop):
8822         Don't dispatch a message if we didn't get one.
8823         (mswindows_need_event):
8824         Terminate the correct process when one exits instead of the first
8825         one on Vprocess_list and look for process termination when in
8826         mswindows_protect_modal_loop.
8827
8828 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8829
8830         * XEmacs 21.4.1 "Copyleft" is released.
8831
8832 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8833
8834         * input-method-motif.c (XIM_delete_frame): New callback.
8835         (XIM_init_frame): Register it.
8836
8837 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8838
8839         * XEmacs 21.4.0 "Solid Vapor" is released.
8840
8841 2001-04-15  Ben Wing  <ben@xemacs.org>
8842
8843         * cmdloop.c (call_command_loop):
8844         Fix braino in bit-rotting code.
8845         
8846 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8847
8848         * extents.c (Fset_extent_endpoints): Force creation of extent info
8849         in buffer_or_string.
8850
8851         * extents.c (process_extents_for_insertion_mapper): Correctly
8852         check for open-open zero-length extents.
8853
8854 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8855
8856         * lisp.h: New typedefs Memory_count, Element_count.
8857         * regex.c:
8858         * regex.h:
8859         Sign-compare warning elimination: several unsigned -> signed.
8860         Based on work by Ben Wing <ben@xemacs.org>.
8861
8862 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8863
8864         * XEmacs 21.2.47 "Zephir" is released.
8865
8866 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8867
8868         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8869
8870 2001-04-03  Mike Sperber <mike@xemacs.org>
8871
8872         * search.c: Revert previous patch due because of release.
8873
8874 2001-03-30  Ben Wing  <ben@xemacs.org>
8875
8876         * s\cygwin32.h:
8877         Add missing killpg prototype.
8878
8879         * elhash.c:
8880         Add a comment about fixing problems when a new entry is added
8881         while mapping.
8882
8883         * frame-msw.c (mswindows_init_frame_1):
8884         Fix compile warnings.
8885
8886         * menubar.c (vars_of_menubar):
8887         Provide `menu-accelerator-support' to indicate that we properly
8888         support %_ in menu specifications, so that package code can
8889         conditionalize on this (and remove %_ from menu specifications
8890         on older versions).
8891
8892         * event-msw.c:
8893         * scrollbar-msw.c:
8894         * scrollbar-msw.c (can_scroll):
8895         * scrollbar-msw.h:
8896         Fix handling of mouse wheel under Windows to follow standards --
8897         now scrolls window under pointer, not selected window.
8898
8899 2001-03-31  Mike Sperber <mike@xemacs.org>
8900
8901         * search.c (Freplace_match): Support FSF-style specification of
8902         match subexpression when applied to a buffer.
8903
8904 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8905
8906         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8907         function to modify KEYMAP, so map over a copy of the hash table.
8908
8909 2001-03-21  Martin Buchholz <martin@xemacs.org>
8910
8911         * XEmacs 21.2.46 "Urania" is released.
8912
8913 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8914
8915         * realpath.c (xrealpath): Make file-truename work with symlinks to
8916         /cygdrive paths on cygwin. Always lowercase drive-letters on
8917         native windows.
8918         (cygwin_readlink): Don't try to find canonical filename unless
8919         file exists.
8920
8921 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8922
8923         * ChangeLog: Log GTK merge.
8924
8925         * dumper.c:
8926         * select-x.c:
8927         * specifier.c:
8928         * symeval.h:
8929         Revert gratuitous whitespace changes from GTK merge.
8930
8931         * emacs.c: Document end of complex #ifdef @ l. 1495.
8932
8933
8934 2001-03-12  Andy Piper  <andy@xemacs.org>
8935
8936         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8937         have to do likewise.
8938
8939 2001-03-12  Andy Piper  <andy@xemacs.org>
8940
8941         * sysdep.c: we only support mingw now.
8942
8943 2001-03-09  Andy Piper  <andy@xemacs.org>
8944
8945         * unexcw.c (copy_executable_and_dump_data_section): making approx
8946         overrun a warning only.
8947
8948 2001-03-10  William M. Perry  <wmperry@aventail.com>
8949
8950         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8951         satisfy Stephen's identical-after-cpp plea.
8952
8953 2001-03-02  Ben Wing  <ben@xemacs.org>
8954
8955         * cmds.c:
8956         * cmds.c (Fforward_char):
8957         * syntax.c:
8958         * window.c:
8959
8960         Augment documentation of the most common motion commands to make
8961         note of the shifted-motion support.
8962         
8963 2001-03-02  Ben Wing  <ben@xemacs.org>
8964
8965         * nt.c (mswindows_fstat):
8966         * nt.c (mswindows_stat):
8967         * search.c (boyer_moore):
8968         Fix compile warnings under Windows.
8969         
8970         * sysdep.c (sys_readdir):
8971         Fix buggy filename-conversion code under Mule.
8972
8973 2001-03-09  William M. Perry  <wmperry@aventail.com>
8974
8975         * Makefile.in.in:
8976         * config.h.in:
8977         * console.c:
8978         * console.h:
8979         * device.c:
8980         * device.h:
8981         * dragdrop.c:
8982         * emacs.c:
8983         * event-stream.c:
8984         * events.c:
8985         * events.h:
8986         * faces.c:
8987         * frame.h:
8988         * general-slots.h:
8989         * glyphs.c:
8990         * gutter.c:
8991         * inline.c:
8992         * lisp.h:
8993         * lrecord.h:
8994         * make-src-depend:
8995         * redisplay-output.c:
8996         * redisplay.c:
8997         * symsinit.h:
8998         * sysfile.h:
8999         * toolbar.c:
9000         * window.c:
9001         The Great GTK Merge.
9002
9003         * ChangeLog.GTK:
9004         * console-gtk.c:
9005         * console-gtk.h:
9006         * device-gtk.c:
9007         * emacs-marshals.c:
9008         * emacs-widget-accessors.c:
9009         * event-gtk.c:
9010         * frame-gtk.c:
9011         * gccache-gtk.c:
9012         * gccache-gtk.h:
9013         * glade.c:
9014         * glyphs-gtk.c:
9015         * glyphs-gtk.h:
9016         * gtk-glue.c:
9017         * gtk-xemacs.c:
9018         * gtk-xemacs.h:
9019         * gui-gtk.c:
9020         * gui-gtk.h:
9021         * menubar-gtk.c:
9022         * native-gtk-toolbar.c:
9023         * objects-gtk.c:
9024         * objects-gtk.h:
9025         * redisplay-gtk.c:
9026         * scrollbar-gtk.c:
9027         * scrollbar-gtk.h:
9028         * select-gtk.c:
9029         * toolbar-gtk.c:
9030         * ui-byhand.c:
9031         * ui-gtk.c:
9032         * ui-gtk.h:
9033         The Great GTK Merge: new files.
9034
9035 2001-02-26  Ben Wing  <ben@xemacs.org>
9036
9037         Reapplied Lstream change.
9038
9039 2001-02-26  Ben Wing  <ben@xemacs.org>
9040
9041         Undid the last change, since it is more controversial than I
9042         thought.  It should be back in at some point soon.
9043         
9044 2001-02-25  Ben Wing  <ben@xemacs.org>
9045
9046         * buffer.c:
9047         * callproc.c (Fold_call_process_internal):
9048         * event-msw.c (ntpipe_slurp_reader):
9049         * event-msw.c (ntpipe_shove_writer):
9050         * event-msw.c (winsock_reader):
9051         * event-msw.c (winsock_writer):
9052         * file-coding.c:
9053         * file-coding.c (detect_eol_type):
9054         * file-coding.c (detect_coding_type):
9055         * file-coding.c (determine_real_coding_system):
9056         * file-coding.c (Fdetect_coding_region):
9057         * file-coding.c (decoding_reader):
9058         * file-coding.c (decoding_writer):
9059         * file-coding.c (mule_decode):
9060         * file-coding.c (Fdecode_coding_region):
9061         * file-coding.c (encoding_reader):
9062         * file-coding.c (encoding_writer):
9063         * file-coding.c (mule_encode):
9064         * file-coding.c (Fencode_coding_region):
9065         * file-coding.c (detect_coding_sjis):
9066         * file-coding.c (decode_coding_sjis):
9067         * file-coding.c (encode_coding_sjis):
9068         * file-coding.c (detect_coding_big5):
9069         * file-coding.c (decode_coding_big5):
9070         * file-coding.c (encode_coding_big5):
9071         * file-coding.c (detect_coding_ucs4):
9072         * file-coding.c (decode_coding_ucs4):
9073         * file-coding.c (encode_coding_ucs4):
9074         * file-coding.c (detect_coding_utf8):
9075         * file-coding.c (decode_coding_utf8):
9076         * file-coding.c (encode_coding_utf8):
9077         * file-coding.c (detect_coding_iso2022):
9078         * file-coding.c (decode_coding_iso2022):
9079         * file-coding.c (encode_coding_iso2022):
9080         * file-coding.c (decode_coding_no_conversion):
9081         * file-coding.c (encode_coding_no_conversion):
9082         * glyphs-x.c (write_lisp_string_to_temp_file):
9083         * gpmevent.c (tty_get_foreign_selection):
9084         * lisp.h:
9085         * lstream.c:
9086         * lstream.c (Lstream_flush_out):
9087         * lstream.c (Lstream_adding):
9088         * lstream.c (Lstream_write_1):
9089         * lstream.c (Lstream_write):
9090         * lstream.c (Lstream_raw_read):
9091         * lstream.c (Lstream_read_more):
9092         * lstream.c (Lstream_read):
9093         * lstream.c (Lstream_unread):
9094         * lstream.c (Lstream_fputc):
9095         * lstream.c (stdio_reader):
9096         * lstream.c (stdio_writer):
9097         * lstream.c (filedesc_reader):
9098         * lstream.c (filedesc_writer):
9099         * lstream.c (lisp_string_reader):
9100         * lstream.c (struct fixed_buffer_stream):
9101         * lstream.c (make_fixed_buffer_input_stream):
9102         * lstream.c (make_fixed_buffer_output_stream):
9103         * lstream.c (fixed_buffer_reader):
9104         * lstream.c (fixed_buffer_writer):
9105         * lstream.c (struct resizing_buffer_stream):
9106         * lstream.c (resizing_buffer_writer):
9107         * lstream.c (dynarr_writer):
9108         * lstream.c (lisp_buffer_reader):
9109         * lstream.c (lisp_buffer_writer):
9110         * lstream.h:
9111         * lstream.h (lstream_implementation):
9112         * lstream.h (struct lstream):
9113         * md5.c (Fmd5):
9114         * process-nt.c (nt_send_process):
9115         * process-unix.c (unix_send_process):
9116         
9117         Correct Lstream lossage due to mixing of signed and unsigned
9118         quantities.  All Lstream uses of size_t and ssize_t are now a
9119         single signed data type Lstream_data_count.  This fixes problems
9120         under Windows with sending large quantities of data to a process,
9121         and may well fix other subtle bugs.
9122
9123 2001-02-23  Martin Buchholz <martin@xemacs.org>
9124
9125         * XEmacs 21.2.45 "Thelxepeia" is released.
9126
9127 2001-02-21  Martin Buchholz  <martin@xemacs.org>
9128
9129         * lisp-union.h (XSETINT): 
9130         (XSETCHAR):
9131         (XSETOBJ): 
9132         Reverse previous change of 2001-02-06.
9133
9134 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
9135
9136         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
9137         buffers.
9138         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9139         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
9140         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
9141         * regex.c (POS_AS_IN_BUFFER): removed
9142         * regex.c (re_search_2):
9143         * regex.c (re_match_2):
9144         Don't use an offset of 1 when calculating buffer positions, since
9145         `BI_BUF_BEGV' does it already.
9146
9147 2001-02-18  Wim Dumon  <wim@easics.be>
9148
9149         * insdel.c (prepare_to_modify_buffer): Also check for
9150         supersession when clash-detection is enabled. 
9151
9152 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
9153
9154         * regex.c (re_match_2_internal):
9155         Convert temp characters from 'const unsigned char' to 're_char'.
9156         Fix crashing bug with extended characters under mule.
9157         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
9158         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
9159         font-lock, pdump, and new syntax-table code.
9160         * syntax.c (find_start_of_comment):
9161         (find_end_of_comment):
9162         (forward-comment):
9163         Fix crashing bugs involving moving beyond end of buffer.
9164         * syntax.c (find_start_of_comment):
9165         Fixed logic to allow proper detection of cases where the same
9166         character is used to end both a two-char comment start and a
9167         two-char comment end sequence. Fixes `(forward-comment -1)'.
9168         * syntax.c (find_start_of_comment):
9169         Return position just past last comment-end character for all cases
9170         (previously was only done for two-char comment-end sequences).
9171         * syntax.c (forward-comment):
9172         Take value returned from `find_end_of_comment', rather than
9173         incrementing it.
9174         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9175         Properly deal with BUFFERP (syntax_cache.object)
9176
9177 2001-02-17  Martin Buchholz  <martin@xemacs.org>
9178
9179         * alloc.c (Fgarbage_collect): 
9180         * alloc.c (make_bit_vector_from_byte_vector):
9181         -Wsign-compare-correctness.
9182
9183 2001-02-16  Martin Buchholz  <martin@xemacs.org>
9184
9185         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
9186         (XSETCHAR): Likewise.
9187         (XSETOBJ): Likewise.
9188
9189 2001-02-15  Martin Buchholz  <martin@xemacs.org>
9190
9191         * mule-canna.c (canna-func-delete_previous): 
9192         Rename to canna-func-delete-previous.
9193
9194 2001-02-14  Martin Buchholz  <martin@xemacs.org>
9195
9196         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
9197
9198 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
9199
9200         * font-lock.c (find_context): Fix C++ compile errors introduced by
9201         recent patch
9202
9203 2001-02-13  Martin Buchholz  <martin@xemacs.org>
9204
9205         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
9206         pragma, but earlier ones barf on the same pragma.
9207
9208 2001-02-06  Mike Sperber <mike@xemacs.org>
9209
9210         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
9211         `configure-mule-lisp-directory'.
9212
9213 2001-02-12  Martin Buchholz  <martin@xemacs.org>
9214
9215         Make sure dump-id.c is compiled in the same way as other .c's.
9216         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
9217         * dump-id.h: Remove.
9218         * emacs.c: Move dump-id.h into dumper.h.
9219         * dumper.h: Move dump-id.h into dumper.h.
9220         * Makefile.in.in:
9221         Use standard .c.o rule for building dump-id.o.
9222         Remove preprocessor flags from link command.
9223         Add dump-id.o to ${otherobjs} if PDUMP.
9224
9225 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
9226
9227         Port FSF 20.7 syntax table improvements.
9228         * syntax.c.
9229         * syntax.h.
9230
9231         Fixups for new syntax table stuff.
9232         * dired.c: Include syntax.c.
9233         (Fdirectory_files): Initialize regex_match_object and
9234         regex_emacs_buffer.
9235         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9236         and Fget_char_property.
9237
9238         Use ported FSF 20.7 syntax table improvements.
9239         * font-lock.c.
9240         * regex.c.
9241         * search.c.
9242         
9243 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9244
9245         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9246         Unixware's enum boolean from sys/types.h.
9247
9248 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9249
9250         Fix support for building with latest Purify.
9251         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9252         (PURIFY_FLAGS): Likewise.
9253
9254 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9255
9256         * fileio.c (lisp_string_set_file_times): New.
9257         * fileio.c (Fcopy_file): Use it.
9258         Fixes bug:
9259         (copy-file filename non-ascii-filename t t)
9260         ==> No such file or directory, non-ascii-filename
9261
9262 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9263
9264         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9265         USHRT_MAX seems clearer than ~0 anyways.
9266
9267 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9268
9269         dumper improvements.  Inspired by Olivier.
9270         * dumper.c (pdump_max_align): New.
9271         * dumper.c (pdump_add_entry): Use pdump_max_align.
9272         * dumper.c (pdump_get_entry_list): Likewise.
9273         * dumper.c (pdump_scan_by_alignment): Likewise.
9274         Don't iterate through unnecessary alignments.
9275         * dumper.c (pdump_file_get): No need to align result of malloc().
9276         * dumper.c (pdump_mallocadr): Remove.  
9277         The result of malloc() is guaranteed to be maximally aligned.
9278         * dumper.c: s/elmt/elt/g;
9279         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9280         * dumper.c (pdump_alert_undump_object): Likewise.
9281         * dumper.c (pdump_align_table): 
9282         Don't support alignments > 64.
9283         Store ALIGNOF's, not shift counts, in table.
9284
9285 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9286
9287         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9288         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9289         * systime.h: Use HAVE_UTIME.
9290         * sysdep.c (struct utimbuf): Remove.
9291         * sysdep.c (set_file_times): Prefer utime() to utimes().
9292         * config.h.in (HAVE_UTIME): New.
9293         * config.h.in (HAVE_UTIME_H): Remove.
9294         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9295
9296 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9297
9298         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9299
9300 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9301
9302         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9303
9304 2001-02-08  Martin Buchholz <martin@xemacs.org>
9305
9306         * XEmacs 21.2.44 "Thalia" is released.
9307
9308 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9309
9310         Fixes crashes in kill-emacs on some systems.
9311         * process-unix.c (unix_kill_child_process):
9312         It's OK for kill() to fail with ESRCH.
9313
9314 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9315
9316         Contortions to make .gdbinit tricks work on most systems.
9317         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9318         * alloc.c (dbg_valmask): Make non-const.
9319         * alloc.c (dbg_typemask): Make non-const.
9320         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9321         * alloc.c (dbg_valbits): Make non-const.
9322         * alloc.c (dbg_gctypebits): Make non-const.
9323         * .gdbinit (decode_object): Make it work with AIX cc.
9324
9325 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9326
9327         * elhash.c (make_general_lisp_hash_table):
9328         Use simpler and more efficient calloc to clear entries.
9329
9330 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9331
9332         * window.c (window_scroll): Work around an AIX C compiler bug.
9333         Fixes 'scroll-up' does nothing problem with xlC.
9334
9335 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9336
9337         * .gdbinit: Remove obsolete comment.
9338
9339 2001-01-31  Mike Alexander  <mta@arbortext.com>
9340
9341         * select.c (Fown_selection_internal): Set owned_p for device
9342         method correctly.
9343
9344 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9345
9346         Port to g++ 2.97.
9347         "not" cannot be used as a macro name as it is an operator in C++
9348         * config.h.in: Stop #defining `not'.
9349         * chartab.c (check_category_char): not ==> not_p
9350         * chartab.h: Likewise.
9351         * regex.c (re_match_2_internal): Likewise.
9352
9353 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9354
9355         * lisp-disunion.h: Fix up comments.
9356
9357 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9358
9359         * keymap.c (define_key_check_and_coerce_keysym):
9360         (syms_of_keymap):
9361         Support mouse-6 and mouse-7 bindings in the obvious way.
9362
9363 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9364
9365         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9366
9367 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9368
9369         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9370         Previous patch missed DEFVAR_INT_MAGIC.
9371         Make sure future DEFVAR_foo use correct types.
9372         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9373         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9374         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9375         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9376         * (DEFVAR_INT): Likewise.
9377         * redisplay.c (vertical_clip): Should be of type Fixnum.
9378         * redisplay.c (horizontal_clip): Likewise.
9379         * lisp.h (dump_add_opaque_int): New.
9380         (dump_add_opaque_fixnum): New.
9381
9382 2001-01-29  Andy Piper  <andy@xemacs.org>
9383
9384         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9385         since they can be eval'ed
9386
9387 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9388
9389         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9390         Oops, XEmacs redefines `class'.  Use `typename' instead.
9391
9392 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9393
9394         * dumper.c: Fix C++ compile errors.
9395
9396 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9397
9398         * tparam.c: Use correct prototypes.
9399
9400 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9401
9402         * sysproc.h: #include util.h for NetBSD's openpty.
9403
9404 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9405
9406         More 64-bit correctness.
9407         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9408         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9409         Fix up comments.
9410         This finally finishes the 64-bit SGI port.
9411         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9412         * symbols.c: Fix up comments and type casts.
9413         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9414         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9415         * symeval.h (Fixnum): New type.
9416         * symeval.h (symbol_value_type): Fix up comment.
9417
9418         * commands.h:
9419         * nt.c:
9420         * emacs.c:
9421         * data.c:
9422         * redisplay.c:
9423         * abbrev.c:
9424         * dired-msw.c:
9425         * event-Xt.c:
9426         * eldap.c:
9427         * window.c:
9428         * sound.c:
9429         * event-stream.c:
9430         * eval.c:
9431         * buffer.c:
9432         * mule-canna.c: A million DEFVAR_INTs here...
9433         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9434         * extents.c:
9435         * cmdloop.c:
9436         * lisp.h:
9437         * select-x.c:
9438         * console-x.h:
9439         * event-msw.c:
9440         * mule-wnnfns.c:
9441         * hpplay.c:
9442         * ralloc.c:
9443         * alloc.c:
9444         * keymap.c:
9445         * profile.c:
9446         s/int/Fixnum/g in DEFVAR_INT declarations.
9447
9448 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9449
9450         Port pdump to SGI alignment-sensitive environment.
9451         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9452         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9453         properly aligned.
9454         Define and use aligned reading and writing macros.
9455         Use buffered stdio instead of posix i/o for faster dumping.
9456         Eliminate kludgy 256 byte space for header.
9457         Read and write from dump file using structs for alignment safety.
9458         * dumper.c (pdump_align_stream): New.
9459         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9460         * dumper.c (PDUMP_READ_ALIGNED): New.
9461         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9462         * dumper.c (pdump_static_Lisp_Object): New struct.
9463         * dumper.c (pdump_static_pointer): New struct.
9464         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9465         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9466         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9467         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9468
9469         * dumper.c (pdump_backtrace):
9470         * dumper.c (pdump_get_indirect_count):
9471         * dumper.c (pdump_register_object):
9472         * dumper.c (pdump_register_struct):
9473         * dumper.c (pdump_reloc_one):
9474         * dumper.c (pdump_scan_by_alignment):
9475         * dumper.c (pdump_dump_from_root_struct_ptrs):
9476         * dumper.c (pdump_dump_opaques):
9477         * dumper.c (pdump_dump_rtables):
9478         * dumper.c (pdump_dump_from_root_objects):
9479         * dumper.c (pdump):
9480         * dumper.c (pdump_load_finish):
9481         Use aligned reading and writing.
9482
9483         * dumper.c (pdump_free): Make static.
9484         * dumper.c (pdump_hFile): Likewise.
9485         * dumper.c (pdump_hMap): Likewise.
9486
9487 2001-01-26  Martin Buchholz <martin@xemacs.org>
9488
9489         * XEmacs 21.2.43 "Terspichore" is released.
9490
9491 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9492
9493         Type fiddling for window_config.saved_windows_count
9494         * window.c (struct window_config): 
9495         Make saved_windows_count member unsigned.
9496         * window.c (sizeof_window_config_for_n_windows): 
9497         Make parameter unsigned.
9498         * window.c (mark_window_config):
9499         * window.c (window_config_equal):
9500         * window.c (free_window_configuration):
9501         * window.c (Fset_window_configuration):
9502         * window.c (count_windows):
9503         * window.c (Fcurrent_window_configuration):
9504         * window.c (reinit_vars_of_window):
9505         Update all callers and users.
9506
9507 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9508
9509         Alignment correctness for flexible arrays.
9510         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9511         Make alignment-correct. Add interesting comments.
9512         * alloc.c (size_vector):
9513         * alloc.c (make_vector_internal):
9514         * alloc.c (make_bit_vector_internal):
9515         * alloc.c (sweep_bit_vectors_1):
9516         * fns.c (size_bit_vector):
9517         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9518         * window.c (sizeof_window_config_for_n_windows): 
9519         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9520
9521 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9522
9523         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9524
9525 2001-01-23  Andy Piper  <andy@xemacs.org>
9526
9527         * select.c (Fown_selection_internal): pass owned_p
9528
9529         * select-msw.c (mswindows_own_selection): New Signature.
9530
9531         * console.h (struct console_methods): add owned_p to
9532         _own_selection.
9533
9534         * select-x.c (x_own_selection): pass owned_p
9535         (hack_motif_clipboard_selection): use owned_p
9536         (vars_of_select_x): new variable -
9537         x_selection_strict_motif_ownership.
9538
9539 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9540
9541         * specifier.h (specifier_data_offset): Remove pointless parens.
9542         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9543
9544 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9545
9546         Make Lisp_Object sizeof methods be alignment-correct.
9547         pdump must restore objects to the same alignment as the C compiler
9548         assumes.  It really matters on SGIs.
9549         * lstream.c (aligned_sizeof_lstream): New.
9550         (sizeof_lstream): Use aligned_sizeof_lstream.
9551         (Lstream_new): Likewise.
9552         * opaque.c (aligned_sizeof_opaque): New.
9553         (sizeof_opaque): Use aligned_sizeof_opaque.
9554         (make_opaque): Likewise.
9555         * specifier.c (aligned_sizeof_specifier): New.
9556         (sizeof_specifier): Use aligned_sizeof_specifier.
9557         (make_specifier_internal): Likewise.
9558
9559 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9560
9561         * lstream.h (struct lstream): Use max_align_t for trailing data.
9562         * specifier.h (struct Lisp_Specifier): Likewise.
9563
9564 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9565
9566         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9567         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9568         (CCL_SUSPEND): Likewise.
9569         (CCL_INVALID_CMD): Likewise.
9570         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9571         (ccl_driver): Likewise.
9572         (CCL_WRITE_CHAR): Macro hygiene.
9573         (CCL_WRITE_STRING): Macro hygiene.
9574
9575 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9576
9577         Port "portable" dumper to SunOS 4 and HP-UX.
9578         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9579         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9580         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9581
9582 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9583
9584         * lisp.h (ALIGNOF): A better definition for C++.
9585
9586 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9587
9588         Macro hygiene.
9589         Fix printf warnings: int format, long int arg.
9590         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9591         (PUSH_FAILURE_POINT): Use correct printf formats.
9592         (POP_FAILURE_POINT): Use correct printf formats.  
9593         Use do {...} while (0)
9594
9595 2001-01-20  Martin Buchholz <martin@xemacs.org>
9596
9597         * XEmacs 21.2.42 "Poseidon" is released.
9598
9599 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9600
9601         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9602
9603 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9604
9605         De-kludgify FIXED_TYPE free list frobbing.
9606         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9607         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9608         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9609         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9610         * alloc.c (LRECORD_FREE_P): New.
9611         * alloc.c (MARK_LRECORD_AS_FREE): New.
9612         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9613         * alloc.c (STRUCT_FREE_P): Deleted.
9614         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9615         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9616         * alloc.c (STRING_CHARS_FREE_P): New.
9617         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9618         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9619         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9620         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9621         * alloc.c (resize_string): Use new definitions.
9622         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9623         * alloc.c (verify_string_chars_integrity): Use new definitions.
9624         * alloc.c (compact_string_chars): Use new definitions.
9625         * alloc.c: Update monster comments.
9626         * lrecord.h (lrecord_type): Add some new lrecord types for
9627         alloc.c's use.
9628
9629 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9630
9631         Improve alignment hackery.
9632         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9633         (max_align_t): Moved from opaque.h - general purpose.
9634         (ALIGN_PTR): Use size_t, not long.
9635         * opaque.h (max_align_t): Move to lisp.h.
9636
9637 2001-01-18  Norbert Koch  <nk@LF.net>
9638
9639         * gui.h: Fix and add prototypes to fix build problems.
9640
9641 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9642
9643         temacs is going away, so `dump-temacs' is now a bad name.
9644         * .dbxrc (dump-temacs): Rename to `dmp'.
9645         * .gdbinit (dump-temacs): Rename to `dmp'.
9646
9647 2001-01-17  Andy Piper  <andy@xemacs.org>
9648
9649         * glyphs.c (print_image_instance): comment to make martin happy.
9650
9651         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9652         change.
9653
9654         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9655         activation.
9656         (mswindows_tab_control_redisplay): warning suppression.
9657
9658         * glyphs-widget.c (widget_update): re-write to cope with updated
9659         items.
9660         (widget_instantiate): use new gui_item functions.
9661         (tab_control_update): deleted.
9662         (progress_gauge_update): deleted.
9663         (image_instantiator_progress_guage): take out update reference.
9664         (image_instantiator_tree_view): ditto.
9665         (image_instantiator_tab_control): ditto.
9666
9667         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9668         Right the new way.
9669         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9670         return whether anything was changed.
9671         (update_gui_item_keywords): as it sounds.
9672
9673         * gui.h: declare widget_gui_parse_item_keywords.
9674
9675         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9676         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9677
9678 2001-01-17  Martin Buchholz <martin@xemacs.org>
9679
9680         * XEmacs 21.2.41 "Polyhymnia" is released.
9681
9682 2001-01-16  Didier Verna  <didier@xemacs.org>
9683
9684         * glyphs.c (image_instantiate): don't use fallbacks when
9685         instantiating a face's background pixmap by inheritance.
9686
9687 2001-01-14  Mike Sperber <mike@xemacs.org>
9688
9689         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9690         Conditionalize accordingly.
9691
9692 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9693
9694         * dumper.c (pdump_file_get): Fix a compiler warning.
9695
9696 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9697
9698         Make Purify happy when pdumping.
9699         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9700         iniitalizing all bits of new lisp object memory.
9701         * symbols.c (Fmake_local_variable): Likewise.
9702         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9703         * symbols.c (Fdefvaralias): Likewise.
9704         * mule-charset.c (vars_of_mule_charset): Likewise.
9705
9706 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9707         Add the `-nd' flag when running pre-dump operations under the debugger.
9708         * .dbxrc (run-temacs): Add `-nd'.
9709         * .dbxrc (update-elc): Likewise.
9710         * .dbxrc (dump-temacs): Likewise.
9711         * .gdbinit (run-temacs): Likewise.
9712         * .gdbinit (check-temacs): Likewise.
9713         * .gdbinit (update-elc): Likewise.
9714         * .gdbinit (dump-temacs): Likewise.
9715
9716 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9717
9718         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9719         export OBJECT_MODE=64
9720         configure --pdump --use-union-type=no
9721         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9722         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9723
9724         * miscplay.c (sndcnv8U_2mono):
9725         Avoid two uses of `++' in the same expression.
9726         Suppresses a GCC warning.
9727
9728 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9729
9730         Make sure future compilers don't miscompile alloc.c.
9731         * alloc.c:
9732         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9733         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9734
9735 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9736
9737         * dumper.c: A little post-pdump-rename comment fixup.
9738
9739 2001-01-09  Jerry James  <james@eecs.ku.edu>
9740
9741         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9742
9743 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9744
9745         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9746         script:
9747         #!/bin/sh
9748         replace_symbol () {
9749           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9750         }
9751
9752         replace_symbol pdump_wire_lists pdump_weak_object_chains
9753         replace_symbol pdump_wire_list dump_add_weak_object_chain
9754
9755         replace_symbol pdump_wires pdump_root_objects
9756         replace_symbol pdump_wire dump_add_root_object
9757
9758         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9759         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9760
9761         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9762         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9763         replace_symbol dumpstructinfo pdump_root_struct_ptr
9764         replace_symbol dumpstruct dump_add_root_struct_ptr
9765
9766         replace_symbol dumpopaque dump_add_opaque
9767         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9768         replace_symbol dumpopaqueinfos pdump_opaques
9769         replace_symbol dumpopaqueinfo pdump_opaque
9770
9771         replace_symbol nb_structdump nb_root_struct_ptrs
9772         replace_symbol nb_opaquedump nb_opaques
9773
9774         replace_symbol align_table pdump_align_table
9775         replace_symbol dump_header pdump_header
9776
9777         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9778         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9779
9780
9781 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9782
9783         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9784         optimizing bytecount_to_charcount().
9785
9786 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9787
9788         * config.h.in:
9789         (HAVE_DLFCN_H): Removed.
9790         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9791
9792 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9793
9794         Portable dumper maintainability improvements.
9795         * alloc.c (staticpro):
9796         * alloc.c (staticpro_nodump):
9797         * alloc.c (garbage_collect_1):
9798         * alloc.c (reinit_alloc_once_early):
9799         * alloc.c (init_alloc_once_early):
9800         * alloc.c: Move dumper functions to alloc.c.
9801         * dumper.c (pdump_backtrace):
9802         * dumper.c (pdump_dump_structs):
9803         * dumper.c (pdump_dump_opaques):
9804         * dumper.c (pdump_dump_rtables):
9805         * dumper.c (pdump_dump_wired):
9806         * dumper.c (pdump):
9807         * dumper.c (pdump_load_check):
9808         * dumper.c (pdump_load_finish):
9809         * dumper.c (pdump_file_unmap):
9810         * dumper.c (pdump_file_get):
9811         * dumper.c (pdump_resource_free):
9812         * dumper.c (pdump_resource_get):
9813         * dumper.c (pdump_file_free):
9814         * dumper.c (pdump_file_try):
9815         * dumper.c (pdump_load):
9816         Remove fixed size limits on staticpro(), staticpro_nodump(),
9817         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9818         Remove custom code for dumping lrecord_implementations_table - use
9819         dumpopaque instead.
9820         Remove (most of the) custom code for dumping staticpros - dump it
9821         like any other dynarr.
9822
9823         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9824         * dumper.c: Moved functions from alloc.c.
9825         * alloc.c (dumpstruct): Moved to dumper.c.
9826         * alloc.c (dumpopaque): Likewise.
9827         * alloc.c (pdump_wire): Likewise.
9828         * alloc.c (pdump_wire_list): Likewise.
9829
9830         * lisp.h (Dynarr_sizeof): New.
9831         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9832         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9833         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9834
9835         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9836         * lisp.h (dumpopaque): ditto.
9837         * lisp.h (pdump_wire): ditto.
9838         * lisp.h (pdump_wire_list): ditto.
9839
9840 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9841
9842         * make-src-depend (PrintPatternDeps):
9843         Use `sort' to make output independent of perl version.
9844
9845 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9846
9847         Port to Netbsd 1.5.
9848         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9849         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9850
9851 2001-01-03  Didier Verna  <didier@xemacs.org>
9852
9853         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9854         that `focus_frame' is alive before thinking of calling
9855         `redisplay_redraw_cursor' on it.
9856
9857 2001-01-08  Martin Buchholz <martin@xemacs.org>
9858
9859         * XEmacs 21.2.40 is released.
9860
9861 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9862
9863         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9864
9865 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9866
9867         * alloc.c (dbg_valmask): Make const.
9868         * alloc.c (dbg_typemask): Make const.
9869         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9870         * alloc.c (dbg_valbits): Make const.
9871         * alloc.c (dbg_gctypebits): Make const.
9872
9873 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9874
9875         * redisplay-x.c (x_bevel_area):
9876         redisplay.h (struct rune):
9877         Typo fixes in comments.
9878
9879 2001-01-05  Andy Piper  <andy@xemacs.org>
9880
9881         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9882         adjustment.
9883
9884         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9885
9886 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9887
9888         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9889
9890         * mule-ccl.c (stack_idx_of_map_multiple):
9891         Non const global data must not be initialized!
9892         Found by MIYASHITA Hisashi.
9893
9894 2001-01-02  Andy Piper  <andy@xemacs.org>
9895
9896         * frame.c (change_frame_size): make sure frame size is always
9897         marked as changed.
9898
9899         * glyphs.c (image_instance_layout): minor code reuse.
9900
9901         * window.c (Fcurrent_window_configuration): revert previous
9902         change.
9903
9904 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9905
9906         * glyphs.h:
9907         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9908
9909 2000-12-31  Andy Piper  <andy@xemacs.org>
9910
9911         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9912         when widget gets unmapped.
9913
9914         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9915         function. Make sure widgets losing focus don't just drop it.
9916         (handle_focus_event_1): record the widget with focus.
9917
9918 2000-12-31  Andy Piper  <andy@xemacs.org>
9919
9920         * window.c (allocate_window): use
9921         make_image_instance_cache_hash_table.
9922         (make_dummy_parent): ditto.
9923         (Fset_window_configuration): ditto.
9924
9925         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9926
9927         * glyphs.c (process_image_string_instantiator): use
9928         INSTANTIATOR_TYPE.
9929         (get_image_instantiator_governing_domain): ditto.
9930         (normalize_image_instantiator): ditto.
9931         (instantiate_image_instantiator): ditto.
9932         (make_image_instance_1): ditto.
9933         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9934         (instantiator_eq_equal): new function for use with instance hash
9935         tables.
9936         (instantiator_eq_hash): ditto.
9937         (make_image_instance_cache_hash_table): create a suitable hash
9938         table for storing image instances.
9939
9940         * elhash.h (hash_table_weakness): new internal weakness type
9941         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9942         declare new functions.
9943
9944         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9945         another weakness type for glyphs.
9946         (make_standard_lisp_hash_table): new function split out from
9947         make_general_lisp_hash_table.
9948         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9949         (hash_table_instantiate): ditto.
9950         (Fmake_hash_table): ditto.
9951
9952 2000-12-31  Martin Buchholz <martin@xemacs.org>
9953
9954         * XEmacs 21.2.39 is released.
9955
9956 2000-12-29  Andy Piper  <andy@xemacs.org>
9957
9958         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9959
9960         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9961         the frame has changed so that we pick up geometry changes such as
9962         menubar visibility.
9963
9964 2000-12-28  Andy Piper  <andy@xemacs.org>
9965
9966         * lastfile.c (my_ebss): make a char array so we can pad the
9967         bss. Fixes cygwin unexec.
9968
9969         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9970
9971 2000-12-26  Andy Piper  <andy@xemacs.org>
9972
9973         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9974         comments and try and be more precise about a non-/SIGIO world.
9975         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9976         SIGIO.
9977
9978         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9979         we don't normalize to zero width or height.
9980
9981 2000-12-24  Andy Piper  <andy@xemacs.org>
9982
9983         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9984
9985 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9986
9987         * s/sco5.h: SCO 5 has pty support.
9988
9989 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9990
9991         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9992         input-method-xlib.c contains whole contents of input-method-xfs.c,
9993         so we can use input-method-xlib.c's code for USE_XFONTSET
9994         using #ifdefs.
9995         * input-method-xfs.c: removed.
9996
9997 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9998
9999         * file-coding.h (enum coding_category_type): reorder enumerators to
10000         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
10001         (now one greater than largest real coding_category_type enumerator).
10002         * file-coding.c (coding_category_symbol, coding_category_by_priority,
10003         coding_category_system, fcd_descriptihon_1, decode_coding_category,
10004         Fcoding_category_list, Fset_coding_priority_list,
10005         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
10006         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
10007
10008 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10009
10010         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
10011         * redisplay-output.c (redisplay_output_window): Clear top of window
10012         when face is changed.
10013         * redisplay-x.c (x_redraw_exposed_window): Call
10014         redisplay_clear_top_of_window.
10015         * redisplay.h: Publish redisplay_clear_top_of_window.
10016
10017 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10018
10019         * buffer.c (Fkill_buffer): Map over all devices.
10020         * window.c (window_loop): Remove UNSHOW_BUFFER code.
10021         (list_windows): New function.
10022         (list_all_windows): Ditto.
10023         (Freplace_buffer_in_windows): Use them.
10024
10025 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
10026
10027         * database.c (berkdb_subtype): Recognize new subtype `queue'.
10028         (Fopen_database): Use `db_create' instead of `db_open'.
10029         (syms_of_database): Initialize Qqueue.
10030
10031 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10032
10033         * buffer.c (common_init_complex_vars_of_buffer): Initialize
10034         buffer_local_face_property.
10035         * buffer.h (struct buffer): New member buffer_local_face_property.
10036         * window.c (Fset_window_buffer):  Mark window's face as changed
10037         when buffer has buffer local face.
10038         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
10039         * objects.c (color_after_change): Set buffer_local_face_property
10040         when locale of face specifier is buffer.
10041         * objects.c (font_after_change): Ditto.
10042         * objects.c (face_boolean_after_change): Ditto.
10043         * glyphs.c (image_after_change): Ditto.
10044
10045 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10046
10047         * nt.c (mswindows_fstat): Report file permissions, volume serial
10048         number, etc. Code adapted from FSF Emacs 20.7.
10049
10050 2000-12-09  Dan Holmsand  <dan@eyebee.com>
10051
10052         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
10053         of stat when we don't have symbolic links, to make sure
10054         mswindows_stat is called on mswindows.
10055
10056 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
10057
10058         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
10059
10060 2000-12-12  Martin Buchholz  <martin@xemacs.org>
10061
10062         * doprnt.c (emacs_doprnt_1): More printing fixes.
10063         Make printing of numbers compatible with libc and FSF Emacs.
10064         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
10065         Use the system printf to do most of the hard work of formatting,
10066         instead of doprnt_1().
10067         Calculate memory to allocate for format string.
10068         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
10069         (doprnt_1): Cleaner code and documentation.
10070
10071 2000-12-01  Jerry James  <james@eecs.ukans.edu>
10072
10073         * Makefile.in.in: Use the loop variable to install headers.
10074
10075 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10076
10077         * window.c (Fsplit_window): Don't invalidate face cache.
10078
10079 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10080
10081         * minibuf.c (Fall_completions): Undo the previous change
10082         which removed checking elements start with space.
10083
10084 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10085
10086         * mule-canna.c: Didier suppression.
10087
10088 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
10089
10090         * mule-canna.c: rename static unsigned char buf[] to key_buffer
10091         (warning suppression).  Add English comment translations.
10092
10093 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10094
10095         * unexelfsgi.c (unexec): Better test for mmap failure.
10096
10097 2000-12-05  Martin Buchholz <martin@xemacs.org>
10098
10099         * XEmacs 21.2.38 is released.
10100
10101 2000-12-05  Martin Buchholz  <martin@xemacs.org>
10102
10103         * redisplay.c (bar-cursor): Make a user variable.
10104
10105         * symsinit.h: Add init_postgresql_from_environment.
10106
10107 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10108
10109         * regex.c: Convert to clean C.
10110
10111 2000-12-05  Dan Holmsand  <dan@eyebee.com>
10112
10113         * realpath.c:
10114         Don't #include sysfile.h. Revert to duplicating PATH_MAX
10115         initialization.
10116         (sys_readlink): renamed to system_readlink to avoid conflict with
10117         the other sys_readlink.
10118
10119 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
10120
10121         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
10122
10123 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
10124
10125         * postgresql.c (init_postgresql_from_environment): new function.
10126         (vars_of_postgresql): Move code initializing Lisp variables out and
10127         into init_postgresql_from_environment.
10128         emacs.c (main_1): Call init_postgresql_from_environment if and only
10129         if running a dumped XEmacs.
10130
10131 2000-08-31  Dan Holmsand  <dan@eyebee.com>
10132
10133         * buffer.c: Make find-file-compare-truenames default to true on
10134         windows.
10135
10136         * realpath.c (win32_abs_start):
10137         (cygwin_readlink):
10138         (win32_readlink): New functions.
10139         (xrealpath): Return really real filenames on windows.
10140
10141         * fileio.c (Ffile_truename): Make file-truename work on windows.
10142
10143 2000-11-29  Didier Verna  <didier@xemacs.org>
10144
10145         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
10146         * faces.c (update_face_cachel_data): use it.
10147         * faces.c (add_face_cachel): use it. Complete background pixmap
10148         frobbing in face cache if `update_face_cachel_data' has not done so.
10149
10150 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
10151
10152         * search.c (string_match_1): Don't set last_thing_searched
10153         when search failed.
10154
10155 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
10156
10157         * buffer.c: Include casetab.h
10158         (common_init_complex_vars_of_buffer): Use new case-table object.
10159         * buffer.h: Include casetab.h
10160         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
10161         (DOWNCASE_TABLE_OF): Ditto.
10162         * bufslots.h: Remove char-tables and add case-table.
10163         * casetab.c: Include casetab.h
10164         (CASE_TABLE_P): Removed.
10165         (mark_case_table): New function.
10166         (allocate_case_table): New function.
10167         (Fcase_table_p): Use new case-table.
10168         (case_table_char): New function.
10169         (Fget_case_table): Ditto.
10170         (Fput_case_table): Ditto.
10171         (Fput_case_table_pair): Ditto.
10172         (Fcopy_case_table): Ditto.
10173         (Fcurrent_case_table): Return case-table.
10174         (Fstandard_case_table): Return case-table.
10175         (Fset_case_table): Fix doc-string.
10176         (set_case_table): Use case-table
10177         (syms_of_casetab): DEFSUBR new functions.
10178         (complex_vars_of_casetab): Set up standard case-table.
10179         * casetab.h: New file.
10180         * editfns.c: Include casetab.h
10181         (Fcompare_buffer_substrings): Use case-table.
10182         * inline.c: Include casetab.h
10183         * lisp.h: Remove bogus extern.
10184         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
10185         * search.c: Include casetab.h
10186         (TRANSLATE_ASCII): Removed.
10187         (TRANSLATE): Unconditionally translate character.
10188         (looking_at_1): Use case-table.
10189         (string_match_1): Ditto.
10190         (fast_string_match): Ditto.
10191         (search_command): Ditto.
10192         (search_buffer): Separate boyer_moore.  Check whether
10193         boyer_moore is possible.
10194         (simple_search): New function.
10195         (boyer_moore): Separated from search_buffer. Translate char.
10196
10197 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10198
10199         * regex.c (RE_TR_ASCII): Removed.
10200         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
10201         (PATFETCH): Call PATFETCH_RAW.
10202         (PATFETCH_RAW): Fetch Emchar.
10203         (PATUNFETCH): Decrement charptr.
10204         (GET_BUFFER_SPACE): Rename b to buf_end.
10205         (BUF_PUSH): Ditto.
10206         (BUF_PUSH_2): Ditto.
10207         (BUF_PUSH_3): Ditto.
10208         (EXTEND_BUFFER): Ditto.
10209         (SET_LIST_BIT): Ditto.
10210         (regex_compile): Ditto.  Translate non ASCII char.
10211         (compile_range): Ditto.
10212         (re_search_2): Ditto.
10213         (re_match_2_internal): Compare Emchar.
10214         (bcmp_translate): Ditto.
10215
10216 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
10217
10218         * lisp.h (basic char/int typedefs):  comment improvement.
10219
10220 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
10221
10222         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
10223         unstomp inhibit_site_lisp.  Improve comments.
10224
10225 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
10226
10227         * mule-charset.c (Fcharset_property):  improve type checking, comments.
10228
10229 2000-11-28  Andy Piper  <andy@xemacs.org>
10230
10231         * redisplay-output.c (redisplay_output_subwindow): make sure we do
10232         clipped display for windows in the gutter also.
10233         (redisplay_display_boxes_in_window_p): change semantics of return
10234         codes to be more intuitive.
10235
10236         * gutter.h: declare display_boxes_in_gutter_p.
10237
10238         * gutter.c (display_boxes_in_gutter_p): new function for
10239         redisplay.
10240
10241 2000-11-22  Andy Piper  <andy@xemacs.org>
10242
10243         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10244         autodetect domain.
10245
10246 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10247
10248         * callproc.c (Fold_call_process_internal):
10249         * gpm.c (Freceive_gpm_event):
10250         (tty_get_foreign_selection): Might be just warning supression.
10251         * fileio.c (Fwrite_region_internal):
10252         (Fset_visited_file_modtime):
10253         * keymap.c (event_matches_key_specifier_p):
10254         Initialize GCPROed variable.
10255
10256         * menubar-x.c (command_builder_find_menu_accelerator):
10257         Initialize before use.
10258
10259 2000-11-23  Andy Piper  <andy@xemacs.org>
10260
10261         * unexcw.c (unexec): make the resulting executable executable.
10262
10263 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10264
10265         * doc.c (get_doc_string):
10266         Use size_t, not int, for result of XSTRING_LENGTH.
10267
10268         * cmds.c (Fdelete_char):
10269         * cmds.c (Fpoint_at_eol):
10270         * cmds.c (Fself_insert_command):
10271         Use EMACS_INT, not int, for result of XINT.
10272         Someday, someone will want to insert more than 2**31 identical characters.
10273
10274         * cmds.c (Fdelete_char):
10275         * cmds.c (Fdelete_backward_char):
10276         * syntax.c (Fforward_word):
10277         * syntax.c (Fforward_comment):
10278         Make COUNT argument optional, for consistency with forward-char et al.
10279
10280 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10281
10282         * lisp.h:
10283         * print.c (long_to_string):
10284         Return a useful value: the pointer at end of data written.
10285
10286         * doprnt.c:
10287         Use `static const char * const' for constant strings.
10288         (union printf_arg): Delete `i', `ui' members.
10289         (get_doprnt_args):
10290         (emacs_doprnt_1):
10291         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10292         Do all printf-ing via the `l' specifier.
10293         Use EMACS_INT instead of int.
10294         Optimize.
10295
10296 2000-11-20  Didier Verna  <didier@xemacs.org>
10297
10298         * faces.c (update_face_cachel_data): don't frob the background
10299         pixmap when the window is being created. The face is needed but
10300         does not exist yet.
10301
10302 2000-11-20  Andy Piper  <andy@xemacs.org>
10303
10304         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10305         messing with a debug environment.
10306
10307 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10308
10309         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10310
10311 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10312
10313         * casetab.c (Fcase_table_p): Fix compile error and crash.
10314
10315 2000-11-18  Philip Aston  <philipa@mail.com>
10316
10317         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10318
10319 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10320
10321         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10322         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10323
10324 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10325
10326         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10327         * unexelf.c: Use HAVE_ELF_H.
10328         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10329         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10330         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10331         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10332         for testing.
10333         So this is an unexelfsgi.c from a different line of development.
10334
10335 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10336
10337         * regex.c (RE_TR_ASCII): New function.
10338         (RE_TRANSLATE): Call it.
10339
10340 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10341
10342         * buffer.h (TRT_TABLE_OF): Remove assert.
10343         (IN_TRT_TABLE_DOMAIN): Removed.
10344
10345 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10346
10347         * free-hook.c (log_gcpro):
10348         (show_gcprohist): Add support for GCPRO5.
10349
10350 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10351
10352         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10353
10354 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10355
10356         * symeval.h: Declare flush_all_buffer_local_cache.
10357
10358         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10359         (flush_buffer_local_cache): Added.
10360         (flush_all_buffer_local_cache): Added.
10361
10362         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10363
10364         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10365         (pdump_dump_data): Ditto.
10366         (pdump_reloc_one): Ditto.
10367         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10368         before dumping.
10369
10370
10371 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10372
10373         * buffer.c: Remove if 0'ed entry.
10374         * buffer.h: Rewrite TRT to use char-table.
10375         * bufslots.h: Remove mirror tables.
10376         * casetab.c: Remove mirror tables.
10377         (CASE_TABLE_P): New macro.
10378         (Fcase_table_p): Element of a case table is string or char-table.
10379         (make_mirror_trt_table): Removed.
10380         (set_case_table): Setup char-table from strings for backward
10381         compatibility.
10382         * dired.c (Fdirectory_files):
10383         * dired-msw.c: (mswindows_get_files):
10384         * lisp.h: Change prototype of re_pattern_buffer.
10385         * regex.c: (RE_TRANSLATE): New macro.
10386         (TRANSLATE_P): Ditto.
10387         Change translate to type RE_TRANSLATE_TYPE.
10388         * regex.h: Define RE_TRANSLATE_TYPE
10389         * search.c (TRANSLATE): New macro.
10390         (TRANSLATE_ASCII): New macro.
10391         Translate table is changed to Lisp_Object.
10392         (signal_failure): Inhibit return.
10393
10394 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10395
10396         * device-msw.c:
10397         * eldap.c:
10398         * event-Xt.c:
10399         * event-stream.c:
10400         * print.c:
10401         Do UNGCPRO before return.
10402
10403 2000-11-14  Martin Buchholz <martin@xemacs.org>
10404
10405         * XEmacs 21.2.37 is released.
10406
10407 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10408
10409         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10410         Add comments about discarded return value.
10411
10412 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10413
10414         * callint.c:
10415         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10416
10417 2000-10-27  Andy Piper  <andy@xemacs.org>
10418
10419         * gutter.c (Fset_default_gutter_position): default left and right
10420         gutters to visible.
10421         (calculate_gutter_size): calculate resonable heuristic for left
10422         and right gutter sizes.
10423         (specifier_vars_of_gutter): change left and right gutter sizes to
10424         autodetect.
10425         (calculate_gutter_size_from_display_lines): new function.
10426         (output_gutter): check for resizing on left and right gutters.
10427         (clear_gutter): don't special case top and left gutters.
10428         (specifier_vars_of_gutter): use new signature for
10429         set_specifier_caching.
10430
10431         * glyphs-x.c (x_redisplay_widget): spelling fix.
10432         * glyphs.c (specifier_vars_of_glyphs):
10433         * menubar.c (specifier_vars_of_menubar):
10434         * redisplay.c (specifier_vars_of_redisplay):
10435         * toolbar.c (specifier_vars_of_toolbar):
10436         * window.c (specifier_vars_of_window):
10437         * scrollbar.c (specifier_vars_of_scrollbar):
10438         (complex_vars_of_scrollbar): use new signature for
10439         set_specifier_caching.
10440
10441         * specifier.c (set_specifier_caching): include recompute flag.
10442         (recompute_one_cached_specifier_in_window): always recompute if
10443         flag set.
10444         (recompute_one_cached_specifier_in_frame): ditto.
10445
10446         * specifier.h (struct specifier_caching): add recompute flag.
10447
10448 2000-10-24  Andy Piper  <andy@xemacs.org>
10449
10450         * unexcw.c (copy_executable_and_dump_data_section): add new
10451         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10452         5.0 happy.
10453
10454 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10455
10456         * console-x.h (x_device): New member modifier_release_time.
10457         * event-Xt.c (x_handle_sticky_modifiers):
10458         Bound interval modifier keys are sticky.
10459         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10460         * events.h: extern it.
10461
10462 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10463
10464         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10465
10466 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10467
10468         * event-stream.c (execute_command_event): Preserve current_events
10469         and the like when event is misc-user-event.
10470         Inhibit quit during the call to maybe_echo_keys.
10471
10472 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10473
10474         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10475         symlink when buffer is killed.
10476         (inhibit_clash_detection): New variable.
10477
10478 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10479
10480         * console.c (Fset_input_method): Trigger redisplay on tty.
10481
10482 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10483
10484         * process.c (Fprocess_status): Revert to previous behavior:
10485         (process-status "nosuchprocess") ==> nil
10486
10487 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10488
10489         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10490         Work around another GCC 2.95.2 optimizer bug.
10491
10492 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10493
10494         * process.c (Fget_process): Use LIST_LOOP_2.
10495         (kill_buffer_processes): Use LIST_LOOP_2.
10496
10497         * minibuf.c (Fall_completions):
10498         Delete old non-functional code for FSF fourth argument.
10499
10500         * frame.c (frame_matches_frame_spec):
10501         Renamed from `frame_matches_frametype'.  Update all callers.
10502         (device_matches_device_spec):
10503         Renamed from 'device_matches_console_spec'.  Update all callers.
10504
10505         * doc.c (Fsubstitute_command_keys):
10506         Remove buffer overflow crash.  Small code cleanups.
10507
10508         * casetab.c (check_case_table): Simpler code.
10509
10510         * window.c (Freplace_buffer_in_windows):
10511         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10512         (and similar implementation) as Fdelete_windows_on.
10513         Update all callers.
10514
10515         * alloc.c (Fmake_list):
10516         * alloc.c (make_vector):
10517         * alloc.c (Fmake_vector):
10518         * alloc.c (make_bit_vector):
10519         * alloc.c (Fmake_bit_vector):
10520         * alloc.c (Fbit_vector):
10521         * alloc.c (Fmake_string):
10522         * alloc.c (Fpurecopy):
10523         * alloc.c (Fmemory_limit):
10524         * buffer.c:
10525         * buffer.c (Fget_buffer):
10526         * buffer.c (Fkill_buffer):
10527         * buffer.c (complex_vars_of_buffer):
10528         * bytecode.c (Fcompiled_function_stack_depth):
10529         * callint.c (Fprefix_numeric_value):
10530         * event-stream.c:
10531         * event-stream.c (Fread_key_sequence):
10532         * casetab.c:
10533         * casetab.c (Fcase_table_p):
10534         * casetab.c (check_case_table):
10535         * casetab.c (Fset_case_table):
10536         * casetab.c (Fset_standard_case_table):
10537         * chartab.c:
10538         * chartab.c (Fchar_table_type):
10539         * chartab.c (Freset_char_table):
10540         * chartab.c (Fget_char_table):
10541         * chartab.c (Fget_range_char_table):
10542         * chartab.c (Fput_char_table):
10543         * chartab.c (Fmap_char_table):
10544         * chartab.c (Fcategory_table_p):
10545         * chartab.c (Fcheck_category_at):
10546         * chartab.c (Fchar_in_category_p):
10547         * chartab.c (Fcategory_table):
10548         * chartab.c (Fcopy_category_table):
10549         * chartab.c (Fset_category_table):
10550         * chartab.c (Fcategory_designator_p):
10551         * chartab.c (Fcategory_table_value_p):
10552         * cmds.c (Fdelete_char):
10553         * cmds.c (Fdelete_backward_char):
10554         * cmds.c (Fself_insert_command):
10555         * cmds.c (Fself_insert_internal):
10556         * console.c (Fvalid_console_type_p):
10557         * console.c (Fcdfw_console):
10558         * console.c (Fconsole_type):
10559         * console.c (Fconsole_name):
10560         * console.c (Fconsole_device_list):
10561         * console.c (Fconsole_on_window_system_p):
10562         * data.c:
10563         * data.c (Feq):
10564         * data.c (Fold_eq):
10565         * data.c (Fsubr_interactive):
10566         * data.c (Fchar_to_int):
10567         * data.c (Fint_to_char):
10568         * data.c (Fsetcar):
10569         * data.c (Fsetcdr):
10570         * data.c (Fnumber_to_string):
10571         * data.c (Fstring_to_number):
10572         * data.c (Frem):
10573         * database.c (mark_database):
10574         * database.c (finalize_database):
10575         * database.c (Fdatabase_live_p):
10576         * database.c (Fdatabasep):
10577         * device-x.c (Fx_get_resource):
10578         * device.c (Fdfw_device):
10579         * dired.c:
10580         * dired.c (Ffile_name_completion):
10581         * dired.c (Ffile_name_all_completions):
10582         * dired.c (Fuser_name_completion):
10583         * dired.c (Fuser_name_completion_1):
10584         * dired.c (Fuser_name_all_completions):
10585         * doc.c (Fdocumentation):
10586         * doc.c (Fdocumentation_property):
10587         * doc.c (Fsubstitute_command_keys):
10588         * editfns.c:
10589         * editfns.c (Fchar_to_string):
10590         * editfns.c (Fstring_to_char):
10591         * editfns.c (Ftemp_directory):
10592         * editfns.c (Finsert_char):
10593         * editfns.c (Fbuffer_substring_no_properties):
10594         * editfns.c (Fnarrow_to_region):
10595         * editfns.c (Fchar_equal):
10596         * editfns.c (Fchar_Equal):
10597         * editfns.c (Ftranspose_regions):
10598         * emacs.c (Fdump_emacs):
10599         * eval.c (Fthrow):
10600         * eval.c (Fcommand_execute):
10601         * eval.c (Fautoload):
10602         * eval.c (Fbacktrace):
10603         * eval.c (Fbacktrace_frame):
10604         * events.c:
10605         * events.c (Fcopy_event):
10606         * events.c (Fcharacter_to_event):
10607         * events.c (Fevent_button):
10608         * events.c (Fevent_process):
10609         * extents.c:
10610         * extents.c (Fnext_extent_change):
10611         * extents.c (Fextent_property):
10612         * faces.c (Ffacep):
10613         * faces.c (Fmake_face):
10614         * file-coding.c:
10615         * file-coding.c (Fencode_shift_jis_char):
10616         * file-coding.c (Fencode_big5_char):
10617         * fileio.c (Ffile_name_directory):
10618         * fileio.c (Ffile_name_nondirectory):
10619         * fileio.c (Ffile_name_as_directory):
10620         * fileio.c (Fdirectory_file_name):
10621         * fileio.c (Ffile_truename):
10622         * fileio.c (Fsubstitute_in_file_name):
10623         * fileio.c (Ffile_modes):
10624         * fileio.c (Fset_file_modes):
10625         * fileio.c (Fset_default_file_modes):
10626         * fileio.c (Fverify_visited_file_modtime):
10627         * floatfns.c (Facos):
10628         * floatfns.c (Fasin):
10629         * floatfns.c (Fatan):
10630         * floatfns.c (Fcos):
10631         * floatfns.c (Fsin):
10632         * floatfns.c (Ftan):
10633         * floatfns.c (Fbessel_j0):
10634         * floatfns.c (Fbessel_j1):
10635         * floatfns.c (Fbessel_jn):
10636         * floatfns.c (Fbessel_y0):
10637         * floatfns.c (Fbessel_y1):
10638         * floatfns.c (Fbessel_yn):
10639         * floatfns.c (Ferf):
10640         * floatfns.c (Ferfc):
10641         * floatfns.c (Flog_gamma):
10642         * floatfns.c (Fexp):
10643         * floatfns.c (Fexpt):
10644         * floatfns.c (Flog):
10645         * floatfns.c (Flog10):
10646         * floatfns.c (Fsqrt):
10647         * floatfns.c (Fcube_root):
10648         * floatfns.c (Facosh):
10649         * floatfns.c (Fasinh):
10650         * floatfns.c (Fatanh):
10651         * floatfns.c (Fcosh):
10652         * floatfns.c (Fsinh):
10653         * floatfns.c (Ftanh):
10654         * floatfns.c (Fabs):
10655         * floatfns.c (Ffloat):
10656         * floatfns.c (Flogb):
10657         * floatfns.c (Fceiling):
10658         * floatfns.c (Ffloor):
10659         * floatfns.c (Fround):
10660         * floatfns.c (Ftruncate):
10661         * floatfns.c (Ffceiling):
10662         * floatfns.c (Fffloor):
10663         * floatfns.c (Ffround):
10664         * floatfns.c (Fftruncate):
10665         * fns.c (Fstring_equal):
10666         * fns.c (Fstring_lessp):
10667         * fns.c (concat2):
10668         * fns.c (concat3):
10669         * fns.c (vconcat2):
10670         * fns.c (vconcat3):
10671         * fns.c (Fsubstring):
10672         * fns.c (Fassoc):
10673         * fns.c (Fold_assoc):
10674         * fns.c (assoc_no_quit):
10675         * fns.c (Fassq):
10676         * fns.c (Fold_assq):
10677         * fns.c (assq_no_quit):
10678         * fns.c (Frassoc):
10679         * fns.c (Fold_rassoc):
10680         * fns.c (Frassq):
10681         * fns.c (Fold_rassq):
10682         * fns.c (rassq_no_quit):
10683         * fns.c (Fremassoc):
10684         * fns.c (remassoc_no_quit):
10685         * fns.c (Fremassq):
10686         * fns.c (remassq_no_quit):
10687         * fns.c (Fremrassoc):
10688         * fns.c (Fremrassq):
10689         * fns.c (remrassq_no_quit):
10690         * fns.c (Fsort):
10691         * fns.c (Fplist_get):
10692         * fns.c (Fplist_put):
10693         * fns.c (Fplist_remprop):
10694         * fns.c (Fplist_member):
10695         * fns.c (Flax_plist_get):
10696         * fns.c (Flax_plist_put):
10697         * fns.c (Flax_plist_remprop):
10698         * fns.c (Flax_plist_member):
10699         * fns.c (Fequal):
10700         * fns.c (Fold_equal):
10701         * fns.c (Frequire):
10702         * fns.c (Fbase64_encode_region):
10703         * fns.c (Fbase64_encode_string):
10704         * fns.c (Fbase64_decode_region):
10705         * frame.c:
10706         * frame.c (frame_matches_frame_spec):
10707         * frame.c (device_matches_device_spec):
10708         * frame.c (next_frame):
10709         * frame.c (previous_frame):
10710         * frame.c (Fnext_frame):
10711         * frame.c (Fprevious_frame):
10712         * frame.c (Fframe_property):
10713         * frame.c (Fset_frame_height):
10714         * frame.c (Fset_frame_size):
10715         * frame.h:
10716         * glyphs.c:
10717         * glyphs.c (if):
10718         * glyphs.c (decode_error_behavior_flag):
10719         * glyphs.c (Fmake_image_instance):
10720         * indent.c (Findent_to):
10721         * intl.c (Fignore_defer_gettext):
10722         * keymap.c (Fkeymapp):
10723         * keymap.c (Flookup_key):
10724         * lread.c:
10725         * lread.c (Fload_internal):
10726         * lread.c (Feval_buffer):
10727         * lread.c (Feval_region):
10728         * macros.c (Fexecute_kbd_macro):
10729         * marker.c (set_marker_internal):
10730         * marker.c (Fset_marker):
10731         * marker.c (set_marker_restricted):
10732         * marker.c (Fcopy_marker):
10733         * marker.c (noseeum_copy_marker):
10734         * menubar.c:
10735         * menubar.c (Fpopup_menu):
10736         * minibuf.c:
10737         * mule-charset.c (Fcharset_name):
10738         * mule-charset.c (Fchar_charset):
10739         * mule-charset.c (Fchar_octet):
10740         * mule-charset.c (Fsplit_char):
10741         * mule-wnnfns.c (Fwnn_open):
10742         * mule-wnnfns.c (Fwnn_dict_comment):
10743         * mule-wnnfns.c (Fwnn_quit_henkan):
10744         * mule-wnnfns.c (Fwnn_word_toroku):
10745         * mule-wnnfns.c (Fwnn_word_sakujo):
10746         * mule-wnnfns.c (Fwnn_word_use):
10747         * mule-wnnfns.c (Fwnn_hindo_set):
10748         * objects.c:
10749         * objects.c (Fmake_color_instance):
10750         * objects.c (Fmake_font_instance):
10751         * print.c (Fwrite_char):
10752         * process.c:
10753         * process.c (mark_process):
10754         * process.c (print_process):
10755         * process.c (get_process_from_usid):
10756         * process.c (Fprocessp):
10757         * process.c (Fprocess_live_p):
10758         * process.c (Fget_process):
10759         * process.c (Fget_buffer_process):
10760         * process.c (get_process):
10761         * process.c (Fprocess_id):
10762         * process.c (Fprocess_name):
10763         * process.c (Fprocess_command):
10764         * process.c (init_process_io_handles):
10765         * process.c (start_process_unwind):
10766         * process.c (Fstart_process_internal):
10767         * process.c (Fopen_multicast_group_internal):
10768         * process.c (Fset_process_window_size):
10769         * process.c (read_process_output):
10770         * process.c (send_process):
10771         * process.c (Fprocess_tty_name):
10772         * process.c (Fset_process_buffer):
10773         * process.c (Fprocess_buffer):
10774         * process.c (Fprocess_mark):
10775         * process.c (set_process_filter):
10776         * process.c (Fset_process_filter):
10777         * process.c (Fprocess_filter):
10778         * process.c (Fprocess_send_region):
10779         * process.c (Fprocess_send_string):
10780         * process.c (exec_sentinel):
10781         * process.c (Fset_process_sentinel):
10782         * process.c (Fprocess_sentinel):
10783         * process.c (status_notify):
10784         * process.c (Fprocess_status):
10785         * process.c (Fprocess_exit_status):
10786         * process.c (process_send_signal):
10787         * process.c (Fprocess_send_eof):
10788         * process.c (deactivate_process):
10789         * process.c (remove_process):
10790         * process.c (Fdelete_process):
10791         * process.c (kill_buffer_processes):
10792         * process.c (Fprocess_kill_without_query):
10793         * process.c (Fprocess_kill_without_query_p):
10794         * rangetab.c:
10795         * rangetab.c (Fget_range_table):
10796         * rangetab.c (Fput_range_table):
10797         * rangetab.c (Fremove_range_table):
10798         * rangetab.c (Fclear_range_table):
10799         * search.c:
10800         * search.c (Fskip_chars_forward):
10801         * search.c (Fskip_chars_backward):
10802         * search.c (Fskip_syntax_forward):
10803         * search.c (Fskip_syntax_backward):
10804         * search.c (search_command):
10805         * search.c (Freplace_match):
10806         * search.c (Fregexp_quote):
10807         * select.c (Fown_selection_internal):
10808         * select.c (Fselection_owner_p):
10809         * select.c (Fselection_exists_p):
10810         * select.c (Fget_selection_internal):
10811         * specifier.c:
10812         * symbols.c:
10813         * symbols.c (Fintern):
10814         * symbols.c (Fintern_soft):
10815         * symbols.c (Funintern):
10816         * symbols.c (Fapropos_internal):
10817         * symbols.c (Fset_default):
10818         * syntax.c:
10819         * syntax.c (Fsyntax_table_p):
10820         * syntax.c (Fcopy_syntax_table):
10821         * syntax.c (Fset_syntax_table):
10822         * syntax.c (Fchar_syntax):
10823         * syntax.c (syntax_match):
10824         * syntax.c (Fmatching_paren):
10825         * syntax.c (Fforward_word):
10826         * syntax.c (scan_lists):
10827         * syntax.c (Fscan_lists):
10828         * syntax.c (Fscan_sexps):
10829         * syntax.c (Fparse_partial_sexp):
10830         * toolbar.c (Fcheck_toolbar_button_syntax):
10831         * tooltalk.doc:
10832         * window.c:
10833         * window.c (Fwindowp):
10834         * window.c (Fwindow_live_p):
10835         * window.c (Fwindow_point):
10836         * window.c (Fdelete_window):
10837         * window.c (Fnext_window):
10838         * window.c (Fprevious_window):
10839         * window.c (Fother_window):
10840         * window.c (window_loop):
10841         * window.c (Fget_lru_window):
10842         * window.c (Fsplit_window):
10843         * window.c (Fenlarge_window):
10844         * window.c (Fenlarge_window_pixels):
10845         * window.c (Fshrink_window):
10846         * window.c (Fshrink_window_pixels):
10847         * window.c (change_window_height):
10848         * window.c (Fwindow_configuration_p):
10849         * window.c (Fcurrent_window_configuration):
10850         * window.h:
10851         * casefiddle.c (casify_object):
10852         * casefiddle.c (Fupcase):
10853         * casefiddle.c (Fdowncase):
10854         * casefiddle.c (Fcapitalize):
10855         * casefiddle.c (Fupcase_initials):
10856         * casefiddle.c (casify_region_internal):
10857         * casefiddle.c (casify_region):
10858         * casefiddle.c (Fupcase_region):
10859         * casefiddle.c (Fdowncase_region):
10860         * casefiddle.c (Fcapitalize_region):
10861         * casefiddle.c (Fupcase_initials_region):
10862         * casefiddle.c (Fupcase_word):
10863         * casefiddle.c (Fdowncase_word):
10864         * casefiddle.c (Fcapitalize_word):
10865         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10866         Replace 0 with '\0' when working with bytes.
10867         Replace initial "(" with "\(" in docstrings.
10868
10869 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10870
10871         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10872
10873         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10874
10875 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10876
10877         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10878
10879 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10880
10881         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10882         correctly.
10883
10884 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10885
10886         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10887         (inhibit_auto_save_session): New variable.
10888         (vars_of_fileio): Declare and initialize them.
10889         * fileio.c (Fdo_auto_save): Don't create session file if
10890         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10891
10892 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10893
10894         * sgiplay.c (play_internal): C++ compilability.
10895         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10896         * callproc.c (Fold_call_process_internal):
10897         Remove unused vars `env', `first'.
10898         * scrollbar.c (update_scrollbar_instance):
10899         #### unused var `current_window'.
10900         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10901         etc. within #ifdef NOT_YET.
10902         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10903         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10904         * specifier.c (specifier_instance):
10905         #### unused var `tag'.
10906         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10907
10908 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10909
10910         * fns.c (Fbutlast):
10911         * fns.c (list_sort):
10912         * fns.c (Ffillarray):
10913         * fns.c (bytecode_nconc2):
10914         * fns.c (Fnconc):
10915         * fns.c (mapcar1):
10916         * fns.c (Fmapconcat):
10917         Be pedantically 64-bit correct.  For the time when someone will
10918         want to have a list with length > 2**32.
10919
10920         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10921         Work around MIPSpro compiler bug.
10922
10923         * process-unix.c (unix_kill_child_process): Add snarky comment.
10924         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10925
10926         * config.h.in: Oops, _getpt ==> _getpty
10927
10928 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10929
10930         * config.h.in:
10931         * regex.c:
10932         Use void*, not char*, as return type of alloca().
10933
10934         * alloc.c (free_marker): Side effect inside assert expression!
10935
10936 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10937
10938         * mule-charset.c (Fset_charset_ccl_program): To check
10939         if the given ccl program is valid, use setup_ccl_program()
10940         instead of CHECK_VECTOR().
10941         (Fmake_charset): Likewise.
10942
10943 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10944
10945         * faces.c (get_extent_fragment_face_cache_index):
10946         Fix cachel.merged_faces memory leak.
10947
10948 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10949
10950         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10951         Reset MSB of octets obtained by DECODE_SJIS
10952         because of the incompatibility with Emacs.
10953         (ccl_driver)<CCL_ENCODE_SJIS>:
10954         Set MSB of octets before passing them to
10955         ENCODE_SJIS because of the incompatibility
10956         with Emacs.
10957
10958 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10959
10960         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10961         (DECLARE_LRECORD): Undo the last change.
10962         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10963
10964 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10965
10966         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10967         the implementation to lrecord_implementations_table.
10968
10969 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10970
10971         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10972         initial value of `lrecord_type_##c_name' and
10973         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10974         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10975         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10976         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10977         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10978
10979 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10980
10981         * miscplay.c (sndcnv8S_2mono):
10982         (sndcnv2monounsigned):
10983         (sndcnvULaw_2linear):
10984         (sndcnv16swap):
10985         Remove implementation-defined behavior.
10986
10987 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10988
10989         * input-method-xlib.c: Warning suppression.
10990
10991 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10992
10993         * mule-ccl.c: Sync up with Emacs 21.0.90.
10994         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10995         Do nothing.
10996         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10997         Likewise.
10998         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10999         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
11000         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
11001         leading char belongs to official 2-dimensional charset.
11002         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
11003         write the given character as is.  Otherwise,
11004         if it is a multibyte char, convert it by
11005         non_ascii_set_charptr_emchar, then write it.
11006         (CCL_WRITE_STRING): Likewise.
11007         (ccl_get_compiled_code): New function.
11008         (setup_ccl_program): When ccl_prog is invalid,
11009         return -1.
11010         (Fregister_code_conversion_map): New function.
11011         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
11012
11013         * mule-ccl.h: Sync up with Emacs 21.0.90.
11014         (Fregister_ccl_program): export it.
11015
11016         * redisplay-msw.c (separate_textual_runs):
11017         If ccl program is not valid, don't do ccl conversion.
11018
11019         * redisplay-x.c (separate_textual_runs): Ditto.
11020
11021         * file-coding.c (Fmake_coding_system):
11022         When type is ccl and value is vector, register it
11023         with a proper symbol.  And checks whether the
11024         given ccl program is valid.
11025         (mule_decode): When calling ccl_driver, if src indicates
11026         NULL pointer, set an empty string instead.
11027         (mule_encode): Likewise.
11028
11029 2000-10-11  Martin Buchholz  <martin@xemacs.org>
11030
11031         The following large batch of changes gets us back to a state of
11032         C++ compilability.  Extbyte is now a char, which means that
11033         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
11034
11035         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
11036
11037         * sound.c (Fplay_sound): Type correctness.
11038
11039         * select-x.c (hack_motif_clipboard_selection): Type correctness.
11040         (x_get_window_property): Type correctness.
11041         (receive_incremental_selection): unsigned char ==> Extbyte
11042         (selection_data_to_lisp_data): unsigned char ==> Extbyte
11043         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
11044         (Fx_store_cutbuffer_internal): Type correctness.
11045
11046         * process-unix.c (try_to_initialize_subtty): Type correctness.
11047
11048         * objects-x.c (x_print_color_instance): Type correctness.
11049         (x_print_font_instance): Type correctness.
11050         (x_list_fonts): SExtbyte ==> Extbyte.
11051         (valid_x_font_name_p): SExtbyte ==> Extbyte.
11052         (x_find_charset_font): SExtbyte ==> Extbyte.
11053         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
11054         (truename_via_XListFonts): SExtbyte ==> Extbyte.
11055         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
11056         Use bufbyte_strcmp.
11057
11058         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
11059         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
11060         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
11061         (BYTE_C0_P): Use bit ops for char-signedness safety.
11062         (BYTE_C1_P): Use bit ops for char-signedness safety.
11063         (CHARSET_BY_LEADING_BYTE):
11064         (CHARSET_BY_ATTRIBUTES):
11065         Always use inline function.
11066         Use type_checking_assert.
11067         Hide chlook.
11068
11069         * mule-charset.c (non_ascii_charptr_copy_char):
11070         Modify to work with both ASCII and non-ASCII characters.
11071         Improve docs and variable names.
11072         Replace over-clever fall-through switch with a simple loop.
11073         (Lstream_get_emchar_1):
11074         Replace over-clever fall-through switch with a simple loop.
11075
11076         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11077         Warning suppression.
11078
11079         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
11080         the return value of Lstream_getc, which could be EOF as well.
11081
11082         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
11083
11084         * lisp.h: Make Extbyte a char, not unsigned char, so that external
11085         APIs can be used on Extbytes without casts.  Risky!
11086         (SExtbyte): Remove.
11087         (UExtbyte): Remove.
11088
11089         * input-method-xlib.c (XIM_init_device):
11090         Use Xlib.h instead of IntrinsicP.h.
11091         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
11092         which will break in X11R7.
11093         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
11094         to call XRegisterIMInstantiateCallback with correct types.
11095
11096         * gui-x.c (button_item_to_widget_value): Type correctness.
11097
11098         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
11099
11100         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
11101         (xbm_instantiate_1): Type correctness.
11102         (BUILD_GLYPH_INST):  Type correctness.
11103
11104         * fileio.c (Fsubstitute_in_file_name): Type correctness.
11105
11106         * file-coding.c:
11107         (decode_coding_sjis):
11108         (decode_coding_big5):
11109         (decode_coding_ucs4):
11110         (decode_coding_utf8):
11111         (decode_coding_iso2022):
11112         (decode_coding_no_conversion):
11113         Make all decoding functions take an Extbyte * arg.
11114         (encode_coding_sjis):
11115         (encode_coding_big5):
11116         (encode_coding_ucs4):
11117         (encode_coding_utf8):
11118         (encode_coding_iso2022):
11119         (encode_coding_no_conversion):
11120         Make all encoding functions take a Bufbyte * arg.
11121         Use size_t instead of unsigned int for memory sizes.
11122         Only cast to unsigned char whenever dereferencing Extbyte *.
11123
11124         * doc.c (unparesseuxify_doc_string): Type correctness.
11125
11126         * console-x.c (split_up_display_spec):
11127         Rewrite without using details of internal string representation.
11128         (x_semi_canonicalize_device_connection): Type correctness.
11129
11130         * config.h.in:
11131         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
11132         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
11133         (HAVE_XFREE386): Removed.
11134
11135         * buffer.h (DEC_CHARPTR): `const' correctness.
11136         (bufbyte_strcmp): New.
11137         (bufbyte_memcmp): New.
11138
11139         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
11140
11141         * buffer.h (XCHAR_OR_CHAR_INT):
11142         Always use inline function.
11143         Remove redundant type checking assert() - XINT will abort quite nicely.
11144
11145 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11146
11147         * search.c (Freplace_match): Set newtext to an empty string.
11148
11149 2000-10-10  Martin Buchholz  <martin@xemacs.org>
11150
11151         * s/decosf1-3.h: Remove #include of stropts.h
11152         * s/ptx.h: Remove #include of stropts.h
11153         * s/usg5-4.h: Remove #include of stropts.h
11154         * sysproc.h:
11155         * config.h.in:
11156         Use stropts.h, not sys/stropts.h.
11157         Use strtio.h, not sys/strtio.h.
11158
11159 2000-10-04  Martin Buchholz <martin@xemacs.org>
11160
11161         * XEmacs 21.2.36 is released.
11162
11163 2000-09-21  Andy Piper  <andy@xemacs.org>
11164
11165         * glyphs-x.c (x_redisplay_widget): make sure non-structural
11166         changes still involve copying the widget tree.
11167         (update_widget_face): make sure a change is register in the widget
11168         tree. Call update_tab_widget_face appropriately.
11169         (update_tab_widget_face): ditto.
11170         (x_tab_control_redisplay): make sure non-structural changes still
11171         involve copying the widget tree.
11172
11173 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
11174
11175         * lread.c (locate_file): Check the path element is non-nil.
11176
11177 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11178
11179         * lisp.h: Warning suppression for SCO compilers.
11180
11181         * redisplay-tty.c (reset_tty_modes): Fix crash.
11182         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
11183
11184 2000-09-27  Martin Buchholz  <martin@xemacs.org>
11185
11186         Big signal/process handling overhaul.  Bugs fixed:
11187         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
11188         M-x comint-kill-subjob should work for both values nil and t of
11189         process-connection-type. It was broken on most platforms.
11190         Testing on Irix and Cygwin still needed.  Other plaforms tested.
11191         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
11192         * process-unix.c: Signal/Process handling overhaul.
11193         (pty_name): make 64 bytes, as `expect' does, for paranoia.
11194         (allocate_pty): Use all available modern methods of allocating
11195         ptys, falling back to old style BSD allocation as a last resort.
11196         Use allegedly more secure Unix98 pty allocation by default.
11197         (allocate_pty_the_old_fashioned_way): New. the last resort.
11198         (unix_create_process): Push ptem, ldterm, ttcompat where
11199         available.  Autoconfiscate.
11200         (try_to_initialize_subtty): New.
11201         (unix_kill_child_process): Proper signal handling for ptys on most
11202         platforms, using special knowledge of AIX, BSD, etc...
11203         (unix_create_process): Always disconnect_controlling_terminal() for
11204         subprocesses, whether using ptys or not.
11205         * process.h: Remove old getpt-dependent PTY code.
11206         * process.c (Fprocess_send_signal): New, obvious generic function.
11207         (decode_signal): New.
11208         (Finterrupt_process):
11209         (Fkill_process):
11210         (Fquit_process):
11211         (Fstop_process):
11212         (Fcontinue_process):
11213         (Fsignal_process): Use decode_signal.
11214         (process_send_signal):
11215         Many docstring corrections.
11216         Allow any signal to be sent to a process object.
11217         * config.h.in: Add symbols for big signal/process overhaul.
11218         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
11219         * sysproc.h: Include process-related headers, where available:
11220         sys/stropts.h sys/strtio.h pty.h libutil.h
11221         * s/irix4-0.h:
11222         * s/irix5-0.h:
11223         * s/cygwin32.h:
11224         * s/gnu.h:
11225         * s/linux.h:
11226         * s/hpux.h:
11227         * s/aix3-1.h:
11228         Remove old S&M pty stuff.
11229         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
11230         * systty.h: Simplify cpp hackery, improve comments.
11231         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
11232
11233         * editfns.c (Fformat_time_string):
11234         Be a little more paranoid with the return value of ctime.
11235
11236         * fileio.c (check_executable):
11237         (check_writable):
11238         Use symbolic constants X_OK, W_OK.
11239
11240         * console-x.c (split_up_display_spec): Fix a warning.
11241
11242 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11243
11244         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11245         * ntproc.c (sys_spawnve): make_string ==> build_string
11246         Small clarity improvements.
11247
11248 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11249
11250         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11251
11252         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11253
11254         * config.h.in (HAVE_STRCASECMP): Remove.
11255
11256 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11257
11258         * redisplay-output.c (redisplay_output_pixmap):
11259         Cleaner and possibly more 64-bit correct code.
11260
11261 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11262
11263         * dumper.c (pdump_load_finish): move restoration of
11264         `noninteractive1' to emacs.c (main_1).
11265         * emacs.c (main_1): protect LISP-visible command-line flags
11266         from pdump_load().
11267
11268 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11269
11270         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11271         DUMP_TARGET instead of literal program names.
11272
11273 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11274
11275         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11276
11277 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11278
11279         * *: Spelling mega-patch
11280
11281 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11282
11283         * fns.c (bad_bad_turtle):
11284         Delete "Eek!" comment, since we fixed the bug to which it refers.
11285
11286 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11287
11288         * alloca.c: Replace REGISTER with register.
11289
11290 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11291
11292         * file-coding.c (ucs_to_char): Use countof.
11293
11294 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11295
11296         * file-coding.c: (ucs_to_char):
11297         (complex_vars_of_file_coding):
11298         Use countof instead of sizeof.
11299         Use CHECK_NATNUM instead of CHECK_INT.
11300
11301         * sysdep.c (strcasecmp): Remove.
11302         * device-x.c (ascii_strcasecmp): New.
11303         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11304         Avoid using non-standard non-portable strcasecmp.
11305
11306 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11307
11308         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11309         * font-lock.c: remove reference to emacsfns.h.
11310         * search.c: small doc improvement.
11311         * event-Xt.c: correct file names in comments.
11312         * console-x.h Correct file names in comments.
11313         * frame.c: Correct file names in comments.
11314         * event-stream.c: remove Energize from comments.
11315
11316 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11317
11318         * symeval.h (DEFERROR_STANDARD):
11319         (DEFERROR):
11320         (DEFSYMBOL):
11321         (DEFSYMBOL_NO_DUMP):
11322         (DEFSYMBOL_MULTIWORD_PREDICATE):
11323         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11324         (DEFKEYWORD):
11325         The construct &##name is not sensible C.
11326         Fixes compilation errors with Unixware native compiler.
11327
11328 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11329
11330         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11331         (next_frame_internal): Removed.  We now just have next_frame.
11332         (next_frame):
11333         Write a simpler and cleaner one-pass algorithm.
11334         Remove called_from_delete_device arg and #ifdefed-out code.
11335         (previous_frame):
11336         Renamed from prev_frame.  Update callers.
11337         Cleaned up to have an analogous implementation to next_frame.
11338         (other_visible_frames_internal): Remove the
11339         called_from_delete_device bogus arg, and hence, remove this
11340         function.  Just use other_visible_frames().
11341
11342         * window.c (Fnext_window):
11343         Prettify docstring.
11344         Since next_frame() is guaranteed to return a frame, remove check
11345         for nil inserted in previous patch.
11346         (Fprevious_window):
11347         Prettify docstring.
11348         Make code look more like Fnext_window.
11349         (window_loop):
11350         Respect the `console' arg when iterating through windows.
11351         Fixes bug: (get-buffer-window buffer t device) not respecting
11352         the `device' arg.
11353         This function needs more work, as others have pointed out.
11354
11355         * frame.h: Rename prev_frame to previous_frame.
11356         device_matches_console_spec no longer takes a `frame' arg.
11357
11358         * s/gnu.h:
11359         * s/linux.h:
11360         * s/hpux.h:
11361         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11362         From "Golubev I. N." <gin@mo.msk.ru>.
11363
11364         * make-src-depend: Fix typo.
11365
11366 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11367
11368         * window.c (Fnext_window):
11369         next_frame() might return nil, not a frame.
11370         Fixes this crash:
11371         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11372
11373         * frame.c (next_frame_internal):
11374         We've passed a frame if we've passed its device.
11375         Fixes this crash:
11376         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11377 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11378
11379 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11380
11381         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11382         Allow option to suppress accelerators in menu/dialog items.
11383         (populate_or_checksum_helper): Pass dialog title through above.
11384
11385 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11386
11387         * event-msw.c (mswindows_key_to_emacs_keysym):
11388         Add "pause" key, fix "menu" key.
11389
11390 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11391
11392         * eval.c (reinit_vars_of_eval):
11393         Increase max_lisp_eval_depth to 1000,
11394         required for thai-xtis.el to byte-compile under some circumstances.
11395
11396 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11397
11398         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11399         From Kenichi Handa.
11400
11401 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11402
11403         * make-src-depend: Make the generated Makefiles smaller.
11404
11405         * s/hpux.h (SETUP_SLAVE_PTY):
11406         Provide a %d in the format string for the errno argument.
11407
11408         * editfns.c (Ftemp_directory):
11409         Warning fix.
11410         Avoid buffer overrun on very long file name.
11411
11412         * input-method-xlib.c (XIM_init_device):
11413         6th parameter of XRegisterIMInstantiateCallback has different
11414         pointer types on different OSes, so simply cast to (void *).
11415
11416         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11417
11418         * sysdll.c (dll_open):
11419         shl_load will hang hard if passed a NULL filename.
11420         Simply return NULL for compatibility with dlopen.
11421         * sysdll.c: Conform to XEmacs coding standards.
11422
11423         * sysdep.c (get_pty_max_bytes):
11424         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11425
11426 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11427
11428         * tooltalk.c: Add #include <syssignal.h>
11429
11430 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11431
11432         * s/hpux.h: Don't use undefined function sigunblock().
11433
11434 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11435
11436         * config.h.in: Add HAVE_BALLOON_HELP.
11437         * emacs.c: Use HAVE_BALLOON_HELP.
11438         * Makefile.in.in (x_objs):
11439         Make Balloon Help conditional on finding shape.h.
11440
11441 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11442
11443         * syntax.c (regex_emacs_buffer_p): New variable.
11444         * syntax.h (regex_emacs_buffer_p): extern.
11445         * search.c (looking_at_1):
11446         (string_match_1):
11447         (fast_string_match):
11448         (search_buffer): Set regex_emacs_buffer_p.
11449         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11450         when before_dot, at_dot, after_dot.
11451
11452 2000-08-23  Andy Piper  <andy@xemacs.org>
11453
11454         * gui-x.c (popup_selection_callback): Only set action_occurred
11455         when we really have an image instance.
11456         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11457
11458 2000-08-23  Andy Piper  <andy@xemacs.org>
11459
11460         * gui-msw.c (mswindows_handle_gui_wm_command): set
11461         action_occurred.
11462         * gui-x.c (popup_selection_callback): ditto.
11463
11464         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11465         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11466         (struct Lisp_Image_Instance): add action_occurred flag.
11467
11468         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11469         (image_instance_changed): ditto.
11470         (reset_frame_subwindow_instance_cache): only unmap windows - do
11471         not remove them from the cache also.
11472
11473         * glyphs-widget.c (tab_control_update): better debug.
11474         (progress_gauge_update): ditto.
11475         (layout_update): ditto.
11476         (layout_instantiate): ditto.
11477         (tab_control_order_only_changed): cope with null pending items.
11478
11479         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11480         debug. Force selection of an item when an action occurred. Cope
11481         with null pending_items.
11482         (mswindows_progress_gauge_redisplay): better debug.
11483         * glyphs-x.c (x_tab_control_redisplay): ditto.
11484
11485         * redisplay.c (redisplay_frame): reset the frame cache if the
11486         frame is garbaged.
11487
11488         * window.c (Fset_window_configuration): potentially re-enable
11489         frame cache reset.
11490         (window_unmap_subwindows): need to finalize instances here since
11491         it is only used in mark_window_as_deleted.
11492
11493 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11494
11495         * nas.c (SndOpenDataForReading):
11496         nas.c (WaveOpenDataForReading):
11497         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11498         Somehow escaped from the 2000-08-14 patch.
11499
11500 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11501
11502         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11503         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11504
11505 2000-08-21  Andy Piper  <andy@xemacs.org>
11506
11507         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11508         window if it is not already displayed.
11509
11510         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11511         it is not already displayed.
11512
11513         * window.c (Fset_window_configuration): don't reset the frame
11514         cache.
11515
11516         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11517         instances from the frame cache if we are actually finalizing them.
11518         (reset_frame_subwindow_instance_cache): reset frame cache only
11519         after unmapping everything.
11520         (map_subwindow): set displayed flag after mapping.
11521
11522 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11523
11524         * data.c (indirect_function):
11525         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11526
11527         * eval.c (function_argcount):
11528         Use original function when signaling errors.
11529
11530 2000-08-18  Andy Piper  <andy@xemacs.org>
11531
11532         * frame.c (delete_frame_internal): use new
11533         free_frame_subwindow_instances name.
11534
11535         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11536         (add_tab_item): make return type correct.
11537         (mswindows_tab_control_instantiate): assert index of tab.
11538         (mswindows_tab_control_redisplay): Re-code to use
11539         gui_item_equal_sans_selected and gui_item_list_find_selected.
11540
11541         * glyphs-widget.c (tab_control_update): Correct comment.
11542
11543         * window.c (window_unmap_subwindows): use new
11544         unmap_subwindow_instance_cache_mapper.
11545         (window_unmap_subwindows_cache_mapper): deleted.
11546         (Fset_window_configuration): comparisons should now be with
11547         EQ. Preserve the subwindow instance cache across configuration
11548         changes.
11549         (allocate_window): ditto.
11550         (make_dummy_parent): ditto.
11551
11552         * glyphs.c (free_frame_subwindow_instances): rename from
11553         free_frame_subwindow_instance_cache. finalize all instances rather
11554         than just those in the display cache.
11555         (finalize_all_subwindow_instances): walk windows unmapping and
11556         finalizing subwindows.
11557         (unmap_subwindow_instance_cache_mapper): moved from
11558         window.c. Allow finalization as well as unmapping.
11559
11560         * gui.c (gui_item_list_find_selected): new function.
11561
11562         * gui.h (gui_item_list_find_selected): declare.
11563
11564         * glyphs-x.c (x_tab_control_redisplay): pick tab
11565         explicitly. Re-code to use gui_item_equal_sans_selected and
11566         gui_item_list_find_selected.
11567
11568         * glyphs-x.h: add lwlib-utils.h
11569
11570         * buffer.c (Frecord_buffer): undo previous change.
11571
11572 2000-08-09  Vin Shelton  <acs@xemacs.org>
11573
11574         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11575         possible.  Create temporary files more securely.  The patch was
11576         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11577         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11578         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11579         for details.
11580
11581 2000-08-07  Ben Wing  <ben@xemacs.org>
11582
11583         * getloadavg.c: remove duplicate (and windows-breaking)
11584         includes of fcntl.h and sys/file.h.
11585
11586         * nt.c: remove duplicate getloadavg() definition.
11587
11588         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11589         encodings.
11590
11591 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11592
11593         * eval.c (function_argcount): If function needs to be autoloaded
11594         actually use the loaded definition.
11595         GCPRO function.
11596
11597 2000-08-05  Ben Wing  <ben@xemacs.org>
11598
11599         * getloadavg.c: add prototype for getloadavg().  remove
11600         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11601         of the code).  remove duplicate header includes.
11602
11603         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11604
11605         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11606         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11607         useful load average.
11608
11609         * alloc.c (reinit_alloc_once_early): removed references to
11610         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11611         the lisp vars are the only things referencing the malloc_sbrk_*
11612         vars, and they were already if 0'd out.  these vars only exist
11613         in the older malloc.c, which is basically unused, and they're
11614         only for informational purposes.
11615
11616         * m\*.h: removed useless VIRT_ADDR_VARIES.
11617
11618         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11619
11620 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11621
11622         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11623         color if the image is a mono pixmap.
11624
11625 2000-07-30  Ben Wing  <ben@xemacs.org>
11626
11627         * Makefile.in.in (release):
11628         Remove stray @.
11629
11630         * buffer.c (directory_is_current_directory):
11631         * dired-msw.c (mswindows_get_files):
11632         * dired.c:
11633         * dired.c (Fdirectory_files):
11634         * dired.c (file_name_completion_stat):
11635         * dired.c (Ffile_attributes):
11636         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11637         preprocessor tricks, to avoid problems on some machines
11638         (e.g. SCO).
11639
11640         * callproc.c (egetenv): GC docs.
11641
11642         * console-msw.h:
11643         * console-msw.h (struct mswindows_dialog_id):
11644         * lrecord.h (lrecord_type):
11645         New object for use with MSW dialogs.
11646
11647         * console.h (struct console_methods):
11648         New enable/disable frame methods, for proper modal dialogs.
11649
11650         * device-msw.c (msprinter_default_printer): Fix to follow
11651         proper Mule conventions.
11652
11653         * device-msw.c:
11654         * device-msw.c (signal_open_printer_error):
11655         * device-msw.c (msprinter_init_device):
11656         * device-msw.c (ensure_not_printing):
11657         * device-msw.c (plist_get_margin):
11658         * device-msw.c (Fmsprinter_select_settings):
11659         * device-msw.c (finalize_devmode):
11660         * device-msw.c (Fmsprinter_settings_despecialize):
11661         * device-msw.c (signal_enum_priner_error):
11662         * extents.c (decode_extent):
11663         * extents.c (decode_map_extents_flags):
11664         * extents.c (decode_extent_at_flag):
11665         * extents.c (Fextent_at):
11666         * extents.c (Fextents_at):
11667         * extents.c (symbol_to_glyph_layout):
11668         [[[[2]]]] Use structured errors.
11669
11670         * dialog-msw.c:
11671         * dialog-msw.c (mswindows_is_dialog_msg):
11672         * dialog-msw.c (mark_mswindows_dialog_id):
11673         * dialog-msw.c (dialog_proc):
11674         * dialog-msw.c (handle_question_dialog_box):
11675         * dialog-msw.c (syms_of_dialog_mswindows):
11676         Define new object to clean up marking; use it as a dialog identifier.
11677         Call new delete-dialog-box-hook.
11678
11679         * dialog-x.c (dbox_selection_callback):
11680         * dialog-x.c (dbox_descriptor_to_widget_value):
11681         * dialog-x.c (x_make_dialog_box_internal):
11682         Call new delete-dialog-box-hook.
11683         Return an id.
11684
11685         * dialog.c:
11686         * dialog.c (syms_of_dialog):
11687         * dialog.c (vars_of_dialog):
11688         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11689
11690         * eval.c:
11691         * eval.c (signal_call_debugger):
11692         when noninteractive, output stack traces on the console instead
11693         of in a (never-seen) buffer.
11694
11695         * eval.c (signal_type_error):
11696         * eval.c (invalid_argument_2):
11697         * lisp.h:
11698         new funs for use w/structured errors.
11699
11700         * event-Xt.c:
11701         * event-Xt.c (x_to_emacs_keysym):
11702         * event-Xt.c (describe_event):
11703         * event-Xt.c (emacs_Xt_event_handler):
11704         * event-Xt.c (vars_of_event_Xt):
11705         * event-msw.c:
11706         * event-msw.c (mswindows_wnd_proc):
11707         * event-msw.c (vars_of_event_mswindows):
11708         rename {x,mswindows}-debug-events to debug-{}-events for
11709         consistency with other debug-foo variables.
11710
11711         * event-stream.c:
11712         document next-event more clearly.
11713
11714         * fileio.c (Ffile_name_directory):
11715         * fileio.c (Ffile_name_nondirectory):
11716         * fileio.c (Funhandled_file_name_directory):
11717         * fileio.c (file_name_as_directory):
11718         * fileio.c (Ffile_name_as_directory):
11719         * fileio.c (directory_file_name):
11720         * fileio.c (Fdirectory_file_name):
11721         * fileio.c (Fmake_temp_name):
11722         * fileio.c (Ffile_truename):
11723         * fileio.c (Fsubstitute_in_file_name):
11724         * fileio.c (expand_and_dir_to_file):
11725         * fileio.c (barf_or_query_if_file_exists):
11726         * fileio.c (check_executable):
11727         * fileio.c (Ffile_exists_p):
11728         * fileio.c (Ffile_writable_p):
11729         * fileio.c (Ffile_directory_p):
11730         * fileio.c (Ffile_regular_p):
11731         * fileio.c (Ffile_modes):
11732         * fileio.c (Ffile_newer_than_file_p):
11733         * fileio.c (Fverify_visited_file_modtime):
11734         * fileio.c (Fset_visited_file_modtime):
11735         * fileio.c (auto_save_1):
11736         (1). (2).
11737         fix up gcpro's.
11738
11739         * frame-msw.c:
11740         * frame-msw.c (mswindows_init_frame_1):
11741         * frame-msw.c (mswindows_enable_frame):
11742         * frame-msw.c (error_frame_unsizable):
11743         * frame-msw.c (msprinter_init_frame_1):
11744         * frame-msw.c (msprinter_init_frame_3):
11745         * frame-msw.c (console_type_create_frame_mswindows):
11746         (2).
11747         implement new enable/disable frame methods.
11748
11749         * frame-x.c:
11750         * frame-x.c (x_enable_frame):
11751         * frame-x.c (console_type_create_frame_x):
11752         implement new enable/disable frame methods.
11753
11754         * frame.c:
11755         * frame.c (Fdisable_frame):
11756         * frame.c (syms_of_frame):
11757         * frame.h (struct frame):
11758         implement new enable/disable frame methods/functions.
11759
11760         * general-slots.h:
11761         add initial-focus.
11762
11763         * glyphs-msw.c (mswindows_widget_instantiate):
11764         comment that initial-focus should be implemented.
11765
11766         * glyphs-widget.c:
11767         * glyphs-widget.c (check_valid_instantiator):
11768         * glyphs-widget.c (check_valid_orientation):
11769         * glyphs-widget.c (check_valid_tab_orientation):
11770         * glyphs-widget.c (check_valid_justification):
11771         * glyphs-widget.c (check_valid_border):
11772         * glyphs-widget.c (check_valid_callback):
11773         * glyphs-widget.c (check_valid_int_or_function):
11774         * glyphs-widget.c (check_valid_string_or_vector):
11775         * glyphs-widget.c (check_valid_item_list_1):
11776         * glyphs-widget.c (widget_validate):
11777         * glyphs-widget.c (combo_box_validate):
11778         * glyphs-widget.c (widget_instantiate):
11779         * glyphs-widget.c (syms_of_glyphs_widget):
11780         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11781         * glyphs-widget.c (image_instantiator_combo_box):
11782         * glyphs-widget.c (image_instantiator_scrollbar):
11783         * glyphs-widget.c (image_instantiator_tab_control):
11784         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11785         (2).
11786         support (unimplemented) keyword initial-focus.
11787         reindent long macros.
11788
11789         * glyphs-x.c (x_redisplay_widget):
11790         * glyphs-x.c (x_button_instantiate):
11791         * glyphs-x.c (x_button_redisplay):
11792         * glyphs-x.c (x_progress_gauge_instantiate):
11793         * glyphs-x.c (x_edit_field_instantiate):
11794         * glyphs-x.c (x_combo_box_instantiate):
11795         * glyphs-x.c (x_tab_control_instantiate):
11796         * glyphs-x.c (x_label_instantiate):
11797         * gui-x.c:
11798         * gui-x.c (button_item_to_widget_value):
11799         * gui-x.c (gui_items_to_widget_values_1):
11800         * gui-x.c (gui_item_children_to_widget_values):
11801         * gui-x.c (gui_items_to_widget_values):
11802         * gui-x.h:
11803         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11804         add new flag to gui-parsing routines to indicate whether
11805         accelerator specs should be supported.
11806
11807         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11808
11809         * glyphs.h (struct Lisp_Image_Instance):
11810         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11811         add initial-focus flag.
11812
11813         * gui.c:
11814         * gui.c (syms_of_gui):
11815         * gui.c (vars_of_gui):
11816         clean up menu-no-selection-hook.
11817
11818         * gui.h:
11819         support delete-dialog-box-hook.
11820
11821         * lread.c (Fload_internal):
11822         * lread.c (locate_file_in_directory_mapper):
11823         (1).
11824
11825         * lrecord.h:
11826         * lrecord.h (struct toolbar_button):
11827         * lrecord.h (syms_of_toolbar):
11828         document how to create a new object.
11829
11830         * menubar-msw.c (mswindows_char_is_accelerator):
11831         may be called on frames w/o menus.
11832
11833         * menubar.c (vars_of_menubar):
11834         clean up :filter docs.
11835
11836         * nt.c (readdir):
11837         * ntproc.c:
11838         (1).
11839
11840         * process-nt.c:
11841         * process-nt.c (validate_signal_number):
11842         * process-nt.c (signal_cannot_launch):
11843         * process-nt.c (nt_create_process):
11844         * process-nt.c (nt_send_process):
11845         * process-nt.c (nt_kill_child_process):
11846         * process-nt.c (nt_open_network_stream):
11847         * process-nt.c (syms_of_process_nt):
11848         (2).
11849         delete quote-handling.  call new lisp code that does it better.
11850
11851         * process-unix.c (connect_to_file_descriptor):
11852         * process-unix.c (allocate_pty):
11853         * process-unix.c (unix_send_process):
11854         * process-unix.c (unix_kill_child_process):
11855         * process-unix.c (unix_open_network_stream):
11856         * process-unix.c (unix_open_multicast_group):
11857         (1). (2).
11858
11859         * process.c:
11860         * process.c (Fstart_process_internal):
11861         (2).  need to canonicalize process path even if absolute.
11862
11863         * select-msw.c (symbol_to_ms_cf):
11864         * select-msw.c (ms_cf_to_symbol):
11865         * select-msw.c (cf_is_autofreed):
11866         * select-msw.c (mswindows_destroy_selection):
11867         * select.c:
11868         * select.c (syms_of_select):
11869         * select.h:
11870         support dibv5, fix bugs. (from Mike Alexander)
11871
11872         * select.c (Fget_selection_internal):
11873         * select.c (select_convert_out):
11874
11875         * sysdep.c:
11876         * sysdep.c (xemacs_stat):
11877         renamed.
11878
11879         * sysdep.c (mkdir):
11880         * sysdep.c (rmdir):
11881         but keep original stat() here because we provide encapsulation
11882         around these funs.
11883
11884         * sysfile.h:
11885         * sysfile.h (fstat):
11886         remove stat garbage.
11887
11888         * syswindows.h:
11889         fix X/MSW conflict.
11890         don't include tchar.h.  it's inappropriate because it makes
11891         compile-time distinctions when we want runtime distinctions.
11892         (we provide our own tchar replacements)
11893
11894         * toolbar.c:
11895         use default object printer for toolbar-button.
11896
11897         * unexcw.c:
11898         make sure we don't encapsulate.
11899
11900         * window.c (vars_of_window):
11901         emphasize that temp-buffer-show-hook is obsolete.
11902
11903 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11904
11905         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11906         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11907
11908         * events.c (Fevent_timestamp_lessp):
11909         Not 64-bit clean.  Use EMACS_INT, not int.
11910
11911 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11912
11913         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11914         unsigned int and changed the last enum to
11915         lrecord_type_last_built_in_type.
11916         (lrecord_implementations_table): changed prototype to know how
11917         long the array is supposed to be.
11918         (lrecord_type_count): new unsigned int to keep track of the
11919         current number of lisp lrecord types.
11920         (DEFINE_EXTERNAL_LRECORD):
11921         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11922         dynamic-modules to declare new lisp types. They are the same
11923         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11924         int for each new type, and increment lrecord_type_count by 1.
11925
11926         * alloc.c (lrecord_implementations_table): Changed to reference
11927         lrecord_type_last_built_in_type for the size of the array.
11928         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11929
11930 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11931
11932         * glyphs.h (check_valid_item_list): Renamed from
11933         check_valid_item_list_1.
11934
11935 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11936
11937         * select.c (Qselect_coerce): New.
11938         * select.c (Vselection_coercion_alist): New.
11939         * select.c (syms_of_select): Declare.
11940         * select.c (get-selection-internal): Use it.
11941         Use the new select-coerce functionality.
11942
11943         * select.c (select_coerce): New.
11944         * select.h (select_coerce): Declare.
11945         New function to coerce one type of data into another.
11946
11947 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11948
11949         * callproc.c (Fcall_process_internal):
11950         (Fcall_process_internal):
11951         * process-unix.c (unix_create_process):
11952         Save and restore the value of errno, so that error messages are accurate.
11953
11954 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11955
11956         * elhash.c (print_hash_table):
11957         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11958         Prettify docstrings and indentation.
11959
11960 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11961
11962         * window.c (Fwindow_pixel_edges): Subtract frame border and
11963         gutter size.
11964
11965 2000-07-31  Andy Piper  <andy@xemacs.org>
11966
11967         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11968         will acknowledge the change.
11969
11970         * glyphs.h: declare tab_control_order_only_changed.
11971
11972         * glyphs-x.c (x_tab_control_redisplay): use
11973         tab_control_order_only_changed.
11974
11975         * glyphs-widget.c (tab_control_order_only_changed): new function.
11976
11977         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11978         tab_control_order_only_changed.
11979
11980         * gui.c (gui_item_equal_sans_selected): new function.
11981         (gui_item_equal): use it.
11982
11983         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11984         :properties in favor of :items..
11985
11986         * glyphs-widget.c (check_valid_item_list): rename from
11987         check_valid_item_list_1.
11988         (check_valid_item_list_1): renamed.
11989         (combo_box_validate): deprecate :properties in favor of :items.
11990         (widget_instantiate): ditto.
11991         (tab_control_update): ditto.
11992         (image_instantiator_combo_box): ditto.
11993         (image_instantiator_tree_view): ditto.
11994         (image_instantiator_tab_control): ditto.
11995         (layout_post_instantiate): remove dead code.
11996
11997         * print.c (debug_print_no_newline): only write to debugger if in
11998         WIN32_NATIVE.
11999
12000         * elhash.c (Fmake_hash_table): update doc string.
12001
12002         * event-msw.c (mswindows_wnd_proc): don't allow processing of
12003         messages whilst in GC. This at least stops XEmacs crashing but has
12004         the potential for wierd behaviour.
12005
12006 2000-07-31  Martin Buchholz  <martin@xemacs.org>
12007
12008         * config.h.in:
12009         Make existence of s&m files optional.
12010
12011         * s/bsd386.h: Remove HAVE_GETLOADAVG.
12012         * s/freebsd.h: Remove HAVE_GETLOADAVG.
12013         * s/gnu.h: Remove HAVE_GETLOADAVG.
12014         * s/netbsd.h: Remove HAVE_GETLOADAVG.
12015         * s/sol2.h: Remove HAVE_GETLOADAVG.
12016         * lisp.h: Remove getloadavg() declaration.
12017         * fns.c:
12018         Include <sys/loadavg.h> if available.
12019         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
12020         * config.h.in:  Group together getloadavg()-related macros.
12021         Use only configure-time tests to detect getloadavg().
12022
12023 2000-07-30  Martin Buchholz  <martin@xemacs.org>
12024
12025         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
12026
12027 2000-07-25  Andy Piper  <andy@xemacs.org>
12028
12029         * syswindows.h: add tchar.h for native builds.
12030
12031         * frame.c (syms_of_frame): remove set-glyph-image.
12032
12033         * general-slots.h: add Qset_glyph_image.
12034
12035         * glyphs-widget.c (layout_update): add domain arg to
12036         set-glyph-image.
12037         (syms_of_glyphs_widget): remove set-glyph-image.
12038
12039 2000-07-23  Ben Wing  <ben@xemacs.org>
12040
12041         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
12042         Vpopup_frame_list.
12043
12044 2000-07-22  Andy Piper  <andy@xemacs.org>
12045
12046         * symsinit.h: add syms_of_win32().
12047
12048         * gui-msw.c (syms_of_gui_mswindows): remove
12049         Fmswindows_shell_execute.
12050         (Fmswindows_shell_execute): moved to win32.c.
12051
12052         * emacs.c (main_1): add syms_of_win32 ().
12053
12054         * win32.c (init_potentially_nonexistent_functions): rewrite in
12055         compiler-friendly terms.
12056         (Fmswindows_shell_execute): move here from gui-msw.c.
12057         (syms_of_win32): new.
12058
12059         * device-msw.c (Fmswindows_printer_list): clean up args to
12060         EnumPrinters.
12061         Don't include tchar under cygwin or mingw.
12062         (msprinter_default_printer): make cygwin-friendly.
12063
12064 2000-07-21  Andy Piper  <andy@xemacs.org>
12065
12066         * glyphs-widget.c (image_instantiator_tree_view): use tab
12067         control's update function.
12068         (layout_property): new function. Retrieve items.
12069
12070         * glyphs-msw.c (mswindows_tree_view_redisplay): new
12071         function. Re-populate the tree view from the pending items.
12072
12073         * glyphs.c (instantiate_image_instantiator): Make sure the domain
12074         is designated the parent if the domain is an image instance. This
12075         is needed so that dirtiness can be cascade up the hierarchy and
12076         thus for layout children to be redisplayed correctly.
12077         (allocate_image_instance): rename glyph -> parent.
12078
12079         * redisplay.h: change redisplay_output_layout signature.
12080
12081         * redisplay-msw.c (mswindows_output_display_block): use domain
12082         arg.
12083
12084         * redisplay-x.c (x_output_display_block): use domain arg.
12085
12086 2000-07-10  Andy Piper  <andy@xemacs.org>
12087
12088         * window.c (Fset_window_configuration): add comment.
12089
12090         * redisplay-output.c (compare_runes):
12091         (redisplay_output_subwindow): redisplay rather than update subwindow.
12092         (redisplay_output_layout): ditto.
12093
12094         * redisplay-msw.c (mswindows_frame_output_end):
12095         (mswindows_frame_output_end): make defer window pos optional.
12096
12097         * lisp.h: add Flast.
12098
12099         * glyphs.h (struct image_instantiator_methods): add dest_mask top
12100         normalize method. Change update method to be for changed
12101         instantiators. Add redisplay method. Change signature of layout
12102         method.
12103         (struct Lisp_Image_Instance): add instantiator.
12104         (IMAGE_INSTANCE_INSTANTIATOR): new.
12105         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
12106         (XIMAGE_INSTANCE_INSTANTIATOR): new.
12107         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
12108
12109         * glyphs.c:
12110         (find_instantiator_differences): new function.
12111         (Fset_instantiator_property): new convenience function.
12112         (check_image_instance_structure): strictly check for vector
12113         instantiators.
12114         (normalize_image_instantiator): make non-static.
12115         (instantiate_image_instantiator): pass on dest_mask and use new
12116         signatures for image_instance_layout and friends.
12117         (mark_image_instance): mark the instantiator. Mark the subwindow
12118         face not the widget face.
12119         (image_instance_equal): add instantiator.
12120         (image_instance_hash): ditto.
12121         (allocate_image_instance): ditto.
12122         (Fset_image_instance_property): removed.
12123         (Fimage_instance_file_name): ditto.
12124         (Fcolorize_image_instance): ditto.
12125         (image_instance_layout): add offsets to be set.
12126         (update_image_instance): new function. update an image instance
12127         from its changed instantiator.
12128         (inherit_normalize): add dest_mask.
12129         (xbm_normalize): ditto.
12130         (xface_normalize): ditto.
12131         (xpm_normalize): ditto.
12132         (text_update): set_property -> update.
12133         (image_instantiate): use the glyph identity as a hash key, not the
12134         instantiator.
12135         (glyph_width): use new image_instance_layout signature.
12136         (glyph_ascent): ditto.
12137         (glyph_descent): ditto.
12138         (glyph_height): ditto.
12139         (glyph_query_geometry): ressurrect.
12140         (glyph_layout): ditto.
12141         (redisplay_subwindow): update -> redisplay.
12142         (syms_of_glyphs): add Fset_instantiator_property.
12143         (image_instantiator_format_create): set_property -> update.
12144
12145         * glyphs-x.c:
12146         (autodetect_normalize): add dest_maks to signature.
12147         (x_redisplay_subwindow): update -> redisplay.
12148         (x_redisplay_widget): ditto.
12149         (x_button_redisplay): ditto.
12150         (x_progress_gauge_redisplay): ditto.
12151         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
12152         stacking order.
12153         (console_type_create_glyphs_x): update -> redisplay.
12154         (image_instantiator_format_create_glyphs_x): ditto.
12155
12156         * glyphs-widget.c:
12157         (check_valid_instantiator): disallow glyphs in the instantiator,
12158         they must now be vectors.
12159         (check_valid_instantiator_list): ditto.
12160         (glyph_instantiator_to_glyph): use internal symbol rather than
12161         intern.
12162         (widget_update): renamed from widget_set_property. Call cascaded
12163         update methods.
12164         (redisplay_widget): renamed from update_widget.
12165         (widget_layout): image_instance_layout now takes position as well
12166         as size.
12167         (widget_normalize): ditto.
12168         (widget_instantiate): ditto.
12169         (tab_control_query_geometry) ditto.:
12170         (tab_control_update): renamed from tab_control_set_property.
12171         (progress_gauge_update): set_property -> update.
12172         (layout_normalize): rewrite so that child instantiators are
12173         normalized also.
12174         (layout_update): new function. Create glyphs from the normalized
12175         children and cope with any other layout keywords. We do not
12176         instantiate children here that will be take care of by
12177         redisplay_output_layout.
12178         (layout_instantiate): call layout_update and not much else.
12179         (layout_post_instantiate): not sure whether this is needed
12180         anymore.
12181         (layout_query_geometry): query glyph geometry rather than
12182         image_instance geometry.
12183         (layout_layout): set offsets from pass in parameters. Use glyph
12184         geometry and layout functions rather than image instance ones.
12185         (native_layout_layout): ditto.
12186         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
12187         (image_instantiator_widget): set_property -> update.
12188         (image_instantiator_buttons): ditto.
12189         (image_instantiator_progress_guage): ditto.
12190         (image_instantiator_tab_control): ditto.
12191         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
12192         (image_instantiator_layout): add update method.
12193
12194         * glyphs-msw.c (bmp_normalize):
12195         (mswindows_resource_normalize): add dest_mask so that it can be
12196         proprogated by layout_normalize.
12197         (begin_defer_window_pos): make optional because it may not be the
12198         right thing to do and it introduces differences with X.
12199         (mswindows_unmap_subwindow): ditto.
12200         (mswindows_map_subwindow): ditto.
12201         (mswindows_redisplay_subwindow): renamed from
12202         mswindows_update_subwindow.
12203         (mswindows_redisplay_widget): ditto.
12204         (mswindows_button_redisplay): renamed from
12205         mswindows_button_update. Update is now what the instantiation
12206         function does for a changed instantiator.
12207         (mswindows_progress_gauge_instantiate): set the progress value
12208         here if appropriate.
12209         (mswindows_tab_control_redisplay): cope with re-ordering of the
12210         members of the tab widget by simply selecting the new top
12211         widget. This makes things appear ok if you click on a tab.
12212         (mswindows_combo_box_instantiate): image_instance_layout now takes
12213         position as well as size.
12214         (mswindows_progress_gauge_redisplay): renamed from
12215         mswindows_progress_gauge_update.
12216         (console_type_create_glyphs_mswindows): fix update -> redisplay.
12217         (image_instantiator_format_create_glyphs_mswindows): ditto.
12218
12219         * glyphs-eimage.c (jpeg_normalize):
12220         (gif_normalize):
12221         (png_normalize):
12222         (tiff_normalize): add dest_mask so that it can be proprogated by
12223         layout_normalize.
12224
12225         * elhash.c:
12226         (print_hash_table):
12227         (hash_table_weakness_validate):
12228         (decode_hash_table_weakness):
12229         (Fhash_table_weakness):
12230         (Fhash_table_type):
12231         (syms_of_elhash): use Ben's naming scheme for hashtable types..
12232
12233         * console.h (struct console_methods): move update_* to
12234         redisplay_*.
12235
12236 2000-07-20  Ben Wing  <ben@xemacs.org>
12237
12238         * *.[ch] (XSETOBJ): remove unused middle argument.
12239         lisp-disunion.h: correct wrap_object() to one argument.
12240
12241 2000-07-15  Ben Wing  <ben@xemacs.org>
12242
12243         * s/cygwin32.h:
12244         * s/cygwin32.h (CYGWIN_CONV_PATH):
12245         Add missing logb prototype for v1.1.
12246         Use post-b20 names and alias to pre-b20 names when pre-b20.
12247
12248         * s/windowsnt.h: [5].
12249
12250 2000-07-15  Ben Wing  <ben@xemacs.org>
12251
12252         * Makefile.in.in (x_objs):
12253         * Makefile.in.in (sheap_objs):
12254         * Makefile.in.in (objs):
12255         added win32.o, cosmetic cleanups.
12256
12257         * alloc.c (Fmake_byte_code):
12258         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12259         etc. macros which declare their own args now.
12260
12261         * alloc.c (syms_of_alloc):
12262         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12263
12264         * buffer.c:
12265         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12266
12267         * buffer.c (Fget_file_buffer):
12268         Fixed GCPRO problem.
12269
12270         * buffer.c (get_truename_buffer):
12271         Fixed comment about GC checking.
12272
12273         * buffer.c (syms_of_buffer):
12274         Undeclared those dedicated frame funs.
12275         [2].
12276
12277         * buffer.h:
12278         Define convenience macros for internal/external conversions.
12279         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12280         and Qenvironment_variable_encoding for cleaner code.
12281
12282         * bufslots.h:
12283         Remove dedicated-frame; in lisp.
12284
12285         * bytecode.c (funcall_compiled_function):
12286         [1].
12287
12288         * bytecode.c (syms_of_bytecode):
12289         [2].
12290
12291         * console-msw.c:
12292         * console-msw.c (mswindows_show_console): Rewrote.
12293
12294         * console-msw.c (Fmswindows_debugging_output): New.
12295         Sends to OutputDebugString (special MSWin debugger interface).
12296
12297         * console-msw.c (Fmswindows_message_box):
12298         Fixed stupid bugs so it works when called from kill-emacs.
12299
12300         * console-msw.c (syms_of_console_mswindows):
12301         Declare Fmswindows_debugging_output.
12302
12303         * console-msw.h:
12304         New MSWin prototypes.
12305
12306         * console-msw.h (struct mswindows_frame):
12307         New entry last-click-mods for improved button-modifier support.
12308
12309         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12310         New struct entry `popup' with corresponding accessor.
12311
12312         * console-x.c:
12313         * console-x.c (split_up_display_spec):
12314         * console-x.c (get_display_arg_connection):
12315         * console-x.c (x_semi_canonicalize_console_connection):
12316         * console-x.c (x_canonicalize_device_connection):
12317         [[[6]]]: Change char to more specific type.
12318         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12319
12320         * console-x.c (x_semi_canonicalize_console_connection):
12321         * console-x.c (x_canonicalize_device_connection):
12322         [[[9]]]: Fix up error signalling to use new structured error system.
12323
12324         * console-x.h:
12325         [[[4]]]: Define codesys aliases:
12326         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12327         Qx_color_name_encoding, Qx_display_name_encoding.
12328
12329         * console.h (struct console_methods):
12330         New method make_dialog_box_internal supersedes older
12331         popup_dialog_box method.
12332
12333         * data.c:
12334         Define many new errors, part of new structured errors.
12335
12336         * data.c (init_errors_once_early):
12337         * data.c (syms_of_data):
12338         [2].
12339
12340         * device-msw.c (mswindows_init_device):
12341         [[[5]]]: Cleanup to support NT 3.51.
12342
12343         * device-msw.c (decode_devmode): Cleanup.
12344
12345         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12346         * device-msw.c (mswindows_handle_print_dialog_box):
12347         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12348         * device-msw.c (syms_of_device_mswindows):
12349         Delete the dialog box primitives recently introduced by Kirill and
12350         instead interface to general dialog box interface.
12351
12352         * device-x.c:
12353         * device-x.c (compute_x_app_name):
12354         * device-x.c (x_init_device):
12355         * device-x.c (Fx_valid_keysym_name_p):
12356         * device-x.c (Fx_set_font_path):
12357         [6].
12358         [7].
12359
12360         * device.h (wrap_device): New.
12361         First of its kind; meant to replace XSETDEVICE.
12362
12363         * dialog-msw.c: Many file-dialog symbols.
12364
12365         * dialog-msw.c (mswindows_register_popup_frame): New.
12366         * dialog-msw.c (mswindows_is_dialog_msg): New.
12367         For supporting kbd traversal in dialog boxes.
12368
12369         * dialog-msw.c (dialog_proc):
12370         Support hitting ESC in dialogs.
12371
12372         * dialog-msw.c (struct):
12373         Common dialog box errors.
12374
12375         * dialog-msw.c (handle_file_dialog_box): New.
12376         Add file dialog code.
12377
12378         * dialog-msw.c (handle_question_dialog_box):
12379         Redo existing code to support new question dialog syntax.
12380
12381         * dialog-msw.c (console_type_create_dialog_mswindows):
12382         We support new dialog console method.
12383
12384         * dialog-msw.c (syms_of_dialog_mswindows):
12385         * dialog-msw.c (vars_of_dialog_mswindows):
12386         New file dialog symbols, vars.
12387
12388         * dialog-x.c:
12389         * dialog-x.c (maybe_run_dbox_text_callback):
12390         * dialog-x.c (dbox_descriptor_to_widget_value):
12391         * dialog-x.c (x_make_dialog_box_internal):
12392         * dialog-x.c (console_type_create_dialog_x):
12393         Mule-ize entire file.
12394         Redo to support question dialog syntax.
12395         [6].
12396
12397         * dialog.c:
12398         * dialog.c (Fmake_dialog_box_internal):
12399         * dialog.c (syms_of_dialog):
12400         Kill old popup-dialog-box, replace with new primitive.
12401         Just call device method or signal error.
12402
12403         * eldap.c (Fldap_open):
12404         * eldap.c (Fldap_search_basic):
12405         * eldap.c (Fldap_add):
12406         * eldap.c (Fldap_modify):
12407         [1].
12408         [7].
12409
12410         * emacs.c:
12411         * emacs.c (make_arg_list_1):
12412         * emacs.c (make_arg_list):
12413         Mule-ize call to dll_init().
12414         [6].
12415         [8].
12416
12417         * emacs.c (make_argc_argv):
12418         * emacs.c (free_argc_argv):
12419         * emacs.c (init_cmdargs):
12420         * emacs.c (main_1):
12421         * emacs.c (Fkill_emacs):
12422         * emacs.c (Fdump_emacs):
12423         Update comments about what can be used in syms_* etc.
12424         Call init_win32() when necessary.
12425         Fix up MS Win dialog box in kill-buffer to actually work right.
12426         [7].
12427
12428         * eval.c:
12429         * eval.c (For):
12430         * eval.c (Fand):
12431         * eval.c (Fprogn):
12432         * eval.c (Fprog1):
12433         * eval.c (Fprog2):
12434         * eval.c (FletX):
12435         * eval.c (Flet):
12436         * eval.c (condition_case_3):
12437         * eval.c (Feval):
12438         * eval.c (function_argcount):
12439         * eval.c (funcall_lambda):
12440         [1].
12441
12442         * eval.c (type_error): New.
12443         * eval.c (maybe_type_error): New.
12444         * eval.c (continuable_type_error): New.
12445         * eval.c (maybe_continuable_type_error): New.
12446         * eval.c (type_error_with_frob): New.
12447         * eval.c (maybe_type_error_with_frob): New.
12448         * eval.c (continuable_type_error_with_frob): New.
12449         * eval.c (maybe_continuable_type_error_with_frob): New.
12450         New functions for use with structured errors.
12451
12452         * event-Xt.c:
12453         * event-Xt.c (x_event_to_emacs_event):
12454         Buttons are now modifiers too.
12455
12456         * event-Xt.c (emacs_Xt_current_event_timestamp):
12457         Implement new event method.
12458         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12459
12460         * event-msw.c:
12461         * event-msw.c (ntpipe_shove_writer): [5].
12462         * event-msw.c (mswindows_enqueue_mouse_button_event):
12463         * event-msw.c (mswindows_drain_windows_queue):
12464         * event-msw.c (mswindows_wnd_proc): [7].
12465         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12466         * event-msw.c (mswindows_modifier_state):
12467         Throughout: support new button modifiers.
12468
12469         * event-msw.c (emacs_mswindows_current_event_timestamp):
12470         Implement new event method.
12471         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12472
12473         * event-stream.c:
12474         * event-stream.c (event_stream_current_event_timestamp): New.
12475         * event-stream.c (maybe_kbd_translate): New functionality.
12476         * event-stream.c (vars_of_event_stream):
12477         Document new kbd-translate-table functionality.
12478
12479         * event-stream.c (Fcurrent_event_timestamp): New.
12480         New primitive for use in fabricated events.
12481         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12482
12483         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12484
12485         * events.c:
12486         * events.c (Fmake_event):
12487         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12488         [1].
12489         [9].
12490
12491         * events.c (format_event_object): fix gcc warnings.
12492
12493         * events.c (Fevent_timestamp): Document new primitives.
12494
12495         * events.c (TIMESTAMP_HALFSPACE): New.
12496
12497         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12498         comparing timestamps correctly (half-space algorithm).
12499
12500         * events.c (Fevent_modifier_bits): Doc fix.
12501
12502         * events.c (Fevent_modifiers): Major doc addition.
12503         * events.c (event_x_y_pixel_internal): Typo fix.
12504         * events.c (syms_of_events): Declare new primitives.
12505
12506         * events.h:
12507         Update long comment for button modifiers, timestamps.
12508
12509         * events.h (struct event_stream):
12510         New current_event_timestamp method.
12511
12512         * extents.c:
12513         * extents.c (extent_in_region_p):
12514         * extents.c (decode_extent):
12515         * extents.c (Fset_extent_parent):
12516         * extents.c (decode_map_extents_flags):
12517         Fix gcc warnings.
12518         [9].
12519
12520         * extents.c (struct extent_at_arg):
12521         * extents.c (decode_extent_at_flag):
12522         * extents.c (extent_at_mapper):
12523         * extents.c (extent_at_bytind):
12524         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12525         * extents.c (Fextents_at): New primitive. [9].
12526         * extents.c (symbol_to_glyph_layout): [9].
12527         Support new primitive `extents-at'.
12528
12529
12530         * extents.c (get_text_property_bytind):
12531         extent_at_bytind has another arg.
12532         [9].
12533
12534         * extents.c (syms_of_extents): New primitive.
12535
12536         * file-coding.c (Fmake_coding_system): [1].
12537         * file-coding.c (subsidiary_coding_system): fix gcc warning
12538         * file-coding.c (syms_of_file_coding): [2].
12539
12540         * fileio.c (Fexpand_file_name):
12541         * fileio.c (Fsysnetunam):
12542         * fileio.c (Ffile_exists_p):
12543         * fileio.c (Ffile_executable_p):
12544         * fileio.c (Fverify_visited_file_modtime):
12545         Clean up GCPROing.
12546
12547         * fileio.c (syms_of_fileio): [2].
12548
12549         * filelock.c (lock_file_1):
12550         * filelock.c (current_lock_owner):
12551         * filelock.c (lock_if_free):
12552         * filelock.c (lock_file):
12553         * filelock.c (unlock_file):
12554         Clean up GCPROing.
12555
12556         * fns.c (concat): Fix gcc warning.
12557
12558         * fns.c (Fmember):
12559         * fns.c (Fold_member):
12560         * fns.c (Fmemq):
12561         * fns.c (Fold_memq):
12562         * fns.c (memq_no_quit):
12563         * fns.c (Fassoc):
12564         * fns.c (Fold_assoc):
12565         * fns.c (Fassq):
12566         * fns.c (Fold_assq):
12567         * fns.c (assq_no_quit):
12568         * fns.c (Frassoc):
12569         * fns.c (Fold_rassoc):
12570         * fns.c (Frassq):
12571         * fns.c (Fold_rassq):
12572         * fns.c (rassq_no_quit):
12573         * fns.c (Fdelete):
12574         * fns.c (Fold_delete):
12575         * fns.c (Fdelq):
12576         * fns.c (Fold_delq):
12577         * fns.c (delq_no_quit):
12578         * fns.c (Fremassoc):
12579         * fns.c (Fremassq):
12580         * fns.c (remassq_no_quit):
12581         * fns.c (Fremrassoc):
12582         * fns.c (Fremrassq):
12583         * fns.c (remrassq_no_quit):
12584         * fns.c (Freverse):
12585         * fns.c (mapcar1):
12586         [1].
12587
12588         * frame-msw.c (mswindows_init_frame_1):
12589         * frame-msw.c (mswindows_delete_frame):
12590         Register popups with dialog code so keyboard traversing works.
12591
12592         * frame-tty.c (tty_raise_frame_no_select): [1].
12593
12594         * frame-x.c:
12595         * frame-x.c (x_set_frame_text_value):
12596         * frame-x.c (x_set_frame_properties):
12597         * frame-x.c (x_create_widgets):
12598         [7].
12599
12600         * frame.c:
12601         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12602
12603         * frame.h (wrap_frame): New.
12604         Macro like wrap_device.
12605
12606         * general.c:
12607         * general.c (SYMBOL):
12608         * general.c (syms_of_general):
12609         Major reorg.  This is now just a wrapper and symbols themselves
12610         are listed in general-slots.h.
12611
12612         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12613         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12614
12615         * glyphs-msw.c (mswindows_native_layout_instantiate):
12616         Add DS_CONTROL so keyboard traversal will work.
12617
12618         * glyphs-widget.c:
12619         * glyphs-widget.c (syms_of_glyphs_widget):
12620         Move some symbols to general-slots.h.
12621
12622         * glyphs-x.c:
12623         * glyphs-x.c (xbm_instantiate_1):
12624         * glyphs-x.c (x_xbm_instantiate):
12625         * glyphs-x.c (x_xface_instantiate):
12626         * glyphs-x.c (autodetect_instantiate):
12627         * glyphs-x.c (cursor_font_instantiate):
12628         * glyphs-x.c (x_update_widget):
12629         * glyphs-x.c (x_widget_instantiate):
12630         * glyphs.c (bitmap_to_lisp_data):
12631         * glyphs.c (pixmap_to_lisp_data):
12632         [7].
12633
12634         * glyphs.c (syms_of_glyphs):
12635         [2].
12636
12637         * gui-x.c:
12638         * gui-x.c (print_widget_value):
12639         * gui-x.c (menu_separator_style_and_to_external):
12640         * gui-x.c (add_accel_and_to_external):
12641         * gui-x.c (button_item_to_widget_value):
12642         * gui-x.c (gui_items_to_widget_values_1):
12643         * gui-x.c (gui_items_to_widget_values):
12644         * gui-x.c (syms_of_gui_x):
12645         * gui-x.c (vars_of_gui_x):
12646         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12647         [9].
12648
12649         * gui-x.h:
12650         Muleize, prototype changes matching gui-x.c.
12651
12652         * gui.c:
12653         * gui.c (separator_string_p):
12654         * gui.c (gui_item_add_keyval_pair):
12655         * gui.c (make_gui_item_from_keywords_internal):
12656         * gui.c (signal_too_long_error):
12657         * gui.c (parse_gui_item_tree_item):
12658         * gui.c (syms_of_gui):
12659         * gui.c (vars_of_gui):
12660         * gui.h:
12661         menu-no-selection-hook moved here (used by MSWin).
12662         Move some symbols to general-slots.h.
12663         [6].
12664         [9].
12665
12666         * insdel.c (get_buffer_pos_char):
12667         * insdel.c (get_buffer_range_char):
12668         Add GC comments.
12669
12670         * keymap.c (keymap_lookup_directly):
12671         * keymap.c (keymap_store):
12672         * keymap.c (ensure_meta_prefix_char_keymapp):
12673         * keymap.c (describe_map):
12674         * keymap.h:
12675         Support new button modifiers.
12676
12677         * lisp-disunion.h (wrap_object):
12678         * lisp-disunion.h (XSETOBJ):
12679         Rename make_obj to wrap_object.
12680
12681         * lisp-union.h:
12682         * lisp-union.h (make_int):
12683         * lisp-union.h (make_char):
12684         Support wrap_object.
12685
12686         * lisp.h:
12687         * lisp.h (LIST_LOOP):
12688         * lisp.h (EXTERNAL_LIST_LOOP):
12689         * lisp.h (LIST_LOOP_2):
12690         * lisp.h (EXTERNAL_LIST_LOOP_1):
12691         * lisp.h (EXTERNAL_LIST_LOOP_2):
12692         * lisp.h (EXTERNAL_LIST_LOOP_3):
12693         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12694         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12695         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12696         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12697         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12698         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12699         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12700         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12701         * lisp.h (struct Lisp_Symbol):
12702         * lisp.h (maybe_continuable_error_with_frob):
12703         Fix up section comments.
12704         Add new types for char to indicate usage.
12705         Delete symbols auto-generated from general-slots.h.
12706         Add prototypes for structured error functions.
12707         Add long comments describing looping macros and change interface
12708         so that lvalues are automatically declared.
12709         Add NO_DECLARE macro in case callers want to declare lvalues
12710         themselves.
12711
12712         * lread.c (read_syntax_error):
12713         * lread.c (continuable_read_syntax_error):
12714         * lread.c (read_structure):
12715         * lread.c (sequence_reader):
12716         * lread.c (read_list_conser):
12717         * lread.c (read_compiled_function):
12718         Rename syntax_error and continuable_syntax_error to avoid clash
12719         with same-named structured error functions.
12720
12721         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12722         * menubar-msw.c (populate_menu_add_item):
12723         * menubar-msw.c (populate_or_checksum_helper):
12724         [5].
12725         [9].
12726
12727         * menubar-x.c:
12728         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12729         Mule-ize whole file.
12730
12731         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12732
12733         * mule-charset.c (Fmake_charset):
12734         * mule-wnnfns.c (Fwnn_set_param):
12735         [1].
12736
12737         * ntproc.c (create_child):
12738         * ntproc.c (Fwin32_set_current_locale):
12739         Add comments portending doom.
12740
12741         * objects-msw.c:
12742         * objects-msw.c (old_font_enum_callback_2):
12743         * objects-msw.c (font_enum_callback_1):
12744         * objects-msw.c (mswindows_enumerate_fonts):
12745         [5].
12746
12747         * objects-x.c:
12748         * objects-x.c (allocate_nearest_color):
12749         * objects-x.c (x_parse_nearest_color):
12750         * objects-x.c (x_initialize_color_instance):
12751         * objects-x.c (x_print_color_instance):
12752         * objects-x.c (x_finalize_color_instance):
12753         * objects-x.c (x_valid_color_name_p):
12754         * objects-x.c (x_initialize_font_instance):
12755         * objects-x.c (x_print_font_instance):
12756         * objects-x.c (valid_x_font_name_p):
12757         * objects-x.c (truename_via_FONT_prop):
12758         * objects-x.c (truename_via_random_props):
12759         * objects-x.c (truename_via_XListFonts):
12760         * objects-x.c (x_font_truename):
12761         * objects-x.c (x_font_instance_truename):
12762         * objects-x.c (x_font_instance_properties):
12763         * objects-x.c (x_list_fonts):
12764         * objects-x.c (x_find_charset_font):
12765         Mule-ize entire file.
12766         [7].
12767
12768         * objects-x.h:
12769         Mule-verify.
12770
12771         * print.c:
12772         * print.c (std_handle_out_external):
12773         * print.c (debug_print_no_newline):
12774         * print.c (syms_of_print):
12775         Output to all debugger kinds in debug-print.
12776         Fix console-output code under MSWin to actually work.
12777
12778         * process-nt.c (send_signal):
12779         * process-nt.c (nt_create_process):
12780         Use newer Unicode macros.
12781
12782         * process-unix.c (unix_create_process):
12783         * process-unix.c (unix_canonicalize_host_name):
12784         * process-unix.c (unix_open_network_stream):
12785         [7].
12786
12787         * scrollbar-x.c:
12788         Mule-verify.
12789
12790         * search.c (syms_of_search):
12791         [2].
12792
12793         * select-msw.c (mswindows_destroy_selection):
12794         Use LIST_LOOP_2.
12795
12796         * select-x.c (symbol_to_x_atom):
12797         [7].
12798
12799         * select.c (syms_of_select):
12800         [2].
12801
12802         * sound.c (Fplay_sound_file):
12803         [7].
12804
12805         * specifier.c:
12806         * specifier.c (decode_specifier_type):
12807         * specifier.c (Fvalid_specifier_locale_type_p):
12808         * specifier.c (check_valid_locale_or_locale_type):
12809         * specifier.c (decode_locale):
12810         * specifier.c (decode_locale_type):
12811         * specifier.c (decode_locale_list):
12812         * specifier.c (check_valid_domain):
12813         * specifier.c (decode_specifier_tag_set):
12814         * specifier.c (Fcanonicalize_tag_set):
12815         * specifier.c (Fdefine_specifier_tag):
12816         * specifier.c (Fspecifier_tag_predicate):
12817         * specifier.c (check_valid_inst_list):
12818         * specifier.c (check_valid_spec_list):
12819         * specifier.c (decode_how_to_add_specification):
12820         * specifier.c (check_modifiable_specifier):
12821         * specifier.c (specifier_add_spec):
12822         * specifier.c (boolean_validate):
12823         * specifier.c (display_table_validate):
12824         [9].
12825
12826         * specifier.c (syms_of_specifier):
12827         Move some symbols to general-slots.h.
12828         [2].
12829
12830         * symbols.c:
12831         * symbols.c (Fmapatoms):
12832         * symbols.c (Fapropos_internal):
12833         Add GCPROs.
12834
12835         * symbols.c (set_default_buffer_slot_variable):
12836         * symbols.c (set_default_console_slot_variable):
12837         [1].
12838
12839         * symbols.c (defsymbol_massage_name_1):
12840         * symbols.c (defkeyword_massage_name):
12841         * symbols.c (deferror_1):
12842         * symbols.c (deferror):
12843         * symbols.c (deferror_massage_name_and_message):
12844         * symeval.h:
12845         * symeval.h (DEFSYMBOL):
12846         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12847
12848         * symbols.c (syms_of_symbols):
12849         [2].
12850
12851         * symsinit.h:
12852         * symsinit.h (init_win32): New.
12853         Also new is syms_of_dialog_mswindows.
12854
12855         * syswindows.h:
12856         Add new Unicode macros, missing Cygwin wide-char functions,
12857         convenience conversion macros for Qmswindows_tstr, macros for
12858         encapsulating required MSWin <-> Cygwin filename conversions,
12859         prototype for dynamically-extracted (not in NT 3.51) functions.
12860
12861         * toolbar-x.c:
12862         Mule-verify.
12863
12864         * tooltalk.c (Fadd_tooltalk_message_arg):
12865         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12866         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12867         [7].
12868
12869         * tooltalk.c (syms_of_tooltalk):
12870         [2].
12871
12872         * unexnt.c:
12873         * unexnt.c (unexec):
12874         Fix up headers, declaration of unexec() to be more standard.
12875
12876 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12877
12878         * offix.h: Revert change to guard macros - they're used in offix.c!
12879
12880 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12881
12882         * lisp.h: Defsubred Fdelete.
12883
12884         * console-msw.h:  (msprinter_default_printer): Added.
12885
12886         * console-msw.c (msprinter_canonicalize_console_connection):
12887         (msprinter_canonicalize_device_connection): Added.
12888
12889         * device-msw.c (msprinter_default_printer):
12890         (Fmswingows_get_default_printer):
12891         (signal_enum_priner_error):
12892         (Fmswingows_printer_list): Added.
12893
12894 2000-07-19  Martin Buchholz <martin@xemacs.org>
12895
12896         * XEmacs 21.2.35 is released.
12897
12898 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12899
12900         * select-x.c (x_handle_selection_request):
12901         Text selected in xemacs and pasted into xterm failed to appear.
12902         Spelling fixes and cosmetic changes.
12903
12904 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12905
12906         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12907         XEmacs frame (fix for doubling chars in dialog boxes).
12908
12909 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12910
12911         * select.c (select_convert_in, select_convert_out):
12912         Don't call intern() every time.
12913
12914         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12915         * select.c (vars_of_select): Initialise them.
12916
12917 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12918
12919         * select.c (selection-coercible-types): New.
12920
12921         * select.c (own-selection-internal):
12922         * select.c (get-selection-internal):
12923         MULE bug fix - these should default to COMPOUND_TEXT and not
12924         STRING for MULE. I think.
12925
12926         * select.c (select_convert_out): Use selection-coercible-types
12927         to find types that we can attempt to perform coercions on.
12928
12929 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12930
12931         * mule-wnnfns.c:
12932         * mule-canna.c:
12933         Add coding: cookie to identify encoding.
12934
12935         * mule-canna.c (CANNA_mode_keys): make static.
12936         Use proper prototypes, even for functions of no arguments.
12937         Remove external prototype for Fding().
12938
12939         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12940
12941         * select.c (syms_of_select): Add missing DEFSUBR.
12942
12943 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12944
12945         * select.c (get_selection_internal, own_selection_internal):
12946         Make the type default to STRING, rather than placing a nil type
12947         into Vselection_alist.
12948
12949 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12950
12951         * gpmevent.c (tty_selection_exists_p):
12952         * gpmevent.c (tty_own_selection):
12953         Updated parameter lists.
12954
12955 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12956
12957         * select.h (selection-alist): Removed declaration.
12958
12959         * select.h (get_local_selection):
12960         * select.c (get_local_selection):
12961         Made static.
12962
12963         * select.h (convert_selection): Removed declaration.
12964         * select.c (convert_selection): Removed.
12965         This function belongs in Lisp.
12966
12967         * select.h (select_convert_in): Declare.
12968         * select.h (select_convert_out): Declare.
12969         * select.c (select_convert_in): New.
12970         * select.c (select_convert_out): New.
12971         New conversion functions for other files to call.
12972
12973         * select.h (select_notify_buffer_kill): Declare.
12974         * select.c (select_notify_buffer_kill): New.
12975         New functions that get called from kill-buffer.
12976
12977         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12978         X-specific lisp code.
12979
12980         * select.h: Declare some of the lisp-visible functions for
12981         external use.
12982
12983         * select.c (clean_local_selection_data): Removed. This was
12984         a disgusting function, and previously should have been in
12985         select-x.c in any case. The functionality is now provided
12986         in select-convert-from-integer (select.el).
12987
12988         * select.c (available-selection-types): Fixed stupidity where
12989         INTEGER and ATOM got added twice. Also add STRING when we see an
12990         extent.
12991
12992         * select.c (get-selection-internal): Removed symbol stripping. No
12993         longer causes conversion when data comes from the internal cache.
12994
12995         * select.c (syms_of_select): Added new functions.
12996
12997         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12998         error checking - previously this called abort!
12999
13000         * select-x.c (x_own_selection): Changed comment.
13001
13002         * select-x.c (x_handle_selection_request): Use select_convert_out.
13003         Don't mess with selection-alist; it's an internal variable of select.c.
13004
13005         * select-x.c (x_get_foreign_selection): Use select_convert_in.
13006
13007         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
13008         rather than messing with selection-alist.
13009
13010         * select-msw.c (mswindows_get_foreign_selection):
13011         Use TO_INTERNAL_FORMAT rather than hacking.
13012
13013 2000-07-14  Martin Buchholz  <martin@xemacs.org>
13014
13015         * process-unix.c (unix_open_multicast_group):
13016         (unix_open_multicast_group): Remove useless casts.
13017
13018 2000-07-13  Martin Buchholz  <martin@xemacs.org>
13019
13020         * sound.c (Fplay_sound): Fix `unused variable' warning.
13021
13022         * emacs.c (main): Use correct type for _environ on SCO5.
13023
13024 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
13025
13026         * console.h (own_selection_method):
13027         * console.h (selection_exists_p_method):
13028         * console.h (available_selection_types_method): New.
13029         * console.h (register_selection_data_type_method): New.
13030         * console.h (selection_data_type_name): New.
13031
13032         * console-msw.h (mswindows_destroy_selection): Declare it.  New
13033         function & alist to track GlobalAlloc()'d handles that need
13034         releasing when the clipboard data gets replaced or emptied.
13035
13036         * event-msw.c (mswindows_wnd_proc): Call it.
13037
13038         * lisp.h, general.c (Qappend): New symbol representing a
13039         `how-to-add' mode.
13040
13041         * select.c (own-selection-internal):
13042         * select.c (selection-exists-p):
13043         * select.c (available-selection-types): New.
13044         * select.c (register-selection-data-type): New.
13045         * select.c (selection-data-type-name): New.  New functions to deal
13046         with device-specific selection data formats.
13047         * select.c (selection-converter-out-alist): Renamed.
13048         * select.c (selection-converter-in-alist): New.
13049         * select.c (selection-appender-alist): New.  Added new alists.
13050         * select.c (syms_of_select, vars_of_select): Added new symbols &
13051         variables.
13052         * select.c (get_local_selection): Split.
13053         * select.c: Removed spurious type checking - selections may now be
13054         of any type, not just strings.
13055         * select.c (own-selection-internal):
13056
13057         * select.h, select.c (convert_selection): New. Created
13058         convert_selection() function based on get_local_selection().
13059         * select.h, select.c (QCF_*): New symbols representing mswindows
13060         clipboard formats.
13061         * select.h, select.c (Qreplace_all, Qreplace_existing): New
13062         symbols representing `how-to-add' modes.
13063
13064         * select-msw.c (x_sym_p): New.
13065         * select-msw.c (symbol_to_ms_cf): New.
13066         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
13067         symbols & clipboard formats. Can also handle string names.
13068         * select-msw.c (mswindows_own_selection):
13069         * select-msw.c (mswindows_selection_exists_p):
13070         Added `data-type' parameter. Use it.
13071         * select-msw.c (mswindows_available_selection_types): New.
13072         * select-msw.c (mswindows_register_selection_data_type): New.
13073         * select-msw.c (mswindows_selection_data_type_name): New.
13074         * select-msw.c (mswindows_own_selection):
13075         * select-msw.c (mswindows_get_foreign_selection):
13076         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
13077         * select-msw.c (console_create_select_mswindows): Added new methods.
13078         * select-msw.c (mswindows_destroy_selection): New.
13079         * select-msw.c (Vhandle_alist): New list.
13080         * select-msw.c (mswindows_own_selection):
13081
13082         * select-x.c (x_own_selection):
13083         * select-x.c (x_selection_exists_p):
13084         * select-x.c: Added some comments about maybe using new
13085         functionality.
13086         * select-x.c (x_own_selection):
13087
13088         * specifier.c: Remove definition of Qappend (now in general.c)
13089         * specifier.c (syms_of_specifier): Remove Qappend.
13090
13091 2000-07-12  Martin Buchholz  <martin@xemacs.org>
13092
13093         * config.h.in: Add socklen_t.
13094
13095         * s/decosf4-0.h: No special compiler flags needed or desired.
13096         In particular, undefine _BSD for DEC OSF 4.0.
13097
13098 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13099
13100         * redisplay-msw.c (msprinter_frame_output_end): Added.
13101         (console_type_create_redisplay_mswindows): Referred the above.
13102
13103         * frame.c (setup_frame_without_minibuffer): Do not create a
13104         default minibuffer frame on a printer device.
13105
13106         * frame-msw.c (apply_dc_geometry): Added.
13107         (msprinter_start_page):
13108         (msprinter_init_frame_3):
13109         (msprinter_eject_page): Use it.
13110
13111         * console-msw.h (struct msprinter_frame): Added pix_left and top,
13112         and removed residual duplex and orientation properties.
13113
13114 2000-07-11  Martin Buchholz  <martin@xemacs.org>
13115
13116         * eval.c (function_argcount): Work around a DEC CC compiler bug.
13117
13118         * unexalpha.c: Remove system prototypes from C sources!
13119
13120 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
13121
13122         * eval.c: Remove references to M-x edit-options in DEFUNs for
13123         `defvar' and `defconst'.
13124
13125 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13126
13127         * config.h.in: Remove SMART_INCLUDE hackery.
13128
13129         PostgreSQL hacking:
13130         * config.h.in: Don't use SMART_INCLUDE.
13131
13132         * postgresql.h: Include libpq-fe.h here.  Fix typo.
13133         * inline.c: Simply #include "postgresql.h"
13134         * postgresql.c:
13135         - Don't use SMART_INCLUDE
13136         - Use simply "const".
13137         - Use standard doc string conventions.
13138         - Use correct type for result of PQstatus.
13139
13140 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13141
13142         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
13143
13144         C++ compilation changes.
13145         * config.h.in (EXTERN_C): Define.
13146         * config.h.in (not): This is also a C++ keyword.
13147         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
13148         * cm.c: Use EXTERN_C.
13149         * redisplay-tty.c: Use EXTERN_C.
13150         * sysdep.c: Use EXTERN_C.  Remove Gould support.
13151
13152 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13153
13154         * general.c: Remove duplicate definition for Qfunction.
13155
13156 2000-07-08  Ben Wing  <ben@xemacs.org>
13157
13158         * device-msw.c (msprinter_init_device):
13159         * device-msw.c (sync_printer_with_devmode):
13160         * device-msw.c (handle_devmode_changes):
13161         * device-msw.c (print_dialog_worker):
13162         * device-msw.c (Fmsprinter_apply_settings):
13163         * device-msw.c (hash_devmode):
13164         * device-msw.c (Fmsprinter_settings_despecialize):
13165         use Qmswindows_tstr, not Qctext.
13166
13167         * vm-limit.c (check_memory_limits):
13168         avoid infinite loop printing warning messages.
13169
13170 2000-07-05  Craig Lanning  <lanning@scra.org>
13171
13172         * Makefile.in.in: Add support for including the Windows resources
13173         when building with the cygwin and mingw targets.
13174
13175         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
13176         not set or not correct.
13177         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
13178         (init_initial_directory): Don't try to use $PWD on the
13179         WIN32_NATIVE target.
13180
13181         * s\cygwin32.h:
13182         [[Add -mwindows to eliminate console window.]] not required --ben
13183         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13184         (MAIL_USE_POP): removed; now handled by configure.
13185
13186         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
13187         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
13188         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13189         (MAIL_USE_POP): removed; now handled by configure.
13190         (ENCAPSULATE_STAT): from Dan Holmsand, added.
13191         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
13192         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
13193         constant string.
13194         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
13195         up from <winsock.h> via systime.h.
13196         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
13197         (getpagesize): from Dan Holmsand, added.
13198         Added #endif which was left dangling by Ben's mega patch; added
13199         comment to help prevent this in the future.
13200
13201         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
13202
13203 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13204
13205         * console-msw.h (struct mswindows_device): Removed unnecessary
13206         cached device geometry values.
13207         Added update_tick and an accessor macro.
13208         (Lisp_Devmode): Added lrecord declaration.
13209         (struct msprinter_device): Contain devmode as a Lisp object.
13210         Added mswindows_get_selected_frame_hwnd();
13211
13212         * console.h (struct console_methods): Indentation nitpicking.
13213
13214         * device-msw.c (mswindows_init_device): Do not initialize geometry
13215         cache. Initialize update tick.
13216         (mswindows_device_system_metrics): Ask the device for its geometry.
13217         (global_free_2_maybe):
13218         (devmode_to_hglobal):
13219         (handle_printer_changes):
13220         (ensure_not_printing):
13221         (print_dialog_worker):
13222         (Fmsprinter_print_setup_dialog):
13223         (Fmsprinter_print_dialog):
13224         (plist_get_margin):
13225         (plist_set_margin):
13226         (Fmsprinter_page_setup_dialog): Added functions.
13227         (sync_printer_with_devmode):
13228         (handle_devmode_changes):
13229         (Fmsprinter_get_settings):
13230         (Fmsprinter_select_settings):
13231         (Fmsprinter_apply_settings):
13232         (allocate_devmode):
13233         (Fmsprinter_settings_copy):
13234         (Fmsprinter_settings_despecialize):
13235         (print_devmode):
13236         (finalize_devmode):
13237         (equal_devmode):
13238         (hash_devmode): Added functions
13239         (syms_of_device_mswindows): Init devmode lrecord class.
13240
13241         * device.h: Added an exfun for find-device.
13242
13243         * event-msw.c (mswindows_wnd_proc): Do not update the cached
13244         geometry; although, recreate the device compatible DC.
13245
13246         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13247         (msprinter_init_frame_3):
13248         (msprinter_frame_property):
13249         (msprinter_internal_frame_property_p):
13250         (msprinter_frame_properties):
13251         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13252         print job properties (will move to device settings).
13253
13254         * lisp.h: Added symbols.
13255
13256         * general.c (syms_of_general): Declared them.
13257
13258         * hash.c (string_hash): Added.
13259
13260         * lrecord.h (lrecord_type): Added devmode lrecord type.
13261
13262 2000-07-02  Mike Sperber <mike@xemacs.org>
13263
13264         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13265         FreeBSD 4.0.
13266
13267 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13268
13269         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13270         integer.
13271
13272 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13273
13274         * data.c (Fstring_to_number): Don't recognize floating point if
13275         base is not 10.
13276
13277 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13278
13279         * glyphs-widget.c (tab_control_query_geometry):
13280         (widget_query_geometry):
13281         (button_query_geometry):
13282         * glyphs.c (text_query_geometry):
13283         Enforce type correctness.
13284
13285 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13286
13287         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13288         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13289
13290 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13291
13292         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13293         conflicts with gcc's fixincluded version of FOO.h.
13294
13295         * glyphs.h (image_instance_geometry): Remove trailing `,'
13296
13297 2000-06-08  Mike Alexander  <mta@arbortext.com>
13298
13299         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13300         (shove_thread): Don't write the same output twice
13301         (make_ntpipe_output_stream): Increase priority of shove thread
13302         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13303         chance to run
13304         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13305         it.
13306
13307 2000-06-12  Ben Wing  <ben@xemacs.org>
13308
13309         * s\mingw32.h (sigset):
13310         * s\windowsnt.h (sigset):
13311         rename msw_ to mswindows_ for consistency with general convention.
13312
13313 2000-06-12  Ben Wing  <ben@xemacs.org>
13314
13315         * console-msw.c:
13316         * console-msw.c (mswindows_get_console_hwnd):
13317         * console-msw.c (mswindows_ensure_console_allocated):
13318         * console-msw.c (mswindows_hide_console):
13319         * console-msw.c (mswindows_show_console):
13320         * console-msw.c (mswindows_ensure_console_buffered):
13321         * console-msw.c (mswindows_output_console_string):
13322         * console-msw.c (mswindows_windows9x_p):
13323         * console-msw.h:
13324         * device-msw.c (mswindows_get_workspace_coords):
13325         * device-msw.c (mswindows_device_system_metrics):
13326         * dialog-msw.c (mswindows_popup_dialog_box):
13327         * event-msw.c (mswindows_wnd_proc):
13328         * frame-msw.c (mswindows_size_frame_internal):
13329         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13330         * menubar-msw.c (displayable_menu_item):
13331         * menubar-msw.c (mswindows_char_is_accelerator):
13332         * nt.c:
13333         * nt.c (mswindows_sigset):
13334         * nt.c (mswindows_sigrelse):
13335         * nt.c (mswindows_sigpause):
13336         * nt.c (mswindows_raise):
13337         * nt.c (timer_proc):
13338         * ntproc.c:
13339         * ntproc.c (find_child_console):
13340         * ntproc.c (sys_kill):
13341         * print.c:
13342         * print.c (std_handle_out_external):
13343         * process-nt.c (find_child_console):
13344         * process-nt.c (send_signal_the_95_way):
13345         * process-nt.c (ensure_console_window_exists):
13346         * process-nt.c (nt_create_process):
13347         * syssignal.h:
13348         rename msw_ to mswindows_ for consistency with general convention.
13349
13350         * emacs.c:
13351         * dumper.c:
13352         include nt.h, not syswindows.h.
13353
13354         * nt.c (mswindows_fstat):
13355         * nt.c (mswindows_stat):
13356         prefix mswindows_ instead of attempting to directly override the
13357         library functions.  fix declarations.
13358
13359         * nt.h:
13360         include syswindows.h.  move some sysdep.h stuff here.
13361
13362         * ntheap.h:
13363         include syswindows.h, not <windows.h>.
13364
13365         * ntplay.c:
13366         clean up headers.
13367
13368         * sysdep.c:
13369         clean up headers.
13370
13371         * sysdep.c (sys_fstat):
13372         * sysdep.c (sys_stat):
13373         call mswindows versions when appropriate.
13374
13375         * sysdep.h:
13376         move mswin decls to nt.h.
13377
13378         * syswindows.h:
13379         add long comment describing appropriate use of the various windows
13380         headers.
13381
13382 2000-06-11  Ben Wing  <ben@xemacs.org>
13383
13384         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13385
13386 2000-06-10  Ben Wing  <ben@xemacs.org>
13387
13388         * Makefile.in.in (release):
13389         Correction to make sure xemacs.exe always dumped when correct.
13390
13391         * alloca.c:
13392         * balloon_help.c:
13393         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13394
13395         * buffer.c (set_buffer_internal):
13396         [[[[2]]]]: Remove HAVE_FEP code.
13397
13398         * buffer.c (init_initial_directory):
13399         [3].
13400
13401         * bytecode.c:
13402         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13403         individual files.
13404
13405         * callproc.c:
13406         * callproc.c (call_process_cleanup):
13407         * callproc.c (Fold_call_process_internal):
13408         * callproc.c (child_setup):
13409         * callproc.c (getenv_internal):
13410         * callproc.c (init_callproc):
13411         * callproc.c (vars_of_callproc):
13412         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13413         __CYGWIN32__ -> CYGWIN.
13414         DOS_NT -> WIN32_NATIVE.
13415         Remove MSDOS support/references, converting to WIN32_NATIVE
13416           where correct.
13417         __MINGW32__ -> MINGW.
13418         Fix windows.h includes.
13419         Remove bogus HAVE_NTGUI.
13420
13421         * config.h.in:
13422         [2].
13423
13424         * console-msw.c:
13425         mswindows_message_outputted added for use in allowing startup
13426         errors on the console to be seen.
13427
13428         * console-msw.c (msw_ensure_console_allocated):
13429         * console-msw.c (msw_output_console_string):
13430         * console-msw.c (DHEADER):
13431         * console-msw.c (DOPAQUE_DATA):
13432         * console-msw.c (DEVENT):
13433         * console-msw.c (DCONS):
13434         * console-msw.c (DCONSCDR):
13435         * console-msw.c (DSTRING):
13436         * console-msw.c (DVECTOR):
13437         * console-msw.c (DSYMBOL):
13438         * console-msw.c (DSYMNAME):
13439         Fix warnings.
13440
13441         * console-stream.c (stream_init_console):
13442         Fix text/binary problems.
13443
13444         * device-msw.c:
13445         * device-msw.c (mswindows_finish_init_device):
13446         * device-msw.c (mswindows_delete_device):
13447         [1].
13448
13449         * device.c (handle_asynch_device_change):
13450         [3].
13451
13452         * dgif_lib.c:
13453         * dgif_lib.c (DGifOpenFileName):
13454         * dgif_lib.c (DGifOpenFileHandle):
13455         * dgif_lib.c (DGifGetLine):
13456         * dgif_lib.c (DGifGetPixel):
13457         Added config.h/lisp.h, fix up includes.
13458         [1].
13459
13460         * dired-msw.c:
13461         [4].
13462
13463         * dired.c:
13464         * dired.c (file_name_completion):
13465         * dired.c (Ffile_attributes):
13466         * dired.c (syms_of_dired):
13467         [1].
13468
13469         * dumper.c:
13470         * dumper.c (pdump_file_unmap):
13471         * dumper.c (pdump_load):
13472         [1].
13473
13474         * editfns.c:
13475         * editfns.c (Ftemp_directory):
13476         * editfns.c (user_login_name):
13477         * editfns.c (Fuser_real_login_name):
13478         * editfns.c (get_home_directory):
13479         [1].
13480
13481         * elhash.c (finish_marking_weak_hash_tables):
13482         [[[[5]]]]: Fix GCC warnings.
13483
13484         * emacs.c:
13485         * emacs.c (mswindows_handle_hardware_exceptions):
13486         * emacs.c (make_arg_list_1):
13487         * emacs.c (main_1):
13488         * emacs.c (Fkill_emacs):
13489         * emacs.c (Fdump_emacs):
13490         [1].
13491         Fix problems with nested crashes, add long comment.
13492
13493         * event-Xt.c (init_event_Xt_late):
13494         [1].
13495
13496         * event-msw.c:
13497         * event-msw.c (mswindows_dde_callback):
13498         * event-msw.c (mswindows_handle_sticky_modifiers):
13499         * event-msw.c (mswindows_wnd_proc):
13500         [1].
13501         [5].
13502
13503         * events.c (character_to_event):
13504         [1].
13505
13506         * fileio.c:
13507         * fileio.c (Ffile_name_directory):
13508         * fileio.c (Ffile_name_nondirectory):
13509         * fileio.c (directory_file_name):
13510         * fileio.c (Fexpand_file_name):
13511         * fileio.c (Fsubstitute_in_file_name):
13512         * fileio.c (Ffile_name_absolute_p):
13513         * fileio.c (check_executable):
13514         * fileio.c (Ffile_readable_p):
13515         * fileio.c (Ffile_accessible_directory_p):
13516         * fileio.c (Ffile_modes):
13517         * fileio.c (Funix_sync):
13518         * fileio.c (vars_of_fileio):
13519         [1]. [4].
13520
13521         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13522
13523         Expand getdefdir defn.
13524         Fix bogus rename() comment.
13525
13526         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13527         to use standard XEmacs include files, e.g. sysfile.h, rather
13528         than system-specific includes.
13529
13530         * fns.c:
13531         * fns.c (Fsubseq):
13532         [5]. [6].
13533
13534         * frame.c (vars_of_frame):
13535         [1].
13536
13537         * getloadavg.c:
13538         * getloadavg.c (getloadavg):
13539         [1]. [6].
13540         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13541         (We don't use it elsewhere in the code; just add a comment.)
13542
13543         * gif_io.c:
13544         [6].
13545         Add config.h.
13546
13547         * glyphs-msw.c:
13548         * glyphs-msw.c (mswindows_resource_instantiate):
13549         [1].
13550
13551         * glyphs-x.c (x_native_layout_instantiate):
13552         [5].
13553
13554         * gui-msw.c (Fmswindows_shell_execute):
13555         [1].
13556
13557         * insdel.c:
13558         [4].
13559
13560         * lisp.h:
13561         [4]. [5].
13562
13563         * lread.c (locate_file_in_directory_mapper):
13564         [1].
13565
13566         * lstream.c:
13567         [4].
13568
13569         * mem-limits.h:
13570         * mem-limits.h (get_lim_data):
13571         [1].
13572
13573         * menubar-msw.c:
13574         [4].
13575
13576         * ndir.h:
13577         [1].
13578
13579         * nt.c:
13580         * nt.c (getwd):
13581         * nt.c (closedir):
13582         * nt.c (rva_to_section):
13583         * nt.c (mswindows_executable_type):
13584         [1]. [6].
13585         Fix closedir() defn.
13586
13587         * nt.h:
13588         [[[[8]]]]: *_OK defs moved to sysfile.h.
13589
13590         * ntproc.c:
13591         [6]. [7].
13592
13593         * objects-x.c:
13594         [4].
13595
13596         * print.c:
13597         * print.c (std_handle_out_external):
13598         [1]. [4].
13599
13600         * process-nt.c:
13601         * process-nt.c (nt_create_process):
13602         [6].
13603         try to fix process quoting somewhat.
13604
13605         * process-unix.c (unix_create_process):
13606         [1].
13607
13608         * process.c:
13609         * process.c (vars_of_process):
13610         Add Vnull_device.
13611
13612         * process.h:
13613         [1].
13614
13615         * realpath.c:
13616         * realpath.c (xrealpath):
13617         [1].
13618
13619         * redisplay-tty.c (init_tty_for_redisplay):
13620         [3].
13621
13622         * redisplay.c:
13623         [4]. [6].
13624
13625         * scrollbar-msw.c:
13626         [4].
13627
13628         * sheap.c:
13629         * sheap.c (more_static_core):
13630         * sheap.c (report_sheap_usage):
13631         [5]. [6].
13632
13633         * signal.c:
13634         * signal.c (alarm_signal):
13635         [1]. [6].
13636
13637         * sound.c:
13638         [6].
13639
13640         * strftime.c:
13641         * strftime.c (zone_name):
13642         [1]. [5].
13643
13644         * symsinit.h (init_sunpro):
13645         [1].
13646
13647         * syscommctrl.h:
13648         commctrl.h not in Cygwin b20.1.
13649
13650         * sysdep.c:
13651         * sysdep.c (endif):
13652         * sysdep.c (sys_subshell):
13653         * sysdep.c (init_baud_rate):
13654         * sysdep.c (emacs_get_tty):
13655         * sysdep.c (emacs_set_tty):
13656         * sysdep.c (tty_init_sys_modes_on_device):
13657         * sysdep.c (init_system_name):
13658         * sysdep.c (sys_open):
13659         * sysdep.c (interruptible_open):
13660         * sysdep.c (sys_fopen):
13661         * sysdep.c (sys_mkdir):
13662         * sysdep.c (sys_rename):
13663         * sysdep.c (get_process_times_1):
13664         [1]. [6].
13665
13666         * sysdep.h:
13667         [1].
13668
13669         * sysdir.h:
13670         * sysdir.h (DIRENTRY_NONEMPTY):
13671         [1]. [6].
13672
13673         * sysdll.c (dll_init):
13674         * sysdll.h:
13675         [1].
13676
13677         * sysfile.h:
13678         [1]. [6]. [8].
13679         added text/binary defs.
13680
13681         * sysfloat.h:
13682         [1].
13683
13684         * sysproc.h:
13685         * sysproc.h (EDESTADDRREQ):
13686         * sysproc.h (poll_fds_for_input):
13687         [1]. [6].
13688
13689         * syspwd.h:
13690         [6].
13691
13692         * syssignal.h:
13693         [1].
13694
13695         * systime.h:
13696         [1]. [6].
13697
13698         * systty.h:
13699         [1].
13700
13701         * syswindows.h:
13702         [1].
13703         Always define WIN32_LEAN_AND_MEAN.
13704
13705         * unexcw.c (unexec):
13706         [5].
13707
13708         * unexec.c:
13709         * unexec.c (copy_text_and_data):
13710         * unexec.c (adjust_lnnoptrs):
13711         [1].
13712
13713         * unexnt.c:
13714         * unexnt.c (_start):
13715         [1].
13716
13717 2000-06-07  Ben Wing  <ben@xemacs.org>
13718
13719         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13720         was used only as a model.  We've long since extracted any useful
13721         logic or code out of this. (I just did an exhaustive search.)
13722
13723         * s\msdos.h: Removed.
13724
13725         * s\windows95.h: Removed.
13726
13727 2000-06-10  Ben Wing  <ben@xemacs.org>
13728
13729         * s\cygwin32.h:
13730         [1]. [5].
13731         Don't use extern with fun defs.
13732
13733         * s\mingw32.h:
13734         [1]. [7].
13735         Remove nt\inc include.
13736         Remove getdisk, getdefdir. (The former is unused, the latter
13737         expanded in fileio.h.)
13738
13739         * s\windowsnt.h:
13740         * s\windowsnt.h (WIN32_NATIVE):
13741         * s\windowsnt.h (HAVE_STRCASECMP):
13742         [1]. [7].
13743         Add long comment about preprocessor changes.
13744         Remove getdisk, getdefdir. (The former is unused, the latter
13745         expanded in fileio.h.)
13746
13747 2000-06-10  Ben Wing  <ben@xemacs.org>
13748
13749         * m\arm.h:
13750         * m\delta.h:
13751         * m\intel386.h:
13752         * m\sequent.h:
13753         * m\template.h:
13754         * m\windowsnt.h:
13755         [1].
13756         Remove bogus/unused NO_SOCK_SIGIO.
13757
13758 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13759
13760         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13761         not an Emchar.
13762
13763 2000-06-04  Mike Sperber <mike@xemacs.org>
13764
13765         * casetab.c (set_case_table): For `set-standard-case-table',
13766         actually deposit the new case tables where the rest of XEmacs can
13767         see them.
13768
13769 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13770
13771         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13772
13773 2000-06-05  Ben Wing  <ben@xemacs.org>
13774
13775         * callproc.c (child_setup): Don't do close_load_descs() under
13776         MS Windows.  Put in a comment explaining why.
13777
13778 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13779
13780         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13781         Toolkit shell" which breaks `kill-compilation' on Windows NT
13782         native, retaining STDERR handling improvements.
13783
13784 2000-06-01  Andreas Jaeger  <aj@suse.de>
13785
13786         * s/s390.h: Support for S390, based on a patch by Martin
13787         Schwidefsky <schwidefsky@de.ibm.com>.
13788
13789 2000-05-30  Andy Piper  <andy@xemacs.org>
13790
13791         * window.c (allocate_window):
13792         (make_dummy_parent):
13793         (Fset_window_configuration): use new hashtable type.
13794
13795         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13796         (struct image_instantiator_methods):
13797         (struct Lisp_Image_Instance): make instance geometry signed.
13798
13799         * glyphs.c (instantiate_image_instantiator):
13800         (image_instance_query_geometry):
13801         (image_instance_layout):
13802         (image_instance_layout):
13803         (query_string_geometry):
13804         (text_query_geometry):
13805         (image_instantiate):
13806         (image_instantiate):
13807         (cache_subwindow_instance_in_frame_maybe):
13808         (subwindow_query_geometry): make instance geometry signed.
13809
13810         * glyphs-widget.c (widget_query_geometry):
13811         (widget_layout):
13812         (button_query_geometry):
13813         (tree_view_query_geometry):
13814         (tab_control_query_geometry):
13815         (layout_query_geometry):
13816         (layout_layout):
13817         (native_layout_layout): make instance geometry signed.
13818
13819 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13820
13821         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13822         constant.
13823
13824         * general.c (syms_of_general): Add Qfull_assoc symbol.
13825
13826         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13827         correctly.
13828         (decode_weak_list_type): Decode full-assoc type.
13829         (encode_weak_list_type): Encode full-assoc type.
13830         (Fmake_weak_list): Update doc string.
13831
13832 2000-05-30  Andy Piper  <andy@xemacs.org>
13833
13834         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13835
13836         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13837         (decode_hash_table_weakness): ditto.
13838         (Fhash_table_weakness): ditto.
13839         (Fhash_table_type): ditto.
13840         (finish_marking_weak_hash_tables): ditto.
13841         (hash_table_weakness_validate): ditto.
13842         (syms_of_elhash): ditto.
13843
13844 2000-05-28  Martin Buchholz <martin@xemacs.org>
13845
13846         * XEmacs 21.2.34 is released.
13847
13848 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13849
13850         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13851         start cache.
13852         (updating_line_start_cache): Gone.
13853         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13854         generic code to force a minimum of 1 line laid out in the
13855         CMOTION_DISP case.
13856
13857 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13858
13859         * glyphs.c (instantiate_image_instantiator): Check for initialized
13860         height & width no longer special cases IMAGE_NOTHING.
13861         (nothing_instantiate): Set height and width of instance.
13862
13863 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13864
13865         * unexelf.c (unexec): Search for ".data" section.
13866         Initialize new_data2_offset from old_data_index.
13867         Remove redundant check for ElfW.
13868
13869 2000-05-23  Andy Piper  <andy@xemacs.org>
13870
13871         * glyphs.c (get_image_instantiator_governing_domain): allow more
13872         specific domains as the governing domain rather than expecting an
13873         exact match. This fixes problems with layouts.
13874
13875 2000-05-22  Andy Piper  <andy@xemacs.org>
13876
13877         * redisplay-output.c (compare_runes): check for non-images
13878
13879         * glyphs.c (set_glyph_dirty_p): ditto.
13880         (update_glyph_cachel_data): ditto.
13881
13882         * glyphs-widget.c (layout_post_instantiate): ditto.
13883         (layout_post_instantiate): ditto.
13884
13885         * event-msw.c (mswindows_wnd_proc): warning removal.
13886
13887 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13888
13889         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13890
13891         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13892
13893         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13894
13895         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13896         (mswindows_executable_type): mingw32 now has enough headers for
13897         this to work.
13898
13899 2000-05-20  Andy Piper  <andy@xemacs.org>
13900
13901         * console-msw.c (mswindows_output_last_error): ; -> ,
13902
13903 2000-05-12  Andy Piper  <andy@xemacs.org>
13904
13905         * console-msw.c (FROB): compare ints with ints.
13906
13907 2000-05-11  Andy Piper  <andy@xemacs.org>
13908
13909         * glyphs-x.c (x_finalize_image_instance): make minimal build
13910         happy.
13911
13912 2000-05-20  Ben Wing  <ben@xemacs.org>
13913
13914         * event-Xt.c:
13915         * event-Xt.c (vars_of_event_Xt):
13916         move modifier-keys-are-sticky to event-stream.c.
13917
13918         * event-msw.c:
13919         * event-msw.c (mswindows_enqueue_mouse_button_event):
13920         * event-msw.c (key_needs_default_processing_p):
13921         * event-msw.c (XEMSW_LCONTROL):
13922         * event-msw.c (mswindows_handle_sticky_modifiers):
13923         * event-msw.c (FROB):
13924         * event-msw.c (clear_sticky_modifiers):
13925         * event-msw.c (output_modifier_keyboard_state):
13926         * event-msw.c (output_alt_keyboard_state):
13927         * event-msw.c (mswindows_wnd_proc):
13928         * event-msw.c (mswindows_modifier_state):
13929         * event-msw.c (emacs_mswindows_handle_magic_event):
13930         implement sticky modifiers.
13931
13932         * event-stream.c:
13933         * event-stream.c (vars_of_event_stream):
13934         move modifier-keys-are-sticky here.
13935
13936         * lisp.h:
13937         add CHECK_FUNCTION.
13938
13939         * rangetab.c:
13940         implement map-range-table.
13941
13942
13943 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13944
13945         * redisplay-tty.c (reset_tty_modes):
13946         (tty_redisplay_shutdown): Adjust argument type to
13947         tty_frame_output_end.
13948
13949 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13950
13951         * eval.c (Fbacktrace): Don't output a line with only right
13952         parenthesis.
13953
13954 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13955
13956         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13957         (Fpq_reset_poll): Ditto.
13958
13959 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13960
13961         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13962
13963 2000-05-16  Ben Wing  <ben@xemacs.org>
13964
13965         * buffer.c:
13966         * buffer.c (dfc_convert_to/from_internal_format):
13967         * buffer.c (reinit_vars_of_buffer):
13968         Fix conversion functions to allow reentrancy.
13969
13970         * console-msw.c:
13971         * console-msw.c (mswindows_output_last_error):
13972         New fun, generally useful -- output a human-readable
13973         version of GetLastError() on the console.
13974
13975         * console-msw.h:
13976         * console-msw.h (struct mswindows_frame):
13977         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13978
13979         * console-stream.c (stream_output_begin):
13980         * console-stream.c (stream_output_end):
13981         * console-stream.c (stream_output_vertical_divider):
13982         * console-stream.c (stream_clear_region):
13983         * console-stream.c (stream_flash):
13984         * console-stream.c (console_type_create_stream):
13985         Delete blank stream methods, not needed.
13986
13987         * console.h (struct console_methods):
13988         Split begin/end methods into window and frame.
13989
13990         * event-msw.c:
13991         * event-msw.c (mswindows_handle_paint):
13992         * event-msw.c (output_alt_keyboard_state):
13993         * event-msw.c (mswindows_wnd_proc):
13994         * event-msw.c (vars_of_event_mswindows):
13995         Comment about problems with ignored-expose.
13996         Define mswindows-debug-events; not really implemented.
13997
13998         * frame-msw.c (mswindows_init_frame_1):
13999         random cleanups.
14000
14001         * glyphs-msw.c:
14002         * glyphs-msw.c (begin_defer_window_pos):
14003         * glyphs-msw.c (mswindows_unmap_subwindow):
14004         * glyphs-msw.c (mswindows_map_subwindow):
14005         * glyphs-msw.c (mswindows_resize_subwindow):
14006         Use DeferWindowPos to reduce flashing when mapping/unmapping.
14007
14008         * glyphs.c (make_image_instance_1):
14009         Fix crash.
14010
14011         * gutter.c (Fredisplay_gutter_area):
14012         Use new begin/end methods.
14013
14014         * lisp.h (Dynarr_new2):
14015         New creation fun.
14016
14017         * redisplay-msw.c:
14018         * redisplay-msw.c (mswindows_frame_output_begin):
14019         * redisplay-msw.c (mswindows_frame_output_end):
14020         * redisplay-msw.c (console_type_create_redisplay_mswindows):
14021         New begin/end methods -- handle DeferWindowPos.
14022
14023         * redisplay-output.c (redisplay_move_cursor):
14024         * redisplay-output.c (redraw_cursor_in_window):
14025         * redisplay-output.c (redisplay_update_line):
14026         * redisplay-output.c (redisplay_output_window):
14027         New begin/end methods.
14028
14029         * redisplay-tty.c:
14030         * redisplay-tty.c (tty_frame_output_begin):
14031         * redisplay-tty.c (tty_frame_output_end):
14032         * redisplay-tty.c (console_type_create_redisplay_tty):
14033         New begin/end methods.
14034
14035         * redisplay-x.c:
14036         * redisplay-x.c (x_window_output_begin):
14037         * redisplay-x.c (x_window_output_end):
14038         * redisplay-x.c (console_type_create_redisplay_x):
14039         New begin/end methods.
14040
14041         * redisplay.c (redisplay_frame):
14042         * redisplay.c (Fredisplay_echo_area):
14043         New begin/end methods.
14044         use MAYBE_DEVMETH for clear_frame; it may not exist.
14045
14046         * window.h (WINDOW_XFRAME):
14047         WINDOW_XFOO macros -- get locale and decode struct pointer.
14048
14049
14050 2000-05-12  Ben Wing  <ben@xemacs.org>
14051
14052         * emacs.c:
14053         * emacs.c (ensure_no_quitting_from_now_on):
14054         * emacs.c (fatal_error_signal):
14055         * emacs.c (mswindows_handle_hardware_exceptions):
14056         * emacs.c (main):
14057         * emacs.c (Fkill_emacs):
14058         * emacs.c (shut_down_emacs):
14059         * emacs.c (assert_failed):
14060         various improvements in fatal error handling.
14061
14062         * eval.c:
14063         move preparing_for_armageddon to emacs.c.
14064
14065         * lisp.h:
14066         declare fatal_error_in_progress.
14067
14068         * print.c:
14069         * print.c (std_handle_out_external):
14070         * print.c (std_handle_out_va):
14071         * print.c (stderr_out):
14072         * print.c (stdout_out):
14073         use console under mswin when no standard output.
14074         don't do code conversion during fatal error.
14075
14076         * scrollbar.c (Fscrollbar_page_up):
14077         * scrollbar.c (Fscrollbar_page_down):
14078         fix missing else.  reindent.
14079
14080 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
14081
14082         Emergency fix.
14083
14084         * glyphs.h (GLYPH_CACHEL_DESCENT):
14085         (GLYPH_CACHEL_DESCENT):
14086         (GLYPH_CACHEL_DESCENT):
14087         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
14088         used in case these are inline functions.
14089         Use more absurd values to error check.
14090
14091         include window.h for error check functions.
14092
14093 2000-05-11  Ben Wing  <ben@xemacs.org>
14094
14095         * cmdloop.c (Freally_early_error_handler):
14096         Display message box under windows; otherwise, message will disappear
14097         before it can be viewed.
14098
14099         * console-msw.c:
14100         * console-msw.c (Fmswindows_message_box):
14101         * console-msw.c (FROB):
14102         * console-msw.c (syms_of_console_mswindows):
14103         Define new fun `mswindows-message-box'.
14104         #### I will merge this into `popup-dialog-box'; just give me
14105         a bit of time.
14106
14107         * general.c:
14108         * general.c (syms_of_general):
14109         Some new symbols used in `mswindows-message-box'.
14110
14111         * glyphs.c:
14112         * glyphs.c (Fset_image_instance_property):
14113         put warning in this fun.
14114
14115         * glyphs.h:
14116         * glyphs.h (GLYPH_CACHEL_WIDTH):
14117         * glyphs.h (GLYPH_CACHEL_ASCENT):
14118         * glyphs.h (GLYPH_CACHEL):
14119         * glyphs.h (GLYPH_CACHEL_GLYPH):
14120         define error-checking versions to try to catch a bug i've seen --
14121         redisplay gets in an infinite loop because the glyph width of the
14122         continuation glyph is 65535.
14123
14124         * lisp.h:
14125         Extern message-box stuff.
14126
14127         * window.c (allocate_window):
14128         * window.c (make_dummy_parent):
14129         * window.c (Fset_window_configuration):
14130         Use EQUAL not EQ for subwindow caches to make them work a bit
14131         better. (Something is still very broken.)
14132
14133
14134 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14135
14136         * glyphs.c (image_instantiate): Suppress gcc warnings.
14137         (Fmake_image_instance): Fix doc string.
14138         * specifier.c (Fmake_specifier): Ditto.
14139
14140 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
14141
14142         * paths.h.in (PATH_LOCK): Removed.
14143         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
14144         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
14145
14146 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14147
14148         * fns.c (Ffeaturep): Update e-mail address in doc-string.
14149         Document (featurep '(and xemacs 21.02)).
14150
14151 2000-05-09  Ben Wing  <ben@xemacs.org>
14152
14153         * buffer.c (complex_vars_of_buffer):
14154         update modeline-format doc.
14155
14156         * device.h:
14157         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
14158
14159         * emacs.c:
14160         timeline of all released versions of Emacs, for use in creating
14161         authorship comments and in synching up.
14162
14163         * glyphs-widget.c (image_instantiator_buttons):
14164         * glyphs-widget.c (image_instantiator_edit_fields):
14165         * glyphs-widget.c (image_instantiator_combo_box):
14166         * glyphs-widget.c (image_instantiator_scrollbar):
14167         * glyphs-widget.c (image_instantiator_progress_guage):
14168         * glyphs-widget.c (image_instantiator_tree_view):
14169         * glyphs-widget.c (image_instantiator_tab_control):
14170         * glyphs-widget.c (image_instantiator_labels):
14171         * glyphs-widget.c (image_instantiator_layout):
14172         * glyphs-widget.c (image_instantiator_native_layout):
14173         rename decode_domain method to governing_domain.
14174
14175         * glyphs.c:
14176         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
14177         * glyphs.c (add_entry_to_device_ii_format_list):
14178         make sure we don't put an entry more than once into the list.
14179         * glyphs.c (check_instance_cache_mapper):
14180         *************************************************************
14181         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14182         HAVE BEEN GETTING.
14183         *************************************************************
14184         * glyphs.c (get_image_instantiator_governing_domain):
14185         clean up, expand on new concept of governing domain.
14186         * glyphs.c (instantiate_image_instantiator):
14187         * glyphs.c (allocate_image_instance):
14188         use governing_domain instead of cache_domain in naming.
14189         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
14190         * glyphs.c (make_image_instance_1):
14191         * glyphs.c (Fmake_image_instance):
14192         allow for any domain (not just device), and process the
14193         governing domain correctly.  very big doc fix.
14194         * glyphs.c (Fimage_instance_domain):
14195         new primitive, to retrieve the governing domain of an image instance.
14196         * glyphs.c (image_instantiate):
14197         use new governing_domain stuff.  this fixes a crash you could get
14198         by instantiating certain widget glyphs in frame locales. (should
14199         signal an error instead of crashing.)
14200         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
14201         * glyphs.c (Fglyphp): clean up doc.
14202         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
14203         * glyphs.c (syms_of_glyphs):
14204         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
14205         * glyphs.c (image_instantiator_format_create): add some comments about
14206         bogus code.
14207         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
14208         for current-display-table. (Apparently Hrjove implemented in 1998 a
14209         design I wrote up in 1996, but didn't update the doc string.)
14210
14211         * glyphs.h: clean up a doc string.
14212         * glyphs.h (governing_domain):
14213         * glyphs.h (struct image_instantiator_methods):
14214         changes for governing_domain stuff.
14215
14216         * gutter.c:
14217         * gutter.c (Fgutter_specifier_p):
14218         * gutter.c (Fgutter_size_specifier_p):
14219         * gutter.c (Fgutter_visible_specifier_p):
14220         * objects.c:
14221         * objects.c (Fcolor_specifier_p):
14222         * objects.c (Ffont_specifier_p):
14223         * objects.c (Fface_boolean_specifier_p):
14224         doc strings moved to make-*-specifier.
14225
14226         * redisplay.c (add_disp_table_entry_runes_1):
14227         * redisplay.c (generate_fstring_runes):
14228         * redisplay.c (screen):
14229         add random comments and doc strings.
14230
14231         * specifier.c:
14232         * specifier.c (Fmake_specifier):
14233         major overhaul of this doc string.
14234
14235         * specifier.c (Fvalid_specifier_domain_p):
14236         comment about the bogosity of image instances being domains.
14237         * specifier.c (decode_domain):
14238         now non-static, used in glyphs.c.
14239         * specifier.c (specifier_instance):
14240         comment about the bogosity of image instances being domains.
14241         * specifier.c (Fgeneric_specifier_p):
14242         move doc string to make-generic-specifier.
14243         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14244         rebackslashify.
14245
14246         * specifier.h:
14247         * specifier.h (DOMAIN_FRAME):
14248         * specifier.h (DOMAIN_LIVE_P):
14249         * specifier.h (DOMAIN_XDEVICE):
14250         rebackslashify.
14251         add comments about problems with these macros.
14252         prototype for decode_domain.
14253
14254         * toolbar.c:
14255         * toolbar.c (Ftoolbar_specifier_p):
14256         move doc string to `make-toolbar-specifier'.
14257
14258         * window.c (window_unmap_subwindows_cache_mapper):
14259         *************************************************************
14260         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14261         HAVE BEEN GETTING.
14262         *************************************************************
14263
14264 2000-05-09  Andy Piper  <andy@xemacs.org>
14265
14266         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14267
14268         * window.c (Fset_window_configuration): reset the frame subwindow
14269         cache and re-initialize the window subwindow caches.
14270
14271         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14272
14273 2000-05-09  Ben Wing  <ben@xemacs.org>
14274
14275         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14276         DWORD.
14277
14278 2000-04-26  Mike Woolley  <mike@bulsara.com>
14279
14280         * ntheap.c: Changed recreate_heap to limit the amount reserved
14281         for the heap to that which is actually available. Also now
14282         displays a message box (with some dignostics) in the event that
14283         it still can't start.
14284
14285 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14286
14287         * callproc.c (Fold_call_process_internal): GCPRO path
14288
14289 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14290
14291         Patch by Bill Perry.
14292
14293         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14294         back data instead of #ifdef.
14295         (Fscrollbar_page_down): ditto.
14296
14297 2000-05-07  Ben Wing  <ben@xemacs.org>
14298
14299         * buffer.h:
14300         Kludge for defining Qmswindows_tstr.
14301
14302         * nt.c:
14303         * nt.c (open_input_file):
14304         * nt.c (open_output_file):
14305         * nt.c (rva_to_section):
14306         * nt.c (mswindows_executable_type):
14307         Move all memory-mapped-file routines here (some were in unexnt.c,
14308         which is bad because they are used by process-nt.c, and unexnt
14309         won't be around when portable dumping).  Synched the above routines
14310         with FSF 20.6.
14311
14312         * nt.h:
14313         Removed ifdef'd out bogus code.
14314         Fixed some prototypes.
14315
14316         * nt.h (file_data):
14317         * nt.h (OFFSET_TO_RVA):
14318         * nt.h (RVA_TO_OFFSET):
14319         * nt.h (RVA_TO_PTR):
14320         Moved the memory-mapped-file structures, macros and prototypes
14321         here, to parallel nt.c.  ntheap.h should really be removed
14322         entirely, and it's a non-portable-dumper specific file.
14323
14324         * ntheap.h (round_to_next):
14325         Moved the memory-mapped-file structures, macros and prototypes
14326         to nt.h.
14327
14328         * ntproc.c (compare_env):
14329         Moved rva_to_section and mswindows_executable_type to nt.c.
14330         Moved compare_env to process-nt.c.
14331         ntproc.c will die, one day.
14332
14333         * ntproc.c (sys_spawnve):
14334         Account for win32_ -> mswindows_.
14335
14336         * process-nt.c:
14337         * process-nt.c (struct nt_process_data):
14338         * process-nt.c (ensure_console_window_exists):
14339         * process-nt.c (compare_env):
14340         * process-nt.c (nt_create_process):
14341         * process-nt.c (nt_kill_process_by_pid):
14342         * process-nt.c (syms_of_process_nt):
14343         * process-nt.c (vars_of_process_nt):
14344         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14345         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14346         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14347         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14348         Move compare_env here from ntproc.c.
14349
14350         * process.c (Fprocess_send_region):
14351         Takes an optional fourth argument, BUFFER, which should fix some
14352         problems with call-process.
14353
14354         * syscommctrl.h:
14355         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14356
14357         * syswindows.h:
14358         Move ICC_BAR_CLASSES to syscommctrl.h.
14359         Add preliminary macros for MSWindows/Mule.  More to come.
14360
14361         * unexnt.c:
14362         * unexnt.c (unexec):
14363         open_output_file moved to nt.c.
14364
14365
14366 2000-05-05  Andy Piper  <andy@xemacs.org>
14367
14368         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14369         instance from the frame cache also since GC may catch up too late
14370         to make frame deletion sane.
14371
14372 2000-05-04  Andy Piper  <andy@xemacs.org>
14373
14374         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14375         (x_finalize_image_instance): ungcpro on deletion.
14376
14377         * glyphs.c (image_instantiator_format_create): give pointers a
14378         query geometry method so that the geometry is at least set.
14379
14380         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14381         initialize layouts if using widgets.
14382
14383 2000-05-03  Andy Piper  <andy@xemacs.org>
14384
14385         * nt.c: remove bogus reference to sysmmsystem.h
14386
14387         * gui-x.c (popup_selection_callback): fix no selection abort.
14388
14389 2000-05-02  Andy Piper  <andy@xemacs.org>
14390
14391         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14392         (mswindows_widget_instantiate): ditto.
14393
14394         * glyphs-widget.c (initialize_widget_image_instance): initialize
14395         children correctly.
14396         (widget_instantiate): cope with children and items in the same
14397         instance.
14398
14399         * glyphs.c (mark_image_instance): cope with children as a first
14400         class member.
14401         (image_instance_equal): ditto.
14402         (image_instance_hash): ditto.
14403         (image_instance_changed): ditto.
14404
14405 2000-04-30  Andy Piper  <andy@xemacs.org>
14406
14407         * glyphs.c (subwindow_query_geometry): new function. Return some
14408         defaults.
14409         (subwindow_instantiate): don't assign dimensions if none have been
14410         given.
14411         (image_instantiator_format_create): add subwindow_query_geometry.
14412         (print_image_instance): cope with layouts as widgets.
14413
14414 2000-04-29  Andy Piper  <andy@xemacs.org>
14415
14416         * frame.c (delete_frame_internal): call
14417         free_frame_subwindow_instance_cache so that all subwindows are
14418         finalized before their parent.
14419         (mark_frame): remove subwindow_cachels.
14420         (Fmake_frame): remove subwindow_cachel manipulation.
14421         (allocate_frame_core): subwindow_instance_cache is a weak list.
14422         (delete_frame_internal): set subwindow_instance_cache to nil.
14423
14424         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14425         finalization safe.
14426         (mswindows_finalize_image_instance): use the device
14427         not the domain as the domain may have died already.
14428
14429         * glyphs-x.c (x_finalize_image_instance): ditto.
14430         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14431         HEIGHT.
14432
14433         * redisplay-output.c (redisplay_unmap_subwindows): update for
14434         subwindow instance cache as a weak list.
14435         (redisplay_unmap_subwindows_maybe): ditto.
14436         (redisplay_unmap_subwindows_except_us): ditto.
14437
14438         * glyphs.c (unmap_subwindow): error checking will check the domain
14439         so don't deal with it here. Don't use cachels anymore.
14440         (map_subwindow): ditto.
14441         (update_subwindow_cachel_data): remove old accessor names.
14442         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14443         (Fresize_subwindow): don't update cachel.
14444         (mark_subwindow_cachels):
14445         (update_subwindow_cachel_data):
14446         (add_subwindow_cachel):
14447         (get_subwindow_cachel_index):
14448         (update_subwindow_cachel):
14449         (reset_subwindow_cachels):
14450         (mark_subwindow_cachels_as_not_updated): deleted.
14451         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14452         subwindow instance to the frame cache.
14453         (find_matching_subwindow): update for subwindow instance cache as
14454         a weak list.
14455         (update_widget_instances): ditto.
14456         (image_instance_type_to_mask):inlined.
14457         (free_frame_subwindow_instance_cache): new function. finalize all
14458         subwindows that are instantiated.
14459
14460         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14461         of cachel information.
14462         (IMAGE_INSTANCE_DISPLAY_X):
14463         (IMAGE_INSTANCE_DISPLAY_Y):
14464         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14465         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14466         (XIMAGE_INSTANCE_DISPLAY_X):
14467         (XIMAGE_INSTANCE_DISPLAY_Y):
14468         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14469         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14470         remove subwindow_cachel structure and function references.
14471         (image_instance_type_to_mask): inline from glyphs.c
14472
14473         * redisplay.c (redisplay_frame): remove subwindow_cachel
14474         references.
14475
14476         * frame.h (struct frame): remove subwindow_cachels.
14477         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14478
14479         * frameslots.h: add subwindow_instance_cache.
14480
14481         * window.c (replace_window): check subwindow cache of replacement.
14482         (window_unmap_subwindows_cache_mapper):
14483         (window_unmap_subwindows): new functions. Unmap all subwindows
14484         cached on this window.
14485         (mark_window_as_deleted): unmap all subwindows.
14486
14487 2000-04-27  Andy Piper  <andy@xemacs.org>
14488
14489         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14490
14491         * glyphs-widget.c (widget_layout): return something.
14492         (layout_layout): return something. Fail if not initialized.
14493         (layout_query_geometry): ditto.
14494         (image_instantiator_native_layout): new function. Initialized the
14495         native layout type.
14496         (widget_instantiate): don't do layout stuff here.
14497
14498         * glyphs.c (instantiate_image_instantiator): reorded calling or
14499         instantiate and post_instantiate with layout in between.
14500         (image_instance_layout): be more selective about deciding whether
14501         the layout has been done or not.
14502
14503         * glyphs.h (struct image_instantiator_methods): return a value
14504         from layout_method.
14505
14506 2000-04-26  Andy Piper  <andy@xemacs.org>
14507
14508         * glyphs.c (allocate_image_instance): make initial width and
14509         height unspecified. Set initialized to 0.
14510
14511         * syscommctrl.h new file. Encapsulates commctrl.h.
14512
14513         * syswindows.h new file. Encapsulates windows.h.
14514
14515         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14516         * nt.c: ditto.
14517         * console-msw.h: ditto.
14518
14519         * redisplay-tty.c (tty_output_display_block): remove layout references.
14520
14521         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14522         window handle rather than just the frame.
14523
14524         * glyphs.c (mark_image_instance): remove layout references.
14525         (print_image_instance): ditto.
14526         (image_instance_equal): ditto.
14527         (image_instance_hash): ditto.
14528         (decode_image_instance_type): ditto.
14529         (encode_image_instance_type): ditto.
14530         (image_instantiate): ditto.
14531         (allocate_glyph): ditto.
14532         (Fimage_instance_height): ditto.
14533         (Fimage_instance_width): ditto.
14534         (update_subwindow): ditto.
14535
14536         * redisplay-x.c (x_output_display_block): recode for layouts as
14537         widgets.
14538
14539         * redisplay-output.c (redisplay_output_layout): recode for layouts
14540         as widgets.
14541         (compare_runes): remove layout references.
14542
14543         * redisplay-msw.c (mswindows_output_display_block): recode for
14544         layouts as widgets.
14545
14546         * glyphs-widget.c (image_instantiator_layout): remove
14547         layout_possible_dest_types.
14548         (layout_possible_dest_types): deleted.
14549
14550         * glyphs.h (image_instance_type): remove layout references.
14551         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14552         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14553         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14554
14555 2000-04-25  Andy Piper  <andy@xemacs.org>
14556
14557         * glyphs-widget.c (image_instantiator_buttons):
14558         (image_instantiator_edit_fields):
14559         (image_instantiator_combo_box):
14560         (image_instantiator_scrollbar):
14561         (image_instantiator_progress_guage):
14562         (image_instantiator_tree_view):
14563         (image_instantiator_tab_control):
14564         (image_instantiator_labels):
14565         (image_instantiator_layout): call default post_instantiate method.
14566         (widget_post_instantiate): new function. Simply lays out the
14567         widgets.
14568
14569         * glyphs.h (struct image_instantiator_methods): add
14570         post_instantiate method.
14571
14572         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14573         method calls.
14574
14575 2000-04-23  Andy Piper  <andy@xemacs.org>
14576
14577         * glyphs.h (struct image_instantiator_methods): add
14578         decode_domain_method.
14579         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14580         derived from the domain.
14581         (IMAGE_INSTANCE_FRAME): new accessor.
14582         (XIMAGE_INSTANCE_FRAME): ditto.
14583
14584         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14585         instead of _SUBWINDOW_FRAME.
14586         (finalize_image_instance): ditto.
14587         (Fimage_instance_foreground): ditto.
14588         (Fimage_instance_background): ditto.
14589         (image_instantiate): ditto.
14590         (update_subwindow_cachel): ditto.
14591         (update_subwindow): ditto.
14592         (unmap_subwindow): ditto.
14593         (map_subwindow): ditto
14594         (subwindow_instantiate): ditto.
14595         * glyphs-msw.c (mswindows_update_widget): ditto.
14596         (mswindows_progress_gauge_instantiate): ditto.
14597         (mswindows_tab_control_update): ditto.
14598         * glyphs-x.c (x_update_widget): ditto.
14599         (x_widget_instantiate): ditto.
14600         (x_tab_control_instantiate): ditto.
14601         (x_tab_control_update): ditto.
14602         * event-msw.c (mswindows_wnd_proc): ditto
14603
14604         * glyphs-widget.c (image_instantiator_layout): use
14605         subwindow_decode_domain.
14606         (image_instantiator_buttons): ditto.
14607         (image_instantiator_edit_fields): ditto.
14608         (image_instantiator_combo_box): ditto.
14609         (image_instantiator_scrollbar): ditto.
14610         (image_instantiator_progress_guage): ditto.
14611         (image_instantiator_tree_view): ditto.
14612         (image_instantiator_tab_control): ditto.
14613         (image_instantiator_labels): ditto.
14614         (image_instantiator_layout): ditto.
14615
14616         * glyphs.c: add instance error checking to many functions.
14617         (instantiate_image_instantiator): decode device from cache_domain.
14618         (image_instantiate): partially rewrite by using
14619         decode_image_instantiator_domain to determine what domain the
14620         instance needs to be cached in.
14621         (decode_image_instantiator_domain): new function. Determine what
14622         domain the image needs to be cached in.
14623         (check_window_subwindow_cache): new error checking function.
14624         (check_instance_cache_mapper): ditto.
14625         (check_image_instance_structure): ditto.
14626         (subwindow_decode_domain): new function. Encodes a window as a
14627         subwindow's cache domain.
14628         (image_instantiator_format_create): use it for text and
14629         subwindows.
14630
14631 2000-04-21  Andy Piper  <andy@xemacs.org>
14632
14633         * glyphs.c (image_instance_device): new function.
14634         (image_instance_frame): new function.
14635         (image_instance_window): new function.
14636         (image_instance_live_p): new function.
14637
14638         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14639         cache to nil.
14640
14641         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14642         (IMAGE_INSTANCE_DOMAIN): new accessor.
14643         (XIMAGE_INSTANCE_DOMAIN): ditto.
14644
14645         * glyphs-x.c (x_finalize_image_instance): device->domain.
14646
14647         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14648         (mswindows_finalize_image_instance): ditto.
14649
14650         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14651         (gif_instantiate): ditto.
14652         (png_instantiate): ditto.
14653         (tiff_instantiate): ditto.
14654
14655         * glyphs.c (instantiate_image_instantiator): use domain rather
14656         than device.
14657         (mark_image_instance): device -> domain.
14658         (print_image_instance): ditto.
14659         (finalize_image_instance): ditto.
14660         (image_instance_equal): ditto.
14661         (allocate_image_instance): ditto.
14662         (Fcolorize_image_instance): ditto.
14663         (query_string_geometry): ditto.
14664         (image_instantiate): ditto
14665         (query_string_font): ditto.
14666         (image_instantiate): ditto.
14667         (update_subwindow): ditto.
14668         (unmap_subwindow): ditto.
14669         (map_subwindow): ditto.
14670         (subwindow_instantiate): ditto.
14671
14672         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14673         (DOMAIN_FRAME): ditto.
14674         (DOMAIN_WINDOW): ditto.
14675         (DOMAIN_LIVE_P): ditto.
14676         (XDOMAIN_DEVICE): ditto.
14677         (XDOMAIN_FRAME): ditto.
14678         (XDOMAIN_WINDOW): ditto.
14679
14680         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14681         a valid specifier domain.
14682
14683 2000-04-19  Andy Piper  <andy@xemacs.org>
14684
14685         * glyphs-widget.c (syms_of_glyphs_widget): remove
14686         widget-callback-current-channel.
14687         (vars_of_glyphs_widget): ditto.
14688         * glyphs.h: ditto
14689
14690         * gui.c (get_gui_callback): revert to previous behaviour.
14691
14692 2000-04-18  Andy Piper  <andy@xemacs.org>
14693
14694         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14695         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14696         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14697
14698         * glyphs.c (image_instance_equal): add margin_width.
14699         (image_instance_hash): ditto.
14700
14701         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14702         (layout_query_geometry): ditto.
14703         (layout_layout): ditto.
14704         (syms_of_glyphs_widget): add margin-width.
14705         (image_instantiator_layout): allow margin-width.
14706
14707         * glyphs.c (update_widget_instances): make a normal function.
14708         (syms_of_glyphs): remove Qupdate_widget_instances.
14709         * glyphs.h: ditto.
14710
14711         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14712         so that we don't corrupt ideas about the last event or
14713         command. Remove widget-callback-current-channel fiddling.
14714         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14715
14716 2000-05-01  Martin Buchholz <martin@xemacs.org>
14717
14718         * XEmacs 21.2.33 is released.
14719
14720 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14721
14722         * make-src-depend: Allow dots in header file name.
14723
14724 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14725
14726         * mule-charset.h (struct charset_lookup): Add
14727         next_allocated_1_byte_leading_byte and
14728         next_allocated_2_byte_leading_byte.
14729         * mule-charset.c: Move above two variables so that those values
14730         will be dumped.
14731
14732 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14733
14734         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14735         when string length is zero.
14736         (find_charsets_in_emchar_string): Ditto.
14737
14738 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14739
14740         * lisp.h: extern Qdialog and Qmenubar.
14741
14742         * gui-x.c: added events.h.
14743                 also fixed typo which made the file uncompilable.
14744
14745         * general.c: Added Qmenubar and Qdialog
14746
14747 2000-04-28  Ben Wing  <ben@xemacs.org>
14748
14749         * frame-msw.c (mswindows_init_frame_1):
14750         * frame-msw.c (mswindows_mark_frame):
14751         * event-msw.c (mswindows_enqueue_dispatch_event):
14752         * console-msw.h:
14753         * console-msw.h (struct mswindows_frame):
14754         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14755         there are now three hash tables for callbacks.
14756         mswindows_enqueue_dispatch_event is no longer static.
14757
14758         * dialog-x.c (maybe_run_dbox_text_callback):
14759         * dialog-x.c (dbox_descriptor_to_widget_value):
14760         switch to new cons3 form for callbacks.
14761
14762         * glyphs-msw.c (mswindows_register_gui_item):
14763         * glyphs-msw.c (mswindows_widget_instantiate):
14764         * glyphs-msw.c (add_tree_item):
14765         * glyphs-msw.c (add_tab_item):
14766         new image instance parameter, so it can be passed to callback-ex.
14767         respect :callback-ex as well as :callback.
14768
14769         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14770         add :callback-ex.
14771
14772         * glyphs.c (print_image_instance):
14773         prettify, e.g. now prints widget type.
14774
14775         * gui-x.h:
14776         certain funs have new image instance parameter.
14777
14778         * gui.c:
14779         * gui.c (get_gui_callback):
14780         * gui.c (gui_item_add_keyval_pair):
14781         * gui.c (gui_item_init):
14782         * gui.c (gui_add_item_keywords_to_plist):
14783         * gui.c (mark_gui_item):
14784         * gui.c (gui_item_hash):
14785         * gui.c (gui_item_equal):
14786         * gui.c (copy_gui_item):
14787         * gui.c (syms_of_gui):
14788         recognize callback-ex in a number of places.
14789         also, fix the annoying "can't get out of yes-no dialog" bug.
14790
14791         * gui.h:
14792         * gui.h (struct Lisp_Gui_Item):
14793         recognize callback-ex in a number of places.
14794
14795         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14796         new parameter in button_item_to_widget_value.
14797
14798         * glyphs-x.c (x_update_widget):
14799         * glyphs-x.c (x_button_instantiate):
14800         * glyphs-x.c (x_button_update):
14801         * glyphs-x.c (x_progress_gauge_instantiate):
14802         * glyphs-x.c (x_edit_field_instantiate):
14803         * glyphs-x.c (x_combo_box_instantiate):
14804         * glyphs-x.c (x_tab_control_instantiate):
14805         * glyphs-x.c (x_label_instantiate):
14806         new image instance parameter in various places.
14807
14808         * event-Xt.c:
14809         * event-Xt.c (enqueue_Xt_dispatch_event):
14810         this fun gets exported.
14811
14812         * gui-msw.c:
14813         * gui-msw.c (mswindows_handle_gui_wm_command):
14814         handle both :callback and :callback-ex, and generate our own
14815         event because it's one of the callback-ex arguments.
14816
14817         * gui-x.c:
14818         * gui-x.c (popup_selection_callback):
14819         handle both :callback and :callback-ex, and generate our own
14820         event because it's one of the callback-ex arguments.
14821         * gui-x.c (button_item_to_widget_value):
14822         * gui-x.c (gui_items_to_widget_values_1):
14823         * gui-x.c (gui_item_children_to_widget_values):
14824         * gui-x.c (gui_items_to_widget_values):
14825         new image instance parameter in various places.
14826
14827         * fns.c (Freplace_list):
14828         fix small typo in doc string.
14829
14830         * lisp.h:
14831         declare enqueue_Xt_dispatch_event.
14832
14833 2000-04-28  Ben Wing  <ben@xemacs.org>
14834
14835         * buffer.c:
14836         * buffer.c (Frecord_buffer):
14837         * buffer.c (syms_of_buffer):
14838         delete record-buffer-hook.
14839
14840         * fns.c:
14841         * fns.c (Freplace_list):
14842         * fns.c (syms_of_fns):
14843         new primitive replace-list.
14844
14845         * frameslots.h:
14846         slot for old buffer-alist.
14847
14848         * lisp.h:
14849         exfun replace-list.
14850
14851         * redisplay.c:
14852         * redisplay.c (redisplay_frame):
14853         * redisplay.c (syms_of_redisplay):
14854         * redisplay.c (vars_of_redisplay):
14855         new hook buffer-list-changed-hook.
14856         call it.
14857
14858 2000-04-27  Ben Wing  <ben@xemacs.org>
14859
14860         * extents.h: extern in_modeline_generation.
14861
14862         * redisplay.c (generate_formatted_string_db): set
14863         in_modeline_generation.
14864
14865         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14866         flags if in modeline generation.  otherwise frame-modified-tick
14867         is ticked far too often.
14868         Declare in_modeline_generation.
14869
14870 2000-04-26  Ben Wing  <ben@xemacs.org>
14871
14872         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14873         option.
14874         (vars_of_emacs): add quick-build as an error-checking option.
14875         A bit kludgy, but there doesn't seem much point in creating
14876         a real var for this.
14877
14878         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14879
14880 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14881
14882         * redisplay.h (struct display_line): Add a new variable,
14883         line_continuation.
14884
14885         * redisplay.c (create_text_block): Set dl->line_continuation if
14886         the line continues.
14887         (create_string_text_block): Ditto.
14888         (regenerate_window_incrementally): Use line_continuation instead
14889         of searching continuation glyph.
14890         (add_margin_runes): Call add_glyph_rune.
14891         (add_glyph_rune): Handle margin glyph.
14892
14893 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14894
14895         * filelock.c (fill_in_lock_file_name):
14896         ANSIfy.
14897         Check for IS_ANY_SEP instead of '/'.
14898         (lock_file_1):
14899         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14900         Never check errno without first seeing that system call failed.
14901         (unlock_file): Add GCPRO.
14902         (Flock_buffer): Fix docstring.
14903         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14904
14905 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14906
14907         * sysdep.c (get_pty_max_bytes):
14908         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14909         strings longer than 252 bytes.
14910
14911         * md5.c: Unconditionally include ANSI header <limits.h>
14912
14913         * glyphs-x.c (convert_EImage_to_XImage):
14914         * lisp-union.h (union Lisp_Object):
14915         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14916
14917 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14918
14919         * filelock.c (current_lock_owner): Remove unused variable o, p.
14920
14921 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14922
14923         * callint.c: Remove multiply defined symbol Qlet
14924         (syms_of_callint): ditto.
14925
14926 2000-04-14  Andy Piper  <andy@xemacs.org>
14927
14928         * general.c (syms_of_general): add last-command, this-command, let
14929         and funcall.
14930
14931         * lisp.h: declare various symbols.
14932
14933         * glyphs.h: declare Qwidget_callback_current_channel;
14934
14935         * glyphs-widget.c (syms_of_glyphs_widget): add
14936         Qgui_callback_current_channel.
14937         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14938
14939         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14940         widget-callback-current-channel when invoking the interactive
14941         arg. Also bind last-command and next-command when invoking the
14942         widget updates.
14943         * gui-x.c (popup_selection_callback): ditto.
14944
14945         * gui.c (get_gui_callback): massage args so that we are always
14946         calling eval. This allows us to add our own variable bindings
14947         outside.
14948
14949         * glyphs-x.c (x_button_instantiate): use
14950         gui_items_to_widget_values since this is GC safe.
14951         (x_progress_gauge_instantiate): ditto.
14952         (x_edit_field_instantiate): ditto.
14953         (x_label_instantiate): ditto.
14954
14955         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14956         (emacs_Xt_event_widget_focus_out): new function
14957         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14958         focus.
14959         (emacs_Xt_event_add_widget_actions): new function. add focus
14960         functions as actions.
14961         (init_event_Xt_late): use it.
14962
14963 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14964
14965         * event-stream.c (Fdispatch_event): Doc fix.
14966
14967 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14968
14969         * postgresql.c: Remove all references to PQsetenv*.
14970
14971         * postgresql.h: Remove references to PGsetenvHandler object.
14972         * lrecord.h (lrecord_type): Ditto.
14973
14974 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14975
14976         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14977         real_heigh and real_width members, and accessor macros for these.
14978
14979         * glyphs-msw.c (init_image_instance_geometry): New function.
14980         (init_image_instance_from_dibitmap): Use it.
14981         (mswindows_resource_instantiate): Use it.
14982         (init_image_instance_from_xbm_inline): Use it.
14983         (mswindows_initialize_image_instance_mask): Use real bitmap
14984         geometry.
14985         (mswindows_create_resized_bitmap): Ditto.
14986         (mswindows_create_resized_mask): Ditto.
14987
14988         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14989         and bitmap to their surface size.
14990
14991 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14992
14993         * process-unix.c (unix_send_process): Guard against process MIA
14994         after Faccept_process_output.
14995
14996 2000-04-11  Ben Wing  <ben@xemacs.org>
14997
14998         * eval.c (unbind_to_hairy): fix brokenness introduced by
14999         nanosecond speed improvements.
15000
15001 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
15002
15003         * sunplay.c (init_device): To play sounds correctly, the device
15004         apparently needs to be initialized at least once by XEmacs.  Make
15005         it so.
15006
15007 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15008
15009         * redisplay.c (add_margin_runes): Add text image glyph
15010           handling.
15011
15012 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
15013
15014         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
15015         gcc is newer than 2.5.
15016
15017 2000-04-06  Colin Rafferty  <colin@xemacs.org>
15018
15019         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
15020
15021         * fns.c (size_bit_vector):
15022         * alloc.c (size_vector):
15023         (make_vector_internal):
15024         (make_bit_vector_internal):
15025         (sweep_bit_vectors_1):
15026         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
15027
15028 2000-04-06  Andy Piper  <andy@xemacs.org>
15029
15030         * gmalloc.c (malloc): undo previous change.
15031         (malloc): ditto.
15032         (free): ditto.
15033         (realloc): ditto.
15034
15035 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
15036
15037         * line-number.c (buffer_line_number): Revert to former version.
15038
15039 2000-04-06  Andy Piper  <andy@xemacs.org>
15040
15041         * gmalloc.c (malloc): add error checking.
15042         (malloc): ditto.
15043         (free): ditto.
15044         (realloc): ditto.
15045
15046         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
15047         button_item_to_widget_value arg.
15048
15049         * glyphs-x.c (x_button_instantiate): add extra
15050         button_item_to_widget_value arg.
15051         (x_progress_gauge_instantiate): ditto.
15052         (x_edit_field_instantiate): ditto.
15053         (x_label_instantiate): ditto.
15054
15055         * gui-x.c (gui_items_to_widget_values_1): add extra
15056         button_item_to_widget_value arg.
15057         (button_item_to_widget_value): add extra menu_item_p arg.
15058
15059         * gui-x.h: change signature of button_item_to_widget_value.
15060
15061         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
15062         button_item_to_widget_value arg.
15063
15064 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
15065
15066         * buffer.h (struct buffer): auto_save_modified should be long.
15067
15068 2000-04-05  Andy Piper  <andy@xemacs.org>
15069
15070         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
15071         type.
15072         (button_query_geometry): give a little more room so that athena
15073         buttons fit.
15074
15075 2000-04-05  Andy Piper  <andy@xemacs.org>
15076
15077         * faces.c (complex_vars_of_faces): The widget face should inherit
15078         the font of the gui-element face.
15079
15080 2000-04-04  Andy Piper  <andy@xemacs.org>
15081
15082         * glyphs-x.c (x_button_update): new function. unconditionally
15083         update a button's state when the instance is dirty.
15084         (image_instantiator_format_create_glyphs_x): add x_button_update.
15085         (x_widget_instantiate): remove old resize cruft.
15086
15087 2000-04-02  Andy Piper  <andy@xemacs.org>
15088
15089         * frame.c (change_frame_size_1): The introduction of gutters means
15090         that we need to allow 0 as a potential frame dimension.
15091
15092 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15093
15094         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
15095         image glyph if allow_cursor.
15096         (add_hscroll_rune): Don't allow cursor to border glyph.
15097         (create_text_block): Ditto.
15098
15099         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
15100         text not in buffer.
15101         (redisplay_output_layout): Call ensure_face_cachel_complete for
15102         text image glyph.
15103
15104
15105 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
15106
15107         * redisplay.c (add_glyph_rune): Adding text image as text runes.
15108
15109         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
15110         not in buffer
15111
15112         * redisplay-tty.c (tty_output_display_block): Delete the routine
15113         for text image glyph
15114         * redisplay-x.c (x_output_display_block): ditto
15115         * redisplay-msw.c (mswindows_output_display_block): ditto
15116
15117 2000-02-02  Mike Alexander  <mta@arbortext.com>
15118
15119         Note: Some of these were committed by accident as part of other
15120         patches.
15121
15122         * regex.c (regex_compile): Avoid compiler warnings.
15123
15124         * ntproc.c (sys_spawnve): Avoid compiler warnings.
15125
15126         * nt.h: Declare term_ntproc correctly.
15127
15128         * nt.c: Remove incorrect declaration of get_home_directory which
15129         is declared correctly in lisp.h.
15130
15131         * keymap.c (get_keyelt): Avoid compiler warnings.
15132         (raw_lookup_key_mapper): Avoid compiler warnings.
15133
15134         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
15135
15136         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
15137
15138         * filemode.c (mode_string): Avoid compiler warnings.
15139
15140         * file-coding.c (Fcoding_system_aliasee): Add return statement to
15141         avoid warning.
15142
15143         * events-mod.h: Undef some things that winuser.h defines differently.
15144
15145         * data.c (Faset): Avoid compiler warnings.
15146
15147         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
15148
15149 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15150
15151         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
15152         Fall through to simple beep on error.
15153         Replace "extern" by real header file.
15154
15155         * linuxplay.c: Use nativesound.h
15156         (play_sound_data): Return error code. Be less verbose on error.
15157
15158         * sunplay.c: Use nativesound.h
15159         (play_sound_data): Return error code. Be less verbose on error.
15160
15161         * ntplay.c: Use nativesound.h
15162         (play_sound_data): Return fake error code
15163
15164         * sgiplay.c: Use nativesound.h
15165         (play_sound_data): Return error code
15166
15167         * hpplay.c: Use nativesound.h, partially implement
15168         new error code. Break compilation until finished.
15169         (play_sound_data): error code.
15170
15171         * nativesound.h (play_sound_file):
15172           (play_sound_data): Prototype in new header.
15173
15174 2000-03-31  Andy Piper  <andy@xemacs.org>
15175
15176         * glyphs-widget.c: (button_query_geometry): new function. Adjust
15177         for toggle and radio buttons.
15178         (image_instantiator_buttons): use it.
15179
15180 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15181
15182         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
15183         (x_update_horizontal_scrollbar_callback): Return if no mirror was
15184         found. Scrollbar event probably belonged to some old config.
15185
15186 2000-03-31  Andy Piper  <andy@xemacs.org>
15187
15188         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
15189         than 1.
15190         (initialize_widget_image_instance): default layout to
15191         LAYOUT_HORIZONTAL rather than 0.
15192         (widget_instantiate): reverse the item list at the end rather than
15193         every iteration.
15194         (layout_layout): re-code for the border text at the front of the
15195         item list rather than at the end.
15196         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
15197         provided by the user.
15198         (widget_query_geometry): comment.
15199
15200 2000-03-30  Andy Piper  <andy@xemacs.org>
15201
15202         * glyphs-widget.c (image_instantiator_layout): allow standard
15203         widget keywords in layouts.
15204
15205         * gutter.c (output_gutter): cope with nil gutter contents.
15206
15207         * frame.c (Fset_frame_properties): add gutter docs.
15208
15209 2000-03-29  Andy Piper  <andy@xemacs.org>
15210
15211         * toolbar-msw.c (TBSTYLE_FLAT): add.
15212         (mswindows_output_toolbar): minor fiddling.
15213
15214 2000-03-29  Andy Piper  <andy@xemacs.org>
15215
15216         * gutter.c (output_gutter): force gutter size recalculation if
15217         what we are trying to display won't fit.
15218         (update_gutter_geometry): new function. A per-gutter version of
15219         update_frame_gutter_geometry.
15220         (update_frame_gutter_geometry): use it.
15221         (redraw_exposed_gutter): add extra debugging output.
15222
15223 2000-03-28  Mike Alexander  <mta@arbortext.com>
15224
15225         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
15226         (pdump_file_unmap): Implement it on Windows
15227         (pdump_file_get): Save alocated handles for pdump_file_unmap
15228
15229 2000-03-28  Andy Piper  <andy@xemacs.org>
15230
15231         * gui.c (get_gui_callback): treat Quit specially.
15232
15233 2000-03-27  Andy Piper  <andy@xemacs.org>
15234
15235         * glyphs.c (image_instantiate): be careful to check in the same
15236         way we assigned.
15237
15238 2000-03-27  Didier Verna  <didier@xemacs.org>
15239
15240         * config.h.in: define the proper SMART_INCLUDE macro.
15241         handle renaming of `foo_h_path' to `foo_h_file'.
15242
15243         * database.c: ditto.
15244
15245         * emacs.c: ditto.
15246
15247         * linuxplay.c: ditto.
15248
15249         * terminfo.c: ditto.
15250
15251         * tooltalk.h: ditto.
15252
15253 2000-03-27  Andy Piper  <andy@xemacs.org>
15254
15255         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15256         gets updated whenever the face might have changed.
15257
15258 2000-03-26  Mike Alexander  <mta@arbortext.com>
15259
15260         * dumper.c (pdump_resource_free): Fix the comment.
15261
15262 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15263
15264         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15265
15266 2000-03-22  Mike Alexander  <mta@arbortext.com>
15267
15268         * dumper.c: Include Windows headers on Windows
15269         (pdump_resource_free): Add a body to the function
15270         (pdump_load): exe_name -> exe_path and add some comments.
15271
15272 2000-03-25  Mike Alexander  <mta@arbortext.com>
15273
15274         * gui.c (copy_gui_item_tree): Return a value in all cases
15275
15276 2000-03-21  Didier Verna  <didier@xemacs.org>
15277
15278         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15279         lwlib/config.h.in.
15280         (SMART_INCLUDE): new macro.
15281         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15282         the proper location.
15283
15284         * postgresql.c: use it.
15285
15286         * inline.c: ditto.
15287
15288 2000-03-24  Andy Piper  <andy@xemacs.org>
15289
15290         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15291         do this.
15292
15293 2000-03-24  Andy Piper  <andy@xemacs.org>
15294
15295         * redisplay-output.c (compare_runes): use image_instance_changed
15296         to detect changes. Do not depend on glyphs_changed, only depend on
15297         dirtiness.
15298          (redisplay_output_layout): add debug messages.
15299         (compare_runes): ditto.
15300
15301         * glyphs.h: declare new functions.
15302         (struct Lisp_Image_Instance): remove percent and associated
15303         accessors.
15304
15305         * gui.h: declare new copying functions.
15306
15307         * gui.c (copy_gui_item_tree): new function.
15308         (copy_gui_item): new function.
15309         (gui_item_id_hash): revert to standard hash.
15310         (gui_item_hash): ditto.
15311         (gui_item_hash_internal): deleted.
15312         (mark_gui_item): mark value.
15313         (gui_item_add_keyval_pair): add value.
15314         (gui_item_init): ditto.
15315         (gui_add_item_keywords_to_plist): ditto.
15316         (gui_item_equal): ditto.
15317         (syms_of_gui): add Q_value.
15318
15319         * glyphs-x.c (x_progress_gauge_update): use pending items and
15320         value for setting the state.
15321         (x_update_widget): don't set items from pending here.
15322
15323         * glyphs-widget.c (update_widget): update items here.
15324         (progress_gauge_set_property): use items for storing value. Put
15325         new value in pending items.
15326
15327         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15328         items for new value. Convert percent -> value.
15329         (mswindows_tab_control_update): don't update items here.
15330
15331         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15332         (update_subwindow): ditto.
15333         (image_instance_changed): new function. Compare hash values and
15334         past and present widget items.
15335         (image_instantiate): We more careful about where we instantiate
15336         things.
15337         (image_instantiate): add error checking.
15338
15339         * gutter.c (syms_of_gutter): use -hook.
15340
15341 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15342
15343         * console-tty.c (Fset_console_tty_input_coding_system): Use
15344         Qkeyboard.
15345         (Fset_console_tty_output_coding_system): Use Qterminal.
15346         (tty_init_console): Use Qkeyboard and Qterminal.
15347
15348 2000-03-21  Ben Wing  <ben@xemacs.org>
15349
15350         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15351         From Mike Alexander <mta@arbortext.com>.
15352
15353 2000-03-21  Ben Wing  <ben@xemacs.org>
15354
15355         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15356         process brokenness.  Proper implementation to come.
15357         * callproc.c:
15358         Rename call-process-internal to old-call-process-internal.
15359         New impl. in process.el.
15360
15361 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15362
15363         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15364
15365 2000-03-20  Andy Piper  <andy@xemacs.org>
15366
15367         * glyphs.c (full_list_hash): make hashes of the same elements in
15368         different orders return different values.
15369
15370 2000-03-20  Martin Buchholz <martin@xemacs.org>
15371
15372         * XEmacs 21.2.32 is released.
15373
15374 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15375
15376         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15377         (DFC_MALLOC_USE_CONVERTED_DATA):
15378         Add aliasing-safe casts to allow use with char* or unsigned char*
15379         lvalues.
15380
15381         * eldap.c (Fldap_open):
15382         (Fldap_search_basic):
15383         (Fldap_add):
15384         (Fldap_modify):
15385         Make C++-compilable.
15386         Make sure GCPRO'ed variables are initialized.
15387         Use temp variables to avoid repeated calls to Flength.
15388
15389 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15390
15391         * sysfile.h:
15392         Make sure PATH_MAX is always defined.
15393         Include limits.h for PATH_MAX.
15394         Deprecate use of MAXPATHLEN.
15395
15396 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15397
15398         * emacs.c: Add reinit_vars_of_fileio.
15399         * symsinit.h: Add reinit_vars_of_fileio.
15400         * fileio.c (reinit_vars_of_fileio): New.
15401         * fileio.c (Fmake_temp_name):
15402         Initialize temp_name random number from microseconds to make
15403         collisions even less likely.  Initialize always at process startup
15404         time.  (make-temp-name) used to return the same file name twice in
15405         a row when PDUMP.
15406         Random stylistic fiddling.
15407         Comment fixes.
15408
15409 2000-03-20  Andy Piper  <andy@xemacs.org>
15410
15411         * glyphs.c (image_instantiate): allow text glyphs to be
15412         instantiated in the minibuffer window.
15413
15414 2000-03-19  Andy Piper  <andy@xemacs.org>
15415
15416         * glyphs.c (image_instance_hash): be careful about which items we
15417         hash on.
15418
15419         * glyphs-widget.c (tab_control_set_property): record into pending
15420         items rather than the actual items.
15421
15422         * glyphs-x.c (x_update_widget): use pending items to update with.
15423
15424         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15425         to update with.
15426
15427         * glyphs.c (mark_image_instance): mark pending items.
15428
15429         * window.c (Fset_window_configuration): record the buffer.
15430         (Fselect_window): totally revert previous change which breaks many
15431         things.
15432
15433 2000-03-18  Andy Piper  <andy@xemacs.org>
15434
15435         * glyphs-msw.c (mswindows_tab_control_update): force selected
15436         item.
15437
15438         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15439         window domain cache, otherwise we get inconsistencies at
15440         startup. There is something fishy at startup which can lead to the
15441         minibuffer being the selected window when the gutter content is
15442         instantiated.
15443
15444         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15445         gcpros.
15446         (parse_gui_item_tree_children): ditto.
15447         (parse_gui_item_tree_item): ditto.
15448
15449         * glyphs.c (Fupdate_widget_instances): return something.
15450
15451 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15452
15453         * window.c (Fselect_window): Undo 2000-03-17 change.
15454
15455 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15456
15457         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15458         against v7.0 libraries.  Insta-coredump city until the postgres
15459         folks fix it.
15460
15461 2000-03-17  Andy Piper  <andy@xemacs.org>
15462
15463         * faces.c (complex_vars_of_faces): don't give the widget face an
15464         inherited background pixmap.
15465
15466         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15467         selected item.
15468
15469         * event-stream.c (Fdispatch_non_command_events): return something.
15470
15471         * gutter.c (output_gutter): use widget face.
15472         (clear_gutter): ditto.
15473
15474         * NEWS: adjust again.
15475
15476         * window.c (Fselect_window): make sure this runs to completion to
15477         avoid oddities with Fset_window_configuration.
15478         (Fcurrent_window_configuration): in general do not save the
15479         minibuffer as the selected window.
15480
15481         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15482
15483 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15484
15485         * emacs.c (Frunning_temacs_p): Revert previous patch.
15486         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15487
15488 2000-03-16  Andy Piper  <andy@xemacs.org>
15489
15490         * glyphs-x.c (x_tab_control_update): if no widget values then
15491         return.
15492
15493         * NEWS: update for new features.
15494
15495         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15496         synthetic event to the native system.
15497         (reinit_vars_of_event_Xt): set force_event_pending to
15498         emacs_Xt_force_event_pending.
15499
15500         * events.h (struct event_stream): add force_event_pending.
15501
15502         * specifier.c (recompute_one_cached_specifier_in_window): add
15503         comment.
15504
15505         * redisplay.c (redisplay_frame): don't call
15506         update_frame_subwindows. Reset subwindow cachels when
15507         subwindows_changed, removing this was an optimization too far.
15508
15509         * redisplay-output.c (compare_runes): reorganize so that we catch
15510         glyph changes when we want them. Set optimize_output when this
15511         would help layouts.
15512         (redisplay_output_layout): remove frame_really_changed, use
15513         optimize_output instead.
15514
15515         * redisplay-msw.c (mswindows_output_display_block): reset
15516         optimize_output after outputting a glyph.
15517         * redisplay-x.c (x_output_display_block): ditto.
15518         * redisplay-tty.c (tty_output_display_block): ditto.
15519
15520         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15521         functions.
15522         (gutter_specs_changed): do specific gutter positions.
15523         (top_gutter_specs_changed): new function. Only update the
15524         specified gutter specs.
15525         (bottom_gutter_specs_changed): ditto.
15526         (left_gutter_specs_changed): ditto.
15527         (right_gutter_specs_changed): ditto.
15528
15529         * gui.c (gui_item_hash_internal): new function, does a real hash.
15530         (gui_item_id_hash): use it.
15531         (gui_item_hash): hash the eval'ed gui_item.
15532
15533         * gui-x.c (popup_selection_callback): send an eval event to call
15534         Fupdate_widget_instances.
15535
15536         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15537         to call Fupdate_widget_instances.
15538
15539         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15540         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15541
15542         * glyphs.c: (update_frame_subwindows): deleted.
15543         (Fupdate_widget_instances): new function for updating the dirty
15544         state of widgets that might have changed.
15545         (syms_of_glyphs): add Qupdate_widget_instances.
15546         (full_list_hash): hash a list completely.
15547         (image_instance_hash): use it for items and properties.
15548
15549         * frame-msw.c (mswindows_size_frame_internal): remove unused
15550         variable.
15551
15552         * faces.h (struct face_cachel): fix comment.
15553
15554         * event-stream.c (Fdispatch_non_command_events): new
15555         function. Process non-command events, forcing an event cycle
15556         beforehand.
15557         (syms_of_event_stream): declare.
15558         (event_stream_force_event_pending): new function. Force an event
15559         on the native event queue so that an event cycle will occur next
15560         time we check.
15561
15562         * event-msw.c:
15563         (struct ntpipe_shove_stream):
15564         (mswindows_enqueue_dispatch_event):
15565         (mswindows_dequeue_dispatch_event):
15566         (mswindows_cancel_dispatch_event):
15567         (mswindows_pump_outstanding_events):
15568         (mswindows_drain_windows_queue):
15569         (mswindows_handle_paint):
15570         (mswindows_wnd_proc):
15571         (mswindows_key_to_emacs_keysym):
15572         (get_process_input_waitable):
15573         (emacs_mswindows_delete_stream_pair): re-indent file.
15574         (mswindows_need_event): do not process further fds if the windows
15575         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15576         fixes the 100% cpu problem.
15577         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15578
15579 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15580
15581         * alloc.h: New.
15582         * dumper.h: New.
15583         * dumper.c: New.
15584
15585         * emacs.c: Moved dump file searching to dumper.c.
15586         (Frunning_temacs_p): Fixed.
15587
15588         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15589         last_lrecord_type_index_assigned.
15590
15591 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15592
15593         * symsinit.h: Added reinit parameter to init_console_stream
15594         declaration.
15595
15596         * lisp.h: Added file parameter to pdump_load declaration.
15597
15598         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15599         support.  Added dump file searching.
15600
15601         * config.h.in: Added EMACS_PROGNAME.
15602
15603         * console-stream.c (init_console_stream): Fix reinitialisation
15604         when running from temacs.
15605
15606         * alloc.c (pdump): Add id support.
15607         (pdump_load): Add file parameter and signature/id support.
15608
15609         * Makefile.in.in: Add full pdump support.
15610
15611 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15612
15613         * postgresql.c: Update documentation to reflect latest code
15614         status.
15615         (print_result): Show tuple counts in printed representation when
15616         appropriate.
15617         (Fpq_put_nbytes): MULE-ize.
15618         (Fpq_get_line_async): Ditto.
15619
15620 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15621
15622         * postgresql.c (Fpq_lo_import): Fix return value.
15623         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15624
15625 2000-03-13  Ben Wing  <ben@xemacs.org>
15626
15627         * alloc.c (pdump_load):
15628         Fix compile warning under mswin.
15629
15630 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15631
15632         * postgresql.c: Mule-ization, bug fixes.
15633         Use PG_CODING to encapsulate coding system name changes.
15634         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15635         (pg-coding-system): Create.
15636
15637         (Fpq_conn_defaults): Mule-ize.
15638         (Fpq_connectdb): Mule-ize & bug fix.
15639         (Fpq_connect_start): Mule-ize.
15640         (Fpq_set_client_encoding): Mule-ize.
15641         (Fpq_finish): Document `DEAD' connection status.
15642         (Fpq_clear): Ditto.
15643         (Fpq_pgconn): Mule-ize.
15644         (Fpq_exec): Mule-ize & bug fix.
15645         (Fpq_send_query): Ditto.
15646         (Fpq_get_result): Ditto.
15647         (Fpq_res_status): Mule-ize.
15648         (Fpq_result_error_message): Mule-ize.
15649         (Fpq_ntuples): fix comments.
15650         (Fpq_fname): Mule-ize.
15651         (Fpq_fnumber): Mule-ize.
15652         (Fpq_ftype): fix comments.
15653         (Fpq_get_value): Mule-ize.
15654         (Fpq_cmd_status): Ditto.
15655         (Fpq_cmd_tuples): Ditto.
15656         (Fpq_oid_value): Ditto.
15657         (Fpq_notifies): Ditto.
15658         (Fpq_lo_import): Ditto.
15659         (Fpq_lo_export): Ditto.
15660         (Fpq_get_line): Ditto.
15661         (Fpq_put_line): Mule-ize and bug fix.
15662         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15663
15664 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15665
15666         * postgresql.c (vars_of_postgresql): Mule-ize.
15667         (Fpq_conn_defaults): Ditto.
15668
15669 2000-03-12  Ben Wing  <ben@xemacs.org>
15670
15671         * alloc.c (Fmake_byte_code):
15672         * alloc.c (debug_string_purity_print):
15673         * alloc.c (pdump_backtrace):
15674         * alloc.c (pdump_get_indirect_count):
15675         * alloc.c (pdump_register_sub):
15676         * alloc.c (pdump_register_object):
15677         * alloc.c (pdump_register_struct):
15678         * alloc.c (pdump_dump_data):
15679         * alloc.c (pdump_reloc_one):
15680         Minor cleanups.
15681
15682         * console-msw.c:
15683         * console-msw.c (GetConsoleHwnd):
15684         * console-msw.c (msw_hide_console):
15685         * console-msw.c (msw_show_console):
15686         * console-msw.c (msw_ensure_console_buffered):
15687         * console-msw.c (msw_output_console_string):
15688         * console-msw.c (console_type_create_mswindows):
15689
15690         a) Added functions to manipulate the console window for use with
15691         shell support.
15692
15693         b) Added support for writing text to the console, which is now
15694         used under Windows when xemacs is not being run non-interactively,
15695         to write text that would otherwise be destined for stdout because
15696         under these circumstances, text written to stdout tends to
15697         disappear and not be seen.
15698
15699         * console-msw.h:
15700         * event-Xt.c:
15701         * event-Xt.c (x_event_to_emacs_event):
15702         * event-Xt.c (describe_event_window):
15703         * events-mod.h (XEMACS_MOD_CONTROL):
15704         * events.c:
15705         * events.c (Fmake_event):
15706         * events.c (character_to_event):
15707         * events.c (event_to_character):
15708         * events.c (format_event_object):
15709         * events.c (Fevent_modifiers):
15710         * events.h:
15711         * events.h (struct key_data):
15712         * events.h (struct button_data):
15713         * events.h (struct misc_user_data):
15714         * frame-x.c (Fcde_start_drag_internal):
15715         * frame-x.c (Foffix_start_drag_internal):
15716         * gpmevent.c (Freceive_gpm_event):
15717         * keymap.c:
15718         * keymap.c (bucky_sym_to_bucky_bit):
15719         * keymap.c (control_meta_superify):
15720         * keymap.c (make_key_description):
15721         * keymap.c (keymap_lookup_directly):
15722         * keymap.c (create_bucky_submap):
15723         * keymap.c (keymap_store):
15724         * keymap.c (define_key_check_and_coerce_keysym):
15725         * keymap.c (define_key_parser):
15726         * keymap.c (define_key_alternate_name):
15727         * keymap.c (Fdefine_key):
15728         * keymap.c (raw_lookup_key_mapper):
15729         * keymap.c (struct map_keymap_unsorted_closure):
15730         * keymap.c (map_keymap_unsorted_mapper):
15731         * keymap.c (map_keymap_sort_predicate):
15732         * keymap.c (map_keymap_sorted):
15733         * keymap.c (accessible_keymaps_mapper_1):
15734         * keymap.c (where_is_recursive_mapper):
15735         * keymap.c (describe_map_mapper):
15736         * keymap.c (describe_map_sort_predicate):
15737         * keymap.c (describe_map):
15738         * keymap.c (complex_vars_of_keymap):
15739         And a number of other files, the key modifier preprocessor
15740         constants that xemacs uses have names that conflict with constants
15741         defined under MS Windows for other purposes, so they were renamed
15742         to begin with the prefix XEMACS_. The variables that hold such
15743         modifiers were changed to consistently be of type int to fix
15744         various compile warnings.
15745
15746         * console.c (complex_vars_of_console):
15747         * device.c:
15748         * device-msw.c:
15749         * device-msw.c (mswindows_finish_init_device):
15750         * device-msw.c (msw_get_workspace_coords):
15751         * device-msw.c (mswindows_device_system_metrics):
15752         and various other files, added support for a new
15753         device property called offset-workspace which returns the position
15754         of the upper left corner of the workspace area and goes along with
15755         the existing size-workspace property.
15756
15757         * dialog-msw.c:
15758         * dialog-msw.c (push_bufbyte_string_as_unicode):
15759         * dialog-msw.c (mswindows_popup_dialog_box):
15760         Added support for XEmacs-style accelerator specifications in
15761         button text.  Note: I didn't add support for this under X Windows,
15762         and somebody needs to do this.
15763
15764         * dialog.c:
15765         * dialog.c (Fpopup_dialog_box):
15766         Documented the support for accelerators that was just mentioned.
15767
15768         editfns.c (get_home_directory): Changed behavior under Windows
15769         when HOME not defined; former behavior was irretrievably broken.
15770
15771         * emacs.c:
15772         * emacs.c (main_1):
15773         * emacs.c (main):
15774         * minibuf.c (clear_echo_area_internal):
15775         * minibuf.c (echo_area_append):
15776         * print.c:
15777         * print.c (std_handle_out_external):
15778         * print.c (std_handle_out_va):
15779         * print.c (fatal):
15780         * print.c (write_string_to_stdio_stream):
15781         * print.c (output_string):
15782         * print.c (debug_print):
15783         * print.c (debug_backtrace):
15784         * print.c (debug_short_backtrace):
15785         Cleaned up the code that prints text to stdout so that this can be
15786         changed to output into a console window instead under MS Windows,
15787         as described above.
15788
15789         * eval.c:
15790         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15791         * eval.c (internal_catch):
15792         * eval.c (unwind_to_catch):
15793         * eval.c (throw_or_bomb_out):
15794         * eval.c (condition_case_1):
15795         * eval.c (signal_1):
15796         * eval.c (check_error_state_sanity):
15797         * eval.c (call_with_suspended_errors_1):
15798         * eval.c (call_with_suspended_errors):
15799         * eval.c (reinit_vars_of_eval):
15800         Added code to catch throw loops and check for a pesky bug that may
15801         be gone now.
15802
15803         * event-msw.c:
15804         * event-msw.c (key_needs_default_processing_p):
15805         * event-msw.c (mswindows_wnd_proc):
15806         * event-msw.c (mswindows_modifier_state):
15807         * event-msw.c (emacs_mswindows_quit_p):
15808         * event-msw.c (vars_of_event_mswindows):
15809         a) Added support for using the alt key to select menu items as is
15810         standard under MS Windows.  This is controlled using the variable
15811         menu-accelerator-enabled, just like under X Windows.  There is an
15812         option on the options menu to turn this support on.  I really
15813         think that it should be on by default under Windows, but I'm not
15814         going to make this change yet.
15815
15816         b)  Added support for dynamic display size changes under Windows.
15817
15818         * event-stream.c:
15819         * event-stream.c (maybe_echo_keys):
15820         * event-stream.c (Fnext_event):
15821         * event-stream.c (command_builder_find_leaf):
15822         * event-stream.c (lookup_command_event):
15823         * event-stream.c (execute_command_event):
15824         * event-stream.c (pre_command_hook):
15825         * event-stream.c (post_command_hook):
15826         * event-stream.c (syms_of_event_stream):
15827         * event-stream.c (vars_of_event_stream):
15828         * event-stream.c (complex_vars_of_event_stream):
15829         * events.h (struct command_builder):
15830
15831         a) Tried to clean up a little bit the horribly written x-specific
15832         accelerator code that crept into this file.  I moved this code
15833         into menubar-x.c where it belongs. I also needed to move the
15834         command builder structure into the file events.h because it is
15835         accessed directly by this accelerator code.  What I didn't do, but
15836         which should be done at some point, is to properly abstract this
15837         code using device methods instead of the kludgy way that it
15838         currently hooks into the event code.
15839
15840         b) Added the lisp variables this-command-properties and
15841         last-command- properties, which should be used to synchronize two
15842         adjacent commands in preference to playing games with the variable
15843         this-command, which is typically what happens.
15844
15845         c) Added some slightly nasty code to hook into the lisp support
15846         for shifted- motion-key selection.  This is actually necessary for
15847         somewhat complicated reasons, which are described in
15848         simple.el. (NB: I think the proper thing would be to have the code
15849         that calls the pre and post command hooks also call out to generic
15850         lisp functions in simple.el, where all built-in stuff could be
15851         added.  I will think about this more.)
15852
15853         * event-unixoid.c (poll_fds_for_input):
15854         * lread.c (readchar):
15855         * redisplay-tty.c (tty_clear_frame):
15856         * redisplay-x.c (x_get_gc):
15857         * signal.c (interrupt_signal):
15858         And a whole bunch of other files: fixed up places that printed
15859         directly to stderr to instead call the function stderr_out so that
15860         the changes I made under Windows work correctly.
15861
15862         * filemode.c (mode_string):
15863         Warning fixes.
15864
15865         * frame-msw.c:
15866         * frame-msw.c (mswindows_size_frame_internal):
15867         Fixed the computation of frame size and position to keep the frame
15868         within the workspace area, rather than within the physical
15869         dimensions of the screen, so that the frame doesn't overlap window
15870         manager decorations, such as the start menu and toolbar, typically
15871         at the bottom of the screen.
15872
15873         * frame.c (vars_of_frame):
15874         Changed the default frame title format under MS Windows to consist
15875         of buffername-XEmacs, which is standard under MS Windows.  I think
15876         it might be a good idea to change this everywhere because I think
15877         it is superior to the current frame title format, but this is the
15878         kind of change that is likely to cause some people to get annoyed,
15879         so I'm not making it.
15880
15881         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15882
15883         * gui-msw.c (mswindows_handle_gui_wm_command):
15884         Fixed compile warnings.
15885
15886         * gui-x.c:
15887         * gui-x.c (strdup_and_add_accel):
15888         * gui-x.c (button_item_to_widget_value):
15889         * gui-x.h:
15890         Added code to automatically put an accelerator onto the beginning
15891         of menu items that don't have one as is now the standard, and is
15892         described more later.  Also fixed things so that the menu item
15893         name can be an evaluated expression, again a new standard.
15894
15895         * gui.c:
15896         * gui.c (gui_item_add_keyval_pair):
15897         * gui.c (make_gui_item_from_keywords_internal):
15898         * gui.c (gui_add_item_keywords_to_plist):
15899         * gui.c (gui_item_accelerator):
15900         * gui.c (gui_name_accelerator):
15901         * gui.c (gui_item_included_p):
15902         * gui.c (gui_item_display_flush_left):
15903         * gui.c (gui_item_display_flush_right):
15904         * gui.c (parse_gui_item_tree_item):
15905         * gui.c (parse_gui_item_tree_children):
15906         * gui.c (parse_gui_item_tree_list):
15907         Mule-ized.  Cleanup.  GCPRO addition.
15908
15909         * line-number.c (buffer_line_number):
15910         * lisp.h:
15911         * lisp.h (EMACS_INT_MAX):
15912         Added the manifest constant EMACS_INT_MIN corresponding to the
15913         existing constant EMACS_INT_MAX.  This is partially to fix compile
15914         warnings under Windows, and partly for cleanliness.
15915
15916         * menubar-msw.c:
15917         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15918         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15919         * menubar-msw.c (displayable_menu_item):
15920         * menubar-msw.c (populate_menu_add_item):
15921         * menubar-msw.c (populate_or_checksum_helper):
15922         * menubar-msw.c (populate_menu):
15923         * menubar-msw.c (update_frame_menubar_maybe):
15924         * menubar-msw.c (prune_menubar):
15925         * menubar-msw.c (msw_char_is_accelerator):
15926         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15927         * menubar-msw.c (mswindows_handle_wm_command):
15928         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15929         * menubar-msw.c (mswindows_handle_wm_initmenu):
15930         * menubar-msw.c (mswindows_update_frame_menubars):
15931         * menubar-msw.c (mswindows_free_frame_menubars):
15932         * menubar-msw.c (mswindows_popup_menu):
15933         Fixed a bug in handling accelerators where an extra character
15934         would be displayed in the menu item.  Also generalized the
15935         function displayable_menu_item because it is now used by the
15936         dialog box code as well.  And finally, added code in the functions
15937         that create the menubar to extract a list of accelerators for the
15938         top level menubar, which is used in the event code to determine
15939         whether a particular alt-key combination should be used to invoke
15940         a menu item, or should be passed through to access the standard
15941         XEmacs keymap binding for this key combination.
15942
15943         Much needed GCPROing.
15944
15945         * menubar-x.c:
15946         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15947         * menubar-x.c (menu_item_descriptor_to_widget_value):
15948         * menubar-x.c (restore_in_menu_callback):
15949         * menubar-x.c (x_popup_menu):
15950         * menubar-x.c (menu_move_up):
15951         * menubar-x.c (menu_move_down):
15952         * menubar-x.c (menu_move_left):
15953         * menubar-x.c (menu_move_right):
15954         * menubar-x.c (menu_select_item):
15955         * menubar-x.c (command_builder_operate_menu_accelerator):
15956         * menubar-x.c (menu_accelerator_junk_on_error):
15957         * menubar-x.c (command_builder_find_menu_accelerator):
15958         * menubar-x.c (Faccelerate_menu):
15959         * menubar.h:
15960         Moved a whole bunch of code here that was previously in
15961         event-stream.c as described above.  There is also code connected
15962         to the new standard of adding an accelerator to the beginning of
15963         menu items that don't have one as described above and below.
15964
15965         * menubar.c:
15966         * menubar.c (menu_parse_submenu_keywords):
15967         * menubar.c (Fmenu_find_real_submenu):
15968         * menubar.c (Fnormalize_menu_item_name):
15969         * menubar.c (syms_of_menubar):
15970         * menubar.c (vars_of_menubar):
15971         * menubar.c (complex_vars_of_menubar):
15972
15973         a) Cleaned up a bunch of documentation and improved it.
15974
15975         b) XEmacs now automatically adds an accelerator onto the beginning
15976         of any menu items that don't have one.  I did this because there
15977         will inevitably be some menu items on the main menubar that don't
15978         have accelerators on them because the package that adds that
15979         particular menu item hasn't yet been fixed up to have accelerators
15980         in them and it looked rather strange to have some items with and
15981         some items without accelerators, especially since even in items
15982         without accelerators, you can, at least under windows, still
15983         access the item through an accelerator corresponding to the first
15984         character in the item's name.  If people don't like this behavior,
15985         I can add a variable to turn it off optionally, but I'm not sure
15986         this is a good idea because we really do need to have accelerators
15987         on all of the menu items, and if a package doesn't like the
15988         accelerators being put on the first character, then it should put
15989         the accelerators where they belong.
15990
15991         c) I made a behavior change, which is that the descriptor that
15992         specifies the text of the menu item, which formerly was just a
15993         string, can now also be an evaluated expression.  This makes this
15994         descriptor parallel with all of the others, which could also be
15995         evaluated expressions.  This also obviates the need for the
15996         keyword :label, which was previously listed in the documentation
15997         as unimplemented, and which was for the same purpose.
15998
15999         d) GCPROing.
16000
16001         * ntproc.c:
16002         * ntproc.c (new_child):
16003         * ntproc.c (sys_spawnve):
16004         * ntproc.c (find_child_console):
16005         * ntproc.c (sys_kill):
16006         Fixed compile warnings.  By the way, this file should really go
16007         away entirely, and this will happen as soon as Kirill makes his
16008         final round of process cleanups, which affect the function
16009         call-process.
16010
16011         * process-nt.c:
16012         * process-nt.c (struct nt_process_data):
16013         * process-nt.c (find_process_from_pid):
16014         * process-nt.c (send_signal_the_nt_way):
16015         * process-nt.c (enable_child_signals):
16016         * process-nt.c (find_child_console):
16017         * process-nt.c (send_signal_the_95_way):
16018         * process-nt.c (nt_finalize_process_data):
16019         * process-nt.c (ensure_console_window_exists):
16020         * process-nt.c (nt_create_process):
16021         * process-nt.c (nt_kill_child_process):
16022         * process-nt.c (nt_kill_process_by_pid):
16023         * process-nt.c (nt_open_network_stream):
16024         * process-nt.c (vars_of_process_nt):
16025         Copied over code from Emacs 20.5 to correctly send signals to sub-
16026         processes under Windows 95.  Also added code to automatically
16027         create and hide console window when a sub-process is created under
16028         Windows 95, which obviates the need for the separate runemacs.exe
16029         executable, and finally implemented some variables that were
16030         implemented in Emacs 20.5, but previously not in XEmacs.  These
16031         include mswindows- start-process-share-console and
16032         mswindows-start-process-inherit-error-mode. (Both of these only
16033         apply to Windows 95.)
16034
16035         * regex.c (regex_compile): Fixed a compile warning.
16036
16037         * select-msw.c:
16038         * select-msw.c (mswindows_own_selection):
16039         * select-msw.c (mswindows_get_foreign_selection):
16040         * select-msw.c (mswindows_disown_selection):
16041         * select-msw.c (console_type_create_select_mswindows):
16042         * select-msw.c (syms_of_select_mswindows):
16043         Cleaned up the file and implemented the device method
16044         selection_exists_p, which had accidentally been left out.  Also
16045         removed four lisp functions that were remnants from before the
16046         time when the selection code was properly device abstracted.
16047         These functions are no longer needed because there are generic
16048         equivalents, and because they were added recently and don't exist
16049         in FSF Emacs, I don't think there's any problem with just deleting
16050         them.
16051
16052         * sysdep.c:
16053         * sysdep.c (sys_subshell):
16054         Fixed a compile warning, although in this case there's probably
16055         something wrong with this code, and it ought to be looked into
16056         more thoroughly by somebody who understands it.
16057
16058         * window.c:
16059         * window.c (Fwindow_text_area_height):
16060         * window.c (Fwindow_width):
16061         * window.c (Fwindow_full_width):
16062         * window.c (Fwindow_pixel_width):
16063         * window.c (debug_print_window):
16064         * window.c (syms_of_window):
16065         Added functions window-text-area-height and window-full-width,
16066         which are functions for returning various width and height
16067         characteristics of a window. (One of these functions is necessary
16068         for making the file dialog box work correctly, and the other one
16069         was added for completeness.)  Also added a table to the
16070         documentation for window-height which describes the entire scheme
16071         for accessing width and height characteristics of a window.
16072
16073 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16074
16075         * nt.c (fstat): Added a comment for another problem with
16076         non-encapsulated [f]stat(), reported by Adrian Aichner
16077         <aichner@ecf.teradyne.com>.
16078
16079 2000-03-11  Andy Piper  <andy@xemacs.org>
16080
16081         * window.c (make_dummy_parent): initialize subwindow instance
16082         cache.
16083         (Fset_window_configuration): zero extent_modiff.
16084
16085 2000-03-10  Andy Piper  <andy@xemacs.org>
16086
16087         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
16088         more changes can be triggered.
16089         (Fredisplay_frame): ditto.
16090         (Fredraw_device): ditto.
16091         (Fredisplay_device): ditto.
16092         (redisplay_frame): make non-static.
16093         (redisplay_frame): call update_frame_gutter_geometry outside of
16094         display proper.
16095
16096         * gutter.h: declare update_frame_gutter_geometry.
16097
16098         * redisplay.h: declare redisplay_frame.
16099
16100         * gutter.c (update_frame_gutter_geometry): move geometry changes
16101         in update_frame_gutters here. Geometry changes can only occur
16102         outside of redisplay.
16103         (update_frame_gutters): remove geometry change code.
16104         (Fredisplay_gutter_area): make sure that we are in display when we
16105         update and that we have flushed any size changes.
16106
16107 2000-03-11  Andy Piper  <andy@xemacs.org>
16108
16109         * alloc.c (pdump_dump_data): remove i & count shadows.
16110
16111 2000-02-27  Mike Alexander  <mta@arbortext.com>
16112
16113         * sysdep.h: Declare pdump_read_file
16114
16115         * sysdep.c (pdump_read_file): New function
16116
16117         * alloc.c (pdump_load): Call pdump_read_file to get the portable
16118         dump data
16119
16120 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
16121
16122         * lrecord.h: add `lrecord_type_pgsetenv'.
16123
16124 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
16125
16126         * symsinit.h: declare (vars|syms)_of* functions.
16127         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
16128
16129 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
16130
16131         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
16132
16133         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
16134         GCCs.
16135
16136         * emacs.c (main_1): Call postgres initialization code.
16137
16138         * postgresql.h: New file.  PostgreSQL RDBMS support.
16139         * postgresql.c: New file.
16140
16141 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
16142
16143         * redisplay-output.c (redisplay_output_display_block): Disable
16144         redundant code.
16145
16146 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16147
16148         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
16149         (Fcanna_henkan_next): Ditto.
16150         (Fcanna_bunsetu_henkou): Ditto.
16151         (Fcanna_henkan_kakutei): Ditto.
16152         (Fcanna_henkan_end): Ditto.
16153         (Fcanna_henkan_quit): Ditto.
16154         (Fcanna_henkan_next): Set retun value correctly.
16155         (c2mu): Use unsigned char instead of signed char.
16156
16157 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16158
16159         * emacs.c (main_1): Always call syms_of_gui.
16160         * inline.c: include gui.h
16161
16162 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16163
16164         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
16165         converted to Lisp_Object.
16166         (Qtop_bottom): New variable.
16167         (syms_of_redisplay): Initialize it.
16168         * redisplay.h (Vvisible_bell): Ditto.
16169         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
16170         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
16171         only flash top and bottom.
16172
16173 2000-03-08  Andy Piper  <andy@xemacs.org>
16174
16175         * buffer.c (Frename_buffer): record new buffer name the right way.
16176
16177 2000-03-08  Andy Piper  <andy@xemacs.org>
16178
16179         * glyphs.c (update_subwindow): increase hash depth so that widget
16180         items get picked up properly.
16181
16182         * redisplay-output.c (compare_runes): increase hash depth so that
16183         widget items get picked up properly.
16184
16185 2000-03-08  Andy Piper  <andy@xemacs.org>
16186
16187         * gutter.c (output_gutter): add some debug.
16188
16189         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
16190         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
16191         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
16192
16193         * redisplay-output.c (compare_runes): use display_hash to
16194         determine if glyphs really are not the same.
16195
16196         * glyphs.c (update_subwindow): check display_hash to see if
16197         anything really needs to be updated. If not then do
16198         nothing. Record the display_hash after updating.
16199         (image_instance_equal): compare the image_instance face also.
16200
16201 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
16202
16203         * redisplay.h: Fix comment style.
16204
16205 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16206
16207         * consle-msw.h (struct mswindows_frame):
16208         Added new member paint_pending to indicate whether a WM_PAINT
16209         magic event has been queued for this frame.
16210
16211         * event-msw.c (mswindows_drain_windows_queue):
16212         Don't queue a WM_PAINT magic event if one is already queued.
16213         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
16214
16215         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
16216
16217 2000-03-07  Didier Verna  <didier@xemacs.org>
16218
16219         * dired.c: #include `regex.h' after `sysfile.h'.
16220
16221 2000-03-06  Martin Buchholz  <martin@xemacs.org>
16222
16223         * sound.c (init_nas_sound): Fix compiler warning.
16224
16225         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
16226         (FREE_STRUCT_P):
16227         (MARK_STRUCT_AS_FREE):
16228         (MARK_STRUCT_AS_NOT_FREE):
16229         Make `gcc -fstrict-aliasing' work properly.
16230
16231 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16232
16233         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16234         (mswindows_delete_device): Call CoUnnitialize().
16235
16236         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16237
16238 2000-02-25    <CraigL@DyCon.com>
16239
16240         * process-nt.c: MinGW now has <shellapi.h>, but still needs
16241         <errno.h>.
16242
16243         * sysdep.c: This extern declaration for environ prevents MinGW
16244         from finding the variable in CRTDLL.DLL.
16245
16246         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16247         windows headers.
16248         (SHGFI_EXETYPE): ..
16249         (WM_MOUSEWHEEL): ..
16250         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16251         definitions.
16252         (MMRESULT): Removed, now defined in cygwin's windows headers.
16253         (TIMECAPS): ..
16254         (uid_t,gid_t,pid_t,ssize_t): ..
16255         (_timeb): Removed, MinGW defines both _timeb and timeb.
16256         (HAVE_H_ERRNO): Added.
16257         (HAVE_TZNAME): Added, configure is not detecting this.
16258
16259 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16260
16261         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16262         * syntax.c (syntax_match): Use it.
16263
16264         * cmds.c: Import auto-fill-chars from FSF Emacs.
16265         (Vauto_fill_chars): New variables.
16266         (internal_self_insert): Check Vauto_fill_chars.
16267         (vars_of_cmds):
16268         Declare auto-fill-chars as a Lisp variable and initialize it.
16269
16270 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16271
16272         * fileio.c (Fmake_symbolic_link):
16273         (Ffile_symlink_p):
16274         Run handlers even if local machine doesn't have symlinks.
16275
16276 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16277
16278         * event-msw.c (mswindows_drain_windows_queue):
16279         Don't generate paint magic events for non-XEmacs frames.
16280
16281 2000-03-05  Andy Piper  <andy@xemacs.org>
16282
16283         * redisplay.c (redisplay_frame): generate_displayable_area and
16284         friends assumes that we are not in GC, we therefore have to make
16285         sure that this doesn't happen.
16286
16287         * gutter.c (calculate_gutter_size): generate_displayable_area
16288         assumes that we are not in GC, we therefore have to make sure that
16289         this doesn't happen.
16290
16291 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16292
16293         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16294
16295 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16296
16297         * redisplay.c (regenerate_window): Make sure we set a sane value
16298         for end_pos even if we jump out of the loop.
16299         (regenerate_window): Answer Ben's question :-).
16300         (start_end_of_last_line): Add may_error argument.
16301         (start_of_last_line):
16302         (end_of_last_line): Pass may_error = 0.
16303         (end_of_last_line_may_error): New function.
16304         (pixel_to_glyph_translation): Use it, so we don't crash in
16305         event_to_glyph.
16306
16307 2000-03-04  Andy Piper  <andy@xemacs.org>
16308
16309         * window.h (struct window): add gutter_extent_modiff.
16310
16311         * window.c (allocate_window): zero out gutter_extent_modiff.
16312
16313         * redisplay.h: declare sync_display_line_structs.
16314
16315         * redisplay.c (add_glyph_rune): add a better comment.
16316
16317         * redisplay-output.c (sync_display_line_structs): made non-static.
16318         (compare_runes): remove unneccesary glyph cachel access.
16319
16320         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16321
16322         * gutter.c (output_gutter): don't output the gutter if extent
16323         changes only involve extents in buffers. use 4 sets of display
16324         lines.
16325         (gutter_extent_signal_changed_region_maybe): new function. Mark
16326         extents in gutters as changed.
16327         (update_frame_gutters): use 4 sets of display lines.
16328         (reset_gutter_display_lines): ditto.
16329         (free_frame_gutters): ditto.
16330         (redraw_exposed_gutter): force output of gutters.
16331
16332         * frame.h (struct frame): add 4 sets of gutter display lines.
16333
16334         * extents.c: (extent_changed_for_redisplay): signal changes to
16335         extents in strings in the gutter as well as extents in buffers.
16336
16337 2000-03-02  Andy Piper  <andy@xemacs.org>
16338
16339         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16340
16341         * frame.c (Fmake_frame): make sure the gutters get initialized
16342         after the frame is visible.
16343         (set_frame_selected_window): re-arrange compilation macros a
16344         little.
16345         (change_frame_size_1): mark gutters changed.
16346
16347         * device.c (Fset_device_class): mark gutters changed.
16348
16349 2000-03-01  Andy Piper  <andy@xemacs.org>
16350
16351         * window.c (window_top_frame_gutter_height): deleted.
16352         (window_bottom_frame_gutter_height): ditto.
16353         (window_left_frame_gutter_height): ditto.
16354         (window_right_frame_gutter_height): ditto.
16355         (window_top_gutter_height): don't use them.
16356         (window_bottom_gutter_height): ditto.
16357         (window_left_gutter_width): ditto.
16358         (window_right_gutter_width): ditto.
16359         (Fsplit_window): ditto.
16360         (Fwindow_pixel_edges): don't use border dimensions here.
16361
16362         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16363         (update_scrollbar_instance): ditto.
16364
16365         * redisplay.c (generate_modeline): don't take gutters into account.
16366         (generate_modeline): ditto.
16367         (redisplay_frame): small gutter display optimization.
16368
16369         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16370
16371         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16372         gutters into account.
16373
16374         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16375         for window position and type.
16376
16377         * gutter.c (get_gutter_coords): fix for frame gutters.
16378         (update_frame_gutters): update frame geometry if the gutters have
16379         changed.
16380         (init_frame_gutters): record current gutter geometries.
16381
16382         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16383         var.
16384         (mswindows_widget_instantiate): ditto.
16385
16386         * frame.h (struct frame): add current_gutter_bounds.
16387
16388         * frame.c (change_frame_size_1): position window and minibuffer
16389         appropriately taking into account the frame gutters.
16390
16391         * frame-x.c: (x_initialize_frame_size): take into account the
16392         frame gutters.
16393
16394 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16395
16396         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16397
16398 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16399
16400         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16401
16402 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16403
16404         * file-coding.c (reset_decoding_stream): Clear previous
16405         detection state when autodetect.
16406
16407 2000-02-29  Didier Verna  <didier@xemacs.org>
16408
16409         * extents.c (set_extent_glyph_1): don't require extents to be
16410         attached.
16411
16412 2000-02-27  Andy Piper  <andy@xemacs.org>
16413
16414         * gutter.c (Fset_default_gutter_position): don't default left and
16415         right gutter visibility to t.
16416         (Fset_default_gutter_position): run
16417         default-gutter-position-changed-hook.
16418         (syms_of_gutter): add default-gutter-position-changed-hook.
16419
16420 2000-02-26  Andy Piper  <andy@xemacs.org>
16421
16422         * specifier.c (Fmake_specifier): add gutter references.
16423
16424         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16425
16426         * lisp.h: declare Fvalid_plist_p.
16427
16428         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16429         as changed.
16430         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16431         well as its visibility so that it gets reconstructed.
16432         (construct_window_gutter_spec): new function. Construct a string
16433         to be displayed in the gutter from a plist of strings. Take care
16434         to only use elements that are declared as visible.
16435         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16436         WINDOW_GUTTER.
16437         (gutter_validate): allow plists of strings in the specifier.
16438         (gutter_specs_changed): construct the real_gutter from the gutter
16439         specs using construct_window_gutter_spec.
16440         (gutter_visible_validate): gutter-visible is a new specifier type.
16441         (Fgutter_visible_specifier_p): new function for the new specifier.
16442         (syms_of_gutter): declare gutter-visible and
16443         Fgutter_visible_specifier_p.
16444         (specifier_type_create_gutter): intitalize new gutter-visible
16445         specifier.
16446         (reinit_specifier_type_create_gutter): ditto.
16447         (specifier_vars_of_gutter): use new specifier type for gutter
16448         visibility.
16449         (init_frame_gutters): construct real_gutter correctly.
16450         (Fgutter_specifier_p): beef up documentation.
16451         (Fgutter_size_specifier_p): ditto.
16452
16453         * winslots.h: add real_gutter slots.
16454
16455 2000-02-25  Andy Piper  <andy@xemacs.org>
16456
16457         * device-msw.c: Be kind to older cygwin versions. From Raymond
16458         Toy <toy@rtp.ericsson.se>.
16459
16460         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16461         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16462
16463 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16464
16465         * elhash.c (MARK_OBJ): Practice macro hygiene.
16466
16467 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16468
16469         * miscplay.c: s/__inline__/inline/g;
16470         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16471         (get_device_compdc): INLINE ==> static inline
16472         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16473         find -name '*.h' | \
16474         xargs global-replace \
16475         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16476
16477 2000-02-25  Andy Piper  <andy@xemacs.org>
16478
16479         * window.c (window_top_frame_gutter_height): new function.
16480         (window_top_window_gutter_height): ditto.
16481         (window_top_gutter_height): use them.
16482         (window_bottom_frame_gutter_height): new function.
16483         (window_bottom_window_gutter_height): ditto.
16484         (window_bottom_gutter_height): use them.
16485         (window_left_window_gutter_width): new function.
16486         (window_left_frame_gutter_width): ditto.
16487         (window_left_gutter_width): use them.
16488         (window_right_window_gutter_width): new function.
16489         (window_right_frame_gutter_width): ditto.
16490         (window_right_gutter_width): use them.
16491         (window_pixel_height): new function. calulate window pixel height
16492         with frame gutter involvement.
16493         (Fsplit_window): calculate new sizes taking frame gutters into
16494         account.
16495         (window_char_height_to_pixel_height): don't include frame gutters.
16496         (window_char_height): use window_pixel_height.
16497         (window_pixheight): rename from window_pixel_height.
16498         (change_window_height): use it.
16499         (window_pixel_height_to_char_height): don't include frame gutters.
16500         (window_char_width_to_pixel_width): ditto.
16501
16502 2000-02-25  Andy Piper  <andy@xemacs.org>
16503
16504         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16505         if it is.
16506
16507 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16508
16509         * alloc.c (staticpro):
16510         (staticpro_nodump):
16511         (dumpstruct):
16512         (dumpopaque):
16513         (pdump_wire):
16514         (pdump_wire_list):
16515         (compact_string_chars):
16516         (pdump_dump_wired):
16517         Convert:  if (foo) abort();  ==>  assert (! foo);
16518
16519         * eldap.c (Fldap_search_basic):
16520         (Fldap_add):
16521         (Fldap_modify):
16522         (Fldap_delete):
16523         Fix compiler warnings, and possible crashes if (random) return
16524         value were to be used.
16525
16526 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16527
16528         * device-msw.c: Workaround ResetDC failure.
16529
16530         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16531         applying a devmode.
16532
16533         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16534         (mswindows_text_width): Do not start printer page.
16535
16536         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16537
16538         * glyphs-msw.c: Added image methods to msprinter console and
16539         msprinter-specific image instantiation.
16540
16541 2000-02-20  Mike Alexander  <mta@arbortext.com>
16542
16543         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16544         to avoid crashes when selection-sets-clipboard is on
16545         (mswindows_own_selection): ditto
16546
16547 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16548
16549         * glyphs-msw.c:
16550         * redisplay-msw.c (get_frame_dc):
16551         (get_frame_compdc):
16552         * console-msw.h:
16553         * device-msw.c (mswindows_init_device):
16554         (mswindows_delete_device):
16555         (msprinter_init_device):
16556         (msprinter_delete_device):
16557         * frame-msw.c (mswindows_init_frame_1):
16558         (mswindows_delete_frame):
16559         (msprinter_init_frame_3):
16560         (msprinter_delete_frame): Move compatible DC to device object from
16561         frame object, for both mswindows and msprinter. Only one at a time
16562         is needed, it is a real waste to have one per frame!
16563
16564 2000-02-23  Andy Piper  <andy@xemacs.org>
16565
16566         * glyphs.c: add dynamic width and height elements.
16567         (image_instance_equal): ditto.
16568
16569         * glyphs-widget.c (widget_query_geometry): calculate width and
16570         height dynamically if required.
16571         (initialize_widget_image_instance): initialize dynamic dimensions.
16572         (widget_instantiate): pick-up dynamic dimensions.
16573
16574         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16575         dynamic determination. Add appropriate macros.
16576
16577         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16578         dimensions safe.
16579         (WINDOW_GUTTER_SIZE): ditto.
16580         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16581
16582         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16583         inline.
16584         (get_frame_dc): ditto.
16585
16586         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16587         here.
16588
16589 2000-02-23  Martin Buchholz <martin@xemacs.org>
16590
16591         * XEmacs 21.2.31 is released.
16592
16593 2000-02-22  Ben Wing <ben@xemacs.org>
16594
16595         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16596
16597 2000-02-22  Andy Piper  <andy@xemacs.org>
16598
16599         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16600
16601 2000-02-21  Mike Sperber <mike@xemacs.org>
16602
16603         * .dbxrc:
16604         * .gdbinit:
16605         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16606         variables.
16607
16608 2000-02-21  Mike Sperber <mike@xemacs.org>
16609
16610         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16611
16612 2000-02-21  Martin Buchholz <martin@xemacs.org>
16613
16614         * XEmacs 21.2.30 is released.
16615
16616 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16617
16618         Performance hacking.
16619         * *.c (syms_of_*):
16620         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16621         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16622         * emacs.c (main_1):
16623         * lisp.h (DEFUN):
16624         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16625         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16626         * symeval.h (DEFVAR_SYMVAL_FWD):
16627         * symbols.c (guts_of_unbound_marker):
16628         Make all c_readonly objects also lisp_readonly and marked for life.
16629         * lrecord.h (struct lrecord_implementation):
16630         Document flags better.
16631         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16632         * lrecord.h (DECLARE_LRECORD):
16633         * lrecord.h (XSETRECORD):
16634         * lrecord.h (RECORDP):
16635         * lrecord.h (RECORD_TYPEP):
16636         * lrecord.h (RECORD_MARKER): New.
16637         * lrecord.h (error_check_*):
16638         * lrecord.h (CONCHECK_NONRECORD):
16639         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16640         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16641         * lrecord.h (set_lheader_implementation):
16642         * lrecord.h (enum lrecord_type): New.
16643         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16644         * alloc.c (disksave_object_finalization_1):
16645         * alloc.c (mark_object):
16646         * alloc.c (lrecord_type_index):
16647         * alloc.c (tick_lcrecord_stats):
16648         * alloc.c (Fgarbage_collect):
16649         * alloc.c (init_alloc_once_early):
16650         * alloc.c (pdump_load):
16651         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16652         * alloc.c (lrecord_type_index): Delete.
16653         Make lisp object type indexes be constant.
16654           Makes (byte-compile) 5% faster.
16655         Put all marker functions into their own array.
16656           Makes (garbage-collect) 5% faster.
16657         Optimize SYMBOL_VALUE_MAGIC_P.
16658           Makes (byte-compile) 2-3% faster.
16659         * config.h.in (gc_checking_assert): New.
16660         * alloc.c: Use gc_checking_assert().
16661         * .dbxrc: Make compatible with new object type implementation.
16662         * .gdbinit: Make compatible with new object type implementation.
16663         * alloc.c: Delete all symbols defined only for debugging, such as
16664         Lisp_Type_Vector and lrecord_charset.
16665
16666 2000-02-21  Andy Piper  <andy@xemacs.org>
16667
16668         * gui-msw.c (Fmswindows_shell_execute): fix file location
16669         problems.
16670
16671         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16672         unshowing so that set_window_buffer doesn't undo
16673         kill_buffer_hook's hard work.
16674
16675         * glyphs-widget.c (tab_control_query_geometry): don't count the
16676         first item when calculating geometry.
16677
16678         * glyphs.c (map_subwindow): remove redundant code.
16679         (update_frame_subwindows): be more circumspect about when to
16680         update subwindows.
16681
16682         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16683         when items haven't changed. Update faces if faces have changed as
16684         well as just the widget face.
16685         (x_tab_control_update): Update faces if faces have changed as well
16686         as just the widget face.
16687
16688 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16689
16690         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16691         registration.
16692         (build_syscolor_string): Use mswindows_color_to_string to try to
16693         get a named color.
16694         (mswindows_device_system_metrics): Reverse the foreground and
16695         background colors so that they match the documentation.
16696
16697         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16698         they match the default Windows palette.
16699         (mswindows_color_to_string): New function.
16700
16701 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16702
16703         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16704
16705 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16706
16707         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16708         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16709
16710         * symbols.c (init_symbols_once_early): Removed obsolete
16711         DATA_SEG_BITS related kludge.
16712         (defvar_magic): Ditto.
16713
16714         * malloc.c: Removed obsolete DATA_SEG_BITS
16715         * ralloc.c: Ditto.
16716         * mem-limits.h: Ditto.
16717
16718         * Makefile.in.in: Removed obsolete HAVE_SHM
16719         * emacs.c: Ditto.
16720
16721 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16722
16723         *  device-msw.c (mswindows_delete_device): Free DDE string
16724         handles.
16725
16726 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16727
16728         * keymap.c (get_keyelt):
16729         * unexnt.c (unexec):
16730         * vm-limit.c (memory_warnings):
16731         * ntheap.c (recreate_heap):
16732         * ntheap.h (UNINIT_PTR):
16733         * select-msw.c (Fmswindows_get_clipboard):
16734         (Fmswindows_set_clipboard):
16735         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16736         * objects-msw.c:
16737         * menubar-msw.c (displayable_menu_item):
16738         * glyphs-msw.c:
16739         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16740         * sysdep.c (sys_subshell):
16741         * process-nt.c (nt_create_process):
16742         * nt.c (normalize_filename):
16743         (dostounix_filename):
16744         (unixtodos_filename):
16745         * ntproc.c (win32_executable_type):
16746         * ntplay.c (play_sound_data_1):
16747         (play_sound_file):
16748         * editfns.c (get_home_directory):
16749         * event-msw.c (struct winsock_stream):
16750         (mswindows_dde_callback):
16751         * device-msw.c (msprinter_init_device):
16752         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16753
16754         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16755         mswindows_clear_toolbar were swapped!
16756
16757         * objects-msw.c:(colormap_t):
16758         (fontmap_t):
16759         * emacs.c (struct standard_args): Fixed const jumble.
16760
16761         * glyphs-widget.c (update_widget): Fixed comparison notation.
16762
16763         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16764
16765         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16766         __declspec(noreturn) syntax.
16767
16768 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16769
16770         * eldap.c (Fldap_open):
16771         (Fldap_search_basic):
16772         (Fldap_add):
16773         (Fldap_modify):
16774         Use new coding system conversion macros.
16775
16776 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16777
16778         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16779
16780 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16781
16782         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16783         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16784
16785         * eldap.c (Qadd, Qreplace): New constant symbols
16786         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16787         interruptions by XEmacs signals
16788         Remove unnecessary calls to slow_down_interrupts and
16789         speed_up_interrupts
16790         (Fldap_search_basic): Renamed from Fldap_search_internal
16791         Added new optional parameter VERBOSE that triggers the
16792         display of progress messages
16793         Remove unnecessary calls to slow_down_interrupts and
16794         speed_up_interrupts
16795         LDAP result code analysis rewritten
16796         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16797         (syms_of_eldap): Define the new symbols and functions
16798
16799
16800 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16801
16802         * realpath.c: Determine PATH_MAX maximally portably.
16803
16804         * insdel.c (bytecount_to_charcount): Optimize.
16805         The function used to be optimized for entirely ASCII sequences.
16806         Now it is optimized for successive characters from the same
16807         charset.  This also wins big for _mostly_ ASCII sequences.
16808
16809         * fileio.c (Ffile_truename): convert return from realpath() using
16810         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16811         - Rewrite GCPROing slightly.
16812
16813         * sysdep.c (sys_open): Do filename conversion, like all other
16814         sys_* functions.  Fixes bug:
16815         (let ((file-name-coding-system 'iso-8859-2))
16816            (write-region x y latin2-name))
16817         ==> writes filename using internal encoding.
16818
16819 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16820
16821         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16822         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16823         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16824         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16825         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16826         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16827         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16828         (CONST_IF_NOT_DEBUG): Delete.
16829         * alloc.c (this_one_is_unmarkable): Delete.
16830         (mark_object): Don't check for this_one_is_unmarkable. Use the
16831         c_readonly flag instead.
16832         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16833
16834 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16835
16836         * event-msw.c (mswindows_drain_windows_queue):
16837         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16838         away redundant repaint events.
16839
16840 2000-02-17  Andy Piper  <andy@xemacs.org>
16841
16842         * redisplay.h: declare mark_redisplay_structs.
16843
16844         * redisplay.c (redisplay_window):
16845         (redisplay_frame): don't check subwindows_state_changed.
16846         (mark_redisplay): mark gutters here.
16847
16848         * glyphs.c: (instantiate_image_instantiator): always layout if we
16849         haven't done so already.
16850         (allocate_image_instance): don't mark as dirty.
16851         (update_subwindow): bind inhibit_quit.
16852
16853         * gutter.c (mark_gutters): new function.
16854
16855         * glyphs-x.c (x_update_widget): Always resize to get round a
16856         widget bug.
16857
16858         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16859         breaking absolutely everything.
16860
16861         * gutter.h: declare mark_gutters.
16862
16863 2000-02-16  Martin Buchholz <martin@xemacs.org>
16864
16865         * XEmacs 21.2.29 is released.
16866
16867 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16868
16869         * fns.c (size_bit_vector): Fix computation of the size.
16870
16871 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16872
16873         * *.[ch]: Change CONST to const globally.
16874         find -name '*.[ch]' | \
16875         xargs global-replace \
16876         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16877         - Remove vestigial references to CONST_IS_LOSING
16878
16879 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16880
16881         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16882         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16883         events instead of dispatching them directly.
16884         (mswindows_handle_paint): New function to do repainting.
16885         (mswindows_wnd_proc):
16886         (emacs_mswindows_handle_magic_event): Call above function.
16887
16888 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16889
16890         * objects-msw.c (mswindows_create_font_variant): Return the new
16891         font handle.
16892         (initialize_font_instance): Get font metrics from the underlined
16893         variant of the font to cope with the case where the underlined
16894         font has a bigger descent.
16895
16896 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16897
16898         * gui.c (gui_item_accelerator): Return the first underlined
16899         character in item name.
16900
16901 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16902
16903         * lisp.h: Added Qprinter.
16904
16905         * general.c (syms_of_general): Initialized it.
16906
16907         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16908         (get_frame_dc):
16909         (get_frame_compdc): Made inline.
16910
16911         * console.h (struct console_methods): Added eject_page method.
16912
16913         * frame.h: Added FRAME_DISPLAY_P and friends.
16914         Aligned backslahes in many macros in more readable fashion.
16915         Added page_number to struct frame, and an accessor macro
16916         for it.
16917
16918         * defice.h: Added DEVICE_DISPLAY_P and friends.
16919
16920         * device.c (Fdevice_printer_p): Used these.
16921
16922         * frame.c (allocate_frame_core): Initialize page number.
16923         (Fprint_job_page_number):
16924         (Fprint_job_eject_page): Implemented.
16925
16926         * frame-msw.c (msprinter_eject_page): Added method.
16927         (msprinter_start_page): Added.
16928
16929         * window.c (Fwindow_truncated_p): Fixed docstring.
16930         (Fwindow_last_line_visible_height): Implemented.
16931
16932 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16933
16934         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16935
16936 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16937
16938         * syntax.c (scan_words): Always advance at least one character.
16939
16940 2000-02-13  Andy Piper  <andy@xemacs.org>
16941
16942         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16943         to make sure the glyph is in the cachels.
16944
16945         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16946         global image instance flag.
16947         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16948         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16949
16950         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16951         (Fset_image_instance_property): mark layout as changed.
16952         (invalidate_glyph_geometry_maybe): mark layout as changed.
16953         (glyph_width): use new NEEDS_LAYOUT macro.
16954         (glyph_ascent): ditto.
16955         (glyph_descent): ditto.
16956         (glyph_height): ditto.
16957         (image_instance_layout): mark layout as clean after laying out.
16958         (update_subwindow): don't mark layout as clean here.
16959
16960         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16961         should no longer be needed.
16962
16963         * glyphs-x.c (x_update_widget): sanitize asserts.
16964         (x_finalize_image_instance): sanitize assignment to widgets.
16965
16966         * glyphs-widget.c (widget_instantiate): don't need to clear the
16967         layout flag here.
16968
16969 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16970
16971         * sysdep.c (getcwd): Use standard prototype.
16972         * sysdep.h (getcwd): Use standard prototype.
16973
16974         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16975         (sequence, start, end).
16976         Remove redundant type checking.
16977         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16978         view of `caller-protects') to avoid a crash where the real fix was
16979         found elsewhere.
16980
16981 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16982
16983         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16984
16985         * s/sol2.h: Remove feature macro initialization.
16986
16987         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16988         (vector_hash): New.  Code from internal_hash.
16989         * lrecord.h:
16990         Fix up allocation subsystem comments.
16991
16992         * config.h.in: Add __EXTENSIONS__ for Solaris.
16993
16994         * systime.h (EMACS_GETTIMEOFDAY): New.
16995         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16996         Remove Solaris-specific code.
16997         Use void* for the (ignored) second arg for gettimeofday().
16998
16999         * elhash.c (hash_table_hash): Implement it, finally.
17000         * elhash.c:  Use hashcode_t.
17001
17002         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
17003         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
17004
17005         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
17006         * fns.c (size_bit_vector):
17007         * alloc.c (size_vector):
17008         (make_vector_internal):
17009         (make_bit_vector_internal):
17010         (sweep_bit_vectors_1):
17011         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
17012
17013 2000-02-10  Martin Buchholz  <martin@xemacs.org>
17014
17015         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
17016         Include strings.h to avoid warnings for bzero and strcasecmp.
17017
17018 2000-02-10  Olivier Galibert  <galibert@pobox.com>
17019
17020         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
17021         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
17022
17023         * fns.c (size_bit_vector): New.  Declare bit vectors as a
17024         sequence.
17025
17026 2000-02-10  Olivier Galibert  <galibert@pobox.com>
17027
17028         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
17029         use a value field instead.
17030         (symbol_value_forward_forward): Use value field.
17031         (DEFVAR_SYMVAL_FWD): Use value field.
17032         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
17033         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
17034         (DEFVAR_CONST_INT): Ditto.
17035         (DEFVAR_BOOL): Ditto.
17036         (DEFVAR_CONST_BOOL): Ditto.
17037         (DEFVAR_INT_MAGIC): Ditto.
17038         (DEFVAR_BOOL_MAGIC): Ditto.
17039
17040         * symbols.c (guts_of_unbound_marker): Use value field.
17041         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
17042         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
17043
17044         * lisp.h: Declare dumpopaque and noninteractive1.
17045
17046         * alloc.c (dumpopaque): Added.
17047         (pdump_dump_opaquevec): Added.
17048         (pdump): Call pdump_dump_opaquevec to dump opaque data.
17049         (pdump_load): Reload opaque data.  Sync noninteractive1 with
17050         noninteractive.
17051
17052 2000-02-10  Andy Piper  <andy@xemacs.org>
17053
17054         * glyphs.c (image_instance_layout): if the size changes, mark it
17055         as such.
17056
17057         * redisplay-output.c (redisplay_output_layout): Update the
17058         subwindow here.
17059         (redisplay_output_subwindow): ditto.
17060
17061         * glyphs.c (update_subwindow): make sure we reset flags for
17062         layouts as well as everything else.
17063
17064         * glyphs-widget.c (layout_layout): don't need to set the instances
17065         dimensions here.
17066
17067 2000-02-09  Martin Buchholz  <martin@xemacs.org>
17068
17069         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
17070         not HAVE_DLOPEN, which is a lower-level thing.
17071
17072         * .cvsignore: Ignore gmon.out
17073
17074 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
17075
17076         * .cvsignore: Ignore portable dumper xemacs.dmp file
17077
17078 2000-02-09  Andy Piper  <andy@xemacs.org>
17079
17080         * redisplay-output.c (redisplay_output_layout): be more clever
17081         about when we output based on the changed flags.
17082
17083         * glyphs.h (struct image_instantiator_methods): add update_method.
17084         (struct Lisp_Image_Instance): add changed flags. Declare new
17085         macros for manipulating them.
17086
17087         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
17088         (image_instance_parent_glyph): find an image_instance's parent
17089         glyph or image_instance.
17090         (image_instance_layout): mark the size as changed.
17091         (set_image_instance_dirty_p): new function. mark an image
17092         instance, plus all of its parents, as dirty.
17093         (Fset_image_instance_property): use it.
17094         (Fglyph_animated_timeout_handler): use it.
17095         (update_subwindow): call update_widget and device methods for
17096         update_subwindow. Mark all changed flags as clean.
17097         (Fresize_subwindow): mark size as changed.
17098
17099         * glyphs-x.c (x_finalize_image_instance): try and detect gc
17100         failures.
17101         (x_update_subwindow): only resize subwindows here.
17102         (x_update_widget): new function. Update all changed properties of
17103         a widget.
17104         (x_resize_subwindow): deleted.
17105         (x_widget_set_property): deleted.
17106         (x_progress_gauge_set_property): deleted.
17107         (x_progress_gauge_update): new function. Implement recorded
17108         changes.
17109         (x_tab_control_update): ditto.
17110         (x_tab_control_set_property): deleted.
17111         (console_type_create_glyphs_x): declare new functions.
17112         (image_instantiator_format_create_glyphs_x): ditto.
17113
17114         * glyphs-widget.c (widget_set_property): mark text changed.
17115         (update_widget): new function. Update properties of a widget.
17116         (widget_instantiate): for layouts make sure we set their
17117         children's parent correctly.
17118         (tab_control_set_property): new function. Record changes that will
17119         take place under redisplay's control.
17120         (progress_gauge_set_property): ditto.
17121         (image_instantiator_progress_guage): declare new functions.
17122         (image_instantiator_tab_control): ditto.
17123
17124         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
17125         now.
17126         (mswindows_update_widget): new function. Update all properties on
17127         a widget that have changed.
17128         (mswindows_button_update): new function. Update a button's set
17129         state.
17130         (mswindows_tab_control_update): new function. Update the items in
17131         a tab.
17132         (mswindows_tab_control_set_property): deleted.
17133         (mswindows_progress_gauge_update): new function. Update the
17134         progress gauge's progress.
17135         (mswindows_widget_set_property): deleted. This is all done
17136         asynchronously now.
17137         (mswindows_progress_gauge_set_property): ditto.
17138         (console_type_create_glyphs_mswindows): declare new methods.
17139         (image_instantiator_format_create_glyphs_mswindows): ditto.
17140
17141         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
17142         (msprinter_set_frame_properties): ditto.
17143
17144         * console.h (struct console_methods): Add update_widget_method.
17145
17146 2000-02-09  Andy Piper  <andy@xemacs.org>
17147
17148         * gui-msw.c (Fmswindows_shell_execute): Make
17149         mswindows-shell-execute industrial strength.
17150
17151 2000-02-08  Martin Buchholz  <martin@xemacs.org>
17152
17153         * lrecord.h: Make macro argument `props' match member function `plist'.
17154         * fns.c (Fget):
17155         * fns.c (Fput):
17156         * fns.c (Fremprop):
17157         * fns.c (Fobject_plist):
17158         * alloc.c:
17159         * symbols.c:
17160         Object property list frobbing cleanup.
17161         - Allow any lisp object (compared with `eq'), not just symbols, as
17162           keys in object plists.
17163         - Move symbol plist frobbing into symbols.c, where it belongs.
17164         - Move string plist frobbing into alloc.c, where it belongs.
17165         - Everything's an lrecord now, so no need to test for symbolp, etc.
17166         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
17167
17168         * extents.c: Reorder code to remove declarations.
17169
17170         * frame.h (store_in_alist): Remove useless declaration.
17171
17172 2000-02-07  Martin Buchholz  <martin@xemacs.org>
17173
17174         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
17175         * config.h.in: Add HAVE_XCONVERTCASE.
17176
17177 2000-02-07  Andy Piper  <andy@xemacs.org>
17178
17179         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
17180         it breaks many things.
17181
17182 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
17183
17184         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
17185         actually can start a common comment type.
17186         * src/syntax.h (SYNTAX_END_P): ditto for end.
17187
17188 2000-02-07  Martin Buchholz <martin@xemacs.org>
17189
17190         * XEmacs 21.2.28 is released.
17191
17192 2000-02-06  Martin Buchholz  <martin@xemacs.org>
17193
17194         * event-Xt.c (x_keysym_to_character): New.
17195         (maybe_define_x_key_as_self_inserting_character): New.
17196         (x_has_keysym): New.
17197         Auto-define all keys on the keyboard as self-insert-key.
17198
17199 2000-02-02  Martin Buchholz  <martin@xemacs.org>
17200
17201         * menubar.c (vars_of_menubar): A small code simplification.
17202
17203         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
17204
17205         * ExternalShell.c:
17206         * ExternalClient.c:
17207         * EmacsShell-sub.c:
17208         * EmacsManager.c:
17209         * EmacsFrame.c:
17210         Use consistent style for specifying X resources.
17211
17212         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
17213         This makes (dontusethis-set-symbol-value-handler) actually usable.
17214
17215         * lrecord.h (lrecord_decription_type):
17216         * alloc.c (pdump_register_sub):
17217         (pdump_dump_data):
17218         (pdump_reloc_one):
17219         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
17220         Comply with XEmacs coding style.
17221         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
17222         args, and XD_LISP_OBJECT_ARRAY with 3 args.
17223
17224         * keymap.c (Faccessible_keymaps):
17225         Make (accessible-keymaps map "\C-h") do the Right Thing.
17226         Make (accessible-keymaps map []) do the Right Thing.
17227         Make (accessible-keymaps map "") do the Right Thing.
17228         (check_keymap_definition_loop): New function.
17229         (keymap_store_internal): Keep luser from shooting self in foot,
17230           via (define-key ctl-x-4-map "p" global-map).
17231         Remove fullness slot from struct Lisp_Keymap, since hash tables
17232         are now reliable.
17233         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17234
17235 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17236
17237         * redisplay.c (init_redisplay): Fix small memory leak.
17238         * elhash.h:
17239         * elhash.c (pdump_reorganize_hash_table):
17240         Rename from reorganize_hash_table. Change prototype.
17241         Reuse the original memory for hentries.  Save 100k.
17242         * alloc.c (PDUMP_READ): new macro.
17243         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17244         * alloc.c: No need to #ifndef before #undef.
17245
17246         * print.c: Allow debug_print() to print readably by modifying
17247         debug_print_readably.  Use consistent variable names.
17248
17249         * .dbxrc: Try to get things to work even if stopped in a function
17250         without source available by explicitly specifying source files.
17251 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17252
17253         * unexnt.c (_start): Removed bogus code which caused loading heap
17254         from differrent executable file.
17255         Removed bogus assignment to _fmode, which caused inconsistencies.
17256
17257 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17258
17259         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17260         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17261         Do not preliminary `#define signal sigset'.
17262
17263         * systime.h: Do not prototype environ on windows nt and cygwin,
17264         this conflicts with system header.
17265
17266         * syssignal.h: Use correct define for WINDOWSNT
17267
17268         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17269         with system header.
17270
17271         * sysdep.c (near start of file): Fixed commentary and rearranged
17272         ifdefs in readable order.
17273         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17274         (start_of_text):
17275         (end_of_text):
17276         (end_of_data): Do not compile in if using PDUMP.
17277
17278         * symsinit.h: Prototyped vars_of_nt().
17279
17280         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17281         (find_child_console): Use it.
17282         (sys_kill): Use it.
17283
17284         * ntheap.h: Do not extern os_subtype.
17285
17286         * ntheap.c (cache_system_info): Do not cache unneeded:
17287         nt_major_version, nt_minor_version and os_subtype.
17288         (recreate_heap): Do not compile in when PDUMPing.
17289
17290         * nt.c (geteuid and friends): Use the new varibale
17291         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17292         (init_user_info): Removed the above mentioned hackery.
17293         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17294         stat has been fixed in the C runtime.
17295         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17296
17297         * file-coding.c (struct file_coding_dump): Do not define
17298         ucs_to_mule_table in the struct if not MULE.
17299         (struct struct lrecord_description fcd_description_1): Do not dump
17300         the above.
17301
17302         * emacs.c (main_1): Call vars_of_nt().
17303         (right before Fdump_emacs_data): Don't need lastfile if using both
17304         portabe dumper and system malloc.
17305
17306         * alloc.c (Fmemory_limit): Conditionalized out.
17307         (pdump): Use OPEN_BINARY for the portable dump file.
17308         (pdump_load): Ditto.
17309
17310 2000-02-02  Mike Alexander  <mta@arbortext.com>
17311
17312         * nt.c (convert_time): Set tm_isdst before calling mktime and
17313         avoid calling it at all if the compiler supports 64 bit integers.
17314         Also initialize utc_base_ft before using it.
17315
17316 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17317
17318         * frame.c (change_frame_size_1): Take f->internal_border_width
17319         into consideration when calculating the width of the frame.
17320
17321 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17322
17323         * window.c (frame_min_height):
17324         (frame_size_valid_p):
17325         (frame_pixsize_valid_p): Added.
17326         (check_frame_size): Generalized.
17327
17328         * window.h: Prototyped the above.
17329
17330         * lisp.h:
17331         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17332         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17333         Deleted Vwin32_* and Vbinary_process_* unused variables.
17334
17335         * device-msw.c (msprinter_init_device): Do not get printer font
17336         list; Added DEVMODE functions.
17337
17338         * frame-msw.c: Added lots of printer code.
17339
17340         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17341         general.c.
17342
17343         * console-msw.h: Added more msprinter device private slots.
17344
17345 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17346
17347         * event-msw.c (key_needs_default_processing_p): Added.
17348         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17349
17350 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17351
17352         * glyphs.c (image_instance_layout): Mark image instance as clean
17353         after layout.
17354         (glyph_dirty_p): Removed redundant function.
17355         (invalidate_glyph_geometry_maybe): Added.
17356         (update_glyph_cachel_data): Call it.
17357
17358         * glyphs.h: Prototyped it.
17359
17360         * redisplay.c (add_glyph_rune): Call it.
17361         (redisplay_window): Reset glyphs cachels when frame faces have
17362         changed, thus forcing recomputation of built-in border glyphs.
17363
17364 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17365
17366         * Makefile.in.in: Make portable dumper and purify play well together.
17367         Add imperfect, but better than nothing, support for pdump.
17368         Remove xemacs.dmp when temacs is re-generated.
17369         Don't ignore errors when dumping xemacs.
17370
17371         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17372
17373 2000-01-28  Andy Piper  <andy@xemacs.org>
17374
17375         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17376         (setup_normal_frame): ditto.
17377         (setup_frame_without_minibuffer): ditto.
17378         (setup_minibuffer_frame): ditto.
17379         (delete_frame_internal): ditto.
17380         (Fmake_frame_invisible): ditto.
17381         (Ficonify_frame): ditto.
17382
17383         * window.h: change Fset_window_buffer signature.
17384
17385         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17386         (Fset_window_buffer): allow recording of buffer if the window is
17387         the selected window.
17388         (window_loop): Use new Fset_window signature.
17389
17390 2000-01-23  Daniel Pittman  <daniel@danann.net>
17391
17392         * config.h.in: Added template for `HAVE_ATHENA_3D'
17393
17394 2000-01-29  Andy Piper  <andy@xemacs.org>
17395
17396         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17397
17398         * gutter.c (output_gutter): Don't output if the window isn't live.
17399
17400 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17401
17402         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17403         of 01/12/00: Moved SetFocus back here where it belongs.
17404
17405 2000-01-23  Andy Piper  <andy@xemacs.org>
17406
17407         * s/cygwin32.h: declare printer things.
17408
17409 2000-01-26  Andy Piper  <andy@xemacs.org>
17410
17411         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17412         Alexander.
17413
17414 2000-01-24  Andy Piper  <andy@xemacs.org>
17415
17416         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17417         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17418
17419         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17420
17421         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17422
17423         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17424
17425         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17426         (mswindows_output_display_block): Avoid local shadows.
17427
17428         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17429         (mswindows_enqueue_mouse_button_event): ditto.
17430         (mswindows_handle_gui_wm_command): remove declaration.
17431
17432         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17433         warnings.
17434
17435         * console-msw.h: Avoid shadows.
17436         (mswindows_get_toolbar_button_text):
17437         (emacs_mswindows_create_stream_pair):
17438         (emacs_mswindows_delete_stream_pair):
17439         (mswindows_handle_toolbar_wm_command): declare.
17440
17441         * device-msw.c (build_syscolor_string): Avoid shadows.
17442
17443 2000-01-23  Andy Piper  <andy@xemacs.org>
17444
17445         * glyphs-widget.c (widget_instantiate): reverse the items for
17446         layouts so that children are in the expected order.
17447
17448 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17449
17450         * ralloc.c: safe_bcopy ==> memmove
17451         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17452         * s/msdos.h: Remove BCOPY macros.
17453         * insdel.c (gap_right): Remove BCOPY conditional code.
17454         * insdel.c (gap_left): Remove BCOPY conditional code.
17455         XEmacs demands a working ANSI C compiler - hence memmove.
17456
17457         * regex.c (regex_compile): Remove accidental use of trigraphs.
17458
17459 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17460
17461         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17462         event timestamp.
17463
17464 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17465
17466         * event-msw.c (mswindows_drain_windows_queue): Added the
17467         parameter.
17468         (mswindows_need_event): Commented the call to
17469         mswindows_drain_windows_queue().
17470         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17471         only.
17472
17473         * console-msw.h: Moved a few function prototypes here from
17474         event-msw.c.
17475
17476         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17477         parameter from unsigned short to unsigned long.
17478         (Fmswindows_shell_execute): Added return value.
17479
17480 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17481
17482         * sysdep.c (init_system_name):
17483           process-unix.c (unix_canonicalized_host_name):
17484         Don't call freeaddrinfo() if getaddrinfo() fails.
17485
17486         * process-unix.c (unix_open_unix_network_stream):
17487         Moved the code to get a port # into address loop.
17488
17489 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17490
17491         * buffer.c (reinit_vars_of_buffer):
17492         The right place to initialize conversion_in_dynarr and
17493         conversion_out_dynarr.
17494
17495         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17496
17497         * process-unix.c (unix_canonicalize_host_name): Muleize.
17498         (unix_open_network_stream): Muleize.
17499
17500         * buffer.h: Fix up prototypes for ralloc.c functions.
17501
17502 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17503         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17504         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17505                 instead of gethostbyname()
17506         * process-unix.c: In unix_canonicalize_host_name() and
17507                 unix_open_network_stream(), add code to use getaddrinfo()
17508                 instead of gethostbyname().
17509
17510 2000-01-27  Daniel Pittman <daniel@danann.net>
17511
17512         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17513         libs when built with flat Athena.
17514
17515 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17516
17517         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17518         Use coding standards for function prototypes.
17519
17520 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17521
17522         * dialog-msw.c (push_lisp_string_as_unicode):
17523         * doc.c (unparesseuxify_doc_string):
17524         * dired.c (Fuser_name_completion_1):
17525         * dired.c (Fuser_name_all_completions):
17526         * dired.c (free_user_cache):
17527         * dired.c (user_name_completion):
17528         * console-x.c (get_display_arg_connection):
17529         * minibuf.c (clear_echo_area_internal):
17530         * minibuf.c (echo_area_append):
17531         * eldap.c (Fldap_open):
17532         * eldap.c (Fldap_search_internal):
17533         * frame-x.c (x_set_frame_text_value):
17534         * frame-x.c (x_set_frame_properties):
17535         * frame-x.c (x_create_widgets):
17536         * redisplay-tty.c (term_get_fkeys_1):
17537         * objects-x.c (x_parse_nearest_color):
17538         * objects-x.c (x_valid_color_name_p):
17539         * objects-x.c (x_initialize_font_instance):
17540         * objects-x.c (x_list_fonts):
17541         * objects-x.c (x_find_charset_font):
17542         * tooltalk.c (Fadd_tooltalk_message_arg):
17543         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17544         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17545         * process-unix.c (unix_create_process):
17546         * ntproc.c (sys_spawnve):
17547         * sound.c (Fplay_sound_file):
17548         * sound.c (Fplay_sound):
17549         * buffer.c (init_initial_directory):
17550         * buffer.c (init_buffer):
17551         * editfns.c (init_editfns):
17552         * editfns.c (Ftemp_directory):
17553         * editfns.c (Fuser_full_name):
17554         * editfns.c (uncache_home_directory):
17555         * editfns.c (get_home_directory):
17556         * editfns.c (Fuser_home_directory):
17557         * editfns.c (Fformat_time_string):
17558         * editfns.c (Fcurrent_time_string):
17559         * gui-x.c (button_item_to_widget_value):
17560         * database.c (Fopen_database):
17561         * event-Xt.c (x_to_emacs_keysym):
17562         * event-Xt.c (x_event_to_emacs_event):
17563         * event-Xt.c (describe_event_window):
17564         * event-msw.c (mswindows_wnd_proc):
17565         * glyphs-eimage.c (jpeg_instantiate):
17566         * glyphs-eimage.c (gif_instantiate):
17567         * glyphs-eimage.c (png_instantiate):
17568         * glyphs-eimage.c (tiff_instantiate):
17569         * glyphs-x.c (xbm_instantiate_1):
17570         * glyphs-x.c (x_xbm_instantiate):
17571         * glyphs-x.c (x_xface_instantiate):
17572         * glyphs-x.c (autodetect_instantiate):
17573         * glyphs-x.c (cursor_font_instantiate):
17574         * glyphs-x.c (x_widget_instantiate):
17575         * glyphs-x.c (x_widget_set_property):
17576         * glyphs-x.c (x_widget_property):
17577         * glyphs-x.c (BUILD_GLYPH_INST):
17578         * print.c (write_string_to_stdio_stream):
17579         * print.c (output_string):
17580         * print.c (Falternate_debugging_output):
17581         * print.c (Fexternal_debugging_output):
17582         * glyphs-msw.c (extract_xpm_color_names):
17583         * glyphs-msw.c (mswindows_xpm_instantiate):
17584         * glyphs-msw.c (bmp_instantiate):
17585         * glyphs-msw.c (resource_name_to_resource):
17586         * glyphs-msw.c (mswindows_resource_instantiate):
17587         * glyphs-msw.c (xbm_instantiate_1):
17588         * glyphs-msw.c (mswindows_xbm_instantiate):
17589         * glyphs-msw.c (mswindows_xface_instantiate):
17590         * glyphs-msw.c (mswindows_widget_instantiate):
17591         * glyphs-msw.c (add_tree_item):
17592         * glyphs-msw.c (add_tab_item):
17593         * glyphs-msw.c (mswindows_combo_box_instantiate):
17594         * glyphs-msw.c (mswindows_widget_property):
17595         * glyphs-msw.c (mswindows_combo_box_property):
17596         * glyphs-msw.c (mswindows_widget_set_property):
17597         * console.c (stuff_buffered_input):
17598         * objects-msw.c (mswindows_initialize_color_instance):
17599         * objects-msw.c (mswindows_valid_color_name_p):
17600         * objects-msw.c (mswindows_list_fonts):
17601         * objects-msw.c (mswindows_font_instance_truename):
17602         * bytecode.c (optimize_compiled_function):
17603         * select-x.c (symbol_to_x_atom):
17604         * select-x.c (x_atom_to_symbol):
17605         * select-x.c (hack_motif_clipboard_selection):
17606         * select-x.c (selection_data_to_lisp_data):
17607         * select-x.c (lisp_data_to_selection_data):
17608         * select-x.c (Fx_get_cutbuffer_internal):
17609         * select-x.c (Fx_store_cutbuffer_internal):
17610         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17611         * buffer.h (TO_INTERNAL_FORMAT): New function.
17612         * emacs.c (make_arg_list_1):
17613         * emacs.c (make_argc_argv):
17614         * emacs.c (main_1):
17615         * emacs.c (Fdump_emacs):
17616         * emacs.c (split_string_by_emchar_1):
17617         * file-coding.h:
17618         * lisp.h:
17619         * lstream.h:
17620         * symsinit.h:
17621         * device-x.c (x_init_device):
17622         * device-x.c (Fx_valid_keysym_name_p):
17623         * device-x.c (Fx_get_font_path):
17624         * device-x.c (Fx_set_font_path):
17625         * glyphs.c (bitmap_to_lisp_data):
17626         * glyphs.c (pixmap_to_lisp_data):
17627         * alloc.c (make_ext_string): Use coding system arguments.  Update
17628         all callers.
17629         * alloc.c (build_string):
17630         * callproc.c (child_setup):
17631         * callproc.c (init_callproc):
17632         * fileio.c (lisp_strerror):
17633         * fileio.c (directory_file_name):
17634         * fileio.c (Fexpand_file_name):
17635         * fileio.c (Ffile_truename):
17636         * fileio.c (Fsysnetunam):
17637         * fileio.c (Fdo_auto_save):
17638         * sysdep.c (sys_readdir):
17639         * tests.c: New file.  Allow adding C tests.
17640         Replace GET_* macros with a more comprehensible and flexible
17641         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17642         Modify all calls.
17643         Any coding system can be used to do format conversion.
17644         Eliminate enum external_data_format.
17645         Eliminate convert_to_external_format.
17646         Eliminate convert_to_internal_format.
17647         Make sure file-name, keyboard, terminal, and ctext are always
17648         defined as coding systems or aliases.  Make
17649         file-name-coding-system, terminal-coding-system, and
17650         keyboard-coding-system magical variables that are equivalent to
17651         defining the corresponding coding system aliases.
17652
17653         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17654         * file-coding.c (Fcoding_system_alias_p): New function.
17655         * file-coding.c (Fcoding_system_aliasee): New function.
17656         * file-coding.c (append_suffix_to_symbol): New function.
17657         * file-coding.c (dangling_coding_system_alias_p): New function.
17658         * file-coding.c (Ffind_coding_system):
17659         * file-coding.c (Fcopy_coding_system):
17660         * file-coding.c (encode_coding_no_conversion):
17661         * file-coding.c (syms_of_file_coding):
17662         * file-coding.c (vars_of_file_coding):
17663         Rewrite coding system alias code.
17664         Allow nested aliases, like symbolic links.
17665         Allow redefinition of coding system aliases.
17666         Prevent existence of dangling coding system aliases.
17667
17668         * dired.c (Fuser_name_completion_1):
17669         * dired.c (Fuser_name_all_completions):
17670         A crash would happen if user did QUIT in the middle of building
17671         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17672
17673         * lisp.h:
17674         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17675
17676         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17677         an unsigned char *.  Update all callers.
17678
17679 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17680
17681         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17682
17683 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17684
17685         * elhash.c (hentry_description): Use more portable definition.
17686         (resize_hash_table): Initialize new hentries using
17687         xnew_array_and_zero, thereby simplifying the code.
17688
17689         * mule-charset.c (make_charset): Make sure entire object is
17690         initialized, to avoid Purify warnings.
17691
17692         * alloc.c (resize_string): Fix unlikely crash with big strings.
17693
17694 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17695
17696         * realpath.c (xrealpath):
17697         Don't call getwd().
17698
17699 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17700
17701         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17702
17703 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17704
17705         * unexelfsgi.c (unexec): Change the way we decide which segment
17706         should be extended.
17707
17708         Assumption that .bss section should be outside the PT_LOADable
17709         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17710         it's present) is inside the 'data' segment. This would fail the
17711         test which was used to find a segment to grow and cover new
17712         heap. Instead of this assumption, I created another one - on IRIX
17713         the segment to grow should start below .bss and it's address
17714         should extent above the end of .bss. Once this segment is
17715         identified, it's grown to accommodate the new heap and new
17716         zero-length .bss section is added at the end of .data2.
17717
17718 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17719
17720         * eval.c (Feval): Wrong number of arguments should use original
17721         function, not the indirect_function version of it.
17722
17723 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17724
17725         * glyphs-x.c (x_button_instantiate): Don't add image if
17726         it is not a pixmap.
17727         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17728         is relative.
17729
17730 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17731
17732         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17733         declaration.
17734         (DEFVAR_INT_MAGIC): Ditto.
17735         (DEFVAR_BOOL_MAGIC): Ditto.
17736         * glyphs.h: Reindent backslash.
17737
17738 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17739
17740         * glyphs-widget.c (layout_query_geometry):
17741         (layout_layout): Use correct types for gheight, gwidth.
17742
17743 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17744
17745         * EmacsManager.c (QueryGeometry): Purified.
17746
17747 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17748
17749         * alloc.c (make_float): Make sure entire object is initialized, to
17750         avoid Purify warnings.
17751         (pdump_register_sub): Remove useless assignment.
17752         (pdump): Use xmalloc, not malloc.
17753         (pdump_load): Use xmalloc, not malloc.
17754
17755 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17756
17757         * callproc.c:
17758         * dired-msw.c:
17759         * fileio.c:
17760         * process-nt.c:
17761         * redisplay-msw.c:
17762         * sysdep.c: Removed redundant #include <windows.h>
17763
17764 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17765
17766         * frame.c (delete_frame_internal): Do not delete device when its
17767         implementation so declares.
17768         (delete_frame_internal): Set device selected frame to nil when
17769         last frame goes away.
17770
17771         * device-msw.c (msprinter_device_system_metrics): Implemented.
17772         (mswindows_device_system_metrics): Added 'device-dpi property.
17773
17774         * device.c: (Fdevice_printer_p): Added.
17775         Added 'offset-workspace device metric.
17776
17777         * console.h (device_metrics): Declared DM_offset_workspace.
17778
17779 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17780
17781         * fileio.c (Ffile_truename): Remove pointless and confusing
17782         initialization of elen.
17783
17784         * glyphs-widget.c: Compiler warning fixes.
17785
17786 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17787
17788         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17789         instead of a Lisp_Object as argument to make it consistent with
17790         the other LIVE_P macros.
17791         (CHECK_LIVE_PROCESS): New macro.
17792
17793         * process.c: Declare Qprocess_live_p.
17794         (Fprocess_live_p): New function.
17795         (create_process): Use PROCESS_LIVE_P.
17796         (read_process_output): Ditto.
17797         (set_process_filter): Ditto.
17798         (Fdelete_process): Ditto.
17799         (kill_buffer_processes): Ditto
17800         (process_send_signal): Use CHECK_LIVE_PROCESS.
17801         (Fprocess_input_coding_system): Check whether process is still
17802         alive (fix PR#1061).
17803         (Fprocess_output_coding_system): Ditto.
17804         (Fprocess_coding_system): Ditto.
17805         (Fset_process_input_coding_system): Ditto.
17806         (Fset_process_output_coding_system): Ditto.
17807
17808 2000-01-23  Andy Piper  <andy@xemacs.org>
17809
17810         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17811         layout and widget.
17812
17813         * glyphs.c (mark_image_instance): take into account changed
17814         image_instance format.
17815         (image_instance_equal): ditto.
17816         (image_instance_hash): ditto.
17817
17818         * glyphs-widget.c (widget_instantiate): Incorporate layout
17819         instantiation here. Delay layout of the layout until later.
17820         (layout_instantiate): deleted.
17821         (layout_query_geometry): new function. get the geometry of a
17822         layout.
17823         (layout_layout): layout a layout dynamically.
17824         (image_instantiator_widget): New function - splitting up
17825         image_instantiator_format_create_glyphs_widget for netwinder
17826         compilation.
17827         (image_instantiator_buttons):
17828         (image_instantiator_edit_fields):
17829         (image_instantiator_combo_box):
17830         (image_instantiator_scrollbar):
17831         (image_instantiator_progress_guage):
17832         (image_instantiator_tree_view):
17833         (image_instantiator_tab_control):
17834         (image_instantiator_labels):
17835         (image_instantiator_layout): ditto.
17836         (image_instantiator_format_create_glyphs_widget): Call preceding
17837         functions.
17838
17839 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17840
17841         * process.c (Fset_process_coding_system):
17842         * device-x.c (Fx_keysym_hash_table):
17843         Docstring fixes.
17844
17845         * lstream.c (Lstream_write): Return documented value, not 0.
17846
17847         * fileio.c (directory_file_name):
17848         (Fsubstitute_in_file_name):
17849         (Fsubstitute_insert_file_contents_internal):
17850         (Fwrite_region_internal):
17851         * emacs.c:
17852         * sysdep.c:
17853         * getloadavg.c:
17854         * systty.h:
17855         Remove vestigial APOLLO-conditional code.
17856
17857 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17858
17859         * getpagesize.h: Add guard macros.
17860         * libsst.h: Add guard macros.
17861         * libst.h: Add guard macros.
17862         * line-number.h: Add guard macros.
17863         * ndir.h: Add guard macros.
17864         * sysfloat.h: Add guard macros.
17865         * sysfile.h: Add guard macros.
17866         * sysproc.h: Add guard macros.
17867         * syswait.h: Add guard macros.
17868         * xintrinsic.h: Add guard macros.
17869         * xintrinsicp.h: Add guard macros.
17870         * xmmanager.h: Add guard macros.
17871         * xmmanagerp.h: Add guard macros.
17872         * xmprimitive.h: Add guard macros.
17873         * xmu.h: Add guard macros.
17874         * gpmevent.h: Add copyright statement. Add guard macros.
17875         * miscplay.h: Add guard macros.
17876         * *.h: Use consistent C-standards-approved guard macro names.
17877
17878         * opaque.c (make_opaque): Switch parameter order.
17879         * opaque.h (make_opaque): Switch parameter order.
17880         Update all callers.
17881         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17882
17883         * config.h.in (type_checking_assert): Added.
17884         (bufpos_checking_assert): Added.
17885
17886 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17887
17888         * alloc.c: Harmless pdump changes.
17889         - Use countof().
17890         - spell alignment correctly.
17891         * sysdep.c: Use countof()
17892
17893 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17894
17895         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17896         initially_selected_for_input() console method, default to 0.
17897         (semi_canonicalize_console_connection): Try to delegate to
17898         canonicalize_console_connection if no such console method.
17899         (canonicalize_console_connection): Vice versa.
17900         (print_console): Do not print nil connection.
17901
17902         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17903         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17904         (XDEVIMPF_FRAMELESS_OK): Added.
17905         (CONSOLE_INHERITS_METHOD): Added.
17906
17907         * console-msw.c (mswindows_canonicalize_console_connection):
17908         Added.
17909         (mswindows_canonicalize_device_connection): Added.
17910
17911         * console-msw.h (struct msprinter_device): Added this struct and
17912         accessor macros.
17913         (mswindows_device): Made fontlist a lisp object.
17914
17915         * device.c (semi_canonicalize_device_connection):  Try to delegate
17916         to canonicalize_device_connection if no such console method.
17917         (canonicalize_device_connection): Vice versa.
17918         (print_device): Do not print nil connection.
17919
17920         * device-msw.c (mswindows_init_device): Call InitCommonControls
17921         when have widgets.
17922         (mswindows_delete_device): Removed fontlist deallocation.
17923         (mswindows_mark_device): Added.
17924
17925         * events.c (event_equal): Added abort() at unreached code.
17926         (event_hash): Ditto.
17927
17928         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17929         fallback tags of Windows devices.
17930
17931         * general.c (syms_of_general): Initialized Qmsprinter.
17932
17933         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17934         of fallback tags of Windows devices.
17935
17936         * lisp.h: Declared Qmsprinter.
17937
17938         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17939         of strings.
17940         (mswindows_list_fonts): Ditto.
17941         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17942         that it can be used by both mswindows and msprinter devices.
17943         (initialize_font_instance): Added.
17944         (mswindows_initialize_font_instance): Use it.
17945         (msprinter_initialize_font_instance): Added.
17946
17947         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17948         and implementation flags check.
17949         (redisplay_without_hooks): Changed the call to the above.
17950         (Fredraw_device): Ditto.
17951         (Fredisplay_device): Ditto.
17952
17953         * redisplay-msw.c (get_frame_dc): Implemented.
17954         (get_frame_compdc): Implemented.
17955         (many functions): Use the two functions above to get device
17956         contexts, ether for a window or a printer.
17957
17958 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17959
17960         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17961         initialization here.
17962         (init_symbols_once_early): Call it.
17963         * emacs.c (main_1): Call it.
17964         * symsinit.h: Declare it.
17965
17966 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17967
17968         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17969         Lisp_Object.
17970         (pdump_backtrace): Ditto.
17971         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17972         (pdump_get_entry): Abort if trying to register a null pointer.
17973         (pdump_dump_data): Cleanup types when relocating.
17974         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17975         (pdump_dump_rtables): Remove bad casts.
17976         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17977         Lisp_Object instead of a EMACS_INT for the hashtable
17978         reorganization.
17979
17980 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17981
17982         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17983
17984         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17985
17986         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17987
17988         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17989
17990 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17991
17992         * faces.h (FACE_STRIKETHRU_P): Added.
17993
17994         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17995         of font variants.
17996
17997         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17998         (mswindows_set_dc_font): New function, aware of font variants,
17999         separated from mswindows_update_dc.
18000
18001         * objects-msw.h (struct mswindows_font_instance_data): Added
18002         definition.
18003
18004         * objects-msw.c (mswindows_finalize_font_instance): Delete all
18005         cached fonts and the data structure.
18006         (mswindows_initialize_font_instance): Added creation of font data
18007         structure.
18008         (mswindows_print_font_instance): Print at least something.
18009         (mswindows_create_font_variant): Implemented.
18010         (mswindows_get_hfont): Implemented.
18011
18012 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
18013
18014         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
18015         prototyping problem with msvc.
18016
18017         * emacs.c (main_1): added syms_of_gui_mswindows() call
18018
18019         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
18020         syms_of_gui_mswindows() function
18021
18022         * symsinit.h: added the prototype for syms_of_gui_mswindows()
18023
18024 2000-01-18  Martin Buchholz <martin@xemacs.org>
18025
18026         * XEmacs 21.2.27 is released.
18027
18028 2000-01-18  Martin Buchholz  <martin@xemacs.org>
18029
18030         * glyphs-eimage.c (struct tiff_error_struct):
18031         (tiff_error_func):
18032         (tiff_warning_func):
18033         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
18034
18035         * unexmips.c:
18036         * unexhp9k3.c:
18037         * unexfreebsd.c:
18038         * unexec.c: Remove vestigial Lucid C code.
18039         * unexalpha.c:
18040         * unexaix.c:
18041         * termcap.c:
18042         * libsst.c: Ansify.
18043         Remove declarations of errno and strerror().
18044
18045         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
18046
18047         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
18048
18049 2000-01-16  Martin Buchholz  <martin@xemacs.org>
18050
18051         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
18052         Optimize.
18053
18054 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18055
18056         * md5.c:
18057         * file-coding.c:
18058         * file-coding.h:
18059         Change enum eol_type to eol_type_t.
18060
18061 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18062
18063         * gui.c (get_gui_callback): Check cons before accessing car.
18064
18065 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18066
18067         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
18068         (XSETSPECIFIER_TYPE): Ditto.
18069
18070 2000-01-17  Didier Verna  <didier@xemacs.org>
18071
18072         * redisplay.c (generate_fstring_runes): compute string size in
18073         characters, not bytes.
18074
18075 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18076
18077         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
18078
18079 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
18080
18081         * print.c (print_error_message): Call print_prepare().
18082
18083 2000-01-14  Martin Buchholz  <martin@xemacs.org>
18084
18085         * .dbxrc: Renamed from dbxrc.
18086
18087         * events.c (event_to_character):
18088         Use `assert (foo)' instead of `if (!foo) abort()'
18089
18090         * .gdbinit (xtype): Add documentation.
18091         * .gdbinit (check-temacs): New function.
18092         * .gdbinit (check-xemacs): New function.
18093         * dbxrc (check-xemacs): New function.
18094         * dbxrc (check-xemacs): New function.
18095
18096 2000-01-14  Andy Piper  <andy@xemacs.org>
18097
18098         * glyphs-widget.c (widget_query_geometry): Make sure that we
18099         calculate default dimensions correctly.
18100
18101 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18102
18103         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
18104
18105         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
18106         pdump_wire'd variable.
18107
18108         * emacs.c: (main_1): Conditionalized calls to
18109         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
18110
18111 2000-01-13  Martin Buchholz  <martin@xemacs.org>
18112
18113         * window.c (Fset_window_configuration):
18114         * sysdep.c (_start):
18115         * input-method-motif.c (res):
18116         * event-Xt.c (Xt_process_to_emacs_event):
18117         Simple compiler warning fixes.
18118
18119         * bytecode.c (funcall_compiled_function): Use the original
18120         function symbol on the backtrace list in preference to the
18121         compiled_function object in error messages.
18122
18123 2000-01-13  Andy Piper  <andy@xemacs.org>
18124
18125         * glyphs-x.c (update_widget_face): Make sure we update the widget
18126         background as well as foreground.
18127
18128 2000-01-13  Andy Piper  <andy@xemacs.org>
18129
18130         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
18131         fields to subwindow.
18132         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
18133         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
18134         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18135         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18136
18137         * glyphs-widget.c (check_valid_tab_orientation): new function.
18138         (initialize_widget_image_instance): zero orientation and
18139         justification.
18140         (widget_instantiate): pick up orientation.
18141         (tab_control_query_geometry): return appropriate values for
18142         vertical tabs.
18143
18144         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
18145         appropriate creation flags for left, right and bottom tabs.
18146
18147         * s/cygwin32.h: add tab definitions.
18148
18149 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18150
18151         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
18152         frame upon hiding a subwindow.
18153         (mswindows_button_instantiate): Changed the push button style to
18154         BS_PUSHBUTTON.
18155         (mswindows_button_instantiate): Removed button BS_NOTIFY
18156         style.
18157         (mswindows_button_instantiate): Removed redundant check for
18158         a disabled gui item.
18159         (mswindows_button_instantiate): Made use of WS_TABSTOP
18160         consistent: "operable" controls (edit, button, tree, scroll) have
18161         this style, "display-only" ones (static, progress gauge) do
18162         not. This style is currently ignored by XEmacs though. Also,
18163         removed the WS_EX_CONTROLPARENT style - it is not for children,
18164         it is for their parents!
18165         (mswindows_edit_field_instantiate): Ditto.
18166         (mswindows_progress_gauge_instantiate): Ditto.
18167         (mswindows_tree_view_instantiate): Ditto.
18168         (mswindows_tab_control_instantiate): Ditto.
18169         (mswindows_scrollbar_instantiate): Ditto.
18170         (mswindows_combo_box_instantiate): Ditto.
18171         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
18172         style to the "clip" window.
18173         (mswindows_button_instantiate): Removed compilation warning by
18174         equally typing terms of the ?: operator.
18175
18176 2000-01-12  Didier Verna  <didier@xemacs.org>
18177
18178         * redisplay.c (generate_fstring_runes): new parameter holding the
18179         last modeline-format extent.
18180         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
18181         extent, fill the glyph block with it.
18182         (generate_fstring_runes): handle these parameters.
18183         (generate_formatted_string_db): ditto.
18184
18185         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
18186         glyphs'extents in the modeline.
18187
18188 1999-01-11  Mike Woolley  <mike@bulsara.com>
18189
18190         * ntheap.c: Reduced the reserved heap space from 1Gb down to
18191         256Mb, as a workaround for the non-starting problem many people
18192         have experienced.
18193
18194 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18195
18196         * console-tty.c (Fset_console_tty_output_coding_system):
18197         Force redrawing tty frame.
18198
18199 2000-01-10  Didier Verna  <didier@xemacs.org>
18200
18201         * redisplay.c (generate_fstring_runes): fix size computation bug.
18202
18203 2000-01-09  William M. Perry <wmperry@aventail.com>
18204
18205         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
18206
18207 2000-01-09  Andy Piper  <andy@xemacs.org>
18208
18209         * glyphs-msw.c: index -> i to avoid shadows.
18210         (xbm_create_bitmap_from_data): make static.
18211         (check_valid_string_or_int): deleted.
18212         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
18213
18214         * glyphs-x.c (x_update_subwindow): remove unused args.
18215
18216         * glyphs.c (glyph_image_instance): return the thing. Don't set the
18217         back pointer - this is done in allocate_image_instance.
18218         (query_string_font): return Qnil to make the compiler happy.
18219         (unmap_subwindow): set to ~0 to make the compiler happy.
18220         (glyph_query_geometry): comment out until used.
18221         (glyph_layout): ditto.
18222
18223 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18224
18225         * insdel.c (signal_after_change): Remove extraneous unbind_to().